From 8314e6619f9811949e869248861c5cc5a578a3fc Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Fri, 28 Jul 2023 21:41:01 +0800 Subject: [PATCH] feat: add flag to enable/disable heavy queries and refactor apis --- cmd/gnfd/cmd/root.go | 1 + e2e/tests/payment_test.go | 57 +- e2e/tests/permission_test.go | 4 +- e2e/tests/storage_bill_test.go | 4 +- e2e/tests/storage_test.go | 4 +- go.mod | 2 +- go.sum | 4 +- proto/greenfield/payment/query.proto | 76 +- proto/greenfield/storage/query.proto | 8 +- swagger/static/swagger.yaml | 2667 +++++++---------- .../client/cli/query_auto_settle_record.go | 4 +- .../query_get_payment_accounts_by_owner.go | 4 +- x/payment/client/cli/query_payment_account.go | 4 +- .../client/cli/query_payment_account_count.go | 6 +- x/payment/client/cli/query_stream_record.go | 4 +- .../keeper/grpc_query_auto_settle_record.go | 9 +- .../keeper/grpc_query_payment_account.go | 9 +- .../grpc_query_payment_account_count.go | 13 +- ...> grpc_query_payment_accounts_by_owner.go} | 4 +- x/payment/keeper/grpc_query_stream_record.go | 9 +- x/payment/keeper/grpc_query_test.go | 22 +- x/payment/keeper/msg_server_test.go | 2 +- x/payment/types/query.pb.go | 1018 ++++--- x/payment/types/query.pb.gw.go | 168 +- x/storage/client/cli/query.go | 4 +- x/storage/keeper/query.go | 10 +- x/storage/types/query.pb.go | 408 +-- x/storage/types/query.pb.gw.go | 34 +- x/storage/types/types.go | 2 +- 29 files changed, 2128 insertions(+), 2433 deletions(-) rename x/payment/keeper/{grpc_query_get_payment_accounts_by_owner.go => grpc_query_payment_accounts_by_owner.go} (79%) diff --git a/cmd/gnfd/cmd/root.go b/cmd/gnfd/cmd/root.go index 8d7b6ba04..521973dcc 100644 --- a/cmd/gnfd/cmd/root.go +++ b/cmd/gnfd/cmd/root.go @@ -369,6 +369,7 @@ func (a appCreator) newApp( baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))), baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))), baseapp.SetChainID(chainID), + baseapp.SetEnableUnsafeQuery(cast.ToBool(appOpts.Get(server.FlagEnableUnsafeQuery))), ) } diff --git a/e2e/tests/payment_test.go b/e2e/tests/payment_test.go index 7ceaa3bda..44ee355c7 100644 --- a/e2e/tests/payment_test.go +++ b/e2e/tests/payment_test.go @@ -11,6 +11,8 @@ import ( "testing" "time" + "github.com/cosmos/cosmos-sdk/types/query" + sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/tx" @@ -56,6 +58,27 @@ func (s *PaymentTestSuite) SetupTest() { s.RefreshGVGFamilies() } +func (s *PaymentTestSuite) TestQueryPaymentAccounts() { + _, err := s.Client.PaymentAccounts(context.Background(), &paymenttypes.QueryPaymentAccountsRequest{ + Pagination: &query.PageRequest{ + Offset: 10, // offset is not allowed + }, + }) + s.Require().Error(err) + + _, err = s.Client.PaymentAccounts(context.Background(), &paymenttypes.QueryPaymentAccountsRequest{ + Pagination: &query.PageRequest{ + CountTotal: true, // count total = true is not allowed + }, + }) + s.Require().Error(err) + + _, err = s.Client.PaymentAccounts(context.Background(), &paymenttypes.QueryPaymentAccountsRequest{ + Pagination: &query.PageRequest{}, + }) + s.Require().NoError(err) +} + func (s *PaymentTestSuite) TestCreatePaymentAccount() { user := s.GenAndChargeAccounts(1, 100)[0] ctx := context.Background() @@ -65,10 +88,10 @@ func (s *PaymentTestSuite) TestCreatePaymentAccount() { } _ = s.SendTxBlock(user, msgCreatePaymentAccount) // query user's payment accounts - queryGetPaymentAccountsByOwnerRequest := paymenttypes.QueryGetPaymentAccountsByOwnerRequest{ + queryGetPaymentAccountsByOwnerRequest := paymenttypes.QueryPaymentAccountsByOwnerRequest{ Owner: user.GetAddr().String(), } - paymentAccounts, err := s.Client.GetPaymentAccountsByOwner(ctx, &queryGetPaymentAccountsByOwnerRequest) + paymentAccounts, err := s.Client.PaymentAccountsByOwner(ctx, &queryGetPaymentAccountsByOwnerRequest) s.Require().NoError(err) s.T().Log(paymentAccounts) s.Require().Equal(1, len(paymentAccounts.PaymentAccounts)) @@ -300,8 +323,8 @@ func (s *PaymentTestSuite) TestDeposit_ActiveAccount() { Creator: userAddr, } _ = s.SendTxBlock(user, msgCreatePaymentAccount) - paymentAccountsReq := &paymenttypes.QueryGetPaymentAccountsByOwnerRequest{Owner: userAddr} - paymentAccounts, err := s.Client.PaymentQueryClient.GetPaymentAccountsByOwner(ctx, paymentAccountsReq) + paymentAccountsReq := &paymenttypes.QueryPaymentAccountsByOwnerRequest{Owner: userAddr} + paymentAccounts, err := s.Client.PaymentQueryClient.PaymentAccountsByOwner(ctx, paymentAccountsReq) s.Require().NoError(err) s.T().Logf("paymentAccounts %s", core.YamlString(paymentAccounts)) paymentAddr := paymentAccounts.PaymentAccounts[0] @@ -385,8 +408,8 @@ func (s *PaymentTestSuite) TestDeposit_ResumeInOneBlock() { Creator: userAddr, } _ = s.SendTxBlock(user, msgCreatePaymentAccount) - paymentAccountsReq := &paymenttypes.QueryGetPaymentAccountsByOwnerRequest{Owner: userAddr} - paymentAccounts, err := s.Client.PaymentQueryClient.GetPaymentAccountsByOwner(ctx, paymentAccountsReq) + paymentAccountsReq := &paymenttypes.QueryPaymentAccountsByOwnerRequest{Owner: userAddr} + paymentAccounts, err := s.Client.PaymentQueryClient.PaymentAccountsByOwner(ctx, paymentAccountsReq) s.Require().NoError(err) s.T().Logf("paymentAccounts %s", core.YamlString(paymentAccounts)) paymentAddr := paymentAccounts.PaymentAccounts[0] @@ -502,8 +525,8 @@ func (s *PaymentTestSuite) TestDeposit_ResumeInBlocks() { Creator: userAddr, } _ = s.SendTxBlock(user, msgCreatePaymentAccount) - paymentAccountsReq := &paymenttypes.QueryGetPaymentAccountsByOwnerRequest{Owner: userAddr} - paymentAccounts, err := s.Client.PaymentQueryClient.GetPaymentAccountsByOwner(ctx, paymentAccountsReq) + paymentAccountsReq := &paymenttypes.QueryPaymentAccountsByOwnerRequest{Owner: userAddr} + paymentAccounts, err := s.Client.PaymentQueryClient.PaymentAccountsByOwner(ctx, paymentAccountsReq) s.Require().NoError(err) s.T().Logf("paymentAccounts %s", core.YamlString(paymentAccounts)) paymentAddr := paymentAccounts.PaymentAccounts[0] @@ -637,8 +660,8 @@ func (s *PaymentTestSuite) TestAutoSettle_InOneBlock() { Creator: userAddr, } _ = s.SendTxBlock(user, msgCreatePaymentAccount) - paymentAccountsReq := &paymenttypes.QueryGetPaymentAccountsByOwnerRequest{Owner: userAddr} - paymentAccounts, err := s.Client.PaymentQueryClient.GetPaymentAccountsByOwner(ctx, paymentAccountsReq) + paymentAccountsReq := &paymenttypes.QueryPaymentAccountsByOwnerRequest{Owner: userAddr} + paymentAccounts, err := s.Client.PaymentQueryClient.PaymentAccountsByOwner(ctx, paymentAccountsReq) s.Require().NoError(err) s.T().Logf("paymentAccounts %s", core.YamlString(paymentAccounts)) paymentAddr := paymentAccounts.PaymentAccounts[0] @@ -776,8 +799,8 @@ func (s *PaymentTestSuite) TestAutoSettle_InBlocks() { Creator: userAddr, } _ = s.SendTxBlock(user, msgCreatePaymentAccount) - paymentAccountsReq := &paymenttypes.QueryGetPaymentAccountsByOwnerRequest{Owner: userAddr} - paymentAccounts, err := s.Client.PaymentQueryClient.GetPaymentAccountsByOwner(ctx, paymentAccountsReq) + paymentAccountsReq := &paymenttypes.QueryPaymentAccountsByOwnerRequest{Owner: userAddr} + paymentAccounts, err := s.Client.PaymentQueryClient.PaymentAccountsByOwner(ctx, paymentAccountsReq) s.Require().NoError(err) s.T().Logf("paymentAccounts %s", core.YamlString(paymentAccounts)) paymentAddr := paymentAccounts.PaymentAccounts[0] @@ -873,8 +896,8 @@ func (s *PaymentTestSuite) TestWithdraw() { Creator: userAddr, } _ = s.SendTxBlock(user, msgCreatePaymentAccount) - paymentAccountsReq := &paymenttypes.QueryGetPaymentAccountsByOwnerRequest{Owner: userAddr} - paymentAccounts, err := s.Client.PaymentQueryClient.GetPaymentAccountsByOwner(ctx, paymentAccountsReq) + paymentAccountsReq := &paymenttypes.QueryPaymentAccountsByOwnerRequest{Owner: userAddr} + paymentAccounts, err := s.Client.PaymentQueryClient.PaymentAccountsByOwner(ctx, paymentAccountsReq) s.Require().NoError(err) s.T().Logf("paymentAccounts %s", core.YamlString(paymentAccounts)) paymentAddr := paymentAccounts.PaymentAccounts[0] @@ -1170,11 +1193,11 @@ func (s *PaymentTestSuite) TestStorageBill_Smoke() { s.checkStreamRecordsBeforeAndAfter(streamRecordsBeforeCreateEmptyObject, streamRecordsAfterCreateEmptyObject, readPrice, readChargeRate, primaryStorePrice, secondaryStorePrice, chargeSize, uint64(emptyPayloadSize)) // test query auto settle records - queryAllAutoSettleRecordRequest := paymenttypes.QueryAllAutoSettleRecordRequest{} - queryAllAutoSettleRecordResponse, err := s.Client.AutoSettleRecordAll(ctx, &queryAllAutoSettleRecordRequest) + queryAllAutoSettleRecordRequest := paymenttypes.QueryAutoSettleRecordsRequest{} + queryAllAutoSettleRecordResponse, err := s.Client.AutoSettleRecords(ctx, &queryAllAutoSettleRecordRequest) s.Require().NoError(err) s.T().Logf("queryAllAutoSettleRecordResponse %s", core.YamlString(queryAllAutoSettleRecordResponse)) - s.Require().True(len(queryAllAutoSettleRecordResponse.AutoSettleRecord) >= 1) + s.Require().True(len(queryAllAutoSettleRecordResponse.AutoSettleRecords) >= 1) // simulate delete object, check fee preview deleteObjectMsg := storagetypes.NewMsgDeleteObject(user.GetAddr(), bucketName, objectName) diff --git a/e2e/tests/permission_test.go b/e2e/tests/permission_test.go index df5ccf718..03008b8f5 100644 --- a/e2e/tests/permission_test.go +++ b/e2e/tests/permission_test.go @@ -1253,8 +1253,8 @@ func (s *StorageTestSuite) TestGroupMembersAndPolicyGC() { s.Require().Equal(headGroupMemberResponse.GroupMember.GroupId, headGroupResponse.GetGroupInfo().Id) // list group - queryListGroupReq := storagetypes.QueryListGroupRequest{GroupOwner: owner.GetAddr().String()} - queryListGroupResp, err := s.Client.ListGroup(ctx, &queryListGroupReq) + queryListGroupReq := storagetypes.QueryListGroupsRequest{GroupOwner: owner.GetAddr().String()} + queryListGroupResp, err := s.Client.ListGroups(ctx, &queryListGroupReq) s.Require().NoError(err) s.T().Log(queryListGroupResp.String()) diff --git a/e2e/tests/storage_bill_test.go b/e2e/tests/storage_bill_test.go index 0c73fe4d2..3f1bd5710 100644 --- a/e2e/tests/storage_bill_test.go +++ b/e2e/tests/storage_bill_test.go @@ -733,10 +733,10 @@ func (s *PaymentTestSuite) CreatePaymentAccount(user keys.KeyManager, amount, de } _ = s.SendTxBlock(user, msgCreatePaymentAccount) // query user's payment accounts - queryGetPaymentAccountsByOwnerRequest := paymenttypes.QueryGetPaymentAccountsByOwnerRequest{ + queryGetPaymentAccountsByOwnerRequest := paymenttypes.QueryPaymentAccountsByOwnerRequest{ Owner: user.GetAddr().String(), } - paymentAccounts, err := s.Client.GetPaymentAccountsByOwner(ctx, &queryGetPaymentAccountsByOwnerRequest) + paymentAccounts, err := s.Client.PaymentAccountsByOwner(ctx, &queryGetPaymentAccountsByOwnerRequest) s.Require().NoError(err) s.T().Log(paymentAccounts) paymentAccountAddr := paymentAccounts.PaymentAccounts[len(paymentAccounts.PaymentAccounts)-1] diff --git a/e2e/tests/storage_test.go b/e2e/tests/storage_test.go index 5b04412ba..a2cafb76a 100644 --- a/e2e/tests/storage_test.go +++ b/e2e/tests/storage_test.go @@ -247,8 +247,8 @@ func (s *StorageTestSuite) TestCreateGroup() { s.Require().Equal(queryHeadGroupResp.GroupInfo.Owner, owner.GetAddr().String()) // 3. ListGroup - queryListGroupReq := storagetypes.QueryListGroupRequest{GroupOwner: owner.GetAddr().String()} - queryListGroupResp, err := s.Client.ListGroup(ctx, &queryListGroupReq) + queryListGroupReq := storagetypes.QueryListGroupsRequest{GroupOwner: owner.GetAddr().String()} + queryListGroupResp, err := s.Client.ListGroups(ctx, &queryListGroupReq) s.Require().NoError(err) s.Require().GreaterOrEqual(len(queryListGroupResp.GroupInfos), 1) diff --git a/go.mod b/go.mod index a0fccf520..0ca871b4c 100644 --- a/go.mod +++ b/go.mod @@ -176,7 +176,7 @@ replace ( github.com/cometbft/cometbft => github.com/bnb-chain/greenfield-cometbft v0.0.2-alpha.2 github.com/cometbft/cometbft-db => github.com/bnb-chain/greenfield-cometbft-db v0.8.1-alpha.1 github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0 - github.com/cosmos/cosmos-sdk => github.com/bnb-chain/greenfield-cosmos-sdk v0.2.3-alpha.5 + github.com/cosmos/cosmos-sdk => github.com/forcodedancing/greenfield-cosmos-sdk v0.2.1-0.20230728104115-00ab22f7d54b github.com/cosmos/iavl => github.com/bnb-chain/greenfield-iavl v0.20.1-alpha.1 github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 ) diff --git a/go.sum b/go.sum index 14d29202e..b274040fd 100644 --- a/go.sum +++ b/go.sum @@ -163,8 +163,6 @@ github.com/bnb-chain/greenfield-cometbft v0.0.2-alpha.2 h1:ys9kmgtRx04wcCextE6Cr github.com/bnb-chain/greenfield-cometbft v0.0.2-alpha.2/go.mod h1:EBmwmUdaNbGPyGjf1cMuoN3pAeM2tQu7Lfg95813EAw= github.com/bnb-chain/greenfield-cometbft-db v0.8.1-alpha.1 h1:XcWulGacHVRiSCx90Q8Y//ajOrLNBQWR/KDB89dy3cU= github.com/bnb-chain/greenfield-cometbft-db v0.8.1-alpha.1/go.mod h1:ey1CiK4bYo1RBNJLRiVbYr5CMdSxci9S/AZRINLtppI= -github.com/bnb-chain/greenfield-cosmos-sdk v0.2.3-alpha.5 h1:VZKjhnM/GvdG6iTXj63SrBgDQLtXG4piDDG2fTMTiV4= -github.com/bnb-chain/greenfield-cosmos-sdk v0.2.3-alpha.5/go.mod h1:EghjYxFg4NRNMfTJ6g9rVhjImhXQm+tuboknHqeGmJA= github.com/bnb-chain/greenfield-cosmos-sdk/api v0.0.0-20230425074444-eb5869b05fe9 h1:6fLpmmI0EZvDTfPvI0zy5dBaaTUboHnEkoC5/p/w8TQ= github.com/bnb-chain/greenfield-cosmos-sdk/api v0.0.0-20230425074444-eb5869b05fe9/go.mod h1:rbc4o84RSEvhf09o2+4Qiazsv0snRJLiEZdk17HeIDw= github.com/bnb-chain/greenfield-cosmos-sdk/math v0.0.0-20230425074444-eb5869b05fe9 h1:1ZdK+iR1Up02bOa2YTZCml7PBpP//kcdamOcK6aWO/s= @@ -360,6 +358,8 @@ github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+ github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/forcodedancing/greenfield-cosmos-sdk v0.2.1-0.20230728104115-00ab22f7d54b h1:fIRftTPUOjRxh13rwwb5Y54rxV1aHj6QVp473nU3YHg= +github.com/forcodedancing/greenfield-cosmos-sdk v0.2.1-0.20230728104115-00ab22f7d54b/go.mod h1:EghjYxFg4NRNMfTJ6g9rVhjImhXQm+tuboknHqeGmJA= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= diff --git a/proto/greenfield/payment/query.proto b/proto/greenfield/payment/query.proto index 9df978904..0aea1b9e6 100644 --- a/proto/greenfield/payment/query.proto +++ b/proto/greenfield/payment/query.proto @@ -24,59 +24,59 @@ service Query { option (google.api.http).get = "/greenfield/payment/params"; } - // ParamsByTimestamp queries the parameters of the module. + // ParamsByTimestamp queries the parameter of the module by timestamp. rpc ParamsByTimestamp(QueryParamsByTimestampRequest) returns (QueryParamsByTimestampResponse) { option (google.api.http).get = "/greenfield/payment/params/{timestamp}"; } - // Queries a StreamRecord by index. + // Queries our flows by account. rpc OutFlows(QueryOutFlowsRequest) returns (QueryOutFlowsResponse) { option (google.api.http).get = "/greenfield/payment/out_flows/{account}"; } - // Queries a StreamRecord by index. + // Queries a stream record by account. rpc StreamRecord(QueryGetStreamRecordRequest) returns (QueryGetStreamRecordResponse) { option (google.api.http).get = "/greenfield/payment/stream_record/{account}"; } - // Queries a list of StreamRecord items. - rpc StreamRecordAll(QueryAllStreamRecordRequest) returns (QueryAllStreamRecordResponse) { - option (google.api.http).get = "/greenfield/payment/stream_record"; + // Queries all stream records. + rpc StreamRecords(QueryStreamRecordsRequest) returns (QueryStreamRecordsResponse) { + option (google.api.http).get = "/greenfield/payment/stream_records"; } - // Queries a PaymentAccountCount by index. - rpc PaymentAccountCount(QueryGetPaymentAccountCountRequest) returns (QueryGetPaymentAccountCountResponse) { + // Queries the count of payment account by owner. + rpc PaymentAccountCount(QueryPaymentAccountCountRequest) returns (QueryPaymentAccountCountResponse) { option (google.api.http).get = "/greenfield/payment/payment_account_count/{owner}"; } - // Queries a list of PaymentAccountCount items. - rpc PaymentAccountCountAll(QueryAllPaymentAccountCountRequest) returns (QueryAllPaymentAccountCountResponse) { - option (google.api.http).get = "/greenfield/payment/payment_account_count"; + // Queries all counts of payment account for all owners. + rpc PaymentAccountCounts(QueryPaymentAccountCountsRequest) returns (QueryPaymentAccountCountsResponse) { + option (google.api.http).get = "/greenfield/payment/payment_account_counts"; } - // Queries a PaymentAccount by index. + // Queries a payment account by payment account address. rpc PaymentAccount(QueryGetPaymentAccountRequest) returns (QueryGetPaymentAccountResponse) { option (google.api.http).get = "/greenfield/payment/payment_account/{addr}"; } - // Queries a list of PaymentAccount items. - rpc PaymentAccountAll(QueryAllPaymentAccountRequest) returns (QueryAllPaymentAccountResponse) { - option (google.api.http).get = "/greenfield/payment/payment_account"; + // Queries all payment accounts. + rpc PaymentAccounts(QueryPaymentAccountsRequest) returns (QueryPaymentAccountsResponse) { + option (google.api.http).get = "/greenfield/payment/payment_accounts"; } - // Queries a list of DynamicBalance items. + // Queries dynamic balance of a payment account. rpc DynamicBalance(QueryDynamicBalanceRequest) returns (QueryDynamicBalanceResponse) { option (google.api.http).get = "/greenfield/payment/dynamic_balance/{account}"; } - // Queries a list of GetPaymentAccountsByOwner items. - rpc GetPaymentAccountsByOwner(QueryGetPaymentAccountsByOwnerRequest) returns (QueryGetPaymentAccountsByOwnerResponse) { - option (google.api.http).get = "/greenfield/payment/get_payment_accounts_by_owner/{owner}"; + // Queries all payment accounts by a owner. + rpc PaymentAccountsByOwner(QueryPaymentAccountsByOwnerRequest) returns (QueryPaymentAccountsByOwnerResponse) { + option (google.api.http).get = "/greenfield/payment/payment_accounts_by_owner/{owner}"; } - // Queries a list of AutoSettleRecord items. - rpc AutoSettleRecordAll(QueryAllAutoSettleRecordRequest) returns (QueryAllAutoSettleRecordResponse) { - option (google.api.http).get = "/greenfield/payment/auto_settle_record"; + // Queries all auto settle records. + rpc AutoSettleRecords(QueryAutoSettleRecordsRequest) returns (QueryAutoSettleRecordsResponse) { + option (google.api.http).get = "/greenfield/payment/auto_settle_records"; } } @@ -117,29 +117,29 @@ message QueryGetStreamRecordResponse { StreamRecord stream_record = 1 [(gogoproto.nullable) = false]; } -message QueryAllStreamRecordRequest { +message QueryStreamRecordsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllStreamRecordResponse { - repeated StreamRecord stream_record = 1 [(gogoproto.nullable) = false]; +message QueryStreamRecordsResponse { + repeated StreamRecord stream_records = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetPaymentAccountCountRequest { +message QueryPaymentAccountCountRequest { string owner = 1; } -message QueryGetPaymentAccountCountResponse { +message QueryPaymentAccountCountResponse { PaymentAccountCount payment_account_count = 1 [(gogoproto.nullable) = false]; } -message QueryAllPaymentAccountCountRequest { +message QueryPaymentAccountCountsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllPaymentAccountCountResponse { - repeated PaymentAccountCount payment_account_count = 1 [(gogoproto.nullable) = false]; +message QueryPaymentAccountCountsResponse { + repeated PaymentAccountCount payment_account_counts = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -151,12 +151,12 @@ message QueryGetPaymentAccountResponse { PaymentAccount payment_account = 1 [(gogoproto.nullable) = false]; } -message QueryAllPaymentAccountRequest { +message QueryPaymentAccountsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllPaymentAccountResponse { - repeated PaymentAccount payment_account = 1 [(gogoproto.nullable) = false]; +message QueryPaymentAccountsResponse { + repeated PaymentAccount payment_accounts = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -201,19 +201,19 @@ message QueryDynamicBalanceResponse { ]; } -message QueryGetPaymentAccountsByOwnerRequest { +message QueryPaymentAccountsByOwnerRequest { string owner = 1; } -message QueryGetPaymentAccountsByOwnerResponse { +message QueryPaymentAccountsByOwnerResponse { repeated string paymentAccounts = 1; } -message QueryAllAutoSettleRecordRequest { +message QueryAutoSettleRecordsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllAutoSettleRecordResponse { - repeated AutoSettleRecord auto_settle_record = 1 [(gogoproto.nullable) = false]; +message QueryAutoSettleRecordsResponse { + repeated AutoSettleRecord auto_settle_records = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/greenfield/storage/query.proto b/proto/greenfield/storage/query.proto index 411f7f931..e0006cbe3 100644 --- a/proto/greenfield/storage/query.proto +++ b/proto/greenfield/storage/query.proto @@ -94,8 +94,8 @@ service Query { } // Queries a list of ListGroup items. - rpc ListGroup(QueryListGroupRequest) returns (QueryListGroupResponse) { - option (google.api.http).get = "/greenfield/storage/list_group/{group_owner}"; + rpc ListGroups(QueryListGroupsRequest) returns (QueryListGroupsResponse) { + option (google.api.http).get = "/greenfield/storage/list_groups/{group_owner}"; } // Queries a list of HeadGroupMember items. @@ -247,12 +247,12 @@ message QueryHeadGroupResponse { GroupInfo group_info = 1; } -message QueryListGroupRequest { +message QueryListGroupsRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; string group_owner = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } -message QueryListGroupResponse { +message QueryListGroupsResponse { cosmos.base.query.v1beta1.PageResponse pagination = 1; repeated GroupInfo group_infos = 2; } diff --git a/swagger/static/swagger.yaml b/swagger/static/swagger.yaml index 9b3a4b440..7949aa993 100644 --- a/swagger/static/swagger.yaml +++ b/swagger/static/swagger.yaml @@ -329,17 +329,17 @@ paths: format: byte tags: - Query - /greenfield/payment/auto_settle_record: + /greenfield/payment/auto_settle_records: get: - summary: Queries a list of AutoSettleRecord items. - operationId: AutoSettleRecordAll + summary: Queries all auto settle records. + operationId: AutoSettleRecords responses: '200': description: A successful response. schema: type: object properties: - auto_settle_record: + auto_settle_records: type: array items: type: object @@ -473,7 +473,7 @@ paths: - Query /greenfield/payment/dynamic_balance/{account}: get: - summary: Queries a list of DynamicBalance items. + summary: Queries dynamic balance of a payment account. operationId: DynamicBalance responses: '200': @@ -596,52 +596,9 @@ paths: type: string tags: - Query - /greenfield/payment/get_payment_accounts_by_owner/{owner}: - get: - summary: Queries a list of GetPaymentAccountsByOwner items. - operationId: GetPaymentAccountsByOwner - responses: - '200': - description: A successful response. - schema: - type: object - properties: - paymentAccounts: - type: array - items: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: owner - in: path - required: true - type: string - tags: - - Query /greenfield/payment/out_flows/{account}: get: - summary: Queries a StreamRecord by index. + summary: Queries our flows by account. operationId: OutFlows responses: '200': @@ -794,7 +751,7 @@ paths: - Query /greenfield/payment/params/{timestamp}: get: - summary: ParamsByTimestamp queries the parameters of the module. + summary: ParamsByTimestamp queries the parameter of the module by timestamp. operationId: ParamsByTimestamp responses: '200': @@ -886,10 +843,10 @@ paths: format: int64 tags: - Query - /greenfield/payment/payment_account: + /greenfield/payment/payment_account/{addr}: get: - summary: Queries a list of PaymentAccount items. - operationId: PaymentAccountAll + summary: Queries a payment account by payment account address. + operationId: PaymentAccount responses: '200': description: A successful response. @@ -897,48 +854,18 @@ paths: type: object properties: payment_account: - type: array - items: - type: object - properties: - addr: - type: string - title: the address of the payment account - owner: - type: string - title: the owner address of the payment account - refundable: - type: boolean - title: whether the payment account is refundable - title: PaymentAccount defines a payment account - pagination: type: object properties: - next_key: + addr: type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: + title: the address of the payment account + owner: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + title: the owner address of the payment account + refundable: + type: boolean + title: whether the payment account is refundable + title: PaymentAccount defines a payment account default: description: An unexpected error response. schema: @@ -962,87 +889,35 @@ paths: type: string format: byte parameters: - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false + - name: addr + in: path + required: true type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - Query - /greenfield/payment/payment_account/{addr}: + /greenfield/payment/payment_account_count/{owner}: get: - summary: Queries a PaymentAccount by index. - operationId: PaymentAccount + summary: Queries the count of payment account by owner. + operationId: PaymentAccountCount responses: '200': description: A successful response. schema: type: object properties: - payment_account: + payment_account_count: type: object properties: - addr: - type: string - title: the address of the payment account owner: type: string - title: the owner address of the payment account - refundable: - type: boolean - title: whether the payment account is refundable - title: PaymentAccount defines a payment account + title: owner is the account address + count: + type: string + format: uint64 + title: count is the number of payment accounts for the account + title: >- + PaymentAccountCount defines the state struct which stores the + number of payment accounts for an account default: description: An unexpected error response. schema: @@ -1066,23 +941,23 @@ paths: type: string format: byte parameters: - - name: addr + - name: owner in: path required: true type: string tags: - Query - /greenfield/payment/payment_account_count: + /greenfield/payment/payment_account_counts: get: - summary: Queries a list of PaymentAccountCount items. - operationId: PaymentAccountCountAll + summary: Queries all counts of payment account for all owners. + operationId: PaymentAccountCounts responses: '200': description: A successful response. schema: type: object properties: - payment_account_count: + payment_account_counts: type: array items: type: object @@ -1206,138 +1081,31 @@ paths: type: boolean tags: - Query - /greenfield/payment/payment_account_count/{owner}: + /greenfield/payment/payment_accounts: get: - summary: Queries a PaymentAccountCount by index. - operationId: PaymentAccountCount + summary: Queries all payment accounts. + operationId: PaymentAccounts responses: '200': description: A successful response. schema: type: object properties: - payment_account_count: - type: object - properties: - owner: - type: string - title: owner is the account address - count: - type: string - format: uint64 - title: count is the number of payment accounts for the account - title: >- - PaymentAccountCount defines the state struct which stores the - number of payment accounts for an account - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: + payment_accounts: type: array items: type: object properties: - type_url: - type: string - value: - type: string - format: byte - parameters: - - name: owner - in: path - required: true - type: string - tags: - - Query - /greenfield/payment/stream_record: - get: - summary: Queries a list of StreamRecord items. - operationId: StreamRecordAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - stream_record: - type: array - items: - type: object - properties: - account: - type: string - title: account address - crud_timestamp: - type: string - format: int64 - title: latest update timestamp of the stream record - netflow_rate: - type: string - description: >- - The per-second rate that an account's balance is - changing. - - It is the sum of the account's inbound and outbound flow - rates. - static_balance: - type: string - description: >- - The balance of the stream account at the latest CRUD - timestamp. - buffer_balance: - type: string - title: >- - reserved balance of the stream account - - If the netflow rate is negative, the reserved balance is - `netflow_rate * reserve_time` - lock_balance: - type: string - title: >- - the locked balance of the stream account after it puts a - new object and before the object is sealed - status: - title: the status of the stream account - type: string - enum: - - STREAM_ACCOUNT_STATUS_ACTIVE - - STREAM_ACCOUNT_STATUS_FROZEN - default: STREAM_ACCOUNT_STATUS_ACTIVE - description: >- - - STREAM_ACCOUNT_STATUS_ACTIVE: - STREAM_ACCOUNT_STATUS_ACTIVE defines the active status - of a stream account. - - STREAM_ACCOUNT_STATUS_FROZEN: STREAM_ACCOUNT_STATUS_FROZEN defines the frozen status of a stream account. - A frozen stream account cannot be used as payment - address for buckets. - - It can be unfrozen by depositing more BNB to the stream - account. - settle_timestamp: - type: string - format: int64 - title: >- - the unix timestamp when the stream account will be - settled - out_flow_count: + addr: type: string - format: uint64 - title: the count of its out flows - frozen_netflow_rate: + title: the address of the payment account + owner: type: string - title: >- - the frozen netflow rate, which is used when resuming - stream account - title: Stream Payment Record of a stream account + title: the owner address of the payment account + refundable: + type: boolean + title: whether the payment account is refundable + title: PaymentAccount defines a payment account pagination: type: object properties: @@ -1447,9 +1215,52 @@ paths: type: boolean tags: - Query + /greenfield/payment/payment_accounts_by_owner/{owner}: + get: + summary: Queries all payment accounts by a owner. + operationId: PaymentAccountsByOwner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + paymentAccounts: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + parameters: + - name: owner + in: path + required: true + type: string + tags: + - Query /greenfield/payment/stream_record/{account}: get: - summary: Queries a StreamRecord by index. + summary: Queries a stream record by account. operationId: StreamRecord responses: '200': @@ -1551,6 +1362,195 @@ paths: type: string tags: - Query + /greenfield/payment/stream_records: + get: + summary: Queries all stream records. + operationId: StreamRecords + responses: + '200': + description: A successful response. + schema: + type: object + properties: + stream_records: + type: array + items: + type: object + properties: + account: + type: string + title: account address + crud_timestamp: + type: string + format: int64 + title: latest update timestamp of the stream record + netflow_rate: + type: string + description: >- + The per-second rate that an account's balance is + changing. + + It is the sum of the account's inbound and outbound flow + rates. + static_balance: + type: string + description: >- + The balance of the stream account at the latest CRUD + timestamp. + buffer_balance: + type: string + title: >- + reserved balance of the stream account + + If the netflow rate is negative, the reserved balance is + `netflow_rate * reserve_time` + lock_balance: + type: string + title: >- + the locked balance of the stream account after it puts a + new object and before the object is sealed + status: + title: the status of the stream account + type: string + enum: + - STREAM_ACCOUNT_STATUS_ACTIVE + - STREAM_ACCOUNT_STATUS_FROZEN + default: STREAM_ACCOUNT_STATUS_ACTIVE + description: >- + - STREAM_ACCOUNT_STATUS_ACTIVE: + STREAM_ACCOUNT_STATUS_ACTIVE defines the active status + of a stream account. + - STREAM_ACCOUNT_STATUS_FROZEN: STREAM_ACCOUNT_STATUS_FROZEN defines the frozen status of a stream account. + A frozen stream account cannot be used as payment + address for buckets. + + It can be unfrozen by depositing more BNB to the stream + account. + settle_timestamp: + type: string + format: int64 + title: >- + the unix timestamp when the stream account will be + settled + out_flow_count: + type: string + format: uint64 + title: the count of its out flows + frozen_netflow_rate: + type: string + title: >- + the frozen netflow rate, which is used when resuming + stream account + title: Stream Payment Record of a stream account + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the + + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. + + It is less efficient than using key. Only one of offset or key + should + + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: >- + limit is the total number of results to be returned in the result + page. + + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: >- + count_total is set to true to indicate that the result set should + include + + a count of the total number of items available for pagination in + UIs. + + count_total is only respected when offset is used. It is ignored + when key + + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query /greenfield/sp/get_secondary_sp_store_price_by_time/{timestamp}: get: summary: get secondary store price by time @@ -3460,10 +3460,10 @@ paths: type: boolean tags: - Query - /greenfield/storage/list_group/{group_owner}: + /greenfield/storage/list_groups/{group_owner}: get: summary: Queries a list of ListGroup items. - operationId: ListGroup + operationId: ListGroups responses: '200': description: A successful response. @@ -5694,10 +5694,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -5737,6 +5733,7 @@ paths: name "y.z". + JSON @@ -5898,10 +5895,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -5941,6 +5934,7 @@ paths: name "y.z". + JSON @@ -6106,10 +6100,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -6149,6 +6139,7 @@ paths: name "y.z". + JSON @@ -6326,10 +6317,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -6369,6 +6356,7 @@ paths: name "y.z". + JSON @@ -6574,10 +6562,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -6617,6 +6601,7 @@ paths: name "y.z". + JSON @@ -6768,10 +6753,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -6811,6 +6792,7 @@ paths: name "y.z". + JSON @@ -6987,10 +6969,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -7030,6 +7008,7 @@ paths: name "y.z". + JSON @@ -7203,10 +7182,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -7246,6 +7221,7 @@ paths: name "y.z". + JSON @@ -7403,10 +7379,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -7446,6 +7418,7 @@ paths: name "y.z". + JSON @@ -7594,10 +7567,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -7637,6 +7606,7 @@ paths: name "y.z". + JSON @@ -7788,10 +7758,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -7831,6 +7797,7 @@ paths: name "y.z". + JSON @@ -8021,10 +7988,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -8064,6 +8027,7 @@ paths: name "y.z". + JSON @@ -8218,10 +8182,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -8261,6 +8221,7 @@ paths: name "y.z". + JSON @@ -8453,10 +8414,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -8496,6 +8453,7 @@ paths: name "y.z". + JSON @@ -8727,10 +8685,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -8770,6 +8724,7 @@ paths: name "y.z". + JSON @@ -8954,10 +8909,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -8997,6 +8948,7 @@ paths: name "y.z". + JSON @@ -9217,10 +9169,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -9260,6 +9208,7 @@ paths: name "y.z". + JSON @@ -9444,10 +9393,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -9487,6 +9432,7 @@ paths: name "y.z". + JSON @@ -11166,10 +11112,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -11209,6 +11151,7 @@ paths: name "y.z". + JSON @@ -12499,10 +12442,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -12542,6 +12481,7 @@ paths: name "y.z". + JSON @@ -13813,10 +13753,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -13856,6 +13792,7 @@ paths: name "y.z". + JSON @@ -14097,10 +14034,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -14140,6 +14073,7 @@ paths: name "y.z". + JSON @@ -14308,10 +14242,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -14351,6 +14281,7 @@ paths: name "y.z". + JSON @@ -14510,10 +14441,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -14553,6 +14480,7 @@ paths: name "y.z". + JSON @@ -14735,10 +14663,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -14778,6 +14702,7 @@ paths: name "y.z". + JSON @@ -14994,10 +14919,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -15037,6 +14958,7 @@ paths: name "y.z". + JSON @@ -15219,10 +15141,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -15262,6 +15180,7 @@ paths: name "y.z". + JSON @@ -16422,10 +16341,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -16465,6 +16380,7 @@ paths: name "y.z". + JSON @@ -16641,10 +16557,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -16684,6 +16596,7 @@ paths: name "y.z". + JSON @@ -16889,10 +16802,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -16932,6 +16841,7 @@ paths: name "y.z". + JSON @@ -17083,10 +16993,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -17126,6 +17032,7 @@ paths: name "y.z". + JSON @@ -17396,10 +17303,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -17439,6 +17342,7 @@ paths: name "y.z". + JSON @@ -17728,10 +17632,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -17771,6 +17671,7 @@ paths: name "y.z". + JSON @@ -18110,10 +18011,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -18153,6 +18050,7 @@ paths: name "y.z". + JSON @@ -18764,10 +18662,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -18807,6 +18701,7 @@ paths: name "y.z". + JSON @@ -18977,10 +18872,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -19020,6 +18911,7 @@ paths: name "y.z". + JSON @@ -19299,10 +19191,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -19342,6 +19230,7 @@ paths: name "y.z". + JSON @@ -19593,10 +19482,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -19636,6 +19521,7 @@ paths: name "y.z". + JSON @@ -19892,10 +19778,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -19935,6 +19817,7 @@ paths: name "y.z". + JSON @@ -20166,10 +20049,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -20209,6 +20088,7 @@ paths: name "y.z". + JSON @@ -20475,10 +20355,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -20518,6 +20394,7 @@ paths: name "y.z". + JSON @@ -20716,10 +20593,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -20759,6 +20632,7 @@ paths: name "y.z". + JSON @@ -21000,10 +20874,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -21043,6 +20913,7 @@ paths: name "y.z". + JSON @@ -21318,10 +21189,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -21361,6 +21228,7 @@ paths: name "y.z". + JSON @@ -22206,10 +22074,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -22249,6 +22113,7 @@ paths: name "y.z". + JSON @@ -22640,10 +22505,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -22683,6 +22544,7 @@ paths: name "y.z". + JSON @@ -23014,10 +22876,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -23057,6 +22915,7 @@ paths: name "y.z". + JSON @@ -23285,10 +23144,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -23328,6 +23183,7 @@ paths: name "y.z". + JSON @@ -23667,10 +23523,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -23710,6 +23562,7 @@ paths: name "y.z". + JSON @@ -23931,10 +23784,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -23974,6 +23823,7 @@ paths: name "y.z". + JSON @@ -24290,10 +24140,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -24333,6 +24179,7 @@ paths: name "y.z". + JSON @@ -24585,10 +24432,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -24628,6 +24471,7 @@ paths: name "y.z". + JSON @@ -24950,10 +24794,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -24993,6 +24833,7 @@ paths: name "y.z". + JSON @@ -25202,9 +25043,217 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /cosmos/staking/v1beta1/pool: + get: + summary: Pool queries the pool info. + operationId: Pool + responses: + '200': + description: A successful response. + schema: + type: object + properties: + pool: + description: pool defines the pool info. + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + description: QueryPoolResponse is response type for the Query/Pool RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + value: + type: string + format: byte + description: >- + Must be a valid serialized protocol buffer of the above + specified type. + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. @@ -25245,220 +25294,6 @@ paths: name "y.z". - JSON - - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field - - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tags: - - Query - /cosmos/staking/v1beta1/pool: - get: - summary: Pool queries the pool info. - operationId: Pool - responses: - '200': - description: A successful response. - schema: - type: object - properties: - pool: - description: pool defines the pool info. - type: object - properties: - not_bonded_tokens: - type: string - bonded_tokens: - type: string - description: QueryPoolResponse is response type for the Query/Pool RPC method. - default: - description: An unexpected error response. - schema: - type: object - properties: - error: - type: string - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - JSON @@ -25624,10 +25459,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -25667,6 +25498,7 @@ paths: name "y.z". + JSON @@ -26006,10 +25838,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -26049,6 +25877,7 @@ paths: name "y.z". + JSON @@ -26268,10 +26097,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -26311,6 +26136,7 @@ paths: name "y.z". + JSON @@ -26627,10 +26453,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -26670,6 +26492,7 @@ paths: name "y.z". + JSON @@ -26916,10 +26739,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -26959,6 +26778,7 @@ paths: name "y.z". + JSON @@ -27235,10 +27055,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -27278,6 +27094,7 @@ paths: name "y.z". + JSON @@ -27516,10 +27333,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -27559,6 +27372,7 @@ paths: name "y.z". + JSON @@ -27827,10 +27641,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -27870,6 +27680,7 @@ paths: name "y.z". + JSON @@ -28095,10 +27906,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -28138,6 +27945,7 @@ paths: name "y.z". + JSON @@ -28328,10 +28136,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -28371,6 +28175,7 @@ paths: name "y.z". + JSON @@ -28562,10 +28367,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -28605,6 +28406,7 @@ paths: name "y.z". + JSON @@ -28786,10 +28588,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -28829,6 +28627,7 @@ paths: name "y.z". + JSON @@ -29071,10 +28870,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -29114,6 +28909,7 @@ paths: name "y.z". + JSON @@ -29276,10 +29072,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -29319,6 +29111,7 @@ paths: name "y.z". + JSON @@ -29487,10 +29280,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -29530,6 +29319,7 @@ paths: name "y.z". + JSON @@ -29860,10 +29650,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -29903,6 +29689,7 @@ paths: name "y.z". + JSON @@ -30116,10 +29903,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -30159,6 +29942,7 @@ paths: name "y.z". + JSON @@ -30358,10 +30142,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -30401,6 +30181,7 @@ paths: name "y.z". + JSON @@ -30626,10 +30407,6 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -30669,6 +30446,7 @@ paths: name "y.z". + JSON @@ -31071,10 +30849,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -31110,6 +30884,7 @@ definitions: name "y.z". + JSON @@ -31278,10 +31053,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -31317,6 +31088,7 @@ definitions: name "y.z". + JSON @@ -31792,10 +31564,10 @@ definitions: title: >- PaymentAccountCount defines the state struct which stores the number of payment accounts for an account - greenfield.payment.QueryAllAutoSettleRecordResponse: + greenfield.payment.QueryAutoSettleRecordsResponse: type: object properties: - auto_settle_record: + auto_settle_records: type: array items: type: object @@ -31843,184 +31615,6 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - greenfield.payment.QueryAllPaymentAccountCountResponse: - type: object - properties: - payment_account_count: - type: array - items: - type: object - properties: - owner: - type: string - title: owner is the account address - count: - type: string - format: uint64 - title: count is the number of payment accounts for the account - title: >- - PaymentAccountCount defines the state struct which stores the number - of payment accounts for an account - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - greenfield.payment.QueryAllPaymentAccountResponse: - type: object - properties: - payment_account: - type: array - items: - type: object - properties: - addr: - type: string - title: the address of the payment account - owner: - type: string - title: the owner address of the payment account - refundable: - type: boolean - title: whether the payment account is refundable - title: PaymentAccount defines a payment account - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - greenfield.payment.QueryAllStreamRecordResponse: - type: object - properties: - stream_record: - type: array - items: - type: object - properties: - account: - type: string - title: account address - crud_timestamp: - type: string - format: int64 - title: latest update timestamp of the stream record - netflow_rate: - type: string - description: |- - The per-second rate that an account's balance is changing. - It is the sum of the account's inbound and outbound flow rates. - static_balance: - type: string - description: The balance of the stream account at the latest CRUD timestamp. - buffer_balance: - type: string - title: >- - reserved balance of the stream account - - If the netflow rate is negative, the reserved balance is - `netflow_rate * reserve_time` - lock_balance: - type: string - title: >- - the locked balance of the stream account after it puts a new - object and before the object is sealed - status: - title: the status of the stream account - type: string - enum: - - STREAM_ACCOUNT_STATUS_ACTIVE - - STREAM_ACCOUNT_STATUS_FROZEN - default: STREAM_ACCOUNT_STATUS_ACTIVE - description: >- - - STREAM_ACCOUNT_STATUS_ACTIVE: STREAM_ACCOUNT_STATUS_ACTIVE - defines the active status of a stream account. - - STREAM_ACCOUNT_STATUS_FROZEN: STREAM_ACCOUNT_STATUS_FROZEN defines the frozen status of a stream account. - A frozen stream account cannot be used as payment address for - buckets. - - It can be unfrozen by depositing more BNB to the stream account. - settle_timestamp: - type: string - format: int64 - title: the unix timestamp when the stream account will be settled - out_flow_count: - type: string - format: uint64 - title: the count of its out flows - frozen_netflow_rate: - type: string - title: >- - the frozen netflow rate, which is used when resuming stream - account - title: Stream Payment Record of a stream account - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: |- - PageResponse is to be embedded in gRPC response messages where the - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } greenfield.payment.QueryDynamicBalanceResponse: type: object properties: @@ -32104,22 +31698,6 @@ definitions: change_rate: type: string title: change_rate is the netflow rate of the given account - greenfield.payment.QueryGetPaymentAccountCountResponse: - type: object - properties: - payment_account_count: - type: object - properties: - owner: - type: string - title: owner is the account address - count: - type: string - format: uint64 - title: count is the number of payment accounts for the account - title: >- - PaymentAccountCount defines the state struct which stores the number - of payment accounts for an account greenfield.payment.QueryGetPaymentAccountResponse: type: object properties: @@ -32136,13 +31714,6 @@ definitions: type: boolean title: whether the payment account is refundable title: PaymentAccount defines a payment account - greenfield.payment.QueryGetPaymentAccountsByOwnerResponse: - type: object - properties: - paymentAccounts: - type: array - items: - type: string greenfield.payment.QueryGetStreamRecordResponse: type: object properties: @@ -32341,6 +31912,207 @@ definitions: type: string title: The denom of fee charged in payment module description: QueryParamsResponse is response type for the Query/Params RPC method. + greenfield.payment.QueryPaymentAccountCountResponse: + type: object + properties: + payment_account_count: + type: object + properties: + owner: + type: string + title: owner is the account address + count: + type: string + format: uint64 + title: count is the number of payment accounts for the account + title: >- + PaymentAccountCount defines the state struct which stores the number + of payment accounts for an account + greenfield.payment.QueryPaymentAccountCountsResponse: + type: object + properties: + payment_account_counts: + type: array + items: + type: object + properties: + owner: + type: string + title: owner is the account address + count: + type: string + format: uint64 + title: count is the number of payment accounts for the account + title: >- + PaymentAccountCount defines the state struct which stores the number + of payment accounts for an account + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: |- + PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + greenfield.payment.QueryPaymentAccountsByOwnerResponse: + type: object + properties: + paymentAccounts: + type: array + items: + type: string + greenfield.payment.QueryPaymentAccountsResponse: + type: object + properties: + payment_accounts: + type: array + items: + type: object + properties: + addr: + type: string + title: the address of the payment account + owner: + type: string + title: the owner address of the payment account + refundable: + type: boolean + title: whether the payment account is refundable + title: PaymentAccount defines a payment account + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: |- + PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + greenfield.payment.QueryStreamRecordsResponse: + type: object + properties: + stream_records: + type: array + items: + type: object + properties: + account: + type: string + title: account address + crud_timestamp: + type: string + format: int64 + title: latest update timestamp of the stream record + netflow_rate: + type: string + description: |- + The per-second rate that an account's balance is changing. + It is the sum of the account's inbound and outbound flow rates. + static_balance: + type: string + description: The balance of the stream account at the latest CRUD timestamp. + buffer_balance: + type: string + title: >- + reserved balance of the stream account + + If the netflow rate is negative, the reserved balance is + `netflow_rate * reserve_time` + lock_balance: + type: string + title: >- + the locked balance of the stream account after it puts a new + object and before the object is sealed + status: + title: the status of the stream account + type: string + enum: + - STREAM_ACCOUNT_STATUS_ACTIVE + - STREAM_ACCOUNT_STATUS_FROZEN + default: STREAM_ACCOUNT_STATUS_ACTIVE + description: >- + - STREAM_ACCOUNT_STATUS_ACTIVE: STREAM_ACCOUNT_STATUS_ACTIVE + defines the active status of a stream account. + - STREAM_ACCOUNT_STATUS_FROZEN: STREAM_ACCOUNT_STATUS_FROZEN defines the frozen status of a stream account. + A frozen stream account cannot be used as payment address for + buckets. + + It can be unfrozen by depositing more BNB to the stream account. + settle_timestamp: + type: string + format: int64 + title: the unix timestamp when the stream account will be settled + out_flow_count: + type: string + format: uint64 + title: the count of its out flows + frozen_netflow_rate: + type: string + title: >- + the frozen netflow rate, which is used when resuming stream + account + title: Stream Payment Record of a stream account + pagination: + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: |- + PageResponse is to be embedded in gRPC response messages where the + corresponding request message has used PageRequest. + + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } greenfield.payment.StreamAccountStatus: type: string enum: @@ -34204,7 +33976,7 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - greenfield.storage.QueryListGroupResponse: + greenfield.storage.QueryListGroupsResponse: type: object properties: pagination: @@ -35594,10 +35366,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -35633,6 +35401,7 @@ definitions: name "y.z". + JSON @@ -35813,10 +35582,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -35853,6 +35618,7 @@ definitions: name "y.z". + JSON @@ -35992,10 +35758,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -36031,6 +35793,7 @@ definitions: name "y.z". + JSON @@ -36167,10 +35930,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -36206,6 +35965,7 @@ definitions: name "y.z". + JSON @@ -36360,10 +36120,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -36399,6 +36155,7 @@ definitions: name "y.z". + JSON @@ -36535,10 +36292,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -36574,6 +36327,7 @@ definitions: name "y.z". + JSON @@ -36731,10 +36485,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -36770,6 +36520,188 @@ definitions: name "y.z". + + JSON + + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom JSON + + representation, that representation will be embedded adding a field + + `value` which holds the custom JSON in addition to the `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + time when the grant will expire and will be pruned. If null, then the + grant + + doesn't have a time expiration (other conditions in `authorization` + + may apply to invalidate the grant) + description: |- + Grant gives permissions to execute + the provide method with expiration time. + cosmos.authz.v1beta1.GrantAuthorization: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + type_url: + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + value: + type: string + format: byte + description: >- + Must be a valid serialized protocol buffer of the above specified + type. + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + JSON @@ -36806,196 +36738,226 @@ definitions: expiration: type: string format: date-time - title: >- - time when the grant will expire and will be pruned. If null, then the - grant - - doesn't have a time expiration (other conditions in `authorization` + title: >- + GrantAuthorization extends a grant with both the addresses of the grantee + and granter. - may apply to invalidate the grant) - description: |- - Grant gives permissions to execute - the provide method with expiration time. - cosmos.authz.v1beta1.GrantAuthorization: + It is used in genesis.proto and query.proto + cosmos.authz.v1beta1.QueryGranteeGrantsResponse: type: object properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + type_url: + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path must + represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be in a + canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all types - that they + In practice, teams usually precompile into the binary all + types that they - expect it to use in the context of Any. However, for URLs which - use the + expect it to use in the context of Any. However, for URLs + which use the - scheme `http`, `https`, or no scheme, one can optionally set up a - type + scheme `http`, `https`, or no scheme, one can optionally set + up a type - server that maps type URLs to message definitions as follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in the + official - protobuf release, and it is not used for type URLs beginning with + protobuf release, and it is not used for type URLs beginning + with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above specified - type. - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + used with implementation specific semantics. + value: + type: string + format: byte + description: >- + Must be a valid serialized protocol buffer of the above + specified type. + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in the - form + Protobuf library provides support to pack/unpack Any values in + the form - of utility functions or additional generated methods of the Any type. + of utility functions or additional generated methods of the Any + type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default use + The pack methods provided by protobuf library will by default + use - 'type.googleapis.com/full.type.name' as the type URL and the unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the last '/' + methods only use the fully qualified type name after the last + '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type + in the type URL, for example "foo.bar.com/x/y.z" will yield type - name "y.z". + name "y.z". - JSON + JSON - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + The JSON representation of an `Any` value uses the regular - additional field `@type` which contains the type URL. Example: + representation of the deserialized, embedded message, with an - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + additional field `@type` which contains the type URL. Example: - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - If the embedded message type is well-known and has a custom JSON + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - representation, that representation will be embedded adding a field + If the embedded message type is well-known and has a custom JSON - `value` which holds the custom JSON in addition to the `@type` + representation, that representation will be embedded adding a + field - field. Example (for message [google.protobuf.Duration][]): + `value` which holds the custom JSON in addition to the `@type` - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses of the grantee - and granter. + field. Example (for message [google.protobuf.Duration][]): - It is used in genesis.proto and query.proto - cosmos.authz.v1beta1.QueryGranteeGrantsResponse: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses of the + grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted to the grantee. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryGranteeGrantsResponse is the response type for the + Query/GranteeGrants RPC method. + cosmos.authz.v1beta1.QueryGranterGrantsResponse: type: object properties: grants: @@ -37105,10 +37067,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -37147,6 +37105,7 @@ definitions: name "y.z". + JSON @@ -37189,7 +37148,7 @@ definitions: grantee and granter. It is used in genesis.proto and query.proto - description: grants is a list of grants granted to the grantee. + description: grants is a list of grants granted by the granter. pagination: description: pagination defines an pagination for the response. type: object @@ -37210,9 +37169,9 @@ definitions: was set, its value is undefined otherwise description: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. - cosmos.authz.v1beta1.QueryGranterGrantsResponse: + QueryGranterGrantsResponse is the response type for the + Query/GranterGrants RPC method. + cosmos.authz.v1beta1.QueryGrantsResponse: type: object properties: grants: @@ -37220,10 +37179,6 @@ definitions: items: type: object properties: - granter: - type: string - grantee: - type: string authorization: type: object properties: @@ -37322,10 +37277,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -37364,218 +37315,6 @@ definitions: name "y.z". - JSON - - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom JSON - - representation, that representation will be embedded adding a - field - - `value` which holds the custom JSON in addition to the `@type` - - field. Example (for message [google.protobuf.Duration][]): - - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. - - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. - cosmos.authz.v1beta1.QueryGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - authorization: - type: object - properties: - type_url: - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally set - up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - JSON @@ -41273,10 +41012,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -41315,6 +41050,7 @@ definitions: name "y.z". + JSON @@ -41572,10 +41308,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -41614,6 +41346,7 @@ definitions: name "y.z". + JSON @@ -41928,10 +41661,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -41967,6 +41696,7 @@ definitions: name "y.z". + JSON @@ -44951,10 +44681,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -44990,6 +44716,7 @@ definitions: name "y.z". + JSON @@ -45143,10 +44870,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -45182,6 +44905,7 @@ definitions: name "y.z". + JSON @@ -46005,10 +45729,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -46044,6 +45764,7 @@ definitions: name "y.z". + JSON @@ -46529,10 +46250,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -46571,6 +46288,7 @@ definitions: name "y.z". + JSON @@ -46811,10 +46529,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -46854,6 +46568,7 @@ definitions: name "y.z". + JSON @@ -47946,10 +47661,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -47988,6 +47699,7 @@ definitions: name "y.z". + JSON @@ -48547,10 +48259,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -48587,6 +48295,7 @@ definitions: name "y.z". + JSON @@ -48885,10 +48594,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -48927,6 +48632,7 @@ definitions: name "y.z". + JSON @@ -49329,10 +49035,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -49372,6 +49074,7 @@ definitions: name "y.z". + JSON @@ -50014,10 +49717,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -50054,6 +49753,7 @@ definitions: name "y.z". + JSON @@ -50432,10 +50132,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -50474,6 +50170,7 @@ definitions: name "y.z". + JSON @@ -51128,10 +50825,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -51167,6 +50860,7 @@ definitions: name "y.z". + JSON @@ -51561,10 +51255,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -51600,6 +51290,7 @@ definitions: name "y.z". + JSON @@ -51833,10 +51524,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -51872,6 +51559,7 @@ definitions: name "y.z". + JSON @@ -52372,10 +52060,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -52412,6 +52096,7 @@ definitions: name "y.z". + JSON @@ -53324,10 +53009,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -53364,6 +53045,7 @@ definitions: name "y.z". + JSON @@ -53648,10 +53330,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -53690,6 +53368,7 @@ definitions: name "y.z". + JSON @@ -54107,10 +53786,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -54146,6 +53821,7 @@ definitions: name "y.z". + JSON @@ -54392,10 +54068,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -54434,6 +54106,7 @@ definitions: name "y.z". + JSON @@ -54609,10 +54282,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -54651,6 +54320,7 @@ definitions: name "y.z". + JSON @@ -54820,10 +54490,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -54862,6 +54528,7 @@ definitions: name "y.z". + JSON @@ -55004,10 +54671,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -55046,6 +54709,7 @@ definitions: name "y.z". + JSON @@ -55208,10 +54872,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -55247,6 +54907,7 @@ definitions: name "y.z". + JSON @@ -55409,10 +55070,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -55448,6 +55105,7 @@ definitions: name "y.z". + JSON @@ -55585,10 +55243,6 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } - // or ... - if (any.isSameTypeAs(Foo.getDefaultInstance())) { - foo = any.unpack(Foo.getDefaultInstance()); - } Example 3: Pack and unpack a message in Python. @@ -55624,6 +55278,7 @@ definitions: name "y.z". + JSON diff --git a/x/payment/client/cli/query_auto_settle_record.go b/x/payment/client/cli/query_auto_settle_record.go index 259f0e01e..3f82c489a 100644 --- a/x/payment/client/cli/query_auto_settle_record.go +++ b/x/payment/client/cli/query_auto_settle_record.go @@ -24,11 +24,11 @@ func CmdListAutoSettleRecord() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryAllAutoSettleRecordRequest{ + params := &types.QueryAutoSettleRecordsRequest{ Pagination: pageReq, } - res, err := queryClient.AutoSettleRecordAll(context.Background(), params) + res, err := queryClient.AutoSettleRecords(context.Background(), params) if err != nil { return err } diff --git a/x/payment/client/cli/query_get_payment_accounts_by_owner.go b/x/payment/client/cli/query_get_payment_accounts_by_owner.go index 1524fa0ca..216637382 100644 --- a/x/payment/client/cli/query_get_payment_accounts_by_owner.go +++ b/x/payment/client/cli/query_get_payment_accounts_by_owner.go @@ -27,12 +27,12 @@ func CmdGetPaymentAccountsByOwner() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryGetPaymentAccountsByOwnerRequest{ + params := &types.QueryPaymentAccountsByOwnerRequest{ Owner: reqOwner, } - res, err := queryClient.GetPaymentAccountsByOwner(cmd.Context(), params) + res, err := queryClient.PaymentAccountsByOwner(cmd.Context(), params) if err != nil { return err } diff --git a/x/payment/client/cli/query_payment_account.go b/x/payment/client/cli/query_payment_account.go index 3b5d4c5cd..0fff34437 100644 --- a/x/payment/client/cli/query_payment_account.go +++ b/x/payment/client/cli/query_payment_account.go @@ -24,11 +24,11 @@ func CmdListPaymentAccount() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryAllPaymentAccountRequest{ + params := &types.QueryPaymentAccountsRequest{ Pagination: pageReq, } - res, err := queryClient.PaymentAccountAll(context.Background(), params) + res, err := queryClient.PaymentAccounts(context.Background(), params) if err != nil { return err } diff --git a/x/payment/client/cli/query_payment_account_count.go b/x/payment/client/cli/query_payment_account_count.go index 3fdbb9a3f..8bc6a74e8 100644 --- a/x/payment/client/cli/query_payment_account_count.go +++ b/x/payment/client/cli/query_payment_account_count.go @@ -24,11 +24,11 @@ func CmdListPaymentAccountCount() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryAllPaymentAccountCountRequest{ + params := &types.QueryPaymentAccountCountsRequest{ Pagination: pageReq, } - res, err := queryClient.PaymentAccountCountAll(context.Background(), params) + res, err := queryClient.PaymentAccountCounts(context.Background(), params) if err != nil { return err } @@ -55,7 +55,7 @@ func CmdShowPaymentAccountCount() *cobra.Command { argOwner := args[0] - params := &types.QueryGetPaymentAccountCountRequest{ + params := &types.QueryPaymentAccountCountRequest{ Owner: argOwner, } diff --git a/x/payment/client/cli/query_stream_record.go b/x/payment/client/cli/query_stream_record.go index 227d83274..30c114ac7 100644 --- a/x/payment/client/cli/query_stream_record.go +++ b/x/payment/client/cli/query_stream_record.go @@ -24,11 +24,11 @@ func CmdListStreamRecord() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryAllStreamRecordRequest{ + params := &types.QueryStreamRecordsRequest{ Pagination: pageReq, } - res, err := queryClient.StreamRecordAll(context.Background(), params) + res, err := queryClient.StreamRecords(context.Background(), params) if err != nil { return err } diff --git a/x/payment/keeper/grpc_query_auto_settle_record.go b/x/payment/keeper/grpc_query_auto_settle_record.go index 19ca00298..25d7161a4 100644 --- a/x/payment/keeper/grpc_query_auto_settle_record.go +++ b/x/payment/keeper/grpc_query_auto_settle_record.go @@ -12,14 +12,17 @@ import ( "github.com/bnb-chain/greenfield/x/payment/types" ) -func (k Keeper) AutoSettleRecordAll(c context.Context, req *types.QueryAllAutoSettleRecordRequest) (*types.QueryAllAutoSettleRecordResponse, error) { +func (k Keeper) AutoSettleRecords(c context.Context, req *types.QueryAutoSettleRecordsRequest) (*types.QueryAutoSettleRecordsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var autoSettleRecords []types.AutoSettleRecord ctx := sdk.UnwrapSDKContext(c) + if err := query.CheckOffsetQueryNotAllowed(ctx, req.Pagination); err != nil { + return nil, err + } + var autoSettleRecords []types.AutoSettleRecord store := ctx.KVStore(k.storeKey) autoSettleRecordStore := prefix.NewStore(store, types.AutoSettleRecordKeyPrefix) @@ -33,5 +36,5 @@ func (k Keeper) AutoSettleRecordAll(c context.Context, req *types.QueryAllAutoSe return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllAutoSettleRecordResponse{AutoSettleRecord: autoSettleRecords, Pagination: pageRes}, nil + return &types.QueryAutoSettleRecordsResponse{AutoSettleRecords: autoSettleRecords, Pagination: pageRes}, nil } diff --git a/x/payment/keeper/grpc_query_payment_account.go b/x/payment/keeper/grpc_query_payment_account.go index 30ae28348..67ed67f64 100644 --- a/x/payment/keeper/grpc_query_payment_account.go +++ b/x/payment/keeper/grpc_query_payment_account.go @@ -12,14 +12,17 @@ import ( "github.com/bnb-chain/greenfield/x/payment/types" ) -func (k Keeper) PaymentAccountAll(c context.Context, req *types.QueryAllPaymentAccountRequest) (*types.QueryAllPaymentAccountResponse, error) { +func (k Keeper) PaymentAccounts(c context.Context, req *types.QueryPaymentAccountsRequest) (*types.QueryPaymentAccountsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var paymentAccounts []types.PaymentAccount ctx := sdk.UnwrapSDKContext(c) + if err := query.CheckOffsetQueryNotAllowed(ctx, req.Pagination); err != nil { + return nil, err + } + var paymentAccounts []types.PaymentAccount store := ctx.KVStore(k.storeKey) paymentAccountStore := prefix.NewStore(store, types.PaymentAccountKeyPrefix) @@ -38,7 +41,7 @@ func (k Keeper) PaymentAccountAll(c context.Context, req *types.QueryAllPaymentA return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllPaymentAccountResponse{PaymentAccount: paymentAccounts, Pagination: pageRes}, nil + return &types.QueryPaymentAccountsResponse{PaymentAccounts: paymentAccounts, Pagination: pageRes}, nil } func (k Keeper) PaymentAccount(c context.Context, req *types.QueryGetPaymentAccountRequest) (*types.QueryGetPaymentAccountResponse, error) { diff --git a/x/payment/keeper/grpc_query_payment_account_count.go b/x/payment/keeper/grpc_query_payment_account_count.go index 67bb1a318..66c5b8bfd 100644 --- a/x/payment/keeper/grpc_query_payment_account_count.go +++ b/x/payment/keeper/grpc_query_payment_account_count.go @@ -12,14 +12,17 @@ import ( "github.com/bnb-chain/greenfield/x/payment/types" ) -func (k Keeper) PaymentAccountCountAll(c context.Context, req *types.QueryAllPaymentAccountCountRequest) (*types.QueryAllPaymentAccountCountResponse, error) { +func (k Keeper) PaymentAccountCounts(c context.Context, req *types.QueryPaymentAccountCountsRequest) (*types.QueryPaymentAccountCountsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var paymentAccountCounts []types.PaymentAccountCount ctx := sdk.UnwrapSDKContext(c) + if err := query.CheckOffsetQueryNotAllowed(ctx, req.Pagination); err != nil { + return nil, err + } + var paymentAccountCounts []types.PaymentAccountCount store := ctx.KVStore(k.storeKey) paymentAccountCountStore := prefix.NewStore(store, types.PaymentAccountCountKeyPrefix) @@ -38,10 +41,10 @@ func (k Keeper) PaymentAccountCountAll(c context.Context, req *types.QueryAllPay return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllPaymentAccountCountResponse{PaymentAccountCount: paymentAccountCounts, Pagination: pageRes}, nil + return &types.QueryPaymentAccountCountsResponse{PaymentAccountCounts: paymentAccountCounts, Pagination: pageRes}, nil } -func (k Keeper) PaymentAccountCount(c context.Context, req *types.QueryGetPaymentAccountCountRequest) (*types.QueryGetPaymentAccountCountResponse, error) { +func (k Keeper) PaymentAccountCount(c context.Context, req *types.QueryPaymentAccountCountRequest) (*types.QueryPaymentAccountCountResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -59,5 +62,5 @@ func (k Keeper) PaymentAccountCount(c context.Context, req *types.QueryGetPaymen return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetPaymentAccountCountResponse{PaymentAccountCount: *val}, nil + return &types.QueryPaymentAccountCountResponse{PaymentAccountCount: *val}, nil } diff --git a/x/payment/keeper/grpc_query_get_payment_accounts_by_owner.go b/x/payment/keeper/grpc_query_payment_accounts_by_owner.go similarity index 79% rename from x/payment/keeper/grpc_query_get_payment_accounts_by_owner.go rename to x/payment/keeper/grpc_query_payment_accounts_by_owner.go index d5c158b1c..e8a561db2 100644 --- a/x/payment/keeper/grpc_query_get_payment_accounts_by_owner.go +++ b/x/payment/keeper/grpc_query_payment_accounts_by_owner.go @@ -10,7 +10,7 @@ import ( "github.com/bnb-chain/greenfield/x/payment/types" ) -func (k Keeper) GetPaymentAccountsByOwner(goCtx context.Context, req *types.QueryGetPaymentAccountsByOwnerRequest) (*types.QueryGetPaymentAccountsByOwnerResponse, error) { +func (k Keeper) PaymentAccountsByOwner(goCtx context.Context, req *types.QueryPaymentAccountsByOwnerRequest) (*types.QueryPaymentAccountsByOwnerResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -33,7 +33,7 @@ func (k Keeper) GetPaymentAccountsByOwner(goCtx context.Context, req *types.Quer paymentAccounts = append(paymentAccounts, paymentAccount.String()) } - return &types.QueryGetPaymentAccountsByOwnerResponse{ + return &types.QueryPaymentAccountsByOwnerResponse{ PaymentAccounts: paymentAccounts, }, nil } diff --git a/x/payment/keeper/grpc_query_stream_record.go b/x/payment/keeper/grpc_query_stream_record.go index a2a223ebb..42cc2fc3d 100644 --- a/x/payment/keeper/grpc_query_stream_record.go +++ b/x/payment/keeper/grpc_query_stream_record.go @@ -12,14 +12,17 @@ import ( "github.com/bnb-chain/greenfield/x/payment/types" ) -func (k Keeper) StreamRecordAll(c context.Context, req *types.QueryAllStreamRecordRequest) (*types.QueryAllStreamRecordResponse, error) { +func (k Keeper) StreamRecords(c context.Context, req *types.QueryStreamRecordsRequest) (*types.QueryStreamRecordsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var streamRecords []types.StreamRecord ctx := sdk.UnwrapSDKContext(c) + if err := query.CheckOffsetQueryNotAllowed(ctx, req.Pagination); err != nil { + return nil, err + } + var streamRecords []types.StreamRecord store := ctx.KVStore(k.storeKey) streamRecordStore := prefix.NewStore(store, types.StreamRecordKeyPrefix) @@ -38,7 +41,7 @@ func (k Keeper) StreamRecordAll(c context.Context, req *types.QueryAllStreamReco return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllStreamRecordResponse{StreamRecord: streamRecords, Pagination: pageRes}, nil + return &types.QueryStreamRecordsResponse{StreamRecords: streamRecords, Pagination: pageRes}, nil } func (k Keeper) StreamRecord(c context.Context, req *types.QueryGetStreamRecordRequest) (*types.QueryGetStreamRecordResponse, error) { diff --git a/x/payment/keeper/grpc_query_test.go b/x/payment/keeper/grpc_query_test.go index b7ce3a41f..bb24fe06c 100644 --- a/x/payment/keeper/grpc_query_test.go +++ b/x/payment/keeper/grpc_query_test.go @@ -65,9 +65,9 @@ func TestAutoSettleRecordQuery(t *testing.T) { } keeper.SetAutoSettleRecord(ctx, &record) - response, err := keeper.AutoSettleRecordAll(ctx, &types.QueryAllAutoSettleRecordRequest{}) + response, err := keeper.AutoSettleRecords(ctx, &types.QueryAutoSettleRecordsRequest{}) require.NoError(t, err) - require.Equal(t, record, response.AutoSettleRecord[0]) + require.Equal(t, record, response.AutoSettleRecords[0]) } func TestDynamicBalanceQuery(t *testing.T) { @@ -113,9 +113,9 @@ func TestPaymentAccountAllQuery(t *testing.T) { } keeper.SetPaymentAccount(ctx, &record2) - response, err := keeper.PaymentAccountAll(ctx, &types.QueryAllPaymentAccountRequest{}) + response, err := keeper.PaymentAccounts(ctx, &types.QueryPaymentAccountsRequest{}) require.NoError(t, err) - require.Equal(t, 2, len(response.PaymentAccount)) + require.Equal(t, 2, len(response.PaymentAccounts)) } func TestPaymentAccountQuery(t *testing.T) { @@ -173,9 +173,9 @@ func TestPaymentAccountCountAllQuery(t *testing.T) { } keeper.SetPaymentAccountCount(ctx, &record2) - response, err := keeper.PaymentAccountCountAll(ctx, &types.QueryAllPaymentAccountCountRequest{}) + response, err := keeper.PaymentAccountCounts(ctx, &types.QueryPaymentAccountCountsRequest{}) require.NoError(t, err) - require.Equal(t, 2, len(response.PaymentAccountCount)) + require.Equal(t, 2, len(response.PaymentAccountCounts)) } func TestPaymentAccountCountQuery(t *testing.T) { @@ -198,13 +198,13 @@ func TestPaymentAccountCountQuery(t *testing.T) { } keeper.SetPaymentAccountCount(ctx, &record2) - response, err := keeper.PaymentAccountCount(ctx, &types.QueryGetPaymentAccountCountRequest{ + response, err := keeper.PaymentAccountCount(ctx, &types.QueryPaymentAccountCountRequest{ Owner: owner1.String(), }) require.NoError(t, err) require.Equal(t, record1.Count, response.PaymentAccountCount.Count) - response, err = keeper.PaymentAccountCount(ctx, &types.QueryGetPaymentAccountCountRequest{ + response, err = keeper.PaymentAccountCount(ctx, &types.QueryPaymentAccountCountRequest{ Owner: owner2.String(), }) require.NoError(t, err) @@ -224,7 +224,7 @@ func TestPaymentAccountsByOwnerQuery(t *testing.T) { } keeper.SetPaymentAccountCount(ctx, &record1) - response, err := keeper.GetPaymentAccountsByOwner(ctx, &types.QueryGetPaymentAccountsByOwnerRequest{ + response, err := keeper.PaymentAccountsByOwner(ctx, &types.QueryPaymentAccountsByOwnerRequest{ Owner: owner1.String(), }) require.NoError(t, err) @@ -245,9 +245,9 @@ func TestStreamRecordAllQuery(t *testing.T) { record2 := types.NewStreamRecord(owner2, ctx.BlockTime().Unix()) keeper.SetStreamRecord(ctx, record2) - response, err := keeper.StreamRecordAll(ctx, &types.QueryAllStreamRecordRequest{}) + response, err := keeper.StreamRecords(ctx, &types.QueryStreamRecordsRequest{}) require.NoError(t, err) - require.Equal(t, 2, len(response.StreamRecord)) + require.Equal(t, 2, len(response.StreamRecords)) } func TestStreamRecordQuery(t *testing.T) { diff --git a/x/payment/keeper/msg_server_test.go b/x/payment/keeper/msg_server_test.go index c72134039..3d374edad 100644 --- a/x/payment/keeper/msg_server_test.go +++ b/x/payment/keeper/msg_server_test.go @@ -88,7 +88,7 @@ func (s *TestSuite) TestUpdateParams() { { name: "invalid authority", msg: types.MsgUpdateParams{ - Authority: sample.AccAddress(), + Authority: sample.RandAccAddress().String(), }, err: true, }, { diff --git a/x/payment/types/query.pb.go b/x/payment/types/query.pb.go index ebcbb96ca..b85855903 100644 --- a/x/payment/types/query.pb.go +++ b/x/payment/types/query.pb.go @@ -383,22 +383,22 @@ func (m *QueryGetStreamRecordResponse) GetStreamRecord() StreamRecord { return StreamRecord{} } -type QueryAllStreamRecordRequest struct { +type QueryStreamRecordsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllStreamRecordRequest) Reset() { *m = QueryAllStreamRecordRequest{} } -func (m *QueryAllStreamRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllStreamRecordRequest) ProtoMessage() {} -func (*QueryAllStreamRecordRequest) Descriptor() ([]byte, []int) { +func (m *QueryStreamRecordsRequest) Reset() { *m = QueryStreamRecordsRequest{} } +func (m *QueryStreamRecordsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStreamRecordsRequest) ProtoMessage() {} +func (*QueryStreamRecordsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{8} } -func (m *QueryAllStreamRecordRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryStreamRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllStreamRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStreamRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllStreamRecordRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStreamRecordsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -408,42 +408,42 @@ func (m *QueryAllStreamRecordRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllStreamRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllStreamRecordRequest.Merge(m, src) +func (m *QueryStreamRecordsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStreamRecordsRequest.Merge(m, src) } -func (m *QueryAllStreamRecordRequest) XXX_Size() int { +func (m *QueryStreamRecordsRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllStreamRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllStreamRecordRequest.DiscardUnknown(m) +func (m *QueryStreamRecordsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStreamRecordsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllStreamRecordRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStreamRecordsRequest proto.InternalMessageInfo -func (m *QueryAllStreamRecordRequest) GetPagination() *query.PageRequest { +func (m *QueryStreamRecordsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllStreamRecordResponse struct { - StreamRecord []StreamRecord `protobuf:"bytes,1,rep,name=stream_record,json=streamRecord,proto3" json:"stream_record"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +type QueryStreamRecordsResponse struct { + StreamRecords []StreamRecord `protobuf:"bytes,1,rep,name=stream_records,json=streamRecords,proto3" json:"stream_records"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllStreamRecordResponse) Reset() { *m = QueryAllStreamRecordResponse{} } -func (m *QueryAllStreamRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllStreamRecordResponse) ProtoMessage() {} -func (*QueryAllStreamRecordResponse) Descriptor() ([]byte, []int) { +func (m *QueryStreamRecordsResponse) Reset() { *m = QueryStreamRecordsResponse{} } +func (m *QueryStreamRecordsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStreamRecordsResponse) ProtoMessage() {} +func (*QueryStreamRecordsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{9} } -func (m *QueryAllStreamRecordResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryStreamRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllStreamRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStreamRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllStreamRecordResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStreamRecordsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -453,48 +453,48 @@ func (m *QueryAllStreamRecordResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllStreamRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllStreamRecordResponse.Merge(m, src) +func (m *QueryStreamRecordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStreamRecordsResponse.Merge(m, src) } -func (m *QueryAllStreamRecordResponse) XXX_Size() int { +func (m *QueryStreamRecordsResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllStreamRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllStreamRecordResponse.DiscardUnknown(m) +func (m *QueryStreamRecordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStreamRecordsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllStreamRecordResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryStreamRecordsResponse proto.InternalMessageInfo -func (m *QueryAllStreamRecordResponse) GetStreamRecord() []StreamRecord { +func (m *QueryStreamRecordsResponse) GetStreamRecords() []StreamRecord { if m != nil { - return m.StreamRecord + return m.StreamRecords } return nil } -func (m *QueryAllStreamRecordResponse) GetPagination() *query.PageResponse { +func (m *QueryStreamRecordsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -type QueryGetPaymentAccountCountRequest struct { +type QueryPaymentAccountCountRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } -func (m *QueryGetPaymentAccountCountRequest) Reset() { *m = QueryGetPaymentAccountCountRequest{} } -func (m *QueryGetPaymentAccountCountRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPaymentAccountCountRequest) ProtoMessage() {} -func (*QueryGetPaymentAccountCountRequest) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountCountRequest) Reset() { *m = QueryPaymentAccountCountRequest{} } +func (m *QueryPaymentAccountCountRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountCountRequest) ProtoMessage() {} +func (*QueryPaymentAccountCountRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{10} } -func (m *QueryGetPaymentAccountCountRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountCountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPaymentAccountCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPaymentAccountCountRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountCountRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -504,41 +504,41 @@ func (m *QueryGetPaymentAccountCountRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryGetPaymentAccountCountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPaymentAccountCountRequest.Merge(m, src) +func (m *QueryPaymentAccountCountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountCountRequest.Merge(m, src) } -func (m *QueryGetPaymentAccountCountRequest) XXX_Size() int { +func (m *QueryPaymentAccountCountRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetPaymentAccountCountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPaymentAccountCountRequest.DiscardUnknown(m) +func (m *QueryPaymentAccountCountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountCountRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPaymentAccountCountRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountCountRequest proto.InternalMessageInfo -func (m *QueryGetPaymentAccountCountRequest) GetOwner() string { +func (m *QueryPaymentAccountCountRequest) GetOwner() string { if m != nil { return m.Owner } return "" } -type QueryGetPaymentAccountCountResponse struct { +type QueryPaymentAccountCountResponse struct { PaymentAccountCount PaymentAccountCount `protobuf:"bytes,1,opt,name=payment_account_count,json=paymentAccountCount,proto3" json:"payment_account_count"` } -func (m *QueryGetPaymentAccountCountResponse) Reset() { *m = QueryGetPaymentAccountCountResponse{} } -func (m *QueryGetPaymentAccountCountResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPaymentAccountCountResponse) ProtoMessage() {} -func (*QueryGetPaymentAccountCountResponse) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountCountResponse) Reset() { *m = QueryPaymentAccountCountResponse{} } +func (m *QueryPaymentAccountCountResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountCountResponse) ProtoMessage() {} +func (*QueryPaymentAccountCountResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{11} } -func (m *QueryGetPaymentAccountCountResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountCountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPaymentAccountCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPaymentAccountCountResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountCountResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -548,41 +548,41 @@ func (m *QueryGetPaymentAccountCountResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryGetPaymentAccountCountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPaymentAccountCountResponse.Merge(m, src) +func (m *QueryPaymentAccountCountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountCountResponse.Merge(m, src) } -func (m *QueryGetPaymentAccountCountResponse) XXX_Size() int { +func (m *QueryPaymentAccountCountResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetPaymentAccountCountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPaymentAccountCountResponse.DiscardUnknown(m) +func (m *QueryPaymentAccountCountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountCountResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPaymentAccountCountResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountCountResponse proto.InternalMessageInfo -func (m *QueryGetPaymentAccountCountResponse) GetPaymentAccountCount() PaymentAccountCount { +func (m *QueryPaymentAccountCountResponse) GetPaymentAccountCount() PaymentAccountCount { if m != nil { return m.PaymentAccountCount } return PaymentAccountCount{} } -type QueryAllPaymentAccountCountRequest struct { +type QueryPaymentAccountCountsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllPaymentAccountCountRequest) Reset() { *m = QueryAllPaymentAccountCountRequest{} } -func (m *QueryAllPaymentAccountCountRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllPaymentAccountCountRequest) ProtoMessage() {} -func (*QueryAllPaymentAccountCountRequest) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountCountsRequest) Reset() { *m = QueryPaymentAccountCountsRequest{} } +func (m *QueryPaymentAccountCountsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountCountsRequest) ProtoMessage() {} +func (*QueryPaymentAccountCountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{12} } -func (m *QueryAllPaymentAccountCountRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountCountsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPaymentAccountCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountCountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPaymentAccountCountRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountCountsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -592,42 +592,42 @@ func (m *QueryAllPaymentAccountCountRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryAllPaymentAccountCountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPaymentAccountCountRequest.Merge(m, src) +func (m *QueryPaymentAccountCountsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountCountsRequest.Merge(m, src) } -func (m *QueryAllPaymentAccountCountRequest) XXX_Size() int { +func (m *QueryPaymentAccountCountsRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllPaymentAccountCountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPaymentAccountCountRequest.DiscardUnknown(m) +func (m *QueryPaymentAccountCountsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountCountsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPaymentAccountCountRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountCountsRequest proto.InternalMessageInfo -func (m *QueryAllPaymentAccountCountRequest) GetPagination() *query.PageRequest { +func (m *QueryPaymentAccountCountsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllPaymentAccountCountResponse struct { - PaymentAccountCount []PaymentAccountCount `protobuf:"bytes,1,rep,name=payment_account_count,json=paymentAccountCount,proto3" json:"payment_account_count"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +type QueryPaymentAccountCountsResponse struct { + PaymentAccountCounts []PaymentAccountCount `protobuf:"bytes,1,rep,name=payment_account_counts,json=paymentAccountCounts,proto3" json:"payment_account_counts"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllPaymentAccountCountResponse) Reset() { *m = QueryAllPaymentAccountCountResponse{} } -func (m *QueryAllPaymentAccountCountResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllPaymentAccountCountResponse) ProtoMessage() {} -func (*QueryAllPaymentAccountCountResponse) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountCountsResponse) Reset() { *m = QueryPaymentAccountCountsResponse{} } +func (m *QueryPaymentAccountCountsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountCountsResponse) ProtoMessage() {} +func (*QueryPaymentAccountCountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{13} } -func (m *QueryAllPaymentAccountCountResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountCountsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPaymentAccountCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountCountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPaymentAccountCountResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountCountsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -637,26 +637,26 @@ func (m *QueryAllPaymentAccountCountResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryAllPaymentAccountCountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPaymentAccountCountResponse.Merge(m, src) +func (m *QueryPaymentAccountCountsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountCountsResponse.Merge(m, src) } -func (m *QueryAllPaymentAccountCountResponse) XXX_Size() int { +func (m *QueryPaymentAccountCountsResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllPaymentAccountCountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPaymentAccountCountResponse.DiscardUnknown(m) +func (m *QueryPaymentAccountCountsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountCountsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPaymentAccountCountResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountCountsResponse proto.InternalMessageInfo -func (m *QueryAllPaymentAccountCountResponse) GetPaymentAccountCount() []PaymentAccountCount { +func (m *QueryPaymentAccountCountsResponse) GetPaymentAccountCounts() []PaymentAccountCount { if m != nil { - return m.PaymentAccountCount + return m.PaymentAccountCounts } return nil } -func (m *QueryAllPaymentAccountCountResponse) GetPagination() *query.PageResponse { +func (m *QueryPaymentAccountCountsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -751,22 +751,22 @@ func (m *QueryGetPaymentAccountResponse) GetPaymentAccount() PaymentAccount { return PaymentAccount{} } -type QueryAllPaymentAccountRequest struct { +type QueryPaymentAccountsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllPaymentAccountRequest) Reset() { *m = QueryAllPaymentAccountRequest{} } -func (m *QueryAllPaymentAccountRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllPaymentAccountRequest) ProtoMessage() {} -func (*QueryAllPaymentAccountRequest) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountsRequest) Reset() { *m = QueryPaymentAccountsRequest{} } +func (m *QueryPaymentAccountsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountsRequest) ProtoMessage() {} +func (*QueryPaymentAccountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{16} } -func (m *QueryAllPaymentAccountRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPaymentAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPaymentAccountRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -776,42 +776,42 @@ func (m *QueryAllPaymentAccountRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryAllPaymentAccountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPaymentAccountRequest.Merge(m, src) +func (m *QueryPaymentAccountsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountsRequest.Merge(m, src) } -func (m *QueryAllPaymentAccountRequest) XXX_Size() int { +func (m *QueryPaymentAccountsRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllPaymentAccountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPaymentAccountRequest.DiscardUnknown(m) +func (m *QueryPaymentAccountsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPaymentAccountRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountsRequest proto.InternalMessageInfo -func (m *QueryAllPaymentAccountRequest) GetPagination() *query.PageRequest { +func (m *QueryPaymentAccountsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllPaymentAccountResponse struct { - PaymentAccount []PaymentAccount `protobuf:"bytes,1,rep,name=payment_account,json=paymentAccount,proto3" json:"payment_account"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +type QueryPaymentAccountsResponse struct { + PaymentAccounts []PaymentAccount `protobuf:"bytes,1,rep,name=payment_accounts,json=paymentAccounts,proto3" json:"payment_accounts"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllPaymentAccountResponse) Reset() { *m = QueryAllPaymentAccountResponse{} } -func (m *QueryAllPaymentAccountResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllPaymentAccountResponse) ProtoMessage() {} -func (*QueryAllPaymentAccountResponse) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountsResponse) Reset() { *m = QueryPaymentAccountsResponse{} } +func (m *QueryPaymentAccountsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountsResponse) ProtoMessage() {} +func (*QueryPaymentAccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{17} } -func (m *QueryAllPaymentAccountResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPaymentAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPaymentAccountResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -821,26 +821,26 @@ func (m *QueryAllPaymentAccountResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryAllPaymentAccountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPaymentAccountResponse.Merge(m, src) +func (m *QueryPaymentAccountsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountsResponse.Merge(m, src) } -func (m *QueryAllPaymentAccountResponse) XXX_Size() int { +func (m *QueryPaymentAccountsResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllPaymentAccountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPaymentAccountResponse.DiscardUnknown(m) +func (m *QueryPaymentAccountsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPaymentAccountResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountsResponse proto.InternalMessageInfo -func (m *QueryAllPaymentAccountResponse) GetPaymentAccount() []PaymentAccount { +func (m *QueryPaymentAccountsResponse) GetPaymentAccounts() []PaymentAccount { if m != nil { - return m.PaymentAccount + return m.PaymentAccounts } return nil } -func (m *QueryAllPaymentAccountResponse) GetPagination() *query.PageResponse { +func (m *QueryPaymentAccountsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -955,22 +955,22 @@ func (m *QueryDynamicBalanceResponse) GetCurrentTimestamp() int64 { return 0 } -type QueryGetPaymentAccountsByOwnerRequest struct { +type QueryPaymentAccountsByOwnerRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` } -func (m *QueryGetPaymentAccountsByOwnerRequest) Reset() { *m = QueryGetPaymentAccountsByOwnerRequest{} } -func (m *QueryGetPaymentAccountsByOwnerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPaymentAccountsByOwnerRequest) ProtoMessage() {} -func (*QueryGetPaymentAccountsByOwnerRequest) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountsByOwnerRequest) Reset() { *m = QueryPaymentAccountsByOwnerRequest{} } +func (m *QueryPaymentAccountsByOwnerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountsByOwnerRequest) ProtoMessage() {} +func (*QueryPaymentAccountsByOwnerRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{20} } -func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountsByOwnerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPaymentAccountsByOwnerRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountsByOwnerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -980,43 +980,41 @@ func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPaymentAccountsByOwnerRequest.Merge(m, src) +func (m *QueryPaymentAccountsByOwnerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountsByOwnerRequest.Merge(m, src) } -func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_Size() int { +func (m *QueryPaymentAccountsByOwnerRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPaymentAccountsByOwnerRequest.DiscardUnknown(m) +func (m *QueryPaymentAccountsByOwnerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountsByOwnerRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPaymentAccountsByOwnerRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountsByOwnerRequest proto.InternalMessageInfo -func (m *QueryGetPaymentAccountsByOwnerRequest) GetOwner() string { +func (m *QueryPaymentAccountsByOwnerRequest) GetOwner() string { if m != nil { return m.Owner } return "" } -type QueryGetPaymentAccountsByOwnerResponse struct { +type QueryPaymentAccountsByOwnerResponse struct { PaymentAccounts []string `protobuf:"bytes,1,rep,name=paymentAccounts,proto3" json:"paymentAccounts,omitempty"` } -func (m *QueryGetPaymentAccountsByOwnerResponse) Reset() { - *m = QueryGetPaymentAccountsByOwnerResponse{} -} -func (m *QueryGetPaymentAccountsByOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPaymentAccountsByOwnerResponse) ProtoMessage() {} -func (*QueryGetPaymentAccountsByOwnerResponse) Descriptor() ([]byte, []int) { +func (m *QueryPaymentAccountsByOwnerResponse) Reset() { *m = QueryPaymentAccountsByOwnerResponse{} } +func (m *QueryPaymentAccountsByOwnerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPaymentAccountsByOwnerResponse) ProtoMessage() {} +func (*QueryPaymentAccountsByOwnerResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{21} } -func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPaymentAccountsByOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPaymentAccountsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPaymentAccountsByOwnerResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPaymentAccountsByOwnerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1026,41 +1024,41 @@ func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPaymentAccountsByOwnerResponse.Merge(m, src) +func (m *QueryPaymentAccountsByOwnerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPaymentAccountsByOwnerResponse.Merge(m, src) } -func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_Size() int { +func (m *QueryPaymentAccountsByOwnerResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPaymentAccountsByOwnerResponse.DiscardUnknown(m) +func (m *QueryPaymentAccountsByOwnerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPaymentAccountsByOwnerResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPaymentAccountsByOwnerResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPaymentAccountsByOwnerResponse proto.InternalMessageInfo -func (m *QueryGetPaymentAccountsByOwnerResponse) GetPaymentAccounts() []string { +func (m *QueryPaymentAccountsByOwnerResponse) GetPaymentAccounts() []string { if m != nil { return m.PaymentAccounts } return nil } -type QueryAllAutoSettleRecordRequest struct { +type QueryAutoSettleRecordsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllAutoSettleRecordRequest) Reset() { *m = QueryAllAutoSettleRecordRequest{} } -func (m *QueryAllAutoSettleRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllAutoSettleRecordRequest) ProtoMessage() {} -func (*QueryAllAutoSettleRecordRequest) Descriptor() ([]byte, []int) { +func (m *QueryAutoSettleRecordsRequest) Reset() { *m = QueryAutoSettleRecordsRequest{} } +func (m *QueryAutoSettleRecordsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAutoSettleRecordsRequest) ProtoMessage() {} +func (*QueryAutoSettleRecordsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{22} } -func (m *QueryAllAutoSettleRecordRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAutoSettleRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAutoSettleRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAutoSettleRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAutoSettleRecordRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAutoSettleRecordsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1070,42 +1068,42 @@ func (m *QueryAllAutoSettleRecordRequest) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryAllAutoSettleRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAutoSettleRecordRequest.Merge(m, src) +func (m *QueryAutoSettleRecordsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAutoSettleRecordsRequest.Merge(m, src) } -func (m *QueryAllAutoSettleRecordRequest) XXX_Size() int { +func (m *QueryAutoSettleRecordsRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllAutoSettleRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAutoSettleRecordRequest.DiscardUnknown(m) +func (m *QueryAutoSettleRecordsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAutoSettleRecordsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAutoSettleRecordRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAutoSettleRecordsRequest proto.InternalMessageInfo -func (m *QueryAllAutoSettleRecordRequest) GetPagination() *query.PageRequest { +func (m *QueryAutoSettleRecordsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllAutoSettleRecordResponse struct { - AutoSettleRecord []AutoSettleRecord `protobuf:"bytes,1,rep,name=auto_settle_record,json=autoSettleRecord,proto3" json:"auto_settle_record"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +type QueryAutoSettleRecordsResponse struct { + AutoSettleRecords []AutoSettleRecord `protobuf:"bytes,1,rep,name=auto_settle_records,json=autoSettleRecords,proto3" json:"auto_settle_records"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllAutoSettleRecordResponse) Reset() { *m = QueryAllAutoSettleRecordResponse{} } -func (m *QueryAllAutoSettleRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllAutoSettleRecordResponse) ProtoMessage() {} -func (*QueryAllAutoSettleRecordResponse) Descriptor() ([]byte, []int) { +func (m *QueryAutoSettleRecordsResponse) Reset() { *m = QueryAutoSettleRecordsResponse{} } +func (m *QueryAutoSettleRecordsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAutoSettleRecordsResponse) ProtoMessage() {} +func (*QueryAutoSettleRecordsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f62e6684473ccf4a, []int{23} } -func (m *QueryAllAutoSettleRecordResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAutoSettleRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAutoSettleRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAutoSettleRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAutoSettleRecordResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAutoSettleRecordsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1115,26 +1113,26 @@ func (m *QueryAllAutoSettleRecordResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryAllAutoSettleRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAutoSettleRecordResponse.Merge(m, src) +func (m *QueryAutoSettleRecordsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAutoSettleRecordsResponse.Merge(m, src) } -func (m *QueryAllAutoSettleRecordResponse) XXX_Size() int { +func (m *QueryAutoSettleRecordsResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllAutoSettleRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAutoSettleRecordResponse.DiscardUnknown(m) +func (m *QueryAutoSettleRecordsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAutoSettleRecordsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAutoSettleRecordResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAutoSettleRecordsResponse proto.InternalMessageInfo -func (m *QueryAllAutoSettleRecordResponse) GetAutoSettleRecord() []AutoSettleRecord { +func (m *QueryAutoSettleRecordsResponse) GetAutoSettleRecords() []AutoSettleRecord { if m != nil { - return m.AutoSettleRecord + return m.AutoSettleRecords } return nil } -func (m *QueryAllAutoSettleRecordResponse) GetPagination() *query.PageResponse { +func (m *QueryAutoSettleRecordsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -1150,112 +1148,112 @@ func init() { proto.RegisterType((*QueryOutFlowsResponse)(nil), "greenfield.payment.QueryOutFlowsResponse") proto.RegisterType((*QueryGetStreamRecordRequest)(nil), "greenfield.payment.QueryGetStreamRecordRequest") proto.RegisterType((*QueryGetStreamRecordResponse)(nil), "greenfield.payment.QueryGetStreamRecordResponse") - proto.RegisterType((*QueryAllStreamRecordRequest)(nil), "greenfield.payment.QueryAllStreamRecordRequest") - proto.RegisterType((*QueryAllStreamRecordResponse)(nil), "greenfield.payment.QueryAllStreamRecordResponse") - proto.RegisterType((*QueryGetPaymentAccountCountRequest)(nil), "greenfield.payment.QueryGetPaymentAccountCountRequest") - proto.RegisterType((*QueryGetPaymentAccountCountResponse)(nil), "greenfield.payment.QueryGetPaymentAccountCountResponse") - proto.RegisterType((*QueryAllPaymentAccountCountRequest)(nil), "greenfield.payment.QueryAllPaymentAccountCountRequest") - proto.RegisterType((*QueryAllPaymentAccountCountResponse)(nil), "greenfield.payment.QueryAllPaymentAccountCountResponse") + proto.RegisterType((*QueryStreamRecordsRequest)(nil), "greenfield.payment.QueryStreamRecordsRequest") + proto.RegisterType((*QueryStreamRecordsResponse)(nil), "greenfield.payment.QueryStreamRecordsResponse") + proto.RegisterType((*QueryPaymentAccountCountRequest)(nil), "greenfield.payment.QueryPaymentAccountCountRequest") + proto.RegisterType((*QueryPaymentAccountCountResponse)(nil), "greenfield.payment.QueryPaymentAccountCountResponse") + proto.RegisterType((*QueryPaymentAccountCountsRequest)(nil), "greenfield.payment.QueryPaymentAccountCountsRequest") + proto.RegisterType((*QueryPaymentAccountCountsResponse)(nil), "greenfield.payment.QueryPaymentAccountCountsResponse") proto.RegisterType((*QueryGetPaymentAccountRequest)(nil), "greenfield.payment.QueryGetPaymentAccountRequest") proto.RegisterType((*QueryGetPaymentAccountResponse)(nil), "greenfield.payment.QueryGetPaymentAccountResponse") - proto.RegisterType((*QueryAllPaymentAccountRequest)(nil), "greenfield.payment.QueryAllPaymentAccountRequest") - proto.RegisterType((*QueryAllPaymentAccountResponse)(nil), "greenfield.payment.QueryAllPaymentAccountResponse") + proto.RegisterType((*QueryPaymentAccountsRequest)(nil), "greenfield.payment.QueryPaymentAccountsRequest") + proto.RegisterType((*QueryPaymentAccountsResponse)(nil), "greenfield.payment.QueryPaymentAccountsResponse") proto.RegisterType((*QueryDynamicBalanceRequest)(nil), "greenfield.payment.QueryDynamicBalanceRequest") proto.RegisterType((*QueryDynamicBalanceResponse)(nil), "greenfield.payment.QueryDynamicBalanceResponse") - proto.RegisterType((*QueryGetPaymentAccountsByOwnerRequest)(nil), "greenfield.payment.QueryGetPaymentAccountsByOwnerRequest") - proto.RegisterType((*QueryGetPaymentAccountsByOwnerResponse)(nil), "greenfield.payment.QueryGetPaymentAccountsByOwnerResponse") - proto.RegisterType((*QueryAllAutoSettleRecordRequest)(nil), "greenfield.payment.QueryAllAutoSettleRecordRequest") - proto.RegisterType((*QueryAllAutoSettleRecordResponse)(nil), "greenfield.payment.QueryAllAutoSettleRecordResponse") + proto.RegisterType((*QueryPaymentAccountsByOwnerRequest)(nil), "greenfield.payment.QueryPaymentAccountsByOwnerRequest") + proto.RegisterType((*QueryPaymentAccountsByOwnerResponse)(nil), "greenfield.payment.QueryPaymentAccountsByOwnerResponse") + proto.RegisterType((*QueryAutoSettleRecordsRequest)(nil), "greenfield.payment.QueryAutoSettleRecordsRequest") + proto.RegisterType((*QueryAutoSettleRecordsResponse)(nil), "greenfield.payment.QueryAutoSettleRecordsResponse") } func init() { proto.RegisterFile("greenfield/payment/query.proto", fileDescriptor_f62e6684473ccf4a) } var fileDescriptor_f62e6684473ccf4a = []byte{ - // 1341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0xd6, 0x4d, 0xda, 0xbc, 0x94, 0x34, 0x9d, 0xa4, 0x28, 0xdd, 0x06, 0xa7, 0xdd, 0x52, - 0xc7, 0x69, 0x88, 0xb7, 0x4e, 0x20, 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0x17, 0x7a, 0x14, 0x39, 0xc9, 0xc6, 0xa4, 0xe8, 0x15, 0xff, 0xea, 0xd2, - 0x71, 0x5c, 0x10, 0x60, 0x46, 0x00, 0x4c, 0x93, 0x54, 0x38, 0x40, 0x7d, 0xaf, 0x3d, 0x9a, 0xf6, - 0xc9, 0x63, 0x05, 0xce, 0xfa, 0x82, 0x9d, 0xa4, 0x43, 0x13, 0x76, 0xdd, 0x02, 0xd4, 0xf9, 0x3e, - 0x2c, 0x11, 0x91, 0x2e, 0x10, 0xcd, 0x93, 0x39, 0x3d, 0xe2, 0x66, 0xe8, 0xe8, 0x7b, 0x78, 0x2c, - 0xec, 0x93, 0xef, 0x14, 0x38, 0x17, 0x1c, 0xb4, 0x44, 0x0f, 0x4d, 0x26, 0xbf, 0x11, 0xa8, 0x37, - 0xfb, 0x77, 0x40, 0x90, 0xcb, 0x02, 0xe4, 0x22, 0x59, 0xd0, 0xe3, 0x2e, 0x88, 0x01, 0xa0, 0xdf, - 0x28, 0x70, 0x3e, 0x18, 0x2d, 0x67, 0x9a, 0x11, 0x58, 0xe5, 0xf7, 0x82, 0x08, 0xac, 0x21, 0x02, - 0x5f, 0x9b, 0x17, 0x58, 0xaf, 0x91, 0xab, 0xb1, 0x58, 0xc9, 0x2f, 0x0a, 0x4c, 0x4a, 0x84, 0x1e, - 0x59, 0x89, 0x2a, 0x50, 0xb8, 0xb0, 0x55, 0x6f, 0x1d, 0xdb, 0x0f, 0x31, 0xaf, 0x0a, 0xcc, 0xcb, - 0x24, 0xab, 0xf7, 0x7b, 0x61, 0xd7, 0xf7, 0xc4, 0x74, 0xdd, 0x27, 0x4f, 0x15, 0x78, 0x55, 0x12, - 0xda, 0x2d, 0xf6, 0x4a, 0x54, 0xed, 0x4e, 0x44, 0x23, 0x5a, 0x68, 0x6b, 0x59, 0x41, 0x63, 0x81, - 0xcc, 0xf7, 0x4d, 0x83, 0xfc, 0xa4, 0xc0, 0x78, 0x67, 0xc8, 0x88, 0x51, 0x10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8, 0x9f, 0xb7, 0xe3, 0x0a, 0x4d, 0x59, 0x1c, 0x11, 0xff, 0x53, 0xb8, 0xfc, 0x5f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x40, 0x26, 0x77, 0xa3, 0xcd, 0x15, 0x00, 0x00, + // 1344 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xcf, 0xb6, 0x4d, 0xda, 0xbc, 0xfc, 0x9e, 0xb8, 0x55, 0xba, 0xcd, 0xd7, 0x49, 0xf7, 0x1b, + 0x39, 0x6e, 0x52, 0x7b, 0x9b, 0x84, 0x34, 0x80, 0x28, 0x52, 0x0d, 0x4a, 0x14, 0x21, 0x94, 0xd6, + 0x41, 0x42, 0x0a, 0x42, 0xab, 0xf1, 0x7a, 0xe2, 0x98, 0xd8, 0xbb, 0xae, 0x77, 0xdc, 0x60, 0x45, + 0xb9, 0x20, 0xc1, 0xb9, 0x12, 0x37, 0x8e, 0x1c, 0x10, 0xa2, 0xd7, 0x4a, 0x1c, 0xe0, 0x8a, 0x94, + 0x63, 0x81, 0x0b, 0xe2, 0x50, 0xa1, 0x84, 0xff, 0x82, 0x0b, 0xf2, 0xec, 0x5b, 0x67, 0xd7, 0x9e, + 0x5d, 0xdb, 0x60, 0x2e, 0x8d, 0x77, 0xe7, 0xfd, 0xf8, 0x7c, 0xde, 0xcc, 0x7b, 0xf3, 0xd9, 0x42, + 0xbc, 0x50, 0x65, 0xcc, 0xda, 0x2f, 0xb2, 0x52, 0x5e, 0xaf, 0xd0, 0x7a, 0x99, 0x59, 0x5c, 0x7f, + 0x52, 0x63, 0xd5, 0x7a, 0xba, 0x52, 0xb5, 0xb9, 0x4d, 0xc8, 0xc5, 0x7a, 0x1a, 0xd7, 0xd5, 0x25, + 0xd3, 0x76, 0xca, 0xb6, 0xa3, 0xe7, 0xa8, 0x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3c, + 0xdc, 0xd6, 0x96, 0x5a, 0x01, 0xa7, 0xe3, 0xc3, 0x1a, 0xb7, 0x77, 0x85, 0xa6, 0xfe, 0x8f, 0xe4, + 0xc3, 0x4f, 0x0a, 0x8e, 0x54, 0x49, 0x26, 0x44, 0xbd, 0x07, 0xd3, 0xed, 0xda, 0xde, 0x1b, 0x3d, + 0x0b, 0xb2, 0x06, 0x69, 0x8d, 0x85, 0x4d, 0x32, 0x45, 0x5b, 0x73, 0xf4, 0x6d, 0xfc, 0xac, 0xfe, + 0x35, 0x01, 0x83, 0x82, 0x07, 0x39, 0x81, 0x21, 0x57, 0xbe, 0x92, 0x84, 0x0c, 0x5b, 0xbb, 0x88, + 0x57, 0x17, 0x3b, 0xda, 0xb9, 0x09, 0x35, 0xed, 0xb3, 0x5f, 0xff, 0xfc, 0xf2, 0xd2, 0x2c, 0x51, + 0xf5, 0xd0, 0xef, 0x15, 0xf2, 0x9d, 0x02, 0x53, 0x6d, 0xea, 0x9b, 0xac, 0x74, 0x48, 0xd1, 0x2e, + 0xf4, 0xd5, 0xd5, 0x5e, 0x5c, 0x10, 0x60, 0x5a, 0x00, 0x4c, 0x92, 0x44, 0x38, 0x40, 0xfd, 0xb8, + 0x39, 0x92, 0x4e, 0xc8, 0x33, 0x05, 0xae, 0x79, 0xe2, 0x9c, 0x24, 0x43, 0x13, 0xb6, 0x28, 0x7e, + 0xf5, 0x4e, 0x17, 0x96, 0x88, 0x48, 0x17, 0x88, 0xee, 0x90, 0x45, 0x3d, 0xe2, 0x2b, 0xd0, 0xd1, + 0x8f, 0xf1, 0x3a, 0x38, 0x21, 0xdf, 0x28, 0x30, 0xea, 0x1f, 0xb0, 0x44, 0x0f, 0x4d, 0x26, 0x57, + 0xff, 0xea, 0xbd, 0xee, 0x1d, 0x10, 0xe4, 0x9a, 0x00, 0x99, 0x22, 0xcb, 0x7a, 0xa7, 0x8f, 0x41, + 0x1f, 0xd0, 0xaf, 0x14, 0x18, 0x0b, 0x68, 0x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0xeb, 0xdd, + 0x14, 0xd9, 0xc8, 0xd5, 0x0d, 0xd1, 0x7b, 0xcd, 0x16, 0x7c, 0xae, 0xc0, 0x54, 0x9b, 0x24, 0x88, + 0x38, 0xcb, 0x61, 0x42, 0x25, 0xe2, 0x2c, 0x87, 0x2a, 0x8e, 0xe8, 0x4b, 0x43, 0xa2, 0x45, 0x32, + 0xdb, 0xa7, 0x67, 0x71, 0xe5, 0xe5, 0x59, 0x5c, 0xf9, 0xe3, 0x2c, 0xae, 0x3c, 0x3b, 0x8f, 0x0f, + 0xbc, 0x3c, 0x8f, 0x0f, 0xfc, 0x76, 0x1e, 0x1f, 0xd8, 0xd3, 0x7d, 0xba, 0x30, 0x67, 0xe5, 0x52, + 0xe6, 0x01, 0x2d, 0x5a, 0xfe, 0xb0, 0x9f, 0x36, 0x03, 0x0b, 0x91, 0x98, 0x1b, 0x12, 0xff, 0xdd, + 0xb7, 0xf6, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xc5, 0x84, 0x27, 0x92, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1272,28 +1270,28 @@ const _ = grpc.SupportPackageIsVersion4 type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // ParamsByTimestamp queries the parameters of the module. + // ParamsByTimestamp queries the parameter of the module by timestamp. ParamsByTimestamp(ctx context.Context, in *QueryParamsByTimestampRequest, opts ...grpc.CallOption) (*QueryParamsByTimestampResponse, error) - // Queries a StreamRecord by index. + // Queries our flows by account. OutFlows(ctx context.Context, in *QueryOutFlowsRequest, opts ...grpc.CallOption) (*QueryOutFlowsResponse, error) - // Queries a StreamRecord by index. + // Queries a stream record by account. StreamRecord(ctx context.Context, in *QueryGetStreamRecordRequest, opts ...grpc.CallOption) (*QueryGetStreamRecordResponse, error) - // Queries a list of StreamRecord items. - StreamRecordAll(ctx context.Context, in *QueryAllStreamRecordRequest, opts ...grpc.CallOption) (*QueryAllStreamRecordResponse, error) - // Queries a PaymentAccountCount by index. - PaymentAccountCount(ctx context.Context, in *QueryGetPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountCountResponse, error) - // Queries a list of PaymentAccountCount items. - PaymentAccountCountAll(ctx context.Context, in *QueryAllPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryAllPaymentAccountCountResponse, error) - // Queries a PaymentAccount by index. + // Queries all stream records. + StreamRecords(ctx context.Context, in *QueryStreamRecordsRequest, opts ...grpc.CallOption) (*QueryStreamRecordsResponse, error) + // Queries the count of payment account by owner. + PaymentAccountCount(ctx context.Context, in *QueryPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryPaymentAccountCountResponse, error) + // Queries all counts of payment account for all owners. + PaymentAccountCounts(ctx context.Context, in *QueryPaymentAccountCountsRequest, opts ...grpc.CallOption) (*QueryPaymentAccountCountsResponse, error) + // Queries a payment account by payment account address. PaymentAccount(ctx context.Context, in *QueryGetPaymentAccountRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountResponse, error) - // Queries a list of PaymentAccount items. - PaymentAccountAll(ctx context.Context, in *QueryAllPaymentAccountRequest, opts ...grpc.CallOption) (*QueryAllPaymentAccountResponse, error) - // Queries a list of DynamicBalance items. + // Queries all payment accounts. + PaymentAccounts(ctx context.Context, in *QueryPaymentAccountsRequest, opts ...grpc.CallOption) (*QueryPaymentAccountsResponse, error) + // Queries dynamic balance of a payment account. DynamicBalance(ctx context.Context, in *QueryDynamicBalanceRequest, opts ...grpc.CallOption) (*QueryDynamicBalanceResponse, error) - // Queries a list of GetPaymentAccountsByOwner items. - GetPaymentAccountsByOwner(ctx context.Context, in *QueryGetPaymentAccountsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountsByOwnerResponse, error) - // Queries a list of AutoSettleRecord items. - AutoSettleRecordAll(ctx context.Context, in *QueryAllAutoSettleRecordRequest, opts ...grpc.CallOption) (*QueryAllAutoSettleRecordResponse, error) + // Queries all payment accounts by a owner. + PaymentAccountsByOwner(ctx context.Context, in *QueryPaymentAccountsByOwnerRequest, opts ...grpc.CallOption) (*QueryPaymentAccountsByOwnerResponse, error) + // Queries all auto settle records. + AutoSettleRecords(ctx context.Context, in *QueryAutoSettleRecordsRequest, opts ...grpc.CallOption) (*QueryAutoSettleRecordsResponse, error) } type queryClient struct { @@ -1340,17 +1338,17 @@ func (c *queryClient) StreamRecord(ctx context.Context, in *QueryGetStreamRecord return out, nil } -func (c *queryClient) StreamRecordAll(ctx context.Context, in *QueryAllStreamRecordRequest, opts ...grpc.CallOption) (*QueryAllStreamRecordResponse, error) { - out := new(QueryAllStreamRecordResponse) - err := c.cc.Invoke(ctx, "/greenfield.payment.Query/StreamRecordAll", in, out, opts...) +func (c *queryClient) StreamRecords(ctx context.Context, in *QueryStreamRecordsRequest, opts ...grpc.CallOption) (*QueryStreamRecordsResponse, error) { + out := new(QueryStreamRecordsResponse) + err := c.cc.Invoke(ctx, "/greenfield.payment.Query/StreamRecords", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PaymentAccountCount(ctx context.Context, in *QueryGetPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountCountResponse, error) { - out := new(QueryGetPaymentAccountCountResponse) +func (c *queryClient) PaymentAccountCount(ctx context.Context, in *QueryPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryPaymentAccountCountResponse, error) { + out := new(QueryPaymentAccountCountResponse) err := c.cc.Invoke(ctx, "/greenfield.payment.Query/PaymentAccountCount", in, out, opts...) if err != nil { return nil, err @@ -1358,9 +1356,9 @@ func (c *queryClient) PaymentAccountCount(ctx context.Context, in *QueryGetPayme return out, nil } -func (c *queryClient) PaymentAccountCountAll(ctx context.Context, in *QueryAllPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryAllPaymentAccountCountResponse, error) { - out := new(QueryAllPaymentAccountCountResponse) - err := c.cc.Invoke(ctx, "/greenfield.payment.Query/PaymentAccountCountAll", in, out, opts...) +func (c *queryClient) PaymentAccountCounts(ctx context.Context, in *QueryPaymentAccountCountsRequest, opts ...grpc.CallOption) (*QueryPaymentAccountCountsResponse, error) { + out := new(QueryPaymentAccountCountsResponse) + err := c.cc.Invoke(ctx, "/greenfield.payment.Query/PaymentAccountCounts", in, out, opts...) if err != nil { return nil, err } @@ -1376,9 +1374,9 @@ func (c *queryClient) PaymentAccount(ctx context.Context, in *QueryGetPaymentAcc return out, nil } -func (c *queryClient) PaymentAccountAll(ctx context.Context, in *QueryAllPaymentAccountRequest, opts ...grpc.CallOption) (*QueryAllPaymentAccountResponse, error) { - out := new(QueryAllPaymentAccountResponse) - err := c.cc.Invoke(ctx, "/greenfield.payment.Query/PaymentAccountAll", in, out, opts...) +func (c *queryClient) PaymentAccounts(ctx context.Context, in *QueryPaymentAccountsRequest, opts ...grpc.CallOption) (*QueryPaymentAccountsResponse, error) { + out := new(QueryPaymentAccountsResponse) + err := c.cc.Invoke(ctx, "/greenfield.payment.Query/PaymentAccounts", in, out, opts...) if err != nil { return nil, err } @@ -1394,18 +1392,18 @@ func (c *queryClient) DynamicBalance(ctx context.Context, in *QueryDynamicBalanc return out, nil } -func (c *queryClient) GetPaymentAccountsByOwner(ctx context.Context, in *QueryGetPaymentAccountsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountsByOwnerResponse, error) { - out := new(QueryGetPaymentAccountsByOwnerResponse) - err := c.cc.Invoke(ctx, "/greenfield.payment.Query/GetPaymentAccountsByOwner", in, out, opts...) +func (c *queryClient) PaymentAccountsByOwner(ctx context.Context, in *QueryPaymentAccountsByOwnerRequest, opts ...grpc.CallOption) (*QueryPaymentAccountsByOwnerResponse, error) { + out := new(QueryPaymentAccountsByOwnerResponse) + err := c.cc.Invoke(ctx, "/greenfield.payment.Query/PaymentAccountsByOwner", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) AutoSettleRecordAll(ctx context.Context, in *QueryAllAutoSettleRecordRequest, opts ...grpc.CallOption) (*QueryAllAutoSettleRecordResponse, error) { - out := new(QueryAllAutoSettleRecordResponse) - err := c.cc.Invoke(ctx, "/greenfield.payment.Query/AutoSettleRecordAll", in, out, opts...) +func (c *queryClient) AutoSettleRecords(ctx context.Context, in *QueryAutoSettleRecordsRequest, opts ...grpc.CallOption) (*QueryAutoSettleRecordsResponse, error) { + out := new(QueryAutoSettleRecordsResponse) + err := c.cc.Invoke(ctx, "/greenfield.payment.Query/AutoSettleRecords", in, out, opts...) if err != nil { return nil, err } @@ -1416,28 +1414,28 @@ func (c *queryClient) AutoSettleRecordAll(ctx context.Context, in *QueryAllAutoS type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // ParamsByTimestamp queries the parameters of the module. + // ParamsByTimestamp queries the parameter of the module by timestamp. ParamsByTimestamp(context.Context, *QueryParamsByTimestampRequest) (*QueryParamsByTimestampResponse, error) - // Queries a StreamRecord by index. + // Queries our flows by account. OutFlows(context.Context, *QueryOutFlowsRequest) (*QueryOutFlowsResponse, error) - // Queries a StreamRecord by index. + // Queries a stream record by account. StreamRecord(context.Context, *QueryGetStreamRecordRequest) (*QueryGetStreamRecordResponse, error) - // Queries a list of StreamRecord items. - StreamRecordAll(context.Context, *QueryAllStreamRecordRequest) (*QueryAllStreamRecordResponse, error) - // Queries a PaymentAccountCount by index. - PaymentAccountCount(context.Context, *QueryGetPaymentAccountCountRequest) (*QueryGetPaymentAccountCountResponse, error) - // Queries a list of PaymentAccountCount items. - PaymentAccountCountAll(context.Context, *QueryAllPaymentAccountCountRequest) (*QueryAllPaymentAccountCountResponse, error) - // Queries a PaymentAccount by index. + // Queries all stream records. + StreamRecords(context.Context, *QueryStreamRecordsRequest) (*QueryStreamRecordsResponse, error) + // Queries the count of payment account by owner. + PaymentAccountCount(context.Context, *QueryPaymentAccountCountRequest) (*QueryPaymentAccountCountResponse, error) + // Queries all counts of payment account for all owners. + PaymentAccountCounts(context.Context, *QueryPaymentAccountCountsRequest) (*QueryPaymentAccountCountsResponse, error) + // Queries a payment account by payment account address. PaymentAccount(context.Context, *QueryGetPaymentAccountRequest) (*QueryGetPaymentAccountResponse, error) - // Queries a list of PaymentAccount items. - PaymentAccountAll(context.Context, *QueryAllPaymentAccountRequest) (*QueryAllPaymentAccountResponse, error) - // Queries a list of DynamicBalance items. + // Queries all payment accounts. + PaymentAccounts(context.Context, *QueryPaymentAccountsRequest) (*QueryPaymentAccountsResponse, error) + // Queries dynamic balance of a payment account. DynamicBalance(context.Context, *QueryDynamicBalanceRequest) (*QueryDynamicBalanceResponse, error) - // Queries a list of GetPaymentAccountsByOwner items. - GetPaymentAccountsByOwner(context.Context, *QueryGetPaymentAccountsByOwnerRequest) (*QueryGetPaymentAccountsByOwnerResponse, error) - // Queries a list of AutoSettleRecord items. - AutoSettleRecordAll(context.Context, *QueryAllAutoSettleRecordRequest) (*QueryAllAutoSettleRecordResponse, error) + // Queries all payment accounts by a owner. + PaymentAccountsByOwner(context.Context, *QueryPaymentAccountsByOwnerRequest) (*QueryPaymentAccountsByOwnerResponse, error) + // Queries all auto settle records. + AutoSettleRecords(context.Context, *QueryAutoSettleRecordsRequest) (*QueryAutoSettleRecordsResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1456,29 +1454,29 @@ func (*UnimplementedQueryServer) OutFlows(ctx context.Context, req *QueryOutFlow func (*UnimplementedQueryServer) StreamRecord(ctx context.Context, req *QueryGetStreamRecordRequest) (*QueryGetStreamRecordResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StreamRecord not implemented") } -func (*UnimplementedQueryServer) StreamRecordAll(ctx context.Context, req *QueryAllStreamRecordRequest) (*QueryAllStreamRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StreamRecordAll not implemented") +func (*UnimplementedQueryServer) StreamRecords(ctx context.Context, req *QueryStreamRecordsRequest) (*QueryStreamRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StreamRecords not implemented") } -func (*UnimplementedQueryServer) PaymentAccountCount(ctx context.Context, req *QueryGetPaymentAccountCountRequest) (*QueryGetPaymentAccountCountResponse, error) { +func (*UnimplementedQueryServer) PaymentAccountCount(ctx context.Context, req *QueryPaymentAccountCountRequest) (*QueryPaymentAccountCountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PaymentAccountCount not implemented") } -func (*UnimplementedQueryServer) PaymentAccountCountAll(ctx context.Context, req *QueryAllPaymentAccountCountRequest) (*QueryAllPaymentAccountCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PaymentAccountCountAll not implemented") +func (*UnimplementedQueryServer) PaymentAccountCounts(ctx context.Context, req *QueryPaymentAccountCountsRequest) (*QueryPaymentAccountCountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PaymentAccountCounts not implemented") } func (*UnimplementedQueryServer) PaymentAccount(ctx context.Context, req *QueryGetPaymentAccountRequest) (*QueryGetPaymentAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PaymentAccount not implemented") } -func (*UnimplementedQueryServer) PaymentAccountAll(ctx context.Context, req *QueryAllPaymentAccountRequest) (*QueryAllPaymentAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PaymentAccountAll not implemented") +func (*UnimplementedQueryServer) PaymentAccounts(ctx context.Context, req *QueryPaymentAccountsRequest) (*QueryPaymentAccountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PaymentAccounts not implemented") } func (*UnimplementedQueryServer) DynamicBalance(ctx context.Context, req *QueryDynamicBalanceRequest) (*QueryDynamicBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DynamicBalance not implemented") } -func (*UnimplementedQueryServer) GetPaymentAccountsByOwner(ctx context.Context, req *QueryGetPaymentAccountsByOwnerRequest) (*QueryGetPaymentAccountsByOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPaymentAccountsByOwner not implemented") +func (*UnimplementedQueryServer) PaymentAccountsByOwner(ctx context.Context, req *QueryPaymentAccountsByOwnerRequest) (*QueryPaymentAccountsByOwnerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PaymentAccountsByOwner not implemented") } -func (*UnimplementedQueryServer) AutoSettleRecordAll(ctx context.Context, req *QueryAllAutoSettleRecordRequest) (*QueryAllAutoSettleRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AutoSettleRecordAll not implemented") +func (*UnimplementedQueryServer) AutoSettleRecords(ctx context.Context, req *QueryAutoSettleRecordsRequest) (*QueryAutoSettleRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AutoSettleRecords not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { @@ -1557,26 +1555,26 @@ func _Query_StreamRecord_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -func _Query_StreamRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllStreamRecordRequest) +func _Query_StreamRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStreamRecordsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).StreamRecordAll(ctx, in) + return srv.(QueryServer).StreamRecords(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greenfield.payment.Query/StreamRecordAll", + FullMethod: "/greenfield.payment.Query/StreamRecords", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).StreamRecordAll(ctx, req.(*QueryAllStreamRecordRequest)) + return srv.(QueryServer).StreamRecords(ctx, req.(*QueryStreamRecordsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_PaymentAccountCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPaymentAccountCountRequest) + in := new(QueryPaymentAccountCountRequest) if err := dec(in); err != nil { return nil, err } @@ -1588,25 +1586,25 @@ func _Query_PaymentAccountCount_Handler(srv interface{}, ctx context.Context, de FullMethod: "/greenfield.payment.Query/PaymentAccountCount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PaymentAccountCount(ctx, req.(*QueryGetPaymentAccountCountRequest)) + return srv.(QueryServer).PaymentAccountCount(ctx, req.(*QueryPaymentAccountCountRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PaymentAccountCountAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllPaymentAccountCountRequest) +func _Query_PaymentAccountCounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPaymentAccountCountsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PaymentAccountCountAll(ctx, in) + return srv.(QueryServer).PaymentAccountCounts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greenfield.payment.Query/PaymentAccountCountAll", + FullMethod: "/greenfield.payment.Query/PaymentAccountCounts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PaymentAccountCountAll(ctx, req.(*QueryAllPaymentAccountCountRequest)) + return srv.(QueryServer).PaymentAccountCounts(ctx, req.(*QueryPaymentAccountCountsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1629,20 +1627,20 @@ func _Query_PaymentAccount_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_PaymentAccountAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllPaymentAccountRequest) +func _Query_PaymentAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPaymentAccountsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PaymentAccountAll(ctx, in) + return srv.(QueryServer).PaymentAccounts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greenfield.payment.Query/PaymentAccountAll", + FullMethod: "/greenfield.payment.Query/PaymentAccounts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PaymentAccountAll(ctx, req.(*QueryAllPaymentAccountRequest)) + return srv.(QueryServer).PaymentAccounts(ctx, req.(*QueryPaymentAccountsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1665,38 +1663,38 @@ func _Query_DynamicBalance_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_GetPaymentAccountsByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPaymentAccountsByOwnerRequest) +func _Query_PaymentAccountsByOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPaymentAccountsByOwnerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetPaymentAccountsByOwner(ctx, in) + return srv.(QueryServer).PaymentAccountsByOwner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greenfield.payment.Query/GetPaymentAccountsByOwner", + FullMethod: "/greenfield.payment.Query/PaymentAccountsByOwner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetPaymentAccountsByOwner(ctx, req.(*QueryGetPaymentAccountsByOwnerRequest)) + return srv.(QueryServer).PaymentAccountsByOwner(ctx, req.(*QueryPaymentAccountsByOwnerRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_AutoSettleRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllAutoSettleRecordRequest) +func _Query_AutoSettleRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAutoSettleRecordsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).AutoSettleRecordAll(ctx, in) + return srv.(QueryServer).AutoSettleRecords(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greenfield.payment.Query/AutoSettleRecordAll", + FullMethod: "/greenfield.payment.Query/AutoSettleRecords", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AutoSettleRecordAll(ctx, req.(*QueryAllAutoSettleRecordRequest)) + return srv.(QueryServer).AutoSettleRecords(ctx, req.(*QueryAutoSettleRecordsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1722,36 +1720,36 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_StreamRecord_Handler, }, { - MethodName: "StreamRecordAll", - Handler: _Query_StreamRecordAll_Handler, + MethodName: "StreamRecords", + Handler: _Query_StreamRecords_Handler, }, { MethodName: "PaymentAccountCount", Handler: _Query_PaymentAccountCount_Handler, }, { - MethodName: "PaymentAccountCountAll", - Handler: _Query_PaymentAccountCountAll_Handler, + MethodName: "PaymentAccountCounts", + Handler: _Query_PaymentAccountCounts_Handler, }, { MethodName: "PaymentAccount", Handler: _Query_PaymentAccount_Handler, }, { - MethodName: "PaymentAccountAll", - Handler: _Query_PaymentAccountAll_Handler, + MethodName: "PaymentAccounts", + Handler: _Query_PaymentAccounts_Handler, }, { MethodName: "DynamicBalance", Handler: _Query_DynamicBalance_Handler, }, { - MethodName: "GetPaymentAccountsByOwner", - Handler: _Query_GetPaymentAccountsByOwner_Handler, + MethodName: "PaymentAccountsByOwner", + Handler: _Query_PaymentAccountsByOwner_Handler, }, { - MethodName: "AutoSettleRecordAll", - Handler: _Query_AutoSettleRecordAll_Handler, + MethodName: "AutoSettleRecords", + Handler: _Query_AutoSettleRecords_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -2005,7 +2003,7 @@ func (m *QueryGetStreamRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryAllStreamRecordRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStreamRecordsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2015,12 +2013,12 @@ func (m *QueryAllStreamRecordRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllStreamRecordRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStreamRecordsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllStreamRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStreamRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2040,7 +2038,7 @@ func (m *QueryAllStreamRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllStreamRecordResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStreamRecordsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2050,12 +2048,12 @@ func (m *QueryAllStreamRecordResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllStreamRecordResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStreamRecordsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllStreamRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStreamRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2072,10 +2070,10 @@ func (m *QueryAllStreamRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, e i-- dAtA[i] = 0x12 } - if len(m.StreamRecord) > 0 { - for iNdEx := len(m.StreamRecord) - 1; iNdEx >= 0; iNdEx-- { + if len(m.StreamRecords) > 0 { + for iNdEx := len(m.StreamRecords) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.StreamRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.StreamRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2089,7 +2087,7 @@ func (m *QueryAllStreamRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryGetPaymentAccountCountRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountCountRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2099,12 +2097,12 @@ func (m *QueryGetPaymentAccountCountRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryGetPaymentAccountCountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPaymentAccountCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2119,7 +2117,7 @@ func (m *QueryGetPaymentAccountCountRequest) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryGetPaymentAccountCountResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountCountResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2129,12 +2127,12 @@ func (m *QueryGetPaymentAccountCountResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryGetPaymentAccountCountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPaymentAccountCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2152,7 +2150,7 @@ func (m *QueryGetPaymentAccountCountResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryAllPaymentAccountCountRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountCountsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2162,12 +2160,12 @@ func (m *QueryAllPaymentAccountCountRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryAllPaymentAccountCountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPaymentAccountCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2187,7 +2185,7 @@ func (m *QueryAllPaymentAccountCountRequest) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryAllPaymentAccountCountResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountCountsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2197,12 +2195,12 @@ func (m *QueryAllPaymentAccountCountResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryAllPaymentAccountCountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPaymentAccountCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountCountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2219,10 +2217,10 @@ func (m *QueryAllPaymentAccountCountResponse) MarshalToSizedBuffer(dAtA []byte) i-- dAtA[i] = 0x12 } - if len(m.PaymentAccountCount) > 0 { - for iNdEx := len(m.PaymentAccountCount) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PaymentAccountCounts) > 0 { + for iNdEx := len(m.PaymentAccountCounts) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.PaymentAccountCount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PaymentAccountCounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2299,7 +2297,7 @@ func (m *QueryGetPaymentAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryAllPaymentAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2309,12 +2307,12 @@ func (m *QueryAllPaymentAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPaymentAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPaymentAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2334,7 +2332,7 @@ func (m *QueryAllPaymentAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryAllPaymentAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2344,12 +2342,12 @@ func (m *QueryAllPaymentAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPaymentAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPaymentAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2366,10 +2364,10 @@ func (m *QueryAllPaymentAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, i-- dAtA[i] = 0x12 } - if len(m.PaymentAccount) > 0 { - for iNdEx := len(m.PaymentAccount) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PaymentAccounts) > 0 { + for iNdEx := len(m.PaymentAccounts) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.PaymentAccount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PaymentAccounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2501,7 +2499,7 @@ func (m *QueryDynamicBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryGetPaymentAccountsByOwnerRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountsByOwnerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2511,12 +2509,12 @@ func (m *QueryGetPaymentAccountsByOwnerRequest) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryGetPaymentAccountsByOwnerRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsByOwnerRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPaymentAccountsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2531,7 +2529,7 @@ func (m *QueryGetPaymentAccountsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *QueryGetPaymentAccountsByOwnerResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPaymentAccountsByOwnerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2541,12 +2539,12 @@ func (m *QueryGetPaymentAccountsByOwnerResponse) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *QueryGetPaymentAccountsByOwnerResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsByOwnerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPaymentAccountsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPaymentAccountsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2563,7 +2561,7 @@ func (m *QueryGetPaymentAccountsByOwnerResponse) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *QueryAllAutoSettleRecordRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAutoSettleRecordsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2573,12 +2571,12 @@ func (m *QueryAllAutoSettleRecordRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAutoSettleRecordRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAutoSettleRecordsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAutoSettleRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAutoSettleRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2598,7 +2596,7 @@ func (m *QueryAllAutoSettleRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *QueryAllAutoSettleRecordResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAutoSettleRecordsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2608,12 +2606,12 @@ func (m *QueryAllAutoSettleRecordResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAutoSettleRecordResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAutoSettleRecordsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAutoSettleRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAutoSettleRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2630,10 +2628,10 @@ func (m *QueryAllAutoSettleRecordResponse) MarshalToSizedBuffer(dAtA []byte) (in i-- dAtA[i] = 0x12 } - if len(m.AutoSettleRecord) > 0 { - for iNdEx := len(m.AutoSettleRecord) - 1; iNdEx >= 0; iNdEx-- { + if len(m.AutoSettleRecords) > 0 { + for iNdEx := len(m.AutoSettleRecords) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.AutoSettleRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.AutoSettleRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2753,7 +2751,7 @@ func (m *QueryGetStreamRecordResponse) Size() (n int) { return n } -func (m *QueryAllStreamRecordRequest) Size() (n int) { +func (m *QueryStreamRecordsRequest) Size() (n int) { if m == nil { return 0 } @@ -2766,14 +2764,14 @@ func (m *QueryAllStreamRecordRequest) Size() (n int) { return n } -func (m *QueryAllStreamRecordResponse) Size() (n int) { +func (m *QueryStreamRecordsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.StreamRecord) > 0 { - for _, e := range m.StreamRecord { + if len(m.StreamRecords) > 0 { + for _, e := range m.StreamRecords { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -2785,7 +2783,7 @@ func (m *QueryAllStreamRecordResponse) Size() (n int) { return n } -func (m *QueryGetPaymentAccountCountRequest) Size() (n int) { +func (m *QueryPaymentAccountCountRequest) Size() (n int) { if m == nil { return 0 } @@ -2798,7 +2796,7 @@ func (m *QueryGetPaymentAccountCountRequest) Size() (n int) { return n } -func (m *QueryGetPaymentAccountCountResponse) Size() (n int) { +func (m *QueryPaymentAccountCountResponse) Size() (n int) { if m == nil { return 0 } @@ -2809,7 +2807,7 @@ func (m *QueryGetPaymentAccountCountResponse) Size() (n int) { return n } -func (m *QueryAllPaymentAccountCountRequest) Size() (n int) { +func (m *QueryPaymentAccountCountsRequest) Size() (n int) { if m == nil { return 0 } @@ -2822,14 +2820,14 @@ func (m *QueryAllPaymentAccountCountRequest) Size() (n int) { return n } -func (m *QueryAllPaymentAccountCountResponse) Size() (n int) { +func (m *QueryPaymentAccountCountsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.PaymentAccountCount) > 0 { - for _, e := range m.PaymentAccountCount { + if len(m.PaymentAccountCounts) > 0 { + for _, e := range m.PaymentAccountCounts { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -2865,7 +2863,7 @@ func (m *QueryGetPaymentAccountResponse) Size() (n int) { return n } -func (m *QueryAllPaymentAccountRequest) Size() (n int) { +func (m *QueryPaymentAccountsRequest) Size() (n int) { if m == nil { return 0 } @@ -2878,14 +2876,14 @@ func (m *QueryAllPaymentAccountRequest) Size() (n int) { return n } -func (m *QueryAllPaymentAccountResponse) Size() (n int) { +func (m *QueryPaymentAccountsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.PaymentAccount) > 0 { - for _, e := range m.PaymentAccount { + if len(m.PaymentAccounts) > 0 { + for _, e := range m.PaymentAccounts { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -2934,7 +2932,7 @@ func (m *QueryDynamicBalanceResponse) Size() (n int) { return n } -func (m *QueryGetPaymentAccountsByOwnerRequest) Size() (n int) { +func (m *QueryPaymentAccountsByOwnerRequest) Size() (n int) { if m == nil { return 0 } @@ -2947,7 +2945,7 @@ func (m *QueryGetPaymentAccountsByOwnerRequest) Size() (n int) { return n } -func (m *QueryGetPaymentAccountsByOwnerResponse) Size() (n int) { +func (m *QueryPaymentAccountsByOwnerResponse) Size() (n int) { if m == nil { return 0 } @@ -2962,7 +2960,7 @@ func (m *QueryGetPaymentAccountsByOwnerResponse) Size() (n int) { return n } -func (m *QueryAllAutoSettleRecordRequest) Size() (n int) { +func (m *QueryAutoSettleRecordsRequest) Size() (n int) { if m == nil { return 0 } @@ -2975,14 +2973,14 @@ func (m *QueryAllAutoSettleRecordRequest) Size() (n int) { return n } -func (m *QueryAllAutoSettleRecordResponse) Size() (n int) { +func (m *QueryAutoSettleRecordsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.AutoSettleRecord) > 0 { - for _, e := range m.AutoSettleRecord { + if len(m.AutoSettleRecords) > 0 { + for _, e := range m.AutoSettleRecords { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -3616,7 +3614,7 @@ func (m *QueryGetStreamRecordResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllStreamRecordRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStreamRecordsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3639,10 +3637,10 @@ func (m *QueryAllStreamRecordRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllStreamRecordRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStreamRecordsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllStreamRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStreamRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3702,7 +3700,7 @@ func (m *QueryAllStreamRecordRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllStreamRecordResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStreamRecordsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3725,15 +3723,15 @@ func (m *QueryAllStreamRecordResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllStreamRecordResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStreamRecordsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllStreamRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStreamRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StreamRecord", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StreamRecords", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3760,8 +3758,8 @@ func (m *QueryAllStreamRecordResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StreamRecord = append(m.StreamRecord, StreamRecord{}) - if err := m.StreamRecord[len(m.StreamRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.StreamRecords = append(m.StreamRecords, StreamRecord{}) + if err := m.StreamRecords[len(m.StreamRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3822,7 +3820,7 @@ func (m *QueryAllStreamRecordResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3845,10 +3843,10 @@ func (m *QueryGetPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPaymentAccountCountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountCountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPaymentAccountCountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountCountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3904,7 +3902,7 @@ func (m *QueryGetPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3927,10 +3925,10 @@ func (m *QueryGetPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPaymentAccountCountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountCountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPaymentAccountCountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountCountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3987,7 +3985,7 @@ func (m *QueryGetPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountCountsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4010,10 +4008,10 @@ func (m *QueryAllPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPaymentAccountCountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountCountsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPaymentAccountCountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountCountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4073,7 +4071,7 @@ func (m *QueryAllPaymentAccountCountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountCountsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4096,15 +4094,15 @@ func (m *QueryAllPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPaymentAccountCountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountCountsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPaymentAccountCountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountCountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PaymentAccountCount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PaymentAccountCounts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4131,8 +4129,8 @@ func (m *QueryAllPaymentAccountCountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PaymentAccountCount = append(m.PaymentAccountCount, PaymentAccountCount{}) - if err := m.PaymentAccountCount[len(m.PaymentAccountCount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PaymentAccountCounts = append(m.PaymentAccountCounts, PaymentAccountCount{}) + if err := m.PaymentAccountCounts[len(m.PaymentAccountCounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4358,7 +4356,7 @@ func (m *QueryGetPaymentAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPaymentAccountRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4381,10 +4379,10 @@ func (m *QueryAllPaymentAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPaymentAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPaymentAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4444,7 +4442,7 @@ func (m *QueryAllPaymentAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPaymentAccountResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4467,15 +4465,15 @@ func (m *QueryAllPaymentAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPaymentAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPaymentAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PaymentAccount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PaymentAccounts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4502,8 +4500,8 @@ func (m *QueryAllPaymentAccountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PaymentAccount = append(m.PaymentAccount, PaymentAccount{}) - if err := m.PaymentAccount[len(m.PaymentAccount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PaymentAccounts = append(m.PaymentAccounts, PaymentAccount{}) + if err := m.PaymentAccounts[len(m.PaymentAccounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4918,7 +4916,7 @@ func (m *QueryDynamicBalanceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPaymentAccountsByOwnerRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountsByOwnerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4941,10 +4939,10 @@ func (m *QueryGetPaymentAccountsByOwnerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPaymentAccountsByOwnerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountsByOwnerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPaymentAccountsByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountsByOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5000,7 +4998,7 @@ func (m *QueryGetPaymentAccountsByOwnerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPaymentAccountsByOwnerResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPaymentAccountsByOwnerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5023,10 +5021,10 @@ func (m *QueryGetPaymentAccountsByOwnerResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPaymentAccountsByOwnerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPaymentAccountsByOwnerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPaymentAccountsByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPaymentAccountsByOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5082,7 +5080,7 @@ func (m *QueryGetPaymentAccountsByOwnerResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAutoSettleRecordRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAutoSettleRecordsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5105,10 +5103,10 @@ func (m *QueryAllAutoSettleRecordRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAutoSettleRecordRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAutoSettleRecordsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAutoSettleRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAutoSettleRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5168,7 +5166,7 @@ func (m *QueryAllAutoSettleRecordRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAutoSettleRecordResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAutoSettleRecordsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5191,15 +5189,15 @@ func (m *QueryAllAutoSettleRecordResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAutoSettleRecordResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAutoSettleRecordsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAutoSettleRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAutoSettleRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoSettleRecord", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AutoSettleRecords", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5226,8 +5224,8 @@ func (m *QueryAllAutoSettleRecordResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AutoSettleRecord = append(m.AutoSettleRecord, AutoSettleRecord{}) - if err := m.AutoSettleRecord[len(m.AutoSettleRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.AutoSettleRecords = append(m.AutoSettleRecords, AutoSettleRecord{}) + if err := m.AutoSettleRecords[len(m.AutoSettleRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/payment/types/query.pb.gw.go b/x/payment/types/query.pb.gw.go index 3b840a38b..c3f668dff 100644 --- a/x/payment/types/query.pb.gw.go +++ b/x/payment/types/query.pb.gw.go @@ -214,43 +214,43 @@ func local_request_Query_StreamRecord_0(ctx context.Context, marshaler runtime.M } var ( - filter_Query_StreamRecordAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_StreamRecords_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_StreamRecordAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllStreamRecordRequest +func request_Query_StreamRecords_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStreamRecordsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_StreamRecordAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_StreamRecords_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.StreamRecordAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.StreamRecords(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_StreamRecordAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllStreamRecordRequest +func local_request_Query_StreamRecords_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStreamRecordsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_StreamRecordAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_StreamRecords_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.StreamRecordAll(ctx, &protoReq) + msg, err := server.StreamRecords(ctx, &protoReq) return msg, metadata, err } func request_Query_PaymentAccountCount_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPaymentAccountCountRequest + var protoReq QueryPaymentAccountCountRequest var metadata runtime.ServerMetadata var ( @@ -277,7 +277,7 @@ func request_Query_PaymentAccountCount_0(ctx context.Context, marshaler runtime. } func local_request_Query_PaymentAccountCount_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPaymentAccountCountRequest + var protoReq QueryPaymentAccountCountRequest var metadata runtime.ServerMetadata var ( @@ -304,37 +304,37 @@ func local_request_Query_PaymentAccountCount_0(ctx context.Context, marshaler ru } var ( - filter_Query_PaymentAccountCountAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_PaymentAccountCounts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_PaymentAccountCountAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPaymentAccountCountRequest +func request_Query_PaymentAccountCounts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPaymentAccountCountsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccountCountAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccountCounts_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.PaymentAccountCountAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.PaymentAccountCounts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_PaymentAccountCountAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPaymentAccountCountRequest +func local_request_Query_PaymentAccountCounts_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPaymentAccountCountsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccountCountAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccountCounts_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.PaymentAccountCountAll(ctx, &protoReq) + msg, err := server.PaymentAccountCounts(ctx, &protoReq) return msg, metadata, err } @@ -394,37 +394,37 @@ func local_request_Query_PaymentAccount_0(ctx context.Context, marshaler runtime } var ( - filter_Query_PaymentAccountAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_PaymentAccounts_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_PaymentAccountAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPaymentAccountRequest +func request_Query_PaymentAccounts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPaymentAccountsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccountAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccounts_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.PaymentAccountAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.PaymentAccounts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_PaymentAccountAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPaymentAccountRequest +func local_request_Query_PaymentAccounts_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPaymentAccountsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccountAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_PaymentAccounts_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.PaymentAccountAll(ctx, &protoReq) + msg, err := server.PaymentAccounts(ctx, &protoReq) return msg, metadata, err } @@ -483,8 +483,8 @@ func local_request_Query_DynamicBalance_0(ctx context.Context, marshaler runtime } -func request_Query_GetPaymentAccountsByOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPaymentAccountsByOwnerRequest +func request_Query_PaymentAccountsByOwner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPaymentAccountsByOwnerRequest var metadata runtime.ServerMetadata var ( @@ -505,13 +505,13 @@ func request_Query_GetPaymentAccountsByOwner_0(ctx context.Context, marshaler ru return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) } - msg, err := client.GetPaymentAccountsByOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.PaymentAccountsByOwner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GetPaymentAccountsByOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPaymentAccountsByOwnerRequest +func local_request_Query_PaymentAccountsByOwner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPaymentAccountsByOwnerRequest var metadata runtime.ServerMetadata var ( @@ -532,43 +532,43 @@ func local_request_Query_GetPaymentAccountsByOwner_0(ctx context.Context, marsha return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "owner", err) } - msg, err := server.GetPaymentAccountsByOwner(ctx, &protoReq) + msg, err := server.PaymentAccountsByOwner(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_AutoSettleRecordAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_AutoSettleRecords_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_AutoSettleRecordAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAutoSettleRecordRequest +func request_Query_AutoSettleRecords_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAutoSettleRecordsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AutoSettleRecordAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AutoSettleRecords_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.AutoSettleRecordAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.AutoSettleRecords(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_AutoSettleRecordAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAutoSettleRecordRequest +func local_request_Query_AutoSettleRecords_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAutoSettleRecordsRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AutoSettleRecordAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AutoSettleRecords_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AutoSettleRecordAll(ctx, &protoReq) + msg, err := server.AutoSettleRecords(ctx, &protoReq) return msg, metadata, err } @@ -671,7 +671,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_StreamRecordAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_StreamRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -682,7 +682,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_StreamRecordAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_StreamRecords_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -690,7 +690,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_StreamRecordAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_StreamRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -717,7 +717,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_PaymentAccountCountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PaymentAccountCounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -728,7 +728,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PaymentAccountCountAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PaymentAccountCounts_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -736,7 +736,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PaymentAccountCountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PaymentAccountCounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -763,7 +763,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_PaymentAccountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PaymentAccounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -774,7 +774,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PaymentAccountAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PaymentAccounts_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -782,7 +782,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PaymentAccountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PaymentAccounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -809,7 +809,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetPaymentAccountsByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PaymentAccountsByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -820,7 +820,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GetPaymentAccountsByOwner_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PaymentAccountsByOwner_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -828,11 +828,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GetPaymentAccountsByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PaymentAccountsByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_AutoSettleRecordAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_AutoSettleRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -843,7 +843,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_AutoSettleRecordAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_AutoSettleRecords_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -851,7 +851,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_AutoSettleRecordAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_AutoSettleRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -976,7 +976,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_StreamRecordAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_StreamRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -985,14 +985,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_StreamRecordAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_StreamRecords_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_StreamRecordAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_StreamRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1016,7 +1016,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_PaymentAccountCountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PaymentAccountCounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1025,14 +1025,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_PaymentAccountCountAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_PaymentAccountCounts_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_PaymentAccountCountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PaymentAccountCounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1056,7 +1056,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_PaymentAccountAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PaymentAccounts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1065,14 +1065,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_PaymentAccountAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_PaymentAccounts_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_PaymentAccountAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PaymentAccounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1096,7 +1096,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetPaymentAccountsByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PaymentAccountsByOwner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1105,18 +1105,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GetPaymentAccountsByOwner_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_PaymentAccountsByOwner_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GetPaymentAccountsByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PaymentAccountsByOwner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_AutoSettleRecordAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_AutoSettleRecords_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1125,14 +1125,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_AutoSettleRecordAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_AutoSettleRecords_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_AutoSettleRecordAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_AutoSettleRecords_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1148,21 +1148,21 @@ var ( pattern_Query_StreamRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "payment", "stream_record", "account"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_StreamRecordAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "stream_record"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_StreamRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "stream_records"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_PaymentAccountCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "payment", "payment_account_count", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PaymentAccountCountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "payment_account_count"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PaymentAccountCounts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "payment_account_counts"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_PaymentAccount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "payment", "payment_account", "addr"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PaymentAccountAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "payment_account"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PaymentAccounts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "payment_accounts"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DynamicBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "payment", "dynamic_balance", "account"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPaymentAccountsByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "payment", "get_payment_accounts_by_owner", "owner"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PaymentAccountsByOwner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "payment", "payment_accounts_by_owner", "owner"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AutoSettleRecordAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "auto_settle_record"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AutoSettleRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "payment", "auto_settle_records"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1174,19 +1174,19 @@ var ( forward_Query_StreamRecord_0 = runtime.ForwardResponseMessage - forward_Query_StreamRecordAll_0 = runtime.ForwardResponseMessage + forward_Query_StreamRecords_0 = runtime.ForwardResponseMessage forward_Query_PaymentAccountCount_0 = runtime.ForwardResponseMessage - forward_Query_PaymentAccountCountAll_0 = runtime.ForwardResponseMessage + forward_Query_PaymentAccountCounts_0 = runtime.ForwardResponseMessage forward_Query_PaymentAccount_0 = runtime.ForwardResponseMessage - forward_Query_PaymentAccountAll_0 = runtime.ForwardResponseMessage + forward_Query_PaymentAccounts_0 = runtime.ForwardResponseMessage forward_Query_DynamicBalance_0 = runtime.ForwardResponseMessage - forward_Query_GetPaymentAccountsByOwner_0 = runtime.ForwardResponseMessage + forward_Query_PaymentAccountsByOwner_0 = runtime.ForwardResponseMessage - forward_Query_AutoSettleRecordAll_0 = runtime.ForwardResponseMessage + forward_Query_AutoSettleRecords_0 = runtime.ForwardResponseMessage ) diff --git a/x/storage/client/cli/query.go b/x/storage/client/cli/query.go index b0f3fdf6d..0a7e5982c 100644 --- a/x/storage/client/cli/query.go +++ b/x/storage/client/cli/query.go @@ -264,11 +264,11 @@ func CmdListGroup() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryListGroupRequest{ + params := &types.QueryListGroupsRequest{ GroupOwner: reqGroupOwner, } - res, err := queryClient.ListGroup(cmd.Context(), params) + res, err := queryClient.ListGroups(cmd.Context(), params) if err != nil { return err } diff --git a/x/storage/keeper/query.go b/x/storage/keeper/query.go index f18e900e1..301c4f774 100644 --- a/x/storage/keeper/query.go +++ b/x/storage/keeper/query.go @@ -131,6 +131,9 @@ func (k Keeper) ListBuckets(goCtx context.Context, req *types.QueryListBucketsRe } ctx := sdk.UnwrapSDKContext(goCtx) + if err := query.CheckOffsetQueryNotAllowed(ctx, req.Pagination); err != nil { + return nil, err + } var bucketInfos []*types.BucketInfo store := ctx.KVStore(k.storeKey) @@ -154,6 +157,9 @@ func (k Keeper) ListObjects(goCtx context.Context, req *types.QueryListObjectsRe if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } + if req.BucketName == "" { + return nil, status.Error(codes.InvalidArgument, "bucket name should not be empty") + } if req.Pagination != nil && req.Pagination.Limit > types.MaxPaginationLimit { return nil, status.Errorf(codes.InvalidArgument, "exceed pagination limit %d", types.MaxPaginationLimit) } @@ -380,7 +386,7 @@ func (k Keeper) HeadGroup(goCtx context.Context, req *types.QueryHeadGroupReques return &types.QueryHeadGroupResponse{GroupInfo: groupInfo}, nil } -func (k Keeper) ListGroup(goCtx context.Context, req *types.QueryListGroupRequest) (*types.QueryListGroupResponse, error) { +func (k Keeper) ListGroups(goCtx context.Context, req *types.QueryListGroupsRequest) (*types.QueryListGroupsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -412,7 +418,7 @@ func (k Keeper) ListGroup(goCtx context.Context, req *types.QueryListGroupReques return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryListGroupResponse{GroupInfos: groupInfos, Pagination: pageRes}, nil + return &types.QueryListGroupsResponse{GroupInfos: groupInfos, Pagination: pageRes}, nil } func (k Keeper) HeadGroupMember(goCtx context.Context, req *types.QueryHeadGroupMemberRequest) (*types.QueryHeadGroupMemberResponse, error) { diff --git a/x/storage/types/query.pb.go b/x/storage/types/query.pb.go index 8a84a7bcb..a9f1642fd 100644 --- a/x/storage/types/query.pb.go +++ b/x/storage/types/query.pb.go @@ -1221,23 +1221,23 @@ func (m *QueryHeadGroupResponse) GetGroupInfo() *GroupInfo { return nil } -type QueryListGroupRequest struct { +type QueryListGroupsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` GroupOwner string `protobuf:"bytes,2,opt,name=group_owner,json=groupOwner,proto3" json:"group_owner,omitempty"` } -func (m *QueryListGroupRequest) Reset() { *m = QueryListGroupRequest{} } -func (m *QueryListGroupRequest) String() string { return proto.CompactTextString(m) } -func (*QueryListGroupRequest) ProtoMessage() {} -func (*QueryListGroupRequest) Descriptor() ([]byte, []int) { +func (m *QueryListGroupsRequest) Reset() { *m = QueryListGroupsRequest{} } +func (m *QueryListGroupsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryListGroupsRequest) ProtoMessage() {} +func (*QueryListGroupsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_b1b80b580af04cb0, []int{25} } -func (m *QueryListGroupRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryListGroupsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryListGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryListGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryListGroupRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryListGroupsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1247,49 +1247,49 @@ func (m *QueryListGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryListGroupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryListGroupRequest.Merge(m, src) +func (m *QueryListGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryListGroupsRequest.Merge(m, src) } -func (m *QueryListGroupRequest) XXX_Size() int { +func (m *QueryListGroupsRequest) XXX_Size() int { return m.Size() } -func (m *QueryListGroupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryListGroupRequest.DiscardUnknown(m) +func (m *QueryListGroupsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryListGroupsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryListGroupRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryListGroupsRequest proto.InternalMessageInfo -func (m *QueryListGroupRequest) GetPagination() *query.PageRequest { +func (m *QueryListGroupsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -func (m *QueryListGroupRequest) GetGroupOwner() string { +func (m *QueryListGroupsRequest) GetGroupOwner() string { if m != nil { return m.GroupOwner } return "" } -type QueryListGroupResponse struct { +type QueryListGroupsResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` GroupInfos []*GroupInfo `protobuf:"bytes,2,rep,name=group_infos,json=groupInfos,proto3" json:"group_infos,omitempty"` } -func (m *QueryListGroupResponse) Reset() { *m = QueryListGroupResponse{} } -func (m *QueryListGroupResponse) String() string { return proto.CompactTextString(m) } -func (*QueryListGroupResponse) ProtoMessage() {} -func (*QueryListGroupResponse) Descriptor() ([]byte, []int) { +func (m *QueryListGroupsResponse) Reset() { *m = QueryListGroupsResponse{} } +func (m *QueryListGroupsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryListGroupsResponse) ProtoMessage() {} +func (*QueryListGroupsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b1b80b580af04cb0, []int{26} } -func (m *QueryListGroupResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryListGroupsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryListGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryListGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryListGroupResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryListGroupsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1299,26 +1299,26 @@ func (m *QueryListGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryListGroupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryListGroupResponse.Merge(m, src) +func (m *QueryListGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryListGroupsResponse.Merge(m, src) } -func (m *QueryListGroupResponse) XXX_Size() int { +func (m *QueryListGroupsResponse) XXX_Size() int { return m.Size() } -func (m *QueryListGroupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryListGroupResponse.DiscardUnknown(m) +func (m *QueryListGroupsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryListGroupsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryListGroupResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryListGroupsResponse proto.InternalMessageInfo -func (m *QueryListGroupResponse) GetPagination() *query.PageResponse { +func (m *QueryListGroupsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -func (m *QueryListGroupResponse) GetGroupInfos() []*GroupInfo { +func (m *QueryListGroupsResponse) GetGroupInfos() []*GroupInfo { if m != nil { return m.GroupInfos } @@ -1923,8 +1923,8 @@ func init() { proto.RegisterType((*QueryVerifyPermissionResponse)(nil), "greenfield.storage.QueryVerifyPermissionResponse") proto.RegisterType((*QueryHeadGroupRequest)(nil), "greenfield.storage.QueryHeadGroupRequest") proto.RegisterType((*QueryHeadGroupResponse)(nil), "greenfield.storage.QueryHeadGroupResponse") - proto.RegisterType((*QueryListGroupRequest)(nil), "greenfield.storage.QueryListGroupRequest") - proto.RegisterType((*QueryListGroupResponse)(nil), "greenfield.storage.QueryListGroupResponse") + proto.RegisterType((*QueryListGroupsRequest)(nil), "greenfield.storage.QueryListGroupsRequest") + proto.RegisterType((*QueryListGroupsResponse)(nil), "greenfield.storage.QueryListGroupsResponse") proto.RegisterType((*QueryHeadGroupMemberRequest)(nil), "greenfield.storage.QueryHeadGroupMemberRequest") proto.RegisterType((*QueryHeadGroupMemberResponse)(nil), "greenfield.storage.QueryHeadGroupMemberResponse") proto.RegisterType((*QueryPolicyForGroupRequest)(nil), "greenfield.storage.QueryPolicyForGroupRequest") @@ -1944,148 +1944,148 @@ func init() { proto.RegisterFile("greenfield/storage/query.proto", fileDescripto var fileDescriptor_b1b80b580af04cb0 = []byte{ // 2290 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x5a, 0xdb, 0x6f, 0xdc, 0x58, - 0x19, 0xaf, 0x93, 0x6e, 0x9a, 0x9c, 0x09, 0x6d, 0x39, 0x9b, 0xdd, 0xa6, 0xd3, 0x66, 0xda, 0x7a, - 0xa1, 0xcd, 0x76, 0x9b, 0x71, 0x93, 0x36, 0x88, 0xd0, 0x6d, 0x51, 0xb2, 0x4d, 0xc2, 0x48, 0xbd, - 0x04, 0x37, 0x0a, 0xa2, 0x12, 0xb2, 0xce, 0xd8, 0x67, 0xa6, 0xde, 0xcc, 0xd8, 0xae, 0xed, 0x69, - 0x3a, 0x3b, 0x1a, 0x21, 0xf6, 0x01, 0x78, 0x44, 0x20, 0xa4, 0x15, 0x02, 0x09, 0x84, 0x40, 0xc0, - 0x0b, 0x02, 0xed, 0x0b, 0x4f, 0xbc, 0xf0, 0xb0, 0x12, 0x42, 0x5a, 0x2d, 0x2f, 0x68, 0x1f, 0x56, - 0xd0, 0xf2, 0x87, 0xac, 0x7c, 0xce, 0x67, 0xfb, 0xf8, 0x32, 0xe3, 0xc9, 0x66, 0x9e, 0x3a, 0x3e, - 0xfe, 0x2e, 0xbf,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 0xbf, 0x24, 0x74, - 0x3a, 0x4d, 0x82, 0x0d, 0x09, 0x64, 0x00, 0x17, 0x38, 0x24, 0x90, 0x41, 0x0c, 0x9b, 0xbc, 0xcb, - 0x02, 0x79, 0x80, 0xef, 0xe5, 0x05, 0xf2, 0x8c, 0x69, 0x69, 0xc2, 0xff, 0x82, 0xf6, 0x42, 0x06, - 0xb1, 0x9f, 0x9e, 0xba, 0x02, 0x19, 0xd8, 0xc7, 0xbf, 0x93, 0xd0, 0x4c, 0xd4, 0x35, 0xf8, 0xcd, - 0xa1, 0x03, 0x54, 0x24, 0x1f, 0xca, 0x57, 0x47, 0x11, 0x1d, 0xa5, 0xbb, 0xe3, 0xce, 0x51, 0x7a, - 0x02, 0x5b, 0xd3, 0x0f, 0x9f, 0xf8, 0xfe, 0xfc, 0x40, 0x42, 0x33, 0x11, 0x77, 0x35, 0x04, 0x67, - 0x9a, 0x7c, 0x1b, 0x82, 0x33, 0x43, 0x85, 0xc9, 0x37, 0x19, 0xce, 0x2a, 0xbe, 0x36, 0x70, 0x17, - 0xe6, 0xe0, 0xc4, 0xbf, 0x95, 0xd0, 0xa9, 0x14, 0x0f, 0x84, 0x95, 0xe2, 0xec, 0x24, 0xc8, 0xad, - 0xf2, 0xf5, 0xd1, 0x15, 0x00, 0xec, 0x12, 0x03, 0x7b, 0x05, 0x7f, 0xb5, 0x60, 0x3b, 0x02, 0x17, - 0xf6, 0x8f, 0x90, 0x03, 0x49, 0x72, 0x3c, 0x43, 0xce, 0xd8, 0x5c, 0xd2, 0xa9, 0xac, 0x8c, 0x2c, - 0x0f, 0x38, 0xef, 0x31, 0x9c, 0x5b, 0xf8, 0x6e, 0xc1, 0x06, 0x84, 0xd4, 0xe6, 0x6e, 0xbf, 0x90, - 0xc0, 0xea, 0x07, 0x47, 0xc9, 0xa9, 0x14, 0x3b, 0x34, 0xe4, 0x5e, 0x93, 0x61, 0x9e, 0x86, 0x5c, - 0x11, 0xb2, 0x74, 0xd3, 0xf0, 0x7e, 0x00, 0xe8, 0x70, 0x3b, 0x88, 0xe8, 0xac, 0x3e, 0xfe, 0x91, - 0x84, 0x66, 0x45, 0x3a, 0x07, 0x0f, 0xfe, 0xd4, 0x48, 0xf2, 0x51, 0xe5, 0xc5, 0x62, 0x41, 0x40, - 0xf6, 0x15, 0x86, 0xac, 0x82, 0xcf, 0xe7, 0x76, 0xaa, 0xad, 0xef, 0x6b, 0x0d, 0x4a, 0xf1, 0x5f, - 0xa0, 0x33, 0x05, 0x96, 0xa6, 0xa0, 0x33, 0xb3, 0x7c, 0x50, 0x41, 0x67, 0xe6, 0x10, 0x40, 0xf2, - 0x2d, 0x06, 0x6e, 0x15, 0xdf, 0x28, 0xba, 0xae, 0x32, 0xb2, 0x27, 0x75, 0x10, 0xff, 0x35, 0xec, - 0xd3, 0x24, 0x6f, 0x33, 0xa4, 0x4f, 0x73, 0x09, 0xa2, 0x21, 0x7d, 0x9a, 0x4f, 0x08, 0xc9, 0xdf, - 0x60, 0xa8, 0x6f, 0xe2, 0x95, 0x3c, 0xd4, 0xa6, 0xc7, 0xbf, 0xa0, 0x35, 0x20, 0x89, 0x92, 0xa0, - 0x37, 0x6a, 0x1f, 0xbd, 0xa8, 0x48, 0x1f, 0xbf, 0xa8, 0x48, 0xff, 0x7d, 0x51, 0x91, 0x7e, 0xf2, - 0xb2, 0x72, 0xec, 0xe3, 0x97, 0x95, 0x63, 0xff, 0x79, 0x59, 0x39, 0xf6, 0x58, 0x11, 0xbe, 0x76, - 0xeb, 0x56, 0x7d, 0x49, 0x7f, 0x42, 0x4c, 0x4b, 0xf4, 0xf0, 0x3c, 0xf9, 0x67, 0x27, 0xf5, 0x29, - 0xf6, 0x27, 0x25, 0x37, 0x3e, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x32, 0xdd, 0xcd, 0x59, 0xb0, 0x23, + 0x19, 0xaf, 0x93, 0x6e, 0x9a, 0x9c, 0x84, 0xb6, 0x9c, 0xcd, 0x6e, 0xd3, 0x69, 0x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79, 0xa8, 0x4d, 0x8f, 0xdf, 0xa2, 0x35, 0x20, 0x8a, 0x92, 0xa0, + 0xd7, 0xeb, 0x1f, 0xbd, 0xac, 0x4a, 0x1f, 0xbf, 0xac, 0x4a, 0xff, 0x79, 0x59, 0x95, 0x7e, 0xf4, + 0xaa, 0x7a, 0xec, 0xe3, 0x57, 0xd5, 0x63, 0xff, 0x7e, 0x55, 0x3d, 0xf6, 0x44, 0x11, 0x6e, 0xbc, + 0x0d, 0xab, 0xb1, 0xa8, 0x3f, 0x25, 0xa6, 0x25, 0x7a, 0x78, 0x91, 0xfc, 0xe3, 0x93, 0xc6, 0x04, + 0xfb, 0xc3, 0x92, 0x9b, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x64, 0x52, 0x3e, 0xb6, 0x23, 0x00, 0x00, } @@ -2132,7 +2132,7 @@ type QueryClient interface { // Queries a group with specify owner and name . HeadGroup(ctx context.Context, in *QueryHeadGroupRequest, opts ...grpc.CallOption) (*QueryHeadGroupResponse, error) // Queries a list of ListGroup items. - ListGroup(ctx context.Context, in *QueryListGroupRequest, opts ...grpc.CallOption) (*QueryListGroupResponse, error) + ListGroups(ctx context.Context, in *QueryListGroupsRequest, opts ...grpc.CallOption) (*QueryListGroupsResponse, error) // Queries a list of HeadGroupMember items. HeadGroupMember(ctx context.Context, in *QueryHeadGroupMemberRequest, opts ...grpc.CallOption) (*QueryHeadGroupMemberResponse, error) // Queries a policy that grants permission to a group @@ -2290,9 +2290,9 @@ func (c *queryClient) HeadGroup(ctx context.Context, in *QueryHeadGroupRequest, return out, nil } -func (c *queryClient) ListGroup(ctx context.Context, in *QueryListGroupRequest, opts ...grpc.CallOption) (*QueryListGroupResponse, error) { - out := new(QueryListGroupResponse) - err := c.cc.Invoke(ctx, "/greenfield.storage.Query/ListGroup", in, out, opts...) +func (c *queryClient) ListGroups(ctx context.Context, in *QueryListGroupsRequest, opts ...grpc.CallOption) (*QueryListGroupsResponse, error) { + out := new(QueryListGroupsResponse) + err := c.cc.Invoke(ctx, "/greenfield.storage.Query/ListGroups", in, out, opts...) if err != nil { return nil, err } @@ -2386,7 +2386,7 @@ type QueryServer interface { // Queries a group with specify owner and name . HeadGroup(context.Context, *QueryHeadGroupRequest) (*QueryHeadGroupResponse, error) // Queries a list of ListGroup items. - ListGroup(context.Context, *QueryListGroupRequest) (*QueryListGroupResponse, error) + ListGroups(context.Context, *QueryListGroupsRequest) (*QueryListGroupsResponse, error) // Queries a list of HeadGroupMember items. HeadGroupMember(context.Context, *QueryHeadGroupMemberRequest) (*QueryHeadGroupMemberResponse, error) // Queries a policy that grants permission to a group @@ -2450,8 +2450,8 @@ func (*UnimplementedQueryServer) VerifyPermission(ctx context.Context, req *Quer func (*UnimplementedQueryServer) HeadGroup(ctx context.Context, req *QueryHeadGroupRequest) (*QueryHeadGroupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HeadGroup not implemented") } -func (*UnimplementedQueryServer) ListGroup(ctx context.Context, req *QueryListGroupRequest) (*QueryListGroupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGroup not implemented") +func (*UnimplementedQueryServer) ListGroups(ctx context.Context, req *QueryListGroupsRequest) (*QueryListGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListGroups not implemented") } func (*UnimplementedQueryServer) HeadGroupMember(ctx context.Context, req *QueryHeadGroupMemberRequest) (*QueryHeadGroupMemberResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method HeadGroupMember not implemented") @@ -2746,20 +2746,20 @@ func _Query_HeadGroup_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } -func _Query_ListGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryListGroupRequest) +func _Query_ListGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryListGroupsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).ListGroup(ctx, in) + return srv.(QueryServer).ListGroups(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/greenfield.storage.Query/ListGroup", + FullMethod: "/greenfield.storage.Query/ListGroups", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ListGroup(ctx, req.(*QueryListGroupRequest)) + return srv.(QueryServer).ListGroups(ctx, req.(*QueryListGroupsRequest)) } return interceptor(ctx, in, info, handler) } @@ -2937,8 +2937,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_HeadGroup_Handler, }, { - MethodName: "ListGroup", - Handler: _Query_ListGroup_Handler, + MethodName: "ListGroups", + Handler: _Query_ListGroups_Handler, }, { MethodName: "HeadGroupMember", @@ -3868,7 +3868,7 @@ func (m *QueryHeadGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryListGroupRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryListGroupsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3878,12 +3878,12 @@ func (m *QueryListGroupRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryListGroupRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryListGroupsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryListGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryListGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3910,7 +3910,7 @@ func (m *QueryListGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryListGroupResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryListGroupsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3920,12 +3920,12 @@ func (m *QueryListGroupResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryListGroupResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryListGroupsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryListGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryListGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4829,7 +4829,7 @@ func (m *QueryHeadGroupResponse) Size() (n int) { return n } -func (m *QueryListGroupRequest) Size() (n int) { +func (m *QueryListGroupsRequest) Size() (n int) { if m == nil { return 0 } @@ -4846,7 +4846,7 @@ func (m *QueryListGroupRequest) Size() (n int) { return n } -func (m *QueryListGroupResponse) Size() (n int) { +func (m *QueryListGroupsResponse) Size() (n int) { if m == nil { return 0 } @@ -7447,7 +7447,7 @@ func (m *QueryHeadGroupResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryListGroupRequest) Unmarshal(dAtA []byte) error { +func (m *QueryListGroupsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7470,10 +7470,10 @@ func (m *QueryListGroupRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryListGroupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryListGroupsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryListGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryListGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7565,7 +7565,7 @@ func (m *QueryListGroupRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryListGroupResponse) Unmarshal(dAtA []byte) error { +func (m *QueryListGroupsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7588,10 +7588,10 @@ func (m *QueryListGroupResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryListGroupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryListGroupsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryListGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryListGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/storage/types/query.pb.gw.go b/x/storage/types/query.pb.gw.go index f66bbd84e..7fab67e51 100644 --- a/x/storage/types/query.pb.gw.go +++ b/x/storage/types/query.pb.gw.go @@ -961,11 +961,11 @@ func local_request_Query_HeadGroup_0(ctx context.Context, marshaler runtime.Mars } var ( - filter_Query_ListGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"group_owner": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_ListGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{"group_owner": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_ListGroup_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryListGroupRequest +func request_Query_ListGroups_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryListGroupsRequest var metadata runtime.ServerMetadata var ( @@ -989,17 +989,17 @@ func request_Query_ListGroup_0(ctx context.Context, marshaler runtime.Marshaler, if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListGroup_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListGroups_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.ListGroups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_ListGroup_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryListGroupRequest +func local_request_Query_ListGroups_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryListGroupsRequest var metadata runtime.ServerMetadata var ( @@ -1023,11 +1023,11 @@ func local_request_Query_ListGroup_0(ctx context.Context, marshaler runtime.Mars if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListGroup_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListGroups_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListGroup(ctx, &protoReq) + msg, err := server.ListGroups(ctx, &protoReq) return msg, metadata, err } @@ -1693,7 +1693,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_ListGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_ListGroups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1704,7 +1704,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_ListGroup_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_ListGroups_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1712,7 +1712,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_ListGroup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_ListGroups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2195,7 +2195,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_ListGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_ListGroups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -2204,14 +2204,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_ListGroup_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_ListGroups_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_ListGroup_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_ListGroups_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2369,7 +2369,7 @@ var ( pattern_Query_HeadGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"greenfield", "storage", "head_group", "group_owner", "group_name"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ListGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "storage", "list_group", "group_owner"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ListGroups_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"greenfield", "storage", "list_groups", "group_owner"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_HeadGroupMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"greenfield", "storage", "head_group_member"}, "", runtime.AssumeColonVerbOpt(false))) @@ -2415,7 +2415,7 @@ var ( forward_Query_HeadGroup_0 = runtime.ForwardResponseMessage - forward_Query_ListGroup_0 = runtime.ForwardResponseMessage + forward_Query_ListGroups_0 = runtime.ForwardResponseMessage forward_Query_HeadGroupMember_0 = runtime.ForwardResponseMessage diff --git a/x/storage/types/types.go b/x/storage/types/types.go index 8a69491a6..8d2136a71 100644 --- a/x/storage/types/types.go +++ b/x/storage/types/types.go @@ -15,7 +15,7 @@ type ( const ( TagKeyTraits = "traits" TagValueOmit = "omit" - MaxPaginationLimit = 200 // the default limit is 100 if pagination parameters is not provided + MaxPaginationLimit = 200 // the default limit is 200 if pagination parameters is not provided ) func (m *BucketInfo) ToNFTMetadata() *BucketMetaData {