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