public static Task <string> DeployContractAsync(Nethereum.Web3.Web3 web3, ERC20InterfaceDeployment eRC20InterfaceDeployment) { return(web3.Eth.GetContractDeploymentHandler <ERC20InterfaceDeployment>().SendRequestAsync(eRC20InterfaceDeployment)); }
public static async Task <ERC20InterfaceService> DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, ERC20InterfaceDeployment eRC20InterfaceDeployment, CancellationTokenSource cancellationTokenSource = null) { var receipt = await DeployContractAndWaitForReceiptAsync(web3, eRC20InterfaceDeployment, cancellationTokenSource); return(new ERC20InterfaceService(web3, receipt.ContractAddress)); }
public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, ERC20InterfaceDeployment eRC20InterfaceDeployment, CancellationTokenSource cancellationTokenSource = null) { return(web3.Eth.GetContractDeploymentHandler <ERC20InterfaceDeployment>().SendRequestAndWaitForReceiptAsync(eRC20InterfaceDeployment, cancellationTokenSource)); }