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