@uniswap/client-data-api 0.0.122 → 0.0.124
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,6 +1,29 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { ProtectionInfo } from "./types_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* How a graduated LP position is locked (which timelock recipient contract holds it).
|
|
6
|
+
*
|
|
7
|
+
* @generated from enum data.v1.LockMode
|
|
8
|
+
*/
|
|
9
|
+
export declare enum LockMode {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from enum value: LOCK_MODE_UNSPECIFIED = 0;
|
|
12
|
+
*/
|
|
13
|
+
UNSPECIFIED = 0,
|
|
14
|
+
/**
|
|
15
|
+
* @generated from enum value: LOCK_MODE_TIMELOCK = 1;
|
|
16
|
+
*/
|
|
17
|
+
TIMELOCK = 1,
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: LOCK_MODE_FEES_FORWARDER = 2;
|
|
20
|
+
*/
|
|
21
|
+
FEES_FORWARDER = 2,
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: LOCK_MODE_BUYBACK_BURN = 3;
|
|
24
|
+
*/
|
|
25
|
+
BUYBACK_BURN = 3
|
|
26
|
+
}
|
|
4
27
|
/**
|
|
5
28
|
* Request to fetch all bids by a wallet.
|
|
6
29
|
*
|
|
@@ -216,6 +239,64 @@ export declare class GetAuctionRequest extends Message<GetAuctionRequest> {
|
|
|
216
239
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuctionRequest;
|
|
217
240
|
static equals(a: GetAuctionRequest | PlainMessage<GetAuctionRequest> | undefined, b: GetAuctionRequest | PlainMessage<GetAuctionRequest> | undefined): boolean;
|
|
218
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Liquidity-lock metadata for auctions whose graduated LP position is held by a
|
|
244
|
+
* timelock recipient contract. Set on Auction only when the position is locked.
|
|
245
|
+
*
|
|
246
|
+
* @generated from message data.v1.LiquidityLockInfo
|
|
247
|
+
*/
|
|
248
|
+
export declare class LiquidityLockInfo extends Message<LiquidityLockInfo> {
|
|
249
|
+
/**
|
|
250
|
+
* Lock recipient contract address.
|
|
251
|
+
*
|
|
252
|
+
* @generated from field: string lock_recipient = 1;
|
|
253
|
+
*/
|
|
254
|
+
lockRecipient: string;
|
|
255
|
+
/**
|
|
256
|
+
* @generated from field: data.v1.LockMode lock_mode = 2;
|
|
257
|
+
*/
|
|
258
|
+
lockMode: LockMode;
|
|
259
|
+
/**
|
|
260
|
+
* Unlock block number only — clients estimate the calendar date from it.
|
|
261
|
+
*
|
|
262
|
+
* @generated from field: uint64 unlock_block = 3;
|
|
263
|
+
*/
|
|
264
|
+
unlockBlock: bigint;
|
|
265
|
+
/**
|
|
266
|
+
* Timelock operator: the address that can claim the position after unlock
|
|
267
|
+
* ("LP owner" display while locked).
|
|
268
|
+
*
|
|
269
|
+
* @generated from field: string lp_operator = 4;
|
|
270
|
+
*/
|
|
271
|
+
lpOperator: string;
|
|
272
|
+
/**
|
|
273
|
+
* Fees-forwarder mode only.
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: optional string fee_recipient = 5;
|
|
276
|
+
*/
|
|
277
|
+
feeRecipient?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Buyback-burn per-burn floor, raw base units.
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: optional string min_token_burn_amount = 6;
|
|
282
|
+
*/
|
|
283
|
+
minTokenBurnAmount?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Cumulative tokens bought back & burned, raw base units. USD valuation is
|
|
286
|
+
* client-side at the current token price.
|
|
287
|
+
*
|
|
288
|
+
* @generated from field: string total_tokens_burned = 7;
|
|
289
|
+
*/
|
|
290
|
+
totalTokensBurned: string;
|
|
291
|
+
constructor(data?: PartialMessage<LiquidityLockInfo>);
|
|
292
|
+
static readonly runtime: typeof proto3;
|
|
293
|
+
static readonly typeName = "data.v1.LiquidityLockInfo";
|
|
294
|
+
static readonly fields: FieldList;
|
|
295
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LiquidityLockInfo;
|
|
296
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LiquidityLockInfo;
|
|
297
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LiquidityLockInfo;
|
|
298
|
+
static equals(a: LiquidityLockInfo | PlainMessage<LiquidityLockInfo> | undefined, b: LiquidityLockInfo | PlainMessage<LiquidityLockInfo> | undefined): boolean;
|
|
299
|
+
}
|
|
219
300
|
/**
|
|
220
301
|
* A single auction resource.
|
|
221
302
|
*
|
|
@@ -421,6 +502,21 @@ export declare class Auction extends Message<Auction> {
|
|
|
421
502
|
* @generated from field: optional string lbp_migration_block = 43;
|
|
422
503
|
*/
|
|
423
504
|
lbpMigrationBlock?: string;
|
|
505
|
+
/**
|
|
506
|
+
* Liquidity-lock metadata; set only when the graduated LP position is locked
|
|
507
|
+
* in a timelock recipient contract.
|
|
508
|
+
*
|
|
509
|
+
* @generated from field: optional data.v1.LiquidityLockInfo liquidity_lock = 44;
|
|
510
|
+
*/
|
|
511
|
+
liquidityLock?: LiquidityLockInfo;
|
|
512
|
+
/**
|
|
513
|
+
* Pool owner (the migration's positionRecipient) when the LP position is NOT
|
|
514
|
+
* locked — the unlocked "LP owner" display. Null until migration params are
|
|
515
|
+
* indexed or when the position is locked (use liquidity_lock.lp_operator).
|
|
516
|
+
*
|
|
517
|
+
* @generated from field: optional string pool_owner = 45;
|
|
518
|
+
*/
|
|
519
|
+
poolOwner?: string;
|
|
424
520
|
constructor(data?: PartialMessage<Auction>);
|
|
425
521
|
static readonly runtime: typeof proto3;
|
|
426
522
|
static readonly typeName = "data.v1.Auction";
|
|
@@ -2,8 +2,39 @@
|
|
|
2
2
|
// @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
5
|
+
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
6
|
import { ProtectionInfo } from "./types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* How a graduated LP position is locked (which timelock recipient contract holds it).
|
|
9
|
+
*
|
|
10
|
+
* @generated from enum data.v1.LockMode
|
|
11
|
+
*/
|
|
12
|
+
export var LockMode;
|
|
13
|
+
(function (LockMode) {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from enum value: LOCK_MODE_UNSPECIFIED = 0;
|
|
16
|
+
*/
|
|
17
|
+
LockMode[LockMode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: LOCK_MODE_TIMELOCK = 1;
|
|
20
|
+
*/
|
|
21
|
+
LockMode[LockMode["TIMELOCK"] = 1] = "TIMELOCK";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: LOCK_MODE_FEES_FORWARDER = 2;
|
|
24
|
+
*/
|
|
25
|
+
LockMode[LockMode["FEES_FORWARDER"] = 2] = "FEES_FORWARDER";
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: LOCK_MODE_BUYBACK_BURN = 3;
|
|
28
|
+
*/
|
|
29
|
+
LockMode[LockMode["BUYBACK_BURN"] = 3] = "BUYBACK_BURN";
|
|
30
|
+
})(LockMode || (LockMode = {}));
|
|
31
|
+
// Retrieve enum metadata with: proto3.getEnumType(LockMode)
|
|
32
|
+
proto3.util.setEnumType(LockMode, "data.v1.LockMode", [
|
|
33
|
+
{ no: 0, name: "LOCK_MODE_UNSPECIFIED" },
|
|
34
|
+
{ no: 1, name: "LOCK_MODE_TIMELOCK" },
|
|
35
|
+
{ no: 2, name: "LOCK_MODE_FEES_FORWARDER" },
|
|
36
|
+
{ no: 3, name: "LOCK_MODE_BUYBACK_BURN" },
|
|
37
|
+
]);
|
|
7
38
|
/**
|
|
8
39
|
* Request to fetch all bids by a wallet.
|
|
9
40
|
*
|
|
@@ -323,6 +354,71 @@ GetAuctionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
323
354
|
{ no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
324
355
|
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
325
356
|
]);
|
|
357
|
+
/**
|
|
358
|
+
* Liquidity-lock metadata for auctions whose graduated LP position is held by a
|
|
359
|
+
* timelock recipient contract. Set on Auction only when the position is locked.
|
|
360
|
+
*
|
|
361
|
+
* @generated from message data.v1.LiquidityLockInfo
|
|
362
|
+
*/
|
|
363
|
+
export class LiquidityLockInfo extends Message {
|
|
364
|
+
constructor(data) {
|
|
365
|
+
super();
|
|
366
|
+
/**
|
|
367
|
+
* Lock recipient contract address.
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: string lock_recipient = 1;
|
|
370
|
+
*/
|
|
371
|
+
this.lockRecipient = "";
|
|
372
|
+
/**
|
|
373
|
+
* @generated from field: data.v1.LockMode lock_mode = 2;
|
|
374
|
+
*/
|
|
375
|
+
this.lockMode = LockMode.UNSPECIFIED;
|
|
376
|
+
/**
|
|
377
|
+
* Unlock block number only — clients estimate the calendar date from it.
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: uint64 unlock_block = 3;
|
|
380
|
+
*/
|
|
381
|
+
this.unlockBlock = protoInt64.zero;
|
|
382
|
+
/**
|
|
383
|
+
* Timelock operator: the address that can claim the position after unlock
|
|
384
|
+
* ("LP owner" display while locked).
|
|
385
|
+
*
|
|
386
|
+
* @generated from field: string lp_operator = 4;
|
|
387
|
+
*/
|
|
388
|
+
this.lpOperator = "";
|
|
389
|
+
/**
|
|
390
|
+
* Cumulative tokens bought back & burned, raw base units. USD valuation is
|
|
391
|
+
* client-side at the current token price.
|
|
392
|
+
*
|
|
393
|
+
* @generated from field: string total_tokens_burned = 7;
|
|
394
|
+
*/
|
|
395
|
+
this.totalTokensBurned = "";
|
|
396
|
+
proto3.util.initPartial(data, this);
|
|
397
|
+
}
|
|
398
|
+
static fromBinary(bytes, options) {
|
|
399
|
+
return new LiquidityLockInfo().fromBinary(bytes, options);
|
|
400
|
+
}
|
|
401
|
+
static fromJson(jsonValue, options) {
|
|
402
|
+
return new LiquidityLockInfo().fromJson(jsonValue, options);
|
|
403
|
+
}
|
|
404
|
+
static fromJsonString(jsonString, options) {
|
|
405
|
+
return new LiquidityLockInfo().fromJsonString(jsonString, options);
|
|
406
|
+
}
|
|
407
|
+
static equals(a, b) {
|
|
408
|
+
return proto3.util.equals(LiquidityLockInfo, a, b);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
LiquidityLockInfo.runtime = proto3;
|
|
412
|
+
LiquidityLockInfo.typeName = "data.v1.LiquidityLockInfo";
|
|
413
|
+
LiquidityLockInfo.fields = proto3.util.newFieldList(() => [
|
|
414
|
+
{ no: 1, name: "lock_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
415
|
+
{ no: 2, name: "lock_mode", kind: "enum", T: proto3.getEnumType(LockMode) },
|
|
416
|
+
{ no: 3, name: "unlock_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
417
|
+
{ no: 4, name: "lp_operator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
418
|
+
{ no: 5, name: "fee_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
419
|
+
{ no: 6, name: "min_token_burn_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
420
|
+
{ no: 7, name: "total_tokens_burned", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
421
|
+
]);
|
|
326
422
|
/**
|
|
327
423
|
* A single auction resource.
|
|
328
424
|
*
|
|
@@ -490,6 +586,8 @@ Auction.fields = proto3.util.newFieldList(() => [
|
|
|
490
586
|
{ no: 41, name: "token_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
491
587
|
{ no: 42, name: "x_handle", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
492
588
|
{ no: 43, name: "lbp_migration_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
589
|
+
{ no: 44, name: "liquidity_lock", kind: "message", T: LiquidityLockInfo, opt: true },
|
|
590
|
+
{ no: 45, name: "pool_owner", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
493
591
|
]);
|
|
494
592
|
/**
|
|
495
593
|
* Response containing auctions.
|
|
@@ -131,6 +131,12 @@ export declare class EarnVault extends Message<EarnVault> {
|
|
|
131
131
|
* @generated from field: optional int64 deployment_timestamp = 23;
|
|
132
132
|
*/
|
|
133
133
|
deploymentTimestamp?: bigint;
|
|
134
|
+
/**
|
|
135
|
+
* Per-asset amounts; empty when adapter data was not fetched.
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: repeated data.v2.EarnVaultExposure exposures = 24;
|
|
138
|
+
*/
|
|
139
|
+
exposures: EarnVaultExposure[];
|
|
134
140
|
constructor(data?: PartialMessage<EarnVault>);
|
|
135
141
|
static readonly runtime: typeof proto3;
|
|
136
142
|
static readonly typeName = "data.v2.EarnVault";
|
|
@@ -140,6 +146,40 @@ export declare class EarnVault extends Message<EarnVault> {
|
|
|
140
146
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVault;
|
|
141
147
|
static equals(a: EarnVault | PlainMessage<EarnVault> | undefined, b: EarnVault | PlainMessage<EarnVault> | undefined): boolean;
|
|
142
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message data.v2.EarnVaultExposure
|
|
151
|
+
*/
|
|
152
|
+
export declare class EarnVaultExposure extends Message<EarnVaultExposure> {
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: data.v1.Token token = 1;
|
|
155
|
+
*/
|
|
156
|
+
token?: Token;
|
|
157
|
+
/**
|
|
158
|
+
* Amount in vault-underlying base units, encoded as a string. Omitted when
|
|
159
|
+
* any amount-bearing contribution cannot be determined.
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: optional string assets_raw = 2;
|
|
162
|
+
*/
|
|
163
|
+
assetsRaw?: string;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: optional double assets_usd = 3;
|
|
166
|
+
*/
|
|
167
|
+
assetsUsd?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Share of total vault assets; may sum to less than 1.
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: optional double share = 4;
|
|
172
|
+
*/
|
|
173
|
+
share?: number;
|
|
174
|
+
constructor(data?: PartialMessage<EarnVaultExposure>);
|
|
175
|
+
static readonly runtime: typeof proto3;
|
|
176
|
+
static readonly typeName = "data.v2.EarnVaultExposure";
|
|
177
|
+
static readonly fields: FieldList;
|
|
178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnVaultExposure;
|
|
179
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnVaultExposure;
|
|
180
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVaultExposure;
|
|
181
|
+
static equals(a: EarnVaultExposure | PlainMessage<EarnVaultExposure> | undefined, b: EarnVaultExposure | PlainMessage<EarnVaultExposure> | undefined): boolean;
|
|
182
|
+
}
|
|
143
183
|
/**
|
|
144
184
|
* @generated from message data.v2.EarnVaultWarning
|
|
145
185
|
*/
|
package/dist/data/v2/earn_pb.js
CHANGED
|
@@ -110,6 +110,12 @@ export class EarnVault extends Message {
|
|
|
110
110
|
* @generated from field: string curator_name = 21;
|
|
111
111
|
*/
|
|
112
112
|
this.curatorName = "";
|
|
113
|
+
/**
|
|
114
|
+
* Per-asset amounts; empty when adapter data was not fetched.
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: repeated data.v2.EarnVaultExposure exposures = 24;
|
|
117
|
+
*/
|
|
118
|
+
this.exposures = [];
|
|
113
119
|
proto3.util.initPartial(data, this);
|
|
114
120
|
}
|
|
115
121
|
static fromBinary(bytes, options) {
|
|
@@ -151,6 +157,36 @@ EarnVault.fields = proto3.util.newFieldList(() => [
|
|
|
151
157
|
{ no: 21, name: "curator_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
152
158
|
{ no: 22, name: "curator_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
153
159
|
{ no: 23, name: "deployment_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
160
|
+
{ no: 24, name: "exposures", kind: "message", T: EarnVaultExposure, repeated: true },
|
|
161
|
+
]);
|
|
162
|
+
/**
|
|
163
|
+
* @generated from message data.v2.EarnVaultExposure
|
|
164
|
+
*/
|
|
165
|
+
export class EarnVaultExposure extends Message {
|
|
166
|
+
constructor(data) {
|
|
167
|
+
super();
|
|
168
|
+
proto3.util.initPartial(data, this);
|
|
169
|
+
}
|
|
170
|
+
static fromBinary(bytes, options) {
|
|
171
|
+
return new EarnVaultExposure().fromBinary(bytes, options);
|
|
172
|
+
}
|
|
173
|
+
static fromJson(jsonValue, options) {
|
|
174
|
+
return new EarnVaultExposure().fromJson(jsonValue, options);
|
|
175
|
+
}
|
|
176
|
+
static fromJsonString(jsonString, options) {
|
|
177
|
+
return new EarnVaultExposure().fromJsonString(jsonString, options);
|
|
178
|
+
}
|
|
179
|
+
static equals(a, b) {
|
|
180
|
+
return proto3.util.equals(EarnVaultExposure, a, b);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
EarnVaultExposure.runtime = proto3;
|
|
184
|
+
EarnVaultExposure.typeName = "data.v2.EarnVaultExposure";
|
|
185
|
+
EarnVaultExposure.fields = proto3.util.newFieldList(() => [
|
|
186
|
+
{ no: 1, name: "token", kind: "message", T: Token },
|
|
187
|
+
{ no: 2, name: "assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
188
|
+
{ no: 3, name: "assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
189
|
+
{ no: 4, name: "share", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
154
190
|
]);
|
|
155
191
|
/**
|
|
156
192
|
* @generated from message data.v2.EarnVaultWarning
|