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