From 2be465f9f0090b7ed9790c374f389caf7e80b0e0 Mon Sep 17 00:00:00 2001 From: Joe Bowman Date: Tue, 3 Dec 2024 14:15:27 +0400 Subject: [PATCH] use bech32 addresses for mapped address queries; resolves #1719 (#1766) --- docs/swagger.yml | 133 +-- .../interchainstaking/v1/query.proto | 28 +- x/interchainstaking/keeper/grpc_query.go | 37 +- x/interchainstaking/keeper/grpc_query_test.go | 140 +++ x/interchainstaking/types/query.pb.go | 811 ++++++++++++------ x/interchainstaking/types/query.pb.gw.go | 139 ++- 6 files changed, 925 insertions(+), 363 deletions(-) diff --git a/docs/swagger.yml b/docs/swagger.yml index 0425889ef..d6e7b893e 100644 --- a/docs/swagger.yml +++ b/docs/swagger.yml @@ -2733,7 +2733,9 @@ paths: get: summary: >- ClaimedPercentageByClaimType provides data on the claimed percentage of - a given claim type in a given zone + a + + given claim type in a given zone operationId: ClaimedPercentageByClaimType responses: '200': @@ -2846,7 +2848,7 @@ paths: type: string tags: - QueryInterchainStaking - /quicksilver/interchainstaking/v1/mapped_addresses/{address}: + /quicksilver/interchainstaking/v1/mapped_addresses/local/{address}: get: summary: >- MappedAccounts provides data on the mapped accounts for a given user @@ -2860,39 +2862,10 @@ paths: schema: type: object properties: - RemoteAddressMap: + remote_address_map: type: object additionalProperties: type: string - format: byte - pagination: - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the - - corresponding request message has used PageRequest. - - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } default: description: An unexpected error response. schema: @@ -2920,62 +2893,50 @@ paths: in: path required: true type: string - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: >- - offset is a numeric offset that can be used when key is unavailable. - - It is less efficient than using key. Only one of offset or key - should - - be set. - in: query - required: false + tags: + - QueryInterchainStaking + /quicksilver/interchainstaking/v1/mapped_addresses/remote/{chain_id}/{remote_address}: + get: + operationId: InverseMappedAccounts + responses: + '200': + description: A successful response. + schema: + type: object + properties: + local_address: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + value: + type: string + format: byte + parameters: + - name: chain_id + in: path + required: true type: string - format: uint64 - - name: pagination.limit - description: >- - limit is the total number of results to be returned in the result - page. - - If left empty it will default to a value to be set by each app. - in: query - required: false + - name: remote_address + in: path + required: true type: string - format: uint64 - - name: pagination.count_total - description: >- - count_total is set to true to indicate that the result set should - include - - a count of the total number of items available for pagination in - UIs. - - count_total is only respected when offset is used. It is ignored - when key - - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: >- - reverse is set to true if results are to be returned in the - descending order. - - - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean tags: - QueryInterchainStaking /quicksilver/interchainstaking/v1/users/{user_address}/withdrawal_records: diff --git a/proto/quicksilver/interchainstaking/v1/query.proto b/proto/quicksilver/interchainstaking/v1/query.proto index 3cfdf2675..a3b084889 100644 --- a/proto/quicksilver/interchainstaking/v1/query.proto +++ b/proto/quicksilver/interchainstaking/v1/query.proto @@ -100,7 +100,13 @@ service Query { // MappedAccounts provides data on the mapped accounts for a given user over // different host chains. rpc MappedAccounts(QueryMappedAccountsRequest) returns (QueryMappedAccountsResponse) { - option (google.api.http).get = "/quicksilver/interchainstaking/v1/mapped_addresses/{address}"; + option (google.api.http).get = "/quicksilver/interchainstaking/v1/mapped_addresses/local/{address}"; + } + + rpc InverseMappedAccounts(QueryInverseMappedAccountsRequest) returns (QueryInverseMappedAccountsResponse) { + option (google.api.http).get = + "/quicksilver/interchainstaking/v1/" + "mapped_addresses/remote/{chain_id}/{remote_address}"; } // CLaimedPercentage provides data on the claimed percentage for a given zone @@ -108,9 +114,12 @@ service Query { option (google.api.http).get = "/quicksilver/interchainstaking/v1/claimed_percentage/{chain_id}"; } - // ClaimedPercentageByClaimType provides data on the claimed percentage of a given claim type in a given zone + // ClaimedPercentageByClaimType provides data on the claimed percentage of a + // given claim type in a given zone rpc ClaimedPercentageByClaimType(QueryClaimedPercentageRequest) returns (QueryClaimedPercentageResponse) { - option (google.api.http).get = "/quicksilver/interchainstaking/v1/claimed_percentage/{chain_id}/{claim_type}"; + option (google.api.http).get = + "/quicksilver/interchainstaking/v1/" + "claimed_percentage/{chain_id}/{claim_type}"; } } @@ -283,12 +292,19 @@ message QueryRedelegationRecordsResponse { message QueryMappedAccountsRequest { string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - cosmos.base.query.v1beta1.PageRequest pagination = 2; } message QueryMappedAccountsResponse { - map RemoteAddressMap = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + map remote_address_map = 1 [(gogoproto.nullable) = false]; +} + +message QueryInverseMappedAccountsRequest { + string remote_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string chain_id = 2; +} + +message QueryInverseMappedAccountsResponse { + string local_address = 1; } message QueryDenyListRequest { diff --git a/x/interchainstaking/keeper/grpc_query.go b/x/interchainstaking/keeper/grpc_query.go index 593cd1f51..5e531aa24 100644 --- a/x/interchainstaking/keeper/grpc_query.go +++ b/x/interchainstaking/keeper/grpc_query.go @@ -339,20 +339,53 @@ func (k *Keeper) MappedAccounts(c context.Context, req *types.QueryMappedAccount ctx := sdk.UnwrapSDKContext(c) - remoteAddressMap := make(map[string][]byte) + remoteAddressMap := make(map[string]string) addrBytes, err := addressutils.AccAddressFromBech32(req.Address, sdk.GetConfig().GetBech32AccountAddrPrefix()) if err != nil { return nil, status.Error(codes.InvalidArgument, "Invalid Address") } k.IterateUserMappedAccounts(ctx, addrBytes, func(index int64, chainID string, remoteAddressBytes sdk.AccAddress) (stop bool) { - remoteAddressMap[chainID] = remoteAddressBytes + zone, found := k.GetZone(ctx, chainID) + if !found { + return false + } + encodedAddress, err := addressutils.EncodeAddressToBech32(zone.AccountPrefix, remoteAddressBytes) + if err != nil { + return false + } + remoteAddressMap[zone.ChainId] = encodedAddress return false }) return &types.QueryMappedAccountsResponse{RemoteAddressMap: remoteAddressMap}, nil } +func (k *Keeper) InverseMappedAccounts(c context.Context, req *types.QueryInverseMappedAccountsRequest) (*types.QueryInverseMappedAccountsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + + ctx := sdk.UnwrapSDKContext(c) + + zone, found := k.GetZone(ctx, req.ChainId) + if !found { + return nil, status.Error(codes.NotFound, fmt.Sprintf("no zone found matching %s", req.ChainId)) + } + + addrBytes, err := addressutils.AccAddressFromBech32(req.RemoteAddress, zone.AccountPrefix) + if err != nil { + return nil, status.Error(codes.InvalidArgument, "Invalid Address") + } + + localAddress, ok := k.GetLocalAddressMap(ctx, addrBytes, req.ChainId) + if !ok { + return nil, status.Error(codes.NotFound, fmt.Sprintf("no local address found matching %s", req.ChainId)) + } + + return &types.QueryInverseMappedAccountsResponse{LocalAddress: localAddress.String()}, nil +} + func (k *Keeper) ValidatorDenyList(c context.Context, req *types.QueryDenyListRequest) (*types.QueryDenyListResponse, 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 a129487b1..2cdcc7f8a 100644 --- a/x/interchainstaking/keeper/grpc_query_test.go +++ b/x/interchainstaking/keeper/grpc_query_test.go @@ -1179,6 +1179,140 @@ func (suite *KeeperTestSuite) TestKeeper_RedelegationRecords() { } } +func (suite *KeeperTestSuite) TestKeeper_InverseMappedAccounts() { + icsKeeper := suite.GetQuicksilverApp(suite.chainA).InterchainstakingKeeper + usrAddress1 := addressutils.GenerateAccAddressForTest() + ctx := suite.chainA.GetContext() + + tests := []struct { + name string + malleate func() []*types.QueryInverseMappedAccountsRequest + wantErr bool + expectLength int + }{ + { + "MappedAccounts_Nil_Request", + func() []*types.QueryInverseMappedAccountsRequest { return []*types.QueryInverseMappedAccountsRequest{} }, + true, + 0, + }, + { + "MappedAccounts_NoRecords_Request", + func() []*types.QueryInverseMappedAccountsRequest { + // setup zones + zone := types.Zone{ + ConnectionId: "connection-77001", + ChainId: "evmos_9001-1", + AccountPrefix: "evmos", + LocalDenom: "uqevmos", + BaseDenom: "uevmos", + MultiSend: false, + LiquidityModule: false, + Is_118: false, + } + icsKeeper.SetZone(ctx, &zone) + return []*types.QueryInverseMappedAccountsRequest{} + }, + false, + 0, + }, + { + "MappedAccounts_ValidRecord_Request", + func() []*types.QueryInverseMappedAccountsRequest { + // setup zones + suite.setupTestZones() + zone := types.Zone{ + ConnectionId: "connection-77881", + ChainId: "evmos_9001-1", + AccountPrefix: "evmos", + LocalDenom: "uqevmos", + BaseDenom: "uevmos", + MultiSend: false, + LiquidityModule: false, + Is_118: false, + } + icsKeeper.SetZone(ctx, &zone) + + remoteAddress := sdk.AccAddress(randomutils.GenerateRandomBytes(32)) + icsKeeper.SetLocalAddressMap(ctx, usrAddress1, remoteAddress, zone.ChainId) + return []*types.QueryInverseMappedAccountsRequest{ + {RemoteAddress: addressutils.MustEncodeAddressToBech32(zone.AccountPrefix, remoteAddress), ChainId: zone.ChainId}, + } + }, + false, + 1, + }, + + { + "MappedAccounts_ValidMultipleRecord_Request", + func() []*types.QueryInverseMappedAccountsRequest { + // setup zones + zone := types.Zone{ + ConnectionId: "connection-77881", + ChainId: "evmos_9001-1", + AccountPrefix: "evmos", + LocalDenom: "uqevmos", + BaseDenom: "uevmos", + MultiSend: false, + LiquidityModule: false, + Is_118: false, + } + icsKeeper.SetZone(ctx, &zone) + + remoteAddress1 := sdk.AccAddress(randomutils.GenerateRandomBytes(32)) + icsKeeper.SetLocalAddressMap(ctx, usrAddress1, remoteAddress1, zone.ChainId) + + zone2 := types.Zone{ + ConnectionId: "connection-77891", + ChainId: "injective-1", + AccountPrefix: "injective", + LocalDenom: "uqinj", + BaseDenom: "uinj", + MultiSend: false, + LiquidityModule: false, + Is_118: false, + } + icsKeeper.SetZone(ctx, &zone2) + + remoteAddress2 := sdk.AccAddress(randomutils.GenerateRandomBytes(32)) + icsKeeper.SetLocalAddressMap(ctx, usrAddress1, remoteAddress2, zone2.ChainId) + return []*types.QueryInverseMappedAccountsRequest{ + {RemoteAddress: addressutils.MustEncodeAddressToBech32(zone.AccountPrefix, remoteAddress1), ChainId: zone.ChainId}, + {RemoteAddress: addressutils.MustEncodeAddressToBech32(zone2.AccountPrefix, remoteAddress2), ChainId: zone2.ChainId}, + } + }, + false, + 2, + }, + } + + // run tests: + for _, tt := range tests { + suite.Run(tt.name, func() { + reqs := tt.malleate() + for _, req := range reqs { + resp, err := icsKeeper.InverseMappedAccounts( + ctx, + req, + ) + if tt.wantErr { + suite.T().Logf("Error:\n%v\n", err) + suite.Error(err) + return + } + suite.NoError(err) + suite.NotNil(resp) + suite.Equal(usrAddress1.String(), resp.LocalAddress) + + vstr, err := json.MarshalIndent(resp, "", "\t") + suite.NoError(err) + + suite.T().Logf("Response:\n%s\n", vstr) + } + }) + } +} + func (suite *KeeperTestSuite) TestKeeper_MappedAccounts() { icsKeeper := suite.GetQuicksilverApp(suite.chainA).InterchainstakingKeeper usrAddress1, _ := addressutils.AccAddressFromBech32("cosmos1vwh8mkgefn73vpsv7td68l3tynayck07engahn", "cosmos") @@ -1296,6 +1430,12 @@ func (suite *KeeperTestSuite) TestKeeper_MappedAccounts() { suite.NoError(err) suite.NotNil(resp) suite.Equal(tt.expectLength, len(resp.RemoteAddressMap)) + for chainID, record := range resp.RemoteAddressMap { + zone, found := icsKeeper.GetZone(ctx, chainID) + suite.True(found) + _, err := addressutils.AddressFromBech32(record, zone.AccountPrefix) + suite.NoError(err) + } vstr, err := json.MarshalIndent(resp, "", "\t") suite.NoError(err) diff --git a/x/interchainstaking/types/query.pb.go b/x/interchainstaking/types/query.pb.go index 49c6f1c24..5b27fc4b8 100644 --- a/x/interchainstaking/types/query.pb.go +++ b/x/interchainstaking/types/query.pb.go @@ -1468,8 +1468,7 @@ func (m *QueryRedelegationRecordsResponse) GetPagination() *query.PageResponse { } type QueryMappedAccountsRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (m *QueryMappedAccountsRequest) Reset() { *m = QueryMappedAccountsRequest{} } @@ -1512,16 +1511,8 @@ func (m *QueryMappedAccountsRequest) GetAddress() string { return "" } -func (m *QueryMappedAccountsRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - type QueryMappedAccountsResponse struct { - RemoteAddressMap map[string][]byte `protobuf:"bytes,1,rep,name=RemoteAddressMap,proto3" json:"RemoteAddressMap" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + RemoteAddressMap map[string]string `protobuf:"bytes,1,rep,name=remote_address_map,json=remoteAddressMap,proto3" json:"remote_address_map" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *QueryMappedAccountsResponse) Reset() { *m = QueryMappedAccountsResponse{} } @@ -1557,18 +1548,107 @@ func (m *QueryMappedAccountsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryMappedAccountsResponse proto.InternalMessageInfo -func (m *QueryMappedAccountsResponse) GetRemoteAddressMap() map[string][]byte { +func (m *QueryMappedAccountsResponse) GetRemoteAddressMap() map[string]string { if m != nil { return m.RemoteAddressMap } return nil } -func (m *QueryMappedAccountsResponse) GetPagination() *query.PageResponse { +type QueryInverseMappedAccountsRequest struct { + RemoteAddress string `protobuf:"bytes,1,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (m *QueryInverseMappedAccountsRequest) Reset() { *m = QueryInverseMappedAccountsRequest{} } +func (m *QueryInverseMappedAccountsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInverseMappedAccountsRequest) ProtoMessage() {} +func (*QueryInverseMappedAccountsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c8e4d79429548821, []int{29} +} +func (m *QueryInverseMappedAccountsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInverseMappedAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInverseMappedAccountsRequest.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 *QueryInverseMappedAccountsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInverseMappedAccountsRequest.Merge(m, src) +} +func (m *QueryInverseMappedAccountsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInverseMappedAccountsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInverseMappedAccountsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInverseMappedAccountsRequest proto.InternalMessageInfo + +func (m *QueryInverseMappedAccountsRequest) GetRemoteAddress() string { if m != nil { - return m.Pagination + return m.RemoteAddress } - return nil + return "" +} + +func (m *QueryInverseMappedAccountsRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type QueryInverseMappedAccountsResponse struct { + LocalAddress string `protobuf:"bytes,1,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` +} + +func (m *QueryInverseMappedAccountsResponse) Reset() { *m = QueryInverseMappedAccountsResponse{} } +func (m *QueryInverseMappedAccountsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInverseMappedAccountsResponse) ProtoMessage() {} +func (*QueryInverseMappedAccountsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c8e4d79429548821, []int{30} +} +func (m *QueryInverseMappedAccountsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInverseMappedAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInverseMappedAccountsResponse.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 *QueryInverseMappedAccountsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInverseMappedAccountsResponse.Merge(m, src) +} +func (m *QueryInverseMappedAccountsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInverseMappedAccountsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInverseMappedAccountsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInverseMappedAccountsResponse proto.InternalMessageInfo + +func (m *QueryInverseMappedAccountsResponse) GetLocalAddress() string { + if m != nil { + return m.LocalAddress + } + return "" } type QueryDenyListRequest struct { @@ -1579,7 +1659,7 @@ func (m *QueryDenyListRequest) Reset() { *m = QueryDenyListRequest{} } func (m *QueryDenyListRequest) String() string { return proto.CompactTextString(m) } func (*QueryDenyListRequest) ProtoMessage() {} func (*QueryDenyListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{29} + return fileDescriptor_c8e4d79429548821, []int{31} } func (m *QueryDenyListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1624,7 +1704,7 @@ func (m *QueryDenyListResponse) Reset() { *m = QueryDenyListResponse{} } func (m *QueryDenyListResponse) String() string { return proto.CompactTextString(m) } func (*QueryDenyListResponse) ProtoMessage() {} func (*QueryDenyListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{30} + return fileDescriptor_c8e4d79429548821, []int{32} } func (m *QueryDenyListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1676,7 +1756,7 @@ func (m *QueryClaimedPercentageRequest) Reset() { *m = QueryClaimedPerce func (m *QueryClaimedPercentageRequest) String() string { return proto.CompactTextString(m) } func (*QueryClaimedPercentageRequest) ProtoMessage() {} func (*QueryClaimedPercentageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{31} + return fileDescriptor_c8e4d79429548821, []int{33} } func (m *QueryClaimedPercentageRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1727,7 +1807,7 @@ func (m *QueryClaimedPercentageResponse) Reset() { *m = QueryClaimedPerc func (m *QueryClaimedPercentageResponse) String() string { return proto.CompactTextString(m) } func (*QueryClaimedPercentageResponse) ProtoMessage() {} func (*QueryClaimedPercentageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c8e4d79429548821, []int{32} + return fileDescriptor_c8e4d79429548821, []int{34} } func (m *QueryClaimedPercentageResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1786,7 +1866,9 @@ func init() { proto.RegisterType((*QueryRedelegationRecordsResponse)(nil), "quicksilver.interchainstaking.v1.QueryRedelegationRecordsResponse") proto.RegisterType((*QueryMappedAccountsRequest)(nil), "quicksilver.interchainstaking.v1.QueryMappedAccountsRequest") proto.RegisterType((*QueryMappedAccountsResponse)(nil), "quicksilver.interchainstaking.v1.QueryMappedAccountsResponse") - proto.RegisterMapType((map[string][]byte)(nil), "quicksilver.interchainstaking.v1.QueryMappedAccountsResponse.RemoteAddressMapEntry") + proto.RegisterMapType((map[string]string)(nil), "quicksilver.interchainstaking.v1.QueryMappedAccountsResponse.RemoteAddressMapEntry") + proto.RegisterType((*QueryInverseMappedAccountsRequest)(nil), "quicksilver.interchainstaking.v1.QueryInverseMappedAccountsRequest") + proto.RegisterType((*QueryInverseMappedAccountsResponse)(nil), "quicksilver.interchainstaking.v1.QueryInverseMappedAccountsResponse") proto.RegisterType((*QueryDenyListRequest)(nil), "quicksilver.interchainstaking.v1.QueryDenyListRequest") proto.RegisterType((*QueryDenyListResponse)(nil), "quicksilver.interchainstaking.v1.QueryDenyListResponse") proto.RegisterType((*QueryClaimedPercentageRequest)(nil), "quicksilver.interchainstaking.v1.QueryClaimedPercentageRequest") @@ -1798,137 +1880,142 @@ func init() { } var fileDescriptor_c8e4d79429548821 = []byte{ - // 2072 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4f, 0x6c, 0x1c, 0x57, - 0x19, 0xcf, 0x5b, 0xc7, 0xb1, 0xfd, 0x39, 0x71, 0xec, 0x97, 0x98, 0x6c, 0x96, 0xb0, 0x76, 0x07, - 0xa9, 0x49, 0x21, 0xd9, 0xc1, 0x4e, 0x05, 0xa9, 0x9b, 0x7f, 0x5e, 0xaf, 0x1d, 0xdc, 0x26, 0xa5, - 0x99, 0xb8, 0x44, 0x4d, 0x2a, 0x2d, 0xe3, 0x9d, 0xa7, 0xf5, 0x28, 0xbb, 0x33, 0x9b, 0x79, 0xb3, - 0x6e, 0x16, 0x2b, 0x88, 0x56, 0xe2, 0xc0, 0x05, 0x81, 0x40, 0x40, 0x39, 0x70, 0xe1, 0x82, 0x90, - 0x7a, 0xa2, 0x17, 0x6e, 0x70, 0x40, 0xaa, 0x10, 0x48, 0x55, 0xcb, 0x01, 0xf5, 0x60, 0x20, 0x29, - 0x07, 0x0e, 0x1c, 0x9a, 0x0b, 0x57, 0x34, 0x6f, 0xbe, 0x37, 0x3b, 0x3b, 0x3b, 0xeb, 0x9d, 0x1d, - 0x2f, 0x6a, 0x4e, 0xd9, 0x79, 0xef, 0x7d, 0xbf, 0xf7, 0xfd, 0x7e, 0xef, 0x7b, 0x7f, 0xbe, 0xcf, - 0x81, 0xb3, 0xf7, 0x9b, 0x66, 0xe5, 0x1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, 0x68, 0x06, 0xa5, 0x21, 0xbc, 0x87, 0x3e, 0x25, 0x70, 0x34, 0x92, 0xbd, 0xd3, - 0x4b, 0x89, 0xdd, 0x8c, 0xab, 0x16, 0xe5, 0x2e, 0xa7, 0x35, 0x47, 0x7a, 0x65, 0x41, 0xef, 0x75, - 0x7a, 0x3b, 0x15, 0x3d, 0x99, 0x71, 0xf8, 0x85, 0x07, 0x75, 0xa7, 0x2b, 0x07, 0x79, 0x48, 0x3f, - 0x21, 0x30, 0x1d, 0xad, 0x58, 0xd0, 0x94, 0x5e, 0x07, 0xa1, 0x7b, 0x25, 0xb5, 0x3d, 0xd2, 0xfe, - 0x86, 0xa0, 0xbd, 0x4e, 0xaf, 0xf5, 0xa7, 0x1d, 0x65, 0xc9, 0x63, 0x69, 0xfe, 0x99, 0xc0, 0x64, - 0xa8, 0xb2, 0x41, 0x5f, 0x18, 0xcc, 0xc3, 0x50, 0x85, 0x26, 0xb7, 0x94, 0xc6, 0x14, 0x79, 0xad, - 0x09, 0x5e, 0x57, 0xe9, 0xe5, 0xf4, 0xcb, 0x29, 0xdc, 0xff, 0x3d, 0x81, 0x71, 0x59, 0x0b, 0xa0, - 0x5f, 0x4d, 0xe8, 0x50, 0xa4, 0x9a, 0x91, 0xfb, 0xda, 0xc0, 0x76, 0xc8, 0x62, 0x45, 0xb0, 0xb8, - 0x44, 0x5f, 0x4c, 0xc1, 0x22, 0x28, 0x36, 0xfc, 0x89, 0xc0, 0xb8, 0x4c, 0xdf, 0x13, 0x53, 0x88, - 0x14, 0x14, 0x12, 0x53, 0x88, 0xd6, 0x09, 0x94, 0x1b, 0x82, 0xc2, 0x35, 0xba, 0x9a, 0xfe, 0xd8, - 0xe0, 0xea, 0x0e, 0x16, 0x27, 0x1e, 0x7a, 0xa7, 0xe4, 0xac, 0x77, 0x0e, 0x77, 0xe5, 0xa0, 0x34, - 0xe9, 0x56, 0xe8, 0x95, 0xbd, 0xe6, 0xae, 0xa6, 0x07, 0x18, 0x02,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a, 0xa5, 0xbf, 0x89, 0x77, 0x65, 0xcf, 0xdc, 0x55, 0xb9, 0x26, 0xe8, 0x2d, 0xd3, 0x2b, - 0xfd, 0xe9, 0x55, 0x7c, 0x90, 0x72, 0x3b, 0x37, 0x0d, 0x67, 0x52, 0xff, 0x25, 0x70, 0xaa, 0x6b, - 0x9a, 0x62, 0x2b, 0x48, 0xa9, 0x9f, 0x06, 0xb2, 0x1b, 0x82, 0xec, 0x2b, 0xf4, 0xfa, 0x3e, 0xc9, - 0xaa, 0x3b, 0xed, 0xca, 0xc2, 0xc3, 0xe2, 0xdd, 0xf7, 0x1f, 0xe5, 0xc9, 0x07, 0x8f, 0xf2, 0xe4, - 0x1f, 0x8f, 0xf2, 0xe4, 0x87, 0x8f, 0xf3, 0x07, 0x3e, 0x78, 0x9c, 0x3f, 0xf0, 0xb7, 0xc7, 0xf9, - 0x03, 0x77, 0x96, 0x43, 0xc9, 0x7f, 0x68, 0xc6, 0x73, 0x22, 0x0b, 0x0d, 0xbb, 0xf0, 0x20, 0xc6, - 0x09, 0x51, 0x1b, 0xd8, 0x3c, 0x24, 0xfe, 0x93, 0xd7, 0xf9, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, - 0x94, 0xad, 0xd5, 0x69, 0x3d, 0x27, 0x00, 0x00, + // 2158 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x41, 0x6c, 0x1c, 0x57, + 0x19, 0xce, 0x5b, 0xc7, 0xb1, 0xfd, 0x3b, 0x76, 0xec, 0x97, 0x98, 0x6c, 0x96, 0xb0, 0x76, 0xa6, + 0x52, 0x93, 0x42, 0xb2, 0x83, 0x9d, 0x0a, 0x52, 0x37, 0x69, 0xe2, 0xf5, 0xda, 0xc1, 0x6d, 0x52, + 0x92, 0x89, 0x43, 0xd4, 0xa4, 0x68, 0x19, 0xcf, 0x3e, 0xad, 0x47, 0xd9, 0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, 0xba, 0x76, 0xd1, 0xd5, 0x9d, 0x32, 0x73, 0xd3, + 0x23, 0x42, 0xee, 0x29, 0xf9, 0x66, 0xdd, 0x5e, 0x17, 0xe3, 0xf4, 0x55, 0x98, 0xaa, 0x5b, 0x1b, + 0xb6, 0x55, 0x32, 0xad, 0x72, 0x51, 0xaf, 0xda, 0x75, 0xcb, 0x4d, 0x8f, 0xce, 0x91, 0x33, 0xe3, + 0x0b, 0x27, 0x72, 0x08, 0xee, 0xc5, 0x65, 0x0e, 0xe3, 0x32, 0xb7, 0x6c, 0x9b, 0x56, 0xfe, 0xa0, + 0xe7, 0xa8, 0x76, 0x24, 0x30, 0x5c, 0x12, 0x76, 0xb4, 0x00, 0x13, 0x0f, 0xea, 0xac, 0xce, 0x4a, + 0x12, 0x68, 0x2c, 0x1e, 0xd0, 0x61, 0xdf, 0x0a, 0x51, 0x4e, 0x43, 0x03, 0xb8, 0x68, 0x08, 0x1c, + 0x98, 0x23, 0x67, 0x26, 0xb4, 0xc9, 0x60, 0x78, 0x59, 0x4c, 0x3c, 0x05, 0x68, 0x88, 0xb3, 0xc6, + 0xc5, 0xac, 0x71, 0x7f, 0xcc, 0x9f, 0x92, 0x83, 0xa3, 0xbe, 0x51, 0xd1, 0x61, 0x86, 0xed, 0xc8, + 0x99, 0x87, 0xc5, 0xcc, 0x69, 0xff, 0x95, 0x26, 0xde, 0x88, 0xf9, 0xca, 0x3d, 0x98, 0xbe, 0xe9, + 0x6d, 0xd6, 0xbb, 0xb6, 0xc5, 0xb8, 0xc6, 0x1e, 0xd4, 0x19, 0x77, 0xe9, 0x2a, 0x40, 0x63, 0xcf, + 0x8a, 0xb8, 0x1d, 0x5f, 0x78, 0xbe, 0x89, 0x93, 0x9f, 0x1b, 0x24, 0xb3, 0x1b, 0x7a, 0x99, 0xa1, + 0xad, 0x16, 0xb2, 0x54, 0xfe, 0x49, 0x80, 0x86, 0xd1, 0x79, 0xcd, 0xb6, 0x38, 0xa3, 0x79, 0x18, + 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, 0x5c, 0x53, + 0xfe, 0x97, 0xc0, 0xc9, 0xb6, 0x65, 0xf2, 0xdb, 0x41, 0x73, 0xe1, 0x59, 0x20, 0xbb, 0x2e, 0xc8, + 0xbe, 0x4e, 0xaf, 0xed, 0x93, 0xac, 0xba, 0xd3, 0xe8, 0xb1, 0xec, 0xe6, 0xef, 0x7d, 0xf0, 0x38, + 0x4b, 0x3e, 0x7c, 0x9c, 0x25, 0x7f, 0x7f, 0x9c, 0x25, 0x3f, 0x7a, 0x92, 0x3d, 0xf0, 0xe1, 0x93, + 0xec, 0x81, 0xbf, 0x3c, 0xc9, 0x1e, 0xb8, 0xbb, 0x14, 0x6a, 0x83, 0x84, 0x56, 0x3c, 0x27, 0xea, + 0xf1, 0xb0, 0x0b, 0x0f, 0x23, 0x9c, 0x10, 0x5d, 0x92, 0x8d, 0x43, 0xe2, 0xbf, 0xca, 0x9d, 0xff, + 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x73, 0x09, 0x16, 0x83, 0x28, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1975,9 +2062,11 @@ type QueryClient interface { // MappedAccounts provides data on the mapped accounts for a given user over // different host chains. MappedAccounts(ctx context.Context, in *QueryMappedAccountsRequest, opts ...grpc.CallOption) (*QueryMappedAccountsResponse, error) + InverseMappedAccounts(ctx context.Context, in *QueryInverseMappedAccountsRequest, opts ...grpc.CallOption) (*QueryInverseMappedAccountsResponse, error) // CLaimedPercentage provides data on the claimed percentage for a given zone ClaimedPercentage(ctx context.Context, in *QueryClaimedPercentageRequest, opts ...grpc.CallOption) (*QueryClaimedPercentageResponse, error) - // ClaimedPercentageByClaimType provides data on the claimed percentage of a given claim type in a given zone + // ClaimedPercentageByClaimType provides data on the claimed percentage of a + // given claim type in a given zone ClaimedPercentageByClaimType(ctx context.Context, in *QueryClaimedPercentageRequest, opts ...grpc.CallOption) (*QueryClaimedPercentageResponse, error) } @@ -2133,6 +2222,15 @@ func (c *queryClient) MappedAccounts(ctx context.Context, in *QueryMappedAccount return out, nil } +func (c *queryClient) InverseMappedAccounts(ctx context.Context, in *QueryInverseMappedAccountsRequest, opts ...grpc.CallOption) (*QueryInverseMappedAccountsResponse, error) { + out := new(QueryInverseMappedAccountsResponse) + err := c.cc.Invoke(ctx, "/quicksilver.interchainstaking.v1.Query/InverseMappedAccounts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) ClaimedPercentage(ctx context.Context, in *QueryClaimedPercentageRequest, opts ...grpc.CallOption) (*QueryClaimedPercentageResponse, error) { out := new(QueryClaimedPercentageResponse) err := c.cc.Invoke(ctx, "/quicksilver.interchainstaking.v1.Query/ClaimedPercentage", in, out, opts...) @@ -2185,9 +2283,11 @@ type QueryServer interface { // MappedAccounts provides data on the mapped accounts for a given user over // different host chains. MappedAccounts(context.Context, *QueryMappedAccountsRequest) (*QueryMappedAccountsResponse, error) + InverseMappedAccounts(context.Context, *QueryInverseMappedAccountsRequest) (*QueryInverseMappedAccountsResponse, error) // CLaimedPercentage provides data on the claimed percentage for a given zone ClaimedPercentage(context.Context, *QueryClaimedPercentageRequest) (*QueryClaimedPercentageResponse, error) - // ClaimedPercentageByClaimType provides data on the claimed percentage of a given claim type in a given zone + // ClaimedPercentageByClaimType provides data on the claimed percentage of a + // given claim type in a given zone ClaimedPercentageByClaimType(context.Context, *QueryClaimedPercentageRequest) (*QueryClaimedPercentageResponse, error) } @@ -2243,6 +2343,9 @@ func (*UnimplementedQueryServer) RedelegationRecords(ctx context.Context, req *Q func (*UnimplementedQueryServer) MappedAccounts(ctx context.Context, req *QueryMappedAccountsRequest) (*QueryMappedAccountsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method MappedAccounts not implemented") } +func (*UnimplementedQueryServer) InverseMappedAccounts(ctx context.Context, req *QueryInverseMappedAccountsRequest) (*QueryInverseMappedAccountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InverseMappedAccounts not implemented") +} func (*UnimplementedQueryServer) ClaimedPercentage(ctx context.Context, req *QueryClaimedPercentageRequest) (*QueryClaimedPercentageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClaimedPercentage not implemented") } @@ -2542,6 +2645,24 @@ func _Query_MappedAccounts_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _Query_InverseMappedAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInverseMappedAccountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InverseMappedAccounts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/quicksilver.interchainstaking.v1.Query/InverseMappedAccounts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InverseMappedAccounts(ctx, req.(*QueryInverseMappedAccountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_ClaimedPercentage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryClaimedPercentageRequest) if err := dec(in); err != nil { @@ -2646,6 +2767,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "MappedAccounts", Handler: _Query_MappedAccounts_Handler, }, + { + MethodName: "InverseMappedAccounts", + Handler: _Query_InverseMappedAccounts_Handler, + }, { MethodName: "ClaimedPercentage", Handler: _Query_ClaimedPercentage_Handler, @@ -3889,18 +4014,6 @@ func (m *QueryMappedAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, err _ = i var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } if len(m.Address) > 0 { i -= len(m.Address) copy(dAtA[i:], m.Address) @@ -3931,29 +4044,15 @@ func (m *QueryMappedAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, er _ = i var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } if len(m.RemoteAddressMap) > 0 { for k := range m.RemoteAddressMap { v := m.RemoteAddressMap[k] baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintQuery(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintQuery(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 i -= len(k) copy(dAtA[i:], k) i = encodeVarintQuery(dAtA, i, uint64(len(k))) @@ -3967,6 +4066,73 @@ func (m *QueryMappedAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } +func (m *QueryInverseMappedAccountsRequest) 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 *QueryInverseMappedAccountsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInverseMappedAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + 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] = 0x12 + } + if len(m.RemoteAddress) > 0 { + i -= len(m.RemoteAddress) + copy(dAtA[i:], m.RemoteAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.RemoteAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryInverseMappedAccountsResponse) 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 *QueryInverseMappedAccountsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInverseMappedAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LocalAddress) > 0 { + i -= len(m.LocalAddress) + copy(dAtA[i:], m.LocalAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.LocalAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *QueryDenyListRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4612,10 +4778,6 @@ func (m *QueryMappedAccountsRequest) Size() (n int) { 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 } @@ -4629,16 +4791,38 @@ func (m *QueryMappedAccountsResponse) Size() (n int) { for k, v := range m.RemoteAddressMap { _ = k _ = v - l = 0 - if len(v) > 0 { - l = 1 + len(v) + sovQuery(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l + mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + 1 + len(v) + sovQuery(uint64(len(v))) n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) } } - if m.Pagination != nil { - l = m.Pagination.Size() + return n +} + +func (m *QueryInverseMappedAccountsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RemoteAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryInverseMappedAccountsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.LocalAddress) + if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n @@ -8080,42 +8264,6 @@ func (m *QueryMappedAccountsRequest) Unmarshal(dAtA []byte) error { } m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8196,10 +8344,10 @@ func (m *QueryMappedAccountsResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RemoteAddressMap == nil { - m.RemoteAddressMap = make(map[string][]byte) + m.RemoteAddressMap = make(map[string]string) } var mapkey string - mapvalue := []byte{} + var mapvalue string for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -8248,7 +8396,7 @@ func (m *QueryMappedAccountsResponse) Unmarshal(dAtA []byte) error { mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { - var mapbyteLen uint64 + var stringLenmapvalue uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8258,25 +8406,24 @@ func (m *QueryMappedAccountsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { return ErrInvalidLengthQuery } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { return ErrInvalidLengthQuery } - if postbytesIndex > l { + if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue } else { iNdEx = entryPreIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -8294,11 +8441,61 @@ func (m *QueryMappedAccountsResponse) Unmarshal(dAtA []byte) error { } m.RemoteAddressMap[mapkey] = mapvalue iNdEx = postIndex - case 2: + 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 *QueryInverseMappedAccountsRequest) 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: QueryInverseMappedAccountsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInverseMappedAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -8308,27 +8505,137 @@ func (m *QueryMappedAccountsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} + m.RemoteAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + 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 + 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 *QueryInverseMappedAccountsResponse) 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: QueryInverseMappedAccountsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInverseMappedAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAddress", 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.LocalAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/interchainstaking/types/query.pb.gw.go b/x/interchainstaking/types/query.pb.gw.go index fcc3b21a0..faec3a7f2 100644 --- a/x/interchainstaking/types/query.pb.gw.go +++ b/x/interchainstaking/types/query.pb.gw.go @@ -1018,10 +1018,6 @@ func local_request_Query_RedelegationRecords_0(ctx context.Context, marshaler ru } -var ( - filter_Query_MappedAccounts_0 = &utilities.DoubleArray{Encoding: map[string]int{"address": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - func request_Query_MappedAccounts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryMappedAccountsRequest var metadata runtime.ServerMetadata @@ -1044,13 +1040,6 @@ func request_Query_MappedAccounts_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MappedAccounts_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.MappedAccounts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -1078,14 +1067,83 @@ func local_request_Query_MappedAccounts_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + msg, err := server.MappedAccounts(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_InverseMappedAccounts_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInverseMappedAccountsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["chain_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_id") } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MappedAccounts_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + + protoReq.ChainId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_id", err) } - msg, err := server.MappedAccounts(ctx, &protoReq) + val, ok = pathParams["remote_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "remote_address") + } + + protoReq.RemoteAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "remote_address", err) + } + + msg, err := client.InverseMappedAccounts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_InverseMappedAccounts_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryInverseMappedAccountsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["chain_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_id") + } + + protoReq.ChainId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_id", err) + } + + val, ok = pathParams["remote_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "remote_address") + } + + protoReq.RemoteAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "remote_address", err) + } + + msg, err := server.InverseMappedAccounts(ctx, &protoReq) return msg, metadata, err } @@ -1618,6 +1676,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_InverseMappedAccounts_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_InverseMappedAccounts_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_InverseMappedAccounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ClaimedPercentage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2025,6 +2106,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_InverseMappedAccounts_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_InverseMappedAccounts_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_InverseMappedAccounts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ClaimedPercentage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2099,7 +2200,9 @@ var ( pattern_Query_RedelegationRecords_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", "redelegation_records"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_MappedAccounts_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", "mapped_addresses", "address"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_MappedAccounts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"quicksilver", "interchainstaking", "v1", "mapped_addresses", "local", "address"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Query_InverseMappedAccounts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"quicksilver", "interchainstaking", "v1", "mapped_addresses", "remote", "chain_id", "remote_address"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_ClaimedPercentage_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", "claimed_percentage", "chain_id"}, "", runtime.AssumeColonVerbOpt(true))) @@ -2139,6 +2242,8 @@ var ( forward_Query_MappedAccounts_0 = runtime.ForwardResponseMessage + forward_Query_InverseMappedAccounts_0 = runtime.ForwardResponseMessage + forward_Query_ClaimedPercentage_0 = runtime.ForwardResponseMessage forward_Query_ClaimedPercentageByClaimType_0 = runtime.ForwardResponseMessage