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