@uniswap/client-data-api 0.0.293 → 0.0.295
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.
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +40 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +40 -1
- package/dist/data/v2/api_connect.d.ts +28 -1
- package/dist/data/v2/api_connect.js +28 -1
- package/dist/data/v2/api_pb.d.ts +190 -0
- package/dist/data/v2/api_pb.js +226 -0
- package/dist/data/v2/hooks_pb.d.ts +360 -0
- package/dist/data/v2/hooks_pb.js +349 -0
- package/dist/data/v2/types_pb.d.ts +18 -0
- package/dist/data/v2/types_pb.js +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { PoolStatRangeFilter } from "./types_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum data.v2.HooksOrderBy
|
|
6
|
+
*/
|
|
7
|
+
export declare enum HooksOrderBy {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: HOOKS_ORDER_BY_UNSPECIFIED = 0;
|
|
10
|
+
*/
|
|
11
|
+
UNSPECIFIED = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: HOOKS_ORDER_BY_VOLUME_1D = 1;
|
|
14
|
+
*/
|
|
15
|
+
VOLUME_1D = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: HOOKS_ORDER_BY_VOLUME_7D = 2;
|
|
18
|
+
*/
|
|
19
|
+
VOLUME_7D = 2,
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: HOOKS_ORDER_BY_VOLUME_30D = 3;
|
|
22
|
+
*/
|
|
23
|
+
VOLUME_30D = 3,
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: HOOKS_ORDER_BY_TVL = 4;
|
|
26
|
+
*/
|
|
27
|
+
TVL = 4,
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: HOOKS_ORDER_BY_POOL_COUNT = 5;
|
|
30
|
+
*/
|
|
31
|
+
POOL_COUNT = 5
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @generated from message data.v2.Hook
|
|
35
|
+
*/
|
|
36
|
+
export declare class Hook extends Message<Hook> {
|
|
37
|
+
/**
|
|
38
|
+
* Group assigned in HRS (curated in Mission Control, or the same-address
|
|
39
|
+
* rule). Unset for a hook in no group, which callers look up by chain and
|
|
40
|
+
* address instead.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: optional string group_id = 1;
|
|
43
|
+
*/
|
|
44
|
+
groupId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: optional string name = 2;
|
|
47
|
+
*/
|
|
48
|
+
name?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: optional string description = 3;
|
|
51
|
+
*/
|
|
52
|
+
description?: string;
|
|
53
|
+
/**
|
|
54
|
+
* true if every deployment on the requested chains is verified; false if
|
|
55
|
+
* any isn't; unset if none failed but some aren't checked yet.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: optional bool verified_source = 4;
|
|
58
|
+
*/
|
|
59
|
+
verifiedSource?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Every deployment in the group on every chain, whatever the request's
|
|
62
|
+
* chains, ordered by chain id then TVL (highest first). A chain can hold
|
|
63
|
+
* several deployments (a team's per-pool hooks).
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: repeated data.v2.HookDeployment deployments = 5;
|
|
66
|
+
*/
|
|
67
|
+
deployments: HookDeployment[];
|
|
68
|
+
/**
|
|
69
|
+
* true if any deployment's address has the swap return-delta permission
|
|
70
|
+
* bits, so its volume is grayed out.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: bool has_custom_accounting = 6;
|
|
73
|
+
*/
|
|
74
|
+
hasCustomAccounting: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* true if any deployment on the requested chains is routed (allowlisted or
|
|
77
|
+
* auto-routed). Unset means no badge: HRS isn't the routers' source yet.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: optional bool routing_allowlisted = 7;
|
|
80
|
+
*/
|
|
81
|
+
routingAllowlisted?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* unset until HRS fills it
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: optional bool built_by_uniswap = 8;
|
|
86
|
+
*/
|
|
87
|
+
builtByUniswap?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* partner name, set in Mission Control
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: optional string configured_by = 9;
|
|
92
|
+
*/
|
|
93
|
+
configuredBy?: string;
|
|
94
|
+
/**
|
|
95
|
+
* true if any deployment is a known aggregator hook, whose liquidity sits
|
|
96
|
+
* outside the pool, so its TVL and volume read about zero.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: bool is_aggregator_hook = 10;
|
|
99
|
+
*/
|
|
100
|
+
isAggregatorHook: boolean;
|
|
101
|
+
constructor(data?: PartialMessage<Hook>);
|
|
102
|
+
static readonly runtime: typeof proto3;
|
|
103
|
+
static readonly typeName = "data.v2.Hook";
|
|
104
|
+
static readonly fields: FieldList;
|
|
105
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Hook;
|
|
106
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Hook;
|
|
107
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Hook;
|
|
108
|
+
static equals(a: Hook | PlainMessage<Hook> | undefined, b: Hook | PlainMessage<Hook> | undefined): boolean;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message data.v2.HookDeployment
|
|
112
|
+
*/
|
|
113
|
+
export declare class HookDeployment extends Message<HookDeployment> {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: uint32 chain_id = 1;
|
|
116
|
+
*/
|
|
117
|
+
chainId: number;
|
|
118
|
+
/**
|
|
119
|
+
* lowercase
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: string address = 2;
|
|
122
|
+
*/
|
|
123
|
+
address: string;
|
|
124
|
+
/**
|
|
125
|
+
* the address's low 14 bits: the hook's V4 permission flags
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: uint32 flags_bitmask = 3;
|
|
128
|
+
*/
|
|
129
|
+
flagsBitmask: number;
|
|
130
|
+
/**
|
|
131
|
+
* The wallet that sent the creation transaction; unset until HRS has
|
|
132
|
+
* looked it up.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: optional string deployer = 4;
|
|
135
|
+
*/
|
|
136
|
+
deployer?: string;
|
|
137
|
+
/**
|
|
138
|
+
* unset = not checked yet
|
|
139
|
+
*
|
|
140
|
+
* @generated from field: optional bool verified_source = 5;
|
|
141
|
+
*/
|
|
142
|
+
verifiedSource?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* unset until HRS is the routers' source
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: optional bool routing_allowlisted = 6;
|
|
147
|
+
*/
|
|
148
|
+
routingAllowlisted?: boolean;
|
|
149
|
+
constructor(data?: PartialMessage<HookDeployment>);
|
|
150
|
+
static readonly runtime: typeof proto3;
|
|
151
|
+
static readonly typeName = "data.v2.HookDeployment";
|
|
152
|
+
static readonly fields: FieldList;
|
|
153
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookDeployment;
|
|
154
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookDeployment;
|
|
155
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookDeployment;
|
|
156
|
+
static equals(a: HookDeployment | PlainMessage<HookDeployment> | undefined, b: HookDeployment | PlainMessage<HookDeployment> | undefined): boolean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @generated from message data.v2.HookRankStats
|
|
160
|
+
*/
|
|
161
|
+
export declare class HookRankStats extends Message<HookRankStats> {
|
|
162
|
+
/**
|
|
163
|
+
* USD
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: optional double tvl = 1;
|
|
166
|
+
*/
|
|
167
|
+
tvl?: number;
|
|
168
|
+
/**
|
|
169
|
+
* USD
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: optional double volume_1d = 2;
|
|
172
|
+
*/
|
|
173
|
+
volume1d?: number;
|
|
174
|
+
/**
|
|
175
|
+
* USD
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: optional double volume_7d = 3;
|
|
178
|
+
*/
|
|
179
|
+
volume7d?: number;
|
|
180
|
+
/**
|
|
181
|
+
* USD
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: optional double volume_30d = 4;
|
|
184
|
+
*/
|
|
185
|
+
volume30d?: number;
|
|
186
|
+
/**
|
|
187
|
+
* USD, all-time
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: optional double volume_all = 5;
|
|
190
|
+
*/
|
|
191
|
+
volumeAll?: number;
|
|
192
|
+
/**
|
|
193
|
+
* USD, all-time LP fees after the protocol's cut; unset for
|
|
194
|
+
* custom-accounting hooks.
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: optional double fees_all = 6;
|
|
197
|
+
*/
|
|
198
|
+
feesAll?: number;
|
|
199
|
+
/**
|
|
200
|
+
* pools counted in the hook's stats
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: uint32 pool_count = 7;
|
|
203
|
+
*/
|
|
204
|
+
poolCount: number;
|
|
205
|
+
constructor(data?: PartialMessage<HookRankStats>);
|
|
206
|
+
static readonly runtime: typeof proto3;
|
|
207
|
+
static readonly typeName = "data.v2.HookRankStats";
|
|
208
|
+
static readonly fields: FieldList;
|
|
209
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookRankStats;
|
|
210
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookRankStats;
|
|
211
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookRankStats;
|
|
212
|
+
static equals(a: HookRankStats | PlainMessage<HookRankStats> | undefined, b: HookRankStats | PlainMessage<HookRankStats> | undefined): boolean;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @generated from message data.v2.ChainHookRankStats
|
|
216
|
+
*/
|
|
217
|
+
export declare class ChainHookRankStats extends Message<ChainHookRankStats> {
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: uint32 chain_id = 1;
|
|
220
|
+
*/
|
|
221
|
+
chainId: number;
|
|
222
|
+
/**
|
|
223
|
+
* summed over the hook's deployments on this chain
|
|
224
|
+
*
|
|
225
|
+
* @generated from field: data.v2.HookRankStats stats = 2;
|
|
226
|
+
*/
|
|
227
|
+
stats?: HookRankStats;
|
|
228
|
+
constructor(data?: PartialMessage<ChainHookRankStats>);
|
|
229
|
+
static readonly runtime: typeof proto3;
|
|
230
|
+
static readonly typeName = "data.v2.ChainHookRankStats";
|
|
231
|
+
static readonly fields: FieldList;
|
|
232
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainHookRankStats;
|
|
233
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainHookRankStats;
|
|
234
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainHookRankStats;
|
|
235
|
+
static equals(a: ChainHookRankStats | PlainMessage<ChainHookRankStats> | undefined, b: ChainHookRankStats | PlainMessage<ChainHookRankStats> | undefined): boolean;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @generated from message data.v2.RankedHook
|
|
239
|
+
*/
|
|
240
|
+
export declare class RankedHook extends Message<RankedHook> {
|
|
241
|
+
/**
|
|
242
|
+
* @generated from field: data.v2.Hook hook = 1;
|
|
243
|
+
*/
|
|
244
|
+
hook?: Hook;
|
|
245
|
+
/**
|
|
246
|
+
* summed over the requested chains
|
|
247
|
+
*
|
|
248
|
+
* @generated from field: data.v2.HookRankStats stats = 2;
|
|
249
|
+
*/
|
|
250
|
+
stats?: HookRankStats;
|
|
251
|
+
/**
|
|
252
|
+
* one entry per requested chain the hook is on
|
|
253
|
+
*
|
|
254
|
+
* @generated from field: repeated data.v2.ChainHookRankStats chain_stats = 3;
|
|
255
|
+
*/
|
|
256
|
+
chainStats: ChainHookRankStats[];
|
|
257
|
+
constructor(data?: PartialMessage<RankedHook>);
|
|
258
|
+
static readonly runtime: typeof proto3;
|
|
259
|
+
static readonly typeName = "data.v2.RankedHook";
|
|
260
|
+
static readonly fields: FieldList;
|
|
261
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RankedHook;
|
|
262
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RankedHook;
|
|
263
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RankedHook;
|
|
264
|
+
static equals(a: RankedHook | PlainMessage<RankedHook> | undefined, b: RankedHook | PlainMessage<RankedHook> | undefined): boolean;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @generated from message data.v2.HookListFilter
|
|
268
|
+
*/
|
|
269
|
+
export declare class HookListFilter extends Message<HookListFilter> {
|
|
270
|
+
/**
|
|
271
|
+
* Hook.verified_source is true
|
|
272
|
+
*
|
|
273
|
+
* @generated from field: optional bool verified_only = 1;
|
|
274
|
+
*/
|
|
275
|
+
verifiedOnly?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* The "Routed in pools" filter: hooks with at least one routed pool.
|
|
278
|
+
*
|
|
279
|
+
* @generated from field: optional bool routed_only = 2;
|
|
280
|
+
*/
|
|
281
|
+
routedOnly?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Name and description both present, honoring HRS's display override.
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: optional bool has_metadata = 3;
|
|
286
|
+
*/
|
|
287
|
+
hasMetadata?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* USD
|
|
290
|
+
*
|
|
291
|
+
* @generated from field: optional data.v2.PoolStatRangeFilter tvl = 4;
|
|
292
|
+
*/
|
|
293
|
+
tvl?: PoolStatRangeFilter;
|
|
294
|
+
/**
|
|
295
|
+
* Free text (case-insensitive, trimmed, whitespace collapsed): a name
|
|
296
|
+
* prefix, or an exact deployment address when 0x-prefixed.
|
|
297
|
+
*
|
|
298
|
+
* @generated from field: optional string search_query = 5;
|
|
299
|
+
*/
|
|
300
|
+
searchQuery?: string;
|
|
301
|
+
constructor(data?: PartialMessage<HookListFilter>);
|
|
302
|
+
static readonly runtime: typeof proto3;
|
|
303
|
+
static readonly typeName = "data.v2.HookListFilter";
|
|
304
|
+
static readonly fields: FieldList;
|
|
305
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookListFilter;
|
|
306
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookListFilter;
|
|
307
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookListFilter;
|
|
308
|
+
static equals(a: HookListFilter | PlainMessage<HookListFilter> | undefined, b: HookListFilter | PlainMessage<HookListFilter> | undefined): boolean;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Zero values sort after positive ones and unset values sort last, in both
|
|
312
|
+
* directions.
|
|
313
|
+
*
|
|
314
|
+
* @generated from message data.v2.HooksSort
|
|
315
|
+
*/
|
|
316
|
+
export declare class HooksSort extends Message<HooksSort> {
|
|
317
|
+
/**
|
|
318
|
+
* default HOOKS_ORDER_BY_VOLUME_1D
|
|
319
|
+
*
|
|
320
|
+
* @generated from field: optional data.v2.HooksOrderBy order_by = 1;
|
|
321
|
+
*/
|
|
322
|
+
orderBy?: HooksOrderBy;
|
|
323
|
+
/**
|
|
324
|
+
* default false (highest first)
|
|
325
|
+
*
|
|
326
|
+
* @generated from field: optional bool ascending = 2;
|
|
327
|
+
*/
|
|
328
|
+
ascending?: boolean;
|
|
329
|
+
constructor(data?: PartialMessage<HooksSort>);
|
|
330
|
+
static readonly runtime: typeof proto3;
|
|
331
|
+
static readonly typeName = "data.v2.HooksSort";
|
|
332
|
+
static readonly fields: FieldList;
|
|
333
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HooksSort;
|
|
334
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HooksSort;
|
|
335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HooksSort;
|
|
336
|
+
static equals(a: HooksSort | PlainMessage<HooksSort> | undefined, b: HooksSort | PlainMessage<HooksSort> | undefined): boolean;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @generated from message data.v2.HookIdentifier
|
|
340
|
+
*/
|
|
341
|
+
export declare class HookIdentifier extends Message<HookIdentifier> {
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: uint32 chain_id = 1;
|
|
344
|
+
*/
|
|
345
|
+
chainId: number;
|
|
346
|
+
/**
|
|
347
|
+
* any casing
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: string address = 2;
|
|
350
|
+
*/
|
|
351
|
+
address: string;
|
|
352
|
+
constructor(data?: PartialMessage<HookIdentifier>);
|
|
353
|
+
static readonly runtime: typeof proto3;
|
|
354
|
+
static readonly typeName = "data.v2.HookIdentifier";
|
|
355
|
+
static readonly fields: FieldList;
|
|
356
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookIdentifier;
|
|
357
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookIdentifier;
|
|
358
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookIdentifier;
|
|
359
|
+
static equals(a: HookIdentifier | PlainMessage<HookIdentifier> | undefined, b: HookIdentifier | PlainMessage<HookIdentifier> | undefined): boolean;
|
|
360
|
+
}
|