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