コード例 #1
0
 public Task <string> DeployContractAsync(Web3 web3, RhodeITDeployment rhodeITDeployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <RhodeITDeployment>().SendRequestAsync(rhodeITDeployment));
 }
コード例 #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));
        }
コード例 #3
0
 public Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, RhodeITDeployment rhodeITDeployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <RhodeITDeployment>().SendRequestAndWaitForReceiptAsync(rhodeITDeployment, cancellationTokenSource));
 }