mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
Eckelj/distributions query (#491)
* added distributions query * added test cases --------- Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> Signed-off-by: Julian Strobl <jmastr@mailbox.org> Co-authored-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
parent
75cb64de68
commit
41b5bf545f
230
docs/static/openapi.yml
vendored
230
docs/static/openapi.yml
vendored
@ -46902,6 +46902,164 @@ paths:
|
||||
format: int64
|
||||
tags:
|
||||
- Query
|
||||
/planetmint/dao/distributions:
|
||||
get:
|
||||
summary: Queries a list of Distributions items.
|
||||
operationId: PlanetmintgoDaoDistributions
|
||||
responses:
|
||||
'200':
|
||||
description: A successful response.
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
distributions:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
daoAddr:
|
||||
type: string
|
||||
daoAmount:
|
||||
type: string
|
||||
daoTxID:
|
||||
type: string
|
||||
investorAddr:
|
||||
type: string
|
||||
investorAmount:
|
||||
type: string
|
||||
investorTxID:
|
||||
type: string
|
||||
popAddr:
|
||||
type: string
|
||||
popAmount:
|
||||
type: string
|
||||
popTxID:
|
||||
type: string
|
||||
firstPop:
|
||||
type: string
|
||||
format: int64
|
||||
lastPop:
|
||||
type: string
|
||||
format: int64
|
||||
proposer:
|
||||
type: string
|
||||
earlyInvAddr:
|
||||
type: string
|
||||
earlyInvAmount:
|
||||
type: string
|
||||
earlyInvTxID:
|
||||
type: string
|
||||
strategicAddr:
|
||||
type: string
|
||||
strategicAmount:
|
||||
type: string
|
||||
strategicTxID:
|
||||
type: string
|
||||
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:
|
||||
code:
|
||||
type: integer
|
||||
format: int32
|
||||
message:
|
||||
type: string
|
||||
details:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
'@type':
|
||||
type: string
|
||||
additionalProperties: {}
|
||||
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
|
||||
/planetmint/dao/mint_requests/address/{address}:
|
||||
get:
|
||||
summary: Queries a list of MintRequestsByAddress items.
|
||||
@ -76890,6 +77048,78 @@ definitions:
|
||||
repeated Bar results = 1;
|
||||
PageResponse page = 2;
|
||||
}
|
||||
planetmintgo.dao.QueryDistributionsResponse:
|
||||
type: object
|
||||
properties:
|
||||
distributions:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
daoAddr:
|
||||
type: string
|
||||
daoAmount:
|
||||
type: string
|
||||
daoTxID:
|
||||
type: string
|
||||
investorAddr:
|
||||
type: string
|
||||
investorAmount:
|
||||
type: string
|
||||
investorTxID:
|
||||
type: string
|
||||
popAddr:
|
||||
type: string
|
||||
popAmount:
|
||||
type: string
|
||||
popTxID:
|
||||
type: string
|
||||
firstPop:
|
||||
type: string
|
||||
format: int64
|
||||
lastPop:
|
||||
type: string
|
||||
format: int64
|
||||
proposer:
|
||||
type: string
|
||||
earlyInvAddr:
|
||||
type: string
|
||||
earlyInvAmount:
|
||||
type: string
|
||||
earlyInvTxID:
|
||||
type: string
|
||||
strategicAddr:
|
||||
type: string
|
||||
strategicAmount:
|
||||
type: string
|
||||
strategicTxID:
|
||||
type: string
|
||||
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;
|
||||
}
|
||||
planetmintgo.dao.QueryGetChallengeResponse:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -82,6 +82,12 @@ service Query {
|
||||
option (google.api.http).get = "/planetmint/dao/redeem_claim_by_liquid_tx_hash/{liquidTxHash}";
|
||||
|
||||
}
|
||||
|
||||
// Queries a list of Distributions items.
|
||||
rpc Distributions (QueryDistributionsRequest) returns (QueryDistributionsResponse) {
|
||||
option (google.api.http).get = "/planetmint/dao/distributions";
|
||||
|
||||
}
|
||||
}
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest {}
|
||||
@ -177,3 +183,12 @@ message QueryRedeemClaimByLiquidTxHashResponse {
|
||||
RedeemClaim redeemClaim = 1;
|
||||
}
|
||||
|
||||
message QueryDistributionsRequest {
|
||||
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
||||
}
|
||||
|
||||
message QueryDistributionsResponse {
|
||||
repeated DistributionOrder distributions = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
||||
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@ func GetQueryCmd(_ string) *cobra.Command {
|
||||
GetCmdChallenge(),
|
||||
GetCmdChallenges(),
|
||||
GetCmdDistribution(),
|
||||
GetCmdDistributions(),
|
||||
GetCmdListRedeemClaim(),
|
||||
GetCmdMintRequests(),
|
||||
GetCmdQueryParams(),
|
||||
|
48
x/dao/client/cli/query_distributions.go
Normal file
48
x/dao/client/cli/query_distributions.go
Normal file
@ -0,0 +1,48 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
||||
func GetCmdDistributions() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "distributions",
|
||||
Short: "Query distributions",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: func(cmd *cobra.Command, args []string) (err error) {
|
||||
clientCtx, err := client.GetClientQueryContext(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
|
||||
params := &types.QueryDistributionsRequest{}
|
||||
|
||||
pageReq, err := client.ReadPageRequest(cmd.Flags())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
params.Pagination = pageReq
|
||||
|
||||
res, err := queryClient.Distributions(cmd.Context(), params)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return clientCtx.PrintProto(res)
|
||||
},
|
||||
}
|
||||
|
||||
flags.AddPaginationFlagsToCmd(cmd, cmd.Use)
|
||||
flags.AddQueryFlagsToCmd(cmd)
|
||||
|
||||
return cmd
|
||||
}
|
35
x/dao/keeper/query_distributions.go
Normal file
35
x/dao/keeper/query_distributions.go
Normal file
@ -0,0 +1,35 @@
|
||||
package keeper
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
"github.com/planetmint/planetmint-go/errormsg"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
func (k Keeper) Distributions(goCtx context.Context, req *types.QueryDistributionsRequest) (*types.QueryDistributionsResponse, error) {
|
||||
if req == nil {
|
||||
return nil, status.Error(codes.InvalidArgument, errormsg.InvalidRequest)
|
||||
}
|
||||
|
||||
ctx := sdk.UnwrapSDKContext(goCtx)
|
||||
|
||||
distributions := make([]types.DistributionOrder, 0)
|
||||
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.DistributionKey))
|
||||
pageRes, err := query.Paginate(store, req.Pagination, func(_ []byte, value []byte) (err error) {
|
||||
var distribution types.DistributionOrder
|
||||
err = distribution.Unmarshal(value)
|
||||
distributions = append(distributions, distribution)
|
||||
return
|
||||
})
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.InvalidArgument, "paginate: %v", err)
|
||||
}
|
||||
|
||||
return &types.QueryDistributionsResponse{Distributions: distributions, Pagination: pageRes}, nil
|
||||
}
|
86
x/dao/keeper/query_distributions_test.go
Normal file
86
x/dao/keeper/query_distributions_test.go
Normal file
@ -0,0 +1,86 @@
|
||||
package keeper_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
||||
"github.com/planetmint/planetmint-go/util"
|
||||
"github.com/planetmint/planetmint-go/x/dao/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestQueryDistribtions(t *testing.T) {
|
||||
keeper, ctx := keepertest.DaoKeeper(t)
|
||||
wctx := sdk.WrapSDKContext(ctx)
|
||||
distributions := createNDistributionOrder(keeper, ctx, 20)
|
||||
for _, tc := range []struct {
|
||||
desc string
|
||||
request *types.QueryDistributionsRequest
|
||||
responseDistributions []types.DistributionOrder
|
||||
err error
|
||||
}{
|
||||
{
|
||||
desc: "query 0 offset 10 limit",
|
||||
request: &types.QueryDistributionsRequest{
|
||||
Pagination: &query.PageRequest{
|
||||
Key: nil,
|
||||
Offset: 0,
|
||||
Limit: 10,
|
||||
CountTotal: true,
|
||||
Reverse: false,
|
||||
},
|
||||
},
|
||||
responseDistributions: distributions[:10],
|
||||
},
|
||||
{
|
||||
desc: "query 1 offset 5 limit",
|
||||
request: &types.QueryDistributionsRequest{
|
||||
Pagination: &query.PageRequest{
|
||||
Key: nil,
|
||||
Offset: 1,
|
||||
Limit: 5,
|
||||
CountTotal: true,
|
||||
Reverse: false,
|
||||
},
|
||||
},
|
||||
responseDistributions: distributions[1:6],
|
||||
},
|
||||
{
|
||||
desc: "query 5*1000 key 0 offset 10 limit",
|
||||
request: &types.QueryDistributionsRequest{
|
||||
Pagination: &query.PageRequest{
|
||||
Key: util.SerializeInt64(5 * 1000),
|
||||
Offset: 0,
|
||||
Limit: 10,
|
||||
CountTotal: true,
|
||||
Reverse: false,
|
||||
},
|
||||
},
|
||||
responseDistributions: distributions[4:14],
|
||||
},
|
||||
{
|
||||
desc: "query 2*1000 key 0 offset 10 limit",
|
||||
request: &types.QueryDistributionsRequest{
|
||||
Pagination: &query.PageRequest{
|
||||
Key: util.SerializeInt64(2 * 1000),
|
||||
Offset: 0,
|
||||
Limit: 10,
|
||||
CountTotal: true,
|
||||
Reverse: false,
|
||||
},
|
||||
},
|
||||
responseDistributions: distributions[1:11],
|
||||
},
|
||||
} {
|
||||
t.Run(tc.desc, func(t *testing.T) {
|
||||
res, err := keeper.Distributions(wctx, tc.request)
|
||||
if tc.err != nil {
|
||||
require.ErrorIs(t, tc.err, err)
|
||||
} else {
|
||||
require.Equal(t, tc.responseDistributions, res.Distributions)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
@ -1028,6 +1028,102 @@ func (m *QueryRedeemClaimByLiquidTxHashResponse) GetRedeemClaim() *RedeemClaim {
|
||||
return nil
|
||||
}
|
||||
|
||||
type QueryDistributionsRequest struct {
|
||||
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsRequest) Reset() { *m = QueryDistributionsRequest{} }
|
||||
func (m *QueryDistributionsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryDistributionsRequest) ProtoMessage() {}
|
||||
func (*QueryDistributionsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_07bad0eeb5b27724, []int{22}
|
||||
}
|
||||
func (m *QueryDistributionsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *QueryDistributionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_QueryDistributionsRequest.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *QueryDistributionsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryDistributionsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *QueryDistributionsRequest) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *QueryDistributionsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryDistributionsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryDistributionsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryDistributionsRequest) GetPagination() *query.PageRequest {
|
||||
if m != nil {
|
||||
return m.Pagination
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type QueryDistributionsResponse struct {
|
||||
Distributions []DistributionOrder `protobuf:"bytes,1,rep,name=distributions,proto3" json:"distributions"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsResponse) Reset() { *m = QueryDistributionsResponse{} }
|
||||
func (m *QueryDistributionsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*QueryDistributionsResponse) ProtoMessage() {}
|
||||
func (*QueryDistributionsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_07bad0eeb5b27724, []int{23}
|
||||
}
|
||||
func (m *QueryDistributionsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *QueryDistributionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_QueryDistributionsResponse.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *QueryDistributionsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_QueryDistributionsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *QueryDistributionsResponse) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *QueryDistributionsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_QueryDistributionsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_QueryDistributionsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryDistributionsResponse) GetDistributions() []DistributionOrder {
|
||||
if m != nil {
|
||||
return m.Distributions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsResponse) GetPagination() *query.PageResponse {
|
||||
if m != nil {
|
||||
return m.Pagination
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryParamsRequest)(nil), "planetmintgo.dao.QueryParamsRequest")
|
||||
proto.RegisterType((*QueryParamsResponse)(nil), "planetmintgo.dao.QueryParamsResponse")
|
||||
@ -1051,87 +1147,93 @@ func init() {
|
||||
proto.RegisterType((*QueryAllRedeemClaimResponse)(nil), "planetmintgo.dao.QueryAllRedeemClaimResponse")
|
||||
proto.RegisterType((*QueryRedeemClaimByLiquidTxHashRequest)(nil), "planetmintgo.dao.QueryRedeemClaimByLiquidTxHashRequest")
|
||||
proto.RegisterType((*QueryRedeemClaimByLiquidTxHashResponse)(nil), "planetmintgo.dao.QueryRedeemClaimByLiquidTxHashResponse")
|
||||
proto.RegisterType((*QueryDistributionsRequest)(nil), "planetmintgo.dao.QueryDistributionsRequest")
|
||||
proto.RegisterType((*QueryDistributionsResponse)(nil), "planetmintgo.dao.QueryDistributionsResponse")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("planetmintgo/dao/query.proto", fileDescriptor_07bad0eeb5b27724) }
|
||||
|
||||
var fileDescriptor_07bad0eeb5b27724 = []byte{
|
||||
// 1198 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x97, 0x4f, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xc0, 0xb3, 0x69, 0x08, 0xca, 0x4b, 0x5a, 0x60, 0x68, 0x43, 0xba, 0x71, 0x4c, 0x3a, 0x49,
|
||||
0xda, 0xc4, 0x21, 0x5e, 0x92, 0x02, 0x01, 0x89, 0xa8, 0x4a, 0x4a, 0x9b, 0x56, 0x50, 0x28, 0x16,
|
||||
0xe2, 0xd0, 0x8b, 0x19, 0x7b, 0x87, 0xf5, 0x8a, 0xf5, 0xae, 0xb3, 0xbb, 0x46, 0xb1, 0x2c, 0x5f,
|
||||
0x90, 0x38, 0x70, 0x43, 0xea, 0x15, 0x89, 0x03, 0x17, 0x84, 0x04, 0xe2, 0xc2, 0x89, 0x2f, 0xd0,
|
||||
0x63, 0x25, 0x84, 0xc4, 0x09, 0xa1, 0x04, 0x89, 0x0f, 0xc0, 0x17, 0x40, 0x3b, 0xfb, 0xd6, 0x3b,
|
||||
0xeb, 0xf5, 0xae, 0x1d, 0x94, 0x4b, 0xb4, 0x9e, 0x79, 0x7f, 0x7e, 0xef, 0xcd, 0xcc, 0x7b, 0x2f,
|
||||
0x50, 0x68, 0x59, 0xcc, 0xe6, 0x7e, 0xd3, 0xb4, 0x7d, 0xc3, 0xd1, 0x74, 0xe6, 0x68, 0x47, 0x6d,
|
||||
0xee, 0x76, 0xca, 0x2d, 0xd7, 0xf1, 0x1d, 0xf2, 0xbc, 0xbc, 0x5b, 0xd6, 0x99, 0xa3, 0x5e, 0x36,
|
||||
0x1c, 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, 0x36, 0x06, 0x21, 0x13, 0x63, 0x9f, 0x16, 0xcc,
|
||||
0x2b, 0x5a, 0x37, 0xf8, 0xdb, 0x23, 0xbf, 0x2a, 0x70, 0x65, 0xe8, 0x30, 0x90, 0xc9, 0x9d, 0x37,
|
||||
0x79, 0x64, 0x72, 0xe7, 0xce, 0x1b, 0x74, 0x57, 0x70, 0x6f, 0x13, 0x2d, 0x9f, 0x1b, 0x87, 0x18,
|
||||
0xad, 0x8b, 0x1f, 0x3d, 0xf2, 0x8d, 0x02, 0x17, 0x13, 0x13, 0x02, 0xd9, 0xcc, 0x4e, 0x5c, 0x6a,
|
||||
0x0c, 0x51, 0x5f, 0x19, 0x4f, 0x18, 0x29, 0x5f, 0x15, 0x94, 0x25, 0xb2, 0x3e, 0x48, 0x19, 0x37,
|
||||
0x64, 0xad, 0x2b, 0xcd, 0x30, 0x3d, 0xf2, 0x95, 0x02, 0xb3, 0xd2, 0x00, 0x40, 0x36, 0x32, 0xfc,
|
||||
0xa5, 0x07, 0x11, 0xb5, 0x34, 0x8e, 0x28, 0x82, 0xad, 0x08, 0xb0, 0x25, 0xb2, 0x98, 0x0d, 0xe6,
|
||||
0x91, 0xc7, 0x0a, 0xcc, 0xc9, 0x8d, 0x9a, 0x94, 0xb2, 0x83, 0x1f, 0x9c, 0x00, 0xd4, 0xcd, 0xb1,
|
||||
0x64, 0x11, 0xa7, 0x24, 0x70, 0x56, 0x09, 0x1d, 0xc4, 0xe9, 0x37, 0x47, 0xad, 0xdb, 0xc0, 0x0c,
|
||||
0x7d, 0xa9, 0x00, 0xc4, 0x3d, 0x98, 0xac, 0x67, 0xf8, 0x49, 0x4d, 0x02, 0xea, 0xc6, 0x18, 0x92,
|
||||
0xc8, 0x43, 0x05, 0x4f, 0x81, 0xa8, 0x99, 0x3c, 0x1e, 0xf9, 0x56, 0x81, 0xe7, 0x06, 0x1a, 0x25,
|
||||
0xd9, 0xca, 0x0e, 0x7a, 0x48, 0x1f, 0x56, 0xcb, 0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x28, 0x3e, 0x68, 0x3b, 0x07, 0x11, 0x00, 0x00,
|
||||
// 1261 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x98, 0xc1, 0x6f, 0xdc, 0xc4,
|
||||
0x17, 0xc7, 0xe3, 0xb4, 0xbf, 0xfc, 0x94, 0x97, 0xa4, 0x85, 0xa1, 0x0d, 0xa9, 0xb3, 0xd9, 0xa6,
|
||||
0x93, 0xa4, 0x4d, 0x36, 0x64, 0x4d, 0x52, 0x20, 0x20, 0x11, 0x55, 0x49, 0x69, 0xd3, 0x0a, 0x0a,
|
||||
0xc5, 0xaa, 0x38, 0xf4, 0xb2, 0x78, 0xd7, 0x83, 0xd7, 0xc2, 0x6b, 0x6f, 0x6c, 0x2f, 0xca, 0x6a,
|
||||
0xb5, 0x17, 0x24, 0x84, 0xb8, 0x81, 0x7a, 0x45, 0xe2, 0xc0, 0x05, 0x21, 0x81, 0xb8, 0x70, 0xea,
|
||||
0x3f, 0xd0, 0x63, 0x25, 0x84, 0xc4, 0x09, 0xa1, 0x04, 0x89, 0x7f, 0x03, 0x79, 0xfc, 0xbc, 0x1e,
|
||||
0xaf, 0xd7, 0xde, 0x0d, 0xda, 0xcb, 0xca, 0x9e, 0x79, 0xef, 0xcd, 0xe7, 0xbd, 0x99, 0x79, 0xfe,
|
||||
0x26, 0x50, 0x68, 0x5a, 0x9a, 0xcd, 0xfc, 0x86, 0x69, 0xfb, 0x86, 0xa3, 0xe8, 0x9a, 0xa3, 0x1c,
|
||||
0xb5, 0x98, 0xdb, 0x2e, 0x37, 0x5d, 0xc7, 0x77, 0xc8, 0x0b, 0xe2, 0x6c, 0x59, 0xd7, 0x1c, 0xf9,
|
||||
0x92, 0xe1, 0x18, 0x0e, 0x9f, 0x54, 0x82, 0xa7, 0xd0, 0x4e, 0x2e, 0x18, 0x8e, 0x63, 0x58, 0x4c,
|
||||
0xd1, 0x9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50, 0xd1, 0x9a,
|
||||
0xee, 0xc2, 0x35, 0x1e, 0xee, 0x90, 0xf9, 0x0f, 0x4c, 0xdb, 0xc7, 0x55, 0xbc, 0x83, 0xf6, 0x3d,
|
||||
0xcd, 0xab, 0xe3, 0x1b, 0x21, 0x70, 0xbe, 0xae, 0x79, 0x75, 0x1e, 0x7a, 0x5a, 0xe5, 0xcf, 0x94,
|
||||
0x01, 0xcd, 0x73, 0x44, 0xac, 0x5b, 0x30, 0xd3, 0x88, 0x67, 0x91, 0x6d, 0x29, 0xcd, 0x26, 0x84,
|
||||
0x50, 0x45, 0x0f, 0xba, 0x87, 0x7c, 0xc9, 0x35, 0xf6, 0x75, 0xdd, 0x65, 0x5e, 0x54, 0x13, 0xb2,
|
||||
0x00, 0xff, 0xd7, 0xc2, 0x11, 0x44, 0x8c, 0x5e, 0x69, 0x1d, 0x29, 0x33, 0xdc, 0x91, 0xf2, 0x00,
|
||||
0x66, 0x85, 0x35, 0xa3, 0x12, 0x16, 0x73, 0x31, 0x3d, 0x35, 0xe1, 0x43, 0xf7, 0xe0, 0x4a, 0x54,
|
||||
0x0f, 0xb5, 0x77, 0x9c, 0x22, 0xc0, 0x65, 0x98, 0xa9, 0x5a, 0x4e, 0xed, 0xd3, 0x7b, 0xcc, 0x34,
|
||||
0xea, 0x61, 0x19, 0xce, 0xa9, 0xe2, 0x10, 0x7d, 0x0c, 0xf2, 0x20, 0x77, 0x04, 0x7c, 0x1b, 0x20,
|
||||
0x3e, 0xa3, 0x88, 0x57, 0x48, 0xe3, 0x09, 0x9e, 0x82, 0x3d, 0xd5, 0xe0, 0x65, 0x1e, 0x3b, 0x9e,
|
||||
0xee, 0x55, 0xee, 0x2e, 0x40, 0x7c, 0x13, 0x31, 0xf0, 0xf5, 0x72, 0x78, 0x6d, 0xcb, 0xc1, 0xb5,
|
||||
0x2d, 0x87, 0x5d, 0x01, 0xaf, 0x6d, 0xf9, 0xa1, 0x66, 0x44, 0x49, 0xa9, 0x82, 0x27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0x1d, 0x91, 0x9b, 0x19, 0x0b,
|
||||
0xe4, 0x89, 0x30, 0xf9, 0xb5, 0xb3, 0x39, 0x21, 0xe4, 0x36, 0x87, 0xdc, 0x24, 0x1b, 0xfd, 0x90,
|
||||
0x09, 0x65, 0xac, 0x04, 0x92, 0x4e, 0xe9, 0x04, 0xbf, 0x5d, 0xf2, 0x54, 0x82, 0xcb, 0x03, 0xf5,
|
||||
0x52, 0x26, 0x77, 0x9e, 0x38, 0xcb, 0xe4, 0xce, 0x95, 0x64, 0x74, 0x97, 0x73, 0x6f, 0x13, 0x25,
|
||||
0x9f, 0x1b, 0x75, 0x9e, 0xd2, 0xc1, 0x87, 0x2e, 0xf9, 0x56, 0x82, 0xb9, 0x84, 0x88, 0x22, 0x9b,
|
||||
0xd9, 0x85, 0x4b, 0x29, 0x35, 0xf9, 0x95, 0xd1, 0x8c, 0x91, 0xf2, 0x55, 0x4e, 0x59, 0x22, 0xeb,
|
||||
0xfd, 0x94, 0xb1, 0x66, 0x51, 0x3a, 0x82, 0xcc, 0xeb, 0x92, 0xaf, 0x24, 0x98, 0x11, 0x34, 0x12,
|
||||
0xd9, 0xc8, 0x58, 0x2f, 0xad, 0xd5, 0xe4, 0xd2, 0x28, 0xa6, 0x08, 0xb6, 0xc2, 0xc1, 0x96, 0xc8,
|
||||
0x62, 0x36, 0x98, 0x47, 0x9e, 0x48, 0x30, 0x2b, 0x6a, 0x19, 0x52, 0xca, 0x4e, 0xbe, 0x5f, 0x24,
|
||||
0xc9, 0x9b, 0x23, 0xd9, 0x22, 0x4e, 0x89, 0xe3, 0xac, 0x12, 0xda, 0x8f, 0xd3, 0xd3, 0x0f, 0x4a,
|
||||
0xa7, 0x8e, 0x15, 0xfa, 0x42, 0x02, 0x88, 0x65, 0x0a, 0x59, 0xcf, 0x58, 0x27, 0x25, 0x96, 0xe4,
|
||||
0x8d, 0x11, 0x2c, 0x91, 0x87, 0x72, 0x9e, 0x02, 0x91, 0x33, 0x79, 0x3c, 0x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, 0xc5, 0x89, 0x3f, 0x4e, 0x8b,
|
||||
0x13, 0x8f, 0x15, 0xc3, 0xf4, 0xeb, 0xad, 0x6a, 0xb9, 0xe6, 0x34, 0xc4, 0x10, 0xf1, 0xe3, 0x96,
|
||||
0xe1, 0x28, 0xc7, 0x3c, 0xa4, 0xdf, 0x6e, 0x32, 0xaf, 0x3a, 0xc5, 0xff, 0x35, 0x72, 0xf3, 0xdf,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xa6, 0x60, 0x7e, 0xbe, 0x12, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -1167,6 +1269,8 @@ type QueryClient interface {
|
||||
RedeemClaimAll(ctx context.Context, in *QueryAllRedeemClaimRequest, opts ...grpc.CallOption) (*QueryAllRedeemClaimResponse, error)
|
||||
// Queries a list of RedeemClaimByLiquidTxHash items.
|
||||
RedeemClaimByLiquidTxHash(ctx context.Context, in *QueryRedeemClaimByLiquidTxHashRequest, opts ...grpc.CallOption) (*QueryRedeemClaimByLiquidTxHashResponse, error)
|
||||
// Queries a list of Distributions items.
|
||||
Distributions(ctx context.Context, in *QueryDistributionsRequest, opts ...grpc.CallOption) (*QueryDistributionsResponse, error)
|
||||
}
|
||||
|
||||
type queryClient struct {
|
||||
@ -1276,6 +1380,15 @@ func (c *queryClient) RedeemClaimByLiquidTxHash(ctx context.Context, in *QueryRe
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *queryClient) Distributions(ctx context.Context, in *QueryDistributionsRequest, opts ...grpc.CallOption) (*QueryDistributionsResponse, error) {
|
||||
out := new(QueryDistributionsResponse)
|
||||
err := c.cc.Invoke(ctx, "/planetmintgo.dao.Query/Distributions", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Parameters queries the parameters of the module.
|
||||
@ -1299,6 +1412,8 @@ type QueryServer interface {
|
||||
RedeemClaimAll(context.Context, *QueryAllRedeemClaimRequest) (*QueryAllRedeemClaimResponse, error)
|
||||
// Queries a list of RedeemClaimByLiquidTxHash items.
|
||||
RedeemClaimByLiquidTxHash(context.Context, *QueryRedeemClaimByLiquidTxHashRequest) (*QueryRedeemClaimByLiquidTxHashResponse, error)
|
||||
// Queries a list of Distributions items.
|
||||
Distributions(context.Context, *QueryDistributionsRequest) (*QueryDistributionsResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
|
||||
@ -1338,6 +1453,9 @@ func (*UnimplementedQueryServer) RedeemClaimAll(ctx context.Context, req *QueryA
|
||||
func (*UnimplementedQueryServer) RedeemClaimByLiquidTxHash(ctx context.Context, req *QueryRedeemClaimByLiquidTxHashRequest) (*QueryRedeemClaimByLiquidTxHashResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method RedeemClaimByLiquidTxHash not implemented")
|
||||
}
|
||||
func (*UnimplementedQueryServer) Distributions(ctx context.Context, req *QueryDistributionsRequest) (*QueryDistributionsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Distributions not implemented")
|
||||
}
|
||||
|
||||
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
|
||||
s.RegisterService(&_Query_serviceDesc, srv)
|
||||
@ -1541,6 +1659,24 @@ func _Query_RedeemClaimByLiquidTxHash_Handler(srv interface{}, ctx context.Conte
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Query_Distributions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(QueryDistributionsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(QueryServer).Distributions(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/planetmintgo.dao.Query/Distributions",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(QueryServer).Distributions(ctx, req.(*QueryDistributionsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var Query_serviceDesc = _Query_serviceDesc
|
||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "planetmintgo.dao.Query",
|
||||
@ -1590,6 +1726,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
||||
MethodName: "RedeemClaimByLiquidTxHash",
|
||||
Handler: _Query_RedeemClaimByLiquidTxHash_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Distributions",
|
||||
Handler: _Query_Distributions_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "planetmintgo/dao/query.proto",
|
||||
@ -2355,6 +2495,90 @@ func (m *QueryRedeemClaimByLiquidTxHashResponse) MarshalToSizedBuffer(dAtA []byt
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsRequest) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsRequest) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.Pagination != nil {
|
||||
{
|
||||
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintQuery(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsResponse) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsResponse) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.Pagination != nil {
|
||||
{
|
||||
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintQuery(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Distributions) > 0 {
|
||||
for iNdEx := len(m.Distributions) - 1; iNdEx >= 0; iNdEx-- {
|
||||
{
|
||||
size, err := m.Distributions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintQuery(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovQuery(v)
|
||||
base := offset
|
||||
@ -2662,6 +2886,38 @@ func (m *QueryRedeemClaimByLiquidTxHashResponse) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsRequest) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if m.Pagination != nil {
|
||||
l = m.Pagination.Size()
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *QueryDistributionsResponse) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Distributions) > 0 {
|
||||
for _, e := range m.Distributions {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
}
|
||||
}
|
||||
if m.Pagination != nil {
|
||||
l = m.Pagination.Size()
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovQuery(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
@ -4572,6 +4828,212 @@ func (m *QueryRedeemClaimByLiquidTxHashResponse) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *QueryDistributionsRequest) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowQuery
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: QueryDistributionsRequest: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: QueryDistributionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowQuery
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Pagination == nil {
|
||||
m.Pagination = &query.PageRequest{}
|
||||
}
|
||||
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipQuery(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *QueryDistributionsResponse) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowQuery
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: QueryDistributionsResponse: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: QueryDistributionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Distributions", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowQuery
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Distributions = append(m.Distributions, DistributionOrder{})
|
||||
if err := m.Distributions[len(m.Distributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowQuery
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Pagination == nil {
|
||||
m.Pagination = &query.PageResponse{}
|
||||
}
|
||||
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipQuery(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func skipQuery(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
|
@ -559,6 +559,42 @@ func local_request_Query_RedeemClaimByLiquidTxHash_0(ctx context.Context, marsha
|
||||
|
||||
}
|
||||
|
||||
var (
|
||||
filter_Query_Distributions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||||
)
|
||||
|
||||
func request_Query_Distributions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryDistributionsRequest
|
||||
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_Distributions_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := client.Distributions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
func local_request_Query_Distributions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var protoReq QueryDistributionsRequest
|
||||
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_Distributions_0); err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||||
}
|
||||
|
||||
msg, err := server.Distributions(ctx, &protoReq)
|
||||
return msg, metadata, err
|
||||
|
||||
}
|
||||
|
||||
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
|
||||
// UnaryRPC :call QueryServer directly.
|
||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||
@ -818,6 +854,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_Distributions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||||
ctx, cancel := context.WithCancel(req.Context())
|
||||
defer cancel()
|
||||
var stream runtime.ServerTransportStream
|
||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := local_request_Query_Distributions_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 {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
|
||||
forward_Query_Distributions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -1079,6 +1138,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
||||
|
||||
})
|
||||
|
||||
mux.Handle("GET", pattern_Query_Distributions_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)
|
||||
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||||
if err != nil {
|
||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||||
return
|
||||
}
|
||||
resp, md, err := request_Query_Distributions_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_Distributions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||||
|
||||
})
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -1104,6 +1183,8 @@ var (
|
||||
pattern_Query_RedeemClaimAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"planetmint", "dao", "redeem_claim"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_RedeemClaimByLiquidTxHash_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"planetmint", "dao", "redeem_claim_by_liquid_tx_hash", "liquidTxHash"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
|
||||
pattern_Query_Distributions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"planetmint", "dao", "distributions"}, "", runtime.AssumeColonVerbOpt(true)))
|
||||
)
|
||||
|
||||
var (
|
||||
@ -1128,4 +1209,6 @@ var (
|
||||
forward_Query_RedeemClaimAll_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_RedeemClaimByLiquidTxHash_0 = runtime.ForwardResponseMessage
|
||||
|
||||
forward_Query_Distributions_0 = runtime.ForwardResponseMessage
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user