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