Exemple #1
0
        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));
        }
Exemple #2
0
 public static Task <string> DeployContractAsync(Web3 web3, ReverseRegistrarDeployment reverseRegistrarDeployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <ReverseRegistrarDeployment>().SendRequestAsync(reverseRegistrarDeployment));
 }
Exemple #3
0
        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));
        }
Exemple #4
0
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, ReverseRegistrarDeployment reverseRegistrarDeployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <ReverseRegistrarDeployment>().SendRequestAndWaitForReceiptAsync(reverseRegistrarDeployment, cancellationTokenSource));
 }
Exemple #5
0
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, ReverseRegistrarDeployment reverseRegistrarDeployment, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(web3.Eth.GetContractDeploymentHandler <ReverseRegistrarDeployment>().SendRequestAndWaitForReceiptAsync(reverseRegistrarDeployment, cancellationToken));
 }