@uniswap/client-liquidity 0.0.3 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.d.ts +43 -1
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.js +44 -2
- package/dist/uniswap/liquidity/v1/api_connect.d.ts +31 -1
- package/dist/uniswap/liquidity/v1/api_connect.js +32 -2
- package/dist/uniswap/liquidity/v1/api_pb.d.ts +366 -1
- package/dist/uniswap/liquidity/v1/api_pb.js +373 -2
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.d.ts +15 -1
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.js +16 -2
- package/dist/uniswap/liquidity/v1/auction_connect.d.ts +11 -1
- package/dist/uniswap/liquidity/v1/auction_connect.js +12 -2
- package/dist/uniswap/liquidity/v1/auction_pb.d.ts +8 -0
- package/dist/uniswap/liquidity/v1/auction_pb.js +7 -1
- package/dist/uniswap/liquidity/v1/types_pb.d.ts +1210 -1
- package/dist/uniswap/liquidity/v1/types_pb.js +1262 -2
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/api.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId, TransactionRequest, V3Position, V4Position } from "./types_pb.js";
|
|
6
|
+
import { ChainId, Distributor, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* REQUESTS & RESPONSES
|
|
9
9
|
*
|
|
@@ -77,6 +77,8 @@ MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
77
77
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
78
78
|
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest },
|
|
79
79
|
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
80
|
+
{ no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
81
|
+
{ no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
80
82
|
]);
|
|
81
83
|
/**
|
|
82
84
|
* @generated from message uniswap.liquidity.v1.MigrateV3ToV4LPPositionRequest
|
|
@@ -186,4 +188,373 @@ MigrateV3ToV4LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
186
188
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
187
189
|
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest },
|
|
188
190
|
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
191
|
+
{ no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
192
|
+
{ no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
193
|
+
]);
|
|
194
|
+
/**
|
|
195
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPRewardsRequest
|
|
196
|
+
*/
|
|
197
|
+
export class ClaimLPRewardsRequest extends Message {
|
|
198
|
+
constructor(data) {
|
|
199
|
+
super();
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: string wallet_address = 1;
|
|
202
|
+
*/
|
|
203
|
+
this.walletAddress = "";
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
206
|
+
*/
|
|
207
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: repeated string tokens = 3;
|
|
210
|
+
*/
|
|
211
|
+
this.tokens = [];
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: uniswap.liquidity.v1.Distributor distributor = 4;
|
|
214
|
+
*/
|
|
215
|
+
this.distributor = Distributor.MERKLE;
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: bool simulate_transaction = 5;
|
|
218
|
+
*/
|
|
219
|
+
this.simulateTransaction = false;
|
|
220
|
+
proto3.util.initPartial(data, this);
|
|
221
|
+
}
|
|
222
|
+
static fromBinary(bytes, options) {
|
|
223
|
+
return new ClaimLPRewardsRequest().fromBinary(bytes, options);
|
|
224
|
+
}
|
|
225
|
+
static fromJson(jsonValue, options) {
|
|
226
|
+
return new ClaimLPRewardsRequest().fromJson(jsonValue, options);
|
|
227
|
+
}
|
|
228
|
+
static fromJsonString(jsonString, options) {
|
|
229
|
+
return new ClaimLPRewardsRequest().fromJsonString(jsonString, options);
|
|
230
|
+
}
|
|
231
|
+
static equals(a, b) {
|
|
232
|
+
return proto3.util.equals(ClaimLPRewardsRequest, a, b);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
ClaimLPRewardsRequest.runtime = proto3;
|
|
236
|
+
ClaimLPRewardsRequest.typeName = "uniswap.liquidity.v1.ClaimLPRewardsRequest";
|
|
237
|
+
ClaimLPRewardsRequest.fields = proto3.util.newFieldList(() => [
|
|
238
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
240
|
+
{ no: 3, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
241
|
+
{ no: 4, name: "distributor", kind: "enum", T: proto3.getEnumType(Distributor) },
|
|
242
|
+
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
243
|
+
]);
|
|
244
|
+
/**
|
|
245
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPRewardsResponse
|
|
246
|
+
*/
|
|
247
|
+
export class ClaimLPRewardsResponse extends Message {
|
|
248
|
+
constructor(data) {
|
|
249
|
+
super();
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string request_id = 1;
|
|
252
|
+
*/
|
|
253
|
+
this.requestId = "";
|
|
254
|
+
proto3.util.initPartial(data, this);
|
|
255
|
+
}
|
|
256
|
+
static fromBinary(bytes, options) {
|
|
257
|
+
return new ClaimLPRewardsResponse().fromBinary(bytes, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJson(jsonValue, options) {
|
|
260
|
+
return new ClaimLPRewardsResponse().fromJson(jsonValue, options);
|
|
261
|
+
}
|
|
262
|
+
static fromJsonString(jsonString, options) {
|
|
263
|
+
return new ClaimLPRewardsResponse().fromJsonString(jsonString, options);
|
|
264
|
+
}
|
|
265
|
+
static equals(a, b) {
|
|
266
|
+
return proto3.util.equals(ClaimLPRewardsResponse, a, b);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
ClaimLPRewardsResponse.runtime = proto3;
|
|
270
|
+
ClaimLPRewardsResponse.typeName = "uniswap.liquidity.v1.ClaimLPRewardsResponse";
|
|
271
|
+
ClaimLPRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
272
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
273
|
+
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
274
|
+
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
275
|
+
]);
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message uniswap.liquidity.v1.CreateLPPositionRequest
|
|
278
|
+
*/
|
|
279
|
+
export class CreateLPPositionRequest extends Message {
|
|
280
|
+
constructor(data) {
|
|
281
|
+
super();
|
|
282
|
+
/**
|
|
283
|
+
* @generated from oneof uniswap.liquidity.v1.CreateLPPositionRequest.createLpPosition
|
|
284
|
+
*/
|
|
285
|
+
this.createLpPosition = { case: undefined };
|
|
286
|
+
proto3.util.initPartial(data, this);
|
|
287
|
+
}
|
|
288
|
+
static fromBinary(bytes, options) {
|
|
289
|
+
return new CreateLPPositionRequest().fromBinary(bytes, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJson(jsonValue, options) {
|
|
292
|
+
return new CreateLPPositionRequest().fromJson(jsonValue, options);
|
|
293
|
+
}
|
|
294
|
+
static fromJsonString(jsonString, options) {
|
|
295
|
+
return new CreateLPPositionRequest().fromJsonString(jsonString, options);
|
|
296
|
+
}
|
|
297
|
+
static equals(a, b) {
|
|
298
|
+
return proto3.util.equals(CreateLPPositionRequest, a, b);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
CreateLPPositionRequest.runtime = proto3;
|
|
302
|
+
CreateLPPositionRequest.typeName = "uniswap.liquidity.v1.CreateLPPositionRequest";
|
|
303
|
+
CreateLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
304
|
+
{ no: 1, name: "v2_create_lp_position", kind: "message", T: V2CreateLPPosition, oneof: "createLpPosition" },
|
|
305
|
+
{ no: 2, name: "v3_create_lp_position", kind: "message", T: V3CreateLPPosition, oneof: "createLpPosition" },
|
|
306
|
+
{ no: 3, name: "v4_create_lp_position", kind: "message", T: V4CreateLPPosition, oneof: "createLpPosition" },
|
|
307
|
+
]);
|
|
308
|
+
/**
|
|
309
|
+
* @generated from message uniswap.liquidity.v1.CreateLPPositionResponse
|
|
310
|
+
*/
|
|
311
|
+
export class CreateLPPositionResponse extends Message {
|
|
312
|
+
constructor(data) {
|
|
313
|
+
super();
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: string request_id = 1;
|
|
316
|
+
*/
|
|
317
|
+
this.requestId = "";
|
|
318
|
+
proto3.util.initPartial(data, this);
|
|
319
|
+
}
|
|
320
|
+
static fromBinary(bytes, options) {
|
|
321
|
+
return new CreateLPPositionResponse().fromBinary(bytes, options);
|
|
322
|
+
}
|
|
323
|
+
static fromJson(jsonValue, options) {
|
|
324
|
+
return new CreateLPPositionResponse().fromJson(jsonValue, options);
|
|
325
|
+
}
|
|
326
|
+
static fromJsonString(jsonString, options) {
|
|
327
|
+
return new CreateLPPositionResponse().fromJsonString(jsonString, options);
|
|
328
|
+
}
|
|
329
|
+
static equals(a, b) {
|
|
330
|
+
return proto3.util.equals(CreateLPPositionResponse, a, b);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
CreateLPPositionResponse.runtime = proto3;
|
|
334
|
+
CreateLPPositionResponse.typeName = "uniswap.liquidity.v1.CreateLPPositionResponse";
|
|
335
|
+
CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
336
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
337
|
+
{ no: 2, name: "create", kind: "message", T: TransactionRequest, opt: true },
|
|
338
|
+
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
339
|
+
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
340
|
+
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
341
|
+
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
342
|
+
]);
|
|
343
|
+
/**
|
|
344
|
+
* @generated from message uniswap.liquidity.v1.PoolInfoRequest
|
|
345
|
+
*/
|
|
346
|
+
export class PoolInfoRequest extends Message {
|
|
347
|
+
constructor(data) {
|
|
348
|
+
super();
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
351
|
+
*/
|
|
352
|
+
this.protocol = Protocols.V2;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: repeated uniswap.liquidity.v1.PoolReferenceByProtocol pool_references = 2;
|
|
355
|
+
*/
|
|
356
|
+
this.poolReferences = [];
|
|
357
|
+
proto3.util.initPartial(data, this);
|
|
358
|
+
}
|
|
359
|
+
static fromBinary(bytes, options) {
|
|
360
|
+
return new PoolInfoRequest().fromBinary(bytes, options);
|
|
361
|
+
}
|
|
362
|
+
static fromJson(jsonValue, options) {
|
|
363
|
+
return new PoolInfoRequest().fromJson(jsonValue, options);
|
|
364
|
+
}
|
|
365
|
+
static fromJsonString(jsonString, options) {
|
|
366
|
+
return new PoolInfoRequest().fromJsonString(jsonString, options);
|
|
367
|
+
}
|
|
368
|
+
static equals(a, b) {
|
|
369
|
+
return proto3.util.equals(PoolInfoRequest, a, b);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
PoolInfoRequest.runtime = proto3;
|
|
373
|
+
PoolInfoRequest.typeName = "uniswap.liquidity.v1.PoolInfoRequest";
|
|
374
|
+
PoolInfoRequest.fields = proto3.util.newFieldList(() => [
|
|
375
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
376
|
+
{ no: 2, name: "pool_references", kind: "message", T: PoolReferenceByProtocol, repeated: true },
|
|
377
|
+
{ no: 3, name: "pool_parameters", kind: "message", T: PoolParameters, opt: true },
|
|
378
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
379
|
+
{ no: 5, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
380
|
+
{ no: 6, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
381
|
+
]);
|
|
382
|
+
/**
|
|
383
|
+
* @generated from message uniswap.liquidity.v1.PoolInfoResponse
|
|
384
|
+
*/
|
|
385
|
+
export class PoolInfoResponse extends Message {
|
|
386
|
+
constructor(data) {
|
|
387
|
+
super();
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: string request_id = 1;
|
|
390
|
+
*/
|
|
391
|
+
this.requestId = "";
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: repeated uniswap.liquidity.v1.PoolInformation pools = 2;
|
|
394
|
+
*/
|
|
395
|
+
this.pools = [];
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: int32 current_page = 3;
|
|
398
|
+
*/
|
|
399
|
+
this.currentPage = 0;
|
|
400
|
+
/**
|
|
401
|
+
* @generated from field: int32 page_size = 4;
|
|
402
|
+
*/
|
|
403
|
+
this.pageSize = 0;
|
|
404
|
+
proto3.util.initPartial(data, this);
|
|
405
|
+
}
|
|
406
|
+
static fromBinary(bytes, options) {
|
|
407
|
+
return new PoolInfoResponse().fromBinary(bytes, options);
|
|
408
|
+
}
|
|
409
|
+
static fromJson(jsonValue, options) {
|
|
410
|
+
return new PoolInfoResponse().fromJson(jsonValue, options);
|
|
411
|
+
}
|
|
412
|
+
static fromJsonString(jsonString, options) {
|
|
413
|
+
return new PoolInfoResponse().fromJsonString(jsonString, options);
|
|
414
|
+
}
|
|
415
|
+
static equals(a, b) {
|
|
416
|
+
return proto3.util.equals(PoolInfoResponse, a, b);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
PoolInfoResponse.runtime = proto3;
|
|
420
|
+
PoolInfoResponse.typeName = "uniswap.liquidity.v1.PoolInfoResponse";
|
|
421
|
+
PoolInfoResponse.fields = proto3.util.newFieldList(() => [
|
|
422
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
423
|
+
{ no: 2, name: "pools", kind: "message", T: PoolInformation, repeated: true },
|
|
424
|
+
{ no: 3, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
425
|
+
{ no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
426
|
+
]);
|
|
427
|
+
/**
|
|
428
|
+
* @generated from message uniswap.liquidity.v1.IncreaseLPPositionRequest
|
|
429
|
+
*/
|
|
430
|
+
export class IncreaseLPPositionRequest extends Message {
|
|
431
|
+
constructor(data) {
|
|
432
|
+
super();
|
|
433
|
+
/**
|
|
434
|
+
* @generated from oneof uniswap.liquidity.v1.IncreaseLPPositionRequest.increaseLpPosition
|
|
435
|
+
*/
|
|
436
|
+
this.increaseLpPosition = { case: undefined };
|
|
437
|
+
proto3.util.initPartial(data, this);
|
|
438
|
+
}
|
|
439
|
+
static fromBinary(bytes, options) {
|
|
440
|
+
return new IncreaseLPPositionRequest().fromBinary(bytes, options);
|
|
441
|
+
}
|
|
442
|
+
static fromJson(jsonValue, options) {
|
|
443
|
+
return new IncreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
444
|
+
}
|
|
445
|
+
static fromJsonString(jsonString, options) {
|
|
446
|
+
return new IncreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
447
|
+
}
|
|
448
|
+
static equals(a, b) {
|
|
449
|
+
return proto3.util.equals(IncreaseLPPositionRequest, a, b);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
IncreaseLPPositionRequest.runtime = proto3;
|
|
453
|
+
IncreaseLPPositionRequest.typeName = "uniswap.liquidity.v1.IncreaseLPPositionRequest";
|
|
454
|
+
IncreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
455
|
+
{ no: 1, name: "v2_increase_lp_position", kind: "message", T: V2IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
456
|
+
{ no: 2, name: "v3_increase_lp_position", kind: "message", T: V3IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
457
|
+
{ no: 3, name: "v4_increase_lp_position", kind: "message", T: V4IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
458
|
+
]);
|
|
459
|
+
/**
|
|
460
|
+
* @generated from message uniswap.liquidity.v1.IncreaseLPPositionResponse
|
|
461
|
+
*/
|
|
462
|
+
export class IncreaseLPPositionResponse extends Message {
|
|
463
|
+
constructor(data) {
|
|
464
|
+
super();
|
|
465
|
+
/**
|
|
466
|
+
* @generated from field: string request_id = 1;
|
|
467
|
+
*/
|
|
468
|
+
this.requestId = "";
|
|
469
|
+
proto3.util.initPartial(data, this);
|
|
470
|
+
}
|
|
471
|
+
static fromBinary(bytes, options) {
|
|
472
|
+
return new IncreaseLPPositionResponse().fromBinary(bytes, options);
|
|
473
|
+
}
|
|
474
|
+
static fromJson(jsonValue, options) {
|
|
475
|
+
return new IncreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
476
|
+
}
|
|
477
|
+
static fromJsonString(jsonString, options) {
|
|
478
|
+
return new IncreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
479
|
+
}
|
|
480
|
+
static equals(a, b) {
|
|
481
|
+
return proto3.util.equals(IncreaseLPPositionResponse, a, b);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
IncreaseLPPositionResponse.runtime = proto3;
|
|
485
|
+
IncreaseLPPositionResponse.typeName = "uniswap.liquidity.v1.IncreaseLPPositionResponse";
|
|
486
|
+
IncreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
487
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
488
|
+
{ no: 2, name: "increase", kind: "message", T: TransactionRequest, opt: true },
|
|
489
|
+
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
490
|
+
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
491
|
+
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
492
|
+
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
493
|
+
]);
|
|
494
|
+
/**
|
|
495
|
+
* @generated from message uniswap.liquidity.v1.DecreaseLPPositionRequest
|
|
496
|
+
*/
|
|
497
|
+
export class DecreaseLPPositionRequest extends Message {
|
|
498
|
+
constructor(data) {
|
|
499
|
+
super();
|
|
500
|
+
/**
|
|
501
|
+
* @generated from oneof uniswap.liquidity.v1.DecreaseLPPositionRequest.decreaseLpPosition
|
|
502
|
+
*/
|
|
503
|
+
this.decreaseLpPosition = { case: undefined };
|
|
504
|
+
proto3.util.initPartial(data, this);
|
|
505
|
+
}
|
|
506
|
+
static fromBinary(bytes, options) {
|
|
507
|
+
return new DecreaseLPPositionRequest().fromBinary(bytes, options);
|
|
508
|
+
}
|
|
509
|
+
static fromJson(jsonValue, options) {
|
|
510
|
+
return new DecreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
511
|
+
}
|
|
512
|
+
static fromJsonString(jsonString, options) {
|
|
513
|
+
return new DecreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
514
|
+
}
|
|
515
|
+
static equals(a, b) {
|
|
516
|
+
return proto3.util.equals(DecreaseLPPositionRequest, a, b);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
DecreaseLPPositionRequest.runtime = proto3;
|
|
520
|
+
DecreaseLPPositionRequest.typeName = "uniswap.liquidity.v1.DecreaseLPPositionRequest";
|
|
521
|
+
DecreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
522
|
+
{ no: 1, name: "v2_decrease_lp_position", kind: "message", T: V2DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
523
|
+
{ no: 2, name: "v3_decrease_lp_position", kind: "message", T: V3DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
524
|
+
{ no: 3, name: "v4_decrease_lp_position", kind: "message", T: V4DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
525
|
+
]);
|
|
526
|
+
/**
|
|
527
|
+
* @generated from message uniswap.liquidity.v1.DecreaseLPPositionResponse
|
|
528
|
+
*/
|
|
529
|
+
export class DecreaseLPPositionResponse extends Message {
|
|
530
|
+
constructor(data) {
|
|
531
|
+
super();
|
|
532
|
+
/**
|
|
533
|
+
* @generated from field: string request_id = 1;
|
|
534
|
+
*/
|
|
535
|
+
this.requestId = "";
|
|
536
|
+
proto3.util.initPartial(data, this);
|
|
537
|
+
}
|
|
538
|
+
static fromBinary(bytes, options) {
|
|
539
|
+
return new DecreaseLPPositionResponse().fromBinary(bytes, options);
|
|
540
|
+
}
|
|
541
|
+
static fromJson(jsonValue, options) {
|
|
542
|
+
return new DecreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
543
|
+
}
|
|
544
|
+
static fromJsonString(jsonString, options) {
|
|
545
|
+
return new DecreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
546
|
+
}
|
|
547
|
+
static equals(a, b) {
|
|
548
|
+
return proto3.util.equals(DecreaseLPPositionResponse, a, b);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
DecreaseLPPositionResponse.runtime = proto3;
|
|
552
|
+
DecreaseLPPositionResponse.typeName = "uniswap.liquidity.v1.DecreaseLPPositionResponse";
|
|
553
|
+
DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
554
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
555
|
+
{ no: 2, name: "decrease", kind: "message", T: TransactionRequest, opt: true },
|
|
556
|
+
{ no: 3, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
557
|
+
{ no: 4, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
558
|
+
{ no: 5, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
559
|
+
{ no: 6, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
189
560
|
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
2
|
+
import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v1.AuctionService.SubmitBid
|
|
5
5
|
*/
|
|
@@ -14,3 +14,17 @@ export declare const submitBid: {
|
|
|
14
14
|
readonly typeName: "uniswap.liquidity.v1.AuctionService";
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.ExitBidPosition
|
|
19
|
+
*/
|
|
20
|
+
export declare const exitBidPosition: {
|
|
21
|
+
readonly localName: "exitBidPosition";
|
|
22
|
+
readonly name: "ExitBidPosition";
|
|
23
|
+
readonly kind: MethodKind.Unary;
|
|
24
|
+
readonly I: typeof ExitBidPositionRequest;
|
|
25
|
+
readonly O: typeof ExitBidPositionResponse;
|
|
26
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
27
|
+
readonly service: {
|
|
28
|
+
readonly typeName: "uniswap.liquidity.v1.AuctionService";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-query v1.4.
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
6
|
+
import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v1.AuctionService.SubmitBid
|
|
9
9
|
*/
|
|
@@ -18,3 +18,17 @@ export const submitBid = {
|
|
|
18
18
|
typeName: "uniswap.liquidity.v1.AuctionService"
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.ExitBidPosition
|
|
23
|
+
*/
|
|
24
|
+
export const exitBidPosition = {
|
|
25
|
+
localName: "exitBidPosition",
|
|
26
|
+
name: "ExitBidPosition",
|
|
27
|
+
kind: MethodKind.Unary,
|
|
28
|
+
I: ExitBidPositionRequest,
|
|
29
|
+
O: ExitBidPositionResponse,
|
|
30
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
31
|
+
service: {
|
|
32
|
+
typeName: "uniswap.liquidity.v1.AuctionService"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
1
|
+
import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.liquidity.v1.AuctionService
|
|
@@ -16,5 +16,15 @@ export declare const AuctionService: {
|
|
|
16
16
|
readonly kind: MethodKind.Unary;
|
|
17
17
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.ExitBidPosition
|
|
21
|
+
*/
|
|
22
|
+
readonly exitBidPosition: {
|
|
23
|
+
readonly name: "ExitBidPosition";
|
|
24
|
+
readonly I: typeof ExitBidPositionRequest;
|
|
25
|
+
readonly O: typeof ExitBidPositionResponse;
|
|
26
|
+
readonly kind: MethodKind.Unary;
|
|
27
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
28
|
+
};
|
|
19
29
|
};
|
|
20
30
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
5
|
+
import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.liquidity.v1.AuctionService
|
|
@@ -20,5 +20,15 @@ export const AuctionService = {
|
|
|
20
20
|
kind: MethodKind.Unary,
|
|
21
21
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
22
22
|
},
|
|
23
|
+
/**
|
|
24
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.ExitBidPosition
|
|
25
|
+
*/
|
|
26
|
+
exitBidPosition: {
|
|
27
|
+
name: "ExitBidPosition",
|
|
28
|
+
I: ExitBidPositionRequest,
|
|
29
|
+
O: ExitBidPositionResponse,
|
|
30
|
+
kind: MethodKind.Unary,
|
|
31
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
32
|
+
},
|
|
23
33
|
}
|
|
24
34
|
};
|
|
@@ -89,6 +89,14 @@ export declare class ExitBidPositionRequest extends Message<ExitBidPositionReque
|
|
|
89
89
|
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
90
90
|
*/
|
|
91
91
|
chainId: ChainId;
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string walletAddress = 4;
|
|
94
|
+
*/
|
|
95
|
+
walletAddress: string;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: optional bool simulate_transaction = 5;
|
|
98
|
+
*/
|
|
99
|
+
simulateTransaction?: boolean;
|
|
92
100
|
constructor(data?: PartialMessage<ExitBidPositionRequest>);
|
|
93
101
|
static readonly runtime: typeof proto3;
|
|
94
102
|
static readonly typeName = "uniswap.liquidity.v1.ExitBidPositionRequest";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -109,6 +109,10 @@ export class ExitBidPositionRequest extends Message {
|
|
|
109
109
|
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
110
110
|
*/
|
|
111
111
|
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: string walletAddress = 4;
|
|
114
|
+
*/
|
|
115
|
+
this.walletAddress = "";
|
|
112
116
|
proto3.util.initPartial(data, this);
|
|
113
117
|
}
|
|
114
118
|
static fromBinary(bytes, options) {
|
|
@@ -130,6 +134,8 @@ ExitBidPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
130
134
|
{ no: 1, name: "bidId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
135
|
{ no: 2, name: "auctionContractAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
136
|
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
137
|
+
{ no: 4, name: "walletAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
138
|
+
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
133
139
|
]);
|
|
134
140
|
/**
|
|
135
141
|
* @generated from message uniswap.liquidity.v1.ExitBidPositionResponse
|