public static Task <string> DeployContractAsync(Web3 web3, MyContractNameDeployment myContractNameDeployment) { return(web3.Eth.GetContractDeploymentHandler <MyContractNameDeployment>().SendRequestAsync(myContractNameDeployment)); }
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)); }
public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, MyContractNameDeployment myContractNameDeployment, CancellationTokenSource cancellationTokenSource = null) { return(web3.Eth.GetContractDeploymentHandler <MyContractNameDeployment>().SendRequestAndWaitForReceiptAsync(myContractNameDeployment, cancellationTokenSource)); }