Пример #1
0
 public Task <BigInteger> AllowedQueryAsync(AllowedFunction allowedFunction,
                                            BlockParameter blockParameter       = null,
                                            CancellationToken cancellationToken = default(CancellationToken))
 {
     return(ContractHandler.QueryAsync <AllowedFunction, BigInteger>(allowedFunction,
                                                                     blockParameter,
                                                                     cancellationToken));
 }
Пример #2
0
        public Task <BigInteger> AllowedQueryAsync(string owner, string spender, BlockParameter blockParameter = null)
        {
            var allowedFunction = new AllowedFunction();

            allowedFunction.Owner   = owner;
            allowedFunction.Spender = spender;

            return(ContractHandler.QueryAsync <AllowedFunction, BigInteger>(allowedFunction, blockParameter));
        }
Пример #3
0
        public Task <BigInteger> AllowedQueryAsync(string returnValue1, string returnValue2, BlockParameter blockParameter = null)
        {
            var allowedFunction = new AllowedFunction();

            allowedFunction.ReturnValue1 = returnValue1;
            allowedFunction.ReturnValue2 = returnValue2;

            return(ContractHandler.QueryAsync <AllowedFunction, BigInteger>(allowedFunction, blockParameter));
        }
Пример #4
0
 public Task <BigInteger> AllowedQueryAsync(AllowedFunction allowedFunction, BlockParameter blockParameter = null)
 {
     return(ContractHandler.QueryAsync <AllowedFunction, BigInteger>(allowedFunction, blockParameter));
 }