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