public static async Task <TheOtherService> DeployContractAndGetServiceAsync(Web3 web3, TheOtherDeployment theOtherDeployment, CancellationToken cancellationToken = default(CancellationToken)) { var receipt = await DeployContractAndWaitForReceiptAsync(web3, theOtherDeployment, cancellationToken); return(new TheOtherService(web3, receipt.ContractAddress)); }
public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, TheOtherDeployment theOtherDeployment, CancellationToken cancellationToken = default(CancellationToken)) { return(web3.Eth.GetContractDeploymentHandler <TheOtherDeployment>().SendRequestAndWaitForReceiptAsync(theOtherDeployment, cancellationToken)); }
public static Task <string> DeployContractAsync(Web3 web3, TheOtherDeployment theOtherDeployment) { return(web3.Eth.GetContractDeploymentHandler <TheOtherDeployment>().SendRequestAsync(theOtherDeployment)); }
public static async Task <TheOtherService> DeployContractAndGetServiceAsync(Web3 web3, TheOtherDeployment theOtherDeployment, CancellationTokenSource cancellationTokenSource = null) { var receipt = await DeployContractAndWaitForReceiptAsync(web3, theOtherDeployment, cancellationTokenSource).ConfigureAwait(false); return(new TheOtherService(web3, receipt.ContractAddress)); }