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