@uniswap/client-data-api 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
2
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
5
5
  */
@@ -221,6 +221,19 @@ export declare const listTopPools: {
221
221
  readonly typeName: "data.v1.DataApiService";
222
222
  };
223
223
  };
224
+ /**
225
+ * @generated from rpc data.v1.DataApiService.ListTopTokens
226
+ */
227
+ export declare const listTopTokens: {
228
+ readonly localName: "listTopTokens";
229
+ readonly name: "ListTopTokens";
230
+ readonly kind: MethodKind.Unary;
231
+ readonly I: typeof ListTopTokensRequest;
232
+ readonly O: typeof ListTopTokensResponse;
233
+ readonly service: {
234
+ readonly typeName: "data.v1.DataApiService";
235
+ };
236
+ };
224
237
  /**
225
238
  * @generated from rpc data.v1.DataApiService.GetProtocolStats
226
239
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
6
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
9
9
  */
@@ -225,6 +225,19 @@ export const listTopPools = {
225
225
  typeName: "data.v1.DataApiService"
226
226
  }
227
227
  };
228
+ /**
229
+ * @generated from rpc data.v1.DataApiService.ListTopTokens
230
+ */
231
+ export const listTopTokens = {
232
+ localName: "listTopTokens",
233
+ name: "ListTopTokens",
234
+ kind: MethodKind.Unary,
235
+ I: ListTopTokensRequest,
236
+ O: ListTopTokensResponse,
237
+ service: {
238
+ typeName: "data.v1.DataApiService"
239
+ }
240
+ };
228
241
  /**
229
242
  * @generated from rpc data.v1.DataApiService.GetProtocolStats
230
243
  */
@@ -1,4 +1,4 @@
1
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
1
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.DataApiService
@@ -159,6 +159,15 @@ export declare const DataApiService: {
159
159
  readonly O: typeof ListTopPoolsResponse;
160
160
  readonly kind: MethodKind.Unary;
161
161
  };
162
+ /**
163
+ * @generated from rpc data.v1.DataApiService.ListTopTokens
164
+ */
165
+ readonly listTopTokens: {
166
+ readonly name: "ListTopTokens";
167
+ readonly I: typeof ListTopTokensRequest;
168
+ readonly O: typeof ListTopTokensResponse;
169
+ readonly kind: MethodKind.Unary;
170
+ };
162
171
  /**
163
172
  * @generated from rpc data.v1.DataApiService.GetProtocolStats
164
173
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
5
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, InvokeTokenFactorySubgraphSyncerRequest, InvokeTokenFactorySubgraphSyncerResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.DataApiService
@@ -163,6 +163,15 @@ export const DataApiService = {
163
163
  O: ListTopPoolsResponse,
164
164
  kind: MethodKind.Unary,
165
165
  },
166
+ /**
167
+ * @generated from rpc data.v1.DataApiService.ListTopTokens
168
+ */
169
+ listTopTokens: {
170
+ name: "ListTopTokens",
171
+ I: ListTopTokensRequest,
172
+ O: ListTopTokensResponse,
173
+ kind: MethodKind.Unary,
174
+ },
166
175
  /**
167
176
  * @generated from rpc data.v1.DataApiService.GetProtocolStats
168
177
  */
@@ -57,6 +57,47 @@ export declare enum TopPoolsOrderBy {
57
57
  */
58
58
  REWARD_APR = 5
59
59
  }
60
+ /**
61
+ * @generated from enum data.v1.TopTokensOrderBy
62
+ */
63
+ export declare enum TopTokensOrderBy {
64
+ /**
65
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_UNSPECIFIED = 0;
66
+ */
67
+ UNSPECIFIED = 0,
68
+ /**
69
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_FDV = 1;
70
+ */
71
+ FDV = 1,
72
+ /**
73
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1H = 2;
74
+ */
75
+ VOLUME_1H = 2,
76
+ /**
77
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1D = 3;
78
+ */
79
+ VOLUME_1D = 3,
80
+ /**
81
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_7D = 4;
82
+ */
83
+ VOLUME_7D = 4,
84
+ /**
85
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_30D = 5;
86
+ */
87
+ VOLUME_30D = 5,
88
+ /**
89
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1Y = 6;
90
+ */
91
+ VOLUME_1Y = 6,
92
+ /**
93
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
94
+ */
95
+ PRICE_CHANGE_1H = 7,
96
+ /**
97
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
98
+ */
99
+ PRICE_CHANGE_1D = 8
100
+ }
60
101
  /**
61
102
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
62
103
  */
@@ -1007,6 +1048,62 @@ export declare class ListTopPoolsResponse extends Message<ListTopPoolsResponse>
1007
1048
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopPoolsResponse;
1008
1049
  static equals(a: ListTopPoolsResponse | PlainMessage<ListTopPoolsResponse> | undefined, b: ListTopPoolsResponse | PlainMessage<ListTopPoolsResponse> | undefined): boolean;
1009
1050
  }
1051
+ /**
1052
+ * @generated from message data.v1.ListTopTokensRequest
1053
+ */
1054
+ export declare class ListTopTokensRequest extends Message<ListTopTokensRequest> {
1055
+ /**
1056
+ * @generated from field: repeated uint32 chain_ids = 1;
1057
+ */
1058
+ chainIds: number[];
1059
+ /**
1060
+ * @generated from field: optional data.v1.TopTokensOrderBy order_by = 2;
1061
+ */
1062
+ orderBy?: TopTokensOrderBy;
1063
+ /**
1064
+ * default false
1065
+ *
1066
+ * @generated from field: optional bool ascending = 3;
1067
+ */
1068
+ ascending?: boolean;
1069
+ /**
1070
+ * @generated from field: optional uint32 page_size = 4;
1071
+ */
1072
+ pageSize?: number;
1073
+ /**
1074
+ * @generated from field: optional string page_token = 5;
1075
+ */
1076
+ pageToken?: string;
1077
+ constructor(data?: PartialMessage<ListTopTokensRequest>);
1078
+ static readonly runtime: typeof proto3;
1079
+ static readonly typeName = "data.v1.ListTopTokensRequest";
1080
+ static readonly fields: FieldList;
1081
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopTokensRequest;
1082
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopTokensRequest;
1083
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopTokensRequest;
1084
+ static equals(a: ListTopTokensRequest | PlainMessage<ListTopTokensRequest> | undefined, b: ListTopTokensRequest | PlainMessage<ListTopTokensRequest> | undefined): boolean;
1085
+ }
1086
+ /**
1087
+ * @generated from message data.v1.ListTopTokensResponse
1088
+ */
1089
+ export declare class ListTopTokensResponse extends Message<ListTopTokensResponse> {
1090
+ /**
1091
+ * @generated from field: repeated data.v1.Token tokens = 1;
1092
+ */
1093
+ tokens: Token[];
1094
+ /**
1095
+ * @generated from field: optional string next_page_token = 2;
1096
+ */
1097
+ nextPageToken?: string;
1098
+ constructor(data?: PartialMessage<ListTopTokensResponse>);
1099
+ static readonly runtime: typeof proto3;
1100
+ static readonly typeName = "data.v1.ListTopTokensResponse";
1101
+ static readonly fields: FieldList;
1102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopTokensResponse;
1103
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopTokensResponse;
1104
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopTokensResponse;
1105
+ static equals(a: ListTopTokensResponse | PlainMessage<ListTopTokensResponse> | undefined, b: ListTopTokensResponse | PlainMessage<ListTopTokensResponse> | undefined): boolean;
1106
+ }
1010
1107
  /**
1011
1108
  * @generated from message data.v1.GetProtocolStatsRequest
1012
1109
  */
@@ -82,6 +82,60 @@ proto3.util.setEnumType(TopPoolsOrderBy, "data.v1.TopPoolsOrderBy", [
82
82
  { no: 4, name: "TOP_POOLS_ORDER_BY_APR" },
83
83
  { no: 5, name: "TOP_POOLS_ORDER_BY_REWARD_APR" },
84
84
  ]);
85
+ /**
86
+ * @generated from enum data.v1.TopTokensOrderBy
87
+ */
88
+ export var TopTokensOrderBy;
89
+ (function (TopTokensOrderBy) {
90
+ /**
91
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_UNSPECIFIED = 0;
92
+ */
93
+ TopTokensOrderBy[TopTokensOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
94
+ /**
95
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_FDV = 1;
96
+ */
97
+ TopTokensOrderBy[TopTokensOrderBy["FDV"] = 1] = "FDV";
98
+ /**
99
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1H = 2;
100
+ */
101
+ TopTokensOrderBy[TopTokensOrderBy["VOLUME_1H"] = 2] = "VOLUME_1H";
102
+ /**
103
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1D = 3;
104
+ */
105
+ TopTokensOrderBy[TopTokensOrderBy["VOLUME_1D"] = 3] = "VOLUME_1D";
106
+ /**
107
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_7D = 4;
108
+ */
109
+ TopTokensOrderBy[TopTokensOrderBy["VOLUME_7D"] = 4] = "VOLUME_7D";
110
+ /**
111
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_30D = 5;
112
+ */
113
+ TopTokensOrderBy[TopTokensOrderBy["VOLUME_30D"] = 5] = "VOLUME_30D";
114
+ /**
115
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1Y = 6;
116
+ */
117
+ TopTokensOrderBy[TopTokensOrderBy["VOLUME_1Y"] = 6] = "VOLUME_1Y";
118
+ /**
119
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
120
+ */
121
+ TopTokensOrderBy[TopTokensOrderBy["PRICE_CHANGE_1H"] = 7] = "PRICE_CHANGE_1H";
122
+ /**
123
+ * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
124
+ */
125
+ TopTokensOrderBy[TopTokensOrderBy["PRICE_CHANGE_1D"] = 8] = "PRICE_CHANGE_1D";
126
+ })(TopTokensOrderBy || (TopTokensOrderBy = {}));
127
+ // Retrieve enum metadata with: proto3.getEnumType(TopTokensOrderBy)
128
+ proto3.util.setEnumType(TopTokensOrderBy, "data.v1.TopTokensOrderBy", [
129
+ { no: 0, name: "TOP_TOKENS_ORDER_BY_UNSPECIFIED" },
130
+ { no: 1, name: "TOP_TOKENS_ORDER_BY_FDV" },
131
+ { no: 2, name: "TOP_TOKENS_ORDER_BY_VOLUME_1H" },
132
+ { no: 3, name: "TOP_TOKENS_ORDER_BY_VOLUME_1D" },
133
+ { no: 4, name: "TOP_TOKENS_ORDER_BY_VOLUME_7D" },
134
+ { no: 5, name: "TOP_TOKENS_ORDER_BY_VOLUME_30D" },
135
+ { no: 6, name: "TOP_TOKENS_ORDER_BY_VOLUME_1Y" },
136
+ { no: 7, name: "TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1H" },
137
+ { no: 8, name: "TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1D" },
138
+ ]);
85
139
  /**
86
140
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
87
141
  */
@@ -1431,6 +1485,71 @@ ListTopPoolsResponse.fields = proto3.util.newFieldList(() => [
1431
1485
  { no: 1, name: "pools", kind: "message", T: Pool$1, repeated: true },
1432
1486
  { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1433
1487
  ]);
1488
+ /**
1489
+ * @generated from message data.v1.ListTopTokensRequest
1490
+ */
1491
+ export class ListTopTokensRequest extends Message {
1492
+ constructor(data) {
1493
+ super();
1494
+ /**
1495
+ * @generated from field: repeated uint32 chain_ids = 1;
1496
+ */
1497
+ this.chainIds = [];
1498
+ proto3.util.initPartial(data, this);
1499
+ }
1500
+ static fromBinary(bytes, options) {
1501
+ return new ListTopTokensRequest().fromBinary(bytes, options);
1502
+ }
1503
+ static fromJson(jsonValue, options) {
1504
+ return new ListTopTokensRequest().fromJson(jsonValue, options);
1505
+ }
1506
+ static fromJsonString(jsonString, options) {
1507
+ return new ListTopTokensRequest().fromJsonString(jsonString, options);
1508
+ }
1509
+ static equals(a, b) {
1510
+ return proto3.util.equals(ListTopTokensRequest, a, b);
1511
+ }
1512
+ }
1513
+ ListTopTokensRequest.runtime = proto3;
1514
+ ListTopTokensRequest.typeName = "data.v1.ListTopTokensRequest";
1515
+ ListTopTokensRequest.fields = proto3.util.newFieldList(() => [
1516
+ { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1517
+ { no: 2, name: "order_by", kind: "enum", T: proto3.getEnumType(TopTokensOrderBy), opt: true },
1518
+ { no: 3, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1519
+ { no: 4, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1520
+ { no: 5, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1521
+ ]);
1522
+ /**
1523
+ * @generated from message data.v1.ListTopTokensResponse
1524
+ */
1525
+ export class ListTopTokensResponse extends Message {
1526
+ constructor(data) {
1527
+ super();
1528
+ /**
1529
+ * @generated from field: repeated data.v1.Token tokens = 1;
1530
+ */
1531
+ this.tokens = [];
1532
+ proto3.util.initPartial(data, this);
1533
+ }
1534
+ static fromBinary(bytes, options) {
1535
+ return new ListTopTokensResponse().fromBinary(bytes, options);
1536
+ }
1537
+ static fromJson(jsonValue, options) {
1538
+ return new ListTopTokensResponse().fromJson(jsonValue, options);
1539
+ }
1540
+ static fromJsonString(jsonString, options) {
1541
+ return new ListTopTokensResponse().fromJsonString(jsonString, options);
1542
+ }
1543
+ static equals(a, b) {
1544
+ return proto3.util.equals(ListTopTokensResponse, a, b);
1545
+ }
1546
+ }
1547
+ ListTopTokensResponse.runtime = proto3;
1548
+ ListTopTokensResponse.typeName = "data.v1.ListTopTokensResponse";
1549
+ ListTopTokensResponse.fields = proto3.util.newFieldList(() => [
1550
+ { no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
1551
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1552
+ ]);
1434
1553
  /**
1435
1554
  * @generated from message data.v1.GetProtocolStatsRequest
1436
1555
  */
@@ -0,0 +1,28 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
3
+ /**
4
+ * @generated from rpc data.v1.AuctionService.GetBidsByWallet
5
+ */
6
+ export declare const getBidsByWallet: {
7
+ readonly localName: "getBidsByWallet";
8
+ readonly name: "GetBidsByWallet";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof GetBidsByWalletRequest;
11
+ readonly O: typeof GetBidsByWalletResponse;
12
+ readonly service: {
13
+ readonly typeName: "data.v1.AuctionService";
14
+ };
15
+ };
16
+ /**
17
+ * @generated from rpc data.v1.AuctionService.GetBids
18
+ */
19
+ export declare const getBids: {
20
+ readonly localName: "getBids";
21
+ readonly name: "GetBids";
22
+ readonly kind: MethodKind.Unary;
23
+ readonly I: typeof GetBidsRequest;
24
+ readonly O: typeof GetBidsResponse;
25
+ readonly service: {
26
+ readonly typeName: "data.v1.AuctionService";
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
2
+ // @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
7
+ /**
8
+ * @generated from rpc data.v1.AuctionService.GetBidsByWallet
9
+ */
10
+ export const getBidsByWallet = {
11
+ localName: "getBidsByWallet",
12
+ name: "GetBidsByWallet",
13
+ kind: MethodKind.Unary,
14
+ I: GetBidsByWalletRequest,
15
+ O: GetBidsByWalletResponse,
16
+ service: {
17
+ typeName: "data.v1.AuctionService"
18
+ }
19
+ };
20
+ /**
21
+ * @generated from rpc data.v1.AuctionService.GetBids
22
+ */
23
+ export const getBids = {
24
+ localName: "getBids",
25
+ name: "GetBids",
26
+ kind: MethodKind.Unary,
27
+ I: GetBidsRequest,
28
+ O: GetBidsResponse,
29
+ service: {
30
+ typeName: "data.v1.AuctionService"
31
+ }
32
+ };
@@ -0,0 +1,28 @@
1
+ import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service data.v1.AuctionService
5
+ */
6
+ export declare const AuctionService: {
7
+ readonly typeName: "data.v1.AuctionService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc data.v1.AuctionService.GetBidsByWallet
11
+ */
12
+ readonly getBidsByWallet: {
13
+ readonly name: "GetBidsByWallet";
14
+ readonly I: typeof GetBidsByWalletRequest;
15
+ readonly O: typeof GetBidsByWalletResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ };
18
+ /**
19
+ * @generated from rpc data.v1.AuctionService.GetBids
20
+ */
21
+ readonly getBids: {
22
+ readonly name: "GetBids";
23
+ readonly I: typeof GetBidsRequest;
24
+ readonly O: typeof GetBidsResponse;
25
+ readonly kind: MethodKind.Unary;
26
+ };
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
2
+ // @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service data.v1.AuctionService
9
+ */
10
+ export const AuctionService = {
11
+ typeName: "data.v1.AuctionService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc data.v1.AuctionService.GetBidsByWallet
15
+ */
16
+ getBidsByWallet: {
17
+ name: "GetBidsByWallet",
18
+ I: GetBidsByWalletRequest,
19
+ O: GetBidsByWalletResponse,
20
+ kind: MethodKind.Unary,
21
+ },
22
+ /**
23
+ * @generated from rpc data.v1.AuctionService.GetBids
24
+ */
25
+ getBids: {
26
+ name: "GetBids",
27
+ I: GetBidsRequest,
28
+ O: GetBidsResponse,
29
+ kind: MethodKind.Unary,
30
+ },
31
+ }
32
+ };
@@ -0,0 +1,188 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * Request to fetch all bids by a wallet.
5
+ *
6
+ * @generated from message data.v1.GetBidsByWalletRequest
7
+ */
8
+ export declare class GetBidsByWalletRequest extends Message<GetBidsByWalletRequest> {
9
+ /**
10
+ * Wallet address (lowercased, hex with 0x prefix).
11
+ *
12
+ * @generated from field: string wallet_id = 1;
13
+ */
14
+ walletId: string;
15
+ /**
16
+ * Optional: filter by auction id if desired.
17
+ *
18
+ * @generated from field: string auction_id = 2;
19
+ */
20
+ auctionId: string;
21
+ /**
22
+ * Optional: pagination
23
+ *
24
+ * @generated from field: int32 page_size = 3;
25
+ */
26
+ pageSize: number;
27
+ /**
28
+ * @generated from field: string page_token = 4;
29
+ */
30
+ pageToken: string;
31
+ constructor(data?: PartialMessage<GetBidsByWalletRequest>);
32
+ static readonly runtime: typeof proto3;
33
+ static readonly typeName = "data.v1.GetBidsByWalletRequest";
34
+ static readonly fields: FieldList;
35
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsByWalletRequest;
36
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsByWalletRequest;
37
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsByWalletRequest;
38
+ static equals(a: GetBidsByWalletRequest | PlainMessage<GetBidsByWalletRequest> | undefined, b: GetBidsByWalletRequest | PlainMessage<GetBidsByWalletRequest> | undefined): boolean;
39
+ }
40
+ /**
41
+ * A single bid resource.
42
+ *
43
+ * @generated from message data.v1.Bid
44
+ */
45
+ export declare class Bid extends Message<Bid> {
46
+ /**
47
+ * @generated from field: string bid_id = 1;
48
+ */
49
+ bidId: string;
50
+ /**
51
+ * @generated from field: string auction_id = 2;
52
+ */
53
+ auctionId: string;
54
+ /**
55
+ * @generated from field: string wallet_id = 3;
56
+ */
57
+ walletId: string;
58
+ /**
59
+ * @generated from field: string tx_hash = 4;
60
+ */
61
+ txHash: string;
62
+ /**
63
+ * raw integer (string to avoid uint256 overflow)
64
+ *
65
+ * @generated from field: string amount = 5;
66
+ */
67
+ amount: string;
68
+ /**
69
+ * raw integer (X96 or other format)
70
+ *
71
+ * @generated from field: string max_price = 6;
72
+ */
73
+ maxPrice: string;
74
+ /**
75
+ * ISO 8601 / RFC 3339
76
+ *
77
+ * @generated from field: string created_at = 7;
78
+ */
79
+ createdAt: string;
80
+ /**
81
+ * e.g. "active", "withdrawn", "claimed"
82
+ *
83
+ * @generated from field: string status = 8;
84
+ */
85
+ status: string;
86
+ constructor(data?: PartialMessage<Bid>);
87
+ static readonly runtime: typeof proto3;
88
+ static readonly typeName = "data.v1.Bid";
89
+ static readonly fields: FieldList;
90
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Bid;
91
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Bid;
92
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Bid;
93
+ static equals(a: Bid | PlainMessage<Bid> | undefined, b: Bid | PlainMessage<Bid> | undefined): boolean;
94
+ }
95
+ /**
96
+ * Response containing all bids for a wallet.
97
+ *
98
+ * @generated from message data.v1.GetBidsByWalletResponse
99
+ */
100
+ export declare class GetBidsByWalletResponse extends Message<GetBidsByWalletResponse> {
101
+ /**
102
+ * @generated from field: repeated data.v1.Bid bids = 1;
103
+ */
104
+ bids: Bid[];
105
+ /**
106
+ * Pagination token for next page.
107
+ *
108
+ * @generated from field: string next_page_token = 2;
109
+ */
110
+ nextPageToken: string;
111
+ constructor(data?: PartialMessage<GetBidsByWalletResponse>);
112
+ static readonly runtime: typeof proto3;
113
+ static readonly typeName = "data.v1.GetBidsByWalletResponse";
114
+ static readonly fields: FieldList;
115
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsByWalletResponse;
116
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsByWalletResponse;
117
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsByWalletResponse;
118
+ static equals(a: GetBidsByWalletResponse | PlainMessage<GetBidsByWalletResponse> | undefined, b: GetBidsByWalletResponse | PlainMessage<GetBidsByWalletResponse> | undefined): boolean;
119
+ }
120
+ /**
121
+ * Request to fetch bids by auction ID.
122
+ *
123
+ * @generated from message data.v1.GetBidsRequest
124
+ */
125
+ export declare class GetBidsRequest extends Message<GetBidsRequest> {
126
+ /**
127
+ * @generated from field: string auction_id = 1;
128
+ */
129
+ auctionId: string;
130
+ constructor(data?: PartialMessage<GetBidsRequest>);
131
+ static readonly runtime: typeof proto3;
132
+ static readonly typeName = "data.v1.GetBidsRequest";
133
+ static readonly fields: FieldList;
134
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsRequest;
135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsRequest;
136
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsRequest;
137
+ static equals(a: GetBidsRequest | PlainMessage<GetBidsRequest> | undefined, b: GetBidsRequest | PlainMessage<GetBidsRequest> | undefined): boolean;
138
+ }
139
+ /**
140
+ * A single bid concentration point.
141
+ *
142
+ * @generated from message data.v1.BidConcentrationPoint
143
+ */
144
+ export declare class BidConcentrationPoint extends Message<BidConcentrationPoint> {
145
+ /**
146
+ * cumulative volume (numeric as string)
147
+ *
148
+ * @generated from field: string volume = 1;
149
+ */
150
+ volume: string;
151
+ /**
152
+ * ISO 8601 timestamp string
153
+ *
154
+ * @generated from field: string updated_at = 2;
155
+ */
156
+ updatedAt: string;
157
+ constructor(data?: PartialMessage<BidConcentrationPoint>);
158
+ static readonly runtime: typeof proto3;
159
+ static readonly typeName = "data.v1.BidConcentrationPoint";
160
+ static readonly fields: FieldList;
161
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BidConcentrationPoint;
162
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BidConcentrationPoint;
163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BidConcentrationPoint;
164
+ static equals(a: BidConcentrationPoint | PlainMessage<BidConcentrationPoint> | undefined, b: BidConcentrationPoint | PlainMessage<BidConcentrationPoint> | undefined): boolean;
165
+ }
166
+ /**
167
+ * Response containing bids for an auction.
168
+ *
169
+ * @generated from message data.v1.GetBidsResponse
170
+ */
171
+ export declare class GetBidsResponse extends Message<GetBidsResponse> {
172
+ /**
173
+ * Map of max_price to bid concentration data
174
+ *
175
+ * @generated from field: map<string, data.v1.BidConcentrationPoint> concentration = 1;
176
+ */
177
+ concentration: {
178
+ [key: string]: BidConcentrationPoint;
179
+ };
180
+ constructor(data?: PartialMessage<GetBidsResponse>);
181
+ static readonly runtime: typeof proto3;
182
+ static readonly typeName = "data.v1.GetBidsResponse";
183
+ static readonly fields: FieldList;
184
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBidsResponse;
185
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBidsResponse;
186
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBidsResponse;
187
+ static equals(a: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined, b: GetBidsResponse | PlainMessage<GetBidsResponse> | undefined): boolean;
188
+ }