diff --git a/proto/quicksilver/interchainstaking/v1/query.proto b/proto/quicksilver/interchainstaking/v1/query.proto index 98db9f892..98dd58729 100644 --- a/proto/quicksilver/interchainstaking/v1/query.proto +++ b/proto/quicksilver/interchainstaking/v1/query.proto @@ -29,6 +29,7 @@ service Query { rpc DepositAccount(QueryDepositAccountForChainRequest) returns (QueryDepositAccountForChainResponse) { option (google.api.http).get = "/quicksilver/interchainstaking/v1/zones/{chain_id}/deposit_address"; } + // DelegatorIntent provides data on the intent of the delegator for the given // zone. rpc DelegatorIntent(QueryDelegatorIntentRequest) returns (QueryDelegatorIntentResponse) { @@ -37,6 +38,13 @@ service Query { "{delegator_address}"; } + // DelegatorIntents provides data on the intent of the delegator for all zones + rpc DelegatorIntents(QueryDelegatorIntentsRequest) returns (QueryDelegatorIntentsResponse) { + option (google.api.http).get = + "/quicksilver/interchainstaking/v1/delegator_intents/" + "{delegator_address}"; + } + // Delegations provides data on the delegations for the given zone. rpc Delegations(QueryDelegationsRequest) returns (QueryDelegationsResponse) { option (google.api.http).get = "/quicksilver/interchainstaking/v1/zones/{chain_id}/delegations"; @@ -143,6 +151,19 @@ message QueryDelegatorIntentResponse { DelegatorIntent intent = 1; } +message QueryDelegatorIntentsRequest { + string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +message DelegatorIntentsResponse { + string chain_id = 1; + DelegatorIntent intent = 2; +} + +message QueryDelegatorIntentsResponse { + repeated DelegatorIntentsResponse intents = 1; +} + message QueryDelegationsRequest { string chain_id = 1 [(gogoproto.moretags) = "yaml:\"chain_id\""]; cosmos.base.query.v1beta1.PageRequest pagination = 2; diff --git a/x/interchainstaking/keeper/grpc_query.go b/x/interchainstaking/keeper/grpc_query.go index 49d183178..8ae1a0fe6 100644 --- a/x/interchainstaking/keeper/grpc_query.go +++ b/x/interchainstaking/keeper/grpc_query.go @@ -146,6 +146,27 @@ func (k *Keeper) DelegatorIntent(c context.Context, req *types.QueryDelegatorInt return &types.QueryDelegatorIntentResponse{Intent: &intent}, nil } +// DelegatorIntents returns information about the delegation intent of the given delegator for all zones. +func (k *Keeper) DelegatorIntents(c context.Context, req *types.QueryDelegatorIntentsRequest) (*types.QueryDelegatorIntentsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + ctx := sdk.UnwrapSDKContext(c) + + intents := []*types.DelegatorIntentsResponse{} + + k.IterateZones(ctx, func(_ int64, zone *types.Zone) bool { + intent, _ := k.GetDelegatorIntent(ctx, zone, req.DelegatorAddress, false) + if intent.Intents != nil { + intents = append(intents, &types.DelegatorIntentsResponse{ChainId: zone.ChainId, Intent: &intent}) + } + return false + }) + + return &types.QueryDelegatorIntentsResponse{Intents: intents}, nil +} + func (k *Keeper) Delegations(c context.Context, req *types.QueryDelegationsRequest) (*types.QueryDelegationsResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") diff --git a/x/interchainstaking/keeper/grpc_query_test.go b/x/interchainstaking/keeper/grpc_query_test.go index b944d4cb2..41d95de35 100644 --- a/x/interchainstaking/keeper/grpc_query_test.go +++ b/x/interchainstaking/keeper/grpc_query_test.go @@ -13,6 +13,8 @@ import ( "github.com/ingenuity-build/quicksilver/x/interchainstaking/types" ) +var delegatorAddress = "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure" + func (suite *KeeperTestSuite) TestKeeper_Zones() { icsKeeper := suite.GetQuicksilverApp(suite.chainA).InterchainstakingKeeper ctx := suite.chainA.GetContext() @@ -313,6 +315,136 @@ func (suite *KeeperTestSuite) TestKeeper_DelegatorIntent() { } } +func (suite *KeeperTestSuite) TestKeeper_DelegatorIntents() { + icsKeeper := suite.GetQuicksilverApp(suite.chainA).InterchainstakingKeeper + ctx := suite.chainA.GetContext() + + tests := []struct { + name string + malleate func() + req *types.QueryDelegatorIntentsRequest + wantErr bool + verify func(delegation []*types.DelegatorIntentsResponse) + }{ + { + name: "DelegatorIntent_Nil_Request", + malleate: func() {}, + req: nil, + wantErr: true, + verify: func([]*types.DelegatorIntentsResponse) { + }, + }, + { + "DelegatorIntent_No_Delegator_Intents", + func() { + }, + &types.QueryDelegatorIntentsRequest{ + DelegatorAddress: testAddress, + }, + false, + func(intents []*types.DelegatorIntentsResponse) { + for _, intent := range intents { + suite.Require().Equal(intent.ChainId, suite.chainB.ChainID) + suite.Require().Equal(len(intent.Intent.Intents), 0) + } + }, + }, + { + "DelegatorIntent_Valid_Intents across multiple zones", + func() { + zone, found := icsKeeper.GetZone(ctx, suite.chainB.ChainID) + suite.Require().True(found) + // give funds + suite.giveFunds(ctx, zone.LocalDenom, 5000000, testAddress) + // set intents + intents := []types.DelegatorIntent{ + { + Delegator: testAddress, + Intents: types.ValidatorIntents{ + &types.ValidatorIntent{ + ValoperAddress: icsKeeper.GetValidators(ctx, suite.chainB.ChainID)[0].ValoperAddress, + Weight: sdk.OneDec(), + }, + }, + }, + } + for _, intent := range intents { + icsKeeper.SetDelegatorIntent(ctx, &zone, intent, false) + } + + // cosmos zone + zone = types.Zone{ + ConnectionId: "connection-77001", + ChainId: "cosmoshub-4", + AccountPrefix: "cosmos", + LocalDenom: "uqatom", + BaseDenom: "uatom", + MultiSend: false, + LiquidityModule: false, + Is_118: true, + } + (&icsKeeper).SetZone(ctx, &zone) + // give funds + suite.giveFunds(ctx, zone.LocalDenom, 5000000, testAddress) + // set intents + intents = []types.DelegatorIntent{ + { + Delegator: testAddress, + Intents: types.ValidatorIntents{ + &types.ValidatorIntent{ + ValoperAddress: icsKeeper.GetValidators(ctx, suite.chainB.ChainID)[0].ValoperAddress, + Weight: sdk.OneDec(), + }, + }, + }, + } + for _, intent := range intents { + icsKeeper.SetDelegatorIntent(ctx, &zone, intent, false) + } + }, + &types.QueryDelegatorIntentsRequest{ + DelegatorAddress: testAddress, + }, + false, + func(intents []*types.DelegatorIntentsResponse) { + suite.Require().Equal(len(intents), 2) + suite.Require().Equal(intents[0].ChainId, "cosmoshub-4") + suite.Require().Equal(intents[1].ChainId, suite.chainB.ChainID) + for _, intent := range intents { + suite.Require().Equal(intent.Intent.Delegator, testAddress) + suite.Require().Equal(len(intent.Intent.Intents), 1) + } + }, + }, + } + + // run tests: + suite.setupTestZones() + + for _, tt := range tests { + suite.Run(tt.name, func() { + tt.malleate() + resp, err := icsKeeper.DelegatorIntents( + ctx, + tt.req, + ) + if tt.wantErr { + suite.T().Logf("Error:\n%v\n", err) + suite.Require().Error(err) + return + } + suite.Require().NoError(err) + suite.Require().NotNil(resp) + tt.verify(resp.Intents) + + vstr, err := json.MarshalIndent(resp, "", "\t") + suite.Require().NoError(err) + + suite.T().Logf("Response:\n%s\n", vstr) + }) + } +} + func (suite *KeeperTestSuite) TestKeeper_Delegations() { icsKeeper := suite.GetQuicksilverApp(suite.chainA).InterchainstakingKeeper ctx := suite.chainA.GetContext() @@ -525,7 +657,7 @@ func (suite *KeeperTestSuite) TestKeeper_ZoneWithdrawalRecords() { func() {}, &types.QueryWithdrawalRecordsRequest{ ChainId: suite.chainB.ChainID, - DelegatorAddress: "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure", + DelegatorAddress: delegatorAddress, }, false, 0, @@ -551,7 +683,7 @@ func (suite *KeeperTestSuite) TestKeeper_ZoneWithdrawalRecords() { icsKeeper.AddWithdrawalRecord( ctx, zone.ChainId, - "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure", + delegatorAddress, distribution, testAddress, sdk.NewCoins(sdk.NewCoin(zone.BaseDenom, math.NewInt(15000000))), @@ -563,7 +695,7 @@ func (suite *KeeperTestSuite) TestKeeper_ZoneWithdrawalRecords() { }, &types.QueryWithdrawalRecordsRequest{ ChainId: suite.chainB.ChainID, - DelegatorAddress: "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure", + DelegatorAddress: delegatorAddress, }, false, 1, @@ -655,7 +787,7 @@ func (suite *KeeperTestSuite) TestKeeper_UserWithdrawalRecords() { icsKeeper.AddWithdrawalRecord( ctx, zone.ChainId, - "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure", + delegatorAddress, distribution, testAddress, sdk.NewCoins(sdk.NewCoin(zone.BaseDenom, math.NewInt(15000000))), @@ -666,7 +798,7 @@ func (suite *KeeperTestSuite) TestKeeper_UserWithdrawalRecords() { ) }, &types.QueryUserWithdrawalRecordsRequest{ - UserAddress: "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure", + UserAddress: delegatorAddress, }, false, 1, @@ -747,7 +879,7 @@ func (suite *KeeperTestSuite) TestKeeper_WithdrawalRecords() { icsKeeper.AddWithdrawalRecord( ctx, zone.ChainId, - "quick16pxh2v4hr28h2gkntgfk8qgh47pfmjfhzgeure", + delegatorAddress, distribution, testAddress, sdk.NewCoins(sdk.NewCoin(zone.BaseDenom, math.NewInt(15000000))), diff --git a/x/interchainstaking/types/query.pb.go b/x/interchainstaking/types/query.pb.go index a6ac418a8..b5377ccac 100644 --- a/x/interchainstaking/types/query.pb.go +++ b/x/interchainstaking/types/query.pb.go @@ -623,6 +623,146 @@ func (m *QueryDelegatorIntentResponse) GetIntent() *DelegatorIntent { return nil } +type QueryDelegatorIntentsRequest struct { + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` +} + +func (m *QueryDelegatorIntentsRequest) Reset() { *m = QueryDelegatorIntentsRequest{} } +func (m *QueryDelegatorIntentsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDelegatorIntentsRequest) ProtoMessage() {} +func (*QueryDelegatorIntentsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c8e4d79429548821, []int{11} +} +func (m *QueryDelegatorIntentsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDelegatorIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDelegatorIntentsRequest.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 *QueryDelegatorIntentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegatorIntentsRequest.Merge(m, src) +} +func (m *QueryDelegatorIntentsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDelegatorIntentsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegatorIntentsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDelegatorIntentsRequest proto.InternalMessageInfo + +func (m *QueryDelegatorIntentsRequest) GetDelegatorAddress() string { + if m != nil { + return m.DelegatorAddress + } + return "" +} + +type DelegatorIntentsResponse struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Intent *DelegatorIntent `protobuf:"bytes,2,opt,name=intent,proto3" json:"intent,omitempty"` +} + +func (m *DelegatorIntentsResponse) Reset() { *m = DelegatorIntentsResponse{} } +func (m *DelegatorIntentsResponse) String() string { return proto.CompactTextString(m) } +func (*DelegatorIntentsResponse) ProtoMessage() {} +func (*DelegatorIntentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c8e4d79429548821, []int{12} +} +func (m *DelegatorIntentsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorIntentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorIntentsResponse.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 *DelegatorIntentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorIntentsResponse.Merge(m, src) +} +func (m *DelegatorIntentsResponse) XXX_Size() int { + return m.Size() +} +func (m *DelegatorIntentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorIntentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorIntentsResponse proto.InternalMessageInfo + +func (m *DelegatorIntentsResponse) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *DelegatorIntentsResponse) GetIntent() *DelegatorIntent { + if m != nil { + return m.Intent + } + return nil +} + +type QueryDelegatorIntentsResponse struct { + Intents []*DelegatorIntentsResponse `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"` +} + +func (m *QueryDelegatorIntentsResponse) Reset() { *m = QueryDelegatorIntentsResponse{} } +func (m *QueryDelegatorIntentsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDelegatorIntentsResponse) ProtoMessage() {} +func (*QueryDelegatorIntentsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c8e4d79429548821, []int{13} +} +func (m *QueryDelegatorIntentsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDelegatorIntentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDelegatorIntentsResponse.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 *QueryDelegatorIntentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegatorIntentsResponse.Merge(m, src) +} +func (m *QueryDelegatorIntentsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDelegatorIntentsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegatorIntentsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDelegatorIntentsResponse proto.InternalMessageInfo + +func (m *QueryDelegatorIntentsResponse) GetIntents() []*DelegatorIntentsResponse { + if m != nil { + return m.Intents + } + return nil +} + type QueryDelegationsRequest struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -632,7 +772,7 @@ func (m *QueryDelegationsRequest) Reset() { *m = QueryDelegationsRequest func (m *QueryDelegationsRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegationsRequest) ProtoMessage() {} func (*QueryDelegationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{11} + return fileDescriptor_c8e4d79429548821, []int{14} } func (m *QueryDelegationsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -685,7 +825,7 @@ func (m *QueryDelegationsResponse) Reset() { *m = QueryDelegationsRespon func (m *QueryDelegationsResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegationsResponse) ProtoMessage() {} func (*QueryDelegationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{12} + return fileDescriptor_c8e4d79429548821, []int{15} } func (m *QueryDelegationsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -744,7 +884,7 @@ func (m *QueryReceiptsRequest) Reset() { *m = QueryReceiptsRequest{} } func (m *QueryReceiptsRequest) String() string { return proto.CompactTextString(m) } func (*QueryReceiptsRequest) ProtoMessage() {} func (*QueryReceiptsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{13} + return fileDescriptor_c8e4d79429548821, []int{16} } func (m *QueryReceiptsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -796,7 +936,7 @@ func (m *QueryReceiptsResponse) Reset() { *m = QueryReceiptsResponse{} } func (m *QueryReceiptsResponse) String() string { return proto.CompactTextString(m) } func (*QueryReceiptsResponse) ProtoMessage() {} func (*QueryReceiptsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{14} + return fileDescriptor_c8e4d79429548821, []int{17} } func (m *QueryReceiptsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -849,7 +989,7 @@ func (m *QueryWithdrawalRecordsRequest) Reset() { *m = QueryWithdrawalRe func (m *QueryWithdrawalRecordsRequest) String() string { return proto.CompactTextString(m) } func (*QueryWithdrawalRecordsRequest) ProtoMessage() {} func (*QueryWithdrawalRecordsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{15} + return fileDescriptor_c8e4d79429548821, []int{18} } func (m *QueryWithdrawalRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -908,7 +1048,7 @@ func (m *QueryWithdrawalRecordsResponse) Reset() { *m = QueryWithdrawalR func (m *QueryWithdrawalRecordsResponse) String() string { return proto.CompactTextString(m) } func (*QueryWithdrawalRecordsResponse) ProtoMessage() {} func (*QueryWithdrawalRecordsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{16} + return fileDescriptor_c8e4d79429548821, []int{19} } func (m *QueryWithdrawalRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -960,7 +1100,7 @@ func (m *QueryUserWithdrawalRecordsRequest) Reset() { *m = QueryUserWith func (m *QueryUserWithdrawalRecordsRequest) String() string { return proto.CompactTextString(m) } func (*QueryUserWithdrawalRecordsRequest) ProtoMessage() {} func (*QueryUserWithdrawalRecordsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{17} + return fileDescriptor_c8e4d79429548821, []int{20} } func (m *QueryUserWithdrawalRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1012,7 +1152,7 @@ func (m *QueryUnbondingRecordsRequest) Reset() { *m = QueryUnbondingReco func (m *QueryUnbondingRecordsRequest) String() string { return proto.CompactTextString(m) } func (*QueryUnbondingRecordsRequest) ProtoMessage() {} func (*QueryUnbondingRecordsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{18} + return fileDescriptor_c8e4d79429548821, []int{21} } func (m *QueryUnbondingRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1064,7 +1204,7 @@ func (m *QueryUnbondingRecordsResponse) Reset() { *m = QueryUnbondingRec func (m *QueryUnbondingRecordsResponse) String() string { return proto.CompactTextString(m) } func (*QueryUnbondingRecordsResponse) ProtoMessage() {} func (*QueryUnbondingRecordsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{19} + return fileDescriptor_c8e4d79429548821, []int{22} } func (m *QueryUnbondingRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1116,7 +1256,7 @@ func (m *QueryRedelegationRecordsRequest) Reset() { *m = QueryRedelegati func (m *QueryRedelegationRecordsRequest) String() string { return proto.CompactTextString(m) } func (*QueryRedelegationRecordsRequest) ProtoMessage() {} func (*QueryRedelegationRecordsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{20} + return fileDescriptor_c8e4d79429548821, []int{23} } func (m *QueryRedelegationRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1168,7 +1308,7 @@ func (m *QueryRedelegationRecordsResponse) Reset() { *m = QueryRedelegat func (m *QueryRedelegationRecordsResponse) String() string { return proto.CompactTextString(m) } func (*QueryRedelegationRecordsResponse) ProtoMessage() {} func (*QueryRedelegationRecordsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{21} + return fileDescriptor_c8e4d79429548821, []int{24} } func (m *QueryRedelegationRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1220,7 +1360,7 @@ func (m *QueryMappedAccountsRequest) Reset() { *m = QueryMappedAccountsR func (m *QueryMappedAccountsRequest) String() string { return proto.CompactTextString(m) } func (*QueryMappedAccountsRequest) ProtoMessage() {} func (*QueryMappedAccountsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{22} + return fileDescriptor_c8e4d79429548821, []int{25} } func (m *QueryMappedAccountsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1272,7 +1412,7 @@ func (m *QueryMappedAccountsResponse) Reset() { *m = QueryMappedAccounts func (m *QueryMappedAccountsResponse) String() string { return proto.CompactTextString(m) } func (*QueryMappedAccountsResponse) ProtoMessage() {} func (*QueryMappedAccountsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{23} + return fileDescriptor_c8e4d79429548821, []int{26} } func (m *QueryMappedAccountsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1327,6 +1467,9 @@ func init() { proto.RegisterType((*QueryDepositAccountForChainResponse)(nil), "quicksilver.interchainstaking.v1.QueryDepositAccountForChainResponse") proto.RegisterType((*QueryDelegatorIntentRequest)(nil), "quicksilver.interchainstaking.v1.QueryDelegatorIntentRequest") proto.RegisterType((*QueryDelegatorIntentResponse)(nil), "quicksilver.interchainstaking.v1.QueryDelegatorIntentResponse") + proto.RegisterType((*QueryDelegatorIntentsRequest)(nil), "quicksilver.interchainstaking.v1.QueryDelegatorIntentsRequest") + proto.RegisterType((*DelegatorIntentsResponse)(nil), "quicksilver.interchainstaking.v1.DelegatorIntentsResponse") + proto.RegisterType((*QueryDelegatorIntentsResponse)(nil), "quicksilver.interchainstaking.v1.QueryDelegatorIntentsResponse") proto.RegisterType((*QueryDelegationsRequest)(nil), "quicksilver.interchainstaking.v1.QueryDelegationsRequest") proto.RegisterType((*QueryDelegationsResponse)(nil), "quicksilver.interchainstaking.v1.QueryDelegationsResponse") proto.RegisterType((*QueryReceiptsRequest)(nil), "quicksilver.interchainstaking.v1.QueryReceiptsRequest") @@ -1348,105 +1491,109 @@ func init() { } var fileDescriptor_c8e4d79429548821 = []byte{ - // 1559 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4b, 0x8c, 0x14, 0x55, - 0x17, 0x9e, 0x3b, 0x2f, 0x86, 0x33, 0xfc, 0x30, 0x5c, 0x66, 0xa0, 0xa9, 0x9f, 0xbf, 0x67, 0xfe, - 0x36, 0x11, 0xd0, 0xa1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66, 0xb1, 0xc4, 0x64, 0xb5, 0xac, 0xcb, - 0xaa, 0x61, 0x98, 0x5c, 0xa0, 0x79, 0x36, 0x47, 0xda, 0x52, 0x69, 0xf6, 0x58, 0x58, 0x66, 0x1e, - 0x12, 0x80, 0x0b, 0x0e, 0x98, 0xcd, 0xf5, 0x82, 0x4d, 0xf7, 0xc2, 0x90, 0xd8, 0x94, 0xd7, 0xb5, - 0x14, 0x99, 0x20, 0x07, 0xb6, 0x2a, 0x5b, 0xc4, 0x78, 0x59, 0xa3, 0xfb, 0x60, 0xab, 0xc6, 0xca, - 0xa6, 0xad, 0x73, 0xa6, 0xa5, 0x7a, 0x27, 0xc8, 0x81, 0x3e, 0xa5, 0x3e, 0x41, 0x25, 0x18, 0xc2, - 0x81, 0x9d, 0xea, 0x13, 0x8b, 0xfe, 0x98, 0xa6, 0x01, 0xf0, 0xb7, 0x69, 0xd9, 0xa9, 0x7e, 0xb1, - 0x1a, 0x98, 0x71, 0x91, 0x4b, 0xac, 0xa8, 0x3a, 0xc8, 0x03, 0x1e, 0x32, 0x4e, 0xd0, 0xdd, 0x30, - 0x68, 0x57, 0xca, 0xe5, 0x52, 0x2d, 0x35, 0x28, 0x96, 0x70, 0x44, 0x27, 0x81, 0x6a, 0xba, 0xcd, - 0x55, 0xa3, 0xc0, 0xf2, 0xdc, 0xcc, 0x73, 0xd5, 0x2a, 0x32, 0x9e, 0xda, 0x22, 0x9c, 0x1e, 0xf1, - 0x56, 0x56, 0xcc, 0x15, 0x31, 0x9f, 0xb9, 0x02, 0x3b, 0xcf, 0x3b, 0x21, 0x59, 0x35, 0x0d, 0x66, - 0x2b, 0xec, 0x7a, 0x85, 0xd9, 0x9c, 0x2e, 0x01, 0xd4, 0x23, 0x23, 0xf8, 0x0e, 0x4f, 0x3f, 0x9b, - 0xc5, 0x68, 0x38, 0x61, 0xcc, 0xba, 0x19, 0x80, 0x61, 0xcc, 0xbe, 0xaa, 0x16, 0x19, 0xda, 0x2a, - 0x01, 0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a, 0xbc, 0xf7, 0x20, 0xdd, 0x73, 0xf7, 0x41, 0xba, 0xe7, 0xd7, 0x07, - 0xe9, 0x9e, 0xd5, 0xb9, 0xa2, 0xce, 0xaf, 0x56, 0xd6, 0xb2, 0x05, 0x73, 0x5d, 0xd6, 0x8d, 0x22, - 0x33, 0x2a, 0x3a, 0xaf, 0x1d, 0x5a, 0xab, 0xe8, 0x25, 0xad, 0xe1, 0xc4, 0x37, 0x22, 0xce, 0xe4, - 0xb5, 0x32, 0xb3, 0xd7, 0x06, 0xc5, 0xbf, 0xd7, 0x66, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xc2, - 0xf6, 0xa3, 0x6f, 0x65, 0x1c, 0x00, 0x00, + // 1626 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4d, 0x6c, 0xdc, 0xc4, + 0x17, 0xcf, 0xe4, 0xbb, 0x2f, 0xfd, 0xb7, 0xe9, 0x34, 0xf9, 0x77, 0xbb, 0x94, 0x4d, 0x30, 0x12, + 0x6d, 0x21, 0x5d, 0x2b, 0x49, 0x05, 0x6d, 0xda, 0xb4, 0xe9, 0xe6, 0xa3, 0x0a, 0xa5, 0x82, 0xba, + 0x29, 0x55, 0xd3, 0xc3, 0xe2, 0xac, 0x47, 0x5b, 0xab, 0x1b, 0x7b, 0x6b, 0xcf, 0xa6, 0x84, 0xaa, + 0x12, 0x20, 0x71, 0x45, 0x45, 0x20, 0xa0, 0x67, 0x2e, 0x08, 0x89, 0x13, 0x5c, 0xb8, 0xc1, 0x01, + 0xa9, 0x12, 0x20, 0x55, 0x94, 0x03, 0xa7, 0x08, 0xfa, 0x71, 0xe0, 0xc0, 0x81, 0xde, 0x91, 0x90, + 0xc7, 0xcf, 0x5e, 0xaf, 0xd7, 0x9b, 0xf5, 0x3a, 0x2b, 0xb5, 0xb7, 0xf5, 0x78, 0xde, 0xef, 0xb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, 0x8a, 0xc9, 0xed, 0x7e, + 0xbc, 0x31, 0xb2, 0x73, 0x5d, 0x5d, 0x2d, 0x4d, 0x49, 0xde, 0x1b, 0xc9, 0x2f, 0x23, 0xe9, 0x36, + 0x09, 0x64, 0xc2, 0x97, 0x6a, 0x06, 0xba, 0x1d, 0xbe, 0x7e, 0x0e, 0x5a, 0x51, 0x4a, 0x58, 0x06, + 0x85, 0x22, 0x09, 0x85, 0x92, 0x3e, 0x23, 0x90, 0xf6, 0x63, 0x7b, 0x53, 0x2d, 0xe9, 0x9a, 0xea, + 0x14, 0xa8, 0x47, 0x75, 0x93, 0xc3, 0xe1, 0x14, 0x29, 0x57, 0x79, 0xc5, 0x75, 0xbf, 0x4d, 0xc1, + 0xa7, 0x50, 0x85, 0x75, 0x25, 0xae, 0xb0, 0xef, 0x08, 0x3c, 0x13, 0x19, 0x19, 0xea, 0x77, 0x0e, + 0x60, 0xcd, 0x5f, 0xc5, 0x7a, 0x7b, 0xa9, 0xb9, 0x04, 0x3e, 0x12, 0x4a, 0x19, 0x00, 0x09, 0x55, + 0x4d, 0x67, 0xf2, 0xaa, 0x59, 0x02, 0x49, 0x84, 0x3e, 0xe7, 0x9e, 0xf8, 0x53, 0x85, 0x82, 0x59, + 0x31, 0xf8, 0x82, 0x69, 0xcd, 0x3a, 0xd1, 0x24, 0xad, 0xa3, 0xf7, 0x08, 0x3c, 0xbf, 0x29, 0x2c, + 0x2a, 0xb3, 0x0c, 0x7b, 0xb0, 0xd5, 0xe4, 0x55, 0x77, 0x4b, 0x5e, 0xd5, 0x34, 0x8b, 0xd9, 0x36, + 0xba, 0x91, 0x1e, 0x6f, 0x8c, 0x64, 0x5c, 0x37, 0x0d, 0x36, 0x4a, 0xca, 0xb0, 0x56, 0xe3, 0xe4, + 0x14, 0xae, 0x7f, 0xe2, 0x65, 0x65, 0xce, 0xed, 0x56, 0xa6, 0xb5, 0x68, 0x70, 0x66, 0xf0, 0x84, + 0x9c, 0xe8, 0x3c, 0xec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1d, + 0xbf, 0x3f, 0xc8, 0x74, 0x2c, 0xcf, 0x14, 0x75, 0x7e, 0xa5, 0xb2, 0x92, 0x2d, 0x98, 0xab, 0xb2, + 0x6e, 0x14, 0x99, 0x51, 0xd1, 0xf9, 0xfa, 0xa1, 0x95, 0x8a, 0x5e, 0xd2, 0x6a, 0x3c, 0xbe, 0x1d, + 0xe1, 0x93, 0xaf, 0x97, 0x99, 0xbd, 0xd2, 0x2b, 0xfe, 0x4d, 0x3b, 0xf9, 0x5f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xdb, 0xb3, 0x4d, 0xe1, 0xad, 0x1e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1471,6 +1618,8 @@ type QueryClient interface { // DelegatorIntent provides data on the intent of the delegator for the given // zone. DelegatorIntent(ctx context.Context, in *QueryDelegatorIntentRequest, opts ...grpc.CallOption) (*QueryDelegatorIntentResponse, error) + // DelegatorIntents provides data on the intent of the delegator for all zones + DelegatorIntents(ctx context.Context, in *QueryDelegatorIntentsRequest, opts ...grpc.CallOption) (*QueryDelegatorIntentsResponse, error) // Delegations provides data on the delegations for the given zone. Delegations(ctx context.Context, in *QueryDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegationsResponse, error) // Delegations provides data on the delegations for the given zone. @@ -1542,6 +1691,15 @@ func (c *queryClient) DelegatorIntent(ctx context.Context, in *QueryDelegatorInt return out, nil } +func (c *queryClient) DelegatorIntents(ctx context.Context, in *QueryDelegatorIntentsRequest, opts ...grpc.CallOption) (*QueryDelegatorIntentsResponse, error) { + out := new(QueryDelegatorIntentsResponse) + err := c.cc.Invoke(ctx, "/quicksilver.interchainstaking.v1.Query/DelegatorIntents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Delegations(ctx context.Context, in *QueryDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegationsResponse, error) { out := new(QueryDelegationsResponse) err := c.cc.Invoke(ctx, "/quicksilver.interchainstaking.v1.Query/Delegations", in, out, opts...) @@ -1626,6 +1784,8 @@ type QueryServer interface { // DelegatorIntent provides data on the intent of the delegator for the given // zone. DelegatorIntent(context.Context, *QueryDelegatorIntentRequest) (*QueryDelegatorIntentResponse, error) + // DelegatorIntents provides data on the intent of the delegator for all zones + DelegatorIntents(context.Context, *QueryDelegatorIntentsRequest) (*QueryDelegatorIntentsResponse, error) // Delegations provides data on the delegations for the given zone. Delegations(context.Context, *QueryDelegationsRequest) (*QueryDelegationsResponse, error) // Delegations provides data on the delegations for the given zone. @@ -1663,6 +1823,9 @@ func (*UnimplementedQueryServer) DepositAccount(ctx context.Context, req *QueryD func (*UnimplementedQueryServer) DelegatorIntent(ctx context.Context, req *QueryDelegatorIntentRequest) (*QueryDelegatorIntentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DelegatorIntent not implemented") } +func (*UnimplementedQueryServer) DelegatorIntents(ctx context.Context, req *QueryDelegatorIntentsRequest) (*QueryDelegatorIntentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelegatorIntents not implemented") +} func (*UnimplementedQueryServer) Delegations(ctx context.Context, req *QueryDelegationsRequest) (*QueryDelegationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Delegations not implemented") } @@ -1782,6 +1945,24 @@ func _Query_DelegatorIntent_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _Query_DelegatorIntents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDelegatorIntentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DelegatorIntents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/quicksilver.interchainstaking.v1.Query/DelegatorIntents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DelegatorIntents(ctx, req.(*QueryDelegatorIntentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Delegations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryDelegationsRequest) if err := dec(in); err != nil { @@ -1950,6 +2131,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "DelegatorIntent", Handler: _Query_DelegatorIntent_Handler, }, + { + MethodName: "DelegatorIntents", + Handler: _Query_DelegatorIntents_Handler, + }, { MethodName: "Delegations", Handler: _Query_Delegations_Handler, @@ -2452,6 +2637,115 @@ func (m *QueryDelegatorIntentResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } +func (m *QueryDelegatorIntentsRequest) 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 *QueryDelegatorIntentsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDelegatorIntentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DelegatorAddress) > 0 { + i -= len(m.DelegatorAddress) + copy(dAtA[i:], m.DelegatorAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegatorIntentsResponse) 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 *DelegatorIntentsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorIntentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Intent != nil { + { + size, err := m.Intent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryDelegatorIntentsResponse) 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 *QueryDelegatorIntentsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDelegatorIntentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Intents) > 0 { + for iNdEx := len(m.Intents) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Intents[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 *QueryDelegationsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3264,52 +3558,97 @@ func (m *QueryDelegatorIntentResponse) Size() (n int) { return n } -func (m *QueryDelegationsRequest) Size() (n int) { +func (m *QueryDelegatorIntentsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + l = len(m.DelegatorAddress) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } return n } -func (m *QueryDelegationsResponse) Size() (n int) { +func (m *DelegatorIntentsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Delegations) > 0 { - for _, e := range m.Delegations { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Tvl != 0 { - n += 1 + sovQuery(uint64(m.Tvl)) + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - if m.Pagination != nil { - l = m.Pagination.Size() + if m.Intent != nil { + l = m.Intent.Size() n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryReceiptsRequest) Size() (n int) { +func (m *QueryDelegatorIntentsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + if len(m.Intents) > 0 { + for _, e := range m.Intents { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryDelegationsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDelegationsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Delegations) > 0 { + for _, e := range m.Delegations { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Tvl != 0 { + n += 1 + sovQuery(uint64(m.Tvl)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryReceiptsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4800,6 +5139,290 @@ func (m *QueryDelegatorIntentResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryDelegatorIntentsRequest) 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: QueryDelegatorIntentsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDelegatorIntentsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", 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.DelegatorAddress = 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 *DelegatorIntentsResponse) 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: DelegatorIntentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegatorIntentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Intent", 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.Intent == nil { + m.Intent = &DelegatorIntent{} + } + if err := m.Intent.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 *QueryDelegatorIntentsResponse) 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: QueryDelegatorIntentsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDelegatorIntentsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Intents", 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.Intents = append(m.Intents, &DelegatorIntentsResponse{}) + if err := m.Intents[len(m.Intents)-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 *QueryDelegationsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/interchainstaking/types/query.pb.gw.go b/x/interchainstaking/types/query.pb.gw.go index 7605bf0d2..42d4d401a 100644 --- a/x/interchainstaking/types/query.pb.gw.go +++ b/x/interchainstaking/types/query.pb.gw.go @@ -325,6 +325,60 @@ func local_request_Query_DelegatorIntent_0(ctx context.Context, marshaler runtim } +func request_Query_DelegatorIntents_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDelegatorIntentsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["delegator_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "delegator_address") + } + + protoReq.DelegatorAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "delegator_address", err) + } + + msg, err := client.DelegatorIntents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_DelegatorIntents_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDelegatorIntentsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["delegator_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "delegator_address") + } + + protoReq.DelegatorAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "delegator_address", err) + } + + msg, err := server.DelegatorIntents(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Query_Delegations_0 = &utilities.DoubleArray{Encoding: map[string]int{"chain_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -1044,6 +1098,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_DelegatorIntents_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_DelegatorIntents_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_DelegatorIntents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Delegations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1369,6 +1446,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_DelegatorIntents_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_DelegatorIntents_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_DelegatorIntents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Delegations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1543,6 +1640,8 @@ var ( pattern_Query_DelegatorIntent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"quicksilver", "interchainstaking", "v1", "zones", "chain_id", "delegator_intent", "delegator_address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DelegatorIntents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"quicksilver", "interchainstaking", "v1", "delegator_intents", "delegator_address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_Delegations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"quicksilver", "interchainstaking", "v1", "zones", "chain_id", "delegations"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_Receipts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"quicksilver", "interchainstaking", "v1", "zones", "chain_id", "receipts"}, "", runtime.AssumeColonVerbOpt(true))) @@ -1571,6 +1670,8 @@ var ( forward_Query_DelegatorIntent_0 = runtime.ForwardResponseMessage + forward_Query_DelegatorIntents_0 = runtime.ForwardResponseMessage + forward_Query_Delegations_0 = runtime.ForwardResponseMessage forward_Query_Receipts_0 = runtime.ForwardResponseMessage