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