@uniswap/client-liquidity 0.0.1 → 0.0.3

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.
@@ -0,0 +1,396 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v1/types.proto (package uniswap.liquidity.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * ENUMS
8
+ *
9
+ * @generated from enum uniswap.liquidity.v1.ChainId
10
+ */
11
+ export var ChainId;
12
+ (function (ChainId) {
13
+ /**
14
+ * @generated from enum value: CHAIN_ID_UNSPECIFIED = 0;
15
+ */
16
+ ChainId[ChainId["CHAIN_ID_UNSPECIFIED"] = 0] = "CHAIN_ID_UNSPECIFIED";
17
+ /**
18
+ * @generated from enum value: MAINNET = 1;
19
+ */
20
+ ChainId[ChainId["MAINNET"] = 1] = "MAINNET";
21
+ /**
22
+ * @generated from enum value: OPTIMISM = 10;
23
+ */
24
+ ChainId[ChainId["OPTIMISM"] = 10] = "OPTIMISM";
25
+ /**
26
+ * @generated from enum value: POLYGON = 137;
27
+ */
28
+ ChainId[ChainId["POLYGON"] = 137] = "POLYGON";
29
+ /**
30
+ * @generated from enum value: ARBITRUM = 42161;
31
+ */
32
+ ChainId[ChainId["ARBITRUM"] = 42161] = "ARBITRUM";
33
+ /**
34
+ * @generated from enum value: BNB = 56;
35
+ */
36
+ ChainId[ChainId["BNB"] = 56] = "BNB";
37
+ /**
38
+ * @generated from enum value: BASE = 8453;
39
+ */
40
+ ChainId[ChainId["BASE"] = 8453] = "BASE";
41
+ /**
42
+ * @generated from enum value: BLAST = 81457;
43
+ */
44
+ ChainId[ChainId["BLAST"] = 81457] = "BLAST";
45
+ /**
46
+ * @generated from enum value: AVAX = 43114;
47
+ */
48
+ ChainId[ChainId["AVAX"] = 43114] = "AVAX";
49
+ /**
50
+ * @generated from enum value: CELO = 42220;
51
+ */
52
+ ChainId[ChainId["CELO"] = 42220] = "CELO";
53
+ /**
54
+ * @generated from enum value: ZORA = 7777777;
55
+ */
56
+ ChainId[ChainId["ZORA"] = 7777777] = "ZORA";
57
+ /**
58
+ * @generated from enum value: ZKSYNC = 324;
59
+ */
60
+ ChainId[ChainId["ZKSYNC"] = 324] = "ZKSYNC";
61
+ /**
62
+ * @generated from enum value: SEPOLIA = 11155111;
63
+ */
64
+ ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
65
+ /**
66
+ * @generated from enum value: UNICHAIN_SEPOLIA = 1301;
67
+ */
68
+ ChainId[ChainId["UNICHAIN_SEPOLIA"] = 1301] = "UNICHAIN_SEPOLIA";
69
+ /**
70
+ * @generated from enum value: WORLDCHAIN = 480;
71
+ */
72
+ ChainId[ChainId["WORLDCHAIN"] = 480] = "WORLDCHAIN";
73
+ /**
74
+ * @generated from enum value: MONAD_TESTNET = 10143;
75
+ */
76
+ ChainId[ChainId["MONAD_TESTNET"] = 10143] = "MONAD_TESTNET";
77
+ /**
78
+ * @generated from enum value: BASE_SEPOLIA = 84532;
79
+ */
80
+ ChainId[ChainId["BASE_SEPOLIA"] = 84532] = "BASE_SEPOLIA";
81
+ /**
82
+ * @generated from enum value: UNICHAIN = 130;
83
+ */
84
+ ChainId[ChainId["UNICHAIN"] = 130] = "UNICHAIN";
85
+ /**
86
+ * @generated from enum value: SONEIUM = 1868;
87
+ */
88
+ ChainId[ChainId["SONEIUM"] = 1868] = "SONEIUM";
89
+ /**
90
+ * @generated from enum value: MONAD = 143;
91
+ */
92
+ ChainId[ChainId["MONAD"] = 143] = "MONAD";
93
+ })(ChainId || (ChainId = {}));
94
+ // Retrieve enum metadata with: proto3.getEnumType(ChainId)
95
+ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
96
+ { no: 0, name: "CHAIN_ID_UNSPECIFIED" },
97
+ { no: 1, name: "MAINNET" },
98
+ { no: 10, name: "OPTIMISM" },
99
+ { no: 137, name: "POLYGON" },
100
+ { no: 42161, name: "ARBITRUM" },
101
+ { no: 56, name: "BNB" },
102
+ { no: 8453, name: "BASE" },
103
+ { no: 81457, name: "BLAST" },
104
+ { no: 43114, name: "AVAX" },
105
+ { no: 42220, name: "CELO" },
106
+ { no: 7777777, name: "ZORA" },
107
+ { no: 324, name: "ZKSYNC" },
108
+ { no: 11155111, name: "SEPOLIA" },
109
+ { no: 1301, name: "UNICHAIN_SEPOLIA" },
110
+ { no: 480, name: "WORLDCHAIN" },
111
+ { no: 10143, name: "MONAD_TESTNET" },
112
+ { no: 84532, name: "BASE_SEPOLIA" },
113
+ { no: 130, name: "UNICHAIN" },
114
+ { no: 1868, name: "SONEIUM" },
115
+ { no: 143, name: "MONAD" },
116
+ ]);
117
+ /**
118
+ * SUPPORTING OBJECTS
119
+ *
120
+ * @generated from message uniswap.liquidity.v1.TransactionRequest
121
+ */
122
+ export class TransactionRequest extends Message {
123
+ constructor(data) {
124
+ super();
125
+ /**
126
+ * @generated from field: string to = 1;
127
+ */
128
+ this.to = "";
129
+ /**
130
+ * @generated from field: string from = 2;
131
+ */
132
+ this.from = "";
133
+ /**
134
+ * @generated from field: string data = 3;
135
+ */
136
+ this.data = "";
137
+ /**
138
+ * @generated from field: string value = 4;
139
+ */
140
+ this.value = "";
141
+ /**
142
+ * @generated from field: uint32 chain_id = 5;
143
+ */
144
+ this.chainId = 0;
145
+ proto3.util.initPartial(data, this);
146
+ }
147
+ static fromBinary(bytes, options) {
148
+ return new TransactionRequest().fromBinary(bytes, options);
149
+ }
150
+ static fromJson(jsonValue, options) {
151
+ return new TransactionRequest().fromJson(jsonValue, options);
152
+ }
153
+ static fromJsonString(jsonString, options) {
154
+ return new TransactionRequest().fromJsonString(jsonString, options);
155
+ }
156
+ static equals(a, b) {
157
+ return proto3.util.equals(TransactionRequest, a, b);
158
+ }
159
+ }
160
+ TransactionRequest.runtime = proto3;
161
+ TransactionRequest.typeName = "uniswap.liquidity.v1.TransactionRequest";
162
+ TransactionRequest.fields = proto3.util.newFieldList(() => [
163
+ { no: 1, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
164
+ { no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
165
+ { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
166
+ { no: 4, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
167
+ { no: 5, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
168
+ { no: 6, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
169
+ { no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
170
+ { no: 8, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
171
+ { no: 9, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
172
+ ]);
173
+ /**
174
+ * @generated from message uniswap.liquidity.v1.V4Position
175
+ */
176
+ export class V4Position extends Message {
177
+ constructor(data) {
178
+ super();
179
+ /**
180
+ * @generated from field: sint32 tick_lower = 2;
181
+ */
182
+ this.tickLower = 0;
183
+ /**
184
+ * @generated from field: sint32 tick_upper = 3;
185
+ */
186
+ this.tickUpper = 0;
187
+ proto3.util.initPartial(data, this);
188
+ }
189
+ static fromBinary(bytes, options) {
190
+ return new V4Position().fromBinary(bytes, options);
191
+ }
192
+ static fromJson(jsonValue, options) {
193
+ return new V4Position().fromJson(jsonValue, options);
194
+ }
195
+ static fromJsonString(jsonString, options) {
196
+ return new V4Position().fromJsonString(jsonString, options);
197
+ }
198
+ static equals(a, b) {
199
+ return proto3.util.equals(V4Position, a, b);
200
+ }
201
+ }
202
+ V4Position.runtime = proto3;
203
+ V4Position.typeName = "uniswap.liquidity.v1.V4Position";
204
+ V4Position.fields = proto3.util.newFieldList(() => [
205
+ { no: 1, name: "pool", kind: "message", T: V4Pool },
206
+ { no: 2, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
207
+ { no: 3, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
208
+ ]);
209
+ /**
210
+ * @generated from message uniswap.liquidity.v1.V3Position
211
+ */
212
+ export class V3Position extends Message {
213
+ constructor(data) {
214
+ super();
215
+ /**
216
+ * @generated from field: sint32 tick_lower = 2;
217
+ */
218
+ this.tickLower = 0;
219
+ /**
220
+ * @generated from field: sint32 tick_upper = 3;
221
+ */
222
+ this.tickUpper = 0;
223
+ proto3.util.initPartial(data, this);
224
+ }
225
+ static fromBinary(bytes, options) {
226
+ return new V3Position().fromBinary(bytes, options);
227
+ }
228
+ static fromJson(jsonValue, options) {
229
+ return new V3Position().fromJson(jsonValue, options);
230
+ }
231
+ static fromJsonString(jsonString, options) {
232
+ return new V3Position().fromJsonString(jsonString, options);
233
+ }
234
+ static equals(a, b) {
235
+ return proto3.util.equals(V3Position, a, b);
236
+ }
237
+ }
238
+ V3Position.runtime = proto3;
239
+ V3Position.typeName = "uniswap.liquidity.v1.V3Position";
240
+ V3Position.fields = proto3.util.newFieldList(() => [
241
+ { no: 1, name: "pool", kind: "message", T: V3Pool },
242
+ { no: 2, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
243
+ { no: 3, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
244
+ ]);
245
+ /**
246
+ * @generated from message uniswap.liquidity.v1.V2Position
247
+ */
248
+ export class V2Position extends Message {
249
+ constructor(data) {
250
+ super();
251
+ proto3.util.initPartial(data, this);
252
+ }
253
+ static fromBinary(bytes, options) {
254
+ return new V2Position().fromBinary(bytes, options);
255
+ }
256
+ static fromJson(jsonValue, options) {
257
+ return new V2Position().fromJson(jsonValue, options);
258
+ }
259
+ static fromJsonString(jsonString, options) {
260
+ return new V2Position().fromJsonString(jsonString, options);
261
+ }
262
+ static equals(a, b) {
263
+ return proto3.util.equals(V2Position, a, b);
264
+ }
265
+ }
266
+ V2Position.runtime = proto3;
267
+ V2Position.typeName = "uniswap.liquidity.v1.V2Position";
268
+ V2Position.fields = proto3.util.newFieldList(() => [
269
+ { no: 1, name: "pool", kind: "message", T: V2Pool },
270
+ ]);
271
+ /**
272
+ * @generated from message uniswap.liquidity.v1.V2Pool
273
+ */
274
+ export class V2Pool extends Message {
275
+ constructor(data) {
276
+ super();
277
+ /**
278
+ * @generated from field: string token0 = 1;
279
+ */
280
+ this.token0 = "";
281
+ /**
282
+ * @generated from field: string token1 = 2;
283
+ */
284
+ this.token1 = "";
285
+ proto3.util.initPartial(data, this);
286
+ }
287
+ static fromBinary(bytes, options) {
288
+ return new V2Pool().fromBinary(bytes, options);
289
+ }
290
+ static fromJson(jsonValue, options) {
291
+ return new V2Pool().fromJson(jsonValue, options);
292
+ }
293
+ static fromJsonString(jsonString, options) {
294
+ return new V2Pool().fromJsonString(jsonString, options);
295
+ }
296
+ static equals(a, b) {
297
+ return proto3.util.equals(V2Pool, a, b);
298
+ }
299
+ }
300
+ V2Pool.runtime = proto3;
301
+ V2Pool.typeName = "uniswap.liquidity.v1.V2Pool";
302
+ V2Pool.fields = proto3.util.newFieldList(() => [
303
+ { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
304
+ { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
305
+ ]);
306
+ /**
307
+ * @generated from message uniswap.liquidity.v1.V3Pool
308
+ */
309
+ export class V3Pool extends Message {
310
+ constructor(data) {
311
+ super();
312
+ /**
313
+ * @generated from field: string token0 = 1;
314
+ */
315
+ this.token0 = "";
316
+ /**
317
+ * @generated from field: string token1 = 2;
318
+ */
319
+ this.token1 = "";
320
+ /**
321
+ * @generated from field: int32 fee = 3;
322
+ */
323
+ this.fee = 0;
324
+ /**
325
+ * @generated from field: int32 tick_spacing = 4;
326
+ */
327
+ this.tickSpacing = 0;
328
+ proto3.util.initPartial(data, this);
329
+ }
330
+ static fromBinary(bytes, options) {
331
+ return new V3Pool().fromBinary(bytes, options);
332
+ }
333
+ static fromJson(jsonValue, options) {
334
+ return new V3Pool().fromJson(jsonValue, options);
335
+ }
336
+ static fromJsonString(jsonString, options) {
337
+ return new V3Pool().fromJsonString(jsonString, options);
338
+ }
339
+ static equals(a, b) {
340
+ return proto3.util.equals(V3Pool, a, b);
341
+ }
342
+ }
343
+ V3Pool.runtime = proto3;
344
+ V3Pool.typeName = "uniswap.liquidity.v1.V3Pool";
345
+ V3Pool.fields = proto3.util.newFieldList(() => [
346
+ { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
347
+ { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
348
+ { no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
349
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
350
+ ]);
351
+ /**
352
+ * @generated from message uniswap.liquidity.v1.V4Pool
353
+ */
354
+ export class V4Pool extends Message {
355
+ constructor(data) {
356
+ super();
357
+ /**
358
+ * @generated from field: string token0 = 1;
359
+ */
360
+ this.token0 = "";
361
+ /**
362
+ * @generated from field: string token1 = 2;
363
+ */
364
+ this.token1 = "";
365
+ /**
366
+ * @generated from field: int32 fee = 3;
367
+ */
368
+ this.fee = 0;
369
+ /**
370
+ * @generated from field: int32 tick_spacing = 4;
371
+ */
372
+ this.tickSpacing = 0;
373
+ proto3.util.initPartial(data, this);
374
+ }
375
+ static fromBinary(bytes, options) {
376
+ return new V4Pool().fromBinary(bytes, options);
377
+ }
378
+ static fromJson(jsonValue, options) {
379
+ return new V4Pool().fromJson(jsonValue, options);
380
+ }
381
+ static fromJsonString(jsonString, options) {
382
+ return new V4Pool().fromJsonString(jsonString, options);
383
+ }
384
+ static equals(a, b) {
385
+ return proto3.util.equals(V4Pool, a, b);
386
+ }
387
+ }
388
+ V4Pool.runtime = proto3;
389
+ V4Pool.typeName = "uniswap.liquidity.v1.V4Pool";
390
+ V4Pool.fields = proto3.util.newFieldList(() => [
391
+ { no: 1, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
392
+ { no: 2, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
393
+ { no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
394
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
395
+ { no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
396
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },