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)); }
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)); }
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)); }
public Task <TransactionReceipt> QueueRequestAndWaitForReceiptAsync(QueueFunction queueFunction, CancellationTokenSource cancellationToken = null) { return(ContractHandler.SendRequestAndWaitForReceiptAsync(queueFunction, cancellationToken)); }
public Task <string> QueueRequestAsync(QueueFunction queueFunction) { return(ContractHandler.SendRequestAsync(queueFunction)); }