@uniswap/client-liquidity 0.1.1 → 0.1.4

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.
@@ -315,6 +315,10 @@ export declare class CreateLPPositionResponse extends Message<CreateLPPositionRe
315
315
  * @generated from field: optional string gas_fee = 7;
316
316
  */
317
317
  gasFee?: string;
318
+ /**
319
+ * @generated from field: optional float slippage = 8;
320
+ */
321
+ slippage?: number;
318
322
  constructor(data?: PartialMessage<CreateLPPositionResponse>);
319
323
  static readonly runtime: typeof proto3;
320
324
  static readonly typeName = "uniswap.liquidity.v1.CreateLPPositionResponse";
@@ -340,6 +340,7 @@ CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
340
340
  { no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
341
341
  { no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
342
342
  { no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
343
+ { no: 8, name: "slippage", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
343
344
  ]);
344
345
  /**
345
346
  * @generated from message uniswap.liquidity.v1.PoolInfoRequest
@@ -106,7 +106,15 @@ export declare enum ChainId {
106
106
  /**
107
107
  * @generated from enum value: XLAYER = 196;
108
108
  */
109
- XLAYER = 196
109
+ XLAYER = 196,
110
+ /**
111
+ * @generated from enum value: LINEA = 59144;
112
+ */
113
+ LINEA = 59144,
114
+ /**
115
+ * @generated from enum value: TEMPO = 4217;
116
+ */
117
+ TEMPO = 4217
110
118
  }
111
119
  /**
112
120
  * @generated from enum uniswap.liquidity.v1.Distributor
@@ -1000,6 +1008,10 @@ export declare class V4CreateLPPosition extends Message<V4CreateLPPosition> {
1000
1008
  * @generated from field: bool simulate_transaction = 19;
1001
1009
  */
1002
1010
  simulateTransaction: boolean;
1011
+ /**
1012
+ * @generated from field: optional string native_token_balance = 20;
1013
+ */
1014
+ nativeTokenBalance?: string;
1003
1015
  constructor(data?: PartialMessage<V4CreateLPPosition>);
1004
1016
  static readonly runtime: typeof proto3;
1005
1017
  static readonly typeName = "uniswap.liquidity.v1.V4CreateLPPosition";
@@ -118,6 +118,14 @@ export var ChainId;
118
118
  * @generated from enum value: XLAYER = 196;
119
119
  */
120
120
  ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
121
+ /**
122
+ * @generated from enum value: LINEA = 59144;
123
+ */
124
+ ChainId[ChainId["LINEA"] = 59144] = "LINEA";
125
+ /**
126
+ * @generated from enum value: TEMPO = 4217;
127
+ */
128
+ ChainId[ChainId["TEMPO"] = 4217] = "TEMPO";
121
129
  })(ChainId || (ChainId = {}));
122
130
  // Retrieve enum metadata with: proto3.getEnumType(ChainId)
123
131
  proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
@@ -142,6 +150,8 @@ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
142
150
  { no: 1868, name: "SONEIUM" },
143
151
  { no: 143, name: "MONAD" },
144
152
  { no: 196, name: "XLAYER" },
153
+ { no: 59144, name: "LINEA" },
154
+ { no: 4217, name: "TEMPO" },
145
155
  ]);
146
156
  /**
147
157
  * @generated from enum uniswap.liquidity.v1.Distributor
@@ -1216,6 +1226,7 @@ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
1216
1226
  { no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1217
1227
  { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1218
1228
  { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1229
+ { no: 20, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1219
1230
  ]);
1220
1231
  /**
1221
1232
  * @generated from message uniswap.liquidity.v1.PoolInformation
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
+ import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
5
5
  */
@@ -14,3 +14,45 @@ export declare const migrateV2ToV3LPPosition: {
14
14
  readonly typeName: "uniswap.liquidity.v2.LiquidityService";
15
15
  };
16
16
  };
17
+ /**
18
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
19
+ */
20
+ export declare const checkLPApproval: {
21
+ readonly localName: "checkLPApproval";
22
+ readonly name: "CheckLPApproval";
23
+ readonly kind: MethodKind.Unary;
24
+ readonly I: typeof LPApprovalRequest;
25
+ readonly O: typeof LPApprovalResponse;
26
+ readonly idempotency: MethodIdempotency.NoSideEffects;
27
+ readonly service: {
28
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
29
+ };
30
+ };
31
+ /**
32
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CreateClassicPosition
33
+ */
34
+ export declare const createClassicPosition: {
35
+ readonly localName: "createClassicPosition";
36
+ readonly name: "CreateClassicPosition";
37
+ readonly kind: MethodKind.Unary;
38
+ readonly I: typeof CreateClassicPositionRequest;
39
+ readonly O: typeof CreateClassicPositionResponse;
40
+ readonly idempotency: MethodIdempotency.NoSideEffects;
41
+ readonly service: {
42
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
43
+ };
44
+ };
45
+ /**
46
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.DecreasePosition
47
+ */
48
+ export declare const decreasePosition: {
49
+ readonly localName: "decreasePosition";
50
+ readonly name: "DecreasePosition";
51
+ readonly kind: MethodKind.Unary;
52
+ readonly I: typeof DecreasePositionRequest;
53
+ readonly O: typeof DecreasePositionResponse;
54
+ readonly idempotency: MethodIdempotency.NoSideEffects;
55
+ readonly service: {
56
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
57
+ };
58
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
+ import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
9
9
  */
@@ -18,3 +18,45 @@ export const migrateV2ToV3LPPosition = {
18
18
  typeName: "uniswap.liquidity.v2.LiquidityService"
19
19
  }
20
20
  };
21
+ /**
22
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
23
+ */
24
+ export const checkLPApproval = {
25
+ localName: "checkLPApproval",
26
+ name: "CheckLPApproval",
27
+ kind: MethodKind.Unary,
28
+ I: LPApprovalRequest,
29
+ O: LPApprovalResponse,
30
+ idempotency: MethodIdempotency.NoSideEffects,
31
+ service: {
32
+ typeName: "uniswap.liquidity.v2.LiquidityService"
33
+ }
34
+ };
35
+ /**
36
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CreateClassicPosition
37
+ */
38
+ export const createClassicPosition = {
39
+ localName: "createClassicPosition",
40
+ name: "CreateClassicPosition",
41
+ kind: MethodKind.Unary,
42
+ I: CreateClassicPositionRequest,
43
+ O: CreateClassicPositionResponse,
44
+ idempotency: MethodIdempotency.NoSideEffects,
45
+ service: {
46
+ typeName: "uniswap.liquidity.v2.LiquidityService"
47
+ }
48
+ };
49
+ /**
50
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.DecreasePosition
51
+ */
52
+ export const decreasePosition = {
53
+ localName: "decreasePosition",
54
+ name: "DecreasePosition",
55
+ kind: MethodKind.Unary,
56
+ I: DecreasePositionRequest,
57
+ O: DecreasePositionResponse,
58
+ idempotency: MethodIdempotency.NoSideEffects,
59
+ service: {
60
+ typeName: "uniswap.liquidity.v2.LiquidityService"
61
+ }
62
+ };
@@ -1,4 +1,4 @@
1
- import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
1
+ import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, 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
@@ -16,5 +16,35 @@ export declare const LiquidityService: {
16
16
  readonly kind: MethodKind.Unary;
17
17
  readonly idempotency: MethodIdempotency.NoSideEffects;
18
18
  };
19
+ /**
20
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
21
+ */
22
+ readonly checkLPApproval: {
23
+ readonly name: "CheckLPApproval";
24
+ readonly I: typeof LPApprovalRequest;
25
+ readonly O: typeof LPApprovalResponse;
26
+ readonly kind: MethodKind.Unary;
27
+ readonly idempotency: MethodIdempotency.NoSideEffects;
28
+ };
29
+ /**
30
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CreateClassicPosition
31
+ */
32
+ readonly createClassicPosition: {
33
+ readonly name: "CreateClassicPosition";
34
+ readonly I: typeof CreateClassicPositionRequest;
35
+ readonly O: typeof CreateClassicPositionResponse;
36
+ readonly kind: MethodKind.Unary;
37
+ readonly idempotency: MethodIdempotency.NoSideEffects;
38
+ };
39
+ /**
40
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.DecreasePosition
41
+ */
42
+ readonly decreasePosition: {
43
+ readonly name: "DecreasePosition";
44
+ readonly I: typeof DecreasePositionRequest;
45
+ readonly O: typeof DecreasePositionResponse;
46
+ readonly kind: MethodKind.Unary;
47
+ readonly idempotency: MethodIdempotency.NoSideEffects;
48
+ };
19
49
  };
20
50
  };
@@ -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 { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
5
+ import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, 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
@@ -20,5 +20,35 @@ export const LiquidityService = {
20
20
  kind: MethodKind.Unary,
21
21
  idempotency: MethodIdempotency.NoSideEffects,
22
22
  },
23
+ /**
24
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CheckLPApproval
25
+ */
26
+ checkLPApproval: {
27
+ name: "CheckLPApproval",
28
+ I: LPApprovalRequest,
29
+ O: LPApprovalResponse,
30
+ kind: MethodKind.Unary,
31
+ idempotency: MethodIdempotency.NoSideEffects,
32
+ },
33
+ /**
34
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.CreateClassicPosition
35
+ */
36
+ createClassicPosition: {
37
+ name: "CreateClassicPosition",
38
+ I: CreateClassicPositionRequest,
39
+ O: CreateClassicPositionResponse,
40
+ kind: MethodKind.Unary,
41
+ idempotency: MethodIdempotency.NoSideEffects,
42
+ },
43
+ /**
44
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.DecreasePosition
45
+ */
46
+ decreasePosition: {
47
+ name: "DecreasePosition",
48
+ I: DecreasePositionRequest,
49
+ O: DecreasePositionResponse,
50
+ kind: MethodKind.Unary,
51
+ idempotency: MethodIdempotency.NoSideEffects,
52
+ },
23
53
  }
24
54
  };
@@ -1,7 +1,10 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { ChainId, TransactionRequest, V3Position } from "../v1/types_pb.js";
3
+ import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
+ import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
4
5
  /**
6
+ * MigrateV2ToV3LPPosition
7
+ *
5
8
  * @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
6
9
  */
7
10
  export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV3LPPositionRequest> {
@@ -75,3 +78,278 @@ export declare class MigrateV2ToV3LPPositionResponse extends Message<MigrateV2To
75
78
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
76
79
  static equals(a: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined, b: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined): boolean;
77
80
  }
81
+ /**
82
+ * CheckLPApproval
83
+ *
84
+ * @generated from message uniswap.liquidity.v2.LPApprovalRequest
85
+ */
86
+ export declare class LPApprovalRequest extends Message<LPApprovalRequest> {
87
+ /**
88
+ * @generated from field: string wallet_address = 1;
89
+ */
90
+ walletAddress: string;
91
+ /**
92
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
93
+ */
94
+ protocol: Protocols;
95
+ /**
96
+ * @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 3;
97
+ */
98
+ lpTokens: LPToken[];
99
+ /**
100
+ * @generated from field: uniswap.liquidity.v2.LPAction action = 4;
101
+ */
102
+ action: LPAction;
103
+ /**
104
+ * @generated from field: optional bool include_gas_info = 5;
105
+ */
106
+ includeGasInfo?: boolean;
107
+ /**
108
+ * @generated from field: optional bool simulate_transaction = 6;
109
+ */
110
+ simulateTransaction?: boolean;
111
+ /**
112
+ * @generated from field: optional bool generate_permit_as_transaction = 7;
113
+ */
114
+ generatePermitAsTransaction?: boolean;
115
+ /**
116
+ * @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 8;
117
+ */
118
+ urgency?: GasUrgency;
119
+ /**
120
+ * @generated from field: optional int32 v3_nft_token_id = 9;
121
+ */
122
+ v3NftTokenId?: number;
123
+ constructor(data?: PartialMessage<LPApprovalRequest>);
124
+ static readonly runtime: typeof proto3;
125
+ static readonly typeName = "uniswap.liquidity.v2.LPApprovalRequest";
126
+ static readonly fields: FieldList;
127
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LPApprovalRequest;
128
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LPApprovalRequest;
129
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPApprovalRequest;
130
+ static equals(a: LPApprovalRequest | PlainMessage<LPApprovalRequest> | undefined, b: LPApprovalRequest | PlainMessage<LPApprovalRequest> | undefined): boolean;
131
+ }
132
+ /**
133
+ * @generated from message uniswap.liquidity.v2.LPApprovalResponse
134
+ */
135
+ export declare class LPApprovalResponse extends Message<LPApprovalResponse> {
136
+ /**
137
+ * @generated from field: string request_id = 1;
138
+ */
139
+ requestId: string;
140
+ /**
141
+ * @generated from field: repeated uniswap.liquidity.v2.ApprovalTransactionRequest transactions = 2;
142
+ */
143
+ transactions: ApprovalTransactionRequest[];
144
+ /**
145
+ * @generated from field: optional uniswap.liquidity.v1.PermitBatchData v4_batch_permit_data = 3;
146
+ */
147
+ v4BatchPermitData?: PermitBatchData;
148
+ /**
149
+ * @generated from field: optional uniswap.liquidity.v1.NFTPermitData v3_nft_permit_data = 4;
150
+ */
151
+ v3NftPermitData?: NFTPermitData;
152
+ constructor(data?: PartialMessage<LPApprovalResponse>);
153
+ static readonly runtime: typeof proto3;
154
+ static readonly typeName = "uniswap.liquidity.v2.LPApprovalResponse";
155
+ static readonly fields: FieldList;
156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LPApprovalResponse;
157
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LPApprovalResponse;
158
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPApprovalResponse;
159
+ static equals(a: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined, b: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined): boolean;
160
+ }
161
+ /**
162
+ * CreateClassicPosition
163
+ *
164
+ * @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
165
+ */
166
+ export declare class CreateClassicPositionRequest extends Message<CreateClassicPositionRequest> {
167
+ /**
168
+ * @generated from field: string wallet_address = 1;
169
+ */
170
+ walletAddress: string;
171
+ /**
172
+ * @generated from oneof uniswap.liquidity.v2.CreateClassicPositionRequest.pool
173
+ */
174
+ pool: {
175
+ /**
176
+ * @generated from field: uniswap.liquidity.v2.PairAddress pair_address = 2;
177
+ */
178
+ value: PairAddress;
179
+ case: "pairAddress";
180
+ } | {
181
+ /**
182
+ * @generated from field: uniswap.liquidity.v2.V2PoolParameters pool_parameters = 3;
183
+ */
184
+ value: V2PoolParameters;
185
+ case: "poolParameters";
186
+ } | {
187
+ case: undefined;
188
+ value?: undefined;
189
+ };
190
+ /**
191
+ * @generated from field: string reference_token_address = 4;
192
+ */
193
+ referenceTokenAddress: string;
194
+ /**
195
+ * @generated from field: string token_0_amount = 5;
196
+ */
197
+ token0Amount: string;
198
+ /**
199
+ * @generated from field: optional string token_1_amount = 6;
200
+ */
201
+ token1Amount?: string;
202
+ /**
203
+ * @generated from field: optional float slippage_tolerance = 7;
204
+ */
205
+ slippageTolerance?: number;
206
+ /**
207
+ * @generated from field: optional int32 deadline = 8;
208
+ */
209
+ deadline?: number;
210
+ /**
211
+ * @generated from field: optional bool simulate_transaction = 9;
212
+ */
213
+ simulateTransaction?: boolean;
214
+ /**
215
+ * @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 10;
216
+ */
217
+ urgency?: GasUrgency;
218
+ constructor(data?: PartialMessage<CreateClassicPositionRequest>);
219
+ static readonly runtime: typeof proto3;
220
+ static readonly typeName = "uniswap.liquidity.v2.CreateClassicPositionRequest";
221
+ static readonly fields: FieldList;
222
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateClassicPositionRequest;
223
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateClassicPositionRequest;
224
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateClassicPositionRequest;
225
+ static equals(a: CreateClassicPositionRequest | PlainMessage<CreateClassicPositionRequest> | undefined, b: CreateClassicPositionRequest | PlainMessage<CreateClassicPositionRequest> | undefined): boolean;
226
+ }
227
+ /**
228
+ * @generated from message uniswap.liquidity.v2.CreateClassicPositionResponse
229
+ */
230
+ export declare class CreateClassicPositionResponse extends Message<CreateClassicPositionResponse> {
231
+ /**
232
+ * @generated from field: string request_id = 1;
233
+ */
234
+ requestId: string;
235
+ /**
236
+ * @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
237
+ */
238
+ token0?: LPToken;
239
+ /**
240
+ * @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
241
+ */
242
+ token1?: LPToken;
243
+ /**
244
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest create = 4;
245
+ */
246
+ create?: TransactionRequest;
247
+ /**
248
+ * @generated from field: optional string gas_fee = 5;
249
+ */
250
+ gasFee?: string;
251
+ constructor(data?: PartialMessage<CreateClassicPositionResponse>);
252
+ static readonly runtime: typeof proto3;
253
+ static readonly typeName = "uniswap.liquidity.v2.CreateClassicPositionResponse";
254
+ static readonly fields: FieldList;
255
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateClassicPositionResponse;
256
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateClassicPositionResponse;
257
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateClassicPositionResponse;
258
+ static equals(a: CreateClassicPositionResponse | PlainMessage<CreateClassicPositionResponse> | undefined, b: CreateClassicPositionResponse | PlainMessage<CreateClassicPositionResponse> | undefined): boolean;
259
+ }
260
+ /**
261
+ * DecreaseLPPosition
262
+ *
263
+ * @generated from message uniswap.liquidity.v2.DecreasePositionRequest
264
+ */
265
+ export declare class DecreasePositionRequest extends Message<DecreasePositionRequest> {
266
+ /**
267
+ * @generated from field: string wallet_address = 1;
268
+ */
269
+ walletAddress: string;
270
+ /**
271
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
272
+ */
273
+ chainId: ChainId;
274
+ /**
275
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 3;
276
+ */
277
+ protocol: Protocols;
278
+ /**
279
+ * @generated from field: string token_0_address = 4;
280
+ */
281
+ token0Address: string;
282
+ /**
283
+ * @generated from field: string token_1_address = 5;
284
+ */
285
+ token1Address: string;
286
+ /**
287
+ * @generated from field: optional string nft_token_id = 6;
288
+ */
289
+ nftTokenId?: string;
290
+ /**
291
+ * @generated from field: int32 liquidity_percentage_to_decrease = 7;
292
+ */
293
+ liquidityPercentageToDecrease: number;
294
+ /**
295
+ * @generated from field: optional float slippage_tolerance = 8;
296
+ */
297
+ slippageTolerance?: number;
298
+ /**
299
+ * @generated from field: optional int32 deadline = 9;
300
+ */
301
+ deadline?: number;
302
+ /**
303
+ * @generated from field: optional bool simulate_transaction = 10;
304
+ */
305
+ simulateTransaction?: boolean;
306
+ /**
307
+ * @generated from field: optional bool withdraw_as_weth = 11;
308
+ */
309
+ withdrawAsWeth?: boolean;
310
+ /**
311
+ * @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 12;
312
+ */
313
+ urgency?: GasUrgency;
314
+ constructor(data?: PartialMessage<DecreasePositionRequest>);
315
+ static readonly runtime: typeof proto3;
316
+ static readonly typeName = "uniswap.liquidity.v2.DecreasePositionRequest";
317
+ static readonly fields: FieldList;
318
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecreasePositionRequest;
319
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecreasePositionRequest;
320
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecreasePositionRequest;
321
+ static equals(a: DecreasePositionRequest | PlainMessage<DecreasePositionRequest> | undefined, b: DecreasePositionRequest | PlainMessage<DecreasePositionRequest> | undefined): boolean;
322
+ }
323
+ /**
324
+ * @generated from message uniswap.liquidity.v2.DecreasePositionResponse
325
+ */
326
+ export declare class DecreasePositionResponse extends Message<DecreasePositionResponse> {
327
+ /**
328
+ * @generated from field: string request_id = 1;
329
+ */
330
+ requestId: string;
331
+ /**
332
+ * @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
333
+ */
334
+ token0?: LPToken;
335
+ /**
336
+ * @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
337
+ */
338
+ token1?: LPToken;
339
+ /**
340
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest decrease = 4;
341
+ */
342
+ decrease?: TransactionRequest;
343
+ /**
344
+ * @generated from field: optional string gas_fee = 5;
345
+ */
346
+ gasFee?: string;
347
+ constructor(data?: PartialMessage<DecreasePositionResponse>);
348
+ static readonly runtime: typeof proto3;
349
+ static readonly typeName = "uniswap.liquidity.v2.DecreasePositionResponse";
350
+ static readonly fields: FieldList;
351
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DecreasePositionResponse;
352
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DecreasePositionResponse;
353
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecreasePositionResponse;
354
+ static equals(a: DecreasePositionResponse | PlainMessage<DecreasePositionResponse> | undefined, b: DecreasePositionResponse | PlainMessage<DecreasePositionResponse> | undefined): boolean;
355
+ }
@@ -3,8 +3,11 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { ChainId, TransactionRequest, V3Position } from "../v1/types_pb.js";
6
+ import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
+ import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
7
8
  /**
9
+ * MigrateV2ToV3LPPosition
10
+ *
8
11
  * @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
9
12
  */
10
13
  export class MigrateV2ToV3LPPositionRequest extends Message {
@@ -78,3 +81,276 @@ MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
78
81
  { no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
79
82
  { no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
80
83
  ]);
84
+ /**
85
+ * CheckLPApproval
86
+ *
87
+ * @generated from message uniswap.liquidity.v2.LPApprovalRequest
88
+ */
89
+ export class LPApprovalRequest extends Message {
90
+ constructor(data) {
91
+ super();
92
+ /**
93
+ * @generated from field: string wallet_address = 1;
94
+ */
95
+ this.walletAddress = "";
96
+ /**
97
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
98
+ */
99
+ this.protocol = Protocols.V2;
100
+ /**
101
+ * @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 3;
102
+ */
103
+ this.lpTokens = [];
104
+ /**
105
+ * @generated from field: uniswap.liquidity.v2.LPAction action = 4;
106
+ */
107
+ this.action = LPAction.CREATE;
108
+ proto3.util.initPartial(data, this);
109
+ }
110
+ static fromBinary(bytes, options) {
111
+ return new LPApprovalRequest().fromBinary(bytes, options);
112
+ }
113
+ static fromJson(jsonValue, options) {
114
+ return new LPApprovalRequest().fromJson(jsonValue, options);
115
+ }
116
+ static fromJsonString(jsonString, options) {
117
+ return new LPApprovalRequest().fromJsonString(jsonString, options);
118
+ }
119
+ static equals(a, b) {
120
+ return proto3.util.equals(LPApprovalRequest, a, b);
121
+ }
122
+ }
123
+ LPApprovalRequest.runtime = proto3;
124
+ LPApprovalRequest.typeName = "uniswap.liquidity.v2.LPApprovalRequest";
125
+ LPApprovalRequest.fields = proto3.util.newFieldList(() => [
126
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
+ { no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
128
+ { no: 3, name: "lp_tokens", kind: "message", T: LPToken, repeated: true },
129
+ { no: 4, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
130
+ { no: 5, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
131
+ { no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
132
+ { no: 7, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
133
+ { no: 8, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
134
+ { no: 9, name: "v3_nft_token_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
135
+ ]);
136
+ /**
137
+ * @generated from message uniswap.liquidity.v2.LPApprovalResponse
138
+ */
139
+ export class LPApprovalResponse extends Message {
140
+ constructor(data) {
141
+ super();
142
+ /**
143
+ * @generated from field: string request_id = 1;
144
+ */
145
+ this.requestId = "";
146
+ /**
147
+ * @generated from field: repeated uniswap.liquidity.v2.ApprovalTransactionRequest transactions = 2;
148
+ */
149
+ this.transactions = [];
150
+ proto3.util.initPartial(data, this);
151
+ }
152
+ static fromBinary(bytes, options) {
153
+ return new LPApprovalResponse().fromBinary(bytes, options);
154
+ }
155
+ static fromJson(jsonValue, options) {
156
+ return new LPApprovalResponse().fromJson(jsonValue, options);
157
+ }
158
+ static fromJsonString(jsonString, options) {
159
+ return new LPApprovalResponse().fromJsonString(jsonString, options);
160
+ }
161
+ static equals(a, b) {
162
+ return proto3.util.equals(LPApprovalResponse, a, b);
163
+ }
164
+ }
165
+ LPApprovalResponse.runtime = proto3;
166
+ LPApprovalResponse.typeName = "uniswap.liquidity.v2.LPApprovalResponse";
167
+ LPApprovalResponse.fields = proto3.util.newFieldList(() => [
168
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
+ { no: 2, name: "transactions", kind: "message", T: ApprovalTransactionRequest, repeated: true },
170
+ { no: 3, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
171
+ { no: 4, name: "v3_nft_permit_data", kind: "message", T: NFTPermitData, opt: true },
172
+ ]);
173
+ /**
174
+ * CreateClassicPosition
175
+ *
176
+ * @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
177
+ */
178
+ export class CreateClassicPositionRequest extends Message {
179
+ constructor(data) {
180
+ super();
181
+ /**
182
+ * @generated from field: string wallet_address = 1;
183
+ */
184
+ this.walletAddress = "";
185
+ /**
186
+ * @generated from oneof uniswap.liquidity.v2.CreateClassicPositionRequest.pool
187
+ */
188
+ 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
+ proto3.util.initPartial(data, this);
198
+ }
199
+ static fromBinary(bytes, options) {
200
+ return new CreateClassicPositionRequest().fromBinary(bytes, options);
201
+ }
202
+ static fromJson(jsonValue, options) {
203
+ return new CreateClassicPositionRequest().fromJson(jsonValue, options);
204
+ }
205
+ static fromJsonString(jsonString, options) {
206
+ return new CreateClassicPositionRequest().fromJsonString(jsonString, options);
207
+ }
208
+ static equals(a, b) {
209
+ return proto3.util.equals(CreateClassicPositionRequest, a, b);
210
+ }
211
+ }
212
+ CreateClassicPositionRequest.runtime = proto3;
213
+ CreateClassicPositionRequest.typeName = "uniswap.liquidity.v2.CreateClassicPositionRequest";
214
+ CreateClassicPositionRequest.fields = proto3.util.newFieldList(() => [
215
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
216
+ { no: 2, name: "pair_address", kind: "message", T: PairAddress, oneof: "pool" },
217
+ { no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters, oneof: "pool" },
218
+ { no: 4, name: "reference_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
219
+ { no: 5, name: "token_0_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
220
+ { no: 6, name: "token_1_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
221
+ { no: 7, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
222
+ { no: 8, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
223
+ { no: 9, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
224
+ { no: 10, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
225
+ ]);
226
+ /**
227
+ * @generated from message uniswap.liquidity.v2.CreateClassicPositionResponse
228
+ */
229
+ export class CreateClassicPositionResponse extends Message {
230
+ constructor(data) {
231
+ super();
232
+ /**
233
+ * @generated from field: string request_id = 1;
234
+ */
235
+ this.requestId = "";
236
+ proto3.util.initPartial(data, this);
237
+ }
238
+ static fromBinary(bytes, options) {
239
+ return new CreateClassicPositionResponse().fromBinary(bytes, options);
240
+ }
241
+ static fromJson(jsonValue, options) {
242
+ return new CreateClassicPositionResponse().fromJson(jsonValue, options);
243
+ }
244
+ static fromJsonString(jsonString, options) {
245
+ return new CreateClassicPositionResponse().fromJsonString(jsonString, options);
246
+ }
247
+ static equals(a, b) {
248
+ return proto3.util.equals(CreateClassicPositionResponse, a, b);
249
+ }
250
+ }
251
+ CreateClassicPositionResponse.runtime = proto3;
252
+ CreateClassicPositionResponse.typeName = "uniswap.liquidity.v2.CreateClassicPositionResponse";
253
+ CreateClassicPositionResponse.fields = proto3.util.newFieldList(() => [
254
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
255
+ { no: 2, name: "token_0", kind: "message", T: LPToken },
256
+ { no: 3, name: "token_1", kind: "message", T: LPToken },
257
+ { no: 4, name: "create", kind: "message", T: TransactionRequest },
258
+ { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
259
+ ]);
260
+ /**
261
+ * DecreaseLPPosition
262
+ *
263
+ * @generated from message uniswap.liquidity.v2.DecreasePositionRequest
264
+ */
265
+ export class DecreasePositionRequest extends Message {
266
+ constructor(data) {
267
+ super();
268
+ /**
269
+ * @generated from field: string wallet_address = 1;
270
+ */
271
+ this.walletAddress = "";
272
+ /**
273
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
274
+ */
275
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
276
+ /**
277
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 3;
278
+ */
279
+ this.protocol = Protocols.V2;
280
+ /**
281
+ * @generated from field: string token_0_address = 4;
282
+ */
283
+ this.token0Address = "";
284
+ /**
285
+ * @generated from field: string token_1_address = 5;
286
+ */
287
+ this.token1Address = "";
288
+ /**
289
+ * @generated from field: int32 liquidity_percentage_to_decrease = 7;
290
+ */
291
+ this.liquidityPercentageToDecrease = 0;
292
+ proto3.util.initPartial(data, this);
293
+ }
294
+ static fromBinary(bytes, options) {
295
+ return new DecreasePositionRequest().fromBinary(bytes, options);
296
+ }
297
+ static fromJson(jsonValue, options) {
298
+ return new DecreasePositionRequest().fromJson(jsonValue, options);
299
+ }
300
+ static fromJsonString(jsonString, options) {
301
+ return new DecreasePositionRequest().fromJsonString(jsonString, options);
302
+ }
303
+ static equals(a, b) {
304
+ return proto3.util.equals(DecreasePositionRequest, a, b);
305
+ }
306
+ }
307
+ DecreasePositionRequest.runtime = proto3;
308
+ DecreasePositionRequest.typeName = "uniswap.liquidity.v2.DecreasePositionRequest";
309
+ DecreasePositionRequest.fields = proto3.util.newFieldList(() => [
310
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
311
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
312
+ { no: 3, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
313
+ { no: 4, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
314
+ { no: 5, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
315
+ { no: 6, name: "nft_token_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
316
+ { no: 7, name: "liquidity_percentage_to_decrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
317
+ { no: 8, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
318
+ { no: 9, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
319
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
320
+ { no: 11, name: "withdraw_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
321
+ { no: 12, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
322
+ ]);
323
+ /**
324
+ * @generated from message uniswap.liquidity.v2.DecreasePositionResponse
325
+ */
326
+ export class DecreasePositionResponse extends Message {
327
+ constructor(data) {
328
+ super();
329
+ /**
330
+ * @generated from field: string request_id = 1;
331
+ */
332
+ this.requestId = "";
333
+ proto3.util.initPartial(data, this);
334
+ }
335
+ static fromBinary(bytes, options) {
336
+ return new DecreasePositionResponse().fromBinary(bytes, options);
337
+ }
338
+ static fromJson(jsonValue, options) {
339
+ return new DecreasePositionResponse().fromJson(jsonValue, options);
340
+ }
341
+ static fromJsonString(jsonString, options) {
342
+ return new DecreasePositionResponse().fromJsonString(jsonString, options);
343
+ }
344
+ static equals(a, b) {
345
+ return proto3.util.equals(DecreasePositionResponse, a, b);
346
+ }
347
+ }
348
+ DecreasePositionResponse.runtime = proto3;
349
+ DecreasePositionResponse.typeName = "uniswap.liquidity.v2.DecreasePositionResponse";
350
+ DecreasePositionResponse.fields = proto3.util.newFieldList(() => [
351
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
352
+ { no: 2, name: "token_0", kind: "message", T: LPToken },
353
+ { no: 3, name: "token_1", kind: "message", T: LPToken },
354
+ { no: 4, name: "decrease", kind: "message", T: TransactionRequest },
355
+ { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
356
+ ]);
@@ -1,6 +1,48 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { ChainId } from "../v1/types_pb.js";
3
+ import { ChainId, TransactionRequest } from "../v1/types_pb.js";
4
+ /**
5
+ * @generated from enum uniswap.liquidity.v2.LPAction
6
+ */
7
+ export declare enum LPAction {
8
+ /**
9
+ * @generated from enum value: CREATE = 0;
10
+ */
11
+ CREATE = 0,
12
+ /**
13
+ * @generated from enum value: INCREASE = 1;
14
+ */
15
+ INCREASE = 1,
16
+ /**
17
+ * @generated from enum value: DECREASE = 2;
18
+ */
19
+ DECREASE = 2,
20
+ /**
21
+ * @generated from enum value: MIGRATE = 3;
22
+ */
23
+ MIGRATE = 3
24
+ }
25
+ /**
26
+ * @generated from enum uniswap.liquidity.v2.GasUrgency
27
+ */
28
+ export declare enum GasUrgency {
29
+ /**
30
+ * @generated from enum value: GAS_URGENCY_UNSPECIFIED = 0;
31
+ */
32
+ GAS_URGENCY_UNSPECIFIED = 0,
33
+ /**
34
+ * @generated from enum value: NORMAL = 1;
35
+ */
36
+ NORMAL = 1,
37
+ /**
38
+ * @generated from enum value: FAST = 2;
39
+ */
40
+ FAST = 2,
41
+ /**
42
+ * @generated from enum value: URGENT = 3;
43
+ */
44
+ URGENT = 3
45
+ }
4
46
  /**
5
47
  * @generated from message uniswap.liquidity.v2.LPToken
6
48
  */
@@ -26,3 +68,78 @@ export declare class LPToken extends Message<LPToken> {
26
68
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPToken;
27
69
  static equals(a: LPToken | PlainMessage<LPToken> | undefined, b: LPToken | PlainMessage<LPToken> | undefined): boolean;
28
70
  }
71
+ /**
72
+ * @generated from message uniswap.liquidity.v2.PairAddress
73
+ */
74
+ export declare class PairAddress extends Message<PairAddress> {
75
+ /**
76
+ * @generated from field: string address = 1;
77
+ */
78
+ address: string;
79
+ /**
80
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
81
+ */
82
+ chainId: ChainId;
83
+ constructor(data?: PartialMessage<PairAddress>);
84
+ static readonly runtime: typeof proto3;
85
+ static readonly typeName = "uniswap.liquidity.v2.PairAddress";
86
+ static readonly fields: FieldList;
87
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PairAddress;
88
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PairAddress;
89
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PairAddress;
90
+ static equals(a: PairAddress | PlainMessage<PairAddress> | undefined, b: PairAddress | PlainMessage<PairAddress> | undefined): boolean;
91
+ }
92
+ /**
93
+ * @generated from message uniswap.liquidity.v2.V2PoolParameters
94
+ */
95
+ export declare class V2PoolParameters extends Message<V2PoolParameters> {
96
+ /**
97
+ * @generated from field: string token_0_address = 1;
98
+ */
99
+ token0Address: string;
100
+ /**
101
+ * @generated from field: string token_1_address = 2;
102
+ */
103
+ token1Address: string;
104
+ /**
105
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
106
+ */
107
+ chainId: ChainId;
108
+ constructor(data?: PartialMessage<V2PoolParameters>);
109
+ static readonly runtime: typeof proto3;
110
+ static readonly typeName = "uniswap.liquidity.v2.V2PoolParameters";
111
+ static readonly fields: FieldList;
112
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2PoolParameters;
113
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2PoolParameters;
114
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2PoolParameters;
115
+ static equals(a: V2PoolParameters | PlainMessage<V2PoolParameters> | undefined, b: V2PoolParameters | PlainMessage<V2PoolParameters> | undefined): boolean;
116
+ }
117
+ /**
118
+ * @generated from message uniswap.liquidity.v2.ApprovalTransactionRequest
119
+ */
120
+ export declare class ApprovalTransactionRequest extends Message<ApprovalTransactionRequest> {
121
+ /**
122
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest transaction = 1;
123
+ */
124
+ transaction?: TransactionRequest;
125
+ /**
126
+ * @generated from field: bool cancel_approval = 2;
127
+ */
128
+ cancelApproval: boolean;
129
+ /**
130
+ * @generated from field: uniswap.liquidity.v2.LPAction action = 3;
131
+ */
132
+ action: LPAction;
133
+ /**
134
+ * @generated from field: optional string gas_fee = 4;
135
+ */
136
+ gasFee?: string;
137
+ constructor(data?: PartialMessage<ApprovalTransactionRequest>);
138
+ static readonly runtime: typeof proto3;
139
+ static readonly typeName = "uniswap.liquidity.v2.ApprovalTransactionRequest";
140
+ static readonly fields: FieldList;
141
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApprovalTransactionRequest;
142
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApprovalTransactionRequest;
143
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApprovalTransactionRequest;
144
+ static equals(a: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined, b: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined): boolean;
145
+ }
@@ -3,7 +3,65 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { ChainId } from "../v1/types_pb.js";
6
+ import { ChainId, TransactionRequest } from "../v1/types_pb.js";
7
+ /**
8
+ * @generated from enum uniswap.liquidity.v2.LPAction
9
+ */
10
+ export var LPAction;
11
+ (function (LPAction) {
12
+ /**
13
+ * @generated from enum value: CREATE = 0;
14
+ */
15
+ LPAction[LPAction["CREATE"] = 0] = "CREATE";
16
+ /**
17
+ * @generated from enum value: INCREASE = 1;
18
+ */
19
+ LPAction[LPAction["INCREASE"] = 1] = "INCREASE";
20
+ /**
21
+ * @generated from enum value: DECREASE = 2;
22
+ */
23
+ LPAction[LPAction["DECREASE"] = 2] = "DECREASE";
24
+ /**
25
+ * @generated from enum value: MIGRATE = 3;
26
+ */
27
+ LPAction[LPAction["MIGRATE"] = 3] = "MIGRATE";
28
+ })(LPAction || (LPAction = {}));
29
+ // Retrieve enum metadata with: proto3.getEnumType(LPAction)
30
+ proto3.util.setEnumType(LPAction, "uniswap.liquidity.v2.LPAction", [
31
+ { no: 0, name: "CREATE" },
32
+ { no: 1, name: "INCREASE" },
33
+ { no: 2, name: "DECREASE" },
34
+ { no: 3, name: "MIGRATE" },
35
+ ]);
36
+ /**
37
+ * @generated from enum uniswap.liquidity.v2.GasUrgency
38
+ */
39
+ export var GasUrgency;
40
+ (function (GasUrgency) {
41
+ /**
42
+ * @generated from enum value: GAS_URGENCY_UNSPECIFIED = 0;
43
+ */
44
+ GasUrgency[GasUrgency["GAS_URGENCY_UNSPECIFIED"] = 0] = "GAS_URGENCY_UNSPECIFIED";
45
+ /**
46
+ * @generated from enum value: NORMAL = 1;
47
+ */
48
+ GasUrgency[GasUrgency["NORMAL"] = 1] = "NORMAL";
49
+ /**
50
+ * @generated from enum value: FAST = 2;
51
+ */
52
+ GasUrgency[GasUrgency["FAST"] = 2] = "FAST";
53
+ /**
54
+ * @generated from enum value: URGENT = 3;
55
+ */
56
+ GasUrgency[GasUrgency["URGENT"] = 3] = "URGENT";
57
+ })(GasUrgency || (GasUrgency = {}));
58
+ // Retrieve enum metadata with: proto3.getEnumType(GasUrgency)
59
+ proto3.util.setEnumType(GasUrgency, "uniswap.liquidity.v2.GasUrgency", [
60
+ { no: 0, name: "GAS_URGENCY_UNSPECIFIED" },
61
+ { no: 1, name: "NORMAL" },
62
+ { no: 2, name: "FAST" },
63
+ { no: 3, name: "URGENT" },
64
+ ]);
7
65
  /**
8
66
  * @generated from message uniswap.liquidity.v2.LPToken
9
67
  */
@@ -44,3 +102,115 @@ LPToken.fields = proto3.util.newFieldList(() => [
44
102
  { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
103
  { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
104
  ]);
105
+ /**
106
+ * @generated from message uniswap.liquidity.v2.PairAddress
107
+ */
108
+ export class PairAddress extends Message {
109
+ constructor(data) {
110
+ super();
111
+ /**
112
+ * @generated from field: string address = 1;
113
+ */
114
+ this.address = "";
115
+ /**
116
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
117
+ */
118
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
119
+ proto3.util.initPartial(data, this);
120
+ }
121
+ static fromBinary(bytes, options) {
122
+ return new PairAddress().fromBinary(bytes, options);
123
+ }
124
+ static fromJson(jsonValue, options) {
125
+ return new PairAddress().fromJson(jsonValue, options);
126
+ }
127
+ static fromJsonString(jsonString, options) {
128
+ return new PairAddress().fromJsonString(jsonString, options);
129
+ }
130
+ static equals(a, b) {
131
+ return proto3.util.equals(PairAddress, a, b);
132
+ }
133
+ }
134
+ PairAddress.runtime = proto3;
135
+ PairAddress.typeName = "uniswap.liquidity.v2.PairAddress";
136
+ PairAddress.fields = proto3.util.newFieldList(() => [
137
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
139
+ ]);
140
+ /**
141
+ * @generated from message uniswap.liquidity.v2.V2PoolParameters
142
+ */
143
+ export class V2PoolParameters extends Message {
144
+ constructor(data) {
145
+ super();
146
+ /**
147
+ * @generated from field: string token_0_address = 1;
148
+ */
149
+ this.token0Address = "";
150
+ /**
151
+ * @generated from field: string token_1_address = 2;
152
+ */
153
+ this.token1Address = "";
154
+ /**
155
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
156
+ */
157
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
158
+ proto3.util.initPartial(data, this);
159
+ }
160
+ static fromBinary(bytes, options) {
161
+ return new V2PoolParameters().fromBinary(bytes, options);
162
+ }
163
+ static fromJson(jsonValue, options) {
164
+ return new V2PoolParameters().fromJson(jsonValue, options);
165
+ }
166
+ static fromJsonString(jsonString, options) {
167
+ return new V2PoolParameters().fromJsonString(jsonString, options);
168
+ }
169
+ static equals(a, b) {
170
+ return proto3.util.equals(V2PoolParameters, a, b);
171
+ }
172
+ }
173
+ V2PoolParameters.runtime = proto3;
174
+ V2PoolParameters.typeName = "uniswap.liquidity.v2.V2PoolParameters";
175
+ V2PoolParameters.fields = proto3.util.newFieldList(() => [
176
+ { no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
178
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
179
+ ]);
180
+ /**
181
+ * @generated from message uniswap.liquidity.v2.ApprovalTransactionRequest
182
+ */
183
+ export class ApprovalTransactionRequest extends Message {
184
+ constructor(data) {
185
+ super();
186
+ /**
187
+ * @generated from field: bool cancel_approval = 2;
188
+ */
189
+ this.cancelApproval = false;
190
+ /**
191
+ * @generated from field: uniswap.liquidity.v2.LPAction action = 3;
192
+ */
193
+ this.action = LPAction.CREATE;
194
+ proto3.util.initPartial(data, this);
195
+ }
196
+ static fromBinary(bytes, options) {
197
+ return new ApprovalTransactionRequest().fromBinary(bytes, options);
198
+ }
199
+ static fromJson(jsonValue, options) {
200
+ return new ApprovalTransactionRequest().fromJson(jsonValue, options);
201
+ }
202
+ static fromJsonString(jsonString, options) {
203
+ return new ApprovalTransactionRequest().fromJsonString(jsonString, options);
204
+ }
205
+ static equals(a, b) {
206
+ return proto3.util.equals(ApprovalTransactionRequest, a, b);
207
+ }
208
+ }
209
+ ApprovalTransactionRequest.runtime = proto3;
210
+ ApprovalTransactionRequest.typeName = "uniswap.liquidity.v2.ApprovalTransactionRequest";
211
+ ApprovalTransactionRequest.fields = proto3.util.newFieldList(() => [
212
+ { no: 1, name: "transaction", kind: "message", T: TransactionRequest },
213
+ { no: 2, name: "cancel_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
214
+ { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
215
+ { no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
216
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },