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