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