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