@centurion_project/client-liquidity 0.3.0-ctn.1

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.
Files changed (29) hide show
  1. package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.d.ts +142 -0
  2. package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.js +146 -0
  3. package/dist/uniswap/liquidity/v1/api_connect.d.ts +110 -0
  4. package/dist/uniswap/liquidity/v1/api_connect.js +114 -0
  5. package/dist/uniswap/liquidity/v1/api_pb.d.ts +833 -0
  6. package/dist/uniswap/liquidity/v1/api_pb.js +827 -0
  7. package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.d.ts +86 -0
  8. package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.js +90 -0
  9. package/dist/uniswap/liquidity/v1/auction_connect.d.ts +70 -0
  10. package/dist/uniswap/liquidity/v1/auction_connect.js +74 -0
  11. package/dist/uniswap/liquidity/v1/auction_pb.d.ts +337 -0
  12. package/dist/uniswap/liquidity/v1/auction_pb.js +468 -0
  13. package/dist/uniswap/liquidity/v1/types_pb.d.ts +1963 -0
  14. package/dist/uniswap/liquidity/v1/types_pb.js +2223 -0
  15. package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.d.ts +34 -0
  16. package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.js +38 -0
  17. package/dist/uniswap/liquidity/v1/x_verification_connect.d.ts +34 -0
  18. package/dist/uniswap/liquidity/v1/x_verification_connect.js +38 -0
  19. package/dist/uniswap/liquidity/v1/x_verification_pb.d.ts +96 -0
  20. package/dist/uniswap/liquidity/v1/x_verification_pb.js +154 -0
  21. package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.d.ts +100 -0
  22. package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +104 -0
  23. package/dist/uniswap/liquidity/v2/api_connect.d.ts +80 -0
  24. package/dist/uniswap/liquidity/v2/api_connect.js +84 -0
  25. package/dist/uniswap/liquidity/v2/api_pb.d.ts +660 -0
  26. package/dist/uniswap/liquidity/v2/api_pb.js +637 -0
  27. package/dist/uniswap/liquidity/v2/types_pb.d.ts +266 -0
  28. package/dist/uniswap/liquidity/v2/types_pb.js +407 -0
  29. package/package.json +11 -0
@@ -0,0 +1,2223 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v1/types.proto (package uniswap.liquidity.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * ENUMS
8
+ *
9
+ * @generated from enum uniswap.liquidity.v1.Protocols
10
+ */
11
+ export var Protocols;
12
+ (function (Protocols) {
13
+ /**
14
+ * @generated from enum value: V2 = 0;
15
+ */
16
+ Protocols[Protocols["V2"] = 0] = "V2";
17
+ /**
18
+ * @generated from enum value: V3 = 1;
19
+ */
20
+ Protocols[Protocols["V3"] = 1] = "V3";
21
+ /**
22
+ * @generated from enum value: V4 = 2;
23
+ */
24
+ Protocols[Protocols["V4"] = 2] = "V4";
25
+ })(Protocols || (Protocols = {}));
26
+ // Retrieve enum metadata with: proto3.getEnumType(Protocols)
27
+ proto3.util.setEnumType(Protocols, "uniswap.liquidity.v1.Protocols", [
28
+ { no: 0, name: "V2" },
29
+ { no: 1, name: "V3" },
30
+ { no: 2, name: "V4" },
31
+ ]);
32
+ /**
33
+ * @generated from enum uniswap.liquidity.v1.ChainId
34
+ */
35
+ export var ChainId;
36
+ (function (ChainId) {
37
+ /**
38
+ * @generated from enum value: CHAIN_ID_UNSPECIFIED = 0;
39
+ */
40
+ ChainId[ChainId["CHAIN_ID_UNSPECIFIED"] = 0] = "CHAIN_ID_UNSPECIFIED";
41
+ /**
42
+ * @generated from enum value: MAINNET = 286;
43
+ */
44
+ ChainId[ChainId["MAINNET"] = 286] = "MAINNET";
45
+ /**
46
+ * @generated from enum value: OPTIMISM = 10;
47
+ */
48
+ ChainId[ChainId["OPTIMISM"] = 10] = "OPTIMISM";
49
+ /**
50
+ * @generated from enum value: POLYGON = 137;
51
+ */
52
+ ChainId[ChainId["POLYGON"] = 137] = "POLYGON";
53
+ /**
54
+ * @generated from enum value: ARBITRUM = 42161;
55
+ */
56
+ ChainId[ChainId["ARBITRUM"] = 42161] = "ARBITRUM";
57
+ /**
58
+ * @generated from enum value: BNB = 56;
59
+ */
60
+ ChainId[ChainId["BNB"] = 56] = "BNB";
61
+ /**
62
+ * @generated from enum value: BASE = 8453;
63
+ */
64
+ ChainId[ChainId["BASE"] = 8453] = "BASE";
65
+ /**
66
+ * @generated from enum value: BLAST = 81457;
67
+ */
68
+ ChainId[ChainId["BLAST"] = 81457] = "BLAST";
69
+ /**
70
+ * @generated from enum value: AVAX = 43114;
71
+ */
72
+ ChainId[ChainId["AVAX"] = 43114] = "AVAX";
73
+ /**
74
+ * @generated from enum value: CELO = 42220;
75
+ */
76
+ ChainId[ChainId["CELO"] = 42220] = "CELO";
77
+ /**
78
+ * @generated from enum value: ZORA = 7777777;
79
+ */
80
+ ChainId[ChainId["ZORA"] = 7777777] = "ZORA";
81
+ /**
82
+ * @generated from enum value: ZKSYNC = 324;
83
+ */
84
+ ChainId[ChainId["ZKSYNC"] = 324] = "ZKSYNC";
85
+ /**
86
+ * @generated from enum value: SEPOLIA = 11155111;
87
+ */
88
+ ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
89
+ /**
90
+ * @generated from enum value: UNICHAIN_SEPOLIA = 1301;
91
+ */
92
+ ChainId[ChainId["UNICHAIN_SEPOLIA"] = 1301] = "UNICHAIN_SEPOLIA";
93
+ /**
94
+ * @generated from enum value: WORLDCHAIN = 480;
95
+ */
96
+ ChainId[ChainId["WORLDCHAIN"] = 480] = "WORLDCHAIN";
97
+ /**
98
+ * @generated from enum value: MONAD_TESTNET = 10143;
99
+ */
100
+ ChainId[ChainId["MONAD_TESTNET"] = 10143] = "MONAD_TESTNET";
101
+ /**
102
+ * @generated from enum value: BASE_SEPOLIA = 84532;
103
+ */
104
+ ChainId[ChainId["BASE_SEPOLIA"] = 84532] = "BASE_SEPOLIA";
105
+ /**
106
+ * @generated from enum value: UNICHAIN = 130;
107
+ */
108
+ ChainId[ChainId["UNICHAIN"] = 130] = "UNICHAIN";
109
+ /**
110
+ * @generated from enum value: SONEIUM = 1868;
111
+ */
112
+ ChainId[ChainId["SONEIUM"] = 1868] = "SONEIUM";
113
+ /**
114
+ * @generated from enum value: MONAD = 143;
115
+ */
116
+ ChainId[ChainId["MONAD"] = 143] = "MONAD";
117
+ /**
118
+ * @generated from enum value: XLAYER = 196;
119
+ */
120
+ ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
121
+ /**
122
+ * @generated from enum value: LINEA = 59144;
123
+ */
124
+ ChainId[ChainId["LINEA"] = 59144] = "LINEA";
125
+ /**
126
+ * @generated from enum value: TEMPO = 4217;
127
+ */
128
+ ChainId[ChainId["TEMPO"] = 4217] = "TEMPO";
129
+ })(ChainId || (ChainId = {}));
130
+ // Retrieve enum metadata with: proto3.getEnumType(ChainId)
131
+ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
132
+ { no: 0, name: "CHAIN_ID_UNSPECIFIED" },
133
+ { no: 286, name: "MAINNET" },
134
+ { no: 10, name: "OPTIMISM" },
135
+ { no: 137, name: "POLYGON" },
136
+ { no: 42161, name: "ARBITRUM" },
137
+ { no: 56, name: "BNB" },
138
+ { no: 8453, name: "BASE" },
139
+ { no: 81457, name: "BLAST" },
140
+ { no: 43114, name: "AVAX" },
141
+ { no: 42220, name: "CELO" },
142
+ { no: 7777777, name: "ZORA" },
143
+ { no: 324, name: "ZKSYNC" },
144
+ { no: 11155111, name: "SEPOLIA" },
145
+ { no: 1301, name: "UNICHAIN_SEPOLIA" },
146
+ { no: 480, name: "WORLDCHAIN" },
147
+ { no: 10143, name: "MONAD_TESTNET" },
148
+ { no: 84532, name: "BASE_SEPOLIA" },
149
+ { no: 130, name: "UNICHAIN" },
150
+ { no: 1868, name: "SONEIUM" },
151
+ { no: 143, name: "MONAD" },
152
+ { no: 196, name: "XLAYER" },
153
+ { no: 59144, name: "LINEA" },
154
+ { no: 4217, name: "TEMPO" },
155
+ ]);
156
+ /**
157
+ * @generated from enum uniswap.liquidity.v1.Distributor
158
+ */
159
+ export var Distributor;
160
+ (function (Distributor) {
161
+ /**
162
+ * @generated from enum value: MERKLE = 0;
163
+ */
164
+ Distributor[Distributor["MERKLE"] = 0] = "MERKLE";
165
+ })(Distributor || (Distributor = {}));
166
+ // Retrieve enum metadata with: proto3.getEnumType(Distributor)
167
+ proto3.util.setEnumType(Distributor, "uniswap.liquidity.v1.Distributor", [
168
+ { no: 0, name: "MERKLE" },
169
+ ]);
170
+ /**
171
+ * @generated from enum uniswap.liquidity.v1.IndependentToken
172
+ */
173
+ export var IndependentToken;
174
+ (function (IndependentToken) {
175
+ /**
176
+ * @generated from enum value: TOKEN_0 = 0;
177
+ */
178
+ IndependentToken[IndependentToken["TOKEN_0"] = 0] = "TOKEN_0";
179
+ /**
180
+ * @generated from enum value: TOKEN_1 = 1;
181
+ */
182
+ IndependentToken[IndependentToken["TOKEN_1"] = 1] = "TOKEN_1";
183
+ })(IndependentToken || (IndependentToken = {}));
184
+ // Retrieve enum metadata with: proto3.getEnumType(IndependentToken)
185
+ proto3.util.setEnumType(IndependentToken, "uniswap.liquidity.v1.IndependentToken", [
186
+ { no: 0, name: "TOKEN_0" },
187
+ { no: 1, name: "TOKEN_1" },
188
+ ]);
189
+ /**
190
+ * @generated from enum uniswap.liquidity.v1.OnChainStatus
191
+ */
192
+ export var OnChainStatus;
193
+ (function (OnChainStatus) {
194
+ /**
195
+ * @generated from enum value: ON_CHAIN_STATUS_UNSPECIFIED = 0;
196
+ */
197
+ OnChainStatus[OnChainStatus["ON_CHAIN_STATUS_UNSPECIFIED"] = 0] = "ON_CHAIN_STATUS_UNSPECIFIED";
198
+ /**
199
+ * @generated from enum value: SUCCESS = 1;
200
+ */
201
+ OnChainStatus[OnChainStatus["SUCCESS"] = 1] = "SUCCESS";
202
+ /**
203
+ * @generated from enum value: FAILED = 2;
204
+ */
205
+ OnChainStatus[OnChainStatus["FAILED"] = 2] = "FAILED";
206
+ })(OnChainStatus || (OnChainStatus = {}));
207
+ // Retrieve enum metadata with: proto3.getEnumType(OnChainStatus)
208
+ proto3.util.setEnumType(OnChainStatus, "uniswap.liquidity.v1.OnChainStatus", [
209
+ { no: 0, name: "ON_CHAIN_STATUS_UNSPECIFIED" },
210
+ { no: 1, name: "SUCCESS" },
211
+ { no: 2, name: "FAILED" },
212
+ ]);
213
+ /**
214
+ * @generated from enum uniswap.liquidity.v1.KycVerificationStatus
215
+ */
216
+ export var KycVerificationStatus;
217
+ (function (KycVerificationStatus) {
218
+ /**
219
+ * @generated from enum value: VERIFICATION_STATUS_UNSPECIFIED = 0;
220
+ */
221
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_UNSPECIFIED"] = 0] = "VERIFICATION_STATUS_UNSPECIFIED";
222
+ /**
223
+ * this is basically verified
224
+ *
225
+ * @generated from enum value: VERIFICATION_STATUS_COMPLETED = 1;
226
+ */
227
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_COMPLETED"] = 1] = "VERIFICATION_STATUS_COMPLETED";
228
+ /**
229
+ * @generated from enum value: VERIFICATION_STATUS_NOT_STARTED = 2;
230
+ */
231
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_NOT_STARTED"] = 2] = "VERIFICATION_STATUS_NOT_STARTED";
232
+ /**
233
+ * @generated from enum value: VERIFICATION_STATUS_PENDING = 3;
234
+ */
235
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_PENDING"] = 3] = "VERIFICATION_STATUS_PENDING";
236
+ /**
237
+ * @generated from enum value: VERIFICATION_STATUS_RETRY = 4;
238
+ */
239
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_RETRY"] = 4] = "VERIFICATION_STATUS_RETRY";
240
+ /**
241
+ * @generated from enum value: VERIFICATION_STATUS_REJECTED = 5;
242
+ */
243
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_REJECTED"] = 5] = "VERIFICATION_STATUS_REJECTED";
244
+ })(KycVerificationStatus || (KycVerificationStatus = {}));
245
+ // Retrieve enum metadata with: proto3.getEnumType(KycVerificationStatus)
246
+ proto3.util.setEnumType(KycVerificationStatus, "uniswap.liquidity.v1.KycVerificationStatus", [
247
+ { no: 0, name: "VERIFICATION_STATUS_UNSPECIFIED" },
248
+ { no: 1, name: "VERIFICATION_STATUS_COMPLETED" },
249
+ { no: 2, name: "VERIFICATION_STATUS_NOT_STARTED" },
250
+ { no: 3, name: "VERIFICATION_STATUS_PENDING" },
251
+ { no: 4, name: "VERIFICATION_STATUS_RETRY" },
252
+ { no: 5, name: "VERIFICATION_STATUS_REJECTED" },
253
+ ]);
254
+ /**
255
+ * @generated from enum uniswap.liquidity.v1.ValidationType
256
+ */
257
+ export var ValidationType;
258
+ (function (ValidationType) {
259
+ /**
260
+ * @generated from enum value: VALIDATION_TYPE_UNSPECIFIED = 0;
261
+ */
262
+ ValidationType[ValidationType["VALIDATION_TYPE_UNSPECIFIED"] = 0] = "VALIDATION_TYPE_UNSPECIFIED";
263
+ /**
264
+ * @generated from enum value: KYC_VERIFICATION = 1;
265
+ */
266
+ ValidationType[ValidationType["KYC_VERIFICATION"] = 1] = "KYC_VERIFICATION";
267
+ /**
268
+ * @generated from enum value: ERC_1155_GATEWAY = 2;
269
+ */
270
+ ValidationType[ValidationType["ERC_1155_GATEWAY"] = 2] = "ERC_1155_GATEWAY";
271
+ })(ValidationType || (ValidationType = {}));
272
+ // Retrieve enum metadata with: proto3.getEnumType(ValidationType)
273
+ proto3.util.setEnumType(ValidationType, "uniswap.liquidity.v1.ValidationType", [
274
+ { no: 0, name: "VALIDATION_TYPE_UNSPECIFIED" },
275
+ { no: 1, name: "KYC_VERIFICATION" },
276
+ { no: 2, name: "ERC_1155_GATEWAY" },
277
+ ]);
278
+ /**
279
+ * CORE TYPE OBJECTS
280
+ *
281
+ * @generated from message uniswap.liquidity.v1.TransactionRequest
282
+ */
283
+ export class TransactionRequest extends Message {
284
+ constructor(data) {
285
+ super();
286
+ /**
287
+ * @generated from field: string to = 1;
288
+ */
289
+ this.to = "";
290
+ /**
291
+ * @generated from field: string from = 2;
292
+ */
293
+ this.from = "";
294
+ /**
295
+ * @generated from field: string data = 3;
296
+ */
297
+ this.data = "";
298
+ /**
299
+ * @generated from field: string value = 4;
300
+ */
301
+ this.value = "";
302
+ /**
303
+ * @generated from field: uint32 chain_id = 5;
304
+ */
305
+ this.chainId = 0;
306
+ proto3.util.initPartial(data, this);
307
+ }
308
+ static fromBinary(bytes, options) {
309
+ return new TransactionRequest().fromBinary(bytes, options);
310
+ }
311
+ static fromJson(jsonValue, options) {
312
+ return new TransactionRequest().fromJson(jsonValue, options);
313
+ }
314
+ static fromJsonString(jsonString, options) {
315
+ return new TransactionRequest().fromJsonString(jsonString, options);
316
+ }
317
+ static equals(a, b) {
318
+ return proto3.util.equals(TransactionRequest, a, b);
319
+ }
320
+ }
321
+ TransactionRequest.runtime = proto3;
322
+ TransactionRequest.typeName = "uniswap.liquidity.v1.TransactionRequest";
323
+ TransactionRequest.fields = proto3.util.newFieldList(() => [
324
+ { no: 1, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
325
+ { no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
326
+ { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
327
+ { no: 4, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
328
+ { no: 5, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
329
+ { no: 6, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
330
+ { no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
331
+ { no: 8, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
332
+ { no: 9, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
333
+ ]);
334
+ /**
335
+ * @generated from message uniswap.liquidity.v1.V4Position
336
+ */
337
+ export class V4Position extends Message {
338
+ constructor(data) {
339
+ super();
340
+ /**
341
+ * @generated from field: sint32 tick_lower = 2;
342
+ */
343
+ this.tickLower = 0;
344
+ /**
345
+ * @generated from field: sint32 tick_upper = 3;
346
+ */
347
+ this.tickUpper = 0;
348
+ proto3.util.initPartial(data, this);
349
+ }
350
+ static fromBinary(bytes, options) {
351
+ return new V4Position().fromBinary(bytes, options);
352
+ }
353
+ static fromJson(jsonValue, options) {
354
+ return new V4Position().fromJson(jsonValue, options);
355
+ }
356
+ static fromJsonString(jsonString, options) {
357
+ return new V4Position().fromJsonString(jsonString, options);
358
+ }
359
+ static equals(a, b) {
360
+ return proto3.util.equals(V4Position, a, b);
361
+ }
362
+ }
363
+ V4Position.runtime = proto3;
364
+ V4Position.typeName = "uniswap.liquidity.v1.V4Position";
365
+ V4Position.fields = proto3.util.newFieldList(() => [
366
+ { no: 1, name: "pool", kind: "message", T: V4Pool },
367
+ { no: 2, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
368
+ { no: 3, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
369
+ ]);
370
+ /**
371
+ * @generated from message uniswap.liquidity.v1.V3Position
372
+ */
373
+ export class V3Position extends Message {
374
+ constructor(data) {
375
+ super();
376
+ /**
377
+ * @generated from field: sint32 tick_lower = 2;
378
+ */
379
+ this.tickLower = 0;
380
+ /**
381
+ * @generated from field: sint32 tick_upper = 3;
382
+ */
383
+ this.tickUpper = 0;
384
+ proto3.util.initPartial(data, this);
385
+ }
386
+ static fromBinary(bytes, options) {
387
+ return new V3Position().fromBinary(bytes, options);
388
+ }
389
+ static fromJson(jsonValue, options) {
390
+ return new V3Position().fromJson(jsonValue, options);
391
+ }
392
+ static fromJsonString(jsonString, options) {
393
+ return new V3Position().fromJsonString(jsonString, options);
394
+ }
395
+ static equals(a, b) {
396
+ return proto3.util.equals(V3Position, a, b);
397
+ }
398
+ }
399
+ V3Position.runtime = proto3;
400
+ V3Position.typeName = "uniswap.liquidity.v1.V3Position";
401
+ V3Position.fields = proto3.util.newFieldList(() => [
402
+ { no: 1, name: "pool", kind: "message", T: V3Pool },
403
+ { no: 2, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
404
+ { no: 3, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
405
+ ]);
406
+ /**
407
+ * @generated from message uniswap.liquidity.v1.V2Position
408
+ */
409
+ export class V2Position extends Message {
410
+ constructor(data) {
411
+ super();
412
+ proto3.util.initPartial(data, this);
413
+ }
414
+ static fromBinary(bytes, options) {
415
+ return new V2Position().fromBinary(bytes, options);
416
+ }
417
+ static fromJson(jsonValue, options) {
418
+ return new V2Position().fromJson(jsonValue, options);
419
+ }
420
+ static fromJsonString(jsonString, options) {
421
+ return new V2Position().fromJsonString(jsonString, options);
422
+ }
423
+ static equals(a, b) {
424
+ return proto3.util.equals(V2Position, a, b);
425
+ }
426
+ }
427
+ V2Position.runtime = proto3;
428
+ V2Position.typeName = "uniswap.liquidity.v1.V2Position";
429
+ V2Position.fields = proto3.util.newFieldList(() => [
430
+ { no: 1, name: "pool", kind: "message", T: V2Pool },
431
+ ]);
432
+ /**
433
+ * @generated from message uniswap.liquidity.v1.V2Pool
434
+ */
435
+ export class V2Pool extends Message {
436
+ constructor(data) {
437
+ super();
438
+ /**
439
+ * @generated from field: string token0 = 1;
440
+ */
441
+ this.token0 = "";
442
+ /**
443
+ * @generated from field: string token1 = 2;
444
+ */
445
+ this.token1 = "";
446
+ proto3.util.initPartial(data, this);
447
+ }
448
+ static fromBinary(bytes, options) {
449
+ return new V2Pool().fromBinary(bytes, options);
450
+ }
451
+ static fromJson(jsonValue, options) {
452
+ return new V2Pool().fromJson(jsonValue, options);
453
+ }
454
+ static fromJsonString(jsonString, options) {
455
+ return new V2Pool().fromJsonString(jsonString, options);
456
+ }
457
+ static equals(a, b) {
458
+ return proto3.util.equals(V2Pool, a, b);
459
+ }
460
+ }
461
+ V2Pool.runtime = proto3;
462
+ V2Pool.typeName = "uniswap.liquidity.v1.V2Pool";
463
+ V2Pool.fields = proto3.util.newFieldList(() => [
464
+ { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
465
+ { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
466
+ ]);
467
+ /**
468
+ * @generated from message uniswap.liquidity.v1.V3Pool
469
+ */
470
+ export class V3Pool extends Message {
471
+ constructor(data) {
472
+ super();
473
+ /**
474
+ * @generated from field: string token0 = 1;
475
+ */
476
+ this.token0 = "";
477
+ /**
478
+ * @generated from field: string token1 = 2;
479
+ */
480
+ this.token1 = "";
481
+ /**
482
+ * @generated from field: int32 fee = 3;
483
+ */
484
+ this.fee = 0;
485
+ /**
486
+ * @generated from field: int32 tick_spacing = 4;
487
+ */
488
+ this.tickSpacing = 0;
489
+ proto3.util.initPartial(data, this);
490
+ }
491
+ static fromBinary(bytes, options) {
492
+ return new V3Pool().fromBinary(bytes, options);
493
+ }
494
+ static fromJson(jsonValue, options) {
495
+ return new V3Pool().fromJson(jsonValue, options);
496
+ }
497
+ static fromJsonString(jsonString, options) {
498
+ return new V3Pool().fromJsonString(jsonString, options);
499
+ }
500
+ static equals(a, b) {
501
+ return proto3.util.equals(V3Pool, a, b);
502
+ }
503
+ }
504
+ V3Pool.runtime = proto3;
505
+ V3Pool.typeName = "uniswap.liquidity.v1.V3Pool";
506
+ V3Pool.fields = proto3.util.newFieldList(() => [
507
+ { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
508
+ { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
509
+ { no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
510
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
511
+ ]);
512
+ /**
513
+ * @generated from message uniswap.liquidity.v1.V4Pool
514
+ */
515
+ export class V4Pool extends Message {
516
+ constructor(data) {
517
+ super();
518
+ /**
519
+ * @generated from field: string token0 = 1;
520
+ */
521
+ this.token0 = "";
522
+ /**
523
+ * @generated from field: string token1 = 2;
524
+ */
525
+ this.token1 = "";
526
+ /**
527
+ * @generated from field: int32 fee = 3;
528
+ */
529
+ this.fee = 0;
530
+ /**
531
+ * @generated from field: int32 tick_spacing = 4;
532
+ */
533
+ this.tickSpacing = 0;
534
+ proto3.util.initPartial(data, this);
535
+ }
536
+ static fromBinary(bytes, options) {
537
+ return new V4Pool().fromBinary(bytes, options);
538
+ }
539
+ static fromJson(jsonValue, options) {
540
+ return new V4Pool().fromJson(jsonValue, options);
541
+ }
542
+ static fromJsonString(jsonString, options) {
543
+ return new V4Pool().fromJsonString(jsonString, options);
544
+ }
545
+ static equals(a, b) {
546
+ return proto3.util.equals(V4Pool, a, b);
547
+ }
548
+ }
549
+ V4Pool.runtime = proto3;
550
+ V4Pool.typeName = "uniswap.liquidity.v1.V4Pool";
551
+ V4Pool.fields = proto3.util.newFieldList(() => [
552
+ { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
553
+ { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
554
+ { no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
555
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
556
+ { no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
557
+ ]);
558
+ /**
559
+ * PERMIT TYPES
560
+ *
561
+ * @generated from message uniswap.liquidity.v1.PermitSingleData
562
+ */
563
+ export class PermitSingleData extends Message {
564
+ constructor(data) {
565
+ super();
566
+ /**
567
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
568
+ */
569
+ this.types = {};
570
+ proto3.util.initPartial(data, this);
571
+ }
572
+ static fromBinary(bytes, options) {
573
+ return new PermitSingleData().fromBinary(bytes, options);
574
+ }
575
+ static fromJson(jsonValue, options) {
576
+ return new PermitSingleData().fromJson(jsonValue, options);
577
+ }
578
+ static fromJsonString(jsonString, options) {
579
+ return new PermitSingleData().fromJsonString(jsonString, options);
580
+ }
581
+ static equals(a, b) {
582
+ return proto3.util.equals(PermitSingleData, a, b);
583
+ }
584
+ }
585
+ PermitSingleData.runtime = proto3;
586
+ PermitSingleData.typeName = "uniswap.liquidity.v1.PermitSingleData";
587
+ PermitSingleData.fields = proto3.util.newFieldList(() => [
588
+ { no: 1, name: "domain", kind: "message", T: Domain },
589
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
590
+ { no: 3, name: "values", kind: "message", T: PermitSingle },
591
+ ]);
592
+ /**
593
+ * @generated from message uniswap.liquidity.v1.PermitSingle
594
+ */
595
+ export class PermitSingle extends Message {
596
+ constructor(data) {
597
+ super();
598
+ /**
599
+ * @generated from field: string spender = 2;
600
+ */
601
+ this.spender = "";
602
+ /**
603
+ * @generated from field: string sig_deadline = 3;
604
+ */
605
+ this.sigDeadline = "";
606
+ proto3.util.initPartial(data, this);
607
+ }
608
+ static fromBinary(bytes, options) {
609
+ return new PermitSingle().fromBinary(bytes, options);
610
+ }
611
+ static fromJson(jsonValue, options) {
612
+ return new PermitSingle().fromJson(jsonValue, options);
613
+ }
614
+ static fromJsonString(jsonString, options) {
615
+ return new PermitSingle().fromJsonString(jsonString, options);
616
+ }
617
+ static equals(a, b) {
618
+ return proto3.util.equals(PermitSingle, a, b);
619
+ }
620
+ }
621
+ PermitSingle.runtime = proto3;
622
+ PermitSingle.typeName = "uniswap.liquidity.v1.PermitSingle";
623
+ PermitSingle.fields = proto3.util.newFieldList(() => [
624
+ { no: 1, name: "details", kind: "message", T: PermitDetails },
625
+ { no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
626
+ { no: 3, name: "sig_deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
627
+ ]);
628
+ /**
629
+ * @generated from message uniswap.liquidity.v1.PermitDetails
630
+ */
631
+ export class PermitDetails extends Message {
632
+ constructor(data) {
633
+ super();
634
+ /**
635
+ * @generated from field: string token = 1;
636
+ */
637
+ this.token = "";
638
+ /**
639
+ * @generated from field: string amount = 2;
640
+ */
641
+ this.amount = "";
642
+ /**
643
+ * @generated from field: string expiration = 3;
644
+ */
645
+ this.expiration = "";
646
+ /**
647
+ * @generated from field: string nonce = 4;
648
+ */
649
+ this.nonce = "";
650
+ proto3.util.initPartial(data, this);
651
+ }
652
+ static fromBinary(bytes, options) {
653
+ return new PermitDetails().fromBinary(bytes, options);
654
+ }
655
+ static fromJson(jsonValue, options) {
656
+ return new PermitDetails().fromJson(jsonValue, options);
657
+ }
658
+ static fromJsonString(jsonString, options) {
659
+ return new PermitDetails().fromJsonString(jsonString, options);
660
+ }
661
+ static equals(a, b) {
662
+ return proto3.util.equals(PermitDetails, a, b);
663
+ }
664
+ }
665
+ PermitDetails.runtime = proto3;
666
+ PermitDetails.typeName = "uniswap.liquidity.v1.PermitDetails";
667
+ PermitDetails.fields = proto3.util.newFieldList(() => [
668
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
669
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
670
+ { no: 3, name: "expiration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
671
+ { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
672
+ ]);
673
+ /**
674
+ * @generated from message uniswap.liquidity.v1.Domain
675
+ */
676
+ export class Domain extends Message {
677
+ constructor(data) {
678
+ super();
679
+ proto3.util.initPartial(data, this);
680
+ }
681
+ static fromBinary(bytes, options) {
682
+ return new Domain().fromBinary(bytes, options);
683
+ }
684
+ static fromJson(jsonValue, options) {
685
+ return new Domain().fromJson(jsonValue, options);
686
+ }
687
+ static fromJsonString(jsonString, options) {
688
+ return new Domain().fromJsonString(jsonString, options);
689
+ }
690
+ static equals(a, b) {
691
+ return proto3.util.equals(Domain, a, b);
692
+ }
693
+ }
694
+ Domain.runtime = proto3;
695
+ Domain.typeName = "uniswap.liquidity.v1.Domain";
696
+ Domain.fields = proto3.util.newFieldList(() => [
697
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
698
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
699
+ { no: 3, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
700
+ { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
701
+ { no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
702
+ ]);
703
+ /**
704
+ * @generated from message uniswap.liquidity.v1.TypeField
705
+ */
706
+ export class TypeField extends Message {
707
+ constructor(data) {
708
+ super();
709
+ /**
710
+ * @generated from field: string name = 1;
711
+ */
712
+ this.name = "";
713
+ /**
714
+ * @generated from field: string type = 2;
715
+ */
716
+ this.type = "";
717
+ proto3.util.initPartial(data, this);
718
+ }
719
+ static fromBinary(bytes, options) {
720
+ return new TypeField().fromBinary(bytes, options);
721
+ }
722
+ static fromJson(jsonValue, options) {
723
+ return new TypeField().fromJson(jsonValue, options);
724
+ }
725
+ static fromJsonString(jsonString, options) {
726
+ return new TypeField().fromJsonString(jsonString, options);
727
+ }
728
+ static equals(a, b) {
729
+ return proto3.util.equals(TypeField, a, b);
730
+ }
731
+ }
732
+ TypeField.runtime = proto3;
733
+ TypeField.typeName = "uniswap.liquidity.v1.TypeField";
734
+ TypeField.fields = proto3.util.newFieldList(() => [
735
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
736
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
737
+ ]);
738
+ /**
739
+ * @generated from message uniswap.liquidity.v1.PermitBatchData
740
+ */
741
+ export class PermitBatchData extends Message {
742
+ constructor(data) {
743
+ super();
744
+ /**
745
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
746
+ */
747
+ this.types = {};
748
+ proto3.util.initPartial(data, this);
749
+ }
750
+ static fromBinary(bytes, options) {
751
+ return new PermitBatchData().fromBinary(bytes, options);
752
+ }
753
+ static fromJson(jsonValue, options) {
754
+ return new PermitBatchData().fromJson(jsonValue, options);
755
+ }
756
+ static fromJsonString(jsonString, options) {
757
+ return new PermitBatchData().fromJsonString(jsonString, options);
758
+ }
759
+ static equals(a, b) {
760
+ return proto3.util.equals(PermitBatchData, a, b);
761
+ }
762
+ }
763
+ PermitBatchData.runtime = proto3;
764
+ PermitBatchData.typeName = "uniswap.liquidity.v1.PermitBatchData";
765
+ PermitBatchData.fields = proto3.util.newFieldList(() => [
766
+ { no: 1, name: "domain", kind: "message", T: Domain },
767
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
768
+ { no: 3, name: "values", kind: "message", T: PermitBatch },
769
+ ]);
770
+ /**
771
+ * @generated from message uniswap.liquidity.v1.PermitBatch
772
+ */
773
+ export class PermitBatch extends Message {
774
+ constructor(data) {
775
+ super();
776
+ /**
777
+ * @generated from field: repeated uniswap.liquidity.v1.PermitDetails details = 1;
778
+ */
779
+ this.details = [];
780
+ /**
781
+ * @generated from field: string spender = 2;
782
+ */
783
+ this.spender = "";
784
+ /**
785
+ * @generated from field: string sig_deadline = 3;
786
+ */
787
+ this.sigDeadline = "";
788
+ proto3.util.initPartial(data, this);
789
+ }
790
+ static fromBinary(bytes, options) {
791
+ return new PermitBatch().fromBinary(bytes, options);
792
+ }
793
+ static fromJson(jsonValue, options) {
794
+ return new PermitBatch().fromJson(jsonValue, options);
795
+ }
796
+ static fromJsonString(jsonString, options) {
797
+ return new PermitBatch().fromJsonString(jsonString, options);
798
+ }
799
+ static equals(a, b) {
800
+ return proto3.util.equals(PermitBatch, a, b);
801
+ }
802
+ }
803
+ PermitBatch.runtime = proto3;
804
+ PermitBatch.typeName = "uniswap.liquidity.v1.PermitBatch";
805
+ PermitBatch.fields = proto3.util.newFieldList(() => [
806
+ { no: 1, name: "details", kind: "message", T: PermitDetails, repeated: true },
807
+ { no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
808
+ { no: 3, name: "sig_deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
809
+ ]);
810
+ /**
811
+ * @generated from message uniswap.liquidity.v1.TypedDataDomain
812
+ */
813
+ export class TypedDataDomain extends Message {
814
+ constructor(data) {
815
+ super();
816
+ proto3.util.initPartial(data, this);
817
+ }
818
+ static fromBinary(bytes, options) {
819
+ return new TypedDataDomain().fromBinary(bytes, options);
820
+ }
821
+ static fromJson(jsonValue, options) {
822
+ return new TypedDataDomain().fromJson(jsonValue, options);
823
+ }
824
+ static fromJsonString(jsonString, options) {
825
+ return new TypedDataDomain().fromJsonString(jsonString, options);
826
+ }
827
+ static equals(a, b) {
828
+ return proto3.util.equals(TypedDataDomain, a, b);
829
+ }
830
+ }
831
+ TypedDataDomain.runtime = proto3;
832
+ TypedDataDomain.typeName = "uniswap.liquidity.v1.TypedDataDomain";
833
+ TypedDataDomain.fields = proto3.util.newFieldList(() => [
834
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
835
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
836
+ { no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
837
+ { no: 4, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
838
+ { no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
839
+ ]);
840
+ /**
841
+ * @generated from message uniswap.liquidity.v1.NFTPermitValues
842
+ */
843
+ export class NFTPermitValues extends Message {
844
+ constructor(data) {
845
+ super();
846
+ /**
847
+ * @generated from field: string spender = 1;
848
+ */
849
+ this.spender = "";
850
+ /**
851
+ * @generated from field: int32 tokenId = 2;
852
+ */
853
+ this.tokenId = 0;
854
+ /**
855
+ * @generated from field: string deadline = 3;
856
+ */
857
+ this.deadline = "";
858
+ /**
859
+ * @generated from field: string nonce = 4;
860
+ */
861
+ this.nonce = "";
862
+ proto3.util.initPartial(data, this);
863
+ }
864
+ static fromBinary(bytes, options) {
865
+ return new NFTPermitValues().fromBinary(bytes, options);
866
+ }
867
+ static fromJson(jsonValue, options) {
868
+ return new NFTPermitValues().fromJson(jsonValue, options);
869
+ }
870
+ static fromJsonString(jsonString, options) {
871
+ return new NFTPermitValues().fromJsonString(jsonString, options);
872
+ }
873
+ static equals(a, b) {
874
+ return proto3.util.equals(NFTPermitValues, a, b);
875
+ }
876
+ }
877
+ NFTPermitValues.runtime = proto3;
878
+ NFTPermitValues.typeName = "uniswap.liquidity.v1.NFTPermitValues";
879
+ NFTPermitValues.fields = proto3.util.newFieldList(() => [
880
+ { no: 1, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
881
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
882
+ { no: 3, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
883
+ { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
884
+ ]);
885
+ /**
886
+ * @generated from message uniswap.liquidity.v1.NFTPermitData
887
+ */
888
+ export class NFTPermitData extends Message {
889
+ constructor(data) {
890
+ super();
891
+ /**
892
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
893
+ */
894
+ this.types = {};
895
+ proto3.util.initPartial(data, this);
896
+ }
897
+ static fromBinary(bytes, options) {
898
+ return new NFTPermitData().fromBinary(bytes, options);
899
+ }
900
+ static fromJson(jsonValue, options) {
901
+ return new NFTPermitData().fromJson(jsonValue, options);
902
+ }
903
+ static fromJsonString(jsonString, options) {
904
+ return new NFTPermitData().fromJsonString(jsonString, options);
905
+ }
906
+ static equals(a, b) {
907
+ return proto3.util.equals(NFTPermitData, a, b);
908
+ }
909
+ }
910
+ NFTPermitData.runtime = proto3;
911
+ NFTPermitData.typeName = "uniswap.liquidity.v1.NFTPermitData";
912
+ NFTPermitData.fields = proto3.util.newFieldList(() => [
913
+ { no: 1, name: "domain", kind: "message", T: TypedDataDomain },
914
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
915
+ { no: 3, name: "values", kind: "message", T: NFTPermitValues },
916
+ ]);
917
+ /**
918
+ * @generated from message uniswap.liquidity.v1.PermitTransferFromData
919
+ */
920
+ export class PermitTransferFromData extends Message {
921
+ constructor(data) {
922
+ super();
923
+ /**
924
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
925
+ */
926
+ this.types = {};
927
+ proto3.util.initPartial(data, this);
928
+ }
929
+ static fromBinary(bytes, options) {
930
+ return new PermitTransferFromData().fromBinary(bytes, options);
931
+ }
932
+ static fromJson(jsonValue, options) {
933
+ return new PermitTransferFromData().fromJson(jsonValue, options);
934
+ }
935
+ static fromJsonString(jsonString, options) {
936
+ return new PermitTransferFromData().fromJsonString(jsonString, options);
937
+ }
938
+ static equals(a, b) {
939
+ return proto3.util.equals(PermitTransferFromData, a, b);
940
+ }
941
+ }
942
+ PermitTransferFromData.runtime = proto3;
943
+ PermitTransferFromData.typeName = "uniswap.liquidity.v1.PermitTransferFromData";
944
+ PermitTransferFromData.fields = proto3.util.newFieldList(() => [
945
+ { no: 1, name: "domain", kind: "message", T: Domain },
946
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
947
+ { no: 3, name: "values", kind: "message", T: PermitTransferFrom },
948
+ ]);
949
+ /**
950
+ * @generated from message uniswap.liquidity.v1.TypeFieldArray
951
+ */
952
+ export class TypeFieldArray extends Message {
953
+ constructor(data) {
954
+ super();
955
+ /**
956
+ * @generated from field: repeated uniswap.liquidity.v1.TypeField fields = 1;
957
+ */
958
+ this.fields = [];
959
+ proto3.util.initPartial(data, this);
960
+ }
961
+ static fromBinary(bytes, options) {
962
+ return new TypeFieldArray().fromBinary(bytes, options);
963
+ }
964
+ static fromJson(jsonValue, options) {
965
+ return new TypeFieldArray().fromJson(jsonValue, options);
966
+ }
967
+ static fromJsonString(jsonString, options) {
968
+ return new TypeFieldArray().fromJsonString(jsonString, options);
969
+ }
970
+ static equals(a, b) {
971
+ return proto3.util.equals(TypeFieldArray, a, b);
972
+ }
973
+ }
974
+ TypeFieldArray.runtime = proto3;
975
+ TypeFieldArray.typeName = "uniswap.liquidity.v1.TypeFieldArray";
976
+ TypeFieldArray.fields = proto3.util.newFieldList(() => [
977
+ { no: 1, name: "fields", kind: "message", T: TypeField, repeated: true },
978
+ ]);
979
+ /**
980
+ * @generated from message uniswap.liquidity.v1.PermitTransferFrom
981
+ */
982
+ export class PermitTransferFrom extends Message {
983
+ constructor(data) {
984
+ super();
985
+ /**
986
+ * @generated from field: string spender = 2;
987
+ */
988
+ this.spender = "";
989
+ /**
990
+ * @generated from field: string nonce = 3;
991
+ */
992
+ this.nonce = "";
993
+ /**
994
+ * @generated from field: string deadline = 4;
995
+ */
996
+ this.deadline = "";
997
+ proto3.util.initPartial(data, this);
998
+ }
999
+ static fromBinary(bytes, options) {
1000
+ return new PermitTransferFrom().fromBinary(bytes, options);
1001
+ }
1002
+ static fromJson(jsonValue, options) {
1003
+ return new PermitTransferFrom().fromJson(jsonValue, options);
1004
+ }
1005
+ static fromJsonString(jsonString, options) {
1006
+ return new PermitTransferFrom().fromJsonString(jsonString, options);
1007
+ }
1008
+ static equals(a, b) {
1009
+ return proto3.util.equals(PermitTransferFrom, a, b);
1010
+ }
1011
+ }
1012
+ PermitTransferFrom.runtime = proto3;
1013
+ PermitTransferFrom.typeName = "uniswap.liquidity.v1.PermitTransferFrom";
1014
+ PermitTransferFrom.fields = proto3.util.newFieldList(() => [
1015
+ { no: 1, name: "permitted", kind: "message", T: TokenPermissions },
1016
+ { no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1017
+ { no: 3, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1018
+ { no: 4, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1019
+ ]);
1020
+ /**
1021
+ * @generated from message uniswap.liquidity.v1.TokenPermissions
1022
+ */
1023
+ export class TokenPermissions extends Message {
1024
+ constructor(data) {
1025
+ super();
1026
+ /**
1027
+ * @generated from field: string token = 1;
1028
+ */
1029
+ this.token = "";
1030
+ /**
1031
+ * @generated from field: string amount = 2;
1032
+ */
1033
+ this.amount = "";
1034
+ proto3.util.initPartial(data, this);
1035
+ }
1036
+ static fromBinary(bytes, options) {
1037
+ return new TokenPermissions().fromBinary(bytes, options);
1038
+ }
1039
+ static fromJson(jsonValue, options) {
1040
+ return new TokenPermissions().fromJson(jsonValue, options);
1041
+ }
1042
+ static fromJsonString(jsonString, options) {
1043
+ return new TokenPermissions().fromJsonString(jsonString, options);
1044
+ }
1045
+ static equals(a, b) {
1046
+ return proto3.util.equals(TokenPermissions, a, b);
1047
+ }
1048
+ }
1049
+ TokenPermissions.runtime = proto3;
1050
+ TokenPermissions.typeName = "uniswap.liquidity.v1.TokenPermissions";
1051
+ TokenPermissions.fields = proto3.util.newFieldList(() => [
1052
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1053
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1054
+ ]);
1055
+ /**
1056
+ * REQUEST MESSAGE SUPPORTING TYPES
1057
+ *
1058
+ * @generated from message uniswap.liquidity.v1.V2CreateLPPosition
1059
+ */
1060
+ export class V2CreateLPPosition extends Message {
1061
+ constructor(data) {
1062
+ super();
1063
+ /**
1064
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1065
+ */
1066
+ this.protocols = Protocols.V2;
1067
+ /**
1068
+ * @generated from field: string wallet_address = 3;
1069
+ */
1070
+ this.walletAddress = "";
1071
+ /**
1072
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1073
+ */
1074
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1075
+ /**
1076
+ * @generated from field: bool simulate_transaction = 13;
1077
+ */
1078
+ this.simulateTransaction = false;
1079
+ proto3.util.initPartial(data, this);
1080
+ }
1081
+ static fromBinary(bytes, options) {
1082
+ return new V2CreateLPPosition().fromBinary(bytes, options);
1083
+ }
1084
+ static fromJson(jsonValue, options) {
1085
+ return new V2CreateLPPosition().fromJson(jsonValue, options);
1086
+ }
1087
+ static fromJsonString(jsonString, options) {
1088
+ return new V2CreateLPPosition().fromJsonString(jsonString, options);
1089
+ }
1090
+ static equals(a, b) {
1091
+ return proto3.util.equals(V2CreateLPPosition, a, b);
1092
+ }
1093
+ }
1094
+ V2CreateLPPosition.runtime = proto3;
1095
+ V2CreateLPPosition.typeName = "uniswap.liquidity.v1.V2CreateLPPosition";
1096
+ V2CreateLPPosition.fields = proto3.util.newFieldList(() => [
1097
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1098
+ { no: 2, name: "position", kind: "message", T: V2Position },
1099
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1100
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1101
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1102
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1103
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1104
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1105
+ { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1106
+ { no: 11, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1107
+ { no: 12, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1108
+ { no: 13, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1109
+ ]);
1110
+ /**
1111
+ * @generated from message uniswap.liquidity.v1.V3CreateLPPosition
1112
+ */
1113
+ export class V3CreateLPPosition extends Message {
1114
+ constructor(data) {
1115
+ super();
1116
+ /**
1117
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1118
+ */
1119
+ this.protocols = Protocols.V2;
1120
+ /**
1121
+ * @generated from field: string wallet_address = 3;
1122
+ */
1123
+ this.walletAddress = "";
1124
+ /**
1125
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1126
+ */
1127
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1128
+ /**
1129
+ * @generated from field: bool simulate_transaction = 19;
1130
+ */
1131
+ this.simulateTransaction = false;
1132
+ proto3.util.initPartial(data, this);
1133
+ }
1134
+ static fromBinary(bytes, options) {
1135
+ return new V3CreateLPPosition().fromBinary(bytes, options);
1136
+ }
1137
+ static fromJson(jsonValue, options) {
1138
+ return new V3CreateLPPosition().fromJson(jsonValue, options);
1139
+ }
1140
+ static fromJsonString(jsonString, options) {
1141
+ return new V3CreateLPPosition().fromJsonString(jsonString, options);
1142
+ }
1143
+ static equals(a, b) {
1144
+ return proto3.util.equals(V3CreateLPPosition, a, b);
1145
+ }
1146
+ }
1147
+ V3CreateLPPosition.runtime = proto3;
1148
+ V3CreateLPPosition.typeName = "uniswap.liquidity.v1.V3CreateLPPosition";
1149
+ V3CreateLPPosition.fields = proto3.util.newFieldList(() => [
1150
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1151
+ { no: 2, name: "position", kind: "message", T: V3Position },
1152
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1153
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1154
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1155
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1156
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1157
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1158
+ { no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1159
+ { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1160
+ { no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1161
+ { no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1162
+ { no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1163
+ { no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1164
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1165
+ { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1166
+ { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1167
+ { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1168
+ { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1169
+ ]);
1170
+ /**
1171
+ * @generated from message uniswap.liquidity.v1.V4CreateLPPosition
1172
+ */
1173
+ export class V4CreateLPPosition extends Message {
1174
+ constructor(data) {
1175
+ super();
1176
+ /**
1177
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1178
+ */
1179
+ this.protocols = Protocols.V2;
1180
+ /**
1181
+ * @generated from field: string wallet_address = 3;
1182
+ */
1183
+ this.walletAddress = "";
1184
+ /**
1185
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1186
+ */
1187
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1188
+ /**
1189
+ * @generated from field: bool simulate_transaction = 19;
1190
+ */
1191
+ this.simulateTransaction = false;
1192
+ proto3.util.initPartial(data, this);
1193
+ }
1194
+ static fromBinary(bytes, options) {
1195
+ return new V4CreateLPPosition().fromBinary(bytes, options);
1196
+ }
1197
+ static fromJson(jsonValue, options) {
1198
+ return new V4CreateLPPosition().fromJson(jsonValue, options);
1199
+ }
1200
+ static fromJsonString(jsonString, options) {
1201
+ return new V4CreateLPPosition().fromJsonString(jsonString, options);
1202
+ }
1203
+ static equals(a, b) {
1204
+ return proto3.util.equals(V4CreateLPPosition, a, b);
1205
+ }
1206
+ }
1207
+ V4CreateLPPosition.runtime = proto3;
1208
+ V4CreateLPPosition.typeName = "uniswap.liquidity.v1.V4CreateLPPosition";
1209
+ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
1210
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1211
+ { no: 2, name: "position", kind: "message", T: V4Position },
1212
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1213
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1214
+ { no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1215
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1216
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1217
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1218
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1219
+ { no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1220
+ { no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1221
+ { no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1222
+ { no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1223
+ { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1224
+ { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1225
+ { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1226
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1227
+ { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1228
+ { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1229
+ { no: 20, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1230
+ ]);
1231
+ /**
1232
+ * @generated from message uniswap.liquidity.v1.PoolInformation
1233
+ */
1234
+ export class PoolInformation extends Message {
1235
+ constructor(data) {
1236
+ super();
1237
+ /**
1238
+ * @generated from field: string pool_reference_identifier = 1;
1239
+ */
1240
+ this.poolReferenceIdentifier = "";
1241
+ /**
1242
+ * @generated from field: uniswap.liquidity.v1.Protocols pool_protocol = 2;
1243
+ */
1244
+ this.poolProtocol = Protocols.V2;
1245
+ /**
1246
+ * @generated from field: string token_address_A = 3;
1247
+ */
1248
+ this.tokenAddressA = "";
1249
+ /**
1250
+ * @generated from field: string token_address_B = 4;
1251
+ */
1252
+ this.tokenAddressB = "";
1253
+ /**
1254
+ * @generated from field: int32 chain_id = 8;
1255
+ */
1256
+ this.chainId = 0;
1257
+ /**
1258
+ * @generated from field: string token_decimals_A = 11;
1259
+ */
1260
+ this.tokenDecimalsA = "";
1261
+ /**
1262
+ * @generated from field: string token_decimals_B = 12;
1263
+ */
1264
+ this.tokenDecimalsB = "";
1265
+ proto3.util.initPartial(data, this);
1266
+ }
1267
+ static fromBinary(bytes, options) {
1268
+ return new PoolInformation().fromBinary(bytes, options);
1269
+ }
1270
+ static fromJson(jsonValue, options) {
1271
+ return new PoolInformation().fromJson(jsonValue, options);
1272
+ }
1273
+ static fromJsonString(jsonString, options) {
1274
+ return new PoolInformation().fromJsonString(jsonString, options);
1275
+ }
1276
+ static equals(a, b) {
1277
+ return proto3.util.equals(PoolInformation, a, b);
1278
+ }
1279
+ }
1280
+ PoolInformation.runtime = proto3;
1281
+ PoolInformation.typeName = "uniswap.liquidity.v1.PoolInformation";
1282
+ PoolInformation.fields = proto3.util.newFieldList(() => [
1283
+ { no: 1, name: "pool_reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1284
+ { no: 2, name: "pool_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1285
+ { no: 3, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1286
+ { no: 4, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1287
+ { no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1288
+ { no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1289
+ { no: 7, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1290
+ { no: 8, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1291
+ { no: 9, name: "token_amount_A", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1292
+ { no: 10, name: "token_amount_B", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1293
+ { no: 11, name: "token_decimals_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1294
+ { no: 12, name: "token_decimals_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1295
+ { no: 13, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1296
+ { no: 14, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1297
+ { no: 15, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1298
+ { no: 16, name: "token_0_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1299
+ { no: 17, name: "token_1_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1300
+ ]);
1301
+ /**
1302
+ * @generated from message uniswap.liquidity.v1.PoolReferenceByProtocol
1303
+ */
1304
+ export class PoolReferenceByProtocol extends Message {
1305
+ constructor(data) {
1306
+ super();
1307
+ /**
1308
+ * @generated from field: string reference_identifier = 1;
1309
+ */
1310
+ this.referenceIdentifier = "";
1311
+ /**
1312
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
1313
+ */
1314
+ this.protocol = Protocols.V2;
1315
+ /**
1316
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
1317
+ */
1318
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1319
+ proto3.util.initPartial(data, this);
1320
+ }
1321
+ static fromBinary(bytes, options) {
1322
+ return new PoolReferenceByProtocol().fromBinary(bytes, options);
1323
+ }
1324
+ static fromJson(jsonValue, options) {
1325
+ return new PoolReferenceByProtocol().fromJson(jsonValue, options);
1326
+ }
1327
+ static fromJsonString(jsonString, options) {
1328
+ return new PoolReferenceByProtocol().fromJsonString(jsonString, options);
1329
+ }
1330
+ static equals(a, b) {
1331
+ return proto3.util.equals(PoolReferenceByProtocol, a, b);
1332
+ }
1333
+ }
1334
+ PoolReferenceByProtocol.runtime = proto3;
1335
+ PoolReferenceByProtocol.typeName = "uniswap.liquidity.v1.PoolReferenceByProtocol";
1336
+ PoolReferenceByProtocol.fields = proto3.util.newFieldList(() => [
1337
+ { no: 1, name: "reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1338
+ { no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1339
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1340
+ ]);
1341
+ /**
1342
+ * @generated from message uniswap.liquidity.v1.PoolParameters
1343
+ */
1344
+ export class PoolParameters extends Message {
1345
+ constructor(data) {
1346
+ super();
1347
+ /**
1348
+ * @generated from field: string token_address_A = 2;
1349
+ */
1350
+ this.tokenAddressA = "";
1351
+ /**
1352
+ * @generated from field: string token_address_B = 3;
1353
+ */
1354
+ this.tokenAddressB = "";
1355
+ proto3.util.initPartial(data, this);
1356
+ }
1357
+ static fromBinary(bytes, options) {
1358
+ return new PoolParameters().fromBinary(bytes, options);
1359
+ }
1360
+ static fromJson(jsonValue, options) {
1361
+ return new PoolParameters().fromJson(jsonValue, options);
1362
+ }
1363
+ static fromJsonString(jsonString, options) {
1364
+ return new PoolParameters().fromJsonString(jsonString, options);
1365
+ }
1366
+ static equals(a, b) {
1367
+ return proto3.util.equals(PoolParameters, a, b);
1368
+ }
1369
+ }
1370
+ PoolParameters.runtime = proto3;
1371
+ PoolParameters.typeName = "uniswap.liquidity.v1.PoolParameters";
1372
+ PoolParameters.fields = proto3.util.newFieldList(() => [
1373
+ { no: 2, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1374
+ { no: 3, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1375
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1376
+ { no: 5, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1377
+ { no: 6, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1378
+ ]);
1379
+ /**
1380
+ * @generated from message uniswap.liquidity.v1.V2IncreaseLPPosition
1381
+ */
1382
+ export class V2IncreaseLPPosition extends Message {
1383
+ constructor(data) {
1384
+ super();
1385
+ /**
1386
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1387
+ */
1388
+ this.protocols = Protocols.V2;
1389
+ /**
1390
+ * @generated from field: string wallet_address = 3;
1391
+ */
1392
+ this.walletAddress = "";
1393
+ /**
1394
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1395
+ */
1396
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1397
+ /**
1398
+ * @generated from field: bool simulate_transaction = 12;
1399
+ */
1400
+ this.simulateTransaction = false;
1401
+ proto3.util.initPartial(data, this);
1402
+ }
1403
+ static fromBinary(bytes, options) {
1404
+ return new V2IncreaseLPPosition().fromBinary(bytes, options);
1405
+ }
1406
+ static fromJson(jsonValue, options) {
1407
+ return new V2IncreaseLPPosition().fromJson(jsonValue, options);
1408
+ }
1409
+ static fromJsonString(jsonString, options) {
1410
+ return new V2IncreaseLPPosition().fromJsonString(jsonString, options);
1411
+ }
1412
+ static equals(a, b) {
1413
+ return proto3.util.equals(V2IncreaseLPPosition, a, b);
1414
+ }
1415
+ }
1416
+ V2IncreaseLPPosition.runtime = proto3;
1417
+ V2IncreaseLPPosition.typeName = "uniswap.liquidity.v1.V2IncreaseLPPosition";
1418
+ V2IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1419
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1420
+ { no: 2, name: "position", kind: "message", T: V2Position },
1421
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1422
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1423
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1424
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1425
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1426
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1427
+ { no: 9, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1428
+ { no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1429
+ { no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1430
+ { no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1431
+ ]);
1432
+ /**
1433
+ * @generated from message uniswap.liquidity.v1.V3IncreaseLPPosition
1434
+ */
1435
+ export class V3IncreaseLPPosition extends Message {
1436
+ constructor(data) {
1437
+ super();
1438
+ /**
1439
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1440
+ */
1441
+ this.protocols = Protocols.V2;
1442
+ /**
1443
+ * @generated from field: int32 tokenId = 2;
1444
+ */
1445
+ this.tokenId = 0;
1446
+ /**
1447
+ * @generated from field: string wallet_address = 4;
1448
+ */
1449
+ this.walletAddress = "";
1450
+ /**
1451
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1452
+ */
1453
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1454
+ /**
1455
+ * @generated from field: bool simulate_transaction = 15;
1456
+ */
1457
+ this.simulateTransaction = false;
1458
+ proto3.util.initPartial(data, this);
1459
+ }
1460
+ static fromBinary(bytes, options) {
1461
+ return new V3IncreaseLPPosition().fromBinary(bytes, options);
1462
+ }
1463
+ static fromJson(jsonValue, options) {
1464
+ return new V3IncreaseLPPosition().fromJson(jsonValue, options);
1465
+ }
1466
+ static fromJsonString(jsonString, options) {
1467
+ return new V3IncreaseLPPosition().fromJsonString(jsonString, options);
1468
+ }
1469
+ static equals(a, b) {
1470
+ return proto3.util.equals(V3IncreaseLPPosition, a, b);
1471
+ }
1472
+ }
1473
+ V3IncreaseLPPosition.runtime = proto3;
1474
+ V3IncreaseLPPosition.typeName = "uniswap.liquidity.v1.V3IncreaseLPPosition";
1475
+ V3IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1476
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1477
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1478
+ { no: 3, name: "position", kind: "message", T: V3Position },
1479
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1480
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1481
+ { no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1482
+ { no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1483
+ { no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1484
+ { no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1485
+ { no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1486
+ { no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1487
+ { no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1488
+ { no: 13, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1489
+ { no: 14, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1490
+ { no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1491
+ ]);
1492
+ /**
1493
+ * @generated from message uniswap.liquidity.v1.V4IncreaseLPPosition
1494
+ */
1495
+ export class V4IncreaseLPPosition extends Message {
1496
+ constructor(data) {
1497
+ super();
1498
+ /**
1499
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1500
+ */
1501
+ this.protocols = Protocols.V2;
1502
+ /**
1503
+ * @generated from field: int32 tokenId = 2;
1504
+ */
1505
+ this.tokenId = 0;
1506
+ /**
1507
+ * @generated from field: string wallet_address = 4;
1508
+ */
1509
+ this.walletAddress = "";
1510
+ /**
1511
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1512
+ */
1513
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1514
+ /**
1515
+ * @generated from field: bool simulate_transaction = 16;
1516
+ */
1517
+ this.simulateTransaction = false;
1518
+ proto3.util.initPartial(data, this);
1519
+ }
1520
+ static fromBinary(bytes, options) {
1521
+ return new V4IncreaseLPPosition().fromBinary(bytes, options);
1522
+ }
1523
+ static fromJson(jsonValue, options) {
1524
+ return new V4IncreaseLPPosition().fromJson(jsonValue, options);
1525
+ }
1526
+ static fromJsonString(jsonString, options) {
1527
+ return new V4IncreaseLPPosition().fromJsonString(jsonString, options);
1528
+ }
1529
+ static equals(a, b) {
1530
+ return proto3.util.equals(V4IncreaseLPPosition, a, b);
1531
+ }
1532
+ }
1533
+ V4IncreaseLPPosition.runtime = proto3;
1534
+ V4IncreaseLPPosition.typeName = "uniswap.liquidity.v1.V4IncreaseLPPosition";
1535
+ V4IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1536
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1537
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1538
+ { no: 3, name: "position", kind: "message", T: V4Position },
1539
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1540
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1541
+ { no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1542
+ { no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1543
+ { no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1544
+ { no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1545
+ { no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1546
+ { no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1547
+ { no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1548
+ { no: 14, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1549
+ { no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1550
+ { no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1551
+ { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1552
+ { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1553
+ ]);
1554
+ /**
1555
+ * @generated from message uniswap.liquidity.v1.V2DecreaseLPPosition
1556
+ */
1557
+ export class V2DecreaseLPPosition extends Message {
1558
+ constructor(data) {
1559
+ super();
1560
+ /**
1561
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1562
+ */
1563
+ this.protocol = Protocols.V2;
1564
+ /**
1565
+ * @generated from field: string wallet_address = 3;
1566
+ */
1567
+ this.walletAddress = "";
1568
+ /**
1569
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1570
+ */
1571
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1572
+ /**
1573
+ * @generated from field: string positionLiquidity = 5;
1574
+ */
1575
+ this.positionLiquidity = "";
1576
+ /**
1577
+ * @generated from field: string liquidityPercentageToDecrease = 6;
1578
+ */
1579
+ this.liquidityPercentageToDecrease = "";
1580
+ /**
1581
+ * @generated from field: string liquidity0 = 7;
1582
+ */
1583
+ this.liquidity0 = "";
1584
+ /**
1585
+ * @generated from field: string liquidity1 = 8;
1586
+ */
1587
+ this.liquidity1 = "";
1588
+ /**
1589
+ * @generated from field: bool collectAsWETH = 10;
1590
+ */
1591
+ this.collectAsWETH = false;
1592
+ proto3.util.initPartial(data, this);
1593
+ }
1594
+ static fromBinary(bytes, options) {
1595
+ return new V2DecreaseLPPosition().fromBinary(bytes, options);
1596
+ }
1597
+ static fromJson(jsonValue, options) {
1598
+ return new V2DecreaseLPPosition().fromJson(jsonValue, options);
1599
+ }
1600
+ static fromJsonString(jsonString, options) {
1601
+ return new V2DecreaseLPPosition().fromJsonString(jsonString, options);
1602
+ }
1603
+ static equals(a, b) {
1604
+ return proto3.util.equals(V2DecreaseLPPosition, a, b);
1605
+ }
1606
+ }
1607
+ V2DecreaseLPPosition.runtime = proto3;
1608
+ V2DecreaseLPPosition.typeName = "uniswap.liquidity.v1.V2DecreaseLPPosition";
1609
+ V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1610
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1611
+ { no: 2, name: "position", kind: "message", T: V2Position },
1612
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1613
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1614
+ { no: 5, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1615
+ { no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1616
+ { no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1617
+ { no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1618
+ { no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1619
+ { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1620
+ { no: 12, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1621
+ { no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1622
+ ]);
1623
+ /**
1624
+ * @generated from message uniswap.liquidity.v1.V3DecreaseLPPosition
1625
+ */
1626
+ export class V3DecreaseLPPosition extends Message {
1627
+ constructor(data) {
1628
+ super();
1629
+ /**
1630
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1631
+ */
1632
+ this.protocol = Protocols.V2;
1633
+ /**
1634
+ * @generated from field: int32 tokenId = 2;
1635
+ */
1636
+ this.tokenId = 0;
1637
+ /**
1638
+ * @generated from field: string wallet_address = 4;
1639
+ */
1640
+ this.walletAddress = "";
1641
+ /**
1642
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1643
+ */
1644
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1645
+ /**
1646
+ * @generated from field: string liquidityPercentageToDecrease = 7;
1647
+ */
1648
+ this.liquidityPercentageToDecrease = "";
1649
+ /**
1650
+ * @generated from field: string positionLiquidity = 11;
1651
+ */
1652
+ this.positionLiquidity = "";
1653
+ /**
1654
+ * @generated from field: string expectedTokenOwed0RawAmount = 12;
1655
+ */
1656
+ this.expectedTokenOwed0RawAmount = "";
1657
+ /**
1658
+ * @generated from field: string expectedTokenOwed1RawAmount = 13;
1659
+ */
1660
+ this.expectedTokenOwed1RawAmount = "";
1661
+ /**
1662
+ * @generated from field: bool collectAsWETH = 14;
1663
+ */
1664
+ this.collectAsWETH = false;
1665
+ proto3.util.initPartial(data, this);
1666
+ }
1667
+ static fromBinary(bytes, options) {
1668
+ return new V3DecreaseLPPosition().fromBinary(bytes, options);
1669
+ }
1670
+ static fromJson(jsonValue, options) {
1671
+ return new V3DecreaseLPPosition().fromJson(jsonValue, options);
1672
+ }
1673
+ static fromJsonString(jsonString, options) {
1674
+ return new V3DecreaseLPPosition().fromJsonString(jsonString, options);
1675
+ }
1676
+ static equals(a, b) {
1677
+ return proto3.util.equals(V3DecreaseLPPosition, a, b);
1678
+ }
1679
+ }
1680
+ V3DecreaseLPPosition.runtime = proto3;
1681
+ V3DecreaseLPPosition.typeName = "uniswap.liquidity.v1.V3DecreaseLPPosition";
1682
+ V3DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1683
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1684
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1685
+ { no: 3, name: "position", kind: "message", T: V3Position },
1686
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1687
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1688
+ { no: 7, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1689
+ { no: 8, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1690
+ { no: 9, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1691
+ { no: 10, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1692
+ { no: 11, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1693
+ { no: 12, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1694
+ { no: 13, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1695
+ { no: 14, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1696
+ { no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1697
+ { no: 16, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1698
+ { no: 17, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1699
+ ]);
1700
+ /**
1701
+ * @generated from message uniswap.liquidity.v1.V4DecreaseLPPosition
1702
+ */
1703
+ export class V4DecreaseLPPosition extends Message {
1704
+ constructor(data) {
1705
+ super();
1706
+ /**
1707
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1708
+ */
1709
+ this.protocol = Protocols.V2;
1710
+ /**
1711
+ * @generated from field: int32 tokenId = 2;
1712
+ */
1713
+ this.tokenId = 0;
1714
+ /**
1715
+ * @generated from field: string wallet_address = 4;
1716
+ */
1717
+ this.walletAddress = "";
1718
+ /**
1719
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1720
+ */
1721
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1722
+ /**
1723
+ * @generated from field: string liquidityPercentageToDecrease = 6;
1724
+ */
1725
+ this.liquidityPercentageToDecrease = "";
1726
+ /**
1727
+ * @generated from field: string positionLiquidity = 10;
1728
+ */
1729
+ this.positionLiquidity = "";
1730
+ proto3.util.initPartial(data, this);
1731
+ }
1732
+ static fromBinary(bytes, options) {
1733
+ return new V4DecreaseLPPosition().fromBinary(bytes, options);
1734
+ }
1735
+ static fromJson(jsonValue, options) {
1736
+ return new V4DecreaseLPPosition().fromJson(jsonValue, options);
1737
+ }
1738
+ static fromJsonString(jsonString, options) {
1739
+ return new V4DecreaseLPPosition().fromJsonString(jsonString, options);
1740
+ }
1741
+ static equals(a, b) {
1742
+ return proto3.util.equals(V4DecreaseLPPosition, a, b);
1743
+ }
1744
+ }
1745
+ V4DecreaseLPPosition.runtime = proto3;
1746
+ V4DecreaseLPPosition.typeName = "uniswap.liquidity.v1.V4DecreaseLPPosition";
1747
+ V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1748
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1749
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1750
+ { no: 3, name: "position", kind: "message", T: V4Position },
1751
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1752
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1753
+ { no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1754
+ { no: 7, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1755
+ { no: 8, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1756
+ { no: 9, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1757
+ { no: 10, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1758
+ { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1759
+ { no: 12, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1760
+ { no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1761
+ ]);
1762
+ /**
1763
+ * @generated from message uniswap.liquidity.v1.V2ClaimLPFeesRequest
1764
+ */
1765
+ export class V2ClaimLPFeesRequest extends Message {
1766
+ constructor(data) {
1767
+ super();
1768
+ /**
1769
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1770
+ */
1771
+ this.protocol = Protocols.V2;
1772
+ /**
1773
+ * @generated from field: string wallet_address = 3;
1774
+ */
1775
+ this.walletAddress = "";
1776
+ /**
1777
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1778
+ */
1779
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1780
+ /**
1781
+ * @generated from field: bool collectAsWETH = 6;
1782
+ */
1783
+ this.collectAsWETH = false;
1784
+ proto3.util.initPartial(data, this);
1785
+ }
1786
+ static fromBinary(bytes, options) {
1787
+ return new V2ClaimLPFeesRequest().fromBinary(bytes, options);
1788
+ }
1789
+ static fromJson(jsonValue, options) {
1790
+ return new V2ClaimLPFeesRequest().fromJson(jsonValue, options);
1791
+ }
1792
+ static fromJsonString(jsonString, options) {
1793
+ return new V2ClaimLPFeesRequest().fromJsonString(jsonString, options);
1794
+ }
1795
+ static equals(a, b) {
1796
+ return proto3.util.equals(V2ClaimLPFeesRequest, a, b);
1797
+ }
1798
+ }
1799
+ V2ClaimLPFeesRequest.runtime = proto3;
1800
+ V2ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.V2ClaimLPFeesRequest";
1801
+ V2ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
1802
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1803
+ { no: 2, name: "position", kind: "message", T: V2Position },
1804
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1805
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1806
+ { no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1807
+ { no: 6, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1808
+ ]);
1809
+ /**
1810
+ * @generated from message uniswap.liquidity.v1.V3ClaimLPFeesRequest
1811
+ */
1812
+ export class V3ClaimLPFeesRequest extends Message {
1813
+ constructor(data) {
1814
+ super();
1815
+ /**
1816
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1817
+ */
1818
+ this.protocol = Protocols.V2;
1819
+ /**
1820
+ * @generated from field: int32 tokenId = 2;
1821
+ */
1822
+ this.tokenId = 0;
1823
+ /**
1824
+ * @generated from field: string wallet_address = 4;
1825
+ */
1826
+ this.walletAddress = "";
1827
+ /**
1828
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1829
+ */
1830
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1831
+ /**
1832
+ * @generated from field: bool collectAsWETH = 7;
1833
+ */
1834
+ this.collectAsWETH = false;
1835
+ /**
1836
+ * @generated from field: string expectedTokenOwed0RawAmount = 8;
1837
+ */
1838
+ this.expectedTokenOwed0RawAmount = "";
1839
+ /**
1840
+ * @generated from field: string expectedTokenOwed1RawAmount = 9;
1841
+ */
1842
+ this.expectedTokenOwed1RawAmount = "";
1843
+ proto3.util.initPartial(data, this);
1844
+ }
1845
+ static fromBinary(bytes, options) {
1846
+ return new V3ClaimLPFeesRequest().fromBinary(bytes, options);
1847
+ }
1848
+ static fromJson(jsonValue, options) {
1849
+ return new V3ClaimLPFeesRequest().fromJson(jsonValue, options);
1850
+ }
1851
+ static fromJsonString(jsonString, options) {
1852
+ return new V3ClaimLPFeesRequest().fromJsonString(jsonString, options);
1853
+ }
1854
+ static equals(a, b) {
1855
+ return proto3.util.equals(V3ClaimLPFeesRequest, a, b);
1856
+ }
1857
+ }
1858
+ V3ClaimLPFeesRequest.runtime = proto3;
1859
+ V3ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.V3ClaimLPFeesRequest";
1860
+ V3ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
1861
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1862
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1863
+ { no: 3, name: "position", kind: "message", T: V3Position },
1864
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1865
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1866
+ { no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1867
+ { no: 7, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1868
+ { no: 8, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1869
+ { no: 9, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1870
+ ]);
1871
+ /**
1872
+ * @generated from message uniswap.liquidity.v1.V4ClaimLPFeesRequest
1873
+ */
1874
+ export class V4ClaimLPFeesRequest extends Message {
1875
+ constructor(data) {
1876
+ super();
1877
+ /**
1878
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1879
+ */
1880
+ this.protocol = Protocols.V2;
1881
+ /**
1882
+ * @generated from field: int32 tokenId = 2;
1883
+ */
1884
+ this.tokenId = 0;
1885
+ /**
1886
+ * @generated from field: string wallet_address = 4;
1887
+ */
1888
+ this.walletAddress = "";
1889
+ /**
1890
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1891
+ */
1892
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1893
+ proto3.util.initPartial(data, this);
1894
+ }
1895
+ static fromBinary(bytes, options) {
1896
+ return new V4ClaimLPFeesRequest().fromBinary(bytes, options);
1897
+ }
1898
+ static fromJson(jsonValue, options) {
1899
+ return new V4ClaimLPFeesRequest().fromJson(jsonValue, options);
1900
+ }
1901
+ static fromJsonString(jsonString, options) {
1902
+ return new V4ClaimLPFeesRequest().fromJsonString(jsonString, options);
1903
+ }
1904
+ static equals(a, b) {
1905
+ return proto3.util.equals(V4ClaimLPFeesRequest, a, b);
1906
+ }
1907
+ }
1908
+ V4ClaimLPFeesRequest.runtime = proto3;
1909
+ V4ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.V4ClaimLPFeesRequest";
1910
+ V4ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
1911
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1912
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1913
+ { no: 3, name: "position", kind: "message", T: V4Position },
1914
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1915
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1916
+ { no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1917
+ ]);
1918
+ /**
1919
+ * @generated from message uniswap.liquidity.v1.V2CheckApprovalLPRequest
1920
+ */
1921
+ export class V2CheckApprovalLPRequest extends Message {
1922
+ constructor(data) {
1923
+ super();
1924
+ /**
1925
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1926
+ */
1927
+ this.protocol = Protocols.V2;
1928
+ /**
1929
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1930
+ */
1931
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1932
+ /**
1933
+ * @generated from field: string wallet_address = 6;
1934
+ */
1935
+ this.walletAddress = "";
1936
+ /**
1937
+ * @generated from field: bool simulate_transaction = 11;
1938
+ */
1939
+ this.simulateTransaction = false;
1940
+ proto3.util.initPartial(data, this);
1941
+ }
1942
+ static fromBinary(bytes, options) {
1943
+ return new V2CheckApprovalLPRequest().fromBinary(bytes, options);
1944
+ }
1945
+ static fromJson(jsonValue, options) {
1946
+ return new V2CheckApprovalLPRequest().fromJson(jsonValue, options);
1947
+ }
1948
+ static fromJsonString(jsonString, options) {
1949
+ return new V2CheckApprovalLPRequest().fromJsonString(jsonString, options);
1950
+ }
1951
+ static equals(a, b) {
1952
+ return proto3.util.equals(V2CheckApprovalLPRequest, a, b);
1953
+ }
1954
+ }
1955
+ V2CheckApprovalLPRequest.runtime = proto3;
1956
+ V2CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V2CheckApprovalLPRequest";
1957
+ V2CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
1958
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1959
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1960
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1961
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1962
+ { no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1963
+ { no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1964
+ { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1965
+ { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1966
+ { no: 9, name: "position_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1967
+ { no: 10, name: "spender_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1968
+ { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1969
+ ]);
1970
+ /**
1971
+ * @generated from message uniswap.liquidity.v1.V3CheckApprovalLPRequest
1972
+ */
1973
+ export class V3CheckApprovalLPRequest extends Message {
1974
+ constructor(data) {
1975
+ super();
1976
+ /**
1977
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1978
+ */
1979
+ this.protocol = Protocols.V2;
1980
+ /**
1981
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1982
+ */
1983
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1984
+ /**
1985
+ * @generated from field: string wallet_address = 6;
1986
+ */
1987
+ this.walletAddress = "";
1988
+ /**
1989
+ * @generated from field: bool simulate_transaction = 10;
1990
+ */
1991
+ this.simulateTransaction = false;
1992
+ proto3.util.initPartial(data, this);
1993
+ }
1994
+ static fromBinary(bytes, options) {
1995
+ return new V3CheckApprovalLPRequest().fromBinary(bytes, options);
1996
+ }
1997
+ static fromJson(jsonValue, options) {
1998
+ return new V3CheckApprovalLPRequest().fromJson(jsonValue, options);
1999
+ }
2000
+ static fromJsonString(jsonString, options) {
2001
+ return new V3CheckApprovalLPRequest().fromJsonString(jsonString, options);
2002
+ }
2003
+ static equals(a, b) {
2004
+ return proto3.util.equals(V3CheckApprovalLPRequest, a, b);
2005
+ }
2006
+ }
2007
+ V3CheckApprovalLPRequest.runtime = proto3;
2008
+ V3CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V3CheckApprovalLPRequest";
2009
+ V3CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
2010
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
2011
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2012
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2013
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2014
+ { no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2015
+ { no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2016
+ { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2017
+ { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2018
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2019
+ ]);
2020
+ /**
2021
+ * @generated from message uniswap.liquidity.v1.V4CheckApprovalLPRequest
2022
+ */
2023
+ export class V4CheckApprovalLPRequest extends Message {
2024
+ constructor(data) {
2025
+ super();
2026
+ /**
2027
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
2028
+ */
2029
+ this.protocol = Protocols.V2;
2030
+ /**
2031
+ * @generated from field: string token0 = 2;
2032
+ */
2033
+ this.token0 = "";
2034
+ /**
2035
+ * @generated from field: string token1 = 3;
2036
+ */
2037
+ this.token1 = "";
2038
+ /**
2039
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
2040
+ */
2041
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
2042
+ /**
2043
+ * @generated from field: string wallet_address = 6;
2044
+ */
2045
+ this.walletAddress = "";
2046
+ /**
2047
+ * @generated from field: string amount0 = 7;
2048
+ */
2049
+ this.amount0 = "";
2050
+ /**
2051
+ * @generated from field: string amount1 = 8;
2052
+ */
2053
+ this.amount1 = "";
2054
+ /**
2055
+ * @generated from field: bool generate_permit_as_transaction = 9;
2056
+ */
2057
+ this.generatePermitAsTransaction = false;
2058
+ /**
2059
+ * @generated from field: bool simulate_transaction = 10;
2060
+ */
2061
+ this.simulateTransaction = false;
2062
+ proto3.util.initPartial(data, this);
2063
+ }
2064
+ static fromBinary(bytes, options) {
2065
+ return new V4CheckApprovalLPRequest().fromBinary(bytes, options);
2066
+ }
2067
+ static fromJson(jsonValue, options) {
2068
+ return new V4CheckApprovalLPRequest().fromJson(jsonValue, options);
2069
+ }
2070
+ static fromJsonString(jsonString, options) {
2071
+ return new V4CheckApprovalLPRequest().fromJsonString(jsonString, options);
2072
+ }
2073
+ static equals(a, b) {
2074
+ return proto3.util.equals(V4CheckApprovalLPRequest, a, b);
2075
+ }
2076
+ }
2077
+ V4CheckApprovalLPRequest.runtime = proto3;
2078
+ V4CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V4CheckApprovalLPRequest";
2079
+ V4CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
2080
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
2081
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2082
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2083
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2084
+ { no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2085
+ { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2086
+ { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2087
+ { no: 9, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2088
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2089
+ ]);
2090
+ /**
2091
+ * @generated from message uniswap.liquidity.v1.BidToExit
2092
+ */
2093
+ export class BidToExit extends Message {
2094
+ constructor(data) {
2095
+ super();
2096
+ /**
2097
+ * @generated from field: string bidId = 1;
2098
+ */
2099
+ this.bidId = "";
2100
+ /**
2101
+ * @generated from field: bool isExited = 2;
2102
+ */
2103
+ this.isExited = false;
2104
+ proto3.util.initPartial(data, this);
2105
+ }
2106
+ static fromBinary(bytes, options) {
2107
+ return new BidToExit().fromBinary(bytes, options);
2108
+ }
2109
+ static fromJson(jsonValue, options) {
2110
+ return new BidToExit().fromJson(jsonValue, options);
2111
+ }
2112
+ static fromJsonString(jsonString, options) {
2113
+ return new BidToExit().fromJsonString(jsonString, options);
2114
+ }
2115
+ static equals(a, b) {
2116
+ return proto3.util.equals(BidToExit, a, b);
2117
+ }
2118
+ }
2119
+ BidToExit.runtime = proto3;
2120
+ BidToExit.typeName = "uniswap.liquidity.v1.BidToExit";
2121
+ BidToExit.fields = proto3.util.newFieldList(() => [
2122
+ { no: 1, name: "bidId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2123
+ { no: 2, name: "isExited", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2124
+ ]);
2125
+ /**
2126
+ * @generated from message uniswap.liquidity.v1.PredicateKycVerificationData
2127
+ */
2128
+ export class PredicateKycVerificationData extends Message {
2129
+ constructor(data) {
2130
+ super();
2131
+ /**
2132
+ * @generated from field: uniswap.liquidity.v1.KycVerificationStatus status = 1;
2133
+ */
2134
+ this.status = KycVerificationStatus.VERIFICATION_STATUS_UNSPECIFIED;
2135
+ proto3.util.initPartial(data, this);
2136
+ }
2137
+ static fromBinary(bytes, options) {
2138
+ return new PredicateKycVerificationData().fromBinary(bytes, options);
2139
+ }
2140
+ static fromJson(jsonValue, options) {
2141
+ return new PredicateKycVerificationData().fromJson(jsonValue, options);
2142
+ }
2143
+ static fromJsonString(jsonString, options) {
2144
+ return new PredicateKycVerificationData().fromJsonString(jsonString, options);
2145
+ }
2146
+ static equals(a, b) {
2147
+ return proto3.util.equals(PredicateKycVerificationData, a, b);
2148
+ }
2149
+ }
2150
+ PredicateKycVerificationData.runtime = proto3;
2151
+ PredicateKycVerificationData.typeName = "uniswap.liquidity.v1.PredicateKycVerificationData";
2152
+ PredicateKycVerificationData.fields = proto3.util.newFieldList(() => [
2153
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(KycVerificationStatus) },
2154
+ { no: 2, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2155
+ { no: 3, name: "qr_code", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2156
+ ]);
2157
+ /**
2158
+ * @generated from message uniswap.liquidity.v1.Erc1155GateData
2159
+ */
2160
+ export class Erc1155GateData extends Message {
2161
+ constructor(data) {
2162
+ super();
2163
+ proto3.util.initPartial(data, this);
2164
+ }
2165
+ static fromBinary(bytes, options) {
2166
+ return new Erc1155GateData().fromBinary(bytes, options);
2167
+ }
2168
+ static fromJson(jsonValue, options) {
2169
+ return new Erc1155GateData().fromJson(jsonValue, options);
2170
+ }
2171
+ static fromJsonString(jsonString, options) {
2172
+ return new Erc1155GateData().fromJsonString(jsonString, options);
2173
+ }
2174
+ static equals(a, b) {
2175
+ return proto3.util.equals(Erc1155GateData, a, b);
2176
+ }
2177
+ }
2178
+ Erc1155GateData.runtime = proto3;
2179
+ Erc1155GateData.typeName = "uniswap.liquidity.v1.Erc1155GateData";
2180
+ Erc1155GateData.fields = proto3.util.newFieldList(() => [
2181
+ { no: 1, name: "expiration_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2182
+ ]);
2183
+ /**
2184
+ * @generated from message uniswap.liquidity.v1.AuctionValidation
2185
+ */
2186
+ export class AuctionValidation extends Message {
2187
+ constructor(data) {
2188
+ super();
2189
+ /**
2190
+ * @generated from field: uniswap.liquidity.v1.ValidationType validation_type = 1;
2191
+ */
2192
+ this.validationType = ValidationType.VALIDATION_TYPE_UNSPECIFIED;
2193
+ /**
2194
+ * @generated from oneof uniswap.liquidity.v1.AuctionValidation.data
2195
+ */
2196
+ this.data = { case: undefined };
2197
+ /**
2198
+ * @generated from field: bool validation_passed = 4;
2199
+ */
2200
+ this.validationPassed = false;
2201
+ proto3.util.initPartial(data, this);
2202
+ }
2203
+ static fromBinary(bytes, options) {
2204
+ return new AuctionValidation().fromBinary(bytes, options);
2205
+ }
2206
+ static fromJson(jsonValue, options) {
2207
+ return new AuctionValidation().fromJson(jsonValue, options);
2208
+ }
2209
+ static fromJsonString(jsonString, options) {
2210
+ return new AuctionValidation().fromJsonString(jsonString, options);
2211
+ }
2212
+ static equals(a, b) {
2213
+ return proto3.util.equals(AuctionValidation, a, b);
2214
+ }
2215
+ }
2216
+ AuctionValidation.runtime = proto3;
2217
+ AuctionValidation.typeName = "uniswap.liquidity.v1.AuctionValidation";
2218
+ AuctionValidation.fields = proto3.util.newFieldList(() => [
2219
+ { no: 1, name: "validation_type", kind: "enum", T: proto3.getEnumType(ValidationType) },
2220
+ { no: 2, name: "kyc_verification_data", kind: "message", T: PredicateKycVerificationData, oneof: "data" },
2221
+ { no: 3, name: "erc_1155_gate_data", kind: "message", T: Erc1155GateData, oneof: "data" },
2222
+ { no: 4, name: "validation_passed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2223
+ ]);