From c454fc271bebb9d1730c20d3963abdec23856ef5 Mon Sep 17 00:00:00 2001 From: "Matt, Park" <45252226+mattverse@users.noreply.github.com> Date: Thu, 1 Jun 2023 23:34:17 +0900 Subject: [PATCH] Add query and cli for lock reward receiver (#5373) * Add query and cli * Add stargate whitelist --- proto/osmosis/lockup/query.proto | 10 + wasmbinding/stargate_whitelist.go | 1 + x/lockup/client/cli/query.go | 14 + x/lockup/keeper/grpc_query.go | 11 + x/lockup/keeper/grpc_query_test.go | 25 ++ x/lockup/keeper/store.go | 18 + x/lockup/types/query.pb.go | 601 +++++++++++++++++++++++------ x/lockup/types/query.pb.gw.go | 101 +++++ 8 files changed, 664 insertions(+), 117 deletions(-) diff --git a/proto/osmosis/lockup/query.proto b/proto/osmosis/lockup/query.proto index 7ab93331194..bb92f91c727 100644 --- a/proto/osmosis/lockup/query.proto +++ b/proto/osmosis/lockup/query.proto @@ -83,6 +83,13 @@ service Query { "/osmosis/lockup/v1beta1/locked_by_id/{lock_id}"; } + // Returns lock record by id + rpc LockRewardReceiver(LockRewardReceiverRequest) + returns (LockRewardReceiverResponse) { + option (google.api.http).get = + "/osmosis/lockup/v1beta1/lock_reward_receiver/{lock_id}"; + } + // Returns next lock ID rpc NextLockID(NextLockIDRequest) returns (NextLockIDResponse) { option (google.api.http).get = "/osmosis/lockup/v1beta1/next_lock_id"; @@ -253,6 +260,9 @@ message LockedDenomResponse { message LockedRequest { uint64 lock_id = 1; }; message LockedResponse { PeriodLock lock = 1; }; +message LockRewardReceiverRequest { uint64 lock_id = 1; }; +message LockRewardReceiverResponse { string reward_receiver = 1; }; + message NextLockIDRequest {}; message NextLockIDResponse { uint64 lock_id = 1; }; diff --git a/wasmbinding/stargate_whitelist.go b/wasmbinding/stargate_whitelist.go index 3e1c8f36f22..3e8b42add21 100644 --- a/wasmbinding/stargate_whitelist.go +++ b/wasmbinding/stargate_whitelist.go @@ -109,6 +109,7 @@ func init() { setWhitelistedQuery("/osmosis.lockup.Query/LockedDenom", &lockuptypes.LockedDenomResponse{}) setWhitelistedQuery("/osmosis.lockup.Query/LockedByID", &lockuptypes.LockedResponse{}) setWhitelistedQuery("/osmosis.lockup.Query/NextLockID", &lockuptypes.NextLockIDResponse{}) + setWhitelistedQuery("/osmosis.lockup.Query/LockRewardReceiver", &lockuptypes.LockRewardReceiverResponse{}) // mint setWhitelistedQuery("/osmosis.mint.v1beta1.Query/EpochProvisions", &minttypes.QueryEpochProvisionsResponse{}) diff --git a/x/lockup/client/cli/query.go b/x/lockup/client/cli/query.go index 715074b1352..faa79d831b8 100644 --- a/x/lockup/client/cli/query.go +++ b/x/lockup/client/cli/query.go @@ -38,6 +38,7 @@ func GetQueryCmd() *cobra.Command { GetCmdAccountUnlockedBeforeTime(), GetCmdAccountLockedPastTimeDenom(), GetCmdLockedByID(), + GetCmdLockRewardReceiver(), GetCmdAccountLockedLongerDuration(), GetCmdAccountLockedLongerDurationNotUnlockingOnly(), GetCmdAccountLockedLongerDurationDenom(), @@ -192,6 +193,19 @@ func GetCmdLockedByID() *cobra.Command { return osmocli.BuildQueryCli[*types.LockedRequest](&q, types.NewQueryClient) } +// GetCmdLockRewardReceiver returns reward receiver for the given lock id +func GetCmdLockRewardReceiver() *cobra.Command { + q := osmocli.QueryDescriptor{ + Use: "lock-reward-receiver ", + Short: "Query lock's reward receiver", + Long: `{{.Short}}{{.ExampleHeader}} +{{.CommandPrefix}} lock-reward-receiver 1`, + QueryFnName: "LockedByID", + } + q.Long = osmocli.FormatLongDesc(q.Long, osmocli.NewLongMetadata(types.ModuleName).WithShort(q.Short)) + return osmocli.BuildQueryCli[*types.LockRewardReceiverRequest](&q, types.NewQueryClient) +} + // GetCmdNextLockID returns next lock id to be created. func GetCmdNextLockID() *cobra.Command { return osmocli.SimpleQueryCmd[*types.NextLockIDRequest]( diff --git a/x/lockup/keeper/grpc_query.go b/x/lockup/keeper/grpc_query.go index c28ed459818..676f047f72b 100644 --- a/x/lockup/keeper/grpc_query.go +++ b/x/lockup/keeper/grpc_query.go @@ -164,6 +164,17 @@ func (q Querier) LockedByID(goCtx context.Context, req *types.LockedRequest) (*t return &types.LockedResponse{Lock: lock}, err } +// LockRewardReceiver returns lock reward receiver of the lock. +func (q Querier) LockRewardReceiver(goCtx context.Context, req *types.LockRewardReceiverRequest) (*types.LockRewardReceiverResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + rewardReceiver, err := q.Keeper.GetLockRewardReceiver(ctx, req.LockId) + return &types.LockRewardReceiverResponse{RewardReceiver: rewardReceiver}, err +} + // NextLockID returns next lock ID to be created. func (q Querier) NextLockID(goCtx context.Context, req *types.NextLockIDRequest) (*types.NextLockIDResponse, error) { if req == nil { diff --git a/x/lockup/keeper/grpc_query_test.go b/x/lockup/keeper/grpc_query_test.go index a41a3930dea..6ec096aaf77 100644 --- a/x/lockup/keeper/grpc_query_test.go +++ b/x/lockup/keeper/grpc_query_test.go @@ -361,6 +361,31 @@ func (s *KeeperTestSuite) TestLockedByID() { s.Require().Equal(res.Lock.IsUnlocking(), false) } +func (s *KeeperTestSuite) TestLockRewardReceiver() { + s.SetupTest() + addr1 := sdk.AccAddress([]byte("addr1---------------")) + addr2 := sdk.AccAddress([]byte("addr2---------------")) + + // lock coins + coins := sdk.Coins{sdk.NewInt64Coin("stake", 10)} + s.LockTokens(addr1, coins, time.Second) + + res, err := s.querier.LockRewardReceiver(sdk.WrapSDKContext(s.Ctx), &types.LockRewardReceiverRequest{LockId: 1}) + s.Require().NoError(err) + s.Require().Equal(res.RewardReceiver, addr1.String()) + + // now change lock reward receiver and then query again + s.App.LockupKeeper.SetLockRewardReceiverAddress(s.Ctx, 1, addr1, addr2.String()) + res, err = s.querier.LockRewardReceiver(sdk.WrapSDKContext(s.Ctx), &types.LockRewardReceiverRequest{LockId: 1}) + s.Require().NoError(err) + s.Require().Equal(res.RewardReceiver, addr2.String()) + + // try getting lock reward receiver for invalid lock id, this should error + res, err = s.querier.LockRewardReceiver(sdk.WrapSDKContext(s.Ctx), &types.LockRewardReceiverRequest{LockId: 10}) + s.Require().Error(err) + s.Require().Equal(res.RewardReceiver, "") +} + func (s *KeeperTestSuite) TestNextLockID() { s.SetupTest() addr1 := sdk.AccAddress([]byte("addr1---------------")) diff --git a/x/lockup/keeper/store.go b/x/lockup/keeper/store.go index ff7494c2f44..98283331136 100644 --- a/x/lockup/keeper/store.go +++ b/x/lockup/keeper/store.go @@ -249,6 +249,24 @@ func (k Keeper) GetLockByID(ctx sdk.Context, lockID uint64) (*types.PeriodLock, return &lock, err } +// GetLockRewardReceiver returns the reward receiver stored in state. +// Note that if the lock reward receiver address in state is an empty string literal, +// it indicates that the lock reward receiver is the owner of the lock, thus +// returns the lock owner address. +func (k Keeper) GetLockRewardReceiver(ctx sdk.Context, lockID uint64) (string, error) { + lock, err := k.GetLockByID(ctx, lockID) + if err != nil { + return "", err + } + + rewardReceiverAddress := lock.RewardReceiverAddress + if rewardReceiverAddress == "" { + rewardReceiverAddress = lock.Owner + } + + return rewardReceiverAddress, nil +} + // GetPeriodLocks Returns the period locks on pool. func (k Keeper) GetPeriodLocks(ctx sdk.Context) ([]types.PeriodLock, error) { unlockings := k.getLocksFromIterator(ctx, k.LockIterator(ctx, true)) diff --git a/x/lockup/types/query.pb.go b/x/lockup/types/query.pb.go index 37e4508ee70..d1cf3711de1 100644 --- a/x/lockup/types/query.pb.go +++ b/x/lockup/types/query.pb.go @@ -1036,6 +1036,94 @@ func (m *LockedResponse) GetLock() *PeriodLock { return nil } +type LockRewardReceiverRequest struct { + LockId uint64 `protobuf:"varint,1,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"` +} + +func (m *LockRewardReceiverRequest) Reset() { *m = LockRewardReceiverRequest{} } +func (m *LockRewardReceiverRequest) String() string { return proto.CompactTextString(m) } +func (*LockRewardReceiverRequest) ProtoMessage() {} +func (*LockRewardReceiverRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e906fda01cffd91a, []int{22} +} +func (m *LockRewardReceiverRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LockRewardReceiverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LockRewardReceiverRequest.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 *LockRewardReceiverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LockRewardReceiverRequest.Merge(m, src) +} +func (m *LockRewardReceiverRequest) XXX_Size() int { + return m.Size() +} +func (m *LockRewardReceiverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LockRewardReceiverRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LockRewardReceiverRequest proto.InternalMessageInfo + +func (m *LockRewardReceiverRequest) GetLockId() uint64 { + if m != nil { + return m.LockId + } + return 0 +} + +type LockRewardReceiverResponse struct { + RewardReceiver string `protobuf:"bytes,1,opt,name=reward_receiver,json=rewardReceiver,proto3" json:"reward_receiver,omitempty"` +} + +func (m *LockRewardReceiverResponse) Reset() { *m = LockRewardReceiverResponse{} } +func (m *LockRewardReceiverResponse) String() string { return proto.CompactTextString(m) } +func (*LockRewardReceiverResponse) ProtoMessage() {} +func (*LockRewardReceiverResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e906fda01cffd91a, []int{23} +} +func (m *LockRewardReceiverResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LockRewardReceiverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LockRewardReceiverResponse.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 *LockRewardReceiverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LockRewardReceiverResponse.Merge(m, src) +} +func (m *LockRewardReceiverResponse) XXX_Size() int { + return m.Size() +} +func (m *LockRewardReceiverResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LockRewardReceiverResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LockRewardReceiverResponse proto.InternalMessageInfo + +func (m *LockRewardReceiverResponse) GetRewardReceiver() string { + if m != nil { + return m.RewardReceiver + } + return "" +} + type NextLockIDRequest struct { } @@ -1043,7 +1131,7 @@ func (m *NextLockIDRequest) Reset() { *m = NextLockIDRequest{} } func (m *NextLockIDRequest) String() string { return proto.CompactTextString(m) } func (*NextLockIDRequest) ProtoMessage() {} func (*NextLockIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{22} + return fileDescriptor_e906fda01cffd91a, []int{24} } func (m *NextLockIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1080,7 +1168,7 @@ func (m *NextLockIDResponse) Reset() { *m = NextLockIDResponse{} } func (m *NextLockIDResponse) String() string { return proto.CompactTextString(m) } func (*NextLockIDResponse) ProtoMessage() {} func (*NextLockIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{23} + return fileDescriptor_e906fda01cffd91a, []int{25} } func (m *NextLockIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1125,7 +1213,7 @@ func (m *SyntheticLockupsByLockupIDRequest) Reset() { *m = SyntheticLock func (m *SyntheticLockupsByLockupIDRequest) String() string { return proto.CompactTextString(m) } func (*SyntheticLockupsByLockupIDRequest) ProtoMessage() {} func (*SyntheticLockupsByLockupIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{24} + return fileDescriptor_e906fda01cffd91a, []int{26} } func (m *SyntheticLockupsByLockupIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1170,7 +1258,7 @@ func (m *SyntheticLockupsByLockupIDResponse) Reset() { *m = SyntheticLoc func (m *SyntheticLockupsByLockupIDResponse) String() string { return proto.CompactTextString(m) } func (*SyntheticLockupsByLockupIDResponse) ProtoMessage() {} func (*SyntheticLockupsByLockupIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{25} + return fileDescriptor_e906fda01cffd91a, []int{27} } func (m *SyntheticLockupsByLockupIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1214,7 +1302,7 @@ func (m *SyntheticLockupByLockupIDRequest) Reset() { *m = SyntheticLocku func (m *SyntheticLockupByLockupIDRequest) String() string { return proto.CompactTextString(m) } func (*SyntheticLockupByLockupIDRequest) ProtoMessage() {} func (*SyntheticLockupByLockupIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{26} + return fileDescriptor_e906fda01cffd91a, []int{28} } func (m *SyntheticLockupByLockupIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1258,7 +1346,7 @@ func (m *SyntheticLockupByLockupIDResponse) Reset() { *m = SyntheticLock func (m *SyntheticLockupByLockupIDResponse) String() string { return proto.CompactTextString(m) } func (*SyntheticLockupByLockupIDResponse) ProtoMessage() {} func (*SyntheticLockupByLockupIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{27} + return fileDescriptor_e906fda01cffd91a, []int{29} } func (m *SyntheticLockupByLockupIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1303,7 +1391,7 @@ func (m *AccountLockedLongerDurationRequest) Reset() { *m = AccountLocke func (m *AccountLockedLongerDurationRequest) String() string { return proto.CompactTextString(m) } func (*AccountLockedLongerDurationRequest) ProtoMessage() {} func (*AccountLockedLongerDurationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{28} + return fileDescriptor_e906fda01cffd91a, []int{30} } func (m *AccountLockedLongerDurationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1354,7 +1442,7 @@ func (m *AccountLockedLongerDurationResponse) Reset() { *m = AccountLock func (m *AccountLockedLongerDurationResponse) String() string { return proto.CompactTextString(m) } func (*AccountLockedLongerDurationResponse) ProtoMessage() {} func (*AccountLockedLongerDurationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{29} + return fileDescriptor_e906fda01cffd91a, []int{31} } func (m *AccountLockedLongerDurationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1399,7 +1487,7 @@ func (m *AccountLockedDurationRequest) Reset() { *m = AccountLockedDurat func (m *AccountLockedDurationRequest) String() string { return proto.CompactTextString(m) } func (*AccountLockedDurationRequest) ProtoMessage() {} func (*AccountLockedDurationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{30} + return fileDescriptor_e906fda01cffd91a, []int{32} } func (m *AccountLockedDurationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1450,7 +1538,7 @@ func (m *AccountLockedDurationResponse) Reset() { *m = AccountLockedDura func (m *AccountLockedDurationResponse) String() string { return proto.CompactTextString(m) } func (*AccountLockedDurationResponse) ProtoMessage() {} func (*AccountLockedDurationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{31} + return fileDescriptor_e906fda01cffd91a, []int{33} } func (m *AccountLockedDurationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1499,7 +1587,7 @@ func (m *AccountLockedLongerDurationNotUnlockingOnlyRequest) String() string { } func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) ProtoMessage() {} func (*AccountLockedLongerDurationNotUnlockingOnlyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{32} + return fileDescriptor_e906fda01cffd91a, []int{34} } func (m *AccountLockedLongerDurationNotUnlockingOnlyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1554,7 +1642,7 @@ func (m *AccountLockedLongerDurationNotUnlockingOnlyResponse) String() string { } func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) ProtoMessage() {} func (*AccountLockedLongerDurationNotUnlockingOnlyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{33} + return fileDescriptor_e906fda01cffd91a, []int{35} } func (m *AccountLockedLongerDurationNotUnlockingOnlyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1602,7 +1690,7 @@ func (m *AccountLockedLongerDurationDenomRequest) Reset() { func (m *AccountLockedLongerDurationDenomRequest) String() string { return proto.CompactTextString(m) } func (*AccountLockedLongerDurationDenomRequest) ProtoMessage() {} func (*AccountLockedLongerDurationDenomRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{34} + return fileDescriptor_e906fda01cffd91a, []int{36} } func (m *AccountLockedLongerDurationDenomRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1662,7 +1750,7 @@ func (m *AccountLockedLongerDurationDenomResponse) Reset() { func (m *AccountLockedLongerDurationDenomResponse) String() string { return proto.CompactTextString(m) } func (*AccountLockedLongerDurationDenomResponse) ProtoMessage() {} func (*AccountLockedLongerDurationDenomResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{35} + return fileDescriptor_e906fda01cffd91a, []int{37} } func (m *AccountLockedLongerDurationDenomResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1705,7 +1793,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{36} + return fileDescriptor_e906fda01cffd91a, []int{38} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1742,7 +1830,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e906fda01cffd91a, []int{37} + return fileDescriptor_e906fda01cffd91a, []int{39} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1801,6 +1889,8 @@ func init() { proto.RegisterType((*LockedDenomResponse)(nil), "osmosis.lockup.LockedDenomResponse") proto.RegisterType((*LockedRequest)(nil), "osmosis.lockup.LockedRequest") proto.RegisterType((*LockedResponse)(nil), "osmosis.lockup.LockedResponse") + proto.RegisterType((*LockRewardReceiverRequest)(nil), "osmosis.lockup.LockRewardReceiverRequest") + proto.RegisterType((*LockRewardReceiverResponse)(nil), "osmosis.lockup.LockRewardReceiverResponse") proto.RegisterType((*NextLockIDRequest)(nil), "osmosis.lockup.NextLockIDRequest") proto.RegisterType((*NextLockIDResponse)(nil), "osmosis.lockup.NextLockIDResponse") proto.RegisterType((*SyntheticLockupsByLockupIDRequest)(nil), "osmosis.lockup.SyntheticLockupsByLockupIDRequest") @@ -1822,107 +1912,112 @@ func init() { func init() { proto.RegisterFile("osmosis/lockup/query.proto", fileDescriptor_e906fda01cffd91a) } var fileDescriptor_e906fda01cffd91a = []byte{ - // 1599 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x73, 0x14, 0x45, - 0x1b, 0x4f, 0x07, 0x92, 0xf7, 0xe5, 0xe1, 0x4d, 0xe0, 0x6d, 0x02, 0x26, 0x13, 0xd8, 0x0d, 0x0d, - 0xc4, 0xa8, 0xc9, 0x0c, 0x09, 0x08, 0x88, 0x7c, 0x2e, 0x11, 0x2b, 0xb8, 0x22, 0x2c, 0x28, 0xe5, - 0x57, 0x6d, 0xcd, 0xee, 0x0e, 0xcb, 0x14, 0xbb, 0xd3, 0xcb, 0xce, 0x2c, 0xb2, 0x52, 0x48, 0x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1, 0x95, 0x92, - 0x9b, 0x20, 0x85, 0x81, 0xac, 0x9c, 0x8a, 0xcf, 0x91, 0x3b, 0x26, 0x9c, 0xc1, 0x19, 0xd5, 0xb4, - 0xce, 0xeb, 0x55, 0xad, 0x43, 0x25, 0xf8, 0x35, 0x58, 0xe7, 0xee, 0x23, 0xa3, 0xfd, 0x13, 0x68, - 0x6a, 0xfd, 0x9c, 0x24, 0xf3, 0x8d, 0x44, 0x76, 0x36, 0x12, 0xf9, 0xbc, 0x13, 0x91, 0xd9, 0x6a, - 0x13, 0x7e, 0xb4, 0x98, 0xde, 0xc8, 0xb1, 0xdc, 0xae, 0xe4, 0xce, 0x83, 0x34, 0xca, 0x2d, 0x43, - 0x91, 0x0b, 0xee, 0x50, 0xfb, 0xf9, 0x89, 0x22, 0xed, 0x83, 0x01, 0x7b, 0x0a, 0x38, 0x45, 0x92, - 0x64, 0xef, 0x16, 0x2a, 0x9f, 0xd1, 0xea, 0x3a, 0x2d, 0xd9, 0x9d, 0x33, 0x6b, 0xed, 0xa4, 0x39, - 0x1e, 0x4e, 0xbe, 0x45, 0x30, 0x1d, 0x8a, 0x7c, 0x9a, 0x2e, 0xcf, 0xaa, 0x57, 0x8c, 0x4a, 0x73, - 0xb5, 0x54, 0xa2, 0x0c, 0x33, 0x09, 0xf9, 0xf6, 0x58, 0x99, 0xaf, 0x10, 0x4c, 0x78, 0x96, 0x97, - 0x56, 0xca, 0x68, 0x17, 0x69, 0x5d, 0x5b, 0x4d, 0xf3, 0xe2, 0x4d, 0xd8, 0x1e, 0xc3, 0xb1, 0xc7, - 0x0a, 0xdc, 0x45, 0x2e, 0xba, 0xb7, 0xd6, 0xf3, 0x9a, 0x41, 0xab, 0xab, 0xa4, 0x04, 0x78, 0x04, - 0x06, 0x4a, 0x36, 0x9f, 0xd1, 0x35, 0x76, 0xfe, 0x1c, 0x7f, 0x20, 0x6f, 0x01, 0x89, 0xa3, 0xde, - 0x63, 0x65, 0xde, 0x03, 0xcc, 0x61, 0x3d, 0x95, 0x70, 0x99, 0xa0, 0x16, 0x26, 0x38, 0x07, 0xff, - 0x75, 0x6e, 0x0e, 0x42, 0xf6, 0x58, 0x40, 0xf6, 0xbc, 0x08, 0xc8, 0x8c, 0x0b, 0xd5, 0x1b, 0xb8, - 0x6a, 0xa7, 0x23, 0xf9, 0xd4, 0x16, 0xed, 0xe2, 0x10, 0x03, 0x36, 0x79, 0xf2, 0x0b, 0x39, 0x17, - 0x60, 0x50, 0x65, 0xa7, 0xb3, 0x18, 0x8b, 0xa3, 0x36, 0xda, 0x1f, 0x8b, 0xe9, 0xc9, 0x04, 0xfb, - 0xe1, 0x82, 0x61, 0x3d, 0x5a, 0x4c, 0x0f, 0xf1, 0xbc, 0x1c, 0x85, 0xe4, 0x04, 0x1c, 0x99, 0x82, - 0x21, 0x9e, 0xcf, 0x91, 0xfa, 0x04, 0xfc, 0xc7, 0xae, 0x44, 0x5e, 0x2f, 0xb1, 0x54, 0x6b, 0x73, - 0x83, 0xf6, 0xe3, 0x42, 0x89, 0x1c, 0x83, 0x61, 0x27, 0x52, 0x90, 0x92, 0x61, 0xad, 0xdd, 0xc6, - 0xe2, 0x62, 0x4b, 0x9c, 0x63, 0x71, 0x64, 0x13, 0xfc, 0xff, 0xb4, 0x76, 0x8d, 0x0d, 0xdb, 0xc2, - 0xbc, 0x73, 0x07, 0x99, 0x01, 0xdc, 0xfa, 0x52, 0x40, 0xc7, 0xb0, 0xd8, 0x7e, 0xae, 0x69, 0x58, - 0x97, 0x34, 0x4b, 0x2f, 0x66, 0x59, 0x1e, 0x33, 0xd3, 0xe4, 0x7f, 0x5c, 0xcc, 0xc8, 0xde, 0x07, - 0xfb, 0x47, 0x11, 0xb9, 0x0a, 0x24, 0x0e, 0x41, 0x10, 0xc8, 0xc2, 0x06, 0xd3, 0x89, 0xca, 0xb7, - 0xce, 0xa4, 0x6d, 0x7e, 0x99, 0x1e, 0x30, 0x31, 0x99, 0x86, 0xcd, 0xd6, 0x97, 0x26,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0, 0x04, 0x4e, 0x45, 0x11, 0xe4, 0x7e, 0x2e, 0x93, 0xbd, 0xf7, 0x30, - 0x85, 0xee, 0x3f, 0x4c, 0xa1, 0x3f, 0x1f, 0xa6, 0xd0, 0x9d, 0xa5, 0x54, 0xdf, 0xfd, 0xa5, 0x54, - 0xdf, 0xef, 0x4b, 0xa9, 0xbe, 0x37, 0xe6, 0x5a, 0xbe, 0x70, 0x0a, 0x8c, 0x99, 0x8a, 0x5a, 0x30, - 0x5d, 0xc0, 0xab, 0xb3, 0xcf, 0x2a, 0xd7, 0x1c, 0x58, 0xf6, 0xc5, 0xb3, 0x30, 0xc8, 0x4c, 0xf3, - 0x9e, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x97, 0x7f, 0x32, 0x8a, 0x1e, 0x00, 0x00, + // 1676 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcb, 0x6f, 0x14, 0x47, + 0x1a, 0x77, 0x19, 0xec, 0x5d, 0x3e, 0xd6, 0x86, 0x2d, 0x0c, 0x6b, 0xb7, 0xcd, 0x8c, 0x29, 0xc0, + 0x78, 0x77, 0xed, 0x6e, 0x6c, 0xbc, 0x86, 0x65, 0x79, 0x0e, 0x86, 0x95, 0x89, 0x43, 0x60, 0x20, + 0x41, 0x79, 0x69, 0xd4, 0x33, 0x53, 0x0c, 0x2d, 0x66, 0xba, 0x87, 0xe9, 0x1e, 0xc3, 0x04, 0x11, + 0x14, 0xc8, 0x21, 0x87, 0x1c, 0x88, 0x72, 0x89, 0x72, 0x88, 0x92, 0xdc, 0x92, 0x48, 0x51, 0x2e, + 0x39, 0xa0, 0xdc, 0x13, 0x94, 0x43, 0x84, 0x94, 0x4b, 0x94, 0x83, 0x89, 0x70, 0xfe, 0x02, 0x4e, + 0x91, 0x72, 0x89, 0xba, 0xaa, 0xba, 0x3d, 0xfd, 0x9c, 0x1e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0c, 0x4d, 0xcf, 0xec, 0x7f, 0xb8, 0x94, 0xee, 0xfa, 0xfc, 0x71, 0x7a, 0xbc, 0xa4, 0x59, 0x57, + 0xeb, 0x79, 0xb9, 0x60, 0x54, 0x14, 0xd1, 0x24, 0xfe, 0x67, 0xd2, 0x2c, 0x5e, 0x53, 0xac, 0x46, + 0x95, 0x9a, 0x2c, 0xc0, 0xcc, 0xf2, 0xcc, 0x64, 0x18, 0x86, 0x78, 0xed, 0x05, 0xa3, 0x70, 0x8d, + 0x16, 0x4f, 0x56, 0x8c, 0xba, 0x6e, 0x39, 0xc0, 0xee, 0x80, 0x14, 0x66, 0x5c, 0x3b, 0x74, 0xff, + 0x87, 0x9d, 0x27, 0x0b, 0x05, 0xbb, 0xea, 0x8b, 0xba, 0xdd, 0x51, 0x35, 0x5f, 0xa6, 0xdc, 0x81, + 0x23, 0xc4, 0x63, 0xd0, 0x63, 0xdc, 0xd0, 0x69, 0x6d, 0x10, 0x8d, 0xa2, 0xf1, 0x4d, 0x99, 0xad, + 0x4f, 0x97, 0xd2, 0x7f, 0x6b, 0xa8, 0x95, 0xf2, 0x61, 0xc2, 0x3e, 0x93, 0x2c, 0x37, 0x93, 0x7b, + 0x08, 0x52, 0x51, 0x99, 0xd6, 0x8e, 0xce, 0x19, 0x18, 0xf1, 0x80, 0xd0, 0xf4, 0xd2, 0xaa, 0xd8, + 0xdc, 0x45, 0xbe, 0xbe, 0xac, 0x24, 0x5a, 0x3b, 0x32, 0xa7, 0x60, 0x48, 0x60, 0xe0, 0xb3, 0x63, + 0x55, 0x4c, 0xee, 0x80, 0x14, 0x96, 0x64, 0xed, 0x58, 0x7c, 0x84, 0xdc, 0x31, 0xe1, 0x08, 0xce, + 0xab, 0xa6, 0x75, 0x49, 0xab, 0xd0, 0x36, 0x99, 0xe0, 0x97, 0x60, 0x93, 0xbb, 0x8f, 0x0c, 0x76, + 0x8f, 0xa2, 0xf1, 0xcd, 0xd3, 0x92, 0xcc, 0x37, 0x12, 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0x5d, 0x65, 0xb4, 0xe0, 0x99, 0x65, 0x3c, 0x17, 0xf0, 0xd9, 0x36, 0x79, 0xe6, 0x74, 0xa3, 0x79, + 0x7e, 0x19, 0x7a, 0xb9, 0xe1, 0x52, 0xff, 0x16, 0xb9, 0x4f, 0x45, 0x41, 0xad, 0x8a, 0xf7, 0xc7, + 0x4e, 0xf6, 0x10, 0xe9, 0x2d, 0x4d, 0xb5, 0x11, 0x21, 0x68, 0xcd, 0x31, 0x5a, 0xc7, 0xf0, 0x91, + 0x64, 0x4b, 0x84, 0x16, 0x73, 0x79, 0x96, 0x24, 0xe7, 0x19, 0xc3, 0xef, 0x91, 0xef, 0xb9, 0xca, + 0xa3, 0x2d, 0xf1, 0x54, 0xa2, 0xd6, 0x37, 0x9f, 0xc1, 0xd2, 0x74, 0x3b, 0x21, 0x82, 0xcb, 0x69, + 0xc6, 0xe5, 0x38, 0x3e, 0xda, 0xee, 0x10, 0xb1, 0x43, 0xd6, 0x25, 0xf3, 0x36, 0x82, 0xcd, 0x4d, + 0x52, 0x12, 0x13, 0x3f, 0x94, 0xa0, 0xce, 0x95, 0x76, 0xc7, 0xfa, 0x08, 0x7c, 0x13, 0x0c, 0xdf, + 0x18, 0xde, 0x13, 0x85, 0x4f, 0xe0, 0xe2, 0x22, 0xf9, 0x1e, 0x02, 0xe0, 0x59, 0x32, 0x8d, 0xf9, + 0x39, 0xbc, 0x33, 0xbc, 0x82, 0x03, 0x20, 0x15, 0x65, 0x16, 0xb5, 0x67, 0x59, 0xed, 0xfd, 0x58, + 0x6e, 0x51, 0x3b, 0xdf, 0xc8, 0x69, 0x45, 0xe5, 0x96, 0xd0, 0x33, 0xb7, 0xf1, 0x17, 0x88, 0xeb, + 0x7a, 0xaf, 0x8a, 0x0c, 0xee, 0x80, 0x91, 0xfa, 0x34, 0xb8, 0x03, 0x46, 0x8b, 0x52, 0x72, 0x8c, + 0xa1, 0x3c, 0x84, 0x67, 0xe3, 0x50, 0xe6, 0x7c, 0xba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x39, 0xa0, 0x0e, + 0xb5, 0x1f, 0x28, 0x28, 0x2f, 0x30, 0xca, 0x67, 0xf0, 0xdc, 0x2a, 0x29, 0x7b, 0x0f, 0xd7, 0x06, + 0xf4, 0x72, 0x69, 0x18, 0x3c, 0x56, 0x83, 0xea, 0x33, 0x78, 0xac, 0x86, 0x68, 0x51, 0x32, 0xc6, + 0x00, 0x8e, 0xe2, 0x54, 0x14, 0x40, 0xae, 0x3e, 0x33, 0x0b, 0x0f, 0x9f, 0xa4, 0xd0, 0xa3, 0x27, + 0x29, 0xf4, 0xcb, 0x93, 0x14, 0xba, 0xbf, 0x9c, 0xea, 0x7a, 0xb4, 0x9c, 0xea, 0xfa, 0x69, 0x39, + 0xd5, 0xf5, 0xca, 0x74, 0xd3, 0x63, 0xb0, 0xc8, 0x31, 0x59, 0x56, 0xf3, 0xa6, 0x9b, 0x70, 0x71, + 0xea, 0x3f, 0xca, 0x4d, 0x27, 0x2d, 0x7b, 0x1c, 0xce, 0xf7, 0x32, 0x89, 0x7f, 0xe0, 0x8f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa2, 0xf7, 0x38, 0x3b, 0xb5, 0x1f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1960,6 +2055,8 @@ type QueryClient interface { LockedDenom(ctx context.Context, in *LockedDenomRequest, opts ...grpc.CallOption) (*LockedDenomResponse, error) // Returns lock record by id LockedByID(ctx context.Context, in *LockedRequest, opts ...grpc.CallOption) (*LockedResponse, error) + // Returns lock record by id + LockRewardReceiver(ctx context.Context, in *LockRewardReceiverRequest, opts ...grpc.CallOption) (*LockRewardReceiverResponse, error) // Returns next lock ID NextLockID(ctx context.Context, in *NextLockIDRequest, opts ...grpc.CallOption) (*NextLockIDResponse, error) // Returns synthetic lockup by native lockup id @@ -2087,6 +2184,15 @@ func (c *queryClient) LockedByID(ctx context.Context, in *LockedRequest, opts .. return out, nil } +func (c *queryClient) LockRewardReceiver(ctx context.Context, in *LockRewardReceiverRequest, opts ...grpc.CallOption) (*LockRewardReceiverResponse, error) { + out := new(LockRewardReceiverResponse) + err := c.cc.Invoke(ctx, "/osmosis.lockup.Query/LockRewardReceiver", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) NextLockID(ctx context.Context, in *NextLockIDRequest, opts ...grpc.CallOption) (*NextLockIDResponse, error) { out := new(NextLockIDResponse) err := c.cc.Invoke(ctx, "/osmosis.lockup.Query/NextLockID", in, out, opts...) @@ -2185,6 +2291,8 @@ type QueryServer interface { LockedDenom(context.Context, *LockedDenomRequest) (*LockedDenomResponse, error) // Returns lock record by id LockedByID(context.Context, *LockedRequest) (*LockedResponse, error) + // Returns lock record by id + LockRewardReceiver(context.Context, *LockRewardReceiverRequest) (*LockRewardReceiverResponse, error) // Returns next lock ID NextLockID(context.Context, *NextLockIDRequest) (*NextLockIDResponse, error) // Returns synthetic lockup by native lockup id @@ -2242,6 +2350,9 @@ func (*UnimplementedQueryServer) LockedDenom(ctx context.Context, req *LockedDen func (*UnimplementedQueryServer) LockedByID(ctx context.Context, req *LockedRequest) (*LockedResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LockedByID not implemented") } +func (*UnimplementedQueryServer) LockRewardReceiver(ctx context.Context, req *LockRewardReceiverRequest) (*LockRewardReceiverResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LockRewardReceiver not implemented") +} func (*UnimplementedQueryServer) NextLockID(ctx context.Context, req *NextLockIDRequest) (*NextLockIDResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NextLockID not implemented") } @@ -2469,6 +2580,24 @@ func _Query_LockedByID_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Query_LockRewardReceiver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LockRewardReceiverRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).LockRewardReceiver(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/osmosis.lockup.Query/LockRewardReceiver", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).LockRewardReceiver(ctx, req.(*LockRewardReceiverRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_NextLockID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NextLockIDRequest) if err := dec(in); err != nil { @@ -2661,6 +2790,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "LockedByID", Handler: _Query_LockedByID_Handler, }, + { + MethodName: "LockRewardReceiver", + Handler: _Query_LockRewardReceiver_Handler, + }, { MethodName: "NextLockID", Handler: _Query_NextLockID_Handler, @@ -3460,6 +3593,64 @@ func (m *LockedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *LockRewardReceiverRequest) 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 *LockRewardReceiverRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LockRewardReceiverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LockId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.LockId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LockRewardReceiverResponse) 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 *LockRewardReceiverResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LockRewardReceiverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RewardReceiver) > 0 { + i -= len(m.RewardReceiver) + copy(dAtA[i:], m.RewardReceiver) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RewardReceiver))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *NextLockIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4318,6 +4509,31 @@ func (m *LockedResponse) Size() (n int) { return n } +func (m *LockRewardReceiverRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LockId != 0 { + n += 1 + sovQuery(uint64(m.LockId)) + } + return n +} + +func (m *LockRewardReceiverResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RewardReceiver) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func (m *NextLockIDRequest) Size() (n int) { if m == nil { return 0 @@ -6487,6 +6703,157 @@ func (m *LockedResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *LockRewardReceiverRequest) 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: LockRewardReceiverRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LockRewardReceiverRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LockId", wireType) + } + m.LockId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LockId |= uint64(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 *LockRewardReceiverResponse) 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: LockRewardReceiverResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LockRewardReceiverResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RewardReceiver", 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 + } + m.RewardReceiver = string(dAtA[iNdEx:postIndex]) + 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 *NextLockIDRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/lockup/types/query.pb.gw.go b/x/lockup/types/query.pb.gw.go index 715754ac318..965932afee3 100644 --- a/x/lockup/types/query.pb.gw.go +++ b/x/lockup/types/query.pb.gw.go @@ -609,6 +609,60 @@ func local_request_Query_LockedByID_0(ctx context.Context, marshaler runtime.Mar } +func request_Query_LockRewardReceiver_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LockRewardReceiverRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["lock_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "lock_id") + } + + protoReq.LockId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "lock_id", err) + } + + msg, err := client.LockRewardReceiver(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_LockRewardReceiver_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LockRewardReceiverRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["lock_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "lock_id") + } + + protoReq.LockId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "lock_id", err) + } + + msg, err := server.LockRewardReceiver(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_NextLockID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq NextLockIDRequest var metadata runtime.ServerMetadata @@ -1300,6 +1354,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_LockRewardReceiver_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_LockRewardReceiver_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_LockRewardReceiver_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_NextLockID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1745,6 +1822,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_LockRewardReceiver_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_LockRewardReceiver_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_LockRewardReceiver_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_NextLockID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1931,6 +2028,8 @@ var ( pattern_Query_LockedByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "lockup", "v1beta1", "locked_by_id", "lock_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LockRewardReceiver_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "lockup", "v1beta1", "lock_reward_receiver", "lock_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_NextLockID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"osmosis", "lockup", "v1beta1", "next_lock_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_SyntheticLockupsByLockupID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"osmosis", "lockup", "v1beta1", "synthetic_lockups_by_lock_id", "lock_id"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1971,6 +2070,8 @@ var ( forward_Query_LockedByID_0 = runtime.ForwardResponseMessage + forward_Query_LockRewardReceiver_0 = runtime.ForwardResponseMessage + forward_Query_NextLockID_0 = runtime.ForwardResponseMessage forward_Query_SyntheticLockupsByLockupID_0 = runtime.ForwardResponseMessage