From b4d674d12c19a326dd3afcd00717f92dc40ec9cc Mon Sep 17 00:00:00 2001 From: "Matt, Park" <45252226+mattverse@users.noreply.github.com> Date: Fri, 25 Feb 2022 20:52:47 -0800 Subject: [PATCH] Add query for undelegating time (#988) (cherry picked from commit 237b6f06200ff19e0348e2d88e592ae1c81eaf0b) --- proto/osmosis/superfluid/query.proto | 3 + x/superfluid/keeper/grpc_query.go | 3 + x/superfluid/types/query.pb.go | 252 +++++++++++++++++---------- 3 files changed, 165 insertions(+), 93 deletions(-) diff --git a/proto/osmosis/superfluid/query.proto b/proto/osmosis/superfluid/query.proto index 9101157cead..cc2a3541e25 100644 --- a/proto/osmosis/superfluid/query.proto +++ b/proto/osmosis/superfluid/query.proto @@ -8,6 +8,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; import "osmosis/superfluid/superfluid.proto"; import "osmosis/superfluid/params.proto"; +import "osmosis/lockup/lock.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; option go_package = "github.com/osmosis-labs/osmosis/v7/x/superfluid/types"; @@ -200,6 +201,8 @@ message SuperfluidUndelegationsByDelegatorResponse { (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; + repeated osmosis.lockup.SyntheticLock synthetic_locks = 3 + [ (gogoproto.nullable) = false ]; } message SuperfluidDelegationsByValidatorDenomRequest { diff --git a/x/superfluid/keeper/grpc_query.go b/x/superfluid/keeper/grpc_query.go index 50a6dab2ab5..70634fd02c9 100644 --- a/x/superfluid/keeper/grpc_query.go +++ b/x/superfluid/keeper/grpc_query.go @@ -7,6 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + lockuptypes "github.com/osmosis-labs/osmosis/v7/x/lockup/types" "github.com/osmosis-labs/osmosis/v7/x/superfluid/types" ) @@ -177,6 +178,7 @@ func (k Keeper) SuperfluidUndelegationsByDelegator(goCtx context.Context, req *t res := types.SuperfluidUndelegationsByDelegatorResponse{ SuperfluidDelegationRecords: []types.SuperfluidDelegationRecord{}, TotalUndelegatedCoins: sdk.NewCoins(), + SyntheticLocks: []lockuptypes.SyntheticLock{}, } syntheticLocks := k.lk.GetAllSyntheticLockupsByAddr(ctx, delAddr) @@ -204,6 +206,7 @@ func (k Keeper) SuperfluidUndelegationsByDelegator(goCtx context.Context, req *t DelegationAmount: lockedCoin, }, ) + res.SyntheticLocks = append(res.SyntheticLocks, syntheticLock) res.TotalUndelegatedCoins = res.TotalUndelegatedCoins.Add(lockedCoin) } return &res, nil diff --git a/x/superfluid/types/query.pb.go b/x/superfluid/types/query.pb.go index 8dba5657c65..bf3262d2476 100644 --- a/x/superfluid/types/query.pb.go +++ b/x/superfluid/types/query.pb.go @@ -12,6 +12,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" + types1 "github.com/osmosis-labs/osmosis/v7/x/lockup/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -959,6 +960,7 @@ func (m *SuperfluidUndelegationsByDelegatorRequest) GetDenom() string { type SuperfluidUndelegationsByDelegatorResponse struct { SuperfluidDelegationRecords []SuperfluidDelegationRecord `protobuf:"bytes,1,rep,name=superfluid_delegation_records,json=superfluidDelegationRecords,proto3" json:"superfluid_delegation_records"` TotalUndelegatedCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=total_undelegated_coins,json=totalUndelegatedCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_undelegated_coins"` + SyntheticLocks []types1.SyntheticLock `protobuf:"bytes,3,rep,name=synthetic_locks,json=syntheticLocks,proto3" json:"synthetic_locks"` } func (m *SuperfluidUndelegationsByDelegatorResponse) Reset() { @@ -1012,6 +1014,13 @@ func (m *SuperfluidUndelegationsByDelegatorResponse) GetTotalUndelegatedCoins() return nil } +func (m *SuperfluidUndelegationsByDelegatorResponse) GetSyntheticLocks() []types1.SyntheticLock { + if m != nil { + return m.SyntheticLocks + } + return nil +} + type SuperfluidDelegationsByValidatorDenomRequest struct { ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` @@ -1251,99 +1260,102 @@ func init() { func init() { proto.RegisterFile("osmosis/superfluid/query.proto", fileDescriptor_e3d9448e4ed3943f) } var fileDescriptor_e3d9448e4ed3943f = []byte{ - // 1463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x8f, 0x14, 0xc5, - 0x1b, 0xde, 0x1a, 0x60, 0x17, 0x5e, 0xf2, 0x83, 0xa5, 0xe0, 0x27, 0x4b, 0x8b, 0xb3, 0xd0, 0xcb, - 0xc7, 0xb8, 0x40, 0xb7, 0x2c, 0x2e, 0xac, 0x28, 0x84, 0x59, 0x16, 0x70, 0x0d, 0x08, 0x8e, 0xec, - 0x92, 0xf8, 0x91, 0x4e, 0xcd, 0x74, 0x31, 0x74, 0xe8, 0x8f, 0xd9, 0xfe, 0x58, 0x99, 0x10, 0x62, - 0xc4, 0x8b, 0xc4, 0x8b, 0x09, 0xff, 0x80, 0x17, 0x12, 0x35, 0xc6, 0xbf, 0xc0, 0x8b, 0xf1, 0x42, - 0x62, 0x4c, 0x48, 0xbc, 0x18, 0x0f, 0x60, 0xc0, 0xab, 0x17, 0xaf, 0x5e, 0x4c, 0x57, 0x55, 0x7f, - 0xcc, 0x4e, 0x77, 0xcf, 0xcc, 0x8a, 0x70, 0xda, 0xee, 0xae, 0xf7, 0xeb, 0x79, 0xde, 0xb7, 0x6a, - 0x9f, 0x1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 0x21, 0x2a, 0xc2, 0x6b, 0x45, - 0x07, 0x42, 0x06, 0x61, 0xb3, 0x17, 0xef, 0x3f, 0x2e, 0xa3, 0x07, 0x8f, 0xcb, 0xe8, 0xf7, 0xc7, - 0x65, 0xf4, 0xc5, 0x93, 0xf2, 0xd0, 0x83, 0x27, 0xe5, 0xa1, 0x5f, 0x9f, 0x94, 0x87, 0xde, 0x9b, - 0x4e, 0x09, 0x40, 0x91, 0xf9, 0x90, 0x49, 0xea, 0x5e, 0x5c, 0xc6, 0xf2, 0x31, 0xf5, 0x46, 0xba, - 0x16, 0xa6, 0x09, 0xeb, 0xc3, 0xec, 0x07, 0xdf, 0x23, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x1d, - 0xeb, 0xd7, 0x43, 0x2d, 0x17, 0x00, 0x00, + // 1512 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x8f, 0x14, 0xd5, + 0x17, 0x9f, 0xea, 0x81, 0x19, 0x38, 0xe4, 0x0f, 0xc3, 0x85, 0xbf, 0x34, 0x25, 0xf4, 0x40, 0x0d, + 0x8f, 0x76, 0x80, 0x2a, 0x19, 0x1c, 0x18, 0x51, 0x08, 0x3d, 0x0c, 0xe0, 0x98, 0x41, 0xb0, 0x61, + 0x86, 0xc4, 0x47, 0x2a, 0xd5, 0x5d, 0x97, 0xa6, 0x42, 0x3d, 0x7a, 0xea, 0x56, 0x8d, 0x74, 0x08, + 0x31, 0xe2, 0x46, 0xe2, 0xc6, 0x84, 0x2f, 0xe0, 0x86, 0x44, 0x5d, 0xf8, 0x09, 0xdc, 0x18, 0x37, + 0x24, 0xc6, 0x84, 0xc4, 0x8d, 0x71, 0x01, 0x06, 0xdc, 0xba, 0x71, 0xa9, 0x1b, 0x53, 0xf7, 0xde, + 0x7a, 0xf4, 0x74, 0x55, 0xf5, 0xc3, 0x11, 0x56, 0x5d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xf1, 0x6d, 0x6f, 0xde, 0xbe, 0xee, 0xa4, 0x23, 0x41, 0x3b, 0x61, 0xc3, + 0x8a, 0x66, 0xaa, 0x9a, 0xae, 0xbb, 0xc5, 0x02, 0x25, 0x8c, 0xae, 0x68, 0x66, 0x45, 0xd7, 0xdd, + 0x80, 0xd4, 0xd0, 0xfc, 0x06, 0x56, 0x0d, 0xbd, 0x38, 0xbc, 0x47, 0x28, 0xaf, 0xab, 0x8e, 0xd2, + 0xf7, 0x79, 0x1d, 0x15, 0x61, 0x34, 0x90, 0xc0, 0x84, 0x14, 0xd7, 0x31, 0x21, 0xfe, 0x2a, 0xdd, + 0x80, 0x52, 0xc5, 0x34, 0x53, 0x7c, 0x08, 0x73, 0x18, 0xd4, 0x47, 0x5c, 0xcf, 0x3c, 0x1e, 0x07, + 0x64, 0x56, 0xfc, 0x72, 0x50, 0xfc, 0x32, 0xeb, 0x0f, 0xbc, 0xf8, 0xe5, 0xcb, 0x5a, 0x23, 0x2c, + 0xc3, 0x6a, 0x42, 0x52, 0xfa, 0x41, 0x80, 0xf1, 0x4c, 0x53, 0x3c, 0x17, 0xd7, 0x60, 0x83, 0xc6, + 0xcf, 0x78, 0x71, 0x4c, 0xe7, 0x17, 0x47, 0x46, 0xf0, 0x78, 0xb9, 0x44, 0xca, 0xd0, 0x85, 0x36, + 0x10, 0x05, 0x0a, 0xe2, 0x60, 0x57, 0x10, 0xcc, 0xab, 0x36, 0x14, 0xa7, 0x61, 0xe2, 0xac, 0x63, + 0xdb, 0xb8, 0xee, 0xe1, 0x34, 0xe3, 0x61, 0xd0, 0x76, 0xc0, 0x68, 0xd0, 0x2a, 0x82, 0x54, 0x08, + 0x34, 0x15, 0x23, 0xc1, 0xeb, 0xbc, 0x2e, 0x7d, 0x04, 0xfb, 0xf2, 0xe5, 0x79, 0x24, 0x2e, 0xc1, + 0x28, 0x77, 0x9e, 0x87, 0x7c, 0xb0, 0x40, 0x54, 0x43, 0x2d, 0xd2, 0x04, 0xec,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x42, 0xe4, 0x83, 0x84, 0x49, 0x7a, 0x50, 0x80, 0x72, 0x77, 0xc5, 0x1c, 0xe9, 0x2d, + 0xd8, 0x9d, 0x9a, 0x53, 0xd5, 0xa5, 0x5d, 0x32, 0xbc, 0xe6, 0x72, 0x7e, 0x75, 0xc7, 0x46, 0x58, + 0x73, 0xe5, 0xf7, 0xfb, 0x65, 0x92, 0xc9, 0x41, 0xd0, 0xc7, 0xf0, 0x7f, 0x56, 0x53, 0xdc, 0x28, + 0xd6, 0xd5, 0x60, 0xfa, 0x08, 0x32, 0xba, 0xe6, 0x21, 0xdf, 0x96, 0x2c, 0x4f, 0xac, 0xd3, 0x43, + 0xc9, 0x86, 0x57, 0x62, 0x04, 0x8b, 0xb6, 0xbe, 0x66, 0x19, 0x88, 0x6b, 0xaf, 0x90, 0xac, 0xbd, + 0xbf, 0x0a, 0x30, 0xd9, 0x8b, 0xc1, 0x17, 0x9e, 0x99, 0x4f, 0x05, 0xd8, 0xc1, 0x52, 0xe3, 0xdb, + 0xcf, 0x21, 0x39, 0xac, 0x0c, 0x16, 0x63, 0x53, 0xf4, 0x18, 0x2d, 0xc0, 0x16, 0xd2, 0xb2, 0xbd, + 0x1b, 0xd8, 0x33, 0xea, 0x6a, 0xd0, 0x9d, 0x49, 0x71, 0x98, 0x1a, 0xdf, 0x1d, 0x21, 0x66, 0x43, + 0x9f, 0x7c, 0x25, 0x64, 0x5b, 0x70, 0xea, 0x37, 0x39, 0xc0, 0xcd, 0x24, 0x79, 0x48, 0xa4, 0x65, + 0x38, 0x9c, 0x71, 0x27, 0x96, 0xc2, 0xce, 0x31, 0x17, 0x64, 0x29, 0x91, 0xef, 0xce, 0x5e, 0x23, + 0x74, 0xeb, 0x35, 0x6d, 0xf9, 0xfe, 0x5a, 0x80, 0x23, 0x3d, 0xda, 0x7c, 0xd1, 0x29, 0x97, 0xee, + 0xc0, 0xcc, 0x39, 0xe2, 0x19, 0x96, 0xe6, 0xe1, 0x0e, 0x45, 0x58,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0x98, 0x23, 0x56, 0xfe, 0x85, 0x06, 0x1e, 0x8d, + 0x8b, 0x34, 0x1a, 0x17, 0xd0, 0xb9, 0xfe, 0x6b, 0x20, 0x88, 0x45, 0x3c, 0x65, 0xb1, 0x6f, 0x4d, + 0xdf, 0x16, 0xe0, 0x68, 0xdf, 0x53, 0x13, 0x5a, 0x48, 0xc3, 0x31, 0xe8, 0xf0, 0x27, 0x5e, 0x5c, + 0x23, 0x6d, 0x3c, 0x42, 0x1f, 0xd0, 0x08, 0x2d, 0xa1, 0xab, 0x79, 0x11, 0xc2, 0x5c, 0xbd, 0x9a, + 0xd7, 0x10, 0x52, 0x02, 0x36, 0x7b, 0xe9, 0xe1, 0xd3, 0x92, 0xf0, 0xe8, 0x69, 0x49, 0xf8, 0xed, + 0x69, 0x49, 0xf8, 0xe2, 0x59, 0x69, 0xe8, 0xd1, 0xb3, 0xd2, 0xd0, 0x2f, 0xcf, 0x4a, 0x43, 0xef, + 0x4d, 0x27, 0x06, 0x40, 0x6e, 0xf9, 0x88, 0xa9, 0xd5, 0x48, 0xe4, 0xc6, 0xca, 0x09, 0xe5, 0x56, + 0xd2, 0x17, 0x3a, 0x13, 0xd6, 0x46, 0xe8, 0xe7, 0xe3, 0x63, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, + 0xe5, 0xdf, 0x57, 0x68, 0x96, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2564,6 +2576,20 @@ func (m *SuperfluidUndelegationsByDelegatorResponse) MarshalToSizedBuffer(dAtA [ _ = i var l int _ = l + if len(m.SyntheticLocks) > 0 { + for iNdEx := len(m.SyntheticLocks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SyntheticLocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } if len(m.TotalUndelegatedCoins) > 0 { for iNdEx := len(m.TotalUndelegatedCoins) - 1; iNdEx >= 0; iNdEx-- { { @@ -3055,6 +3081,12 @@ func (m *SuperfluidUndelegationsByDelegatorResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) } } + if len(m.SyntheticLocks) > 0 { + for _, e := range m.SyntheticLocks { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } return n } @@ -5015,6 +5047,40 @@ func (m *SuperfluidUndelegationsByDelegatorResponse) Unmarshal(dAtA []byte) erro return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SyntheticLocks", 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.SyntheticLocks = append(m.SyntheticLocks, types1.SyntheticLock{}) + if err := m.SyntheticLocks[len(m.SyntheticLocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:])