From fad061f3d9c5c132cc88734a6ac67e18aea4d388 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 6 Jul 2022 16:55:51 +0300 Subject: [PATCH] rpc: extend iterator-related client functionality Create a set of functions that are able to work with both session-based iterators, default unpacked iterators and client-side unpacked iterators. --- cli/wallet/nep11.go | 12 ++--- pkg/rpc/client/helper.go | 13 ++++++ pkg/rpc/client/native.go | 32 ++++++++++++- pkg/rpc/client/nep11.go | 84 ++++++++++++++++++++++++++++++++--- pkg/rpc/client/rpc.go | 5 ++- pkg/rpc/server/client_test.go | 41 +++++++++++++++-- 6 files changed, 169 insertions(+), 18 deletions(-) diff --git a/cli/wallet/nep11.go b/cli/wallet/nep11.go index 1a413dbc6..ab1cb4d5b 100644 --- a/cli/wallet/nep11.go +++ b/cli/wallet/nep11.go @@ -118,7 +118,7 @@ func newNEP11Commands() []cli.Command { }, { Name: "ownerOfD", - Usage: "print set of owners of divisible NEP-11 token with the specified ID", + Usage: "print set of owners of divisible NEP-11 token with the specified ID (the default MaxIteratorResultItems will be printed at max)", UsageText: "ownerOfD --rpc-endpoint --timeout