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