@uniswap/client-liquidity 0.1.5 → 0.1.7
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/v2/api-LiquidityService_connectquery.d.ts +15 -1
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +15 -1
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +11 -1
- package/dist/uniswap/liquidity/v2/api_connect.js +11 -1
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +243 -19
- package/dist/uniswap/liquidity/v2/api_pb.js +212 -23
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +41 -0
- package/dist/uniswap/liquidity/v2/types_pb.js +56 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
2
|
+
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
5
5
|
*/
|
|
@@ -56,3 +56,17 @@ export declare const decreasePosition: {
|
|
|
56
56
|
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.IncreasePosition
|
|
61
|
+
*/
|
|
62
|
+
export declare const increasePosition: {
|
|
63
|
+
readonly localName: "increasePosition";
|
|
64
|
+
readonly name: "IncreasePosition";
|
|
65
|
+
readonly kind: MethodKind.Unary;
|
|
66
|
+
readonly I: typeof IncreasePositionRequest;
|
|
67
|
+
readonly O: typeof IncreasePositionResponse;
|
|
68
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
69
|
+
readonly service: {
|
|
70
|
+
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
6
|
+
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
9
9
|
*/
|
|
@@ -60,3 +60,17 @@ export const decreasePosition = {
|
|
|
60
60
|
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.IncreasePosition
|
|
65
|
+
*/
|
|
66
|
+
export const increasePosition = {
|
|
67
|
+
localName: "increasePosition",
|
|
68
|
+
name: "IncreasePosition",
|
|
69
|
+
kind: MethodKind.Unary,
|
|
70
|
+
I: IncreasePositionRequest,
|
|
71
|
+
O: IncreasePositionResponse,
|
|
72
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
73
|
+
service: {
|
|
74
|
+
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
1
|
+
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.liquidity.v2.LiquidityService
|
|
@@ -46,5 +46,15 @@ export declare const LiquidityService: {
|
|
|
46
46
|
readonly kind: MethodKind.Unary;
|
|
47
47
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.IncreasePosition
|
|
51
|
+
*/
|
|
52
|
+
readonly increasePosition: {
|
|
53
|
+
readonly name: "IncreasePosition";
|
|
54
|
+
readonly I: typeof IncreasePositionRequest;
|
|
55
|
+
readonly O: typeof IncreasePositionResponse;
|
|
56
|
+
readonly kind: MethodKind.Unary;
|
|
57
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
58
|
+
};
|
|
49
59
|
};
|
|
50
60
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
5
|
+
import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.liquidity.v2.LiquidityService
|
|
@@ -50,5 +50,15 @@ export const LiquidityService = {
|
|
|
50
50
|
kind: MethodKind.Unary,
|
|
51
51
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
52
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.IncreasePosition
|
|
55
|
+
*/
|
|
56
|
+
increasePosition: {
|
|
57
|
+
name: "IncreasePosition",
|
|
58
|
+
I: IncreasePositionRequest,
|
|
59
|
+
O: IncreasePositionResponse,
|
|
60
|
+
kind: MethodKind.Unary,
|
|
61
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
62
|
+
},
|
|
53
63
|
}
|
|
54
64
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { ChainId, NFTPermitData, PermitBatchData,
|
|
4
|
-
import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
|
|
3
|
+
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
4
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* MigrateV2ToV3LPPosition
|
|
7
7
|
*
|
|
@@ -159,8 +159,6 @@ export declare class LPApprovalResponse extends Message<LPApprovalResponse> {
|
|
|
159
159
|
static equals(a: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined, b: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined): boolean;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* CreateClassicPosition
|
|
163
|
-
*
|
|
164
162
|
* @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
|
|
165
163
|
*/
|
|
166
164
|
export declare class CreateClassicPositionRequest extends Message<CreateClassicPositionRequest> {
|
|
@@ -188,17 +186,13 @@ export declare class CreateClassicPositionRequest extends Message<CreateClassicP
|
|
|
188
186
|
value?: undefined;
|
|
189
187
|
};
|
|
190
188
|
/**
|
|
191
|
-
* @generated from field:
|
|
192
|
-
*/
|
|
193
|
-
referenceTokenAddress: string;
|
|
194
|
-
/**
|
|
195
|
-
* @generated from field: string token_0_amount = 5;
|
|
189
|
+
* @generated from field: uniswap.liquidity.v2.LPToken independent_token = 4;
|
|
196
190
|
*/
|
|
197
|
-
|
|
191
|
+
independentToken?: LPToken;
|
|
198
192
|
/**
|
|
199
|
-
* @generated from field: optional
|
|
193
|
+
* @generated from field: optional uniswap.liquidity.v2.LPToken dependent_token = 6;
|
|
200
194
|
*/
|
|
201
|
-
|
|
195
|
+
dependentToken?: LPToken;
|
|
202
196
|
/**
|
|
203
197
|
* @generated from field: optional float slippage_tolerance = 7;
|
|
204
198
|
*/
|
|
@@ -233,13 +227,13 @@ export declare class CreateClassicPositionResponse extends Message<CreateClassic
|
|
|
233
227
|
*/
|
|
234
228
|
requestId: string;
|
|
235
229
|
/**
|
|
236
|
-
* @generated from field: uniswap.liquidity.v2.LPToken
|
|
230
|
+
* @generated from field: uniswap.liquidity.v2.LPToken independent_token = 2;
|
|
237
231
|
*/
|
|
238
|
-
|
|
232
|
+
independentToken?: LPToken;
|
|
239
233
|
/**
|
|
240
|
-
* @generated from field: uniswap.liquidity.v2.LPToken
|
|
234
|
+
* @generated from field: uniswap.liquidity.v2.LPToken dependent_token = 3;
|
|
241
235
|
*/
|
|
242
|
-
|
|
236
|
+
dependentToken?: LPToken;
|
|
243
237
|
/**
|
|
244
238
|
* @generated from field: uniswap.liquidity.v1.TransactionRequest create = 4;
|
|
245
239
|
*/
|
|
@@ -400,11 +394,17 @@ export declare class IncreasePositionRequest extends Message<IncreasePositionReq
|
|
|
400
394
|
*/
|
|
401
395
|
simulateTransaction?: boolean;
|
|
402
396
|
/**
|
|
403
|
-
*
|
|
397
|
+
* permit data + signature for v4 only
|
|
398
|
+
*
|
|
399
|
+
* @generated from field: optional uniswap.liquidity.v1.PermitBatchData v4_batch_permit_data = 11;
|
|
400
|
+
*/
|
|
401
|
+
v4BatchPermitData?: PermitBatchData;
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: optional string signature = 12;
|
|
404
404
|
*/
|
|
405
|
-
|
|
405
|
+
signature?: string;
|
|
406
406
|
/**
|
|
407
|
-
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency =
|
|
407
|
+
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 13;
|
|
408
408
|
*/
|
|
409
409
|
urgency?: GasUrgency;
|
|
410
410
|
constructor(data?: PartialMessage<IncreasePositionRequest>);
|
|
@@ -449,3 +449,227 @@ export declare class IncreasePositionResponse extends Message<IncreasePositionRe
|
|
|
449
449
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IncreasePositionResponse;
|
|
450
450
|
static equals(a: IncreasePositionResponse | PlainMessage<IncreasePositionResponse> | undefined, b: IncreasePositionResponse | PlainMessage<IncreasePositionResponse> | undefined): boolean;
|
|
451
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* CreatePosition (V3/V4)
|
|
454
|
+
*
|
|
455
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionRequest
|
|
456
|
+
*/
|
|
457
|
+
export declare class CreatePositionRequest extends Message<CreatePositionRequest> {
|
|
458
|
+
/**
|
|
459
|
+
* @generated from field: string wallet_address = 1;
|
|
460
|
+
*/
|
|
461
|
+
walletAddress: string;
|
|
462
|
+
/**
|
|
463
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.pool
|
|
464
|
+
*/
|
|
465
|
+
pool: {
|
|
466
|
+
/**
|
|
467
|
+
* @generated from field: string pool_reference = 2;
|
|
468
|
+
*/
|
|
469
|
+
value: string;
|
|
470
|
+
case: "poolReference";
|
|
471
|
+
} | {
|
|
472
|
+
/**
|
|
473
|
+
* @generated from field: uniswap.liquidity.v2.CreatePoolParameters new_pool = 3;
|
|
474
|
+
*/
|
|
475
|
+
value: CreatePoolParameters;
|
|
476
|
+
case: "newPool";
|
|
477
|
+
} | {
|
|
478
|
+
case: undefined;
|
|
479
|
+
value?: undefined;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
483
|
+
*/
|
|
484
|
+
chainId: ChainId;
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 5;
|
|
487
|
+
*/
|
|
488
|
+
protocol: Protocols;
|
|
489
|
+
/**
|
|
490
|
+
* @generated from field: uniswap.liquidity.v2.LPToken independent_token = 6;
|
|
491
|
+
*/
|
|
492
|
+
independentToken?: LPToken;
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: optional uniswap.liquidity.v2.LPToken dependent_token = 7;
|
|
495
|
+
*/
|
|
496
|
+
dependentToken?: LPToken;
|
|
497
|
+
/**
|
|
498
|
+
* @generated from field: string min_price = 8;
|
|
499
|
+
*/
|
|
500
|
+
minPrice: string;
|
|
501
|
+
/**
|
|
502
|
+
* @generated from field: string max_price = 9;
|
|
503
|
+
*/
|
|
504
|
+
maxPrice: string;
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: optional float slippage_tolerance = 10;
|
|
507
|
+
*/
|
|
508
|
+
slippageTolerance?: number;
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: optional int32 deadline = 11;
|
|
511
|
+
*/
|
|
512
|
+
deadline?: number;
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: optional bool simulate_transaction = 12;
|
|
515
|
+
*/
|
|
516
|
+
simulateTransaction?: boolean;
|
|
517
|
+
/**
|
|
518
|
+
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 13;
|
|
519
|
+
*/
|
|
520
|
+
urgency?: GasUrgency;
|
|
521
|
+
/**
|
|
522
|
+
* @generated from field: optional uniswap.liquidity.v1.PermitBatchData batch_permit_data = 14;
|
|
523
|
+
*/
|
|
524
|
+
batchPermitData?: PermitBatchData;
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: optional string signature = 15;
|
|
527
|
+
*/
|
|
528
|
+
signature?: string;
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: optional string native_token_balance = 16;
|
|
531
|
+
*/
|
|
532
|
+
nativeTokenBalance?: string;
|
|
533
|
+
constructor(data?: PartialMessage<CreatePositionRequest>);
|
|
534
|
+
static readonly runtime: typeof proto3;
|
|
535
|
+
static readonly typeName = "uniswap.liquidity.v2.CreatePositionRequest";
|
|
536
|
+
static readonly fields: FieldList;
|
|
537
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePositionRequest;
|
|
538
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePositionRequest;
|
|
539
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePositionRequest;
|
|
540
|
+
static equals(a: CreatePositionRequest | PlainMessage<CreatePositionRequest> | undefined, b: CreatePositionRequest | PlainMessage<CreatePositionRequest> | undefined): boolean;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionResponse
|
|
544
|
+
*/
|
|
545
|
+
export declare class CreatePositionResponse extends Message<CreatePositionResponse> {
|
|
546
|
+
/**
|
|
547
|
+
* @generated from field: string request_id = 1;
|
|
548
|
+
*/
|
|
549
|
+
requestId: string;
|
|
550
|
+
/**
|
|
551
|
+
* @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
|
|
552
|
+
*/
|
|
553
|
+
token0?: LPToken;
|
|
554
|
+
/**
|
|
555
|
+
* @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
|
|
556
|
+
*/
|
|
557
|
+
token1?: LPToken;
|
|
558
|
+
/**
|
|
559
|
+
* @generated from field: string adjusted_min_price = 4;
|
|
560
|
+
*/
|
|
561
|
+
adjustedMinPrice: string;
|
|
562
|
+
/**
|
|
563
|
+
* @generated from field: string adjusted_max_price = 5;
|
|
564
|
+
*/
|
|
565
|
+
adjustedMaxPrice: string;
|
|
566
|
+
/**
|
|
567
|
+
* @generated from field: sint32 tick_lower = 6;
|
|
568
|
+
*/
|
|
569
|
+
tickLower: number;
|
|
570
|
+
/**
|
|
571
|
+
* @generated from field: sint32 tick_upper = 7;
|
|
572
|
+
*/
|
|
573
|
+
tickUpper: number;
|
|
574
|
+
/**
|
|
575
|
+
* @generated from field: uniswap.liquidity.v1.TransactionRequest create = 8;
|
|
576
|
+
*/
|
|
577
|
+
create?: TransactionRequest;
|
|
578
|
+
/**
|
|
579
|
+
* @generated from field: optional string gas_fee = 9;
|
|
580
|
+
*/
|
|
581
|
+
gasFee?: string;
|
|
582
|
+
constructor(data?: PartialMessage<CreatePositionResponse>);
|
|
583
|
+
static readonly runtime: typeof proto3;
|
|
584
|
+
static readonly typeName = "uniswap.liquidity.v2.CreatePositionResponse";
|
|
585
|
+
static readonly fields: FieldList;
|
|
586
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePositionResponse;
|
|
587
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePositionResponse;
|
|
588
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePositionResponse;
|
|
589
|
+
static equals(a: CreatePositionResponse | PlainMessage<CreatePositionResponse> | undefined, b: CreatePositionResponse | PlainMessage<CreatePositionResponse> | undefined): boolean;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @generated from message uniswap.liquidity.v2.ClaimFeesRequest
|
|
593
|
+
*/
|
|
594
|
+
export declare class ClaimFeesRequest extends Message<ClaimFeesRequest> {
|
|
595
|
+
/**
|
|
596
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
597
|
+
*/
|
|
598
|
+
protocol: Protocols;
|
|
599
|
+
/**
|
|
600
|
+
* @generated from field: string wallet_address = 2;
|
|
601
|
+
*/
|
|
602
|
+
walletAddress: string;
|
|
603
|
+
/**
|
|
604
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
605
|
+
*/
|
|
606
|
+
chainId: ChainId;
|
|
607
|
+
/**
|
|
608
|
+
* @generated from oneof uniswap.liquidity.v2.ClaimFeesRequest.pool
|
|
609
|
+
*/
|
|
610
|
+
pool: {
|
|
611
|
+
/**
|
|
612
|
+
* @generated from field: string pair_address = 4;
|
|
613
|
+
*/
|
|
614
|
+
value: string;
|
|
615
|
+
case: "pairAddress";
|
|
616
|
+
} | {
|
|
617
|
+
/**
|
|
618
|
+
* @generated from field: string token_id = 5;
|
|
619
|
+
*/
|
|
620
|
+
value: string;
|
|
621
|
+
case: "tokenId";
|
|
622
|
+
} | {
|
|
623
|
+
case: undefined;
|
|
624
|
+
value?: undefined;
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* @generated from field: optional bool simulate_transaction = 6;
|
|
628
|
+
*/
|
|
629
|
+
simulateTransaction?: boolean;
|
|
630
|
+
/**
|
|
631
|
+
* @generated from field: optional bool collect_as_weth = 7;
|
|
632
|
+
*/
|
|
633
|
+
collectAsWeth?: boolean;
|
|
634
|
+
constructor(data?: PartialMessage<ClaimFeesRequest>);
|
|
635
|
+
static readonly runtime: typeof proto3;
|
|
636
|
+
static readonly typeName = "uniswap.liquidity.v2.ClaimFeesRequest";
|
|
637
|
+
static readonly fields: FieldList;
|
|
638
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimFeesRequest;
|
|
639
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimFeesRequest;
|
|
640
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimFeesRequest;
|
|
641
|
+
static equals(a: ClaimFeesRequest | PlainMessage<ClaimFeesRequest> | undefined, b: ClaimFeesRequest | PlainMessage<ClaimFeesRequest> | undefined): boolean;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @generated from message uniswap.liquidity.v2.ClaimFeesResponse
|
|
645
|
+
*/
|
|
646
|
+
export declare class ClaimFeesResponse extends Message<ClaimFeesResponse> {
|
|
647
|
+
/**
|
|
648
|
+
* @generated from field: string request_id = 1;
|
|
649
|
+
*/
|
|
650
|
+
requestId: string;
|
|
651
|
+
/**
|
|
652
|
+
* @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
|
|
653
|
+
*/
|
|
654
|
+
token0?: LPToken;
|
|
655
|
+
/**
|
|
656
|
+
* @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
|
|
657
|
+
*/
|
|
658
|
+
token1?: LPToken;
|
|
659
|
+
/**
|
|
660
|
+
* @generated from field: uniswap.liquidity.v1.TransactionRequest claim = 4;
|
|
661
|
+
*/
|
|
662
|
+
claim?: TransactionRequest;
|
|
663
|
+
/**
|
|
664
|
+
* @generated from field: optional string gas_fee = 5;
|
|
665
|
+
*/
|
|
666
|
+
gasFee?: string;
|
|
667
|
+
constructor(data?: PartialMessage<ClaimFeesResponse>);
|
|
668
|
+
static readonly runtime: typeof proto3;
|
|
669
|
+
static readonly typeName = "uniswap.liquidity.v2.ClaimFeesResponse";
|
|
670
|
+
static readonly fields: FieldList;
|
|
671
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimFeesResponse;
|
|
672
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimFeesResponse;
|
|
673
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimFeesResponse;
|
|
674
|
+
static equals(a: ClaimFeesResponse | PlainMessage<ClaimFeesResponse> | undefined, b: ClaimFeesResponse | PlainMessage<ClaimFeesResponse> | undefined): boolean;
|
|
675
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId, NFTPermitData, PermitBatchData,
|
|
7
|
-
import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
|
|
6
|
+
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
7
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* MigrateV2ToV3LPPosition
|
|
10
10
|
*
|
|
@@ -171,8 +171,6 @@ LPApprovalResponse.fields = proto3.util.newFieldList(() => [
|
|
|
171
171
|
{ no: 4, name: "v3_nft_permit_data", kind: "message", T: NFTPermitData, opt: true },
|
|
172
172
|
]);
|
|
173
173
|
/**
|
|
174
|
-
* CreateClassicPosition
|
|
175
|
-
*
|
|
176
174
|
* @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
|
|
177
175
|
*/
|
|
178
176
|
export class CreateClassicPositionRequest extends Message {
|
|
@@ -186,14 +184,6 @@ export class CreateClassicPositionRequest extends Message {
|
|
|
186
184
|
* @generated from oneof uniswap.liquidity.v2.CreateClassicPositionRequest.pool
|
|
187
185
|
*/
|
|
188
186
|
this.pool = { case: undefined };
|
|
189
|
-
/**
|
|
190
|
-
* @generated from field: string reference_token_address = 4;
|
|
191
|
-
*/
|
|
192
|
-
this.referenceTokenAddress = "";
|
|
193
|
-
/**
|
|
194
|
-
* @generated from field: string token_0_amount = 5;
|
|
195
|
-
*/
|
|
196
|
-
this.token0Amount = "";
|
|
197
187
|
proto3.util.initPartial(data, this);
|
|
198
188
|
}
|
|
199
189
|
static fromBinary(bytes, options) {
|
|
@@ -215,9 +205,8 @@ CreateClassicPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
215
205
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
216
206
|
{ no: 2, name: "pair_address", kind: "message", T: PairAddress, oneof: "pool" },
|
|
217
207
|
{ no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters, oneof: "pool" },
|
|
218
|
-
{ no: 4, name: "
|
|
219
|
-
{ no:
|
|
220
|
-
{ no: 6, name: "token_1_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
208
|
+
{ no: 4, name: "independent_token", kind: "message", T: LPToken },
|
|
209
|
+
{ no: 6, name: "dependent_token", kind: "message", T: LPToken, opt: true },
|
|
221
210
|
{ no: 7, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
222
211
|
{ no: 8, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
223
212
|
{ no: 9, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
@@ -252,8 +241,8 @@ CreateClassicPositionResponse.runtime = proto3;
|
|
|
252
241
|
CreateClassicPositionResponse.typeName = "uniswap.liquidity.v2.CreateClassicPositionResponse";
|
|
253
242
|
CreateClassicPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
254
243
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
255
|
-
{ no: 2, name: "
|
|
256
|
-
{ no: 3, name: "
|
|
244
|
+
{ no: 2, name: "independent_token", kind: "message", T: LPToken },
|
|
245
|
+
{ no: 3, name: "dependent_token", kind: "message", T: LPToken },
|
|
257
246
|
{ no: 4, name: "create", kind: "message", T: TransactionRequest },
|
|
258
247
|
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
259
248
|
]);
|
|
@@ -382,10 +371,6 @@ export class IncreasePositionRequest extends Message {
|
|
|
382
371
|
* @generated from field: string token_1_address = 5;
|
|
383
372
|
*/
|
|
384
373
|
this.token1Address = "";
|
|
385
|
-
/**
|
|
386
|
-
* @generated from field: repeated uniswap.liquidity.v1.PermitSingleData permit_messages = 11;
|
|
387
|
-
*/
|
|
388
|
-
this.permitMessages = [];
|
|
389
374
|
proto3.util.initPartial(data, this);
|
|
390
375
|
}
|
|
391
376
|
static fromBinary(bytes, options) {
|
|
@@ -414,8 +399,9 @@ IncreasePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
414
399
|
{ no: 8, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
415
400
|
{ no: 9, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
416
401
|
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
417
|
-
{ no: 11, name: "
|
|
418
|
-
{ no: 12, name: "
|
|
402
|
+
{ no: 11, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
403
|
+
{ no: 12, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
404
|
+
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
419
405
|
]);
|
|
420
406
|
/**
|
|
421
407
|
* @generated from message uniswap.liquidity.v2.IncreasePositionResponse
|
|
@@ -451,3 +437,206 @@ IncreasePositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
451
437
|
{ no: 4, name: "increase", kind: "message", T: TransactionRequest },
|
|
452
438
|
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
453
439
|
]);
|
|
440
|
+
/**
|
|
441
|
+
* CreatePosition (V3/V4)
|
|
442
|
+
*
|
|
443
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionRequest
|
|
444
|
+
*/
|
|
445
|
+
export class CreatePositionRequest extends Message {
|
|
446
|
+
constructor(data) {
|
|
447
|
+
super();
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: string wallet_address = 1;
|
|
450
|
+
*/
|
|
451
|
+
this.walletAddress = "";
|
|
452
|
+
/**
|
|
453
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.pool
|
|
454
|
+
*/
|
|
455
|
+
this.pool = { case: undefined };
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
458
|
+
*/
|
|
459
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 5;
|
|
462
|
+
*/
|
|
463
|
+
this.protocol = Protocols.V2;
|
|
464
|
+
/**
|
|
465
|
+
* @generated from field: string min_price = 8;
|
|
466
|
+
*/
|
|
467
|
+
this.minPrice = "";
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: string max_price = 9;
|
|
470
|
+
*/
|
|
471
|
+
this.maxPrice = "";
|
|
472
|
+
proto3.util.initPartial(data, this);
|
|
473
|
+
}
|
|
474
|
+
static fromBinary(bytes, options) {
|
|
475
|
+
return new CreatePositionRequest().fromBinary(bytes, options);
|
|
476
|
+
}
|
|
477
|
+
static fromJson(jsonValue, options) {
|
|
478
|
+
return new CreatePositionRequest().fromJson(jsonValue, options);
|
|
479
|
+
}
|
|
480
|
+
static fromJsonString(jsonString, options) {
|
|
481
|
+
return new CreatePositionRequest().fromJsonString(jsonString, options);
|
|
482
|
+
}
|
|
483
|
+
static equals(a, b) {
|
|
484
|
+
return proto3.util.equals(CreatePositionRequest, a, b);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
CreatePositionRequest.runtime = proto3;
|
|
488
|
+
CreatePositionRequest.typeName = "uniswap.liquidity.v2.CreatePositionRequest";
|
|
489
|
+
CreatePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
490
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
491
|
+
{ no: 2, name: "pool_reference", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "pool" },
|
|
492
|
+
{ no: 3, name: "new_pool", kind: "message", T: CreatePoolParameters, oneof: "pool" },
|
|
493
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
494
|
+
{ no: 5, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
495
|
+
{ no: 6, name: "independent_token", kind: "message", T: LPToken },
|
|
496
|
+
{ no: 7, name: "dependent_token", kind: "message", T: LPToken, opt: true },
|
|
497
|
+
{ no: 8, name: "min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
498
|
+
{ no: 9, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
499
|
+
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
500
|
+
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
501
|
+
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
502
|
+
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
503
|
+
{ no: 14, name: "batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
504
|
+
{ no: 15, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
505
|
+
{ no: 16, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
506
|
+
]);
|
|
507
|
+
/**
|
|
508
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionResponse
|
|
509
|
+
*/
|
|
510
|
+
export class CreatePositionResponse extends Message {
|
|
511
|
+
constructor(data) {
|
|
512
|
+
super();
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: string request_id = 1;
|
|
515
|
+
*/
|
|
516
|
+
this.requestId = "";
|
|
517
|
+
/**
|
|
518
|
+
* @generated from field: string adjusted_min_price = 4;
|
|
519
|
+
*/
|
|
520
|
+
this.adjustedMinPrice = "";
|
|
521
|
+
/**
|
|
522
|
+
* @generated from field: string adjusted_max_price = 5;
|
|
523
|
+
*/
|
|
524
|
+
this.adjustedMaxPrice = "";
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: sint32 tick_lower = 6;
|
|
527
|
+
*/
|
|
528
|
+
this.tickLower = 0;
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: sint32 tick_upper = 7;
|
|
531
|
+
*/
|
|
532
|
+
this.tickUpper = 0;
|
|
533
|
+
proto3.util.initPartial(data, this);
|
|
534
|
+
}
|
|
535
|
+
static fromBinary(bytes, options) {
|
|
536
|
+
return new CreatePositionResponse().fromBinary(bytes, options);
|
|
537
|
+
}
|
|
538
|
+
static fromJson(jsonValue, options) {
|
|
539
|
+
return new CreatePositionResponse().fromJson(jsonValue, options);
|
|
540
|
+
}
|
|
541
|
+
static fromJsonString(jsonString, options) {
|
|
542
|
+
return new CreatePositionResponse().fromJsonString(jsonString, options);
|
|
543
|
+
}
|
|
544
|
+
static equals(a, b) {
|
|
545
|
+
return proto3.util.equals(CreatePositionResponse, a, b);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
CreatePositionResponse.runtime = proto3;
|
|
549
|
+
CreatePositionResponse.typeName = "uniswap.liquidity.v2.CreatePositionResponse";
|
|
550
|
+
CreatePositionResponse.fields = proto3.util.newFieldList(() => [
|
|
551
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
552
|
+
{ no: 2, name: "token_0", kind: "message", T: LPToken },
|
|
553
|
+
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
554
|
+
{ no: 4, name: "adjusted_min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
555
|
+
{ no: 5, name: "adjusted_max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
556
|
+
{ no: 6, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
557
|
+
{ no: 7, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
558
|
+
{ no: 8, name: "create", kind: "message", T: TransactionRequest },
|
|
559
|
+
{ no: 9, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
560
|
+
]);
|
|
561
|
+
/**
|
|
562
|
+
* @generated from message uniswap.liquidity.v2.ClaimFeesRequest
|
|
563
|
+
*/
|
|
564
|
+
export class ClaimFeesRequest extends Message {
|
|
565
|
+
constructor(data) {
|
|
566
|
+
super();
|
|
567
|
+
/**
|
|
568
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
569
|
+
*/
|
|
570
|
+
this.protocol = Protocols.V2;
|
|
571
|
+
/**
|
|
572
|
+
* @generated from field: string wallet_address = 2;
|
|
573
|
+
*/
|
|
574
|
+
this.walletAddress = "";
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
577
|
+
*/
|
|
578
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
579
|
+
/**
|
|
580
|
+
* @generated from oneof uniswap.liquidity.v2.ClaimFeesRequest.pool
|
|
581
|
+
*/
|
|
582
|
+
this.pool = { case: undefined };
|
|
583
|
+
proto3.util.initPartial(data, this);
|
|
584
|
+
}
|
|
585
|
+
static fromBinary(bytes, options) {
|
|
586
|
+
return new ClaimFeesRequest().fromBinary(bytes, options);
|
|
587
|
+
}
|
|
588
|
+
static fromJson(jsonValue, options) {
|
|
589
|
+
return new ClaimFeesRequest().fromJson(jsonValue, options);
|
|
590
|
+
}
|
|
591
|
+
static fromJsonString(jsonString, options) {
|
|
592
|
+
return new ClaimFeesRequest().fromJsonString(jsonString, options);
|
|
593
|
+
}
|
|
594
|
+
static equals(a, b) {
|
|
595
|
+
return proto3.util.equals(ClaimFeesRequest, a, b);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
ClaimFeesRequest.runtime = proto3;
|
|
599
|
+
ClaimFeesRequest.typeName = "uniswap.liquidity.v2.ClaimFeesRequest";
|
|
600
|
+
ClaimFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
601
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
602
|
+
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
603
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
604
|
+
{ no: 4, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "pool" },
|
|
605
|
+
{ no: 5, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "pool" },
|
|
606
|
+
{ no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
607
|
+
{ no: 7, name: "collect_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
608
|
+
]);
|
|
609
|
+
/**
|
|
610
|
+
* @generated from message uniswap.liquidity.v2.ClaimFeesResponse
|
|
611
|
+
*/
|
|
612
|
+
export class ClaimFeesResponse extends Message {
|
|
613
|
+
constructor(data) {
|
|
614
|
+
super();
|
|
615
|
+
/**
|
|
616
|
+
* @generated from field: string request_id = 1;
|
|
617
|
+
*/
|
|
618
|
+
this.requestId = "";
|
|
619
|
+
proto3.util.initPartial(data, this);
|
|
620
|
+
}
|
|
621
|
+
static fromBinary(bytes, options) {
|
|
622
|
+
return new ClaimFeesResponse().fromBinary(bytes, options);
|
|
623
|
+
}
|
|
624
|
+
static fromJson(jsonValue, options) {
|
|
625
|
+
return new ClaimFeesResponse().fromJson(jsonValue, options);
|
|
626
|
+
}
|
|
627
|
+
static fromJsonString(jsonString, options) {
|
|
628
|
+
return new ClaimFeesResponse().fromJsonString(jsonString, options);
|
|
629
|
+
}
|
|
630
|
+
static equals(a, b) {
|
|
631
|
+
return proto3.util.equals(ClaimFeesResponse, a, b);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
ClaimFeesResponse.runtime = proto3;
|
|
635
|
+
ClaimFeesResponse.typeName = "uniswap.liquidity.v2.ClaimFeesResponse";
|
|
636
|
+
ClaimFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
637
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
638
|
+
{ no: 2, name: "token_0", kind: "message", T: LPToken },
|
|
639
|
+
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
640
|
+
{ no: 4, name: "claim", kind: "message", T: TransactionRequest },
|
|
641
|
+
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
642
|
+
]);
|
|
@@ -143,3 +143,44 @@ export declare class ApprovalTransactionRequest extends Message<ApprovalTransact
|
|
|
143
143
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApprovalTransactionRequest;
|
|
144
144
|
static equals(a: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined, b: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined): boolean;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* @generated from message uniswap.liquidity.v2.CreatePoolParameters
|
|
148
|
+
*/
|
|
149
|
+
export declare class CreatePoolParameters extends Message<CreatePoolParameters> {
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: string token_0_address = 1;
|
|
152
|
+
*/
|
|
153
|
+
token0Address: string;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string token_1_address = 2;
|
|
156
|
+
*/
|
|
157
|
+
token1Address: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
160
|
+
*/
|
|
161
|
+
chainId: ChainId;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: int32 fee = 4;
|
|
164
|
+
*/
|
|
165
|
+
fee: number;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: int32 tick_spacing = 5;
|
|
168
|
+
*/
|
|
169
|
+
tickSpacing: number;
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: optional string hooks = 6;
|
|
172
|
+
*/
|
|
173
|
+
hooks?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: string initial_price = 7;
|
|
176
|
+
*/
|
|
177
|
+
initialPrice: string;
|
|
178
|
+
constructor(data?: PartialMessage<CreatePoolParameters>);
|
|
179
|
+
static readonly runtime: typeof proto3;
|
|
180
|
+
static readonly typeName = "uniswap.liquidity.v2.CreatePoolParameters";
|
|
181
|
+
static readonly fields: FieldList;
|
|
182
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePoolParameters;
|
|
183
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePoolParameters;
|
|
184
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePoolParameters;
|
|
185
|
+
static equals(a: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined, b: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined): boolean;
|
|
186
|
+
}
|
|
@@ -214,3 +214,59 @@ ApprovalTransactionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
214
214
|
{ no: 3, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
|
|
215
215
|
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
216
216
|
]);
|
|
217
|
+
/**
|
|
218
|
+
* @generated from message uniswap.liquidity.v2.CreatePoolParameters
|
|
219
|
+
*/
|
|
220
|
+
export class CreatePoolParameters extends Message {
|
|
221
|
+
constructor(data) {
|
|
222
|
+
super();
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: string token_0_address = 1;
|
|
225
|
+
*/
|
|
226
|
+
this.token0Address = "";
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string token_1_address = 2;
|
|
229
|
+
*/
|
|
230
|
+
this.token1Address = "";
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
233
|
+
*/
|
|
234
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: int32 fee = 4;
|
|
237
|
+
*/
|
|
238
|
+
this.fee = 0;
|
|
239
|
+
/**
|
|
240
|
+
* @generated from field: int32 tick_spacing = 5;
|
|
241
|
+
*/
|
|
242
|
+
this.tickSpacing = 0;
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: string initial_price = 7;
|
|
245
|
+
*/
|
|
246
|
+
this.initialPrice = "";
|
|
247
|
+
proto3.util.initPartial(data, this);
|
|
248
|
+
}
|
|
249
|
+
static fromBinary(bytes, options) {
|
|
250
|
+
return new CreatePoolParameters().fromBinary(bytes, options);
|
|
251
|
+
}
|
|
252
|
+
static fromJson(jsonValue, options) {
|
|
253
|
+
return new CreatePoolParameters().fromJson(jsonValue, options);
|
|
254
|
+
}
|
|
255
|
+
static fromJsonString(jsonString, options) {
|
|
256
|
+
return new CreatePoolParameters().fromJsonString(jsonString, options);
|
|
257
|
+
}
|
|
258
|
+
static equals(a, b) {
|
|
259
|
+
return proto3.util.equals(CreatePoolParameters, a, b);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
CreatePoolParameters.runtime = proto3;
|
|
263
|
+
CreatePoolParameters.typeName = "uniswap.liquidity.v2.CreatePoolParameters";
|
|
264
|
+
CreatePoolParameters.fields = proto3.util.newFieldList(() => [
|
|
265
|
+
{ no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
266
|
+
{ no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
267
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
268
|
+
{ no: 4, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
269
|
+
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
270
|
+
{ no: 6, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
271
|
+
{ no: 7, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
272
|
+
]);
|