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