Exemplo n.º 1
0
 public Task <string> DeployContractAsync(Web3 web3, RhodeITDeployment rhodeITDeployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <RhodeITDeployment>().SendRequestAsync(rhodeITDeployment));
 }
Exemplo n.º 2
0
        public async Task <RhodeITService> DeployContractAndGetServiceAsync(Web3 web3, RhodeITDeployment rhodeITDeployment, CancellationTokenSource cancellationTokenSource = null)
        {
            var receipt = await DeployContractAndWaitForReceiptAsync(web3, rhodeITDeployment, cancellationTokenSource);

            return(new RhodeITService(web3, receipt.ContractAddress));
        }
Exemplo n.º 3
0
 public Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, RhodeITDeployment rhodeITDeployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <RhodeITDeployment>().SendRequestAndWaitForReceiptAsync(rhodeITDeployment, cancellationTokenSource));
 }