Example #1
0
        public static async Task <RegistrarService> DeployContractAndGetServiceAsync(Web3.Web3 web3, RegistrarDeployment registrarDeployment, CancellationTokenSource cancellationTokenSource = null)
        {
            var receipt = await DeployContractAndWaitForReceiptAsync(web3, registrarDeployment, cancellationTokenSource);

            return(new RegistrarService(web3, receipt.ContractAddress));
        }
Example #2
0
 public static Task <string> DeployContractAsync(Web3.Web3 web3, RegistrarDeployment registrarDeployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <RegistrarDeployment>().SendRequestAsync(registrarDeployment));
 }
        public static async Task <RegistrarService> DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, RegistrarDeployment registrarDeployment, CancellationToken cancellationToken = default(CancellationToken))
        {
            var receipt = await DeployContractAndWaitForReceiptAsync(web3, registrarDeployment, cancellationToken);

            return(new RegistrarService(web3, receipt.ContractAddress));
        }
Example #4
0
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3.Web3 web3, RegistrarDeployment registrarDeployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <RegistrarDeployment>().SendRequestAndWaitForReceiptAsync(registrarDeployment, cancellationTokenSource));
 }
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, RegistrarDeployment registrarDeployment, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(web3.Eth.GetContractDeploymentHandler <RegistrarDeployment>().SendRequestAndWaitForReceiptAsync(registrarDeployment, cancellationToken));
 }