@uniswap/client-liquidity 0.1.8 → 0.3.0
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 +38 -38
- package/dist/uniswap/liquidity/v2/api_pb.js +23 -27
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +92 -12
- package/dist/uniswap/liquidity/v2/types_pb.js +152 -17
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
2
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, 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
|
*/
|
|
@@ -84,3 +84,17 @@ export declare const claimFees: {
|
|
|
84
84
|
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
89
|
+
*/
|
|
90
|
+
export declare const createPosition: {
|
|
91
|
+
readonly localName: "createPosition";
|
|
92
|
+
readonly name: "CreatePosition";
|
|
93
|
+
readonly kind: MethodKind.Unary;
|
|
94
|
+
readonly I: typeof CreatePositionRequest;
|
|
95
|
+
readonly O: typeof CreatePositionResponse;
|
|
96
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
97
|
+
readonly service: {
|
|
98
|
+
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
6
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, 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
|
*/
|
|
@@ -88,3 +88,17 @@ export const claimFees = {
|
|
|
88
88
|
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
93
|
+
*/
|
|
94
|
+
export const createPosition = {
|
|
95
|
+
localName: "createPosition",
|
|
96
|
+
name: "CreatePosition",
|
|
97
|
+
kind: MethodKind.Unary,
|
|
98
|
+
I: CreatePositionRequest,
|
|
99
|
+
O: CreatePositionResponse,
|
|
100
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
101
|
+
service: {
|
|
102
|
+
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
103
|
+
}
|
|
104
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
1
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, 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
|
|
@@ -66,5 +66,15 @@ export declare const LiquidityService: {
|
|
|
66
66
|
readonly kind: MethodKind.Unary;
|
|
67
67
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
68
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
71
|
+
*/
|
|
72
|
+
readonly createPosition: {
|
|
73
|
+
readonly name: "CreatePosition";
|
|
74
|
+
readonly I: typeof CreatePositionRequest;
|
|
75
|
+
readonly O: typeof CreatePositionResponse;
|
|
76
|
+
readonly kind: MethodKind.Unary;
|
|
77
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
78
|
+
};
|
|
69
79
|
};
|
|
70
80
|
};
|
|
@@ -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 { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
5
|
+
import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, 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
|
|
@@ -70,5 +70,15 @@ export const LiquidityService = {
|
|
|
70
70
|
kind: MethodKind.Unary,
|
|
71
71
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
72
72
|
},
|
|
73
|
+
/**
|
|
74
|
+
* @generated from rpc uniswap.liquidity.v2.LiquidityService.CreatePosition
|
|
75
|
+
*/
|
|
76
|
+
createPosition: {
|
|
77
|
+
name: "CreatePosition",
|
|
78
|
+
I: CreatePositionRequest,
|
|
79
|
+
O: CreatePositionResponse,
|
|
80
|
+
kind: MethodKind.Unary,
|
|
81
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
82
|
+
},
|
|
73
83
|
}
|
|
74
84
|
};
|
|
@@ -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
3
|
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
4
|
-
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken,
|
|
4
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* MigrateV2ToV3LPPosition
|
|
7
7
|
*
|
|
@@ -93,31 +93,35 @@ export declare class LPApprovalRequest extends Message<LPApprovalRequest> {
|
|
|
93
93
|
*/
|
|
94
94
|
protocol: Protocols;
|
|
95
95
|
/**
|
|
96
|
-
* @generated from field:
|
|
96
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
97
|
+
*/
|
|
98
|
+
chainId: ChainId;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 4;
|
|
97
101
|
*/
|
|
98
102
|
lpTokens: LPToken[];
|
|
99
103
|
/**
|
|
100
|
-
* @generated from field: uniswap.liquidity.v2.LPAction action =
|
|
104
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 5;
|
|
101
105
|
*/
|
|
102
106
|
action: LPAction;
|
|
103
107
|
/**
|
|
104
|
-
* @generated from field: optional bool include_gas_info =
|
|
108
|
+
* @generated from field: optional bool include_gas_info = 6;
|
|
105
109
|
*/
|
|
106
110
|
includeGasInfo?: boolean;
|
|
107
111
|
/**
|
|
108
|
-
* @generated from field: optional bool simulate_transaction =
|
|
112
|
+
* @generated from field: optional bool simulate_transaction = 7;
|
|
109
113
|
*/
|
|
110
114
|
simulateTransaction?: boolean;
|
|
111
115
|
/**
|
|
112
|
-
* @generated from field: optional bool generate_permit_as_transaction =
|
|
116
|
+
* @generated from field: optional bool generate_permit_as_transaction = 8;
|
|
113
117
|
*/
|
|
114
118
|
generatePermitAsTransaction?: boolean;
|
|
115
119
|
/**
|
|
116
|
-
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency =
|
|
120
|
+
* @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 9;
|
|
117
121
|
*/
|
|
118
122
|
urgency?: GasUrgency;
|
|
119
123
|
/**
|
|
120
|
-
* @generated from field: optional int32 v3_nft_token_id =
|
|
124
|
+
* @generated from field: optional int32 v3_nft_token_id = 10;
|
|
121
125
|
*/
|
|
122
126
|
v3NftTokenId?: number;
|
|
123
127
|
constructor(data?: PartialMessage<LPApprovalRequest>);
|
|
@@ -167,24 +171,9 @@ export declare class CreateClassicPositionRequest extends Message<CreateClassicP
|
|
|
167
171
|
*/
|
|
168
172
|
walletAddress: string;
|
|
169
173
|
/**
|
|
170
|
-
* @generated from
|
|
174
|
+
* @generated from field: uniswap.liquidity.v2.V2PoolParameters pool_parameters = 3;
|
|
171
175
|
*/
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @generated from field: uniswap.liquidity.v2.PairAddress pair_address = 2;
|
|
175
|
-
*/
|
|
176
|
-
value: PairAddress;
|
|
177
|
-
case: "pairAddress";
|
|
178
|
-
} | {
|
|
179
|
-
/**
|
|
180
|
-
* @generated from field: uniswap.liquidity.v2.V2PoolParameters pool_parameters = 3;
|
|
181
|
-
*/
|
|
182
|
-
value: V2PoolParameters;
|
|
183
|
-
case: "poolParameters";
|
|
184
|
-
} | {
|
|
185
|
-
case: undefined;
|
|
186
|
-
value?: undefined;
|
|
187
|
-
};
|
|
176
|
+
poolParameters?: V2PoolParameters;
|
|
188
177
|
/**
|
|
189
178
|
* @generated from field: uniswap.liquidity.v2.LPToken independent_token = 4;
|
|
190
179
|
*/
|
|
@@ -464,10 +453,10 @@ export declare class CreatePositionRequest extends Message<CreatePositionRequest
|
|
|
464
453
|
*/
|
|
465
454
|
pool: {
|
|
466
455
|
/**
|
|
467
|
-
* @generated from field:
|
|
456
|
+
* @generated from field: uniswap.liquidity.v2.CreatePositionExistingPoolParameters existing_pool = 2;
|
|
468
457
|
*/
|
|
469
|
-
value:
|
|
470
|
-
case: "
|
|
458
|
+
value: CreatePositionExistingPoolParameters;
|
|
459
|
+
case: "existingPool";
|
|
471
460
|
} | {
|
|
472
461
|
/**
|
|
473
462
|
* @generated from field: uniswap.liquidity.v2.CreatePoolParameters new_pool = 3;
|
|
@@ -487,21 +476,32 @@ export declare class CreatePositionRequest extends Message<CreatePositionRequest
|
|
|
487
476
|
*/
|
|
488
477
|
protocol: Protocols;
|
|
489
478
|
/**
|
|
490
|
-
* @generated from field: uniswap.liquidity.v2.
|
|
479
|
+
* @generated from field: uniswap.liquidity.v2.CreateToken independent_token = 6;
|
|
491
480
|
*/
|
|
492
|
-
independentToken?:
|
|
481
|
+
independentToken?: CreateToken;
|
|
493
482
|
/**
|
|
494
|
-
* @generated from field: optional uniswap.liquidity.v2.
|
|
483
|
+
* @generated from field: optional uniswap.liquidity.v2.CreateToken dependent_token = 7;
|
|
495
484
|
*/
|
|
496
|
-
dependentToken?:
|
|
485
|
+
dependentToken?: CreateToken;
|
|
497
486
|
/**
|
|
498
|
-
* @generated from
|
|
487
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.tickPrice
|
|
499
488
|
*/
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
489
|
+
tickPrice: {
|
|
490
|
+
/**
|
|
491
|
+
* @generated from field: uniswap.liquidity.v2.PositionPriceBounds price_bounds = 8;
|
|
492
|
+
*/
|
|
493
|
+
value: PositionPriceBounds;
|
|
494
|
+
case: "priceBounds";
|
|
495
|
+
} | {
|
|
496
|
+
/**
|
|
497
|
+
* @generated from field: uniswap.liquidity.v2.PositionTickBounds tick_bounds = 9;
|
|
498
|
+
*/
|
|
499
|
+
value: PositionTickBounds;
|
|
500
|
+
case: "tickBounds";
|
|
501
|
+
} | {
|
|
502
|
+
case: undefined;
|
|
503
|
+
value?: undefined;
|
|
504
|
+
};
|
|
505
505
|
/**
|
|
506
506
|
* @generated from field: optional float slippage_tolerance = 10;
|
|
507
507
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
7
|
-
import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken,
|
|
7
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* MigrateV2ToV3LPPosition
|
|
10
10
|
*
|
|
@@ -98,11 +98,15 @@ export class LPApprovalRequest extends Message {
|
|
|
98
98
|
*/
|
|
99
99
|
this.protocol = Protocols.V2;
|
|
100
100
|
/**
|
|
101
|
-
* @generated from field:
|
|
101
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
102
|
+
*/
|
|
103
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 4;
|
|
102
106
|
*/
|
|
103
107
|
this.lpTokens = [];
|
|
104
108
|
/**
|
|
105
|
-
* @generated from field: uniswap.liquidity.v2.LPAction action =
|
|
109
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 5;
|
|
106
110
|
*/
|
|
107
111
|
this.action = LPAction.CREATE;
|
|
108
112
|
proto3.util.initPartial(data, this);
|
|
@@ -125,13 +129,14 @@ LPApprovalRequest.typeName = "uniswap.liquidity.v2.LPApprovalRequest";
|
|
|
125
129
|
LPApprovalRequest.fields = proto3.util.newFieldList(() => [
|
|
126
130
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
131
|
{ no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
128
|
-
{ no: 3, name: "
|
|
129
|
-
{ no: 4, name: "
|
|
130
|
-
{ no: 5, name: "
|
|
131
|
-
{ no: 6, name: "
|
|
132
|
-
{ no: 7, name: "
|
|
133
|
-
{ no: 8, name: "
|
|
134
|
-
{ no: 9, name: "
|
|
132
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
133
|
+
{ no: 4, name: "lp_tokens", kind: "message", T: LPToken, repeated: true },
|
|
134
|
+
{ no: 5, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
|
|
135
|
+
{ no: 6, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
136
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
137
|
+
{ no: 8, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
138
|
+
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
139
|
+
{ no: 10, name: "v3_nft_token_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
135
140
|
]);
|
|
136
141
|
/**
|
|
137
142
|
* @generated from message uniswap.liquidity.v2.LPApprovalResponse
|
|
@@ -180,10 +185,6 @@ export class CreateClassicPositionRequest extends Message {
|
|
|
180
185
|
* @generated from field: string wallet_address = 1;
|
|
181
186
|
*/
|
|
182
187
|
this.walletAddress = "";
|
|
183
|
-
/**
|
|
184
|
-
* @generated from oneof uniswap.liquidity.v2.CreateClassicPositionRequest.pool
|
|
185
|
-
*/
|
|
186
|
-
this.pool = { case: undefined };
|
|
187
188
|
proto3.util.initPartial(data, this);
|
|
188
189
|
}
|
|
189
190
|
static fromBinary(bytes, options) {
|
|
@@ -203,8 +204,7 @@ CreateClassicPositionRequest.runtime = proto3;
|
|
|
203
204
|
CreateClassicPositionRequest.typeName = "uniswap.liquidity.v2.CreateClassicPositionRequest";
|
|
204
205
|
CreateClassicPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
205
206
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
206
|
-
{ no:
|
|
207
|
-
{ no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters, oneof: "pool" },
|
|
207
|
+
{ no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters },
|
|
208
208
|
{ no: 4, name: "independent_token", kind: "message", T: LPToken },
|
|
209
209
|
{ no: 6, name: "dependent_token", kind: "message", T: LPToken, opt: true },
|
|
210
210
|
{ no: 7, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
@@ -462,13 +462,9 @@ export class CreatePositionRequest extends Message {
|
|
|
462
462
|
*/
|
|
463
463
|
this.protocol = Protocols.V2;
|
|
464
464
|
/**
|
|
465
|
-
* @generated from
|
|
466
|
-
*/
|
|
467
|
-
this.minPrice = "";
|
|
468
|
-
/**
|
|
469
|
-
* @generated from field: string max_price = 9;
|
|
465
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.tickPrice
|
|
470
466
|
*/
|
|
471
|
-
this.
|
|
467
|
+
this.tickPrice = { case: undefined };
|
|
472
468
|
proto3.util.initPartial(data, this);
|
|
473
469
|
}
|
|
474
470
|
static fromBinary(bytes, options) {
|
|
@@ -488,14 +484,14 @@ CreatePositionRequest.runtime = proto3;
|
|
|
488
484
|
CreatePositionRequest.typeName = "uniswap.liquidity.v2.CreatePositionRequest";
|
|
489
485
|
CreatePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
490
486
|
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
491
|
-
{ no: 2, name: "
|
|
487
|
+
{ no: 2, name: "existing_pool", kind: "message", T: CreatePositionExistingPoolParameters, oneof: "pool" },
|
|
492
488
|
{ no: 3, name: "new_pool", kind: "message", T: CreatePoolParameters, oneof: "pool" },
|
|
493
489
|
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
494
490
|
{ no: 5, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
495
|
-
{ no: 6, name: "independent_token", kind: "message", T:
|
|
496
|
-
{ no: 7, name: "dependent_token", kind: "message", T:
|
|
497
|
-
{ no: 8, name: "
|
|
498
|
-
{ no: 9, name: "
|
|
491
|
+
{ no: 6, name: "independent_token", kind: "message", T: CreateToken },
|
|
492
|
+
{ no: 7, name: "dependent_token", kind: "message", T: CreateToken, opt: true },
|
|
493
|
+
{ no: 8, name: "price_bounds", kind: "message", T: PositionPriceBounds, oneof: "tickPrice" },
|
|
494
|
+
{ no: 9, name: "tick_bounds", kind: "message", T: PositionTickBounds, oneof: "tickPrice" },
|
|
499
495
|
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
500
496
|
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
501
497
|
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
@@ -47,10 +47,6 @@ export declare enum GasUrgency {
|
|
|
47
47
|
* @generated from message uniswap.liquidity.v2.LPToken
|
|
48
48
|
*/
|
|
49
49
|
export declare class LPToken extends Message<LPToken> {
|
|
50
|
-
/**
|
|
51
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
|
|
52
|
-
*/
|
|
53
|
-
chainId: ChainId;
|
|
54
50
|
/**
|
|
55
51
|
* @generated from field: string token_address = 2;
|
|
56
52
|
*/
|
|
@@ -144,9 +140,9 @@ export declare class ApprovalTransactionRequest extends Message<ApprovalTransact
|
|
|
144
140
|
static equals(a: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined, b: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined): boolean;
|
|
145
141
|
}
|
|
146
142
|
/**
|
|
147
|
-
* @generated from message uniswap.liquidity.v2.
|
|
143
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionExistingPoolParameters
|
|
148
144
|
*/
|
|
149
|
-
export declare class
|
|
145
|
+
export declare class CreatePositionExistingPoolParameters extends Message<CreatePositionExistingPoolParameters> {
|
|
150
146
|
/**
|
|
151
147
|
* @generated from field: string token_0_address = 1;
|
|
152
148
|
*/
|
|
@@ -156,23 +152,44 @@ export declare class CreatePoolParameters extends Message<CreatePoolParameters>
|
|
|
156
152
|
*/
|
|
157
153
|
token1Address: string;
|
|
158
154
|
/**
|
|
159
|
-
* @generated from field:
|
|
155
|
+
* @generated from field: string pool_reference = 3;
|
|
160
156
|
*/
|
|
161
|
-
|
|
157
|
+
poolReference: string;
|
|
158
|
+
constructor(data?: PartialMessage<CreatePositionExistingPoolParameters>);
|
|
159
|
+
static readonly runtime: typeof proto3;
|
|
160
|
+
static readonly typeName = "uniswap.liquidity.v2.CreatePositionExistingPoolParameters";
|
|
161
|
+
static readonly fields: FieldList;
|
|
162
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePositionExistingPoolParameters;
|
|
163
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePositionExistingPoolParameters;
|
|
164
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePositionExistingPoolParameters;
|
|
165
|
+
static equals(a: CreatePositionExistingPoolParameters | PlainMessage<CreatePositionExistingPoolParameters> | undefined, b: CreatePositionExistingPoolParameters | PlainMessage<CreatePositionExistingPoolParameters> | undefined): boolean;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @generated from message uniswap.liquidity.v2.CreatePoolParameters
|
|
169
|
+
*/
|
|
170
|
+
export declare class CreatePoolParameters extends Message<CreatePoolParameters> {
|
|
162
171
|
/**
|
|
163
|
-
* @generated from field:
|
|
172
|
+
* @generated from field: string token_0_address = 1;
|
|
173
|
+
*/
|
|
174
|
+
token0Address: string;
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string token_1_address = 2;
|
|
177
|
+
*/
|
|
178
|
+
token1Address: string;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: int32 fee = 3;
|
|
164
181
|
*/
|
|
165
182
|
fee: number;
|
|
166
183
|
/**
|
|
167
|
-
* @generated from field: int32 tick_spacing =
|
|
184
|
+
* @generated from field: int32 tick_spacing = 4;
|
|
168
185
|
*/
|
|
169
186
|
tickSpacing: number;
|
|
170
187
|
/**
|
|
171
|
-
* @generated from field: optional string hooks =
|
|
188
|
+
* @generated from field: optional string hooks = 5;
|
|
172
189
|
*/
|
|
173
190
|
hooks?: string;
|
|
174
191
|
/**
|
|
175
|
-
* @generated from field: string initial_price =
|
|
192
|
+
* @generated from field: string initial_price = 6;
|
|
176
193
|
*/
|
|
177
194
|
initialPrice: string;
|
|
178
195
|
constructor(data?: PartialMessage<CreatePoolParameters>);
|
|
@@ -184,3 +201,66 @@ export declare class CreatePoolParameters extends Message<CreatePoolParameters>
|
|
|
184
201
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePoolParameters;
|
|
185
202
|
static equals(a: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined, b: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined): boolean;
|
|
186
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message uniswap.liquidity.v2.PositionPriceBounds
|
|
206
|
+
*/
|
|
207
|
+
export declare class PositionPriceBounds extends Message<PositionPriceBounds> {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: string min_price = 1;
|
|
210
|
+
*/
|
|
211
|
+
minPrice: string;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: string max_price = 2;
|
|
214
|
+
*/
|
|
215
|
+
maxPrice: string;
|
|
216
|
+
constructor(data?: PartialMessage<PositionPriceBounds>);
|
|
217
|
+
static readonly runtime: typeof proto3;
|
|
218
|
+
static readonly typeName = "uniswap.liquidity.v2.PositionPriceBounds";
|
|
219
|
+
static readonly fields: FieldList;
|
|
220
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionPriceBounds;
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionPriceBounds;
|
|
222
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionPriceBounds;
|
|
223
|
+
static equals(a: PositionPriceBounds | PlainMessage<PositionPriceBounds> | undefined, b: PositionPriceBounds | PlainMessage<PositionPriceBounds> | undefined): boolean;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @generated from message uniswap.liquidity.v2.PositionTickBounds
|
|
227
|
+
*/
|
|
228
|
+
export declare class PositionTickBounds extends Message<PositionTickBounds> {
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: sint32 tick_lower = 1;
|
|
231
|
+
*/
|
|
232
|
+
tickLower: number;
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: sint32 tick_upper = 2;
|
|
235
|
+
*/
|
|
236
|
+
tickUpper: number;
|
|
237
|
+
constructor(data?: PartialMessage<PositionTickBounds>);
|
|
238
|
+
static readonly runtime: typeof proto3;
|
|
239
|
+
static readonly typeName = "uniswap.liquidity.v2.PositionTickBounds";
|
|
240
|
+
static readonly fields: FieldList;
|
|
241
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionTickBounds;
|
|
242
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionTickBounds;
|
|
243
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionTickBounds;
|
|
244
|
+
static equals(a: PositionTickBounds | PlainMessage<PositionTickBounds> | undefined, b: PositionTickBounds | PlainMessage<PositionTickBounds> | undefined): boolean;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @generated from message uniswap.liquidity.v2.CreateToken
|
|
248
|
+
*/
|
|
249
|
+
export declare class CreateToken extends Message<CreateToken> {
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string token_address = 1;
|
|
252
|
+
*/
|
|
253
|
+
tokenAddress: string;
|
|
254
|
+
/**
|
|
255
|
+
* @generated from field: string amount = 2;
|
|
256
|
+
*/
|
|
257
|
+
amount: string;
|
|
258
|
+
constructor(data?: PartialMessage<CreateToken>);
|
|
259
|
+
static readonly runtime: typeof proto3;
|
|
260
|
+
static readonly typeName = "uniswap.liquidity.v2.CreateToken";
|
|
261
|
+
static readonly fields: FieldList;
|
|
262
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateToken;
|
|
263
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateToken;
|
|
264
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateToken;
|
|
265
|
+
static equals(a: CreateToken | PlainMessage<CreateToken> | undefined, b: CreateToken | PlainMessage<CreateToken> | undefined): boolean;
|
|
266
|
+
}
|
|
@@ -68,10 +68,6 @@ proto3.util.setEnumType(GasUrgency, "uniswap.liquidity.v2.GasUrgency", [
|
|
|
68
68
|
export class LPToken extends Message {
|
|
69
69
|
constructor(data) {
|
|
70
70
|
super();
|
|
71
|
-
/**
|
|
72
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
|
|
73
|
-
*/
|
|
74
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
75
71
|
/**
|
|
76
72
|
* @generated from field: string token_address = 2;
|
|
77
73
|
*/
|
|
@@ -98,7 +94,6 @@ export class LPToken extends Message {
|
|
|
98
94
|
LPToken.runtime = proto3;
|
|
99
95
|
LPToken.typeName = "uniswap.liquidity.v2.LPToken";
|
|
100
96
|
LPToken.fields = proto3.util.newFieldList(() => [
|
|
101
|
-
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
102
97
|
{ no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
103
98
|
{ no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
99
|
]);
|
|
@@ -215,9 +210,9 @@ ApprovalTransactionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
215
210
|
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
216
211
|
]);
|
|
217
212
|
/**
|
|
218
|
-
* @generated from message uniswap.liquidity.v2.
|
|
213
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionExistingPoolParameters
|
|
219
214
|
*/
|
|
220
|
-
export class
|
|
215
|
+
export class CreatePositionExistingPoolParameters extends Message {
|
|
221
216
|
constructor(data) {
|
|
222
217
|
super();
|
|
223
218
|
/**
|
|
@@ -229,19 +224,55 @@ export class CreatePoolParameters extends Message {
|
|
|
229
224
|
*/
|
|
230
225
|
this.token1Address = "";
|
|
231
226
|
/**
|
|
232
|
-
* @generated from field:
|
|
227
|
+
* @generated from field: string pool_reference = 3;
|
|
233
228
|
*/
|
|
234
|
-
this.
|
|
229
|
+
this.poolReference = "";
|
|
230
|
+
proto3.util.initPartial(data, this);
|
|
231
|
+
}
|
|
232
|
+
static fromBinary(bytes, options) {
|
|
233
|
+
return new CreatePositionExistingPoolParameters().fromBinary(bytes, options);
|
|
234
|
+
}
|
|
235
|
+
static fromJson(jsonValue, options) {
|
|
236
|
+
return new CreatePositionExistingPoolParameters().fromJson(jsonValue, options);
|
|
237
|
+
}
|
|
238
|
+
static fromJsonString(jsonString, options) {
|
|
239
|
+
return new CreatePositionExistingPoolParameters().fromJsonString(jsonString, options);
|
|
240
|
+
}
|
|
241
|
+
static equals(a, b) {
|
|
242
|
+
return proto3.util.equals(CreatePositionExistingPoolParameters, a, b);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
CreatePositionExistingPoolParameters.runtime = proto3;
|
|
246
|
+
CreatePositionExistingPoolParameters.typeName = "uniswap.liquidity.v2.CreatePositionExistingPoolParameters";
|
|
247
|
+
CreatePositionExistingPoolParameters.fields = proto3.util.newFieldList(() => [
|
|
248
|
+
{ no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
249
|
+
{ no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
250
|
+
{ no: 3, name: "pool_reference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
251
|
+
]);
|
|
252
|
+
/**
|
|
253
|
+
* @generated from message uniswap.liquidity.v2.CreatePoolParameters
|
|
254
|
+
*/
|
|
255
|
+
export class CreatePoolParameters extends Message {
|
|
256
|
+
constructor(data) {
|
|
257
|
+
super();
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: string token_0_address = 1;
|
|
260
|
+
*/
|
|
261
|
+
this.token0Address = "";
|
|
235
262
|
/**
|
|
236
|
-
* @generated from field:
|
|
263
|
+
* @generated from field: string token_1_address = 2;
|
|
264
|
+
*/
|
|
265
|
+
this.token1Address = "";
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: int32 fee = 3;
|
|
237
268
|
*/
|
|
238
269
|
this.fee = 0;
|
|
239
270
|
/**
|
|
240
|
-
* @generated from field: int32 tick_spacing =
|
|
271
|
+
* @generated from field: int32 tick_spacing = 4;
|
|
241
272
|
*/
|
|
242
273
|
this.tickSpacing = 0;
|
|
243
274
|
/**
|
|
244
|
-
* @generated from field: string initial_price =
|
|
275
|
+
* @generated from field: string initial_price = 6;
|
|
245
276
|
*/
|
|
246
277
|
this.initialPrice = "";
|
|
247
278
|
proto3.util.initPartial(data, this);
|
|
@@ -264,9 +295,113 @@ CreatePoolParameters.typeName = "uniswap.liquidity.v2.CreatePoolParameters";
|
|
|
264
295
|
CreatePoolParameters.fields = proto3.util.newFieldList(() => [
|
|
265
296
|
{ no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
266
297
|
{ no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
267
|
-
{ no: 3, name: "
|
|
268
|
-
{ no: 4, name: "
|
|
269
|
-
{ no: 5, name: "
|
|
270
|
-
{ no: 6, name: "
|
|
271
|
-
|
|
298
|
+
{ no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
299
|
+
{ no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
300
|
+
{ no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
301
|
+
{ no: 6, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
302
|
+
]);
|
|
303
|
+
/**
|
|
304
|
+
* @generated from message uniswap.liquidity.v2.PositionPriceBounds
|
|
305
|
+
*/
|
|
306
|
+
export class PositionPriceBounds extends Message {
|
|
307
|
+
constructor(data) {
|
|
308
|
+
super();
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: string min_price = 1;
|
|
311
|
+
*/
|
|
312
|
+
this.minPrice = "";
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: string max_price = 2;
|
|
315
|
+
*/
|
|
316
|
+
this.maxPrice = "";
|
|
317
|
+
proto3.util.initPartial(data, this);
|
|
318
|
+
}
|
|
319
|
+
static fromBinary(bytes, options) {
|
|
320
|
+
return new PositionPriceBounds().fromBinary(bytes, options);
|
|
321
|
+
}
|
|
322
|
+
static fromJson(jsonValue, options) {
|
|
323
|
+
return new PositionPriceBounds().fromJson(jsonValue, options);
|
|
324
|
+
}
|
|
325
|
+
static fromJsonString(jsonString, options) {
|
|
326
|
+
return new PositionPriceBounds().fromJsonString(jsonString, options);
|
|
327
|
+
}
|
|
328
|
+
static equals(a, b) {
|
|
329
|
+
return proto3.util.equals(PositionPriceBounds, a, b);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
PositionPriceBounds.runtime = proto3;
|
|
333
|
+
PositionPriceBounds.typeName = "uniswap.liquidity.v2.PositionPriceBounds";
|
|
334
|
+
PositionPriceBounds.fields = proto3.util.newFieldList(() => [
|
|
335
|
+
{ no: 1, name: "min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
336
|
+
{ no: 2, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
337
|
+
]);
|
|
338
|
+
/**
|
|
339
|
+
* @generated from message uniswap.liquidity.v2.PositionTickBounds
|
|
340
|
+
*/
|
|
341
|
+
export class PositionTickBounds extends Message {
|
|
342
|
+
constructor(data) {
|
|
343
|
+
super();
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: sint32 tick_lower = 1;
|
|
346
|
+
*/
|
|
347
|
+
this.tickLower = 0;
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: sint32 tick_upper = 2;
|
|
350
|
+
*/
|
|
351
|
+
this.tickUpper = 0;
|
|
352
|
+
proto3.util.initPartial(data, this);
|
|
353
|
+
}
|
|
354
|
+
static fromBinary(bytes, options) {
|
|
355
|
+
return new PositionTickBounds().fromBinary(bytes, options);
|
|
356
|
+
}
|
|
357
|
+
static fromJson(jsonValue, options) {
|
|
358
|
+
return new PositionTickBounds().fromJson(jsonValue, options);
|
|
359
|
+
}
|
|
360
|
+
static fromJsonString(jsonString, options) {
|
|
361
|
+
return new PositionTickBounds().fromJsonString(jsonString, options);
|
|
362
|
+
}
|
|
363
|
+
static equals(a, b) {
|
|
364
|
+
return proto3.util.equals(PositionTickBounds, a, b);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
PositionTickBounds.runtime = proto3;
|
|
368
|
+
PositionTickBounds.typeName = "uniswap.liquidity.v2.PositionTickBounds";
|
|
369
|
+
PositionTickBounds.fields = proto3.util.newFieldList(() => [
|
|
370
|
+
{ no: 1, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
371
|
+
{ no: 2, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
372
|
+
]);
|
|
373
|
+
/**
|
|
374
|
+
* @generated from message uniswap.liquidity.v2.CreateToken
|
|
375
|
+
*/
|
|
376
|
+
export class CreateToken extends Message {
|
|
377
|
+
constructor(data) {
|
|
378
|
+
super();
|
|
379
|
+
/**
|
|
380
|
+
* @generated from field: string token_address = 1;
|
|
381
|
+
*/
|
|
382
|
+
this.tokenAddress = "";
|
|
383
|
+
/**
|
|
384
|
+
* @generated from field: string amount = 2;
|
|
385
|
+
*/
|
|
386
|
+
this.amount = "";
|
|
387
|
+
proto3.util.initPartial(data, this);
|
|
388
|
+
}
|
|
389
|
+
static fromBinary(bytes, options) {
|
|
390
|
+
return new CreateToken().fromBinary(bytes, options);
|
|
391
|
+
}
|
|
392
|
+
static fromJson(jsonValue, options) {
|
|
393
|
+
return new CreateToken().fromJson(jsonValue, options);
|
|
394
|
+
}
|
|
395
|
+
static fromJsonString(jsonString, options) {
|
|
396
|
+
return new CreateToken().fromJsonString(jsonString, options);
|
|
397
|
+
}
|
|
398
|
+
static equals(a, b) {
|
|
399
|
+
return proto3.util.equals(CreateToken, a, b);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
CreateToken.runtime = proto3;
|
|
403
|
+
CreateToken.typeName = "uniswap.liquidity.v2.CreateToken";
|
|
404
|
+
CreateToken.fields = proto3.util.newFieldList(() => [
|
|
405
|
+
{ no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
406
|
+
{ no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
272
407
|
]);
|