public static Task <string> DeployContractAsync(Web3 Web3, ABIDeployment ABIDeployment) { return(Web3.Eth.GetContractDeploymentHandler <ABIDeployment>() .SendRequestAsync(ABIDeployment)); }
public static async Task <PublicResolverService> DeployContractAndGetServiceAsync(Web3 web3, ABIDeployment ABIDeployment, CancellationTokenSource CancellationTokenSource = null) { var Receipt = await DeployContractAndWaitForReceiptAsync(web3, ABIDeployment, CancellationTokenSource); return(new PublicResolverService(web3, Receipt.ContractAddress)); }
public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Web3 Web3, ABIDeployment ABIDeployment, CancellationTokenSource CancellationTokenSource = null) { return(Web3.Eth.GetContractDeploymentHandler <ABIDeployment>() .SendRequestAndWaitForReceiptAsync(ABIDeployment, CancellationTokenSource)); }