@uniswap/client-liquidity 0.0.6 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file uniswap/liquidity/v1/types.proto (package uniswap.liquidity.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1123,3 +1123,534 @@ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
1123
1123
  { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1124
1124
  { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1125
1125
  ]);
1126
+ /**
1127
+ * @generated from message uniswap.liquidity.v1.PoolInformation
1128
+ */
1129
+ export class PoolInformation extends Message {
1130
+ constructor(data) {
1131
+ super();
1132
+ /**
1133
+ * @generated from field: string pool_reference_identifier = 1;
1134
+ */
1135
+ this.poolReferenceIdentifier = "";
1136
+ /**
1137
+ * @generated from field: uniswap.liquidity.v1.Protocols pool_protocol = 2;
1138
+ */
1139
+ this.poolProtocol = Protocols.V2;
1140
+ /**
1141
+ * @generated from field: string token_address_A = 3;
1142
+ */
1143
+ this.tokenAddressA = "";
1144
+ /**
1145
+ * @generated from field: string token_address_B = 4;
1146
+ */
1147
+ this.tokenAddressB = "";
1148
+ /**
1149
+ * @generated from field: int32 chain_id = 8;
1150
+ */
1151
+ this.chainId = 0;
1152
+ /**
1153
+ * @generated from field: string token_decimals_A = 11;
1154
+ */
1155
+ this.tokenDecimalsA = "";
1156
+ /**
1157
+ * @generated from field: string token_decimals_B = 12;
1158
+ */
1159
+ this.tokenDecimalsB = "";
1160
+ proto3.util.initPartial(data, this);
1161
+ }
1162
+ static fromBinary(bytes, options) {
1163
+ return new PoolInformation().fromBinary(bytes, options);
1164
+ }
1165
+ static fromJson(jsonValue, options) {
1166
+ return new PoolInformation().fromJson(jsonValue, options);
1167
+ }
1168
+ static fromJsonString(jsonString, options) {
1169
+ return new PoolInformation().fromJsonString(jsonString, options);
1170
+ }
1171
+ static equals(a, b) {
1172
+ return proto3.util.equals(PoolInformation, a, b);
1173
+ }
1174
+ }
1175
+ PoolInformation.runtime = proto3;
1176
+ PoolInformation.typeName = "uniswap.liquidity.v1.PoolInformation";
1177
+ PoolInformation.fields = proto3.util.newFieldList(() => [
1178
+ { no: 1, name: "pool_reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1179
+ { no: 2, name: "pool_protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1180
+ { no: 3, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1181
+ { no: 4, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1182
+ { no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1183
+ { no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1184
+ { no: 7, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1185
+ { no: 8, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1186
+ { no: 9, name: "token_amount_A", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1187
+ { no: 10, name: "token_amount_B", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1188
+ { no: 11, name: "token_decimals_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1189
+ { no: 12, name: "token_decimals_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1190
+ { no: 13, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1191
+ { no: 14, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1192
+ { no: 15, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1193
+ { no: 16, name: "token_0_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1194
+ { no: 17, name: "token_1_reserves", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1195
+ ]);
1196
+ /**
1197
+ * @generated from message uniswap.liquidity.v1.PoolReferenceByProtocol
1198
+ */
1199
+ export class PoolReferenceByProtocol extends Message {
1200
+ constructor(data) {
1201
+ super();
1202
+ /**
1203
+ * @generated from field: string reference_identifier = 1;
1204
+ */
1205
+ this.referenceIdentifier = "";
1206
+ /**
1207
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
1208
+ */
1209
+ this.protocol = Protocols.V2;
1210
+ /**
1211
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
1212
+ */
1213
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1214
+ proto3.util.initPartial(data, this);
1215
+ }
1216
+ static fromBinary(bytes, options) {
1217
+ return new PoolReferenceByProtocol().fromBinary(bytes, options);
1218
+ }
1219
+ static fromJson(jsonValue, options) {
1220
+ return new PoolReferenceByProtocol().fromJson(jsonValue, options);
1221
+ }
1222
+ static fromJsonString(jsonString, options) {
1223
+ return new PoolReferenceByProtocol().fromJsonString(jsonString, options);
1224
+ }
1225
+ static equals(a, b) {
1226
+ return proto3.util.equals(PoolReferenceByProtocol, a, b);
1227
+ }
1228
+ }
1229
+ PoolReferenceByProtocol.runtime = proto3;
1230
+ PoolReferenceByProtocol.typeName = "uniswap.liquidity.v1.PoolReferenceByProtocol";
1231
+ PoolReferenceByProtocol.fields = proto3.util.newFieldList(() => [
1232
+ { no: 1, name: "reference_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1233
+ { no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1234
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1235
+ ]);
1236
+ /**
1237
+ * @generated from message uniswap.liquidity.v1.PoolParameters
1238
+ */
1239
+ export class PoolParameters extends Message {
1240
+ constructor(data) {
1241
+ super();
1242
+ /**
1243
+ * @generated from field: string token_address_A = 2;
1244
+ */
1245
+ this.tokenAddressA = "";
1246
+ /**
1247
+ * @generated from field: string token_address_B = 3;
1248
+ */
1249
+ this.tokenAddressB = "";
1250
+ proto3.util.initPartial(data, this);
1251
+ }
1252
+ static fromBinary(bytes, options) {
1253
+ return new PoolParameters().fromBinary(bytes, options);
1254
+ }
1255
+ static fromJson(jsonValue, options) {
1256
+ return new PoolParameters().fromJson(jsonValue, options);
1257
+ }
1258
+ static fromJsonString(jsonString, options) {
1259
+ return new PoolParameters().fromJsonString(jsonString, options);
1260
+ }
1261
+ static equals(a, b) {
1262
+ return proto3.util.equals(PoolParameters, a, b);
1263
+ }
1264
+ }
1265
+ PoolParameters.runtime = proto3;
1266
+ PoolParameters.typeName = "uniswap.liquidity.v1.PoolParameters";
1267
+ PoolParameters.fields = proto3.util.newFieldList(() => [
1268
+ { no: 2, name: "token_address_A", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1269
+ { no: 3, name: "token_address_B", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1270
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1271
+ { no: 5, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1272
+ { no: 6, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1273
+ ]);
1274
+ /**
1275
+ * @generated from message uniswap.liquidity.v1.V2IncreaseLPPosition
1276
+ */
1277
+ export class V2IncreaseLPPosition extends Message {
1278
+ constructor(data) {
1279
+ super();
1280
+ /**
1281
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1282
+ */
1283
+ this.protocols = Protocols.V2;
1284
+ /**
1285
+ * @generated from field: string wallet_address = 3;
1286
+ */
1287
+ this.walletAddress = "";
1288
+ /**
1289
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1290
+ */
1291
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1292
+ /**
1293
+ * @generated from field: bool simulate_transaction = 12;
1294
+ */
1295
+ this.simulateTransaction = false;
1296
+ proto3.util.initPartial(data, this);
1297
+ }
1298
+ static fromBinary(bytes, options) {
1299
+ return new V2IncreaseLPPosition().fromBinary(bytes, options);
1300
+ }
1301
+ static fromJson(jsonValue, options) {
1302
+ return new V2IncreaseLPPosition().fromJson(jsonValue, options);
1303
+ }
1304
+ static fromJsonString(jsonString, options) {
1305
+ return new V2IncreaseLPPosition().fromJsonString(jsonString, options);
1306
+ }
1307
+ static equals(a, b) {
1308
+ return proto3.util.equals(V2IncreaseLPPosition, a, b);
1309
+ }
1310
+ }
1311
+ V2IncreaseLPPosition.runtime = proto3;
1312
+ V2IncreaseLPPosition.typeName = "uniswap.liquidity.v1.V2IncreaseLPPosition";
1313
+ V2IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1314
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1315
+ { no: 2, name: "position", kind: "message", T: V2Position },
1316
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1317
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1318
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1319
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1320
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1321
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1322
+ { no: 9, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1323
+ { no: 10, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1324
+ { no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1325
+ { no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1326
+ ]);
1327
+ /**
1328
+ * @generated from message uniswap.liquidity.v1.V3IncreaseLPPosition
1329
+ */
1330
+ export class V3IncreaseLPPosition extends Message {
1331
+ constructor(data) {
1332
+ super();
1333
+ /**
1334
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1335
+ */
1336
+ this.protocols = Protocols.V2;
1337
+ /**
1338
+ * @generated from field: int32 tokenId = 2;
1339
+ */
1340
+ this.tokenId = 0;
1341
+ /**
1342
+ * @generated from field: string wallet_address = 4;
1343
+ */
1344
+ this.walletAddress = "";
1345
+ /**
1346
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1347
+ */
1348
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1349
+ /**
1350
+ * @generated from field: bool simulate_transaction = 16;
1351
+ */
1352
+ this.simulateTransaction = false;
1353
+ proto3.util.initPartial(data, this);
1354
+ }
1355
+ static fromBinary(bytes, options) {
1356
+ return new V3IncreaseLPPosition().fromBinary(bytes, options);
1357
+ }
1358
+ static fromJson(jsonValue, options) {
1359
+ return new V3IncreaseLPPosition().fromJson(jsonValue, options);
1360
+ }
1361
+ static fromJsonString(jsonString, options) {
1362
+ return new V3IncreaseLPPosition().fromJsonString(jsonString, options);
1363
+ }
1364
+ static equals(a, b) {
1365
+ return proto3.util.equals(V3IncreaseLPPosition, a, b);
1366
+ }
1367
+ }
1368
+ V3IncreaseLPPosition.runtime = proto3;
1369
+ V3IncreaseLPPosition.typeName = "uniswap.liquidity.v1.V3IncreaseLPPosition";
1370
+ V3IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1371
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1372
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1373
+ { no: 3, name: "position", kind: "message", T: V3Position },
1374
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1375
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1376
+ { no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1377
+ { no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1378
+ { no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1379
+ { no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1380
+ { no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1381
+ { no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1382
+ { no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1383
+ { no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1384
+ { no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1385
+ { no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1386
+ ]);
1387
+ /**
1388
+ * @generated from message uniswap.liquidity.v1.V4IncreaseLPPosition
1389
+ */
1390
+ export class V4IncreaseLPPosition extends Message {
1391
+ constructor(data) {
1392
+ super();
1393
+ /**
1394
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1395
+ */
1396
+ this.protocols = Protocols.V2;
1397
+ /**
1398
+ * @generated from field: int32 tokenId = 2;
1399
+ */
1400
+ this.tokenId = 0;
1401
+ /**
1402
+ * @generated from field: string wallet_address = 4;
1403
+ */
1404
+ this.walletAddress = "";
1405
+ /**
1406
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1407
+ */
1408
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1409
+ /**
1410
+ * @generated from field: bool simulate_transaction = 16;
1411
+ */
1412
+ this.simulateTransaction = false;
1413
+ proto3.util.initPartial(data, this);
1414
+ }
1415
+ static fromBinary(bytes, options) {
1416
+ return new V4IncreaseLPPosition().fromBinary(bytes, options);
1417
+ }
1418
+ static fromJson(jsonValue, options) {
1419
+ return new V4IncreaseLPPosition().fromJson(jsonValue, options);
1420
+ }
1421
+ static fromJsonString(jsonString, options) {
1422
+ return new V4IncreaseLPPosition().fromJsonString(jsonString, options);
1423
+ }
1424
+ static equals(a, b) {
1425
+ return proto3.util.equals(V4IncreaseLPPosition, a, b);
1426
+ }
1427
+ }
1428
+ V4IncreaseLPPosition.runtime = proto3;
1429
+ V4IncreaseLPPosition.typeName = "uniswap.liquidity.v1.V4IncreaseLPPosition";
1430
+ V4IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1431
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1432
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1433
+ { no: 3, name: "position", kind: "message", T: V4Position },
1434
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1435
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1436
+ { no: 6, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1437
+ { no: 7, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1438
+ { no: 8, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1439
+ { no: 9, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1440
+ { no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1441
+ { no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1442
+ { no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1443
+ { no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1444
+ { no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1445
+ { no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1446
+ { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1447
+ { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1448
+ ]);
1449
+ /**
1450
+ * @generated from message uniswap.liquidity.v1.V2DecreaseLPPosition
1451
+ */
1452
+ export class V2DecreaseLPPosition extends Message {
1453
+ constructor(data) {
1454
+ super();
1455
+ /**
1456
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1457
+ */
1458
+ this.protocol = Protocols.V2;
1459
+ /**
1460
+ * @generated from field: string wallet_address = 3;
1461
+ */
1462
+ this.walletAddress = "";
1463
+ /**
1464
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1465
+ */
1466
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1467
+ /**
1468
+ * @generated from field: string positionLiquidity = 5;
1469
+ */
1470
+ this.positionLiquidity = "";
1471
+ /**
1472
+ * @generated from field: int32 liquidityPercentageToDecrease = 6;
1473
+ */
1474
+ this.liquidityPercentageToDecrease = 0;
1475
+ /**
1476
+ * @generated from field: string liquidity0 = 7;
1477
+ */
1478
+ this.liquidity0 = "";
1479
+ /**
1480
+ * @generated from field: string liquidity1 = 8;
1481
+ */
1482
+ this.liquidity1 = "";
1483
+ /**
1484
+ * @generated from field: bool collectAsWETH = 10;
1485
+ */
1486
+ this.collectAsWETH = false;
1487
+ proto3.util.initPartial(data, this);
1488
+ }
1489
+ static fromBinary(bytes, options) {
1490
+ return new V2DecreaseLPPosition().fromBinary(bytes, options);
1491
+ }
1492
+ static fromJson(jsonValue, options) {
1493
+ return new V2DecreaseLPPosition().fromJson(jsonValue, options);
1494
+ }
1495
+ static fromJsonString(jsonString, options) {
1496
+ return new V2DecreaseLPPosition().fromJsonString(jsonString, options);
1497
+ }
1498
+ static equals(a, b) {
1499
+ return proto3.util.equals(V2DecreaseLPPosition, a, b);
1500
+ }
1501
+ }
1502
+ V2DecreaseLPPosition.runtime = proto3;
1503
+ V2DecreaseLPPosition.typeName = "uniswap.liquidity.v1.V2DecreaseLPPosition";
1504
+ V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1505
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1506
+ { no: 2, name: "position", kind: "message", T: V2Position },
1507
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1508
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1509
+ { no: 5, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1510
+ { no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1511
+ { no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1512
+ { no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1513
+ { no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1514
+ { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1515
+ { no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1516
+ { no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1517
+ ]);
1518
+ /**
1519
+ * @generated from message uniswap.liquidity.v1.V3DecreaseLPPosition
1520
+ */
1521
+ export class V3DecreaseLPPosition extends Message {
1522
+ constructor(data) {
1523
+ super();
1524
+ /**
1525
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1526
+ */
1527
+ this.protocol = Protocols.V2;
1528
+ /**
1529
+ * @generated from field: int32 tokenId = 2;
1530
+ */
1531
+ this.tokenId = 0;
1532
+ /**
1533
+ * @generated from field: string wallet_address = 4;
1534
+ */
1535
+ this.walletAddress = "";
1536
+ /**
1537
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1538
+ */
1539
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1540
+ /**
1541
+ * @generated from field: string liquidityPercentageToDecrease = 7;
1542
+ */
1543
+ this.liquidityPercentageToDecrease = "";
1544
+ /**
1545
+ * @generated from field: string positionLiquidity = 11;
1546
+ */
1547
+ this.positionLiquidity = "";
1548
+ /**
1549
+ * @generated from field: string expectedTokenOwed0RawAmount = 12;
1550
+ */
1551
+ this.expectedTokenOwed0RawAmount = "";
1552
+ /**
1553
+ * @generated from field: string expectedTokenOwed1RawAmount = 13;
1554
+ */
1555
+ this.expectedTokenOwed1RawAmount = "";
1556
+ /**
1557
+ * @generated from field: bool collectAsWETH = 14;
1558
+ */
1559
+ this.collectAsWETH = false;
1560
+ proto3.util.initPartial(data, this);
1561
+ }
1562
+ static fromBinary(bytes, options) {
1563
+ return new V3DecreaseLPPosition().fromBinary(bytes, options);
1564
+ }
1565
+ static fromJson(jsonValue, options) {
1566
+ return new V3DecreaseLPPosition().fromJson(jsonValue, options);
1567
+ }
1568
+ static fromJsonString(jsonString, options) {
1569
+ return new V3DecreaseLPPosition().fromJsonString(jsonString, options);
1570
+ }
1571
+ static equals(a, b) {
1572
+ return proto3.util.equals(V3DecreaseLPPosition, a, b);
1573
+ }
1574
+ }
1575
+ V3DecreaseLPPosition.runtime = proto3;
1576
+ V3DecreaseLPPosition.typeName = "uniswap.liquidity.v1.V3DecreaseLPPosition";
1577
+ V3DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1578
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1579
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1580
+ { no: 3, name: "position", kind: "message", T: V3Position },
1581
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1582
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1583
+ { no: 7, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1584
+ { no: 8, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1585
+ { no: 9, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1586
+ { no: 10, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1587
+ { no: 11, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1588
+ { no: 12, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1589
+ { no: 13, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1590
+ { no: 14, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1591
+ { no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1592
+ { no: 16, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1593
+ { no: 17, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1594
+ ]);
1595
+ /**
1596
+ * @generated from message uniswap.liquidity.v1.V4DecreaseLPPosition
1597
+ */
1598
+ export class V4DecreaseLPPosition extends Message {
1599
+ constructor(data) {
1600
+ super();
1601
+ /**
1602
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1603
+ */
1604
+ this.protocol = Protocols.V2;
1605
+ /**
1606
+ * @generated from field: int32 tokenId = 2;
1607
+ */
1608
+ this.tokenId = 0;
1609
+ /**
1610
+ * @generated from field: string wallet_address = 4;
1611
+ */
1612
+ this.walletAddress = "";
1613
+ /**
1614
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 5;
1615
+ */
1616
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1617
+ /**
1618
+ * @generated from field: int32 liquidityPercentageToDecrease = 6;
1619
+ */
1620
+ this.liquidityPercentageToDecrease = 0;
1621
+ /**
1622
+ * @generated from field: string positionLiquidity = 10;
1623
+ */
1624
+ this.positionLiquidity = "";
1625
+ proto3.util.initPartial(data, this);
1626
+ }
1627
+ static fromBinary(bytes, options) {
1628
+ return new V4DecreaseLPPosition().fromBinary(bytes, options);
1629
+ }
1630
+ static fromJson(jsonValue, options) {
1631
+ return new V4DecreaseLPPosition().fromJson(jsonValue, options);
1632
+ }
1633
+ static fromJsonString(jsonString, options) {
1634
+ return new V4DecreaseLPPosition().fromJsonString(jsonString, options);
1635
+ }
1636
+ static equals(a, b) {
1637
+ return proto3.util.equals(V4DecreaseLPPosition, a, b);
1638
+ }
1639
+ }
1640
+ V4DecreaseLPPosition.runtime = proto3;
1641
+ V4DecreaseLPPosition.typeName = "uniswap.liquidity.v1.V4DecreaseLPPosition";
1642
+ V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1643
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1644
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1645
+ { no: 3, name: "position", kind: "message", T: V4Position },
1646
+ { no: 4, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1647
+ { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1648
+ { no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1649
+ { no: 7, name: "poolLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1650
+ { no: 8, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1651
+ { no: 9, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1652
+ { no: 10, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1653
+ { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1654
+ { no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1655
+ { no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1656
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },