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

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