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