diff --git a/proto/babylon/btcstaking/v1/query.proto b/proto/babylon/btcstaking/v1/query.proto index e8be1055a..8e4f99569 100644 --- a/proto/babylon/btcstaking/v1/query.proto +++ b/proto/babylon/btcstaking/v1/query.proto @@ -148,8 +148,8 @@ message QueryBTCValidatorDelegationsRequest { // QueryBTCValidatorDelegationsResponse is the response type for the // Query/BTCValidatorDelegations RPC method. message QueryBTCValidatorDelegationsResponse { - // btc_delegations contains all the queried BTC delegations. - repeated BTCDelegatorDelegations btc_delegations = 1; + // btc_delegator_delegations contains all the queried BTC delegations. + repeated BTCDelegatorDelegations btc_delegator_delegations = 1; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; diff --git a/test/e2e/configurer/chain/queries_btcstaking.go b/test/e2e/configurer/chain/queries_btcstaking.go index 462a76b97..ffc00effc 100644 --- a/test/e2e/configurer/chain/queries_btcstaking.go +++ b/test/e2e/configurer/chain/queries_btcstaking.go @@ -55,7 +55,7 @@ func (n *NodeConfig) QueryBTCValidatorDelegations(valBTCPK string) []*bstypes.BT err = util.Cdc.UnmarshalJSON(bz, &resp) require.NoError(n.t, err) - return resp.BtcDelegations + return resp.BtcDelegatorDelegations } func (n *NodeConfig) QueryActivatedHeight() uint64 { diff --git a/x/btcstaking/keeper/grpc_query.go b/x/btcstaking/keeper/grpc_query.go index f63309643..aa56870dd 100644 --- a/x/btcstaking/keeper/grpc_query.go +++ b/x/btcstaking/keeper/grpc_query.go @@ -190,5 +190,5 @@ func (k Keeper) BTCValidatorDelegations(ctx context.Context, req *types.QueryBTC return nil, err } - return &types.QueryBTCValidatorDelegationsResponse{BtcDelegations: btcDels, Pagination: pageRes}, nil + return &types.QueryBTCValidatorDelegationsResponse{BtcDelegatorDelegations: btcDels, Pagination: pageRes}, nil } diff --git a/x/btcstaking/keeper/grpc_query_test.go b/x/btcstaking/keeper/grpc_query_test.go index 2d1e3bc72..958d6602b 100644 --- a/x/btcstaking/keeper/grpc_query_test.go +++ b/x/btcstaking/keeper/grpc_query_test.go @@ -361,7 +361,7 @@ func FuzzBTCValidatorDelegations(f *testing.F) { resp, err = keeper.BTCValidatorDelegations(ctx, &req) require.NoError(t, err) require.NotNil(t, resp) - for _, btcDels := range resp.BtcDelegations { + for _, btcDels := range resp.BtcDelegatorDelegations { require.Len(t, btcDels.Dels, 1) btcDel := btcDels.Dels[0] require.Equal(t, btcVal.BtcPk, btcDel.ValBtcPk) diff --git a/x/btcstaking/types/btcstaking.pb.go b/x/btcstaking/types/btcstaking.pb.go index a24cc25b8..02d939903 100644 --- a/x/btcstaking/types/btcstaking.pb.go +++ b/x/btcstaking/types/btcstaking.pb.go @@ -330,7 +330,7 @@ func (m *BTCDelegation) GetStakingTx() *StakingTx { return nil } -// BTCDelegations is a collection of BTC delegations, typically from the same delegator. +// BTCDelegatorDelegations is a collection of BTC delegations, typically from the same delegator. type BTCDelegatorDelegations struct { Dels []*BTCDelegation `protobuf:"bytes,1,rep,name=dels,proto3" json:"dels,omitempty"` } diff --git a/x/btcstaking/types/query.pb.go b/x/btcstaking/types/query.pb.go index 6c5c2973f..c842d05f9 100644 --- a/x/btcstaking/types/query.pb.go +++ b/x/btcstaking/types/query.pb.go @@ -667,8 +667,8 @@ func (m *QueryBTCValidatorDelegationsRequest) GetPagination() *query.PageRequest // QueryBTCValidatorDelegationsResponse is the response type for the // Query/BTCValidatorDelegations RPC method. type QueryBTCValidatorDelegationsResponse struct { - // btc_delegations contains all the queried BTC delegations. - BtcDelegations []*BTCDelegatorDelegations `protobuf:"bytes,1,rep,name=btc_delegations,json=btcDelegations,proto3" json:"btc_delegations,omitempty"` + // btc_delegator_delegations contains all the queried BTC delegations. + BtcDelegatorDelegations []*BTCDelegatorDelegations `protobuf:"bytes,1,rep,name=btc_delegator_delegations,json=btcDelegatorDelegations,proto3" json:"btc_delegator_delegations,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -706,9 +706,9 @@ func (m *QueryBTCValidatorDelegationsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryBTCValidatorDelegationsResponse proto.InternalMessageInfo -func (m *QueryBTCValidatorDelegationsResponse) GetBtcDelegations() []*BTCDelegatorDelegations { +func (m *QueryBTCValidatorDelegationsResponse) GetBtcDelegatorDelegations() []*BTCDelegatorDelegations { if m != nil { - return m.BtcDelegations + return m.BtcDelegatorDelegations } return nil } @@ -740,62 +740,63 @@ func init() { func init() { proto.RegisterFile("babylon/btcstaking/v1/query.proto", fileDescriptor_74d49d26f7429697) } var fileDescriptor_74d49d26f7429697 = []byte{ - // 875 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0xe3, 0x44, - 0x14, 0xce, 0x94, 0x12, 0x89, 0x17, 0x76, 0x57, 0x1a, 0x76, 0x61, 0xd7, 0xbb, 0xcd, 0x6e, 0x9d, - 0x6d, 0xd3, 0x5d, 0x84, 0xbd, 0xc9, 0x4a, 0x2b, 0xa0, 0xfc, 0x50, 0xd3, 0x42, 0xab, 0x42, 0xa5, - 0x60, 0x55, 0x54, 0xe2, 0x12, 0x8d, 0x9d, 0x91, 0x63, 0x35, 0xf5, 0xb8, 0xf1, 0xd4, 0xb4, 0x42, - 0xbd, 0x70, 0x40, 0xe2, 0x86, 0xe0, 0x4f, 0xe0, 0xc8, 0x89, 0xff, 0x01, 0x89, 0xde, 0xa8, 0x84, - 0x84, 0x38, 0x55, 0xa8, 0x45, 0xe2, 0xdf, 0x40, 0x19, 0x4f, 0x6a, 0x3b, 0xb1, 0x9d, 0x34, 0xea, - 0xde, 0x5a, 0xcf, 0xfb, 0xde, 0xfb, 0xbe, 0x6f, 0xde, 0xbc, 0x17, 0x98, 0x37, 0x89, 0x79, 0xd4, - 0x65, 0xae, 0x6e, 0x72, 0xcb, 0xe7, 0x64, 0xd7, 0x71, 0x6d, 0x3d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0xa2, 0x87, 0xf1, 0xb2, 0xfc, 0xc8, 0xa3, 0xbe, 0x59, 0x14, 0xbf, 0xc1, 0x9f, 0xff, 0x1f, 0x00, - 0x00, 0xff, 0xff, 0x33, 0x29, 0x8c, 0xc2, 0x6b, 0x0c, 0x00, 0x00, + // 882 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x5d, 0x6b, 0x23, 0x55, + 0x18, 0xce, 0xa9, 0x35, 0xe0, 0x1b, 0x77, 0x17, 0x8e, 0xbb, 0xee, 0x76, 0x76, 0x9b, 0xdd, 0x4e, + 0xb6, 0x4d, 0x77, 0xc5, 0x99, 0x4d, 0x16, 0x16, 0x75, 0xfd, 0xa0, 0x69, 0xb5, 0xa5, 0x5a, 0x88, + 0x43, 0x51, 0xf0, 0x26, 0x9c, 0x99, 0x1c, 0x26, 0x63, 0xd3, 0x39, 0xd3, 0xcc, 0xe9, 0xd8, 0x22, + 0xbd, 0xf1, 0x42, 0xf0, 0x4e, 0xf4, 0x27, 0x78, 0xe9, 0x95, 0xff, 0x41, 0xb0, 0x77, 0x16, 0x04, + 0x11, 0x84, 0x22, 0xad, 0xe0, 0xdf, 0x90, 0x9c, 0x39, 0xe9, 0xcc, 0x24, 0x33, 0x93, 0x34, 0x74, + 0xef, 0xda, 0x39, 0xef, 0xc7, 0xf3, 0x3c, 0xef, 0x57, 0x60, 0xc1, 0x24, 0xe6, 0x61, 0x97, 0xb9, + 0xba, 0xc9, 0x2d, 0x9f, 0x93, 0x1d, 0xc7, 0xb5, 0xf5, 0xa0, 0xa6, 0xef, 0xed, 0xd3, 0xde, 0xa1, + 0xe6, 0xf5, 0x18, 0x67, 0xf8, 0x96, 0x34, 0xd1, 0x22, 0x13, 0x2d, 0xa8, 0x29, 0x37, 0x6d, 0x66, + 0x33, 0x61, 0xa1, 0xf7, 0xff, 0x0a, 0x8d, 0x95, 0x7b, 0x36,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ports to suppress errors if they are not otherwise used. @@ -1587,10 +1588,10 @@ func (m *QueryBTCValidatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) i-- dAtA[i] = 0x12 } - if len(m.BtcDelegations) > 0 { - for iNdEx := len(m.BtcDelegations) - 1; iNdEx >= 0; iNdEx-- { + if len(m.BtcDelegatorDelegations) > 0 { + for iNdEx := len(m.BtcDelegatorDelegations) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.BtcDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.BtcDelegatorDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1798,8 +1799,8 @@ func (m *QueryBTCValidatorDelegationsResponse) Size() (n int) { } var l int _ = l - if len(m.BtcDelegations) > 0 { - for _, e := range m.BtcDelegations { + if len(m.BtcDelegatorDelegations) > 0 { + for _, e := range m.BtcDelegatorDelegations { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -2953,7 +2954,7 @@ func (m *QueryBTCValidatorDelegationsResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BtcDelegations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BtcDelegatorDelegations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2980,8 +2981,8 @@ func (m *QueryBTCValidatorDelegationsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BtcDelegations = append(m.BtcDelegations, &BTCDelegatorDelegations{}) - if err := m.BtcDelegations[len(m.BtcDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.BtcDelegatorDelegations = append(m.BtcDelegatorDelegations, &BTCDelegatorDelegations{}) + if err := m.BtcDelegatorDelegations[len(m.BtcDelegatorDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex