timelock-sdk 0.0.161 → 0.0.163

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.
Files changed (42) hide show
  1. package/dist/abis.cjs +1059 -308
  2. package/dist/abis.cjs.map +1 -1
  3. package/dist/abis.d.cts +2967 -766
  4. package/dist/abis.d.ts +2967 -766
  5. package/dist/abis.js +1051 -303
  6. package/dist/abis.js.map +1 -1
  7. package/dist/{client-BKIKRCjR.d.ts → client-CoeY1yLm.d.cts} +4846 -1212
  8. package/dist/{client-CZoaAxx7.d.cts → client-DqVrd4kQ.d.ts} +4504 -870
  9. package/dist/client.cjs +54 -926
  10. package/dist/client.cjs.map +1 -1
  11. package/dist/client.d.cts +2 -2
  12. package/dist/client.d.ts +2 -2
  13. package/dist/client.js +20 -892
  14. package/dist/client.js.map +1 -1
  15. package/dist/factory-DitVXzjQ.cjs +1715 -0
  16. package/dist/factory-DitVXzjQ.cjs.map +1 -0
  17. package/dist/factory-y-iVl_er.js +1697 -0
  18. package/dist/factory-y-iVl_er.js.map +1 -0
  19. package/dist/{optionUtils-CaKlLWf2.cjs → optionUtils-Cuuw6jXD.cjs} +7 -1049
  20. package/dist/optionUtils-Cuuw6jXD.cjs.map +1 -0
  21. package/dist/optionUtils-OyY8qOu0.js +381 -0
  22. package/dist/optionUtils-OyY8qOu0.js.map +1 -0
  23. package/dist/{uniswapMathLens-Ds8UmCMU.d.ts → optionsMarket-2HZ-p_dl.d.ts} +20 -625
  24. package/dist/{uniswapMathLens-BoQxBJoY.d.cts → optionsMarket-c4hgszY_.d.cts} +20 -625
  25. package/dist/package.cjs +2 -2
  26. package/dist/package.d.cts +3 -3
  27. package/dist/package.d.ts +3 -3
  28. package/dist/package.js +2 -2
  29. package/dist/{optionsMarket-BbXpQnpV.js → statelessStateView-CBkcP7CK.js} +1612 -1316
  30. package/dist/statelessStateView-CBkcP7CK.js.map +1 -0
  31. package/dist/{optionsMarket-DtjLm46g.cjs → statelessStateView-XdTJQxsY.cjs} +1613 -1317
  32. package/dist/statelessStateView-XdTJQxsY.cjs.map +1 -0
  33. package/package.json +1 -1
  34. package/dist/optionUtils-CaKlLWf2.cjs.map +0 -1
  35. package/dist/optionUtils-Ci6C7FPN.js +0 -1417
  36. package/dist/optionUtils-Ci6C7FPN.js.map +0 -1
  37. package/dist/optionsMarket-BbXpQnpV.js.map +0 -1
  38. package/dist/optionsMarket-DtjLm46g.cjs.map +0 -1
  39. package/dist/singleOwnerVault-BJyEs_D_.js +0 -847
  40. package/dist/singleOwnerVault-BJyEs_D_.js.map +0 -1
  41. package/dist/singleOwnerVault-GCpQV7pN.cjs +0 -853
  42. package/dist/singleOwnerVault-GCpQV7pN.cjs.map +0 -1
@@ -1029,6 +1029,25 @@ const lensAbi = [
1029
1029
  }],
1030
1030
  stateMutability: "view"
1031
1031
  },
1032
+ {
1033
+ type: "function",
1034
+ name: "getPricingParams",
1035
+ inputs: [{
1036
+ name: "pricing",
1037
+ type: "address",
1038
+ internalType: "address"
1039
+ }],
1040
+ outputs: [{
1041
+ name: "pricingModel",
1042
+ type: "uint8",
1043
+ internalType: "uint8"
1044
+ }, {
1045
+ name: "data",
1046
+ type: "bytes",
1047
+ internalType: "bytes"
1048
+ }],
1049
+ stateMutability: "view"
1050
+ },
1032
1051
  {
1033
1052
  type: "function",
1034
1053
  name: "getRefTick",
@@ -1304,1234 +1323,1111 @@ const lensAbi = [
1304
1323
  ];
1305
1324
 
1306
1325
  //#endregion
1307
- //#region src/abis/uniswapMathLens.ts
1308
- const uniswapMathLensAbi = [
1326
+ //#region src/abis/optionsMarket.ts
1327
+ const optionsMarketAbi = [
1309
1328
  {
1310
- type: "function",
1311
- name: "batchGetAmount0ForLiquidity",
1329
+ type: "constructor",
1312
1330
  inputs: [
1313
1331
  {
1314
- name: "sqrtRatioAX96",
1315
- type: "uint160[]",
1316
- internalType: "uint160[]"
1332
+ name: "_vault",
1333
+ type: "address",
1334
+ internalType: "contract ITimelockVault"
1317
1335
  },
1318
1336
  {
1319
- name: "sqrtRatioBX96",
1320
- type: "uint160[]",
1321
- internalType: "uint160[]"
1337
+ name: "_optionPricing",
1338
+ type: "address",
1339
+ internalType: "contract IOptionPricing"
1322
1340
  },
1323
1341
  {
1324
- name: "liquidity",
1325
- type: "uint128[]",
1326
- internalType: "uint128[]"
1327
- }
1328
- ],
1329
- outputs: [{
1330
- name: "amounts0",
1331
- type: "uint256[]",
1332
- internalType: "uint256[]"
1333
- }],
1334
- stateMutability: "pure"
1335
- },
1336
- {
1337
- type: "function",
1338
- name: "batchGetAmount0ForLiquidityTicks",
1339
- inputs: [
1342
+ name: "_feeStrategy",
1343
+ type: "address",
1344
+ internalType: "contract IFeeStrategy"
1345
+ },
1340
1346
  {
1341
- name: "tickA",
1342
- type: "int24[]",
1343
- internalType: "int24[]"
1347
+ name: "_guardian",
1348
+ type: "address",
1349
+ internalType: "contract TimelockGuardian"
1344
1350
  },
1345
1351
  {
1346
- name: "tickB",
1347
- type: "int24[]",
1348
- internalType: "int24[]"
1352
+ name: "_optionAssetIsToken0",
1353
+ type: "bool",
1354
+ internalType: "bool"
1349
1355
  },
1350
1356
  {
1351
- name: "liquidity",
1352
- type: "uint128[]",
1353
- internalType: "uint128[]"
1357
+ name: "_owner",
1358
+ type: "address",
1359
+ internalType: "address"
1354
1360
  }
1355
1361
  ],
1356
- outputs: [{
1357
- name: "amounts0",
1358
- type: "uint256[]",
1359
- internalType: "uint256[]"
1360
- }],
1361
- stateMutability: "pure"
1362
+ stateMutability: "nonpayable"
1362
1363
  },
1363
1364
  {
1364
1365
  type: "function",
1365
- name: "batchGetAmount1ForLiquidity",
1366
+ name: "calculatePremium",
1366
1367
  inputs: [
1367
1368
  {
1368
- name: "sqrtRatioAX96",
1369
- type: "uint160[]",
1370
- internalType: "uint160[]"
1369
+ name: "optionType",
1370
+ type: "uint8",
1371
+ internalType: "uint8"
1372
+ },
1373
+ {
1374
+ name: "optionAmount",
1375
+ type: "uint256",
1376
+ internalType: "uint256"
1371
1377
  },
1372
1378
  {
1373
- name: "sqrtRatioBX96",
1374
- type: "uint160[]",
1375
- internalType: "uint160[]"
1379
+ name: "strikeTick",
1380
+ type: "int24",
1381
+ internalType: "int24"
1376
1382
  },
1377
1383
  {
1378
- name: "liquidity",
1379
- type: "uint128[]",
1380
- internalType: "uint128[]"
1384
+ name: "addedDuration",
1385
+ type: "uint32",
1386
+ internalType: "uint32"
1387
+ },
1388
+ {
1389
+ name: "remainingDuration",
1390
+ type: "uint32",
1391
+ internalType: "uint32"
1381
1392
  }
1382
1393
  ],
1383
- outputs: [{
1384
- name: "amounts1",
1385
- type: "uint256[]",
1386
- internalType: "uint256[]"
1387
- }],
1388
- stateMutability: "pure"
1389
- },
1390
- {
1391
- type: "function",
1392
- name: "batchGetAmount1ForLiquidityTicks",
1393
- inputs: [
1394
+ outputs: [
1394
1395
  {
1395
- name: "tickA",
1396
- type: "int24[]",
1397
- internalType: "int24[]"
1396
+ name: "premium",
1397
+ type: "uint256",
1398
+ internalType: "uint256"
1398
1399
  },
1399
1400
  {
1400
- name: "tickB",
1401
- type: "int24[]",
1402
- internalType: "int24[]"
1401
+ name: "protocolFee",
1402
+ type: "uint256",
1403
+ internalType: "uint256"
1403
1404
  },
1404
1405
  {
1405
- name: "liquidity",
1406
- type: "uint128[]",
1407
- internalType: "uint128[]"
1406
+ name: "feeRecipient",
1407
+ type: "address",
1408
+ internalType: "address"
1408
1409
  }
1409
1410
  ],
1410
- outputs: [{
1411
- name: "amounts1",
1412
- type: "uint256[]",
1413
- internalType: "uint256[]"
1411
+ stateMutability: "view"
1412
+ },
1413
+ {
1414
+ type: "function",
1415
+ name: "emergencyWithdraw",
1416
+ inputs: [{
1417
+ name: "tokens",
1418
+ type: "address[]",
1419
+ internalType: "contract IERC20[]"
1414
1420
  }],
1415
- stateMutability: "pure"
1421
+ outputs: [],
1422
+ stateMutability: "nonpayable"
1416
1423
  },
1417
1424
  {
1418
1425
  type: "function",
1419
- name: "batchGetAmountsForLiquidity",
1426
+ name: "exerciseOption",
1420
1427
  inputs: [
1421
1428
  {
1422
- name: "sqrtRatioX96",
1423
- type: "uint160[]",
1424
- internalType: "uint160[]"
1425
- },
1426
- {
1427
- name: "sqrtRatioAX96",
1428
- type: "uint160[]",
1429
- internalType: "uint160[]"
1430
- },
1431
- {
1432
- name: "sqrtRatioBX96",
1433
- type: "uint160[]",
1434
- internalType: "uint160[]"
1429
+ name: "optionId",
1430
+ type: "uint256",
1431
+ internalType: "uint256"
1435
1432
  },
1436
1433
  {
1437
- name: "liquidity",
1434
+ name: "liquidities",
1438
1435
  type: "uint128[]",
1439
1436
  internalType: "uint128[]"
1440
- }
1441
- ],
1442
- outputs: [{
1443
- name: "amounts0",
1444
- type: "uint256[]",
1445
- internalType: "uint256[]"
1446
- }, {
1447
- name: "amounts1",
1448
- type: "uint256[]",
1449
- internalType: "uint256[]"
1450
- }],
1451
- stateMutability: "pure"
1452
- },
1453
- {
1454
- type: "function",
1455
- name: "batchGetAmountsForLiquidityTicks",
1456
- inputs: [
1437
+ },
1457
1438
  {
1458
- name: "tick",
1459
- type: "int24[]",
1460
- internalType: "int24[]"
1439
+ name: "minPayout",
1440
+ type: "uint256",
1441
+ internalType: "uint256"
1461
1442
  },
1462
1443
  {
1463
- name: "tickA",
1464
- type: "int24[]",
1465
- internalType: "int24[]"
1444
+ name: "swapper",
1445
+ type: "address",
1446
+ internalType: "contract ISwapper"
1466
1447
  },
1467
1448
  {
1468
- name: "tickB",
1469
- type: "int24[]",
1470
- internalType: "int24[]"
1449
+ name: "swapperData",
1450
+ type: "bytes",
1451
+ internalType: "bytes"
1471
1452
  },
1472
1453
  {
1473
- name: "liquidity",
1474
- type: "uint128[]",
1475
- internalType: "uint128[]"
1454
+ name: "refTick",
1455
+ type: "int24",
1456
+ internalType: "int24"
1476
1457
  }
1477
1458
  ],
1478
1459
  outputs: [{
1479
- name: "amounts0",
1480
- type: "uint256[]",
1481
- internalType: "uint256[]"
1482
- }, {
1483
- name: "amounts1",
1484
- type: "uint256[]",
1485
- internalType: "uint256[]"
1460
+ name: "payout",
1461
+ type: "uint256",
1462
+ internalType: "uint256"
1486
1463
  }],
1487
- stateMutability: "pure"
1464
+ stateMutability: "nonpayable"
1488
1465
  },
1489
1466
  {
1490
1467
  type: "function",
1491
- name: "batchGetLiquidityForAmount0",
1468
+ name: "extendOption",
1492
1469
  inputs: [
1493
1470
  {
1494
- name: "sqrtRatioAX96",
1495
- type: "uint160[]",
1496
- internalType: "uint160[]"
1471
+ name: "optionId",
1472
+ type: "uint256",
1473
+ internalType: "uint256"
1497
1474
  },
1498
1475
  {
1499
- name: "sqrtRatioBX96",
1500
- type: "uint160[]",
1501
- internalType: "uint160[]"
1476
+ name: "addedDuration",
1477
+ type: "uint32",
1478
+ internalType: "uint32"
1502
1479
  },
1503
1480
  {
1504
- name: "amount0",
1505
- type: "uint256[]",
1506
- internalType: "uint256[]"
1481
+ name: "maxPremium",
1482
+ type: "uint256",
1483
+ internalType: "uint256"
1507
1484
  }
1508
1485
  ],
1509
1486
  outputs: [{
1510
- name: "liquidities",
1511
- type: "uint128[]",
1512
- internalType: "uint128[]"
1487
+ name: "premium",
1488
+ type: "uint256",
1489
+ internalType: "uint256"
1490
+ }, {
1491
+ name: "protocolFee",
1492
+ type: "uint256",
1493
+ internalType: "uint256"
1513
1494
  }],
1514
- stateMutability: "pure"
1495
+ stateMutability: "nonpayable"
1515
1496
  },
1516
1497
  {
1517
1498
  type: "function",
1518
- name: "batchGetLiquidityForAmount0Ticks",
1519
- inputs: [
1520
- {
1521
- name: "tickA",
1522
- type: "int24[]",
1523
- internalType: "int24[]"
1524
- },
1525
- {
1526
- name: "tickB",
1527
- type: "int24[]",
1528
- internalType: "int24[]"
1529
- },
1530
- {
1531
- name: "amount0",
1532
- type: "uint256[]",
1533
- internalType: "uint256[]"
1534
- }
1535
- ],
1499
+ name: "feeStrategy",
1500
+ inputs: [],
1536
1501
  outputs: [{
1537
- name: "liquidities",
1538
- type: "uint128[]",
1539
- internalType: "uint128[]"
1502
+ name: "",
1503
+ type: "address",
1504
+ internalType: "contract IFeeStrategy"
1540
1505
  }],
1541
- stateMutability: "pure"
1506
+ stateMutability: "view"
1542
1507
  },
1543
1508
  {
1544
1509
  type: "function",
1545
- name: "batchGetLiquidityForAmount1",
1546
- inputs: [
1547
- {
1548
- name: "sqrtRatioAX96",
1549
- type: "uint160[]",
1550
- internalType: "uint160[]"
1551
- },
1552
- {
1553
- name: "sqrtRatioBX96",
1554
- type: "uint160[]",
1555
- internalType: "uint160[]"
1556
- },
1557
- {
1558
- name: "amount1",
1559
- type: "uint256[]",
1560
- internalType: "uint256[]"
1561
- }
1562
- ],
1510
+ name: "getOption",
1511
+ inputs: [{
1512
+ name: "optionId",
1513
+ type: "uint256",
1514
+ internalType: "uint256"
1515
+ }],
1563
1516
  outputs: [{
1564
- name: "liquidities",
1517
+ name: "",
1518
+ type: "tuple",
1519
+ internalType: "struct TimelockOptionsMarket.OptionData",
1520
+ components: [
1521
+ {
1522
+ name: "owner",
1523
+ type: "address",
1524
+ internalType: "address"
1525
+ },
1526
+ {
1527
+ name: "optionType",
1528
+ type: "uint8",
1529
+ internalType: "uint8"
1530
+ },
1531
+ {
1532
+ name: "strikeTick",
1533
+ type: "int24",
1534
+ internalType: "int24"
1535
+ },
1536
+ {
1537
+ name: "expiresAt",
1538
+ type: "uint32",
1539
+ internalType: "uint32"
1540
+ }
1541
+ ]
1542
+ }, {
1543
+ name: "",
1565
1544
  type: "uint128[]",
1566
1545
  internalType: "uint128[]"
1567
1546
  }],
1568
- stateMutability: "pure"
1547
+ stateMutability: "view"
1569
1548
  },
1570
1549
  {
1571
1550
  type: "function",
1572
- name: "batchGetLiquidityForAmount1Ticks",
1551
+ name: "getPositionSize",
1573
1552
  inputs: [
1574
1553
  {
1575
- name: "tickA",
1576
- type: "int24[]",
1577
- internalType: "int24[]"
1554
+ name: "optionType",
1555
+ type: "uint8",
1556
+ internalType: "uint8"
1578
1557
  },
1579
1558
  {
1580
- name: "tickB",
1581
- type: "int24[]",
1582
- internalType: "int24[]"
1559
+ name: "strikeTick",
1560
+ type: "int24",
1561
+ internalType: "int24"
1583
1562
  },
1584
1563
  {
1585
- name: "amount1",
1586
- type: "uint256[]",
1587
- internalType: "uint256[]"
1564
+ name: "liquidities",
1565
+ type: "uint128[]",
1566
+ internalType: "uint128[]"
1588
1567
  }
1589
1568
  ],
1590
1569
  outputs: [{
1591
- name: "liquidities",
1592
- type: "uint128[]",
1593
- internalType: "uint128[]"
1570
+ name: "",
1571
+ type: "uint256",
1572
+ internalType: "uint256"
1573
+ }],
1574
+ stateMutability: "view"
1575
+ },
1576
+ {
1577
+ type: "function",
1578
+ name: "guardian",
1579
+ inputs: [],
1580
+ outputs: [{
1581
+ name: "",
1582
+ type: "address",
1583
+ internalType: "contract TimelockGuardian"
1594
1584
  }],
1595
- stateMutability: "pure"
1585
+ stateMutability: "view"
1596
1586
  },
1597
1587
  {
1598
1588
  type: "function",
1599
- name: "batchGetLiquidityForAmounts",
1589
+ name: "mintOption",
1600
1590
  inputs: [
1601
1591
  {
1602
- name: "sqrtRatioX96",
1603
- type: "uint160[]",
1604
- internalType: "uint160[]"
1592
+ name: "owner",
1593
+ type: "address",
1594
+ internalType: "address"
1605
1595
  },
1606
1596
  {
1607
- name: "sqrtRatioAX96",
1608
- type: "uint160[]",
1609
- internalType: "uint160[]"
1597
+ name: "optionType",
1598
+ type: "uint8",
1599
+ internalType: "uint8"
1610
1600
  },
1611
1601
  {
1612
- name: "sqrtRatioBX96",
1613
- type: "uint160[]",
1614
- internalType: "uint160[]"
1602
+ name: "amount",
1603
+ type: "uint256",
1604
+ internalType: "uint256"
1615
1605
  },
1616
1606
  {
1617
- name: "amount0",
1618
- type: "uint256[]",
1619
- internalType: "uint256[]"
1607
+ name: "strikeTick",
1608
+ type: "int24",
1609
+ internalType: "int24"
1620
1610
  },
1621
1611
  {
1622
- name: "amount1",
1623
- type: "uint256[]",
1624
- internalType: "uint256[]"
1625
- }
1626
- ],
1627
- outputs: [{
1628
- name: "liquidities",
1629
- type: "uint128[]",
1630
- internalType: "uint128[]"
1631
- }],
1632
- stateMutability: "pure"
1633
- },
1634
- {
1635
- type: "function",
1636
- name: "batchGetLiquidityForAmountsTicks",
1637
- inputs: [
1612
+ name: "duration",
1613
+ type: "uint32",
1614
+ internalType: "uint32"
1615
+ },
1638
1616
  {
1639
- name: "tick",
1640
- type: "int24[]",
1641
- internalType: "int24[]"
1617
+ name: "maxPremium",
1618
+ type: "uint256",
1619
+ internalType: "uint256"
1642
1620
  },
1643
1621
  {
1644
- name: "tickA",
1645
- type: "int24[]",
1646
- internalType: "int24[]"
1622
+ name: "maxSteps",
1623
+ type: "uint24",
1624
+ internalType: "uint24"
1625
+ },
1626
+ {
1627
+ name: "refTick",
1628
+ type: "int24",
1629
+ internalType: "int24"
1630
+ }
1631
+ ],
1632
+ outputs: [
1633
+ {
1634
+ name: "optionId",
1635
+ type: "uint256",
1636
+ internalType: "uint256"
1647
1637
  },
1648
1638
  {
1649
- name: "tickB",
1650
- type: "int24[]",
1651
- internalType: "int24[]"
1639
+ name: "finalAmount",
1640
+ type: "uint256",
1641
+ internalType: "uint256"
1652
1642
  },
1653
1643
  {
1654
- name: "amount0",
1655
- type: "uint256[]",
1656
- internalType: "uint256[]"
1644
+ name: "premium",
1645
+ type: "uint256",
1646
+ internalType: "uint256"
1657
1647
  },
1658
1648
  {
1659
- name: "amount1",
1660
- type: "uint256[]",
1661
- internalType: "uint256[]"
1649
+ name: "protocolFee",
1650
+ type: "uint256",
1651
+ internalType: "uint256"
1662
1652
  }
1663
1653
  ],
1664
- outputs: [{
1665
- name: "liquidities",
1666
- type: "uint128[]",
1667
- internalType: "uint128[]"
1668
- }],
1669
- stateMutability: "pure"
1654
+ stateMutability: "nonpayable"
1670
1655
  },
1671
1656
  {
1672
1657
  type: "function",
1673
- name: "batchGetPriceAtTick",
1658
+ name: "multicall",
1674
1659
  inputs: [{
1675
- name: "ticks",
1676
- type: "int24[]",
1677
- internalType: "int24[]"
1660
+ name: "data",
1661
+ type: "bytes[]",
1662
+ internalType: "bytes[]"
1678
1663
  }],
1679
1664
  outputs: [{
1680
- name: "prices",
1681
- type: "uint256[]",
1682
- internalType: "uint256[]"
1665
+ name: "results",
1666
+ type: "bytes[]",
1667
+ internalType: "bytes[]"
1683
1668
  }],
1684
- stateMutability: "pure"
1669
+ stateMutability: "nonpayable"
1685
1670
  },
1686
1671
  {
1687
1672
  type: "function",
1688
- name: "getAmount0ForLiquidity",
1689
- inputs: [
1690
- {
1691
- name: "sqrtRatioAX96",
1692
- type: "uint160",
1693
- internalType: "uint160"
1694
- },
1695
- {
1696
- name: "sqrtRatioBX96",
1697
- type: "uint160",
1698
- internalType: "uint160"
1699
- },
1700
- {
1701
- name: "liquidity",
1702
- type: "uint128",
1703
- internalType: "uint128"
1704
- }
1705
- ],
1673
+ name: "nextOptionId",
1674
+ inputs: [],
1706
1675
  outputs: [{
1707
- name: "amount0",
1676
+ name: "",
1708
1677
  type: "uint256",
1709
1678
  internalType: "uint256"
1710
1679
  }],
1711
- stateMutability: "pure"
1680
+ stateMutability: "view"
1712
1681
  },
1713
1682
  {
1714
1683
  type: "function",
1715
- name: "getAmount0ForLiquidityTicks",
1716
- inputs: [
1684
+ name: "operatorPerms",
1685
+ inputs: [{
1686
+ name: "",
1687
+ type: "address",
1688
+ internalType: "address"
1689
+ }, {
1690
+ name: "",
1691
+ type: "address",
1692
+ internalType: "address"
1693
+ }],
1694
+ outputs: [
1717
1695
  {
1718
- name: "tickA",
1719
- type: "int24",
1720
- internalType: "int24"
1696
+ name: "canExtend",
1697
+ type: "bool",
1698
+ internalType: "bool"
1721
1699
  },
1722
1700
  {
1723
- name: "tickB",
1724
- type: "int24",
1725
- internalType: "int24"
1701
+ name: "canExercise",
1702
+ type: "bool",
1703
+ internalType: "bool"
1726
1704
  },
1727
1705
  {
1728
- name: "liquidity",
1729
- type: "uint128",
1730
- internalType: "uint128"
1731
- }
1732
- ],
1733
- outputs: [{
1734
- name: "amount0",
1735
- type: "uint256",
1736
- internalType: "uint256"
1737
- }],
1738
- stateMutability: "pure"
1739
- },
1740
- {
1741
- type: "function",
1742
- name: "getAmount1ForLiquidity",
1743
- inputs: [
1744
- {
1745
- name: "sqrtRatioAX96",
1746
- type: "uint160",
1747
- internalType: "uint160"
1706
+ name: "canTransfer",
1707
+ type: "bool",
1708
+ internalType: "bool"
1748
1709
  },
1749
1710
  {
1750
- name: "sqrtRatioBX96",
1751
- type: "uint160",
1752
- internalType: "uint160"
1711
+ name: "canMint",
1712
+ type: "bool",
1713
+ internalType: "bool"
1753
1714
  },
1754
1715
  {
1755
- name: "liquidity",
1756
- type: "uint128",
1757
- internalType: "uint128"
1716
+ name: "spendingApproval",
1717
+ type: "uint256",
1718
+ internalType: "uint256"
1758
1719
  }
1759
1720
  ],
1721
+ stateMutability: "view"
1722
+ },
1723
+ {
1724
+ type: "function",
1725
+ name: "optionAsset",
1726
+ inputs: [],
1760
1727
  outputs: [{
1761
- name: "amount1",
1762
- type: "uint256",
1763
- internalType: "uint256"
1728
+ name: "",
1729
+ type: "address",
1730
+ internalType: "contract IERC20"
1764
1731
  }],
1765
- stateMutability: "pure"
1732
+ stateMutability: "view"
1766
1733
  },
1767
1734
  {
1768
1735
  type: "function",
1769
- name: "getAmount1ForLiquidityTicks",
1770
- inputs: [
1771
- {
1772
- name: "tickA",
1773
- type: "int24",
1774
- internalType: "int24"
1775
- },
1776
- {
1777
- name: "tickB",
1778
- type: "int24",
1779
- internalType: "int24"
1780
- },
1781
- {
1782
- name: "liquidity",
1783
- type: "uint128",
1784
- internalType: "uint128"
1785
- }
1786
- ],
1736
+ name: "optionAssetIsToken0",
1737
+ inputs: [],
1787
1738
  outputs: [{
1788
- name: "amount1",
1789
- type: "uint256",
1790
- internalType: "uint256"
1739
+ name: "",
1740
+ type: "bool",
1741
+ internalType: "bool"
1791
1742
  }],
1792
- stateMutability: "pure"
1743
+ stateMutability: "view"
1793
1744
  },
1794
1745
  {
1795
1746
  type: "function",
1796
- name: "getAmountsForLiquidity",
1797
- inputs: [
1798
- {
1799
- name: "sqrtRatioX96",
1800
- type: "uint160",
1801
- internalType: "uint160"
1802
- },
1803
- {
1804
- name: "sqrtRatioAX96",
1805
- type: "uint160",
1806
- internalType: "uint160"
1807
- },
1808
- {
1809
- name: "sqrtRatioBX96",
1810
- type: "uint160",
1811
- internalType: "uint160"
1812
- },
1813
- {
1814
- name: "liquidity",
1815
- type: "uint128",
1816
- internalType: "uint128"
1817
- }
1818
- ],
1747
+ name: "optionPricing",
1748
+ inputs: [],
1819
1749
  outputs: [{
1820
- name: "amount0",
1821
- type: "uint256",
1822
- internalType: "uint256"
1823
- }, {
1824
- name: "amount1",
1825
- type: "uint256",
1826
- internalType: "uint256"
1750
+ name: "",
1751
+ type: "address",
1752
+ internalType: "contract IOptionPricing"
1827
1753
  }],
1828
- stateMutability: "pure"
1754
+ stateMutability: "view"
1829
1755
  },
1830
1756
  {
1831
1757
  type: "function",
1832
- name: "getAmountsForLiquidityTicks",
1833
- inputs: [
1834
- {
1835
- name: "tick",
1836
- type: "int24",
1837
- internalType: "int24"
1838
- },
1839
- {
1840
- name: "tickA",
1841
- type: "int24",
1842
- internalType: "int24"
1843
- },
1844
- {
1845
- name: "tickB",
1846
- type: "int24",
1847
- internalType: "int24"
1848
- },
1849
- {
1850
- name: "liquidity",
1851
- type: "uint128",
1852
- internalType: "uint128"
1853
- }
1854
- ],
1758
+ name: "owner",
1759
+ inputs: [],
1855
1760
  outputs: [{
1856
- name: "amount0",
1857
- type: "uint256",
1858
- internalType: "uint256"
1859
- }, {
1860
- name: "amount1",
1861
- type: "uint256",
1862
- internalType: "uint256"
1761
+ name: "",
1762
+ type: "address",
1763
+ internalType: "address"
1863
1764
  }],
1864
- stateMutability: "pure"
1765
+ stateMutability: "view"
1865
1766
  },
1866
1767
  {
1867
1768
  type: "function",
1868
- name: "getLiquidityForAmount0",
1869
- inputs: [
1870
- {
1871
- name: "sqrtRatioAX96",
1872
- type: "uint160",
1873
- internalType: "uint160"
1874
- },
1875
- {
1876
- name: "sqrtRatioBX96",
1877
- type: "uint160",
1878
- internalType: "uint160"
1879
- },
1880
- {
1881
- name: "amount0",
1882
- type: "uint256",
1883
- internalType: "uint256"
1884
- }
1885
- ],
1769
+ name: "payoutAsset",
1770
+ inputs: [],
1886
1771
  outputs: [{
1887
- name: "liquidity",
1888
- type: "uint128",
1889
- internalType: "uint128"
1772
+ name: "",
1773
+ type: "address",
1774
+ internalType: "contract IERC20"
1890
1775
  }],
1891
- stateMutability: "pure"
1776
+ stateMutability: "view"
1892
1777
  },
1893
1778
  {
1894
1779
  type: "function",
1895
- name: "getLiquidityForAmount0Ticks",
1896
- inputs: [
1897
- {
1898
- name: "tickA",
1899
- type: "int24",
1900
- internalType: "int24"
1901
- },
1902
- {
1903
- name: "tickB",
1904
- type: "int24",
1905
- internalType: "int24"
1906
- },
1907
- {
1908
- name: "amount0",
1909
- type: "uint256",
1910
- internalType: "uint256"
1911
- }
1912
- ],
1780
+ name: "poolId",
1781
+ inputs: [],
1913
1782
  outputs: [{
1914
- name: "liquidity",
1915
- type: "uint128",
1916
- internalType: "uint128"
1783
+ name: "",
1784
+ type: "bytes32",
1785
+ internalType: "PoolId"
1917
1786
  }],
1918
- stateMutability: "pure"
1787
+ stateMutability: "view"
1919
1788
  },
1920
1789
  {
1921
1790
  type: "function",
1922
- name: "getLiquidityForAmount1",
1923
- inputs: [
1924
- {
1925
- name: "sqrtRatioAX96",
1926
- type: "uint160",
1927
- internalType: "uint160"
1928
- },
1929
- {
1930
- name: "sqrtRatioBX96",
1931
- type: "uint160",
1932
- internalType: "uint160"
1933
- },
1934
- {
1935
- name: "amount1",
1936
- type: "uint256",
1937
- internalType: "uint256"
1938
- }
1939
- ],
1791
+ name: "poolKey",
1792
+ inputs: [],
1940
1793
  outputs: [{
1941
- name: "liquidity",
1942
- type: "uint128",
1943
- internalType: "uint128"
1794
+ name: "",
1795
+ type: "tuple",
1796
+ internalType: "struct PoolKey",
1797
+ components: [
1798
+ {
1799
+ name: "currency0",
1800
+ type: "address",
1801
+ internalType: "Currency"
1802
+ },
1803
+ {
1804
+ name: "currency1",
1805
+ type: "address",
1806
+ internalType: "Currency"
1807
+ },
1808
+ {
1809
+ name: "fee",
1810
+ type: "uint24",
1811
+ internalType: "uint24"
1812
+ },
1813
+ {
1814
+ name: "tickSpacing",
1815
+ type: "int24",
1816
+ internalType: "int24"
1817
+ },
1818
+ {
1819
+ name: "hooks",
1820
+ type: "address",
1821
+ internalType: "contract IHooks"
1822
+ }
1823
+ ]
1944
1824
  }],
1945
- stateMutability: "pure"
1825
+ stateMutability: "view"
1946
1826
  },
1947
1827
  {
1948
1828
  type: "function",
1949
- name: "getLiquidityForAmount1Ticks",
1950
- inputs: [
1951
- {
1952
- name: "tickA",
1953
- type: "int24",
1954
- internalType: "int24"
1955
- },
1956
- {
1957
- name: "tickB",
1958
- type: "int24",
1959
- internalType: "int24"
1960
- },
1961
- {
1962
- name: "amount1",
1963
- type: "uint256",
1964
- internalType: "uint256"
1965
- }
1966
- ],
1829
+ name: "poolManager",
1830
+ inputs: [],
1967
1831
  outputs: [{
1968
- name: "liquidity",
1969
- type: "uint128",
1970
- internalType: "uint128"
1832
+ name: "",
1833
+ type: "address",
1834
+ internalType: "contract IPoolManager"
1971
1835
  }],
1972
- stateMutability: "pure"
1836
+ stateMutability: "view"
1973
1837
  },
1974
1838
  {
1975
1839
  type: "function",
1976
- name: "getLiquidityForAmounts",
1977
- inputs: [
1978
- {
1979
- name: "sqrtRatioX96",
1980
- type: "uint160",
1981
- internalType: "uint160"
1982
- },
1983
- {
1984
- name: "sqrtRatioAX96",
1985
- type: "uint160",
1986
- internalType: "uint160"
1987
- },
1988
- {
1989
- name: "sqrtRatioBX96",
1990
- type: "uint160",
1991
- internalType: "uint160"
1992
- },
1993
- {
1994
- name: "amount0",
1995
- type: "uint256",
1996
- internalType: "uint256"
1997
- },
1998
- {
1999
- name: "amount1",
2000
- type: "uint256",
2001
- internalType: "uint256"
2002
- }
2003
- ],
2004
- outputs: [{
2005
- name: "liquidity",
2006
- type: "uint128",
2007
- internalType: "uint128"
2008
- }],
2009
- stateMutability: "pure"
1840
+ name: "renounceOwnership",
1841
+ inputs: [],
1842
+ outputs: [],
1843
+ stateMutability: "nonpayable"
2010
1844
  },
2011
1845
  {
2012
1846
  type: "function",
2013
- name: "getLiquidityForAmountsTicks",
1847
+ name: "setOperatorPerms",
2014
1848
  inputs: [
2015
1849
  {
2016
- name: "tick",
2017
- type: "int24",
2018
- internalType: "int24"
1850
+ name: "operator",
1851
+ type: "address",
1852
+ internalType: "address"
2019
1853
  },
2020
1854
  {
2021
- name: "tickA",
2022
- type: "int24",
2023
- internalType: "int24"
1855
+ name: "canExtend",
1856
+ type: "bool",
1857
+ internalType: "bool"
2024
1858
  },
2025
1859
  {
2026
- name: "tickB",
2027
- type: "int24",
2028
- internalType: "int24"
1860
+ name: "canExercise",
1861
+ type: "bool",
1862
+ internalType: "bool"
2029
1863
  },
2030
1864
  {
2031
- name: "amount0",
2032
- type: "uint256",
2033
- internalType: "uint256"
1865
+ name: "canTransfer",
1866
+ type: "bool",
1867
+ internalType: "bool"
1868
+ },
1869
+ {
1870
+ name: "canMint",
1871
+ type: "bool",
1872
+ internalType: "bool"
2034
1873
  },
2035
1874
  {
2036
- name: "amount1",
1875
+ name: "spendingApproval",
2037
1876
  type: "uint256",
2038
1877
  internalType: "uint256"
2039
1878
  }
2040
1879
  ],
2041
- outputs: [{
2042
- name: "liquidity",
2043
- type: "uint128",
2044
- internalType: "uint128"
2045
- }],
2046
- stateMutability: "pure"
1880
+ outputs: [],
1881
+ stateMutability: "nonpayable"
2047
1882
  },
2048
1883
  {
2049
1884
  type: "function",
2050
- name: "getPriceAtTick",
2051
- inputs: [{
2052
- name: "tick",
1885
+ name: "tickSpacing",
1886
+ inputs: [],
1887
+ outputs: [{
1888
+ name: "",
2053
1889
  type: "int24",
2054
1890
  internalType: "int24"
2055
1891
  }],
1892
+ stateMutability: "view"
1893
+ },
1894
+ {
1895
+ type: "function",
1896
+ name: "token0",
1897
+ inputs: [],
2056
1898
  outputs: [{
2057
1899
  name: "",
2058
- type: "uint256",
2059
- internalType: "uint256"
1900
+ type: "address",
1901
+ internalType: "contract IERC20"
2060
1902
  }],
2061
- stateMutability: "pure"
2062
- }
2063
- ];
2064
-
2065
- //#endregion
2066
- //#region src/abis/optionsMarket.ts
2067
- const optionsMarketAbi = [
1903
+ stateMutability: "view"
1904
+ },
2068
1905
  {
2069
- type: "constructor",
2070
- inputs: [
2071
- {
2072
- name: "_vault",
2073
- type: "address",
2074
- internalType: "contract ITimelockVault"
2075
- },
2076
- {
2077
- name: "_optionPricing",
2078
- type: "address",
2079
- internalType: "contract IOptionPricing"
2080
- },
2081
- {
2082
- name: "_feeStrategy",
2083
- type: "address",
2084
- internalType: "contract IFeeStrategy"
2085
- },
2086
- {
2087
- name: "_guardian",
2088
- type: "address",
2089
- internalType: "contract TimelockGuardian"
2090
- },
2091
- {
2092
- name: "_optionAssetIsToken0",
2093
- type: "bool",
2094
- internalType: "bool"
2095
- },
2096
- {
2097
- name: "_owner",
2098
- type: "address",
2099
- internalType: "address"
2100
- }
2101
- ],
2102
- stateMutability: "nonpayable"
1906
+ type: "function",
1907
+ name: "token1",
1908
+ inputs: [],
1909
+ outputs: [{
1910
+ name: "",
1911
+ type: "address",
1912
+ internalType: "contract IERC20"
1913
+ }],
1914
+ stateMutability: "view"
2103
1915
  },
2104
1916
  {
2105
1917
  type: "function",
2106
- name: "calculatePremium",
2107
- inputs: [
2108
- {
2109
- name: "optionType",
2110
- type: "uint8",
2111
- internalType: "uint8"
2112
- },
1918
+ name: "transferOption",
1919
+ inputs: [{
1920
+ name: "optionId",
1921
+ type: "uint256",
1922
+ internalType: "uint256"
1923
+ }, {
1924
+ name: "to",
1925
+ type: "address",
1926
+ internalType: "address"
1927
+ }],
1928
+ outputs: [],
1929
+ stateMutability: "nonpayable"
1930
+ },
1931
+ {
1932
+ type: "function",
1933
+ name: "transferOwnership",
1934
+ inputs: [{
1935
+ name: "newOwner",
1936
+ type: "address",
1937
+ internalType: "address"
1938
+ }],
1939
+ outputs: [],
1940
+ stateMutability: "nonpayable"
1941
+ },
1942
+ {
1943
+ type: "function",
1944
+ name: "unlockCallback",
1945
+ inputs: [{
1946
+ name: "data",
1947
+ type: "bytes",
1948
+ internalType: "bytes"
1949
+ }],
1950
+ outputs: [{
1951
+ name: "",
1952
+ type: "bytes",
1953
+ internalType: "bytes"
1954
+ }],
1955
+ stateMutability: "nonpayable"
1956
+ },
1957
+ {
1958
+ type: "function",
1959
+ name: "updateAddresses",
1960
+ inputs: [{
1961
+ name: "_optionPricing",
1962
+ type: "address",
1963
+ internalType: "contract IOptionPricing"
1964
+ }, {
1965
+ name: "_feeStrategy",
1966
+ type: "address",
1967
+ internalType: "contract IFeeStrategy"
1968
+ }],
1969
+ outputs: [],
1970
+ stateMutability: "nonpayable"
1971
+ },
1972
+ {
1973
+ type: "function",
1974
+ name: "vault",
1975
+ inputs: [],
1976
+ outputs: [{
1977
+ name: "",
1978
+ type: "address",
1979
+ internalType: "contract ITimelockVault"
1980
+ }],
1981
+ stateMutability: "view"
1982
+ },
1983
+ {
1984
+ type: "function",
1985
+ name: "whitelistSwapper",
1986
+ inputs: [{
1987
+ name: "swapper",
1988
+ type: "address",
1989
+ internalType: "contract ISwapper"
1990
+ }, {
1991
+ name: "whitelisted",
1992
+ type: "bool",
1993
+ internalType: "bool"
1994
+ }],
1995
+ outputs: [],
1996
+ stateMutability: "nonpayable"
1997
+ },
1998
+ {
1999
+ type: "event",
2000
+ name: "EmergencyWithdraw",
2001
+ inputs: [{
2002
+ name: "tokens",
2003
+ type: "address[]",
2004
+ indexed: false,
2005
+ internalType: "contract IERC20[]"
2006
+ }, {
2007
+ name: "balances",
2008
+ type: "uint256[]",
2009
+ indexed: false,
2010
+ internalType: "uint256[]"
2011
+ }],
2012
+ anonymous: false
2013
+ },
2014
+ {
2015
+ type: "event",
2016
+ name: "ExerciseOption",
2017
+ inputs: [
2113
2018
  {
2114
- name: "optionAmount",
2019
+ name: "optionId",
2115
2020
  type: "uint256",
2021
+ indexed: true,
2116
2022
  internalType: "uint256"
2117
2023
  },
2118
2024
  {
2119
- name: "strikeTick",
2120
- type: "int24",
2121
- internalType: "int24"
2025
+ name: "liquidities",
2026
+ type: "uint128[]",
2027
+ indexed: false,
2028
+ internalType: "uint128[]"
2122
2029
  },
2123
2030
  {
2124
- name: "addedDuration",
2125
- type: "uint32",
2126
- internalType: "uint32"
2031
+ name: "currentPrice",
2032
+ type: "uint256",
2033
+ indexed: false,
2034
+ internalType: "uint256"
2127
2035
  },
2128
2036
  {
2129
- name: "remainingDuration",
2130
- type: "uint32",
2131
- internalType: "uint32"
2037
+ name: "payout",
2038
+ type: "uint256",
2039
+ indexed: false,
2040
+ internalType: "uint256"
2132
2041
  }
2133
2042
  ],
2134
- outputs: [
2043
+ anonymous: false
2044
+ },
2045
+ {
2046
+ type: "event",
2047
+ name: "ExtendOption",
2048
+ inputs: [
2049
+ {
2050
+ name: "optionId",
2051
+ type: "uint256",
2052
+ indexed: true,
2053
+ internalType: "uint256"
2054
+ },
2135
2055
  {
2136
2056
  name: "premium",
2137
2057
  type: "uint256",
2058
+ indexed: false,
2138
2059
  internalType: "uint256"
2139
2060
  },
2140
2061
  {
2141
2062
  name: "protocolFee",
2142
2063
  type: "uint256",
2064
+ indexed: false,
2143
2065
  internalType: "uint256"
2144
2066
  },
2145
2067
  {
2146
- name: "feeRecipient",
2147
- type: "address",
2148
- internalType: "address"
2068
+ name: "currentPrice",
2069
+ type: "uint256",
2070
+ indexed: false,
2071
+ internalType: "uint256"
2072
+ },
2073
+ {
2074
+ name: "addedDuration",
2075
+ type: "uint32",
2076
+ indexed: false,
2077
+ internalType: "uint32"
2149
2078
  }
2150
2079
  ],
2151
- stateMutability: "view"
2152
- },
2153
- {
2154
- type: "function",
2155
- name: "emergencyWithdraw",
2156
- inputs: [{
2157
- name: "tokens",
2158
- type: "address[]",
2159
- internalType: "contract IERC20[]"
2160
- }],
2161
- outputs: [],
2162
- stateMutability: "nonpayable"
2080
+ anonymous: false
2163
2081
  },
2164
2082
  {
2165
- type: "function",
2166
- name: "exerciseOption",
2083
+ type: "event",
2084
+ name: "MintOption",
2167
2085
  inputs: [
2168
2086
  {
2169
2087
  name: "optionId",
2170
2088
  type: "uint256",
2089
+ indexed: true,
2171
2090
  internalType: "uint256"
2172
2091
  },
2173
2092
  {
2174
- name: "liquidities",
2175
- type: "uint128[]",
2176
- internalType: "uint128[]"
2177
- },
2178
- {
2179
- name: "minPayout",
2180
- type: "uint256",
2181
- internalType: "uint256"
2182
- },
2183
- {
2184
- name: "swapper",
2093
+ name: "owner",
2185
2094
  type: "address",
2186
- internalType: "contract ISwapper"
2095
+ indexed: true,
2096
+ internalType: "address"
2187
2097
  },
2188
2098
  {
2189
- name: "swapperData",
2190
- type: "bytes",
2191
- internalType: "bytes"
2099
+ name: "optionType",
2100
+ type: "uint8",
2101
+ indexed: false,
2102
+ internalType: "uint8"
2192
2103
  },
2193
2104
  {
2194
- name: "refTick",
2105
+ name: "strikeTick",
2195
2106
  type: "int24",
2107
+ indexed: false,
2196
2108
  internalType: "int24"
2197
- }
2198
- ],
2199
- outputs: [{
2200
- name: "payout",
2201
- type: "uint256",
2202
- internalType: "uint256"
2203
- }],
2204
- stateMutability: "nonpayable"
2205
- },
2206
- {
2207
- type: "function",
2208
- name: "extendOption",
2209
- inputs: [
2109
+ },
2210
2110
  {
2211
- name: "optionId",
2111
+ name: "currentPrice",
2212
2112
  type: "uint256",
2113
+ indexed: false,
2213
2114
  internalType: "uint256"
2214
2115
  },
2215
2116
  {
2216
- name: "addedDuration",
2117
+ name: "expiresAt",
2217
2118
  type: "uint32",
2119
+ indexed: false,
2218
2120
  internalType: "uint32"
2219
2121
  },
2220
2122
  {
2221
- name: "maxPremium",
2123
+ name: "premium",
2124
+ type: "uint256",
2125
+ indexed: false,
2126
+ internalType: "uint256"
2127
+ },
2128
+ {
2129
+ name: "protocolFee",
2222
2130
  type: "uint256",
2131
+ indexed: false,
2223
2132
  internalType: "uint256"
2133
+ },
2134
+ {
2135
+ name: "liquidities",
2136
+ type: "uint128[]",
2137
+ indexed: false,
2138
+ internalType: "uint128[]"
2224
2139
  }
2225
2140
  ],
2226
- outputs: [{
2227
- name: "premium",
2228
- type: "uint256",
2229
- internalType: "uint256"
2141
+ anonymous: false
2142
+ },
2143
+ {
2144
+ type: "event",
2145
+ name: "OwnershipTransferred",
2146
+ inputs: [{
2147
+ name: "previousOwner",
2148
+ type: "address",
2149
+ indexed: true,
2150
+ internalType: "address"
2230
2151
  }, {
2231
- name: "protocolFee",
2232
- type: "uint256",
2233
- internalType: "uint256"
2152
+ name: "newOwner",
2153
+ type: "address",
2154
+ indexed: true,
2155
+ internalType: "address"
2234
2156
  }],
2235
- stateMutability: "nonpayable"
2157
+ anonymous: false
2236
2158
  },
2237
2159
  {
2238
- type: "function",
2239
- name: "feeStrategy",
2240
- inputs: [],
2241
- outputs: [{
2242
- name: "",
2243
- type: "address",
2244
- internalType: "contract IFeeStrategy"
2245
- }],
2246
- stateMutability: "view"
2247
- },
2248
- {
2249
- type: "function",
2250
- name: "getOption",
2160
+ type: "event",
2161
+ name: "TransferOption",
2251
2162
  inputs: [{
2252
2163
  name: "optionId",
2253
2164
  type: "uint256",
2165
+ indexed: true,
2254
2166
  internalType: "uint256"
2255
- }],
2256
- outputs: [{
2257
- name: "",
2258
- type: "tuple",
2259
- internalType: "struct TimelockOptionsMarket.OptionData",
2260
- components: [
2261
- {
2262
- name: "owner",
2263
- type: "address",
2264
- internalType: "address"
2265
- },
2266
- {
2267
- name: "optionType",
2268
- type: "uint8",
2269
- internalType: "uint8"
2270
- },
2271
- {
2272
- name: "strikeTick",
2273
- type: "int24",
2274
- internalType: "int24"
2275
- },
2276
- {
2277
- name: "expiresAt",
2278
- type: "uint32",
2279
- internalType: "uint32"
2280
- }
2281
- ]
2282
2167
  }, {
2283
- name: "",
2284
- type: "uint128[]",
2285
- internalType: "uint128[]"
2286
- }],
2287
- stateMutability: "view"
2288
- },
2289
- {
2290
- type: "function",
2291
- name: "getPositionSize",
2292
- inputs: [
2293
- {
2294
- name: "optionType",
2295
- type: "uint8",
2296
- internalType: "uint8"
2297
- },
2298
- {
2299
- name: "strikeTick",
2300
- type: "int24",
2301
- internalType: "int24"
2302
- },
2303
- {
2304
- name: "liquidities",
2305
- type: "uint128[]",
2306
- internalType: "uint128[]"
2307
- }
2308
- ],
2309
- outputs: [{
2310
- name: "",
2311
- type: "uint256",
2312
- internalType: "uint256"
2168
+ name: "to",
2169
+ type: "address",
2170
+ indexed: true,
2171
+ internalType: "address"
2313
2172
  }],
2314
- stateMutability: "view"
2173
+ anonymous: false
2315
2174
  },
2316
2175
  {
2317
- type: "function",
2318
- name: "guardian",
2319
- inputs: [],
2320
- outputs: [{
2321
- name: "",
2176
+ type: "event",
2177
+ name: "UpdateAddresses",
2178
+ inputs: [{
2179
+ name: "optionPricing",
2322
2180
  type: "address",
2323
- internalType: "contract TimelockGuardian"
2181
+ indexed: false,
2182
+ internalType: "contract IOptionPricing"
2183
+ }, {
2184
+ name: "feeStrategy",
2185
+ type: "address",
2186
+ indexed: false,
2187
+ internalType: "contract IFeeStrategy"
2324
2188
  }],
2325
- stateMutability: "view"
2189
+ anonymous: false
2326
2190
  },
2327
2191
  {
2328
- type: "function",
2329
- name: "mintOption",
2192
+ type: "event",
2193
+ name: "UpdateOperatorPerms",
2330
2194
  inputs: [
2331
2195
  {
2332
2196
  name: "owner",
2333
2197
  type: "address",
2198
+ indexed: true,
2334
2199
  internalType: "address"
2335
2200
  },
2336
2201
  {
2337
- name: "optionType",
2338
- type: "uint8",
2339
- internalType: "uint8"
2340
- },
2341
- {
2342
- name: "amount",
2343
- type: "uint256",
2344
- internalType: "uint256"
2345
- },
2346
- {
2347
- name: "strikeTick",
2348
- type: "int24",
2349
- internalType: "int24"
2350
- },
2351
- {
2352
- name: "duration",
2353
- type: "uint32",
2354
- internalType: "uint32"
2355
- },
2356
- {
2357
- name: "maxPremium",
2358
- type: "uint256",
2359
- internalType: "uint256"
2360
- },
2361
- {
2362
- name: "maxSteps",
2363
- type: "uint24",
2364
- internalType: "uint24"
2365
- },
2366
- {
2367
- name: "refTick",
2368
- type: "int24",
2369
- internalType: "int24"
2370
- }
2371
- ],
2372
- outputs: [
2373
- {
2374
- name: "optionId",
2375
- type: "uint256",
2376
- internalType: "uint256"
2377
- },
2378
- {
2379
- name: "finalAmount",
2380
- type: "uint256",
2381
- internalType: "uint256"
2382
- },
2383
- {
2384
- name: "premium",
2385
- type: "uint256",
2386
- internalType: "uint256"
2202
+ name: "operator",
2203
+ type: "address",
2204
+ indexed: true,
2205
+ internalType: "address"
2387
2206
  },
2388
- {
2389
- name: "protocolFee",
2390
- type: "uint256",
2391
- internalType: "uint256"
2392
- }
2393
- ],
2394
- stateMutability: "nonpayable"
2395
- },
2396
- {
2397
- type: "function",
2398
- name: "multicall",
2399
- inputs: [{
2400
- name: "data",
2401
- type: "bytes[]",
2402
- internalType: "bytes[]"
2403
- }],
2404
- outputs: [{
2405
- name: "results",
2406
- type: "bytes[]",
2407
- internalType: "bytes[]"
2408
- }],
2409
- stateMutability: "nonpayable"
2410
- },
2411
- {
2412
- type: "function",
2413
- name: "nextOptionId",
2414
- inputs: [],
2415
- outputs: [{
2416
- name: "",
2417
- type: "uint256",
2418
- internalType: "uint256"
2419
- }],
2420
- stateMutability: "view"
2421
- },
2422
- {
2423
- type: "function",
2424
- name: "operatorPerms",
2425
- inputs: [{
2426
- name: "",
2427
- type: "address",
2428
- internalType: "address"
2429
- }, {
2430
- name: "",
2431
- type: "address",
2432
- internalType: "address"
2433
- }],
2434
- outputs: [
2435
2207
  {
2436
2208
  name: "canExtend",
2437
2209
  type: "bool",
2210
+ indexed: false,
2438
2211
  internalType: "bool"
2439
2212
  },
2440
2213
  {
2441
2214
  name: "canExercise",
2442
2215
  type: "bool",
2216
+ indexed: false,
2443
2217
  internalType: "bool"
2444
2218
  },
2445
2219
  {
2446
2220
  name: "canTransfer",
2447
2221
  type: "bool",
2222
+ indexed: false,
2448
2223
  internalType: "bool"
2449
2224
  },
2450
2225
  {
2451
2226
  name: "canMint",
2452
2227
  type: "bool",
2228
+ indexed: false,
2453
2229
  internalType: "bool"
2454
2230
  },
2455
2231
  {
2456
2232
  name: "spendingApproval",
2457
2233
  type: "uint256",
2234
+ indexed: false,
2458
2235
  internalType: "uint256"
2459
2236
  }
2460
2237
  ],
2461
- stateMutability: "view"
2238
+ anonymous: false
2462
2239
  },
2463
2240
  {
2464
- type: "function",
2465
- name: "optionAsset",
2466
- inputs: [],
2467
- outputs: [{
2468
- name: "",
2241
+ type: "event",
2242
+ name: "WhitelistSwapper",
2243
+ inputs: [{
2244
+ name: "swapper",
2469
2245
  type: "address",
2470
- internalType: "contract IERC20"
2471
- }],
2472
- stateMutability: "view"
2473
- },
2474
- {
2475
- type: "function",
2476
- name: "optionAssetIsToken0",
2477
- inputs: [],
2478
- outputs: [{
2479
- name: "",
2246
+ indexed: true,
2247
+ internalType: "contract ISwapper"
2248
+ }, {
2249
+ name: "whitelisted",
2480
2250
  type: "bool",
2251
+ indexed: false,
2481
2252
  internalType: "bool"
2482
2253
  }],
2483
- stateMutability: "view"
2254
+ anonymous: false
2484
2255
  },
2485
2256
  {
2486
- type: "function",
2487
- name: "optionPricing",
2488
- inputs: [],
2489
- outputs: [{
2490
- name: "",
2257
+ type: "error",
2258
+ name: "AddressEmptyCode",
2259
+ inputs: [{
2260
+ name: "target",
2491
2261
  type: "address",
2492
- internalType: "contract IOptionPricing"
2493
- }],
2494
- stateMutability: "view"
2262
+ internalType: "address"
2263
+ }]
2495
2264
  },
2496
2265
  {
2497
- type: "function",
2498
- name: "owner",
2499
- inputs: [],
2500
- outputs: [{
2501
- name: "",
2502
- type: "address",
2266
+ type: "error",
2267
+ name: "FailedCall",
2268
+ inputs: []
2269
+ },
2270
+ {
2271
+ type: "error",
2272
+ name: "InsufficientLiquidity",
2273
+ inputs: [{
2274
+ name: "remainingAmount",
2275
+ type: "uint256",
2276
+ internalType: "uint256"
2277
+ }]
2278
+ },
2279
+ {
2280
+ type: "error",
2281
+ name: "InvalidAmount",
2282
+ inputs: []
2283
+ },
2284
+ {
2285
+ type: "error",
2286
+ name: "InvalidArrayLength",
2287
+ inputs: []
2288
+ },
2289
+ {
2290
+ type: "error",
2291
+ name: "InvalidDuration",
2292
+ inputs: []
2293
+ },
2294
+ {
2295
+ type: "error",
2296
+ name: "InvalidOptionType",
2297
+ inputs: []
2298
+ },
2299
+ {
2300
+ type: "error",
2301
+ name: "MInvalidTickRange",
2302
+ inputs: [{
2303
+ name: "tickLower",
2304
+ type: "int24",
2305
+ internalType: "int24"
2306
+ }, {
2307
+ name: "tickUpper",
2308
+ type: "int24",
2309
+ internalType: "int24"
2310
+ }]
2311
+ },
2312
+ {
2313
+ type: "error",
2314
+ name: "NotAuthorized",
2315
+ inputs: []
2316
+ },
2317
+ {
2318
+ type: "error",
2319
+ name: "NotEnoughLiquidity",
2320
+ inputs: []
2321
+ },
2322
+ {
2323
+ type: "error",
2324
+ name: "NotEnoughPayout",
2325
+ inputs: []
2326
+ },
2327
+ {
2328
+ type: "error",
2329
+ name: "OptionExpired",
2330
+ inputs: []
2331
+ },
2332
+ {
2333
+ type: "error",
2334
+ name: "OptionNotFound",
2335
+ inputs: []
2336
+ },
2337
+ {
2338
+ type: "error",
2339
+ name: "OwnableInvalidOwner",
2340
+ inputs: [{
2341
+ name: "owner",
2342
+ type: "address",
2503
2343
  internalType: "address"
2504
- }],
2505
- stateMutability: "view"
2344
+ }]
2506
2345
  },
2507
2346
  {
2508
- type: "function",
2509
- name: "payoutAsset",
2510
- inputs: [],
2511
- outputs: [{
2512
- name: "",
2347
+ type: "error",
2348
+ name: "OwnableUnauthorizedAccount",
2349
+ inputs: [{
2350
+ name: "account",
2513
2351
  type: "address",
2514
- internalType: "contract IERC20"
2515
- }],
2516
- stateMutability: "view"
2352
+ internalType: "address"
2353
+ }]
2517
2354
  },
2518
2355
  {
2519
- type: "function",
2520
- name: "poolId",
2521
- inputs: [],
2522
- outputs: [{
2523
- name: "",
2524
- type: "bytes32",
2525
- internalType: "PoolId"
2526
- }],
2527
- stateMutability: "view"
2356
+ type: "error",
2357
+ name: "PoolNotSupported",
2358
+ inputs: []
2359
+ },
2360
+ {
2361
+ type: "error",
2362
+ name: "PremiumTooHigh",
2363
+ inputs: []
2364
+ },
2365
+ {
2366
+ type: "error",
2367
+ name: "ReentrancyGuardReentrantCall",
2368
+ inputs: []
2369
+ },
2370
+ {
2371
+ type: "error",
2372
+ name: "SafeERC20FailedOperation",
2373
+ inputs: [{
2374
+ name: "token",
2375
+ type: "address",
2376
+ internalType: "address"
2377
+ }]
2378
+ },
2379
+ {
2380
+ type: "error",
2381
+ name: "SwapFailed",
2382
+ inputs: [{
2383
+ name: "amountReceived",
2384
+ type: "uint256",
2385
+ internalType: "uint256"
2386
+ }, {
2387
+ name: "amountExpected",
2388
+ type: "uint256",
2389
+ internalType: "uint256"
2390
+ }]
2391
+ },
2392
+ {
2393
+ type: "error",
2394
+ name: "SwapperNotWhitelisted",
2395
+ inputs: []
2396
+ },
2397
+ {
2398
+ type: "error",
2399
+ name: "TradingPaused",
2400
+ inputs: []
2401
+ },
2402
+ {
2403
+ type: "error",
2404
+ name: "UnauthorizedCaller",
2405
+ inputs: []
2406
+ },
2407
+ {
2408
+ type: "error",
2409
+ name: "WithdrawNotAllowed",
2410
+ inputs: []
2528
2411
  },
2412
+ {
2413
+ type: "error",
2414
+ name: "ZeroAddress",
2415
+ inputs: []
2416
+ }
2417
+ ];
2418
+
2419
+ //#endregion
2420
+ //#region src/abis/statelessStateView.ts
2421
+ const statelessStateViewAbi = [
2529
2422
  {
2530
2423
  type: "function",
2531
- name: "poolKey",
2532
- inputs: [],
2533
- outputs: [{
2534
- name: "",
2424
+ name: "getFeeGrowthGlobals",
2425
+ inputs: [{
2426
+ name: "poolManager",
2427
+ type: "address",
2428
+ internalType: "contract IPoolManager"
2429
+ }, {
2430
+ name: "key",
2535
2431
  type: "tuple",
2536
2432
  internalType: "struct PoolKey",
2537
2433
  components: [
@@ -2562,600 +2458,1000 @@ const optionsMarketAbi = [
2562
2458
  }
2563
2459
  ]
2564
2460
  }],
2461
+ outputs: [{
2462
+ name: "feeGrowthGlobal0",
2463
+ type: "uint256",
2464
+ internalType: "uint256"
2465
+ }, {
2466
+ name: "feeGrowthGlobal1",
2467
+ type: "uint256",
2468
+ internalType: "uint256"
2469
+ }],
2565
2470
  stateMutability: "view"
2566
2471
  },
2567
2472
  {
2568
2473
  type: "function",
2569
- name: "poolManager",
2570
- inputs: [],
2571
- outputs: [{
2572
- name: "",
2474
+ name: "getFeeGrowthGlobals",
2475
+ inputs: [{
2476
+ name: "poolManager",
2573
2477
  type: "address",
2574
2478
  internalType: "contract IPoolManager"
2479
+ }, {
2480
+ name: "poolId",
2481
+ type: "bytes32",
2482
+ internalType: "PoolId"
2483
+ }],
2484
+ outputs: [{
2485
+ name: "feeGrowthGlobal0",
2486
+ type: "uint256",
2487
+ internalType: "uint256"
2488
+ }, {
2489
+ name: "feeGrowthGlobal1",
2490
+ type: "uint256",
2491
+ internalType: "uint256"
2575
2492
  }],
2576
2493
  stateMutability: "view"
2577
2494
  },
2578
2495
  {
2579
2496
  type: "function",
2580
- name: "renounceOwnership",
2581
- inputs: [],
2582
- outputs: [],
2583
- stateMutability: "nonpayable"
2584
- },
2585
- {
2586
- type: "function",
2587
- name: "setOperatorPerms",
2497
+ name: "getFeeGrowthInside",
2588
2498
  inputs: [
2589
2499
  {
2590
- name: "operator",
2500
+ name: "poolManager",
2591
2501
  type: "address",
2592
- internalType: "address"
2502
+ internalType: "contract IPoolManager"
2593
2503
  },
2594
2504
  {
2595
- name: "canExtend",
2596
- type: "bool",
2597
- internalType: "bool"
2598
- },
2599
- {
2600
- name: "canExercise",
2601
- type: "bool",
2602
- internalType: "bool"
2505
+ name: "poolId",
2506
+ type: "bytes32",
2507
+ internalType: "PoolId"
2603
2508
  },
2604
2509
  {
2605
- name: "canTransfer",
2606
- type: "bool",
2607
- internalType: "bool"
2608
- },
2609
- {
2610
- name: "canMint",
2611
- type: "bool",
2612
- internalType: "bool"
2510
+ name: "tickLower",
2511
+ type: "int24",
2512
+ internalType: "int24"
2613
2513
  },
2614
2514
  {
2615
- name: "spendingApproval",
2616
- type: "uint256",
2617
- internalType: "uint256"
2515
+ name: "tickUpper",
2516
+ type: "int24",
2517
+ internalType: "int24"
2618
2518
  }
2619
2519
  ],
2620
- outputs: [],
2621
- stateMutability: "nonpayable"
2622
- },
2623
- {
2624
- type: "function",
2625
- name: "tickSpacing",
2626
- inputs: [],
2627
2520
  outputs: [{
2628
- name: "",
2629
- type: "int24",
2630
- internalType: "int24"
2521
+ name: "feeGrowthInside0X128",
2522
+ type: "uint256",
2523
+ internalType: "uint256"
2524
+ }, {
2525
+ name: "feeGrowthInside1X128",
2526
+ type: "uint256",
2527
+ internalType: "uint256"
2631
2528
  }],
2632
2529
  stateMutability: "view"
2633
2530
  },
2634
2531
  {
2635
2532
  type: "function",
2636
- name: "token0",
2637
- inputs: [],
2638
- outputs: [{
2639
- name: "",
2640
- type: "address",
2641
- internalType: "contract IERC20"
2642
- }],
2643
- stateMutability: "view"
2644
- },
2645
- {
2646
- type: "function",
2647
- name: "token1",
2648
- inputs: [],
2533
+ name: "getFeeGrowthInside",
2534
+ inputs: [
2535
+ {
2536
+ name: "poolManager",
2537
+ type: "address",
2538
+ internalType: "contract IPoolManager"
2539
+ },
2540
+ {
2541
+ name: "key",
2542
+ type: "tuple",
2543
+ internalType: "struct PoolKey",
2544
+ components: [
2545
+ {
2546
+ name: "currency0",
2547
+ type: "address",
2548
+ internalType: "Currency"
2549
+ },
2550
+ {
2551
+ name: "currency1",
2552
+ type: "address",
2553
+ internalType: "Currency"
2554
+ },
2555
+ {
2556
+ name: "fee",
2557
+ type: "uint24",
2558
+ internalType: "uint24"
2559
+ },
2560
+ {
2561
+ name: "tickSpacing",
2562
+ type: "int24",
2563
+ internalType: "int24"
2564
+ },
2565
+ {
2566
+ name: "hooks",
2567
+ type: "address",
2568
+ internalType: "contract IHooks"
2569
+ }
2570
+ ]
2571
+ },
2572
+ {
2573
+ name: "tickLower",
2574
+ type: "int24",
2575
+ internalType: "int24"
2576
+ },
2577
+ {
2578
+ name: "tickUpper",
2579
+ type: "int24",
2580
+ internalType: "int24"
2581
+ }
2582
+ ],
2649
2583
  outputs: [{
2650
- name: "",
2651
- type: "address",
2652
- internalType: "contract IERC20"
2653
- }],
2654
- stateMutability: "view"
2655
- },
2656
- {
2657
- type: "function",
2658
- name: "transferOption",
2659
- inputs: [{
2660
- name: "optionId",
2584
+ name: "feeGrowthInside0X128",
2661
2585
  type: "uint256",
2662
2586
  internalType: "uint256"
2663
2587
  }, {
2664
- name: "to",
2665
- type: "address",
2666
- internalType: "address"
2588
+ name: "feeGrowthInside1X128",
2589
+ type: "uint256",
2590
+ internalType: "uint256"
2667
2591
  }],
2668
- outputs: [],
2669
- stateMutability: "nonpayable"
2592
+ stateMutability: "view"
2670
2593
  },
2671
2594
  {
2672
2595
  type: "function",
2673
- name: "transferOwnership",
2596
+ name: "getLiquidity",
2674
2597
  inputs: [{
2675
- name: "newOwner",
2598
+ name: "poolManager",
2676
2599
  type: "address",
2677
- internalType: "address"
2678
- }],
2679
- outputs: [],
2680
- stateMutability: "nonpayable"
2681
- },
2682
- {
2683
- type: "function",
2684
- name: "unlockCallback",
2685
- inputs: [{
2686
- name: "data",
2687
- type: "bytes",
2688
- internalType: "bytes"
2600
+ internalType: "contract IPoolManager"
2601
+ }, {
2602
+ name: "poolId",
2603
+ type: "bytes32",
2604
+ internalType: "PoolId"
2689
2605
  }],
2690
2606
  outputs: [{
2691
- name: "",
2692
- type: "bytes",
2693
- internalType: "bytes"
2607
+ name: "liquidity",
2608
+ type: "uint128",
2609
+ internalType: "uint128"
2694
2610
  }],
2695
- stateMutability: "nonpayable"
2611
+ stateMutability: "view"
2696
2612
  },
2697
2613
  {
2698
2614
  type: "function",
2699
- name: "updateAddresses",
2615
+ name: "getLiquidity",
2700
2616
  inputs: [{
2701
- name: "_optionPricing",
2617
+ name: "poolManager",
2702
2618
  type: "address",
2703
- internalType: "contract IOptionPricing"
2619
+ internalType: "contract IPoolManager"
2704
2620
  }, {
2705
- name: "_feeStrategy",
2706
- type: "address",
2707
- internalType: "contract IFeeStrategy"
2621
+ name: "key",
2622
+ type: "tuple",
2623
+ internalType: "struct PoolKey",
2624
+ components: [
2625
+ {
2626
+ name: "currency0",
2627
+ type: "address",
2628
+ internalType: "Currency"
2629
+ },
2630
+ {
2631
+ name: "currency1",
2632
+ type: "address",
2633
+ internalType: "Currency"
2634
+ },
2635
+ {
2636
+ name: "fee",
2637
+ type: "uint24",
2638
+ internalType: "uint24"
2639
+ },
2640
+ {
2641
+ name: "tickSpacing",
2642
+ type: "int24",
2643
+ internalType: "int24"
2644
+ },
2645
+ {
2646
+ name: "hooks",
2647
+ type: "address",
2648
+ internalType: "contract IHooks"
2649
+ }
2650
+ ]
2708
2651
  }],
2709
- outputs: [],
2710
- stateMutability: "nonpayable"
2711
- },
2712
- {
2713
- type: "function",
2714
- name: "vault",
2715
- inputs: [],
2716
2652
  outputs: [{
2717
- name: "",
2718
- type: "address",
2719
- internalType: "contract ITimelockVault"
2653
+ name: "liquidity",
2654
+ type: "uint128",
2655
+ internalType: "uint128"
2720
2656
  }],
2721
2657
  stateMutability: "view"
2722
2658
  },
2723
2659
  {
2724
2660
  type: "function",
2725
- name: "whitelistSwapper",
2726
- inputs: [{
2727
- name: "swapper",
2728
- type: "address",
2729
- internalType: "contract ISwapper"
2730
- }, {
2731
- name: "whitelisted",
2732
- type: "bool",
2733
- internalType: "bool"
2734
- }],
2735
- outputs: [],
2736
- stateMutability: "nonpayable"
2737
- },
2738
- {
2739
- type: "event",
2740
- name: "EmergencyWithdraw",
2741
- inputs: [{
2742
- name: "tokens",
2743
- type: "address[]",
2744
- indexed: false,
2745
- internalType: "contract IERC20[]"
2746
- }, {
2747
- name: "balances",
2748
- type: "uint256[]",
2749
- indexed: false,
2750
- internalType: "uint256[]"
2751
- }],
2752
- anonymous: false
2753
- },
2754
- {
2755
- type: "event",
2756
- name: "ExerciseOption",
2661
+ name: "getPositionInfo",
2757
2662
  inputs: [
2758
2663
  {
2759
- name: "optionId",
2760
- type: "uint256",
2761
- indexed: true,
2762
- internalType: "uint256"
2664
+ name: "poolManager",
2665
+ type: "address",
2666
+ internalType: "contract IPoolManager"
2763
2667
  },
2764
2668
  {
2765
- name: "liquidities",
2766
- type: "uint128[]",
2767
- indexed: false,
2768
- internalType: "uint128[]"
2669
+ name: "key",
2670
+ type: "tuple",
2671
+ internalType: "struct PoolKey",
2672
+ components: [
2673
+ {
2674
+ name: "currency0",
2675
+ type: "address",
2676
+ internalType: "Currency"
2677
+ },
2678
+ {
2679
+ name: "currency1",
2680
+ type: "address",
2681
+ internalType: "Currency"
2682
+ },
2683
+ {
2684
+ name: "fee",
2685
+ type: "uint24",
2686
+ internalType: "uint24"
2687
+ },
2688
+ {
2689
+ name: "tickSpacing",
2690
+ type: "int24",
2691
+ internalType: "int24"
2692
+ },
2693
+ {
2694
+ name: "hooks",
2695
+ type: "address",
2696
+ internalType: "contract IHooks"
2697
+ }
2698
+ ]
2769
2699
  },
2770
2700
  {
2771
- name: "currentPrice",
2701
+ name: "positionId",
2702
+ type: "bytes32",
2703
+ internalType: "bytes32"
2704
+ }
2705
+ ],
2706
+ outputs: [
2707
+ {
2708
+ name: "liquidity",
2709
+ type: "uint128",
2710
+ internalType: "uint128"
2711
+ },
2712
+ {
2713
+ name: "feeGrowthInside0LastX128",
2772
2714
  type: "uint256",
2773
- indexed: false,
2774
2715
  internalType: "uint256"
2775
2716
  },
2776
2717
  {
2777
- name: "payout",
2718
+ name: "feeGrowthInside1LastX128",
2778
2719
  type: "uint256",
2779
- indexed: false,
2780
2720
  internalType: "uint256"
2781
2721
  }
2782
2722
  ],
2783
- anonymous: false
2723
+ stateMutability: "view"
2784
2724
  },
2785
2725
  {
2786
- type: "event",
2787
- name: "ExtendOption",
2726
+ type: "function",
2727
+ name: "getPositionInfo",
2788
2728
  inputs: [
2789
2729
  {
2790
- name: "optionId",
2791
- type: "uint256",
2792
- indexed: true,
2793
- internalType: "uint256"
2730
+ name: "poolManager",
2731
+ type: "address",
2732
+ internalType: "contract IPoolManager"
2794
2733
  },
2795
2734
  {
2796
- name: "premium",
2797
- type: "uint256",
2798
- indexed: false,
2799
- internalType: "uint256"
2735
+ name: "poolId",
2736
+ type: "bytes32",
2737
+ internalType: "PoolId"
2800
2738
  },
2801
2739
  {
2802
- name: "protocolFee",
2803
- type: "uint256",
2804
- indexed: false,
2805
- internalType: "uint256"
2740
+ name: "positionId",
2741
+ type: "bytes32",
2742
+ internalType: "bytes32"
2743
+ }
2744
+ ],
2745
+ outputs: [
2746
+ {
2747
+ name: "liquidity",
2748
+ type: "uint128",
2749
+ internalType: "uint128"
2806
2750
  },
2807
2751
  {
2808
- name: "currentPrice",
2752
+ name: "feeGrowthInside0LastX128",
2809
2753
  type: "uint256",
2810
- indexed: false,
2811
2754
  internalType: "uint256"
2812
2755
  },
2813
2756
  {
2814
- name: "addedDuration",
2815
- type: "uint32",
2816
- indexed: false,
2817
- internalType: "uint32"
2757
+ name: "feeGrowthInside1LastX128",
2758
+ type: "uint256",
2759
+ internalType: "uint256"
2818
2760
  }
2819
2761
  ],
2820
- anonymous: false
2762
+ stateMutability: "view"
2821
2763
  },
2822
2764
  {
2823
- type: "event",
2824
- name: "MintOption",
2765
+ type: "function",
2766
+ name: "getPositionInfo",
2825
2767
  inputs: [
2826
2768
  {
2827
- name: "optionId",
2828
- type: "uint256",
2829
- indexed: true,
2830
- internalType: "uint256"
2769
+ name: "poolManager",
2770
+ type: "address",
2771
+ internalType: "contract IPoolManager"
2772
+ },
2773
+ {
2774
+ name: "poolId",
2775
+ type: "bytes32",
2776
+ internalType: "PoolId"
2831
2777
  },
2832
2778
  {
2833
2779
  name: "owner",
2834
2780
  type: "address",
2835
- indexed: true,
2836
2781
  internalType: "address"
2837
2782
  },
2838
2783
  {
2839
- name: "optionType",
2840
- type: "uint8",
2841
- indexed: false,
2842
- internalType: "uint8"
2784
+ name: "tickLower",
2785
+ type: "int24",
2786
+ internalType: "int24"
2843
2787
  },
2844
2788
  {
2845
- name: "strikeTick",
2789
+ name: "tickUpper",
2846
2790
  type: "int24",
2847
- indexed: false,
2848
2791
  internalType: "int24"
2849
2792
  },
2850
2793
  {
2851
- name: "currentPrice",
2852
- type: "uint256",
2853
- indexed: false,
2854
- internalType: "uint256"
2855
- },
2794
+ name: "salt",
2795
+ type: "bytes32",
2796
+ internalType: "bytes32"
2797
+ }
2798
+ ],
2799
+ outputs: [
2856
2800
  {
2857
- name: "expiresAt",
2858
- type: "uint32",
2859
- indexed: false,
2860
- internalType: "uint32"
2801
+ name: "liquidity",
2802
+ type: "uint128",
2803
+ internalType: "uint128"
2861
2804
  },
2862
2805
  {
2863
- name: "premium",
2806
+ name: "feeGrowthInside0LastX128",
2864
2807
  type: "uint256",
2865
- indexed: false,
2866
2808
  internalType: "uint256"
2867
2809
  },
2868
2810
  {
2869
- name: "protocolFee",
2811
+ name: "feeGrowthInside1LastX128",
2870
2812
  type: "uint256",
2871
- indexed: false,
2872
2813
  internalType: "uint256"
2873
- },
2874
- {
2875
- name: "liquidities",
2876
- type: "uint128[]",
2877
- indexed: false,
2878
- internalType: "uint128[]"
2879
2814
  }
2880
2815
  ],
2881
- anonymous: false
2882
- },
2883
- {
2884
- type: "event",
2885
- name: "OwnershipTransferred",
2886
- inputs: [{
2887
- name: "previousOwner",
2888
- type: "address",
2889
- indexed: true,
2890
- internalType: "address"
2891
- }, {
2892
- name: "newOwner",
2893
- type: "address",
2894
- indexed: true,
2895
- internalType: "address"
2896
- }],
2897
- anonymous: false
2898
- },
2899
- {
2900
- type: "event",
2901
- name: "TransferOption",
2902
- inputs: [{
2903
- name: "optionId",
2904
- type: "uint256",
2905
- indexed: true,
2906
- internalType: "uint256"
2907
- }, {
2908
- name: "to",
2909
- type: "address",
2910
- indexed: true,
2911
- internalType: "address"
2912
- }],
2913
- anonymous: false
2914
- },
2915
- {
2916
- type: "event",
2917
- name: "UpdateAddresses",
2918
- inputs: [{
2919
- name: "optionPricing",
2920
- type: "address",
2921
- indexed: false,
2922
- internalType: "contract IOptionPricing"
2923
- }, {
2924
- name: "feeStrategy",
2925
- type: "address",
2926
- indexed: false,
2927
- internalType: "contract IFeeStrategy"
2928
- }],
2929
- anonymous: false
2816
+ stateMutability: "view"
2930
2817
  },
2931
2818
  {
2932
- type: "event",
2933
- name: "UpdateOperatorPerms",
2819
+ type: "function",
2820
+ name: "getPositionInfo",
2934
2821
  inputs: [
2935
2822
  {
2936
- name: "owner",
2823
+ name: "poolManager",
2937
2824
  type: "address",
2938
- indexed: true,
2939
- internalType: "address"
2825
+ internalType: "contract IPoolManager"
2940
2826
  },
2941
2827
  {
2942
- name: "operator",
2828
+ name: "key",
2829
+ type: "tuple",
2830
+ internalType: "struct PoolKey",
2831
+ components: [
2832
+ {
2833
+ name: "currency0",
2834
+ type: "address",
2835
+ internalType: "Currency"
2836
+ },
2837
+ {
2838
+ name: "currency1",
2839
+ type: "address",
2840
+ internalType: "Currency"
2841
+ },
2842
+ {
2843
+ name: "fee",
2844
+ type: "uint24",
2845
+ internalType: "uint24"
2846
+ },
2847
+ {
2848
+ name: "tickSpacing",
2849
+ type: "int24",
2850
+ internalType: "int24"
2851
+ },
2852
+ {
2853
+ name: "hooks",
2854
+ type: "address",
2855
+ internalType: "contract IHooks"
2856
+ }
2857
+ ]
2858
+ },
2859
+ {
2860
+ name: "owner",
2943
2861
  type: "address",
2944
- indexed: true,
2945
2862
  internalType: "address"
2946
2863
  },
2947
2864
  {
2948
- name: "canExtend",
2949
- type: "bool",
2950
- indexed: false,
2951
- internalType: "bool"
2865
+ name: "tickLower",
2866
+ type: "int24",
2867
+ internalType: "int24"
2952
2868
  },
2953
2869
  {
2954
- name: "canExercise",
2955
- type: "bool",
2956
- indexed: false,
2957
- internalType: "bool"
2870
+ name: "tickUpper",
2871
+ type: "int24",
2872
+ internalType: "int24"
2958
2873
  },
2959
2874
  {
2960
- name: "canTransfer",
2961
- type: "bool",
2962
- indexed: false,
2963
- internalType: "bool"
2875
+ name: "salt",
2876
+ type: "bytes32",
2877
+ internalType: "bytes32"
2878
+ }
2879
+ ],
2880
+ outputs: [
2881
+ {
2882
+ name: "liquidity",
2883
+ type: "uint128",
2884
+ internalType: "uint128"
2964
2885
  },
2965
2886
  {
2966
- name: "canMint",
2967
- type: "bool",
2968
- indexed: false,
2969
- internalType: "bool"
2887
+ name: "feeGrowthInside0LastX128",
2888
+ type: "uint256",
2889
+ internalType: "uint256"
2970
2890
  },
2971
2891
  {
2972
- name: "spendingApproval",
2892
+ name: "feeGrowthInside1LastX128",
2973
2893
  type: "uint256",
2974
- indexed: false,
2975
2894
  internalType: "uint256"
2976
2895
  }
2977
2896
  ],
2978
- anonymous: false
2897
+ stateMutability: "view"
2979
2898
  },
2980
2899
  {
2981
- type: "event",
2982
- name: "WhitelistSwapper",
2983
- inputs: [{
2984
- name: "swapper",
2985
- type: "address",
2986
- indexed: true,
2987
- internalType: "contract ISwapper"
2988
- }, {
2989
- name: "whitelisted",
2990
- type: "bool",
2991
- indexed: false,
2992
- internalType: "bool"
2900
+ type: "function",
2901
+ name: "getPositionLiquidity",
2902
+ inputs: [
2903
+ {
2904
+ name: "poolManager",
2905
+ type: "address",
2906
+ internalType: "contract IPoolManager"
2907
+ },
2908
+ {
2909
+ name: "poolId",
2910
+ type: "bytes32",
2911
+ internalType: "PoolId"
2912
+ },
2913
+ {
2914
+ name: "positionId",
2915
+ type: "bytes32",
2916
+ internalType: "bytes32"
2917
+ }
2918
+ ],
2919
+ outputs: [{
2920
+ name: "liquidity",
2921
+ type: "uint128",
2922
+ internalType: "uint128"
2993
2923
  }],
2994
- anonymous: false
2995
- },
2996
- {
2997
- type: "error",
2998
- name: "AddressEmptyCode",
2999
- inputs: [{
3000
- name: "target",
3001
- type: "address",
3002
- internalType: "address"
3003
- }]
3004
- },
3005
- {
3006
- type: "error",
3007
- name: "FailedCall",
3008
- inputs: []
3009
- },
3010
- {
3011
- type: "error",
3012
- name: "InsufficientLiquidity",
3013
- inputs: [{
3014
- name: "remainingAmount",
3015
- type: "uint256",
3016
- internalType: "uint256"
3017
- }]
3018
- },
3019
- {
3020
- type: "error",
3021
- name: "InvalidAmount",
3022
- inputs: []
3023
- },
3024
- {
3025
- type: "error",
3026
- name: "InvalidArrayLength",
3027
- inputs: []
3028
- },
3029
- {
3030
- type: "error",
3031
- name: "InvalidDuration",
3032
- inputs: []
2924
+ stateMutability: "view"
3033
2925
  },
3034
2926
  {
3035
- type: "error",
3036
- name: "InvalidOptionType",
3037
- inputs: []
2927
+ type: "function",
2928
+ name: "getPositionLiquidity",
2929
+ inputs: [
2930
+ {
2931
+ name: "poolManager",
2932
+ type: "address",
2933
+ internalType: "contract IPoolManager"
2934
+ },
2935
+ {
2936
+ name: "key",
2937
+ type: "tuple",
2938
+ internalType: "struct PoolKey",
2939
+ components: [
2940
+ {
2941
+ name: "currency0",
2942
+ type: "address",
2943
+ internalType: "Currency"
2944
+ },
2945
+ {
2946
+ name: "currency1",
2947
+ type: "address",
2948
+ internalType: "Currency"
2949
+ },
2950
+ {
2951
+ name: "fee",
2952
+ type: "uint24",
2953
+ internalType: "uint24"
2954
+ },
2955
+ {
2956
+ name: "tickSpacing",
2957
+ type: "int24",
2958
+ internalType: "int24"
2959
+ },
2960
+ {
2961
+ name: "hooks",
2962
+ type: "address",
2963
+ internalType: "contract IHooks"
2964
+ }
2965
+ ]
2966
+ },
2967
+ {
2968
+ name: "positionId",
2969
+ type: "bytes32",
2970
+ internalType: "bytes32"
2971
+ }
2972
+ ],
2973
+ outputs: [{
2974
+ name: "liquidity",
2975
+ type: "uint128",
2976
+ internalType: "uint128"
2977
+ }],
2978
+ stateMutability: "view"
3038
2979
  },
3039
2980
  {
3040
- type: "error",
3041
- name: "MInvalidTickRange",
2981
+ type: "function",
2982
+ name: "getSlot0",
3042
2983
  inputs: [{
3043
- name: "tickLower",
3044
- type: "int24",
3045
- internalType: "int24"
2984
+ name: "poolManager",
2985
+ type: "address",
2986
+ internalType: "contract IPoolManager"
3046
2987
  }, {
3047
- name: "tickUpper",
3048
- type: "int24",
3049
- internalType: "int24"
3050
- }]
3051
- },
3052
- {
3053
- type: "error",
3054
- name: "NotAuthorized",
3055
- inputs: []
3056
- },
3057
- {
3058
- type: "error",
3059
- name: "NotEnoughLiquidity",
3060
- inputs: []
3061
- },
3062
- {
3063
- type: "error",
3064
- name: "NotEnoughPayout",
3065
- inputs: []
3066
- },
3067
- {
3068
- type: "error",
3069
- name: "OptionExpired",
3070
- inputs: []
3071
- },
3072
- {
3073
- type: "error",
3074
- name: "OptionNotFound",
3075
- inputs: []
3076
- },
3077
- {
3078
- type: "error",
3079
- name: "OwnableInvalidOwner",
3080
- inputs: [{
3081
- name: "owner",
3082
- type: "address",
3083
- internalType: "address"
3084
- }]
2988
+ name: "key",
2989
+ type: "tuple",
2990
+ internalType: "struct PoolKey",
2991
+ components: [
2992
+ {
2993
+ name: "currency0",
2994
+ type: "address",
2995
+ internalType: "Currency"
2996
+ },
2997
+ {
2998
+ name: "currency1",
2999
+ type: "address",
3000
+ internalType: "Currency"
3001
+ },
3002
+ {
3003
+ name: "fee",
3004
+ type: "uint24",
3005
+ internalType: "uint24"
3006
+ },
3007
+ {
3008
+ name: "tickSpacing",
3009
+ type: "int24",
3010
+ internalType: "int24"
3011
+ },
3012
+ {
3013
+ name: "hooks",
3014
+ type: "address",
3015
+ internalType: "contract IHooks"
3016
+ }
3017
+ ]
3018
+ }],
3019
+ outputs: [
3020
+ {
3021
+ name: "sqrtPriceX96",
3022
+ type: "uint160",
3023
+ internalType: "uint160"
3024
+ },
3025
+ {
3026
+ name: "tick",
3027
+ type: "int24",
3028
+ internalType: "int24"
3029
+ },
3030
+ {
3031
+ name: "protocolFee",
3032
+ type: "uint24",
3033
+ internalType: "uint24"
3034
+ },
3035
+ {
3036
+ name: "lpFee",
3037
+ type: "uint24",
3038
+ internalType: "uint24"
3039
+ }
3040
+ ],
3041
+ stateMutability: "view"
3085
3042
  },
3086
3043
  {
3087
- type: "error",
3088
- name: "OwnableUnauthorizedAccount",
3044
+ type: "function",
3045
+ name: "getSlot0",
3089
3046
  inputs: [{
3090
- name: "account",
3047
+ name: "poolManager",
3091
3048
  type: "address",
3092
- internalType: "address"
3093
- }]
3094
- },
3095
- {
3096
- type: "error",
3097
- name: "PoolNotSupported",
3098
- inputs: []
3099
- },
3100
- {
3101
- type: "error",
3102
- name: "PremiumTooHigh",
3103
- inputs: []
3049
+ internalType: "contract IPoolManager"
3050
+ }, {
3051
+ name: "poolId",
3052
+ type: "bytes32",
3053
+ internalType: "PoolId"
3054
+ }],
3055
+ outputs: [
3056
+ {
3057
+ name: "sqrtPriceX96",
3058
+ type: "uint160",
3059
+ internalType: "uint160"
3060
+ },
3061
+ {
3062
+ name: "tick",
3063
+ type: "int24",
3064
+ internalType: "int24"
3065
+ },
3066
+ {
3067
+ name: "protocolFee",
3068
+ type: "uint24",
3069
+ internalType: "uint24"
3070
+ },
3071
+ {
3072
+ name: "lpFee",
3073
+ type: "uint24",
3074
+ internalType: "uint24"
3075
+ }
3076
+ ],
3077
+ stateMutability: "view"
3104
3078
  },
3105
3079
  {
3106
- type: "error",
3107
- name: "ReentrancyGuardReentrantCall",
3108
- inputs: []
3080
+ type: "function",
3081
+ name: "getTickBitmap",
3082
+ inputs: [
3083
+ {
3084
+ name: "poolManager",
3085
+ type: "address",
3086
+ internalType: "contract IPoolManager"
3087
+ },
3088
+ {
3089
+ name: "key",
3090
+ type: "tuple",
3091
+ internalType: "struct PoolKey",
3092
+ components: [
3093
+ {
3094
+ name: "currency0",
3095
+ type: "address",
3096
+ internalType: "Currency"
3097
+ },
3098
+ {
3099
+ name: "currency1",
3100
+ type: "address",
3101
+ internalType: "Currency"
3102
+ },
3103
+ {
3104
+ name: "fee",
3105
+ type: "uint24",
3106
+ internalType: "uint24"
3107
+ },
3108
+ {
3109
+ name: "tickSpacing",
3110
+ type: "int24",
3111
+ internalType: "int24"
3112
+ },
3113
+ {
3114
+ name: "hooks",
3115
+ type: "address",
3116
+ internalType: "contract IHooks"
3117
+ }
3118
+ ]
3119
+ },
3120
+ {
3121
+ name: "tick",
3122
+ type: "int16",
3123
+ internalType: "int16"
3124
+ }
3125
+ ],
3126
+ outputs: [{
3127
+ name: "tickBitmap",
3128
+ type: "uint256",
3129
+ internalType: "uint256"
3130
+ }],
3131
+ stateMutability: "view"
3109
3132
  },
3110
3133
  {
3111
- type: "error",
3112
- name: "SafeERC20FailedOperation",
3113
- inputs: [{
3114
- name: "token",
3115
- type: "address",
3116
- internalType: "address"
3117
- }]
3134
+ type: "function",
3135
+ name: "getTickBitmap",
3136
+ inputs: [
3137
+ {
3138
+ name: "poolManager",
3139
+ type: "address",
3140
+ internalType: "contract IPoolManager"
3141
+ },
3142
+ {
3143
+ name: "poolId",
3144
+ type: "bytes32",
3145
+ internalType: "PoolId"
3146
+ },
3147
+ {
3148
+ name: "tick",
3149
+ type: "int16",
3150
+ internalType: "int16"
3151
+ }
3152
+ ],
3153
+ outputs: [{
3154
+ name: "tickBitmap",
3155
+ type: "uint256",
3156
+ internalType: "uint256"
3157
+ }],
3158
+ stateMutability: "view"
3118
3159
  },
3119
3160
  {
3120
- type: "error",
3121
- name: "SwapFailed",
3122
- inputs: [{
3123
- name: "amountReceived",
3161
+ type: "function",
3162
+ name: "getTickFeeGrowthOutside",
3163
+ inputs: [
3164
+ {
3165
+ name: "poolManager",
3166
+ type: "address",
3167
+ internalType: "contract IPoolManager"
3168
+ },
3169
+ {
3170
+ name: "key",
3171
+ type: "tuple",
3172
+ internalType: "struct PoolKey",
3173
+ components: [
3174
+ {
3175
+ name: "currency0",
3176
+ type: "address",
3177
+ internalType: "Currency"
3178
+ },
3179
+ {
3180
+ name: "currency1",
3181
+ type: "address",
3182
+ internalType: "Currency"
3183
+ },
3184
+ {
3185
+ name: "fee",
3186
+ type: "uint24",
3187
+ internalType: "uint24"
3188
+ },
3189
+ {
3190
+ name: "tickSpacing",
3191
+ type: "int24",
3192
+ internalType: "int24"
3193
+ },
3194
+ {
3195
+ name: "hooks",
3196
+ type: "address",
3197
+ internalType: "contract IHooks"
3198
+ }
3199
+ ]
3200
+ },
3201
+ {
3202
+ name: "tick",
3203
+ type: "int24",
3204
+ internalType: "int24"
3205
+ }
3206
+ ],
3207
+ outputs: [{
3208
+ name: "feeGrowthOutside0X128",
3124
3209
  type: "uint256",
3125
3210
  internalType: "uint256"
3126
3211
  }, {
3127
- name: "amountExpected",
3212
+ name: "feeGrowthOutside1X128",
3128
3213
  type: "uint256",
3129
3214
  internalType: "uint256"
3130
- }]
3215
+ }],
3216
+ stateMutability: "view"
3131
3217
  },
3132
3218
  {
3133
- type: "error",
3134
- name: "SwapperNotWhitelisted",
3135
- inputs: []
3219
+ type: "function",
3220
+ name: "getTickFeeGrowthOutside",
3221
+ inputs: [
3222
+ {
3223
+ name: "poolManager",
3224
+ type: "address",
3225
+ internalType: "contract IPoolManager"
3226
+ },
3227
+ {
3228
+ name: "poolId",
3229
+ type: "bytes32",
3230
+ internalType: "PoolId"
3231
+ },
3232
+ {
3233
+ name: "tick",
3234
+ type: "int24",
3235
+ internalType: "int24"
3236
+ }
3237
+ ],
3238
+ outputs: [{
3239
+ name: "feeGrowthOutside0X128",
3240
+ type: "uint256",
3241
+ internalType: "uint256"
3242
+ }, {
3243
+ name: "feeGrowthOutside1X128",
3244
+ type: "uint256",
3245
+ internalType: "uint256"
3246
+ }],
3247
+ stateMutability: "view"
3136
3248
  },
3137
3249
  {
3138
- type: "error",
3139
- name: "TradingPaused",
3140
- inputs: []
3250
+ type: "function",
3251
+ name: "getTickInfo",
3252
+ inputs: [
3253
+ {
3254
+ name: "poolManager",
3255
+ type: "address",
3256
+ internalType: "contract IPoolManager"
3257
+ },
3258
+ {
3259
+ name: "poolId",
3260
+ type: "bytes32",
3261
+ internalType: "PoolId"
3262
+ },
3263
+ {
3264
+ name: "tick",
3265
+ type: "int24",
3266
+ internalType: "int24"
3267
+ }
3268
+ ],
3269
+ outputs: [
3270
+ {
3271
+ name: "liquidityGross",
3272
+ type: "uint128",
3273
+ internalType: "uint128"
3274
+ },
3275
+ {
3276
+ name: "liquidityNet",
3277
+ type: "int128",
3278
+ internalType: "int128"
3279
+ },
3280
+ {
3281
+ name: "feeGrowthOutside0X128",
3282
+ type: "uint256",
3283
+ internalType: "uint256"
3284
+ },
3285
+ {
3286
+ name: "feeGrowthOutside1X128",
3287
+ type: "uint256",
3288
+ internalType: "uint256"
3289
+ }
3290
+ ],
3291
+ stateMutability: "view"
3141
3292
  },
3142
3293
  {
3143
- type: "error",
3144
- name: "UnauthorizedCaller",
3145
- inputs: []
3294
+ type: "function",
3295
+ name: "getTickInfo",
3296
+ inputs: [
3297
+ {
3298
+ name: "poolManager",
3299
+ type: "address",
3300
+ internalType: "contract IPoolManager"
3301
+ },
3302
+ {
3303
+ name: "key",
3304
+ type: "tuple",
3305
+ internalType: "struct PoolKey",
3306
+ components: [
3307
+ {
3308
+ name: "currency0",
3309
+ type: "address",
3310
+ internalType: "Currency"
3311
+ },
3312
+ {
3313
+ name: "currency1",
3314
+ type: "address",
3315
+ internalType: "Currency"
3316
+ },
3317
+ {
3318
+ name: "fee",
3319
+ type: "uint24",
3320
+ internalType: "uint24"
3321
+ },
3322
+ {
3323
+ name: "tickSpacing",
3324
+ type: "int24",
3325
+ internalType: "int24"
3326
+ },
3327
+ {
3328
+ name: "hooks",
3329
+ type: "address",
3330
+ internalType: "contract IHooks"
3331
+ }
3332
+ ]
3333
+ },
3334
+ {
3335
+ name: "tick",
3336
+ type: "int24",
3337
+ internalType: "int24"
3338
+ }
3339
+ ],
3340
+ outputs: [
3341
+ {
3342
+ name: "liquidityGross",
3343
+ type: "uint128",
3344
+ internalType: "uint128"
3345
+ },
3346
+ {
3347
+ name: "liquidityNet",
3348
+ type: "int128",
3349
+ internalType: "int128"
3350
+ },
3351
+ {
3352
+ name: "feeGrowthOutside0X128",
3353
+ type: "uint256",
3354
+ internalType: "uint256"
3355
+ },
3356
+ {
3357
+ name: "feeGrowthOutside1X128",
3358
+ type: "uint256",
3359
+ internalType: "uint256"
3360
+ }
3361
+ ],
3362
+ stateMutability: "view"
3146
3363
  },
3147
3364
  {
3148
- type: "error",
3149
- name: "WithdrawNotAllowed",
3150
- inputs: []
3365
+ type: "function",
3366
+ name: "getTickLiquidity",
3367
+ inputs: [
3368
+ {
3369
+ name: "poolManager",
3370
+ type: "address",
3371
+ internalType: "contract IPoolManager"
3372
+ },
3373
+ {
3374
+ name: "key",
3375
+ type: "tuple",
3376
+ internalType: "struct PoolKey",
3377
+ components: [
3378
+ {
3379
+ name: "currency0",
3380
+ type: "address",
3381
+ internalType: "Currency"
3382
+ },
3383
+ {
3384
+ name: "currency1",
3385
+ type: "address",
3386
+ internalType: "Currency"
3387
+ },
3388
+ {
3389
+ name: "fee",
3390
+ type: "uint24",
3391
+ internalType: "uint24"
3392
+ },
3393
+ {
3394
+ name: "tickSpacing",
3395
+ type: "int24",
3396
+ internalType: "int24"
3397
+ },
3398
+ {
3399
+ name: "hooks",
3400
+ type: "address",
3401
+ internalType: "contract IHooks"
3402
+ }
3403
+ ]
3404
+ },
3405
+ {
3406
+ name: "tick",
3407
+ type: "int24",
3408
+ internalType: "int24"
3409
+ }
3410
+ ],
3411
+ outputs: [{
3412
+ name: "liquidityGross",
3413
+ type: "uint128",
3414
+ internalType: "uint128"
3415
+ }, {
3416
+ name: "liquidityNet",
3417
+ type: "int128",
3418
+ internalType: "int128"
3419
+ }],
3420
+ stateMutability: "view"
3151
3421
  },
3152
3422
  {
3153
- type: "error",
3154
- name: "ZeroAddress",
3155
- inputs: []
3423
+ type: "function",
3424
+ name: "getTickLiquidity",
3425
+ inputs: [
3426
+ {
3427
+ name: "poolManager",
3428
+ type: "address",
3429
+ internalType: "contract IPoolManager"
3430
+ },
3431
+ {
3432
+ name: "poolId",
3433
+ type: "bytes32",
3434
+ internalType: "PoolId"
3435
+ },
3436
+ {
3437
+ name: "tick",
3438
+ type: "int24",
3439
+ internalType: "int24"
3440
+ }
3441
+ ],
3442
+ outputs: [{
3443
+ name: "liquidityGross",
3444
+ type: "uint128",
3445
+ internalType: "uint128"
3446
+ }, {
3447
+ name: "liquidityNet",
3448
+ type: "int128",
3449
+ internalType: "int128"
3450
+ }],
3451
+ stateMutability: "view"
3156
3452
  }
3157
3453
  ];
3158
3454
 
3159
3455
  //#endregion
3160
- export { erc20Abi as i, uniswapMathLensAbi as n, lensAbi as r, optionsMarketAbi as t };
3161
- //# sourceMappingURL=optionsMarket-BbXpQnpV.js.map
3456
+ export { erc20Abi as i, optionsMarketAbi as n, lensAbi as r, statelessStateViewAbi as t };
3457
+ //# sourceMappingURL=statelessStateView-CBkcP7CK.js.map