Beispiel #1
0
 public static Task <string> DeployContractAsync(Nethereum.Web3.Web3 web3, Sacrifice2Deployment sacrifice2Deployment)
 {
     return(web3.Eth.GetContractDeploymentHandler <Sacrifice2Deployment>().SendRequestAsync(sacrifice2Deployment));
 }
Beispiel #2
0
        public static async Task <Sacrifice2Service> DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, Sacrifice2Deployment sacrifice2Deployment, CancellationTokenSource cancellationTokenSource = null)
        {
            var receipt = await DeployContractAndWaitForReceiptAsync(web3, sacrifice2Deployment, cancellationTokenSource);

            return(new Sacrifice2Service(web3, receipt.ContractAddress));
        }
Beispiel #3
0
 public static Task <TransactionReceipt> DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, Sacrifice2Deployment sacrifice2Deployment, CancellationTokenSource cancellationTokenSource = null)
 {
     return(web3.Eth.GetContractDeploymentHandler <Sacrifice2Deployment>().SendRequestAndWaitForReceiptAsync(sacrifice2Deployment, cancellationTokenSource));
 }