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