Пример #1
0
        public Task <TransactionReceipt> OnPurchaseRequestAndWaitForReceiptAsync(ushort x, ushort y, byte tile, string owner, BigInteger amount, CancellationTokenSource cancellationToken = null)
        {
            var onPurchaseFunction = new OnPurchaseFunction();

            onPurchaseFunction.X      = x;
            onPurchaseFunction.Y      = y;
            onPurchaseFunction.Tile   = tile;
            onPurchaseFunction.Owner  = owner;
            onPurchaseFunction.Amount = amount;

            return(ContractHandler.SendRequestAndWaitForReceiptAsync(onPurchaseFunction, cancellationToken));
        }
Пример #2
0
        public Task <string> OnPurchaseRequestAsync(ushort x, ushort y, byte tile, string owner, BigInteger amount)
        {
            var onPurchaseFunction = new OnPurchaseFunction();

            onPurchaseFunction.X      = x;
            onPurchaseFunction.Y      = y;
            onPurchaseFunction.Tile   = tile;
            onPurchaseFunction.Owner  = owner;
            onPurchaseFunction.Amount = amount;

            return(ContractHandler.SendRequestAsync(onPurchaseFunction));
        }
Пример #3
0
 public Task <TransactionReceipt> OnPurchaseRequestAndWaitForReceiptAsync(OnPurchaseFunction onPurchaseFunction, CancellationTokenSource cancellationToken = null)
 {
     return(ContractHandler.SendRequestAndWaitForReceiptAsync(onPurchaseFunction, cancellationToken));
 }
Пример #4
0
 public Task <string> OnPurchaseRequestAsync(OnPurchaseFunction onPurchaseFunction)
 {
     return(ContractHandler.SendRequestAsync(onPurchaseFunction));
 }