コード例 #1
0
        public Task <TransactionReceipt> QueueRequestAndWaitForReceiptAsync(List <string> targets, List <BigInteger> values, List <byte[]> calldatas, byte[] descriptionHash, CancellationTokenSource cancellationToken = null)
        {
            var queueFunction = new QueueFunction();

            queueFunction.Targets         = targets;
            queueFunction.Values          = values;
            queueFunction.Calldatas       = calldatas;
            queueFunction.DescriptionHash = descriptionHash;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(queueFunction, cancellationToken));
        }
コード例 #2
0
        public Task <string> QueueRequestAsync(List <string> targets, List <BigInteger> values, List <byte[]> calldatas, byte[] descriptionHash)
        {
            var queueFunction = new QueueFunction();

            queueFunction.Targets         = targets;
            queueFunction.Values          = values;
            queueFunction.Calldatas       = calldatas;
            queueFunction.DescriptionHash = descriptionHash;

            return(ContractHandler.SendRequestAsync(queueFunction));
        }
コード例 #3
0
        public static async Task FetchesFavicon()
        {
            var result = await QueueFunction.FetchLogo(new HttpClient { Timeout = TimeSpan.FromSeconds(5) }, new LogoRequest { Uri = new Uri("https://google.com") });

            Assert.False(string.IsNullOrWhiteSpace(result));
        }
コード例 #4
0
 public Task <TransactionReceipt> QueueRequestAndWaitForReceiptAsync(QueueFunction queueFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(queueFunction, cancellationToken));
 }
コード例 #5
0
 public Task <string> QueueRequestAsync(QueueFunction queueFunction)
 {
     return(ContractHandler.SendRequestAsync(queueFunction));
 }