@pendle/core-v2 6.9.0 → 6.10.0

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 (110) hide show
  1. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +244 -249
  3. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +1 -1
  4. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +1 -1
  5. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +244 -249
  6. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +1 -1
  7. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +2 -2
  8. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +1 -1
  9. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +246 -251
  10. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +1 -1
  11. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +1 -1
  12. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +1 -1
  13. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +2 -2
  14. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +1 -1
  15. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +2 -2
  16. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.dbg.json +4 -0
  17. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.json +10 -0
  18. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.dbg.json +4 -0
  19. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.json +615 -0
  20. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.dbg.json +4 -0
  21. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.json +280 -0
  22. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
  23. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.json +30 -0
  24. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.dbg.json +4 -0
  25. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.json +322 -0
  26. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.dbg.json +4 -0
  27. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.json +398 -0
  28. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.dbg.json +4 -0
  29. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.json +10 -0
  30. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.dbg.json +4 -0
  31. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.json +651 -0
  32. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.dbg.json +4 -0
  33. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.json +298 -0
  34. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.dbg.json +4 -0
  35. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.json +959 -0
  36. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.dbg.json +4 -0
  37. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.json +30 -0
  38. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.dbg.json +4 -0
  39. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.json +53 -0
  40. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.dbg.json +4 -0
  41. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.json +10 -0
  42. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.dbg.json +4 -0
  43. package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.json +933 -0
  44. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +1 -1
  45. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +2 -2
  46. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +1 -1
  47. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +2 -2
  48. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  49. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  50. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  52. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  54. package/contracts/interfaces/IPPTLooper.sol +2 -4
  55. package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +6 -6
  56. package/contracts/pt-looping/PendlePTLooper.sol +4 -2
  57. package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol +20 -0
  58. package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol +85 -0
  59. package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol +180 -0
  60. package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol +12 -0
  61. package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol +72 -0
  62. package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol +88 -0
  63. package/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol +25 -0
  64. package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol +104 -0
  65. package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol +105 -0
  66. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol +432 -0
  67. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol +10 -0
  68. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol +26 -0
  69. package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol +149 -0
  70. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +3 -0
  71. package/deployments/143-core.json +4 -1
  72. package/deployments/42161-core.json +4 -1
  73. package/deployments/4663-core.json +48 -0
  74. package/deployments/4663-offchain-helper.json +12 -0
  75. package/package.json +1 -1
  76. package/typechain-types/AaveV4MoneyMarket.ts +573 -0
  77. package/typechain-types/AaveV4MoneyMarketView.ts +362 -0
  78. package/typechain-types/EulerMoneyMarket.ts +599 -0
  79. package/typechain-types/EulerMoneyMarketView.ts +375 -0
  80. package/typechain-types/IAaveOracle.ts +17 -149
  81. package/typechain-types/IEVC.ts +1647 -0
  82. package/typechain-types/IEulerFactory.ts +94 -0
  83. package/typechain-types/IEulerPriceOracle.ts +123 -0
  84. package/typechain-types/IEulerVault.ts +1298 -0
  85. package/typechain-types/IHubBase.ts +452 -0
  86. package/typechain-types/IPPTLooper.ts +68 -68
  87. package/typechain-types/ISpoke.ts +577 -0
  88. package/typechain-types/PTLooperBase.ts +68 -68
  89. package/typechain-types/PendlePTLooper.ts +68 -68
  90. package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -1
  91. package/typechain-types/factories/AaveMoneyMarket__factory.ts +1 -1
  92. package/typechain-types/factories/AaveV4MoneyMarketView__factory.ts +349 -0
  93. package/typechain-types/factories/AaveV4MoneyMarket__factory.ts +673 -0
  94. package/typechain-types/factories/EulerMoneyMarketView__factory.ts +371 -0
  95. package/typechain-types/factories/EulerMoneyMarket__factory.ts +720 -0
  96. package/typechain-types/factories/IAaveOracle__factory.ts +3 -93
  97. package/typechain-types/factories/IEVC__factory.ts +968 -0
  98. package/typechain-types/factories/IEulerFactory__factory.ts +42 -0
  99. package/typechain-types/factories/IEulerPriceOracle__factory.ts +68 -0
  100. package/typechain-types/factories/IEulerVault__factory.ts +945 -0
  101. package/typechain-types/factories/IHubBase__factory.ts +334 -0
  102. package/typechain-types/factories/IPPTLooper__factory.ts +243 -248
  103. package/typechain-types/factories/ISpoke__factory.ts +407 -0
  104. package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -1
  105. package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +1 -1
  106. package/typechain-types/factories/PTLooperBase__factory.ts +243 -248
  107. package/typechain-types/factories/PendlePTLooper__factory.ts +244 -249
  108. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  109. package/typechain-types/hardhat.d.ts +99 -0
  110. package/typechain-types/index.ts +22 -2
@@ -625,6 +625,11 @@ const _abi = [
625
625
  name: "amountPtWithdrawn",
626
626
  type: "uint256",
627
627
  },
628
+ {
629
+ internalType: "uint256",
630
+ name: "fee",
631
+ type: "uint256",
632
+ },
628
633
  {
629
634
  internalType: "bytes",
630
635
  name: "postStateCheckData",
@@ -718,94 +723,6 @@ const _abi = [
718
723
  stateMutability: "view",
719
724
  type: "function",
720
725
  },
721
- {
722
- inputs: [
723
- {
724
- components: [
725
- {
726
- components: [
727
- {
728
- internalType: "bytes32",
729
- name: "boxId",
730
- type: "bytes32",
731
- },
732
- {
733
- internalType: "uint256",
734
- name: "expiry",
735
- type: "uint256",
736
- },
737
- {
738
- internalType: "uint32",
739
- name: "sessionNonce",
740
- type: "uint32",
741
- },
742
- {
743
- internalType: "uint32",
744
- name: "permitNonceCap",
745
- type: "uint32",
746
- },
747
- {
748
- internalType: "uint256",
749
- name: "swapBridgeSlippage",
750
- type: "uint256",
751
- },
752
- {
753
- internalType: "bytes",
754
- name: "offchainMetadata",
755
- type: "bytes",
756
- },
757
- ],
758
- internalType: "struct IPPTLooperEIP712Types.RequestHeader",
759
- name: "header",
760
- type: "tuple",
761
- },
762
- {
763
- internalType: "address",
764
- name: "initTokenIn",
765
- type: "address",
766
- },
767
- {
768
- internalType: "uint256",
769
- name: "initMinToPtSwapRate",
770
- type: "uint256",
771
- },
772
- {
773
- internalType: "uint256",
774
- name: "minDebtToPtSwapRate",
775
- type: "uint256",
776
- },
777
- {
778
- internalType: "uint256",
779
- name: "postBorrowMaxLTV",
780
- type: "uint256",
781
- },
782
- {
783
- internalType: "bool",
784
- name: "isZeroPriceImpact",
785
- type: "bool",
786
- },
787
- {
788
- internalType: "uint256",
789
- name: "maxFeeRate",
790
- type: "uint256",
791
- },
792
- ],
793
- internalType: "struct IPPTLooperEIP712Types.IncreasePositionRequest",
794
- name: "req",
795
- type: "tuple",
796
- },
797
- ],
798
- name: "hashRaw",
799
- outputs: [
800
- {
801
- internalType: "bytes32",
802
- name: "",
803
- type: "bytes32",
804
- },
805
- ],
806
- stateMutability: "pure",
807
- type: "function",
808
- },
809
726
  {
810
727
  inputs: [
811
728
  {
@@ -999,6 +916,89 @@ const _abi = [
999
916
  stateMutability: "pure",
1000
917
  type: "function",
1001
918
  },
919
+ {
920
+ inputs: [
921
+ {
922
+ components: [
923
+ {
924
+ components: [
925
+ {
926
+ internalType: "bytes32",
927
+ name: "boxId",
928
+ type: "bytes32",
929
+ },
930
+ {
931
+ internalType: "uint256",
932
+ name: "expiry",
933
+ type: "uint256",
934
+ },
935
+ {
936
+ internalType: "uint32",
937
+ name: "sessionNonce",
938
+ type: "uint32",
939
+ },
940
+ {
941
+ internalType: "uint32",
942
+ name: "permitNonceCap",
943
+ type: "uint32",
944
+ },
945
+ {
946
+ internalType: "uint256",
947
+ name: "swapBridgeSlippage",
948
+ type: "uint256",
949
+ },
950
+ {
951
+ internalType: "bytes",
952
+ name: "offchainMetadata",
953
+ type: "bytes",
954
+ },
955
+ ],
956
+ internalType: "struct IPPTLooperEIP712Types.RequestHeader",
957
+ name: "header",
958
+ type: "tuple",
959
+ },
960
+ {
961
+ internalType: "address",
962
+ name: "initTokenIn",
963
+ type: "address",
964
+ },
965
+ {
966
+ internalType: "uint256",
967
+ name: "initMinToPtSwapRate",
968
+ type: "uint256",
969
+ },
970
+ {
971
+ internalType: "uint256",
972
+ name: "minDebtToPtSwapRate",
973
+ type: "uint256",
974
+ },
975
+ {
976
+ internalType: "uint256",
977
+ name: "postBorrowMaxLTV",
978
+ type: "uint256",
979
+ },
980
+ {
981
+ internalType: "bool",
982
+ name: "isZeroPriceImpact",
983
+ type: "bool",
984
+ },
985
+ ],
986
+ internalType: "struct IPPTLooperEIP712Types.IncreasePositionRequest",
987
+ name: "req",
988
+ type: "tuple",
989
+ },
990
+ ],
991
+ name: "hashRaw",
992
+ outputs: [
993
+ {
994
+ internalType: "bytes32",
995
+ name: "",
996
+ type: "bytes32",
997
+ },
998
+ ],
999
+ stateMutability: "pure",
1000
+ type: "function",
1001
+ },
1002
1002
  {
1003
1003
  inputs: [
1004
1004
  {
@@ -1329,11 +1329,6 @@ const _abi = [
1329
1329
  components: [
1330
1330
  {
1331
1331
  components: [
1332
- {
1333
- internalType: "address",
1334
- name: "owner",
1335
- type: "address",
1336
- },
1337
1332
  {
1338
1333
  internalType: "bytes32",
1339
1334
  name: "boxId",
@@ -1345,89 +1340,58 @@ const _abi = [
1345
1340
  type: "uint256",
1346
1341
  },
1347
1342
  {
1348
- internalType: "uint256",
1349
- name: "nonce",
1350
- type: "uint256",
1343
+ internalType: "uint32",
1344
+ name: "sessionNonce",
1345
+ type: "uint32",
1351
1346
  },
1352
- ],
1353
- internalType: "struct IPPTLooperEIP712Types.BoxPermit",
1354
- name: "permit",
1355
- type: "tuple",
1356
- },
1357
- {
1358
- components: [
1359
1347
  {
1360
- internalType: "address",
1361
- name: "extRouter",
1362
- type: "address",
1348
+ internalType: "uint32",
1349
+ name: "permitNonceCap",
1350
+ type: "uint32",
1363
1351
  },
1364
1352
  {
1365
- internalType: "address",
1366
- name: "approve",
1367
- type: "address",
1353
+ internalType: "uint256",
1354
+ name: "swapBridgeSlippage",
1355
+ type: "uint256",
1368
1356
  },
1369
1357
  {
1370
1358
  internalType: "bytes",
1371
- name: "callData",
1359
+ name: "offchainMetadata",
1372
1360
  type: "bytes",
1373
1361
  },
1374
1362
  ],
1375
- internalType: "struct IPPTLooperEIP712Types.BoxApprovedCall",
1376
- name: "swap",
1363
+ internalType: "struct IPPTLooperEIP712Types.RequestHeader",
1364
+ name: "header",
1377
1365
  type: "tuple",
1378
1366
  },
1379
1367
  {
1380
- components: [
1381
- {
1382
- components: [
1383
- {
1384
- internalType: "address",
1385
- name: "extRouter",
1386
- type: "address",
1387
- },
1388
- {
1389
- internalType: "address",
1390
- name: "approve",
1391
- type: "address",
1392
- },
1393
- {
1394
- internalType: "bytes",
1395
- name: "callData",
1396
- type: "bytes",
1397
- },
1398
- ],
1399
- internalType: "struct IPPTLooperEIP712Types.BoxApprovedCall",
1400
- name: "call",
1401
- type: "tuple",
1402
- },
1403
- {
1404
- internalType: "uint256",
1405
- name: "maxAmount",
1406
- type: "uint256",
1407
- },
1408
- {
1409
- internalType: "uint256",
1410
- name: "nativeFee",
1411
- type: "uint256",
1412
- },
1413
- ],
1414
- internalType: "struct IPPTLooperEIP712Types.BridgeData",
1415
- name: "bridge",
1416
- type: "tuple",
1368
+ internalType: "address",
1369
+ name: "initTokenIn",
1370
+ type: "address",
1417
1371
  },
1418
1372
  {
1419
1373
  internalType: "uint256",
1420
- name: "amountPtWithdrawn",
1374
+ name: "initMinToPtSwapRate",
1421
1375
  type: "uint256",
1422
1376
  },
1423
1377
  {
1424
- internalType: "bytes",
1425
- name: "postStateCheckData",
1426
- type: "bytes",
1378
+ internalType: "uint256",
1379
+ name: "minDebtToPtSwapRate",
1380
+ type: "uint256",
1381
+ },
1382
+ {
1383
+ internalType: "uint256",
1384
+ name: "postBorrowMaxLTV",
1385
+ type: "uint256",
1386
+ },
1387
+ {
1388
+ internalType: "bool",
1389
+ name: "isZeroPriceImpact",
1390
+ type: "bool",
1427
1391
  },
1428
1392
  ],
1429
- internalType: "struct IPPTLooperEIP712Types.DecreasePositionMessage",
1430
- name: "ms",
1393
+ internalType: "struct IPPTLooperEIP712Types.IncreasePositionRequest",
1394
+ name: "req",
1431
1395
  type: "tuple",
1432
1396
  },
1433
1397
  ],
@@ -1718,94 +1682,6 @@ const _abi = [
1718
1682
  stateMutability: "view",
1719
1683
  type: "function",
1720
1684
  },
1721
- {
1722
- inputs: [
1723
- {
1724
- components: [
1725
- {
1726
- components: [
1727
- {
1728
- internalType: "bytes32",
1729
- name: "boxId",
1730
- type: "bytes32",
1731
- },
1732
- {
1733
- internalType: "uint256",
1734
- name: "expiry",
1735
- type: "uint256",
1736
- },
1737
- {
1738
- internalType: "uint32",
1739
- name: "sessionNonce",
1740
- type: "uint32",
1741
- },
1742
- {
1743
- internalType: "uint32",
1744
- name: "permitNonceCap",
1745
- type: "uint32",
1746
- },
1747
- {
1748
- internalType: "uint256",
1749
- name: "swapBridgeSlippage",
1750
- type: "uint256",
1751
- },
1752
- {
1753
- internalType: "bytes",
1754
- name: "offchainMetadata",
1755
- type: "bytes",
1756
- },
1757
- ],
1758
- internalType: "struct IPPTLooperEIP712Types.RequestHeader",
1759
- name: "header",
1760
- type: "tuple",
1761
- },
1762
- {
1763
- internalType: "address",
1764
- name: "initTokenIn",
1765
- type: "address",
1766
- },
1767
- {
1768
- internalType: "uint256",
1769
- name: "initMinToPtSwapRate",
1770
- type: "uint256",
1771
- },
1772
- {
1773
- internalType: "uint256",
1774
- name: "minDebtToPtSwapRate",
1775
- type: "uint256",
1776
- },
1777
- {
1778
- internalType: "uint256",
1779
- name: "postBorrowMaxLTV",
1780
- type: "uint256",
1781
- },
1782
- {
1783
- internalType: "bool",
1784
- name: "isZeroPriceImpact",
1785
- type: "bool",
1786
- },
1787
- {
1788
- internalType: "uint256",
1789
- name: "maxFeeRate",
1790
- type: "uint256",
1791
- },
1792
- ],
1793
- internalType: "struct IPPTLooperEIP712Types.IncreasePositionRequest",
1794
- name: "req",
1795
- type: "tuple",
1796
- },
1797
- ],
1798
- name: "hashTyped",
1799
- outputs: [
1800
- {
1801
- internalType: "bytes32",
1802
- name: "",
1803
- type: "bytes32",
1804
- },
1805
- ],
1806
- stateMutability: "view",
1807
- type: "function",
1808
- },
1809
1685
  {
1810
1686
  inputs: [
1811
1687
  {
@@ -1969,6 +1845,130 @@ const _abi = [
1969
1845
  stateMutability: "view",
1970
1846
  type: "function",
1971
1847
  },
1848
+ {
1849
+ inputs: [
1850
+ {
1851
+ components: [
1852
+ {
1853
+ components: [
1854
+ {
1855
+ internalType: "address",
1856
+ name: "owner",
1857
+ type: "address",
1858
+ },
1859
+ {
1860
+ internalType: "bytes32",
1861
+ name: "boxId",
1862
+ type: "bytes32",
1863
+ },
1864
+ {
1865
+ internalType: "uint256",
1866
+ name: "expiry",
1867
+ type: "uint256",
1868
+ },
1869
+ {
1870
+ internalType: "uint256",
1871
+ name: "nonce",
1872
+ type: "uint256",
1873
+ },
1874
+ ],
1875
+ internalType: "struct IPPTLooperEIP712Types.BoxPermit",
1876
+ name: "permit",
1877
+ type: "tuple",
1878
+ },
1879
+ {
1880
+ components: [
1881
+ {
1882
+ internalType: "address",
1883
+ name: "extRouter",
1884
+ type: "address",
1885
+ },
1886
+ {
1887
+ internalType: "address",
1888
+ name: "approve",
1889
+ type: "address",
1890
+ },
1891
+ {
1892
+ internalType: "bytes",
1893
+ name: "callData",
1894
+ type: "bytes",
1895
+ },
1896
+ ],
1897
+ internalType: "struct IPPTLooperEIP712Types.BoxApprovedCall",
1898
+ name: "swap",
1899
+ type: "tuple",
1900
+ },
1901
+ {
1902
+ components: [
1903
+ {
1904
+ components: [
1905
+ {
1906
+ internalType: "address",
1907
+ name: "extRouter",
1908
+ type: "address",
1909
+ },
1910
+ {
1911
+ internalType: "address",
1912
+ name: "approve",
1913
+ type: "address",
1914
+ },
1915
+ {
1916
+ internalType: "bytes",
1917
+ name: "callData",
1918
+ type: "bytes",
1919
+ },
1920
+ ],
1921
+ internalType: "struct IPPTLooperEIP712Types.BoxApprovedCall",
1922
+ name: "call",
1923
+ type: "tuple",
1924
+ },
1925
+ {
1926
+ internalType: "uint256",
1927
+ name: "maxAmount",
1928
+ type: "uint256",
1929
+ },
1930
+ {
1931
+ internalType: "uint256",
1932
+ name: "nativeFee",
1933
+ type: "uint256",
1934
+ },
1935
+ ],
1936
+ internalType: "struct IPPTLooperEIP712Types.BridgeData",
1937
+ name: "bridge",
1938
+ type: "tuple",
1939
+ },
1940
+ {
1941
+ internalType: "uint256",
1942
+ name: "amountPtWithdrawn",
1943
+ type: "uint256",
1944
+ },
1945
+ {
1946
+ internalType: "uint256",
1947
+ name: "fee",
1948
+ type: "uint256",
1949
+ },
1950
+ {
1951
+ internalType: "bytes",
1952
+ name: "postStateCheckData",
1953
+ type: "bytes",
1954
+ },
1955
+ ],
1956
+ internalType: "struct IPPTLooperEIP712Types.DecreasePositionMessage",
1957
+ name: "ms",
1958
+ type: "tuple",
1959
+ },
1960
+ ],
1961
+ name: "hashTyped",
1962
+ outputs: [
1963
+ {
1964
+ internalType: "bytes32",
1965
+ name: "",
1966
+ type: "bytes32",
1967
+ },
1968
+ ],
1969
+ stateMutability: "view",
1970
+ type: "function",
1971
+ },
1972
1972
  {
1973
1973
  inputs: [
1974
1974
  {
@@ -2150,11 +2150,6 @@ const _abi = [
2150
2150
  name: "isZeroPriceImpact",
2151
2151
  type: "bool",
2152
2152
  },
2153
- {
2154
- internalType: "uint256",
2155
- name: "maxFeeRate",
2156
- type: "uint256",
2157
- },
2158
2153
  ],
2159
2154
  internalType: "struct IPPTLooperEIP712Types.IncreasePositionRequest",
2160
2155
  name: "req",