@uniswap/client-liquidity 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,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { ChainId, TransactionRequest } from "./types_pb.js";
|
|
3
|
+
import { BidToExit, ChainId, TransactionRequest, VerificationStatus } from "./types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* REQUESTS & RESPONSES
|
|
6
6
|
*
|
|
@@ -198,9 +198,9 @@ export declare class ClaimTokensResponse extends Message<ClaimTokensResponse> {
|
|
|
198
198
|
*/
|
|
199
199
|
export declare class ExitBidAndClaimTokensRequest extends Message<ExitBidAndClaimTokensRequest> {
|
|
200
200
|
/**
|
|
201
|
-
* @generated from field:
|
|
201
|
+
* @generated from field: repeated uniswap.liquidity.v1.BidToExit bids = 1;
|
|
202
202
|
*/
|
|
203
|
-
|
|
203
|
+
bids: BidToExit[];
|
|
204
204
|
/**
|
|
205
205
|
* @generated from field: string auction_contract_address = 2;
|
|
206
206
|
*/
|
|
@@ -293,3 +293,69 @@ export declare class TokenCountAllocatedToLpForAuctionResponse extends Message<T
|
|
|
293
293
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenCountAllocatedToLpForAuctionResponse;
|
|
294
294
|
static equals(a: TokenCountAllocatedToLpForAuctionResponse | PlainMessage<TokenCountAllocatedToLpForAuctionResponse> | undefined, b: TokenCountAllocatedToLpForAuctionResponse | PlainMessage<TokenCountAllocatedToLpForAuctionResponse> | undefined): boolean;
|
|
295
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* @generated from message uniswap.liquidity.v1.VerifyWalletRequest
|
|
298
|
+
*/
|
|
299
|
+
export declare class VerifyWalletRequest extends Message<VerifyWalletRequest> {
|
|
300
|
+
/**
|
|
301
|
+
* @generated from field: string wallet_address = 1;
|
|
302
|
+
*/
|
|
303
|
+
walletAddress: string;
|
|
304
|
+
/**
|
|
305
|
+
* @generated from field: string auction_address = 2;
|
|
306
|
+
*/
|
|
307
|
+
auctionAddress: string;
|
|
308
|
+
constructor(data?: PartialMessage<VerifyWalletRequest>);
|
|
309
|
+
static readonly runtime: typeof proto3;
|
|
310
|
+
static readonly typeName = "uniswap.liquidity.v1.VerifyWalletRequest";
|
|
311
|
+
static readonly fields: FieldList;
|
|
312
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyWalletRequest;
|
|
313
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyWalletRequest;
|
|
314
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyWalletRequest;
|
|
315
|
+
static equals(a: VerifyWalletRequest | PlainMessage<VerifyWalletRequest> | undefined, b: VerifyWalletRequest | PlainMessage<VerifyWalletRequest> | undefined): boolean;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @generated from message uniswap.liquidity.v1.VerifyWalletResponse
|
|
319
|
+
*/
|
|
320
|
+
export declare class VerifyWalletResponse extends Message<VerifyWalletResponse> {
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: bool is_verified = 1;
|
|
323
|
+
*/
|
|
324
|
+
isVerified: boolean;
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: uniswap.liquidity.v1.VerificationStatus status = 2;
|
|
327
|
+
*/
|
|
328
|
+
status: VerificationStatus;
|
|
329
|
+
/**
|
|
330
|
+
* Predicate unsigned URL if not verified
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: string redirect_url = 3;
|
|
333
|
+
*/
|
|
334
|
+
redirectUrl: string;
|
|
335
|
+
/**
|
|
336
|
+
* Only set if is presale and KYC verified
|
|
337
|
+
*
|
|
338
|
+
* @generated from field: optional bool is_whitelisted = 4;
|
|
339
|
+
*/
|
|
340
|
+
isWhitelisted?: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: string failure_reason = 5;
|
|
343
|
+
*/
|
|
344
|
+
failureReason: string;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: bool auction_has_presale = 6;
|
|
347
|
+
*/
|
|
348
|
+
auctionHasPresale: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: bool auction_needs_verification = 7;
|
|
351
|
+
*/
|
|
352
|
+
auctionNeedsVerification: boolean;
|
|
353
|
+
constructor(data?: PartialMessage<VerifyWalletResponse>);
|
|
354
|
+
static readonly runtime: typeof proto3;
|
|
355
|
+
static readonly typeName = "uniswap.liquidity.v1.VerifyWalletResponse";
|
|
356
|
+
static readonly fields: FieldList;
|
|
357
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyWalletResponse;
|
|
358
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyWalletResponse;
|
|
359
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyWalletResponse;
|
|
360
|
+
static equals(a: VerifyWalletResponse | PlainMessage<VerifyWalletResponse> | undefined, b: VerifyWalletResponse | PlainMessage<VerifyWalletResponse> | undefined): boolean;
|
|
361
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId, TransactionRequest } from "./types_pb.js";
|
|
6
|
+
import { BidToExit, ChainId, TransactionRequest, VerificationStatus } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* REQUESTS & RESPONSES
|
|
9
9
|
*
|
|
@@ -255,9 +255,9 @@ export class ExitBidAndClaimTokensRequest extends Message {
|
|
|
255
255
|
constructor(data) {
|
|
256
256
|
super();
|
|
257
257
|
/**
|
|
258
|
-
* @generated from field:
|
|
258
|
+
* @generated from field: repeated uniswap.liquidity.v1.BidToExit bids = 1;
|
|
259
259
|
*/
|
|
260
|
-
this.
|
|
260
|
+
this.bids = [];
|
|
261
261
|
/**
|
|
262
262
|
* @generated from field: string auction_contract_address = 2;
|
|
263
263
|
*/
|
|
@@ -288,7 +288,7 @@ export class ExitBidAndClaimTokensRequest extends Message {
|
|
|
288
288
|
ExitBidAndClaimTokensRequest.runtime = proto3;
|
|
289
289
|
ExitBidAndClaimTokensRequest.typeName = "uniswap.liquidity.v1.ExitBidAndClaimTokensRequest";
|
|
290
290
|
ExitBidAndClaimTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
291
|
-
{ no: 1, name: "
|
|
291
|
+
{ no: 1, name: "bids", kind: "message", T: BidToExit, repeated: true },
|
|
292
292
|
{ no: 2, name: "auction_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
293
293
|
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
294
294
|
{ no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -396,3 +396,96 @@ TokenCountAllocatedToLpForAuctionResponse.fields = proto3.util.newFieldList(() =
|
|
|
396
396
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
397
397
|
{ no: 2, name: "token_count_allocated_to_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
398
398
|
]);
|
|
399
|
+
/**
|
|
400
|
+
* @generated from message uniswap.liquidity.v1.VerifyWalletRequest
|
|
401
|
+
*/
|
|
402
|
+
export class VerifyWalletRequest extends Message {
|
|
403
|
+
constructor(data) {
|
|
404
|
+
super();
|
|
405
|
+
/**
|
|
406
|
+
* @generated from field: string wallet_address = 1;
|
|
407
|
+
*/
|
|
408
|
+
this.walletAddress = "";
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: string auction_address = 2;
|
|
411
|
+
*/
|
|
412
|
+
this.auctionAddress = "";
|
|
413
|
+
proto3.util.initPartial(data, this);
|
|
414
|
+
}
|
|
415
|
+
static fromBinary(bytes, options) {
|
|
416
|
+
return new VerifyWalletRequest().fromBinary(bytes, options);
|
|
417
|
+
}
|
|
418
|
+
static fromJson(jsonValue, options) {
|
|
419
|
+
return new VerifyWalletRequest().fromJson(jsonValue, options);
|
|
420
|
+
}
|
|
421
|
+
static fromJsonString(jsonString, options) {
|
|
422
|
+
return new VerifyWalletRequest().fromJsonString(jsonString, options);
|
|
423
|
+
}
|
|
424
|
+
static equals(a, b) {
|
|
425
|
+
return proto3.util.equals(VerifyWalletRequest, a, b);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
VerifyWalletRequest.runtime = proto3;
|
|
429
|
+
VerifyWalletRequest.typeName = "uniswap.liquidity.v1.VerifyWalletRequest";
|
|
430
|
+
VerifyWalletRequest.fields = proto3.util.newFieldList(() => [
|
|
431
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
432
|
+
{ no: 2, name: "auction_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
433
|
+
]);
|
|
434
|
+
/**
|
|
435
|
+
* @generated from message uniswap.liquidity.v1.VerifyWalletResponse
|
|
436
|
+
*/
|
|
437
|
+
export class VerifyWalletResponse extends Message {
|
|
438
|
+
constructor(data) {
|
|
439
|
+
super();
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: bool is_verified = 1;
|
|
442
|
+
*/
|
|
443
|
+
this.isVerified = false;
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: uniswap.liquidity.v1.VerificationStatus status = 2;
|
|
446
|
+
*/
|
|
447
|
+
this.status = VerificationStatus.UNSPECIFIED;
|
|
448
|
+
/**
|
|
449
|
+
* Predicate unsigned URL if not verified
|
|
450
|
+
*
|
|
451
|
+
* @generated from field: string redirect_url = 3;
|
|
452
|
+
*/
|
|
453
|
+
this.redirectUrl = "";
|
|
454
|
+
/**
|
|
455
|
+
* @generated from field: string failure_reason = 5;
|
|
456
|
+
*/
|
|
457
|
+
this.failureReason = "";
|
|
458
|
+
/**
|
|
459
|
+
* @generated from field: bool auction_has_presale = 6;
|
|
460
|
+
*/
|
|
461
|
+
this.auctionHasPresale = false;
|
|
462
|
+
/**
|
|
463
|
+
* @generated from field: bool auction_needs_verification = 7;
|
|
464
|
+
*/
|
|
465
|
+
this.auctionNeedsVerification = false;
|
|
466
|
+
proto3.util.initPartial(data, this);
|
|
467
|
+
}
|
|
468
|
+
static fromBinary(bytes, options) {
|
|
469
|
+
return new VerifyWalletResponse().fromBinary(bytes, options);
|
|
470
|
+
}
|
|
471
|
+
static fromJson(jsonValue, options) {
|
|
472
|
+
return new VerifyWalletResponse().fromJson(jsonValue, options);
|
|
473
|
+
}
|
|
474
|
+
static fromJsonString(jsonString, options) {
|
|
475
|
+
return new VerifyWalletResponse().fromJsonString(jsonString, options);
|
|
476
|
+
}
|
|
477
|
+
static equals(a, b) {
|
|
478
|
+
return proto3.util.equals(VerifyWalletResponse, a, b);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
VerifyWalletResponse.runtime = proto3;
|
|
482
|
+
VerifyWalletResponse.typeName = "uniswap.liquidity.v1.VerifyWalletResponse";
|
|
483
|
+
VerifyWalletResponse.fields = proto3.util.newFieldList(() => [
|
|
484
|
+
{ no: 1, name: "is_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
485
|
+
{ no: 2, name: "status", kind: "enum", T: proto3.getEnumType(VerificationStatus) },
|
|
486
|
+
{ no: 3, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
487
|
+
{ no: 4, name: "is_whitelisted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
488
|
+
{ no: 5, name: "failure_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
489
|
+
{ no: 6, name: "auction_has_presale", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
490
|
+
{ no: 7, name: "auction_needs_verification", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
491
|
+
]);
|
|
@@ -130,6 +130,33 @@ export declare enum IndependentToken {
|
|
|
130
130
|
*/
|
|
131
131
|
TOKEN_1 = 1
|
|
132
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated from enum uniswap.liquidity.v1.VerificationStatus
|
|
135
|
+
*/
|
|
136
|
+
export declare enum VerificationStatus {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from enum value: VERIFICATION_STATUS_UNSPECIFIED = 0;
|
|
139
|
+
*/
|
|
140
|
+
UNSPECIFIED = 0,
|
|
141
|
+
/**
|
|
142
|
+
* Predicate: "verified"
|
|
143
|
+
*
|
|
144
|
+
* @generated from enum value: VERIFICATION_STATUS_VERIFIED = 1;
|
|
145
|
+
*/
|
|
146
|
+
VERIFIED = 1,
|
|
147
|
+
/**
|
|
148
|
+
* Predicate: "unknown" (no entry)
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum value: VERIFICATION_STATUS_NOT_STARTED = 2;
|
|
151
|
+
*/
|
|
152
|
+
NOT_STARTED = 2,
|
|
153
|
+
/**
|
|
154
|
+
* Predicate: "not_verified"
|
|
155
|
+
*
|
|
156
|
+
* @generated from enum value: VERIFICATION_STATUS_PENDING = 3;
|
|
157
|
+
*/
|
|
158
|
+
PENDING = 3
|
|
159
|
+
}
|
|
133
160
|
/**
|
|
134
161
|
* CORE TYPE OBJECTS
|
|
135
162
|
*
|
|
@@ -1779,3 +1806,24 @@ export declare class V4CheckApprovalLPRequest extends Message<V4CheckApprovalLPR
|
|
|
1779
1806
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4CheckApprovalLPRequest;
|
|
1780
1807
|
static equals(a: V4CheckApprovalLPRequest | PlainMessage<V4CheckApprovalLPRequest> | undefined, b: V4CheckApprovalLPRequest | PlainMessage<V4CheckApprovalLPRequest> | undefined): boolean;
|
|
1781
1808
|
}
|
|
1809
|
+
/**
|
|
1810
|
+
* @generated from message uniswap.liquidity.v1.BidToExit
|
|
1811
|
+
*/
|
|
1812
|
+
export declare class BidToExit extends Message<BidToExit> {
|
|
1813
|
+
/**
|
|
1814
|
+
* @generated from field: string bidId = 1;
|
|
1815
|
+
*/
|
|
1816
|
+
bidId: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* @generated from field: bool isExited = 2;
|
|
1819
|
+
*/
|
|
1820
|
+
isExited: boolean;
|
|
1821
|
+
constructor(data?: PartialMessage<BidToExit>);
|
|
1822
|
+
static readonly runtime: typeof proto3;
|
|
1823
|
+
static readonly typeName = "uniswap.liquidity.v1.BidToExit";
|
|
1824
|
+
static readonly fields: FieldList;
|
|
1825
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BidToExit;
|
|
1826
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BidToExit;
|
|
1827
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BidToExit;
|
|
1828
|
+
static equals(a: BidToExit | PlainMessage<BidToExit> | undefined, b: BidToExit | PlainMessage<BidToExit> | undefined): boolean;
|
|
1829
|
+
}
|
|
@@ -176,6 +176,41 @@ proto3.util.setEnumType(IndependentToken, "uniswap.liquidity.v1.IndependentToken
|
|
|
176
176
|
{ no: 0, name: "TOKEN_0" },
|
|
177
177
|
{ no: 1, name: "TOKEN_1" },
|
|
178
178
|
]);
|
|
179
|
+
/**
|
|
180
|
+
* @generated from enum uniswap.liquidity.v1.VerificationStatus
|
|
181
|
+
*/
|
|
182
|
+
export var VerificationStatus;
|
|
183
|
+
(function (VerificationStatus) {
|
|
184
|
+
/**
|
|
185
|
+
* @generated from enum value: VERIFICATION_STATUS_UNSPECIFIED = 0;
|
|
186
|
+
*/
|
|
187
|
+
VerificationStatus[VerificationStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
188
|
+
/**
|
|
189
|
+
* Predicate: "verified"
|
|
190
|
+
*
|
|
191
|
+
* @generated from enum value: VERIFICATION_STATUS_VERIFIED = 1;
|
|
192
|
+
*/
|
|
193
|
+
VerificationStatus[VerificationStatus["VERIFIED"] = 1] = "VERIFIED";
|
|
194
|
+
/**
|
|
195
|
+
* Predicate: "unknown" (no entry)
|
|
196
|
+
*
|
|
197
|
+
* @generated from enum value: VERIFICATION_STATUS_NOT_STARTED = 2;
|
|
198
|
+
*/
|
|
199
|
+
VerificationStatus[VerificationStatus["NOT_STARTED"] = 2] = "NOT_STARTED";
|
|
200
|
+
/**
|
|
201
|
+
* Predicate: "not_verified"
|
|
202
|
+
*
|
|
203
|
+
* @generated from enum value: VERIFICATION_STATUS_PENDING = 3;
|
|
204
|
+
*/
|
|
205
|
+
VerificationStatus[VerificationStatus["PENDING"] = 3] = "PENDING";
|
|
206
|
+
})(VerificationStatus || (VerificationStatus = {}));
|
|
207
|
+
// Retrieve enum metadata with: proto3.getEnumType(VerificationStatus)
|
|
208
|
+
proto3.util.setEnumType(VerificationStatus, "uniswap.liquidity.v1.VerificationStatus", [
|
|
209
|
+
{ no: 0, name: "VERIFICATION_STATUS_UNSPECIFIED" },
|
|
210
|
+
{ no: 1, name: "VERIFICATION_STATUS_VERIFIED" },
|
|
211
|
+
{ no: 2, name: "VERIFICATION_STATUS_NOT_STARTED" },
|
|
212
|
+
{ no: 3, name: "VERIFICATION_STATUS_PENDING" },
|
|
213
|
+
]);
|
|
179
214
|
/**
|
|
180
215
|
* CORE TYPE OBJECTS
|
|
181
216
|
*
|
|
@@ -1987,3 +2022,38 @@ V4CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1987
2022
|
{ no: 9, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1988
2023
|
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1989
2024
|
]);
|
|
2025
|
+
/**
|
|
2026
|
+
* @generated from message uniswap.liquidity.v1.BidToExit
|
|
2027
|
+
*/
|
|
2028
|
+
export class BidToExit extends Message {
|
|
2029
|
+
constructor(data) {
|
|
2030
|
+
super();
|
|
2031
|
+
/**
|
|
2032
|
+
* @generated from field: string bidId = 1;
|
|
2033
|
+
*/
|
|
2034
|
+
this.bidId = "";
|
|
2035
|
+
/**
|
|
2036
|
+
* @generated from field: bool isExited = 2;
|
|
2037
|
+
*/
|
|
2038
|
+
this.isExited = false;
|
|
2039
|
+
proto3.util.initPartial(data, this);
|
|
2040
|
+
}
|
|
2041
|
+
static fromBinary(bytes, options) {
|
|
2042
|
+
return new BidToExit().fromBinary(bytes, options);
|
|
2043
|
+
}
|
|
2044
|
+
static fromJson(jsonValue, options) {
|
|
2045
|
+
return new BidToExit().fromJson(jsonValue, options);
|
|
2046
|
+
}
|
|
2047
|
+
static fromJsonString(jsonString, options) {
|
|
2048
|
+
return new BidToExit().fromJsonString(jsonString, options);
|
|
2049
|
+
}
|
|
2050
|
+
static equals(a, b) {
|
|
2051
|
+
return proto3.util.equals(BidToExit, a, b);
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
BidToExit.runtime = proto3;
|
|
2055
|
+
BidToExit.typeName = "uniswap.liquidity.v1.BidToExit";
|
|
2056
|
+
BidToExit.fields = proto3.util.newFieldList(() => [
|
|
2057
|
+
{ no: 1, name: "bidId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2058
|
+
{ no: 2, name: "isExited", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2059
|
+
]);
|