コード例 #1
0
 public static Task <string> DeployContractAsync(Web3 web3, MyContractNameDeployment myContractNameDeployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <MyContractNameDeployment>().SendRequestAsync(myContractNameDeployment));
 }
コード例 #2
0
        public static async Task <MyContractNameService> DeployContractAndGetServiceAsync(Web3 web3, MyContractNameDeployment myContractNameDeployment, CancellationTokenSource cancellationTokenSource = null)
        {
            var receipt = await DeployContractAndWaitForReceiptAsync(web3, myContractNameDeployment, cancellationTokenSource);

            return(new MyContractNameService(web3, receipt.ContractAddress));
        }
コード例 #3
0
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, MyContractNameDeployment myContractNameDeployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <MyContractNameDeployment>().SendRequestAndWaitForReceiptAsync(myContractNameDeployment, cancellationTokenSource));
 }