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