diff --git a/proto/osmosis/incentives/query.proto b/proto/osmosis/incentives/query.proto index a755e971d03..6b900a79f81 100644 --- a/proto/osmosis/incentives/query.proto +++ b/proto/osmosis/incentives/query.proto @@ -96,6 +96,21 @@ service Query { "/osmosis/incentives/v1beta1/current_weight_by_group_gauge_id/" "{group_gauge_id}"; } + rpc InternalGauges(QueryInternalGaugesRequest) + returns (QueryInternalGaugesResponse) { + option (google.api.http).get = + "/osmosis/incentives/v1beta1/internal_gauges"; + } + rpc ExternalGauges(QueryExternalGaugesRequest) + returns (QueryExternalGaugesResponse) { + option (google.api.http).get = + "/osmosis/incentives/v1beta1/external_gauges"; + } + rpc GaugesByPoolID(QueryGaugesByPoolIDRequest) + returns (QueryGaugesByPoolIDResponse) { + option (google.api.http).get = + "/osmosis/incentives/v1beta1/gauges_by_pool_id/{id}"; + } // Params returns incentives module params. rpc Params(ParamsRequest) returns (ParamsResponse) { option (google.api.http).get = "/osmosis/incentives/v1beta1/params"; @@ -243,5 +258,37 @@ message GaugeWeight { ]; } +message QueryInternalGaugesRequest { + // Pagination defines pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} +message QueryInternalGaugesResponse { + repeated Gauge gauges = 1 [ (gogoproto.nullable) = false ]; + // Pagination defines pagination for the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryExternalGaugesRequest { + // Pagination defines pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} +message QueryExternalGaugesResponse { + repeated Gauge gauges = 1 [ (gogoproto.nullable) = false ]; + // Pagination defines pagination for the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +message QueryGaugesByPoolIDRequest { + uint64 id = 1; + // Pagination defines pagination for the request + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +message QueryGaugesByPoolIDResponse { + repeated Gauge gauges = 1 [ (gogoproto.nullable) = false ]; + // Pagination defines pagination for the response + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + message ParamsRequest {} message ParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; } \ No newline at end of file diff --git a/x/incentives/client/cli/cli_test.go b/x/incentives/client/cli/cli_test.go index 5ec0c5a8148..d1c6444401d 100644 --- a/x/incentives/client/cli/cli_test.go +++ b/x/incentives/client/cli/cli_test.go @@ -96,3 +96,43 @@ func TestGetCmdUpcomingGaugesPerDenom(t *testing.T) { } osmocli.RunQueryTestCases(t, desc, tcs) } + +func TestGetCmdGaugesByPoolID(t *testing.T) { + desc, _ := GetCmdGaugesByPoolID() + tcs := map[string]osmocli.QueryCliTestCase[*types.QueryGaugesByPoolIDRequest]{ + "basic test": { + Cmd: "1", + ExpectedQuery: &types.QueryGaugesByPoolIDRequest{ + Id: 1, + Pagination: &query.PageRequest{Key: []uint8{}, Offset: 0, Limit: 100}, + }, + }, + } + osmocli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdExternalGauges(t *testing.T) { + desc, _ := GetCmdExternalGauges() + tcs := map[string]osmocli.QueryCliTestCase[*types.QueryExternalGaugesRequest]{ + "basic test": { + Cmd: "", + ExpectedQuery: &types.QueryExternalGaugesRequest{ + Pagination: &query.PageRequest{Key: []uint8{}, Offset: 0, Limit: 100}, + }, + }, + } + osmocli.RunQueryTestCases(t, desc, tcs) +} + +func TestGetCmdInternalGauges(t *testing.T) { + desc, _ := GetCmdInternalGauges() + tcs := map[string]osmocli.QueryCliTestCase[*types.QueryInternalGaugesRequest]{ + "basic test": { + Cmd: "", + ExpectedQuery: &types.QueryInternalGaugesRequest{ + Pagination: &query.PageRequest{Key: []uint8{}, Offset: 0, Limit: 100}, + }, + }, + } + osmocli.RunQueryTestCases(t, desc, tcs) +} diff --git a/x/incentives/client/cli/query.go b/x/incentives/client/cli/query.go index aea4c5473ed..49a4707db66 100644 --- a/x/incentives/client/cli/query.go +++ b/x/incentives/client/cli/query.go @@ -34,6 +34,9 @@ func GetQueryCmd() *cobra.Command { osmocli.AddQueryCmd(cmd, qcGetter, GetCmdAllGroupsWithGauge) osmocli.AddQueryCmd(cmd, qcGetter, GetCmdGroupByGroupGaugeID) osmocli.AddQueryCmd(cmd, qcGetter, GetCmdCurrentWeightByGroupGaugeID) + osmocli.AddQueryCmd(cmd, qcGetter, GetCmdGaugesByPoolID) + osmocli.AddQueryCmd(cmd, qcGetter, GetCmdExternalGauges) + osmocli.AddQueryCmd(cmd, qcGetter, GetCmdInternalGauges) cmd.AddCommand( osmocli.GetParams[*types.ParamsRequest]( types.ModuleName, types.NewQueryClient), @@ -265,3 +268,30 @@ func GetCmdGroupByGroupGaugeID() (*osmocli.QueryDescriptor, *types.QueryGroupByG Long: `{{.Short}}`, }, &types.QueryGroupByGroupGaugeIDRequest{} } + +// GetCmdGaugesByPoolID returns a gauges by PoolID. +func GetCmdGaugesByPoolID() (*osmocli.QueryDescriptor, *types.QueryGaugesByPoolIDRequest) { + return &osmocli.QueryDescriptor{ + Use: "gauges-by-pool-id", + Short: "Query gauges by pool id.", + Long: `{{.Short}}`, + }, &types.QueryGaugesByPoolIDRequest{} +} + +// GetCmdExternalGauges returns all external gauges. +func GetCmdExternalGauges() (*osmocli.QueryDescriptor, *types.QueryExternalGaugesRequest) { + return &osmocli.QueryDescriptor{ + Use: "gauges-external", + Short: "Query external gauges.", + Long: `{{.Short}}`, + }, &types.QueryExternalGaugesRequest{} +} + +// GetCmdInternalGauges returns all internal gauges. +func GetCmdInternalGauges() (*osmocli.QueryDescriptor, *types.QueryInternalGaugesRequest) { + return &osmocli.QueryDescriptor{ + Use: "gauges-internal", + Short: "Query external gauges.", + Long: `{{.Short}}`, + }, &types.QueryInternalGaugesRequest{} +} diff --git a/x/incentives/keeper/gauge_test.go b/x/incentives/keeper/gauge_test.go index f6d83dd8800..63f12ddce20 100644 --- a/x/incentives/keeper/gauge_test.go +++ b/x/incentives/keeper/gauge_test.go @@ -382,7 +382,6 @@ func (s *KeeperTestSuite) TestChargeFeeIfSufficientFeeDenomBalance() { } func (s *KeeperTestSuite) TestAddToGaugeRewards() { - defaultCoins := sdk.NewCoins(sdk.NewInt64Coin("stake", 12)) // since most of the same functionality and edge cases are tested by a higher level diff --git a/x/incentives/keeper/grpc_query.go b/x/incentives/keeper/grpc_query.go index a7b921d4234..ad9068a4084 100644 --- a/x/incentives/keeper/grpc_query.go +++ b/x/incentives/keeper/grpc_query.go @@ -15,6 +15,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/query" "github.com/osmosis-labs/osmosis/osmomath" + gammtypes "github.com/osmosis-labs/osmosis/v26/x/gamm/types" "github.com/osmosis-labs/osmosis/v26/x/incentives/types" lockuptypes "github.com/osmosis-labs/osmosis/v26/x/lockup/types" ) @@ -269,6 +270,91 @@ func (q Querier) getGaugeFromIDJsonBytes(ctx sdk.Context, refValue []byte) ([]ty return gauges, nil } +// GaugesFilterFn is used to apply a filter on gauges +// It must be used in query.FilterPaginate as a condition to add the gauge to the response data +type GaugesFilterFn func(gauge *types.Gauge) bool + +func (q Querier) GaugesByPoolID(goCtx context.Context, req *types.QueryGaugesByPoolIDRequest) (*types.QueryGaugesByPoolIDResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + pageRes, gauges, err := q.getGaugesWithFilter(ctx, types.KeyPrefixGauges, req.GetPagination(), func(gauge *types.Gauge) bool { + return gauge.IsLinkedToPool(req.GetId()) + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + return &types.QueryGaugesByPoolIDResponse{ + Gauges: gauges, + Pagination: pageRes, + }, nil +} + +func (q Querier) InternalGauges(goCtx context.Context, req *types.QueryInternalGaugesRequest) (*types.QueryInternalGaugesResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + pageRes, gauges, err := q.getGaugesWithFilter(ctx, types.KeyPrefixGauges, req.GetPagination(), func(gauge *types.Gauge) bool { + return gauge.IsInternalGauge([]string{gammtypes.GAMMTokenPrefix}) + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + return &types.QueryInternalGaugesResponse{ + Gauges: gauges, + Pagination: pageRes, + }, nil +} + +func (q Querier) ExternalGauges(goCtx context.Context, req *types.QueryExternalGaugesRequest) (*types.QueryExternalGaugesResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + pageRes, gauges, err := q.getGaugesWithFilter(ctx, types.KeyPrefixGauges, req.GetPagination(), func(gauge *types.Gauge) bool { + return gauge.IsExternalGauge() + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + return &types.QueryExternalGaugesResponse{ + Gauges: gauges, + Pagination: pageRes, + }, nil +} + +func (q Querier) getGaugesWithFilter(ctx sdk.Context, keyPrefix []byte, pageReq *query.PageRequest, filter GaugesFilterFn) (*query.PageResponse, []types.Gauge, error) { + gauges := []types.Gauge{} + store := ctx.KVStore(q.Keeper.storeKey) + valStore := prefix.NewStore(store, keyPrefix) + + pageRes, err := query.FilteredPaginate(valStore, pageReq, func(key []byte, value []byte, accumulate bool) (bool, error) { + // this may return multiple gauges at once if two gauges start at the same time. + // for now this is treated as an edge case that is not of importance + newGauges, err := q.getGaugeFromIDJsonBytes(ctx, value) + if err != nil { + return false, err + } + var hit bool + if accumulate { + for _, gauge := range newGauges { + if !filter(&gauge) { + continue + } + gauges = append(gauges, gauge) + hit = true + } + } + return hit, nil + }) + if err != nil { + return nil, nil, err + } + return pageRes, gauges, nil +} + // filterByPrefixAndDenom filters gauges based on a given key prefix and denom func (q Querier) filterByPrefixAndDenom(ctx sdk.Context, prefixType []byte, denom string, pagination *query.PageRequest) (*query.PageResponse, []types.Gauge, error) { gauges := []types.Gauge{} diff --git a/x/incentives/keeper/grpc_query_test.go b/x/incentives/keeper/grpc_query_test.go index 962795332f6..f4fbabf2961 100644 --- a/x/incentives/keeper/grpc_query_test.go +++ b/x/incentives/keeper/grpc_query_test.go @@ -9,6 +9,7 @@ import ( query "github.com/cosmos/cosmos-sdk/types/query" "github.com/osmosis-labs/osmosis/osmomath" + appparams "github.com/osmosis-labs/osmosis/v26/app/params" "github.com/osmosis-labs/osmosis/v26/x/incentives/types" lockuptypes "github.com/osmosis-labs/osmosis/v26/x/lockup/types" pooltypes "github.com/osmosis-labs/osmosis/v26/x/pool-incentives/types" @@ -49,6 +50,121 @@ func (s *KeeperTestSuite) TestGRPCGaugeByID() { s.Require().Equal(res.Gauge.String(), expectedGauge.String()) } +func (s *KeeperTestSuite) TestGRPCSpecificGauges() { + s.SetupTest() + + // ensure initially querying gauges returns no gauges + res, err := s.querier.Gauges(s.Ctx, &types.GaugesRequest{}) + s.Require().NoError(err) + s.Require().Len(res.Data, 0) + + for _, coin := range defaultGaugeCreationCoins { + s.App.ProtoRevKeeper.SetPoolForDenomPair(s.Ctx, appparams.BaseCoinUnit, coin.Denom, 9999) + } + s.PrepareBalancerPool() + s.PrepareConcentratedPool() + s.FundAcc(s.TestAccs[0], defaultGaugeCreationCoins) + + gaugeCreationCoins := sdk.NewCoins( + sdk.NewCoin(appparams.BaseCoinUnit, osmomath.NewInt(200)), + sdk.NewCoin("atom", osmomath.NewInt(200)), + ) + + gaugesToCreate := []struct { + distrTo lockuptypes.QueryCondition + poolId uint64 + }{ + { + poolId: concentratedPoolId, + distrTo: lockuptypes.QueryCondition{ + LockQueryType: lockuptypes.NoLock, + Denom: "", + Duration: time.Nanosecond, + }, + }, + { + poolId: concentratedPoolId, + distrTo: lockuptypes.QueryCondition{ + LockQueryType: lockuptypes.NoLock, + Denom: "", + Duration: time.Nanosecond, + }, + }, + { + poolId: concentratedPoolId, + distrTo: lockuptypes.QueryCondition{ + LockQueryType: lockuptypes.NoLock, + Denom: types.NoLockInternalGaugeDenom(concentratedPoolId), + Duration: s.App.IncentivesKeeper.GetEpochInfo(s.Ctx).Duration, + }, + }, + } + + for _, gaugeToCreate := range gaugesToCreate { + gaugeId, err := s.App.IncentivesKeeper.CreateGauge(s.Ctx, defaultIsPerpetualParam, s.TestAccs[0], gaugeCreationCoins, gaugeToCreate.distrTo, defaultTime, defaultNumEpochPaidOver, gaugeToCreate.poolId) + s.Require().NoError(err) + _ = gaugeId + } + + // ensure initially querying gauges returns 7 gauges + res, err = s.querier.Gauges(s.Ctx, &types.GaugesRequest{}) + s.Require().NoError(err) + s.Require().Len(res.Data, 7) + + // checkContainsGauges check each id has its equivalent gauge + // it returns ids not having their equivalent gauge + checkContainsGauges := func(gauges []types.Gauge, ids []uint64) []uint64 { + missing := []uint64{} + for _, id := range ids { + found := false + for _, gauge := range gauges { + if gauge.Id == id { + found = true + break + } + } + if !found { + missing = append(missing, id) + } + } + return missing + } + + s.Run("ExternalGauges", func() { + res, err := s.querier.ExternalGauges(s.Ctx, &types.QueryExternalGaugesRequest{}) + s.Require().NoError(err) + s.Require().Len(res.GetGauges(), 2) + missingGauges := checkContainsGauges(res.GetGauges(), []uint64{5, 6}) + s.Require().Empty(missingGauges, "missing gauges %v", missingGauges) + }) + s.Run("InternalGauges", func() { + res, err := s.querier.InternalGauges(s.Ctx, &types.QueryInternalGaugesRequest{}) + s.Require().NoError(err) + s.Require().Len(res.GetGauges(), 5) + missingGauges := checkContainsGauges(res.GetGauges(), []uint64{1, 2, 3, 4, 7}) + s.Require().Empty(missingGauges, "missing gauges %v", missingGauges) + }) + s.Run("ByPoolID", func() { + res, err := s.querier.GaugesByPoolID(s.Ctx, &types.QueryGaugesByPoolIDRequest{ + Id: concentratedPoolId, + Pagination: &query.PageRequest{ + Limit: 10, + }, + }) + s.Require().NoError(err) + s.Require().Len(res.Gauges, 4) + missingGauges := checkContainsGauges(res.GetGauges(), []uint64{4, 5, 6, 7}) + s.Require().Empty(missingGauges, "missing gauges %v", missingGauges) + res, err = s.querier.GaugesByPoolID(s.Ctx, &types.QueryGaugesByPoolIDRequest{ + Id: balancerPoolId, + }) + s.Require().NoError(err) + s.Require().Len(res.Gauges, 3) + missingGauges = checkContainsGauges(res.GetGauges(), []uint64{1, 2, 3}) + s.Require().Empty(missingGauges, "missing gauges %v", missingGauges) + }) +} + // TestGRPCGauges tests querying upcoming and active gauges via gRPC returns the correct response. func (s *KeeperTestSuite) TestGRPCGauges() { s.SetupTest() diff --git a/x/incentives/types/gauge.go b/x/incentives/types/gauge.go index 0dd1b1efe83..de6b6dff30a 100644 --- a/x/incentives/types/gauge.go +++ b/x/incentives/types/gauge.go @@ -1,6 +1,9 @@ package types import ( + fmt "fmt" + "strconv" + "strings" time "time" "github.com/osmosis-labs/osmosis/osmomath" @@ -58,3 +61,28 @@ func (gauge Gauge) IsLastNonPerpetualDistribution() bool { // at gauge creation time. return !gauge.IsPerpetual && gauge.FilledEpochs+1 >= gauge.NumEpochsPaidOver } + +func (gauge Gauge) IsDurationLockGauge() bool { + return gauge.DistributeTo.LockQueryType == lockuptypes.ByDuration +} + +// IsInternalGauge will check if gauge prefix is a NoLockInternalPrefix +// To check for additional prefix, it is required to pass them as argument +func (gauge Gauge) IsInternalGauge(prefixes []string) bool { + prefixes = append(prefixes, NoLockInternalPrefix) + for _, prefix := range prefixes { + if strings.HasPrefix(gauge.DistributeTo.GetDenom(), prefix) { + return true + } + } + return false +} + +func (gauge Gauge) IsExternalGauge() bool { + return strings.HasPrefix(gauge.DistributeTo.GetDenom(), NoLockExternalPrefix) +} + +func (gauge Gauge) IsLinkedToPool(poolID uint64) bool { + _, foundSuffix := strings.CutSuffix(gauge.DistributeTo.Denom, fmt.Sprintf("/%s", strconv.FormatUint(poolID, 10))) + return foundSuffix +} diff --git a/x/incentives/types/query.pb.go b/x/incentives/types/query.pb.go index c6fd3bec2ec..a3e5add203a 100644 --- a/x/incentives/types/query.pb.go +++ b/x/incentives/types/query.pb.go @@ -1378,6 +1378,308 @@ func (m *GaugeWeight) GetGaugeId() uint64 { return 0 } +type QueryInternalGaugesRequest struct { + // Pagination defines pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryInternalGaugesRequest) Reset() { *m = QueryInternalGaugesRequest{} } +func (m *QueryInternalGaugesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInternalGaugesRequest) ProtoMessage() {} +func (*QueryInternalGaugesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8124258a89427f98, []int{29} +} +func (m *QueryInternalGaugesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInternalGaugesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInternalGaugesRequest.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 *QueryInternalGaugesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInternalGaugesRequest.Merge(m, src) +} +func (m *QueryInternalGaugesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInternalGaugesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInternalGaugesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInternalGaugesRequest proto.InternalMessageInfo + +func (m *QueryInternalGaugesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryInternalGaugesResponse struct { + Gauges []Gauge `protobuf:"bytes,1,rep,name=gauges,proto3" json:"gauges"` + // Pagination defines pagination for the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryInternalGaugesResponse) Reset() { *m = QueryInternalGaugesResponse{} } +func (m *QueryInternalGaugesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInternalGaugesResponse) ProtoMessage() {} +func (*QueryInternalGaugesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8124258a89427f98, []int{30} +} +func (m *QueryInternalGaugesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInternalGaugesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInternalGaugesResponse.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 *QueryInternalGaugesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInternalGaugesResponse.Merge(m, src) +} +func (m *QueryInternalGaugesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInternalGaugesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInternalGaugesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInternalGaugesResponse proto.InternalMessageInfo + +func (m *QueryInternalGaugesResponse) GetGauges() []Gauge { + if m != nil { + return m.Gauges + } + return nil +} + +func (m *QueryInternalGaugesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryExternalGaugesRequest struct { + // Pagination defines pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryExternalGaugesRequest) Reset() { *m = QueryExternalGaugesRequest{} } +func (m *QueryExternalGaugesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryExternalGaugesRequest) ProtoMessage() {} +func (*QueryExternalGaugesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8124258a89427f98, []int{31} +} +func (m *QueryExternalGaugesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryExternalGaugesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryExternalGaugesRequest.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 *QueryExternalGaugesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryExternalGaugesRequest.Merge(m, src) +} +func (m *QueryExternalGaugesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryExternalGaugesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryExternalGaugesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryExternalGaugesRequest proto.InternalMessageInfo + +func (m *QueryExternalGaugesRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryExternalGaugesResponse struct { + Gauges []Gauge `protobuf:"bytes,1,rep,name=gauges,proto3" json:"gauges"` + // Pagination defines pagination for the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryExternalGaugesResponse) Reset() { *m = QueryExternalGaugesResponse{} } +func (m *QueryExternalGaugesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryExternalGaugesResponse) ProtoMessage() {} +func (*QueryExternalGaugesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8124258a89427f98, []int{32} +} +func (m *QueryExternalGaugesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryExternalGaugesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryExternalGaugesResponse.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 *QueryExternalGaugesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryExternalGaugesResponse.Merge(m, src) +} +func (m *QueryExternalGaugesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryExternalGaugesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryExternalGaugesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryExternalGaugesResponse proto.InternalMessageInfo + +func (m *QueryExternalGaugesResponse) GetGauges() []Gauge { + if m != nil { + return m.Gauges + } + return nil +} + +func (m *QueryExternalGaugesResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryGaugesByPoolIDRequest struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // Pagination defines pagination for the request + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryGaugesByPoolIDRequest) Reset() { *m = QueryGaugesByPoolIDRequest{} } +func (m *QueryGaugesByPoolIDRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGaugesByPoolIDRequest) ProtoMessage() {} +func (*QueryGaugesByPoolIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8124258a89427f98, []int{33} +} +func (m *QueryGaugesByPoolIDRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGaugesByPoolIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGaugesByPoolIDRequest.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 *QueryGaugesByPoolIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGaugesByPoolIDRequest.Merge(m, src) +} +func (m *QueryGaugesByPoolIDRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGaugesByPoolIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGaugesByPoolIDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGaugesByPoolIDRequest proto.InternalMessageInfo + +func (m *QueryGaugesByPoolIDRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *QueryGaugesByPoolIDRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryGaugesByPoolIDResponse struct { + Gauges []Gauge `protobuf:"bytes,1,rep,name=gauges,proto3" json:"gauges"` + // Pagination defines pagination for the response + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryGaugesByPoolIDResponse) Reset() { *m = QueryGaugesByPoolIDResponse{} } +func (m *QueryGaugesByPoolIDResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGaugesByPoolIDResponse) ProtoMessage() {} +func (*QueryGaugesByPoolIDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8124258a89427f98, []int{34} +} +func (m *QueryGaugesByPoolIDResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGaugesByPoolIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGaugesByPoolIDResponse.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 *QueryGaugesByPoolIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGaugesByPoolIDResponse.Merge(m, src) +} +func (m *QueryGaugesByPoolIDResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGaugesByPoolIDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGaugesByPoolIDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGaugesByPoolIDResponse proto.InternalMessageInfo + +func (m *QueryGaugesByPoolIDResponse) GetGauges() []Gauge { + if m != nil { + return m.Gauges + } + return nil +} + +func (m *QueryGaugesByPoolIDResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + type ParamsRequest struct { } @@ -1385,7 +1687,7 @@ func (m *ParamsRequest) Reset() { *m = ParamsRequest{} } func (m *ParamsRequest) String() string { return proto.CompactTextString(m) } func (*ParamsRequest) ProtoMessage() {} func (*ParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8124258a89427f98, []int{29} + return fileDescriptor_8124258a89427f98, []int{35} } func (m *ParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1422,7 +1724,7 @@ func (m *ParamsResponse) Reset() { *m = ParamsResponse{} } func (m *ParamsResponse) String() string { return proto.CompactTextString(m) } func (*ParamsResponse) ProtoMessage() {} func (*ParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8124258a89427f98, []int{30} + return fileDescriptor_8124258a89427f98, []int{36} } func (m *ParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1488,6 +1790,12 @@ func init() { proto.RegisterType((*QueryCurrentWeightByGroupGaugeIDRequest)(nil), "osmosis.incentives.QueryCurrentWeightByGroupGaugeIDRequest") proto.RegisterType((*QueryCurrentWeightByGroupGaugeIDResponse)(nil), "osmosis.incentives.QueryCurrentWeightByGroupGaugeIDResponse") proto.RegisterType((*GaugeWeight)(nil), "osmosis.incentives.GaugeWeight") + proto.RegisterType((*QueryInternalGaugesRequest)(nil), "osmosis.incentives.QueryInternalGaugesRequest") + proto.RegisterType((*QueryInternalGaugesResponse)(nil), "osmosis.incentives.QueryInternalGaugesResponse") + proto.RegisterType((*QueryExternalGaugesRequest)(nil), "osmosis.incentives.QueryExternalGaugesRequest") + proto.RegisterType((*QueryExternalGaugesResponse)(nil), "osmosis.incentives.QueryExternalGaugesResponse") + proto.RegisterType((*QueryGaugesByPoolIDRequest)(nil), "osmosis.incentives.QueryGaugesByPoolIDRequest") + proto.RegisterType((*QueryGaugesByPoolIDResponse)(nil), "osmosis.incentives.QueryGaugesByPoolIDResponse") proto.RegisterType((*ParamsRequest)(nil), "osmosis.incentives.ParamsRequest") proto.RegisterType((*ParamsResponse)(nil), "osmosis.incentives.ParamsResponse") } @@ -1495,104 +1803,113 @@ func init() { func init() { proto.RegisterFile("osmosis/incentives/query.proto", fileDescriptor_8124258a89427f98) } var fileDescriptor_8124258a89427f98 = []byte{ - // 1542 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0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62, 0xcb, - 0x34, 0x46, 0x86, 0x93, 0x5c, 0x84, 0x8c, 0x13, 0x4c, 0xc6, 0x11, 0x84, 0x3b, 0xca, 0x70, 0xd1, - 0x03, 0x05, 0x46, 0xc2, 0x24, 0x88, 0x8e, 0xc9, 0x0a, 0x48, 0xf8, 0x3c, 0x95, 0xed, 0xec, 0x28, - 0xf4, 0xcc, 0x33, 0x3d, 0x27, 0xd1, 0xf1, 0x24, 0x3d, 0x06, 0x8b, 0x14, 0x48, 0x81, 0x7e, 0x6e, - 0x81, 0xf6, 0x00, 0x43, 0x90, 0xd6, 0xa9, 0x6a, 0x0b, 0x30, 0xa5, 0x4e, 0x75, 0x1f, 0x20, 0xe4, - 0x9e, 0x67, 0x72, 0x97, 0xd0, 0x62, 0xd7, 0x72, 0xf5, 0x0a, 0xa9, 0xea, 0x9c, 0xc4, 0x1e, 0x2a, - 0x30, 0x1a, 0x25, 0x28, 0x74, 0x5c, 0xa6, 0x40, 0xca, 0xb7, 0xa9, 0x13, 0xdd, 0xb8, 0x0a, 0x99, - 0x8b, 0x4c, 0xe6, 0x1c, 0x3a, 0x99, 0x24, 0xb3, 0x05, 0xd5, 0xd0, 0xaf, 0x6d, 0xe0, 0xdb, 0x98, - 0xec, 0x7c, 0xe7, 0xda, 0xad, 0xb3, 0x5d, 0xd8, 0x49, 0x88, 0x90, 0xfd, 0x36, 0x93, 0x7d, 0x06, - 0x2d, 0xed, 0x40, 0x76, 0x68, 0xbe, 0x0f, 0x14, 0x80, 0x26, 0x77, 0x21, 0xe9, 0xc1, 0x6c, 0x83, - 0xc1, 0xd4, 0x6c, 0x27, 0x37, 0x21, 0xee, 0x0c, 0x13, 0x37, 0x8f, 0xb4, 0x24, 0x71, 0x55, 0x1e, - 0xa7, 0x13, 0xd7, 0xd3, 0xb6, 0x18, 0x44, 0xde, 0x43, 0x3f, 0x2a, 0x30, 0xde, 0x86, 0x5b, 0xf2, - 0x91, 0x26, 0xc2, 0x9b, 0x7c, 0xa4, 0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, 0xec, 0x8e, 0x16, 0x38, - 0x0a, 0xe6, 0x56, 0x1f, 0x3d, 0x4d, 0x2b, 0x8f, 0x9f, 0xa6, 0x95, 0xbf, 0x9e, 0xa6, 0x95, 0x2f, - 0x9f, 0xa5, 0x7b, 0x1e, 0x3f, 0x4b, 0xf7, 0xfc, 0xf1, 0x2c, 0xdd, 0xf3, 0xf1, 0x72, 0xe8, 0x33, - 0x56, 0xe4, 0x99, 0x2b, 0x19, 0x05, 0xb7, 0x91, 0xf4, 0xce, 0xc2, 0xb2, 0x76, 0x37, 0x9c, 0x9a, - 0x7d, 0xda, 0x16, 0x06, 0xd9, 0x57, 0xe6, 0xe2, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x42, - 0x59, 0xf1, 0x52, 0x17, 0x00, 0x00, + // 1690 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x99, 0xcf, 0x6f, 0x13, 0x47, + 0x14, 0xc7, 0xb3, 0xf9, 0x05, 0x79, 0x09, 0x09, 0x19, 0x7e, 0x25, 0x0e, 0xd8, 0xe9, 0x16, 0x82, + 0x81, 0x66, 0x97, 0x24, 0x24, 0xd0, 0xd0, 0x56, 0xc5, 0x84, 0x52, 0x2a, 0x10, 0xc1, 0x2a, 0x8a, + 0x5a, 0x09, 0xad, 0xd6, 0xde, 0xe9, 0x66, 0x95, 0xf5, 0x8e, 0xf1, 0xae, 0x49, 0xac, 0x28, 0x97, + 0xaa, 0x52, 0xa5, 0x1e, 0x50, 0x7f, 0xa0, 0xaa, 0x07, 0xa4, 0xde, 0x7a, 0x68, 0xd5, 0x4b, 0x2b, + 0x55, 0x3d, 0xf5, 0xd0, 0x13, 0x47, 0xa4, 0x5e, 0xaa, 0x1e, 0x42, 0x05, 0xbd, 0x57, 0xe2, 0x2f, + 0xa8, 0x76, 0x66, 0xd6, 0xf6, 0x6e, 0x66, 0xd7, 0x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14, 0x36, 0x09, 0xa0, 0x62, 0x85, 0xd2, 0x1e, 0x28, 0x5e, + 0x0b, 0x83, 0xfe, 0x58, 0xff, 0xc7, 0x41, 0xd0, 0xd9, 0x27, 0x80, 0x0a, 0x95, 0x47, 0x02, 0xa8, + 0x58, 0x32, 0xc8, 0xf3, 0x14, 0xf4, 0x0c, 0x9a, 0x6e, 0xdd, 0xa2, 0xf9, 0x9b, 0xa2, 0x4c, 0x88, + 0xdd, 0xdc, 0x2f, 0xb2, 0x3e, 0x5d, 0xdc, 0x2f, 0x86, 0x84, 0x80, 0xb8, 0x5f, 0x0c, 0x4b, 0x83, + 0xf6, 0xfa, 0x45, 0x26, 0x06, 0x72, 0x8b, 0x0f, 0x1e, 0xa7, 0xa5, 0x87, 0x8f, 0xd3, 0xd2, 0xdf, + 0x8f, 0xd3, 0xd2, 0xe7, 0x4f, 0xd2, 0x1d, 0x0f, 0x9f, 0xa4, 0x3b, 0xfe, 0x7c, 0x92, 0xee, 0xf8, + 0x70, 0xae, 0xe9, 0x85, 0x1f, 0xf7, 0x33, 0x69, 0xeb, 0x05, 0xb7, 0xee, 0xf4, 0xce, 0xf4, 0x9c, + 0xba, 0xd6, 0xec, 0x9a, 0xbe, 0x04, 0x2c, 0xf4, 0xd2, 0xf7, 0x71, 0x33, 0xff, 0x05, 0x00, 0x00, + 0xff, 0xff, 0x00, 0xbe, 0x17, 0xc5, 0x7c, 0x1c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1640,6 +1957,9 @@ type QueryClient interface { // CurrentWeightByGroupGaugeID returns the current weight since the // the last epoch given a group gauge ID CurrentWeightByGroupGaugeID(ctx context.Context, in *QueryCurrentWeightByGroupGaugeIDRequest, opts ...grpc.CallOption) (*QueryCurrentWeightByGroupGaugeIDResponse, error) + InternalGauges(ctx context.Context, in *QueryInternalGaugesRequest, opts ...grpc.CallOption) (*QueryInternalGaugesResponse, error) + ExternalGauges(ctx context.Context, in *QueryExternalGaugesRequest, opts ...grpc.CallOption) (*QueryExternalGaugesResponse, error) + GaugesByPoolID(ctx context.Context, in *QueryGaugesByPoolIDRequest, opts ...grpc.CallOption) (*QueryGaugesByPoolIDResponse, error) // Params returns incentives module params. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) } @@ -1778,6 +2098,33 @@ func (c *queryClient) CurrentWeightByGroupGaugeID(ctx context.Context, in *Query return out, nil } +func (c *queryClient) InternalGauges(ctx context.Context, in *QueryInternalGaugesRequest, opts ...grpc.CallOption) (*QueryInternalGaugesResponse, error) { + out := new(QueryInternalGaugesResponse) + err := c.cc.Invoke(ctx, "/osmosis.incentives.Query/InternalGauges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ExternalGauges(ctx context.Context, in *QueryExternalGaugesRequest, opts ...grpc.CallOption) (*QueryExternalGaugesResponse, error) { + out := new(QueryExternalGaugesResponse) + err := c.cc.Invoke(ctx, "/osmosis.incentives.Query/ExternalGauges", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GaugesByPoolID(ctx context.Context, in *QueryGaugesByPoolIDRequest, opts ...grpc.CallOption) (*QueryGaugesByPoolIDResponse, error) { + out := new(QueryGaugesByPoolIDResponse) + err := c.cc.Invoke(ctx, "/osmosis.incentives.Query/GaugesByPoolID", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) { out := new(ParamsResponse) err := c.cc.Invoke(ctx, "/osmosis.incentives.Query/Params", in, out, opts...) @@ -1822,6 +2169,9 @@ type QueryServer interface { // CurrentWeightByGroupGaugeID returns the current weight since the // the last epoch given a group gauge ID CurrentWeightByGroupGaugeID(context.Context, *QueryCurrentWeightByGroupGaugeIDRequest) (*QueryCurrentWeightByGroupGaugeIDResponse, error) + InternalGauges(context.Context, *QueryInternalGaugesRequest) (*QueryInternalGaugesResponse, error) + ExternalGauges(context.Context, *QueryExternalGaugesRequest) (*QueryExternalGaugesResponse, error) + GaugesByPoolID(context.Context, *QueryGaugesByPoolIDRequest) (*QueryGaugesByPoolIDResponse, error) // Params returns incentives module params. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) } @@ -1872,6 +2222,15 @@ func (*UnimplementedQueryServer) GroupByGroupGaugeID(ctx context.Context, req *Q func (*UnimplementedQueryServer) CurrentWeightByGroupGaugeID(ctx context.Context, req *QueryCurrentWeightByGroupGaugeIDRequest) (*QueryCurrentWeightByGroupGaugeIDResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CurrentWeightByGroupGaugeID not implemented") } +func (*UnimplementedQueryServer) InternalGauges(ctx context.Context, req *QueryInternalGaugesRequest) (*QueryInternalGaugesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InternalGauges not implemented") +} +func (*UnimplementedQueryServer) ExternalGauges(ctx context.Context, req *QueryExternalGaugesRequest) (*QueryExternalGaugesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExternalGauges not implemented") +} +func (*UnimplementedQueryServer) GaugesByPoolID(ctx context.Context, req *QueryGaugesByPoolIDRequest) (*QueryGaugesByPoolIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GaugesByPoolID not implemented") +} func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } @@ -2132,48 +2491,102 @@ func _Query_CurrentWeightByGroupGaugeID_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParamsRequest) +func _Query_InternalGauges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInternalGaugesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) + return srv.(QueryServer).InternalGauges(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/osmosis.incentives.Query/Params", + FullMethod: "/osmosis.incentives.Query/InternalGauges", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*ParamsRequest)) + return srv.(QueryServer).InternalGauges(ctx, req.(*QueryInternalGaugesRequest)) } return interceptor(ctx, in, info, handler) } -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "osmosis.incentives.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ModuleToDistributeCoins", - Handler: _Query_ModuleToDistributeCoins_Handler, - }, - { - MethodName: "GaugeByID", - Handler: _Query_GaugeByID_Handler, - }, - { - MethodName: "Gauges", - Handler: _Query_Gauges_Handler, - }, - { - MethodName: "ActiveGauges", - Handler: _Query_ActiveGauges_Handler, - }, - { - MethodName: "ActiveGaugesPerDenom", - Handler: _Query_ActiveGaugesPerDenom_Handler, - }, +func _Query_ExternalGauges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryExternalGaugesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ExternalGauges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.incentives.Query/ExternalGauges", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ExternalGauges(ctx, req.(*QueryExternalGaugesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GaugesByPoolID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGaugesByPoolIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GaugesByPoolID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.incentives.Query/GaugesByPoolID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GaugesByPoolID(ctx, req.(*QueryGaugesByPoolIDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.incentives.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*ParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "osmosis.incentives.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ModuleToDistributeCoins", + Handler: _Query_ModuleToDistributeCoins_Handler, + }, + { + MethodName: "GaugeByID", + Handler: _Query_GaugeByID_Handler, + }, + { + MethodName: "Gauges", + Handler: _Query_Gauges_Handler, + }, + { + MethodName: "ActiveGauges", + Handler: _Query_ActiveGauges_Handler, + }, + { + MethodName: "ActiveGaugesPerDenom", + Handler: _Query_ActiveGaugesPerDenom_Handler, + }, { MethodName: "UpcomingGauges", Handler: _Query_UpcomingGauges_Handler, @@ -2210,6 +2623,18 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "CurrentWeightByGroupGaugeID", Handler: _Query_CurrentWeightByGroupGaugeID_Handler, }, + { + MethodName: "InternalGauges", + Handler: _Query_InternalGauges_Handler, + }, + { + MethodName: "ExternalGauges", + Handler: _Query_ExternalGauges_Handler, + }, + { + MethodName: "GaugesByPoolID", + Handler: _Query_GaugesByPoolID_Handler, + }, { MethodName: "Params", Handler: _Query_Params_Handler, @@ -3268,7 +3693,7 @@ func (m *GaugeWeight) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ParamsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryInternalGaugesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3278,20 +3703,32 @@ func (m *ParamsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryInternalGaugesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryInternalGaugesRequest) 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 *ParamsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryInternalGaugesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3301,114 +3738,359 @@ func (m *ParamsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryInternalGaugesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryInternalGaugesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + 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.Gauges) > 0 { + for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Gauges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - 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 - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *QueryExternalGaugesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *ModuleToDistributeCoinsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n + +func (m *QueryExternalGaugesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ModuleToDistributeCoinsResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryExternalGaugesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovQuery(uint64(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 n + return len(dAtA) - i, nil } -func (m *GaugeByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) +func (m *QueryExternalGaugesResponse) 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 n + return dAtA[:n], nil } -func (m *GaugeByIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Gauge != nil { - l = m.Gauge.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n +func (m *QueryExternalGaugesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GaugesRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryExternalGaugesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) + { + 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 } - return n + if len(m.Gauges) > 0 { + for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Gauges[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 (m *GaugesResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryGaugesByPoolIDRequest) 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 *QueryGaugesByPoolIDRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGaugesByPoolIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Data) > 0 { - for _, e := range m.Data { - l = e.Size() - n += 1 + l + sovQuery(uint64(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 m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryGaugesByPoolIDResponse) 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 *QueryGaugesByPoolIDResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGaugesByPoolIDResponse) 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.Gauges) > 0 { + for iNdEx := len(m.Gauges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Gauges[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 (m *ParamsRequest) 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 *ParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ParamsResponse) 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 *ParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.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 + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ModuleToDistributeCoinsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ModuleToDistributeCoinsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *GaugeByIDRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + return n +} + +func (m *GaugeByIDResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Gauge != nil { + l = m.Gauge.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *GaugesRequest) 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 *GaugesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Data) > 0 { + for _, e := range m.Data { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) @@ -3750,31 +4432,130 @@ func (m *GaugeWeight) Size() (n int) { return n } -func (m *ParamsRequest) Size() (n int) { +func (m *QueryInternalGaugesRequest) 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 *ParamsResponse) Size() (n int) { +func (m *QueryInternalGaugesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Gauges) > 0 { + for _, e := range m.Gauges { + 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 +func (m *QueryExternalGaugesRequest) 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 sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (m *QueryExternalGaugesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Gauges) > 0 { + for _, e := range m.Gauges { + 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 (m *QueryGaugesByPoolIDRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGaugesByPoolIDResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Gauges) > 0 { + for _, e := range m.Gauges { + 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 (m *ParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *ModuleToDistributeCoinsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -5296,11 +6077,348 @@ func (m *RewardsEstRequest) Unmarshal(dAtA []byte) error { } else { return fmt.Errorf("proto: wrong wireType = %d for field LockIds", wireType) } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndEpoch", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndEpoch", wireType) + } + m.EndEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *RewardsEstResponse) 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: RewardsEstResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RewardsEstResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", 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.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].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 *QueryLockableDurationsRequest) 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: QueryLockableDurationsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryLockableDurationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *QueryLockableDurationsResponse) 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: QueryLockableDurationsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryLockableDurationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LockableDurations", 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.LockableDurations = append(m.LockableDurations, time.Duration(0)) + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&(m.LockableDurations[len(m.LockableDurations)-1]), 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 *QueryAllGroupsRequest) 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: QueryAllGroupsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *QueryAllGroupsResponse) 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 } - m.EndEpoch = 0 + 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: QueryAllGroupsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5310,11 +6428,26 @@ func (m *RewardsEstRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndEpoch |= int64(b&0x7F) << shift + 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.Groups = append(m.Groups, Group{}) + if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5336,7 +6469,7 @@ func (m *RewardsEstRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RewardsEstResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllGroupsGaugesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5359,15 +6492,65 @@ func (m *RewardsEstResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RewardsEstResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllGroupsGaugesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RewardsEstResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllGroupsGaugesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *QueryAllGroupsGaugesResponse) 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: QueryAllGroupsGaugesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllGroupsGaugesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5394,8 +6577,8 @@ func (m *RewardsEstResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Gauges = append(m.Gauges, Gauge{}) + if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5420,7 +6603,7 @@ func (m *RewardsEstResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryLockableDurationsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllGroupsWithGaugeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5443,10 +6626,10 @@ func (m *QueryLockableDurationsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryLockableDurationsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllGroupsWithGaugeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryLockableDurationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllGroupsWithGaugeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5470,7 +6653,7 @@ func (m *QueryLockableDurationsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryLockableDurationsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllGroupsWithGaugeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5493,15 +6676,15 @@ func (m *QueryLockableDurationsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryLockableDurationsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllGroupsWithGaugeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryLockableDurationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllGroupsWithGaugeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LockableDurations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GroupsWithGauge", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5528,8 +6711,8 @@ func (m *QueryLockableDurationsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.LockableDurations = append(m.LockableDurations, time.Duration(0)) - if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&(m.LockableDurations[len(m.LockableDurations)-1]), dAtA[iNdEx:postIndex]); err != nil { + m.GroupsWithGauge = append(m.GroupsWithGauge, GroupsWithGauge{}) + if err := m.GroupsWithGauge[len(m.GroupsWithGauge)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5554,7 +6737,7 @@ func (m *QueryLockableDurationsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGroupsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGroupByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5577,12 +6760,31 @@ func (m *QueryAllGroupsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGroupsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGroupByGroupGaugeIDRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGroupByGroupGaugeIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5604,7 +6806,7 @@ func (m *QueryAllGroupsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGroupsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGroupByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5627,15 +6829,15 @@ func (m *QueryAllGroupsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGroupsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGroupByGroupGaugeIDResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGroupByGroupGaugeIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5662,8 +6864,7 @@ func (m *QueryAllGroupsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Groups = append(m.Groups, Group{}) - if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5688,7 +6889,7 @@ func (m *QueryAllGroupsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGroupsGaugesRequest) Unmarshal(dAtA []byte) error { +func (m *QueryCurrentWeightByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5711,12 +6912,31 @@ func (m *QueryAllGroupsGaugesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGroupsGaugesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGroupsGaugesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupGaugeId", wireType) + } + m.GroupGaugeId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupGaugeId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5738,7 +6958,7 @@ func (m *QueryAllGroupsGaugesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGroupsGaugesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryCurrentWeightByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5761,15 +6981,15 @@ func (m *QueryAllGroupsGaugesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGroupsGaugesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGroupsGaugesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GaugeWeight", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5796,8 +7016,8 @@ func (m *QueryAllGroupsGaugesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Gauges = append(m.Gauges, Gauge{}) - if err := m.Gauges[len(m.Gauges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.GaugeWeight = append(m.GaugeWeight, GaugeWeight{}) + if err := m.GaugeWeight[len(m.GaugeWeight)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5822,7 +7042,7 @@ func (m *QueryAllGroupsGaugesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGroupsWithGaugeRequest) Unmarshal(dAtA []byte) error { +func (m *GaugeWeight) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5832,25 +7052,78 @@ func (m *QueryAllGroupsWithGaugeRequest) Unmarshal(dAtA []byte) error { if shift >= 64 { return ErrIntOverflowQuery } - if iNdEx >= l { + 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: GaugeWeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GaugeWeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GaugeId", wireType) + } + m.GaugeId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GaugeId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WeightRatio", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.WeightRatio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllGroupsWithGaugeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGroupsWithGaugeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5872,7 +7145,7 @@ func (m *QueryAllGroupsWithGaugeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGroupsWithGaugeResponse) Unmarshal(dAtA []byte) error { +func (m *QueryInternalGaugesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5895,15 +7168,15 @@ func (m *QueryAllGroupsWithGaugeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGroupsWithGaugeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryInternalGaugesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGroupsWithGaugeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryInternalGaugesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupsWithGauge", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5930,8 +7203,10 @@ func (m *QueryAllGroupsWithGaugeResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GroupsWithGauge = append(m.GroupsWithGauge, GroupsWithGauge{}) - if err := m.GroupsWithGauge[len(m.GroupsWithGauge)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5956,7 +7231,7 @@ func (m *QueryAllGroupsWithGaugeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGroupByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { +func (m *QueryInternalGaugesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5979,17 +7254,17 @@ func (m *QueryGroupByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGroupByGroupGaugeIDRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryInternalGaugesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGroupByGroupGaugeIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryInternalGaugesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) } - m.Id = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5999,11 +7274,62 @@ func (m *QueryGroupByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + 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.Gauges = append(m.Gauges, Gauge{}) + if err := m.Gauges[len(m.Gauges)-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:]) @@ -6025,7 +7351,7 @@ func (m *QueryGroupByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGroupByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { +func (m *QueryExternalGaugesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6048,15 +7374,15 @@ func (m *QueryGroupByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGroupByGroupGaugeIDResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryExternalGaugesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGroupByGroupGaugeIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryExternalGaugesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6083,7 +7409,10 @@ func (m *QueryGroupByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6108,7 +7437,7 @@ func (m *QueryGroupByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryCurrentWeightByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { +func (m *QueryExternalGaugesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6131,17 +7460,17 @@ func (m *QueryCurrentWeightByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryExternalGaugesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryExternalGaugesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupGaugeId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) } - m.GroupGaugeId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6151,11 +7480,62 @@ func (m *QueryCurrentWeightByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GroupGaugeId |= uint64(b&0x7F) << shift + 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.Gauges = append(m.Gauges, Gauge{}) + if err := m.Gauges[len(m.Gauges)-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:]) @@ -6177,7 +7557,7 @@ func (m *QueryCurrentWeightByGroupGaugeIDRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryCurrentWeightByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGaugesByPoolIDRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6200,15 +7580,34 @@ func (m *QueryCurrentWeightByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGaugesByPoolIDRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentWeightByGroupGaugeIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGaugesByPoolIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GaugeWeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6235,8 +7634,10 @@ func (m *QueryCurrentWeightByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error if postIndex > l { return io.ErrUnexpectedEOF } - m.GaugeWeight = append(m.GaugeWeight, GaugeWeight{}) - if err := m.GaugeWeight[len(m.GaugeWeight)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6261,7 +7662,7 @@ func (m *QueryCurrentWeightByGroupGaugeIDResponse) Unmarshal(dAtA []byte) error } return nil } -func (m *GaugeWeight) Unmarshal(dAtA []byte) error { +func (m *QueryGaugesByPoolIDResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6284,17 +7685,17 @@ func (m *GaugeWeight) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GaugeWeight: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGaugesByPoolIDResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GaugeWeight: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGaugesByPoolIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GaugeId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gauges", wireType) } - m.GaugeId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6304,16 +7705,31 @@ func (m *GaugeWeight) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.GaugeId |= uint64(b&0x7F) << shift + 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.Gauges = append(m.Gauges, Gauge{}) + if err := m.Gauges[len(m.Gauges)-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 WeightRatio", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6323,23 +7739,25 @@ func (m *GaugeWeight) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.WeightRatio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/incentives/types/query.pb.gw.go b/x/incentives/types/query.pb.gw.go index 14102094181..0a5e57069f4 100644 --- a/x/incentives/types/query.pb.gw.go +++ b/x/incentives/types/query.pb.gw.go @@ -537,6 +537,150 @@ func local_request_Query_CurrentWeightByGroupGaugeID_0(ctx context.Context, mars } +var ( + filter_Query_InternalGauges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_InternalGauges_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInternalGaugesRequest + 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_InternalGauges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.InternalGauges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InternalGauges_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInternalGaugesRequest + 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_InternalGauges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.InternalGauges(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_ExternalGauges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_ExternalGauges_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryExternalGaugesRequest + 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_ExternalGauges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ExternalGauges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ExternalGauges_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryExternalGaugesRequest + 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_ExternalGauges_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ExternalGauges(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GaugesByPoolID_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_GaugesByPoolID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGaugesByPoolIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GaugesByPoolID_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GaugesByPoolID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GaugesByPoolID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGaugesByPoolIDRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GaugesByPoolID_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GaugesByPoolID(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ParamsRequest var metadata runtime.ServerMetadata @@ -883,6 +1027,75 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_InternalGauges_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_InternalGauges_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_InternalGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ExternalGauges_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_ExternalGauges_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_ExternalGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GaugesByPoolID_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_GaugesByPoolID_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_GaugesByPoolID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1227,6 +1440,66 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_InternalGauges_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_InternalGauges_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_InternalGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ExternalGauges_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_ExternalGauges_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_ExternalGauges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GaugesByPoolID_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_GaugesByPoolID_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_GaugesByPoolID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1279,6 +1552,12 @@ var ( pattern_Query_CurrentWeightByGroupGaugeID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "incentives", "v1beta1", "current_weight_by_group_gauge_id", "group_gauge_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_InternalGauges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "incentives", "v1beta1", "internal_gauges"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ExternalGauges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "incentives", "v1beta1", "external_gauges"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_GaugesByPoolID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "incentives", "v1beta1", "gauges_by_pool_id", "id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "incentives", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -1311,5 +1590,11 @@ var ( forward_Query_CurrentWeightByGroupGaugeID_0 = runtime.ForwardResponseMessage + forward_Query_InternalGauges_0 = runtime.ForwardResponseMessage + + forward_Query_ExternalGauges_0 = runtime.ForwardResponseMessage + + forward_Query_GaugesByPoolID_0 = runtime.ForwardResponseMessage + forward_Query_Params_0 = runtime.ForwardResponseMessage )