public static Task <string> DeployContractAsync(Web3 web3, SonmDeployment sonmDeployment) { return(web3.Eth.GetContractDeploymentHandler <SonmDeployment>().SendRequestAsync(sonmDeployment)); }
public static async Task <SonmService> DeployContractAndGetServiceAsync(Web3 web3, SonmDeployment sonmDeployment, CancellationTokenSource cancellationTokenSource = null) { var receipt = await DeployContractAndWaitForReceiptAsync(web3, sonmDeployment, cancellationTokenSource); return(new SonmService(web3, receipt.ContractAddress)); }
public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 web3, SonmDeployment sonmDeployment, CancellationTokenSource cancellationTokenSource = null) { return(web3.Eth.GetContractDeploymentHandler <SonmDeployment>().SendRequestAndWaitForReceiptAsync(sonmDeployment, cancellationTokenSource)); }