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