@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
@@ -679,6 +679,11 @@
679
679
  "name": "amountPtWithdrawn",
680
680
  "type": "uint256"
681
681
  },
682
+ {
683
+ "internalType": "uint256",
684
+ "name": "fee",
685
+ "type": "uint256"
686
+ },
682
687
  {
683
688
  "internalType": "bytes",
684
689
  "name": "postStateCheckData",
@@ -815,94 +820,6 @@
815
820
  "stateMutability": "view",
816
821
  "type": "function"
817
822
  },
818
- {
819
- "inputs": [
820
- {
821
- "components": [
822
- {
823
- "components": [
824
- {
825
- "internalType": "bytes32",
826
- "name": "boxId",
827
- "type": "bytes32"
828
- },
829
- {
830
- "internalType": "uint256",
831
- "name": "expiry",
832
- "type": "uint256"
833
- },
834
- {
835
- "internalType": "uint32",
836
- "name": "sessionNonce",
837
- "type": "uint32"
838
- },
839
- {
840
- "internalType": "uint32",
841
- "name": "permitNonceCap",
842
- "type": "uint32"
843
- },
844
- {
845
- "internalType": "uint256",
846
- "name": "swapBridgeSlippage",
847
- "type": "uint256"
848
- },
849
- {
850
- "internalType": "bytes",
851
- "name": "offchainMetadata",
852
- "type": "bytes"
853
- }
854
- ],
855
- "internalType": "struct IPPTLooperEIP712Types.RequestHeader",
856
- "name": "header",
857
- "type": "tuple"
858
- },
859
- {
860
- "internalType": "address",
861
- "name": "initTokenIn",
862
- "type": "address"
863
- },
864
- {
865
- "internalType": "uint256",
866
- "name": "initMinToPtSwapRate",
867
- "type": "uint256"
868
- },
869
- {
870
- "internalType": "uint256",
871
- "name": "minDebtToPtSwapRate",
872
- "type": "uint256"
873
- },
874
- {
875
- "internalType": "uint256",
876
- "name": "postBorrowMaxLTV",
877
- "type": "uint256"
878
- },
879
- {
880
- "internalType": "bool",
881
- "name": "isZeroPriceImpact",
882
- "type": "bool"
883
- },
884
- {
885
- "internalType": "uint256",
886
- "name": "maxFeeRate",
887
- "type": "uint256"
888
- }
889
- ],
890
- "internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
891
- "name": "req",
892
- "type": "tuple"
893
- }
894
- ],
895
- "name": "hashRaw",
896
- "outputs": [
897
- {
898
- "internalType": "bytes32",
899
- "name": "",
900
- "type": "bytes32"
901
- }
902
- ],
903
- "stateMutability": "pure",
904
- "type": "function"
905
- },
906
823
  {
907
824
  "inputs": [
908
825
  {
@@ -1096,6 +1013,89 @@
1096
1013
  "stateMutability": "pure",
1097
1014
  "type": "function"
1098
1015
  },
1016
+ {
1017
+ "inputs": [
1018
+ {
1019
+ "components": [
1020
+ {
1021
+ "components": [
1022
+ {
1023
+ "internalType": "bytes32",
1024
+ "name": "boxId",
1025
+ "type": "bytes32"
1026
+ },
1027
+ {
1028
+ "internalType": "uint256",
1029
+ "name": "expiry",
1030
+ "type": "uint256"
1031
+ },
1032
+ {
1033
+ "internalType": "uint32",
1034
+ "name": "sessionNonce",
1035
+ "type": "uint32"
1036
+ },
1037
+ {
1038
+ "internalType": "uint32",
1039
+ "name": "permitNonceCap",
1040
+ "type": "uint32"
1041
+ },
1042
+ {
1043
+ "internalType": "uint256",
1044
+ "name": "swapBridgeSlippage",
1045
+ "type": "uint256"
1046
+ },
1047
+ {
1048
+ "internalType": "bytes",
1049
+ "name": "offchainMetadata",
1050
+ "type": "bytes"
1051
+ }
1052
+ ],
1053
+ "internalType": "struct IPPTLooperEIP712Types.RequestHeader",
1054
+ "name": "header",
1055
+ "type": "tuple"
1056
+ },
1057
+ {
1058
+ "internalType": "address",
1059
+ "name": "initTokenIn",
1060
+ "type": "address"
1061
+ },
1062
+ {
1063
+ "internalType": "uint256",
1064
+ "name": "initMinToPtSwapRate",
1065
+ "type": "uint256"
1066
+ },
1067
+ {
1068
+ "internalType": "uint256",
1069
+ "name": "minDebtToPtSwapRate",
1070
+ "type": "uint256"
1071
+ },
1072
+ {
1073
+ "internalType": "uint256",
1074
+ "name": "postBorrowMaxLTV",
1075
+ "type": "uint256"
1076
+ },
1077
+ {
1078
+ "internalType": "bool",
1079
+ "name": "isZeroPriceImpact",
1080
+ "type": "bool"
1081
+ }
1082
+ ],
1083
+ "internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
1084
+ "name": "req",
1085
+ "type": "tuple"
1086
+ }
1087
+ ],
1088
+ "name": "hashRaw",
1089
+ "outputs": [
1090
+ {
1091
+ "internalType": "bytes32",
1092
+ "name": "",
1093
+ "type": "bytes32"
1094
+ }
1095
+ ],
1096
+ "stateMutability": "pure",
1097
+ "type": "function"
1098
+ },
1099
1099
  {
1100
1100
  "inputs": [
1101
1101
  {
@@ -1425,11 +1425,6 @@
1425
1425
  "components": [
1426
1426
  {
1427
1427
  "components": [
1428
- {
1429
- "internalType": "address",
1430
- "name": "owner",
1431
- "type": "address"
1432
- },
1433
1428
  {
1434
1429
  "internalType": "bytes32",
1435
1430
  "name": "boxId",
@@ -1441,89 +1436,58 @@
1441
1436
  "type": "uint256"
1442
1437
  },
1443
1438
  {
1444
- "internalType": "uint256",
1445
- "name": "nonce",
1446
- "type": "uint256"
1447
- }
1448
- ],
1449
- "internalType": "struct IPPTLooperEIP712Types.BoxPermit",
1450
- "name": "permit",
1451
- "type": "tuple"
1452
- },
1453
- {
1454
- "components": [
1439
+ "internalType": "uint32",
1440
+ "name": "sessionNonce",
1441
+ "type": "uint32"
1442
+ },
1455
1443
  {
1456
- "internalType": "address",
1457
- "name": "extRouter",
1458
- "type": "address"
1444
+ "internalType": "uint32",
1445
+ "name": "permitNonceCap",
1446
+ "type": "uint32"
1459
1447
  },
1460
1448
  {
1461
- "internalType": "address",
1462
- "name": "approve",
1463
- "type": "address"
1449
+ "internalType": "uint256",
1450
+ "name": "swapBridgeSlippage",
1451
+ "type": "uint256"
1464
1452
  },
1465
1453
  {
1466
1454
  "internalType": "bytes",
1467
- "name": "callData",
1455
+ "name": "offchainMetadata",
1468
1456
  "type": "bytes"
1469
1457
  }
1470
1458
  ],
1471
- "internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
1472
- "name": "swap",
1459
+ "internalType": "struct IPPTLooperEIP712Types.RequestHeader",
1460
+ "name": "header",
1473
1461
  "type": "tuple"
1474
1462
  },
1475
1463
  {
1476
- "components": [
1477
- {
1478
- "components": [
1479
- {
1480
- "internalType": "address",
1481
- "name": "extRouter",
1482
- "type": "address"
1483
- },
1484
- {
1485
- "internalType": "address",
1486
- "name": "approve",
1487
- "type": "address"
1488
- },
1489
- {
1490
- "internalType": "bytes",
1491
- "name": "callData",
1492
- "type": "bytes"
1493
- }
1494
- ],
1495
- "internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
1496
- "name": "call",
1497
- "type": "tuple"
1498
- },
1499
- {
1500
- "internalType": "uint256",
1501
- "name": "maxAmount",
1502
- "type": "uint256"
1503
- },
1504
- {
1505
- "internalType": "uint256",
1506
- "name": "nativeFee",
1507
- "type": "uint256"
1508
- }
1509
- ],
1510
- "internalType": "struct IPPTLooperEIP712Types.BridgeData",
1511
- "name": "bridge",
1512
- "type": "tuple"
1464
+ "internalType": "address",
1465
+ "name": "initTokenIn",
1466
+ "type": "address"
1513
1467
  },
1514
1468
  {
1515
1469
  "internalType": "uint256",
1516
- "name": "amountPtWithdrawn",
1470
+ "name": "initMinToPtSwapRate",
1517
1471
  "type": "uint256"
1518
1472
  },
1519
1473
  {
1520
- "internalType": "bytes",
1521
- "name": "postStateCheckData",
1522
- "type": "bytes"
1474
+ "internalType": "uint256",
1475
+ "name": "minDebtToPtSwapRate",
1476
+ "type": "uint256"
1477
+ },
1478
+ {
1479
+ "internalType": "uint256",
1480
+ "name": "postBorrowMaxLTV",
1481
+ "type": "uint256"
1482
+ },
1483
+ {
1484
+ "internalType": "bool",
1485
+ "name": "isZeroPriceImpact",
1486
+ "type": "bool"
1523
1487
  }
1524
1488
  ],
1525
- "internalType": "struct IPPTLooperEIP712Types.DecreasePositionMessage",
1526
- "name": "ms",
1489
+ "internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
1490
+ "name": "req",
1527
1491
  "type": "tuple"
1528
1492
  }
1529
1493
  ],
@@ -1813,94 +1777,6 @@
1813
1777
  "stateMutability": "view",
1814
1778
  "type": "function"
1815
1779
  },
1816
- {
1817
- "inputs": [
1818
- {
1819
- "components": [
1820
- {
1821
- "components": [
1822
- {
1823
- "internalType": "bytes32",
1824
- "name": "boxId",
1825
- "type": "bytes32"
1826
- },
1827
- {
1828
- "internalType": "uint256",
1829
- "name": "expiry",
1830
- "type": "uint256"
1831
- },
1832
- {
1833
- "internalType": "uint32",
1834
- "name": "sessionNonce",
1835
- "type": "uint32"
1836
- },
1837
- {
1838
- "internalType": "uint32",
1839
- "name": "permitNonceCap",
1840
- "type": "uint32"
1841
- },
1842
- {
1843
- "internalType": "uint256",
1844
- "name": "swapBridgeSlippage",
1845
- "type": "uint256"
1846
- },
1847
- {
1848
- "internalType": "bytes",
1849
- "name": "offchainMetadata",
1850
- "type": "bytes"
1851
- }
1852
- ],
1853
- "internalType": "struct IPPTLooperEIP712Types.RequestHeader",
1854
- "name": "header",
1855
- "type": "tuple"
1856
- },
1857
- {
1858
- "internalType": "address",
1859
- "name": "initTokenIn",
1860
- "type": "address"
1861
- },
1862
- {
1863
- "internalType": "uint256",
1864
- "name": "initMinToPtSwapRate",
1865
- "type": "uint256"
1866
- },
1867
- {
1868
- "internalType": "uint256",
1869
- "name": "minDebtToPtSwapRate",
1870
- "type": "uint256"
1871
- },
1872
- {
1873
- "internalType": "uint256",
1874
- "name": "postBorrowMaxLTV",
1875
- "type": "uint256"
1876
- },
1877
- {
1878
- "internalType": "bool",
1879
- "name": "isZeroPriceImpact",
1880
- "type": "bool"
1881
- },
1882
- {
1883
- "internalType": "uint256",
1884
- "name": "maxFeeRate",
1885
- "type": "uint256"
1886
- }
1887
- ],
1888
- "internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
1889
- "name": "req",
1890
- "type": "tuple"
1891
- }
1892
- ],
1893
- "name": "hashTyped",
1894
- "outputs": [
1895
- {
1896
- "internalType": "bytes32",
1897
- "name": "",
1898
- "type": "bytes32"
1899
- }
1900
- ],
1901
- "stateMutability": "view",
1902
- "type": "function"
1903
- },
1904
1780
  {
1905
1781
  "inputs": [
1906
1782
  {
@@ -2063,6 +1939,130 @@
2063
1939
  "stateMutability": "view",
2064
1940
  "type": "function"
2065
1941
  },
1942
+ {
1943
+ "inputs": [
1944
+ {
1945
+ "components": [
1946
+ {
1947
+ "components": [
1948
+ {
1949
+ "internalType": "address",
1950
+ "name": "owner",
1951
+ "type": "address"
1952
+ },
1953
+ {
1954
+ "internalType": "bytes32",
1955
+ "name": "boxId",
1956
+ "type": "bytes32"
1957
+ },
1958
+ {
1959
+ "internalType": "uint256",
1960
+ "name": "expiry",
1961
+ "type": "uint256"
1962
+ },
1963
+ {
1964
+ "internalType": "uint256",
1965
+ "name": "nonce",
1966
+ "type": "uint256"
1967
+ }
1968
+ ],
1969
+ "internalType": "struct IPPTLooperEIP712Types.BoxPermit",
1970
+ "name": "permit",
1971
+ "type": "tuple"
1972
+ },
1973
+ {
1974
+ "components": [
1975
+ {
1976
+ "internalType": "address",
1977
+ "name": "extRouter",
1978
+ "type": "address"
1979
+ },
1980
+ {
1981
+ "internalType": "address",
1982
+ "name": "approve",
1983
+ "type": "address"
1984
+ },
1985
+ {
1986
+ "internalType": "bytes",
1987
+ "name": "callData",
1988
+ "type": "bytes"
1989
+ }
1990
+ ],
1991
+ "internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
1992
+ "name": "swap",
1993
+ "type": "tuple"
1994
+ },
1995
+ {
1996
+ "components": [
1997
+ {
1998
+ "components": [
1999
+ {
2000
+ "internalType": "address",
2001
+ "name": "extRouter",
2002
+ "type": "address"
2003
+ },
2004
+ {
2005
+ "internalType": "address",
2006
+ "name": "approve",
2007
+ "type": "address"
2008
+ },
2009
+ {
2010
+ "internalType": "bytes",
2011
+ "name": "callData",
2012
+ "type": "bytes"
2013
+ }
2014
+ ],
2015
+ "internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
2016
+ "name": "call",
2017
+ "type": "tuple"
2018
+ },
2019
+ {
2020
+ "internalType": "uint256",
2021
+ "name": "maxAmount",
2022
+ "type": "uint256"
2023
+ },
2024
+ {
2025
+ "internalType": "uint256",
2026
+ "name": "nativeFee",
2027
+ "type": "uint256"
2028
+ }
2029
+ ],
2030
+ "internalType": "struct IPPTLooperEIP712Types.BridgeData",
2031
+ "name": "bridge",
2032
+ "type": "tuple"
2033
+ },
2034
+ {
2035
+ "internalType": "uint256",
2036
+ "name": "amountPtWithdrawn",
2037
+ "type": "uint256"
2038
+ },
2039
+ {
2040
+ "internalType": "uint256",
2041
+ "name": "fee",
2042
+ "type": "uint256"
2043
+ },
2044
+ {
2045
+ "internalType": "bytes",
2046
+ "name": "postStateCheckData",
2047
+ "type": "bytes"
2048
+ }
2049
+ ],
2050
+ "internalType": "struct IPPTLooperEIP712Types.DecreasePositionMessage",
2051
+ "name": "ms",
2052
+ "type": "tuple"
2053
+ }
2054
+ ],
2055
+ "name": "hashTyped",
2056
+ "outputs": [
2057
+ {
2058
+ "internalType": "bytes32",
2059
+ "name": "",
2060
+ "type": "bytes32"
2061
+ }
2062
+ ],
2063
+ "stateMutability": "view",
2064
+ "type": "function"
2065
+ },
2066
2066
  {
2067
2067
  "inputs": [
2068
2068
  {
@@ -2243,11 +2243,6 @@
2243
2243
  "internalType": "bool",
2244
2244
  "name": "isZeroPriceImpact",
2245
2245
  "type": "bool"
2246
- },
2247
- {
2248
- "internalType": "uint256",
2249
- "name": "maxFeeRate",
2250
- "type": "uint256"
2251
2246
  }
2252
2247
  ],
2253
2248
  "internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/42582019d8966a1de29fc09970643580.json"
3
+ "buildInfo": "../../../build-info/db2c48eddcec6e7b50deb184b8782109.json"
4
4
  }
@@ -3,8 +3,8 @@
3
3
  "contractName": "PTLooperEIP712TypesEncodeDataLib",
4
4
  "sourceName": "contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol",
5
5
  "abi": [],
6
- "bytecode": "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122032f3e52b70071a4d3b6866044029ea58fda03f6b0d248eca87a9c1bf9f8e72a564736f6c634300081e0033",
7
- "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040525f5ffdfea264697066735822122032f3e52b70071a4d3b6866044029ea58fda03f6b0d248eca87a9c1bf9f8e72a564736f6c634300081e0033",
6
+ "bytecode": "0x60556032600b8282823980515f1a607314602657634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220e9ec47d48fe8d20d0aa3ef9933c2a1bbdf06f9ae4c03c2312b8e0ac8bdf679c964736f6c634300081e0033",
7
+ "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040525f5ffdfea2646970667358221220e9ec47d48fe8d20d0aa3ef9933c2a1bbdf06f9ae4c03c2312b8e0ac8bdf679c964736f6c634300081e0033",
8
8
  "linkReferences": {},
9
9
  "deployedLinkReferences": {}
10
10
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/e9d29cf3894a3c6a98e4a152f8c81768.json"
3
+ "buildInfo": "../../../build-info/768e03d743bb23f67b2261a19013df04.json"
4
4
  }