@pendle/core-v2 6.8.1 → 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.
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +244 -249
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +244 -249
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +2 -2
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +246 -251
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.json +615 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.json +280 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.json +30 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.json +322 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.json +398 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.json +651 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.json +298 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.json +959 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.json +30 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.json +53 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.json +933 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/interfaces/IPPTLooper.sol +2 -4
- package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +6 -6
- package/contracts/pt-looping/PendlePTLooper.sol +4 -2
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol +20 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol +85 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol +180 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol +12 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol +72 -0
- package/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol +88 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol +25 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol +104 -0
- package/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol +105 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol +432 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol +10 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol +26 -0
- package/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol +149 -0
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +6 -0
- package/deployments/1-offchain-helper.json +2 -1
- package/deployments/143-core.json +7 -1
- package/deployments/143-offchain-helper.json +2 -1
- package/deployments/196-core.json +49 -0
- package/deployments/196-offchain-helper.json +12 -0
- package/deployments/42161-core.json +4 -1
- package/deployments/42161-offchain-helper.json +2 -1
- package/deployments/4663-core.json +48 -0
- package/deployments/4663-offchain-helper.json +12 -0
- package/deployments/56-offchain-helper.json +2 -1
- package/deployments/8453-offchain-helper.json +2 -1
- package/deployments/9745-offchain-helper.json +2 -1
- package/deployments/999-offchain-helper.json +2 -1
- package/package.json +1 -1
- package/typechain-types/AaveV4MoneyMarket.ts +573 -0
- package/typechain-types/AaveV4MoneyMarketView.ts +362 -0
- package/typechain-types/EulerMoneyMarket.ts +599 -0
- package/typechain-types/EulerMoneyMarketView.ts +375 -0
- package/typechain-types/IAaveOracle.ts +17 -149
- package/typechain-types/IEVC.ts +1647 -0
- package/typechain-types/IEulerFactory.ts +94 -0
- package/typechain-types/IEulerPriceOracle.ts +123 -0
- package/typechain-types/IEulerVault.ts +1298 -0
- package/typechain-types/IHubBase.ts +452 -0
- package/typechain-types/IPPTLooper.ts +68 -68
- package/typechain-types/ISpoke.ts +577 -0
- package/typechain-types/PTLooperBase.ts +68 -68
- package/typechain-types/PendlePTLooper.ts +68 -68
- package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/AaveMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/AaveV4MoneyMarketView__factory.ts +349 -0
- package/typechain-types/factories/AaveV4MoneyMarket__factory.ts +673 -0
- package/typechain-types/factories/EulerMoneyMarketView__factory.ts +371 -0
- package/typechain-types/factories/EulerMoneyMarket__factory.ts +720 -0
- package/typechain-types/factories/IAaveOracle__factory.ts +3 -93
- package/typechain-types/factories/IEVC__factory.ts +968 -0
- package/typechain-types/factories/IEulerFactory__factory.ts +42 -0
- package/typechain-types/factories/IEulerPriceOracle__factory.ts +68 -0
- package/typechain-types/factories/IEulerVault__factory.ts +945 -0
- package/typechain-types/factories/IHubBase__factory.ts +334 -0
- package/typechain-types/factories/IPPTLooper__factory.ts +243 -248
- package/typechain-types/factories/ISpoke__factory.ts +407 -0
- package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/PTLooperBase__factory.ts +243 -248
- package/typechain-types/factories/PendlePTLooper__factory.ts +244 -249
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +99 -45
- package/typechain-types/index.ts +22 -12
|
@@ -621,6 +621,11 @@
|
|
|
621
621
|
"name": "amountPtWithdrawn",
|
|
622
622
|
"type": "uint256"
|
|
623
623
|
},
|
|
624
|
+
{
|
|
625
|
+
"internalType": "uint256",
|
|
626
|
+
"name": "fee",
|
|
627
|
+
"type": "uint256"
|
|
628
|
+
},
|
|
624
629
|
{
|
|
625
630
|
"internalType": "bytes",
|
|
626
631
|
"name": "postStateCheckData",
|
|
@@ -714,94 +719,6 @@
|
|
|
714
719
|
"stateMutability": "view",
|
|
715
720
|
"type": "function"
|
|
716
721
|
},
|
|
717
|
-
{
|
|
718
|
-
"inputs": [
|
|
719
|
-
{
|
|
720
|
-
"components": [
|
|
721
|
-
{
|
|
722
|
-
"components": [
|
|
723
|
-
{
|
|
724
|
-
"internalType": "bytes32",
|
|
725
|
-
"name": "boxId",
|
|
726
|
-
"type": "bytes32"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"internalType": "uint256",
|
|
730
|
-
"name": "expiry",
|
|
731
|
-
"type": "uint256"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"internalType": "uint32",
|
|
735
|
-
"name": "sessionNonce",
|
|
736
|
-
"type": "uint32"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"internalType": "uint32",
|
|
740
|
-
"name": "permitNonceCap",
|
|
741
|
-
"type": "uint32"
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"internalType": "uint256",
|
|
745
|
-
"name": "swapBridgeSlippage",
|
|
746
|
-
"type": "uint256"
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"internalType": "bytes",
|
|
750
|
-
"name": "offchainMetadata",
|
|
751
|
-
"type": "bytes"
|
|
752
|
-
}
|
|
753
|
-
],
|
|
754
|
-
"internalType": "struct IPPTLooperEIP712Types.RequestHeader",
|
|
755
|
-
"name": "header",
|
|
756
|
-
"type": "tuple"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"internalType": "address",
|
|
760
|
-
"name": "initTokenIn",
|
|
761
|
-
"type": "address"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"internalType": "uint256",
|
|
765
|
-
"name": "initMinToPtSwapRate",
|
|
766
|
-
"type": "uint256"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"internalType": "uint256",
|
|
770
|
-
"name": "minDebtToPtSwapRate",
|
|
771
|
-
"type": "uint256"
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
"internalType": "uint256",
|
|
775
|
-
"name": "postBorrowMaxLTV",
|
|
776
|
-
"type": "uint256"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
"internalType": "bool",
|
|
780
|
-
"name": "isZeroPriceImpact",
|
|
781
|
-
"type": "bool"
|
|
782
|
-
},
|
|
783
|
-
{
|
|
784
|
-
"internalType": "uint256",
|
|
785
|
-
"name": "maxFeeRate",
|
|
786
|
-
"type": "uint256"
|
|
787
|
-
}
|
|
788
|
-
],
|
|
789
|
-
"internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
|
|
790
|
-
"name": "req",
|
|
791
|
-
"type": "tuple"
|
|
792
|
-
}
|
|
793
|
-
],
|
|
794
|
-
"name": "hashRaw",
|
|
795
|
-
"outputs": [
|
|
796
|
-
{
|
|
797
|
-
"internalType": "bytes32",
|
|
798
|
-
"name": "",
|
|
799
|
-
"type": "bytes32"
|
|
800
|
-
}
|
|
801
|
-
],
|
|
802
|
-
"stateMutability": "pure",
|
|
803
|
-
"type": "function"
|
|
804
|
-
},
|
|
805
722
|
{
|
|
806
723
|
"inputs": [
|
|
807
724
|
{
|
|
@@ -995,6 +912,89 @@
|
|
|
995
912
|
"stateMutability": "pure",
|
|
996
913
|
"type": "function"
|
|
997
914
|
},
|
|
915
|
+
{
|
|
916
|
+
"inputs": [
|
|
917
|
+
{
|
|
918
|
+
"components": [
|
|
919
|
+
{
|
|
920
|
+
"components": [
|
|
921
|
+
{
|
|
922
|
+
"internalType": "bytes32",
|
|
923
|
+
"name": "boxId",
|
|
924
|
+
"type": "bytes32"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"internalType": "uint256",
|
|
928
|
+
"name": "expiry",
|
|
929
|
+
"type": "uint256"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"internalType": "uint32",
|
|
933
|
+
"name": "sessionNonce",
|
|
934
|
+
"type": "uint32"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"internalType": "uint32",
|
|
938
|
+
"name": "permitNonceCap",
|
|
939
|
+
"type": "uint32"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"internalType": "uint256",
|
|
943
|
+
"name": "swapBridgeSlippage",
|
|
944
|
+
"type": "uint256"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"internalType": "bytes",
|
|
948
|
+
"name": "offchainMetadata",
|
|
949
|
+
"type": "bytes"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"internalType": "struct IPPTLooperEIP712Types.RequestHeader",
|
|
953
|
+
"name": "header",
|
|
954
|
+
"type": "tuple"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"internalType": "address",
|
|
958
|
+
"name": "initTokenIn",
|
|
959
|
+
"type": "address"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"internalType": "uint256",
|
|
963
|
+
"name": "initMinToPtSwapRate",
|
|
964
|
+
"type": "uint256"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"internalType": "uint256",
|
|
968
|
+
"name": "minDebtToPtSwapRate",
|
|
969
|
+
"type": "uint256"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"internalType": "uint256",
|
|
973
|
+
"name": "postBorrowMaxLTV",
|
|
974
|
+
"type": "uint256"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"internalType": "bool",
|
|
978
|
+
"name": "isZeroPriceImpact",
|
|
979
|
+
"type": "bool"
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
|
|
983
|
+
"name": "req",
|
|
984
|
+
"type": "tuple"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"name": "hashRaw",
|
|
988
|
+
"outputs": [
|
|
989
|
+
{
|
|
990
|
+
"internalType": "bytes32",
|
|
991
|
+
"name": "",
|
|
992
|
+
"type": "bytes32"
|
|
993
|
+
}
|
|
994
|
+
],
|
|
995
|
+
"stateMutability": "pure",
|
|
996
|
+
"type": "function"
|
|
997
|
+
},
|
|
998
998
|
{
|
|
999
999
|
"inputs": [
|
|
1000
1000
|
{
|
|
@@ -1324,11 +1324,6 @@
|
|
|
1324
1324
|
"components": [
|
|
1325
1325
|
{
|
|
1326
1326
|
"components": [
|
|
1327
|
-
{
|
|
1328
|
-
"internalType": "address",
|
|
1329
|
-
"name": "owner",
|
|
1330
|
-
"type": "address"
|
|
1331
|
-
},
|
|
1332
1327
|
{
|
|
1333
1328
|
"internalType": "bytes32",
|
|
1334
1329
|
"name": "boxId",
|
|
@@ -1340,89 +1335,58 @@
|
|
|
1340
1335
|
"type": "uint256"
|
|
1341
1336
|
},
|
|
1342
1337
|
{
|
|
1343
|
-
"internalType": "
|
|
1344
|
-
"name": "
|
|
1345
|
-
"type": "
|
|
1346
|
-
}
|
|
1347
|
-
],
|
|
1348
|
-
"internalType": "struct IPPTLooperEIP712Types.BoxPermit",
|
|
1349
|
-
"name": "permit",
|
|
1350
|
-
"type": "tuple"
|
|
1351
|
-
},
|
|
1352
|
-
{
|
|
1353
|
-
"components": [
|
|
1338
|
+
"internalType": "uint32",
|
|
1339
|
+
"name": "sessionNonce",
|
|
1340
|
+
"type": "uint32"
|
|
1341
|
+
},
|
|
1354
1342
|
{
|
|
1355
|
-
"internalType": "
|
|
1356
|
-
"name": "
|
|
1357
|
-
"type": "
|
|
1343
|
+
"internalType": "uint32",
|
|
1344
|
+
"name": "permitNonceCap",
|
|
1345
|
+
"type": "uint32"
|
|
1358
1346
|
},
|
|
1359
1347
|
{
|
|
1360
|
-
"internalType": "
|
|
1361
|
-
"name": "
|
|
1362
|
-
"type": "
|
|
1348
|
+
"internalType": "uint256",
|
|
1349
|
+
"name": "swapBridgeSlippage",
|
|
1350
|
+
"type": "uint256"
|
|
1363
1351
|
},
|
|
1364
1352
|
{
|
|
1365
1353
|
"internalType": "bytes",
|
|
1366
|
-
"name": "
|
|
1354
|
+
"name": "offchainMetadata",
|
|
1367
1355
|
"type": "bytes"
|
|
1368
1356
|
}
|
|
1369
1357
|
],
|
|
1370
|
-
"internalType": "struct IPPTLooperEIP712Types.
|
|
1371
|
-
"name": "
|
|
1358
|
+
"internalType": "struct IPPTLooperEIP712Types.RequestHeader",
|
|
1359
|
+
"name": "header",
|
|
1372
1360
|
"type": "tuple"
|
|
1373
1361
|
},
|
|
1374
1362
|
{
|
|
1375
|
-
"
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
{
|
|
1379
|
-
"internalType": "address",
|
|
1380
|
-
"name": "extRouter",
|
|
1381
|
-
"type": "address"
|
|
1382
|
-
},
|
|
1383
|
-
{
|
|
1384
|
-
"internalType": "address",
|
|
1385
|
-
"name": "approve",
|
|
1386
|
-
"type": "address"
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
"internalType": "bytes",
|
|
1390
|
-
"name": "callData",
|
|
1391
|
-
"type": "bytes"
|
|
1392
|
-
}
|
|
1393
|
-
],
|
|
1394
|
-
"internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
|
|
1395
|
-
"name": "call",
|
|
1396
|
-
"type": "tuple"
|
|
1397
|
-
},
|
|
1398
|
-
{
|
|
1399
|
-
"internalType": "uint256",
|
|
1400
|
-
"name": "maxAmount",
|
|
1401
|
-
"type": "uint256"
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
"internalType": "uint256",
|
|
1405
|
-
"name": "nativeFee",
|
|
1406
|
-
"type": "uint256"
|
|
1407
|
-
}
|
|
1408
|
-
],
|
|
1409
|
-
"internalType": "struct IPPTLooperEIP712Types.BridgeData",
|
|
1410
|
-
"name": "bridge",
|
|
1411
|
-
"type": "tuple"
|
|
1363
|
+
"internalType": "address",
|
|
1364
|
+
"name": "initTokenIn",
|
|
1365
|
+
"type": "address"
|
|
1412
1366
|
},
|
|
1413
1367
|
{
|
|
1414
1368
|
"internalType": "uint256",
|
|
1415
|
-
"name": "
|
|
1369
|
+
"name": "initMinToPtSwapRate",
|
|
1416
1370
|
"type": "uint256"
|
|
1417
1371
|
},
|
|
1418
1372
|
{
|
|
1419
|
-
"internalType": "
|
|
1420
|
-
"name": "
|
|
1421
|
-
"type": "
|
|
1373
|
+
"internalType": "uint256",
|
|
1374
|
+
"name": "minDebtToPtSwapRate",
|
|
1375
|
+
"type": "uint256"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"internalType": "uint256",
|
|
1379
|
+
"name": "postBorrowMaxLTV",
|
|
1380
|
+
"type": "uint256"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"internalType": "bool",
|
|
1384
|
+
"name": "isZeroPriceImpact",
|
|
1385
|
+
"type": "bool"
|
|
1422
1386
|
}
|
|
1423
1387
|
],
|
|
1424
|
-
"internalType": "struct IPPTLooperEIP712Types.
|
|
1425
|
-
"name": "
|
|
1388
|
+
"internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
|
|
1389
|
+
"name": "req",
|
|
1426
1390
|
"type": "tuple"
|
|
1427
1391
|
}
|
|
1428
1392
|
],
|
|
@@ -1712,94 +1676,6 @@
|
|
|
1712
1676
|
"stateMutability": "view",
|
|
1713
1677
|
"type": "function"
|
|
1714
1678
|
},
|
|
1715
|
-
{
|
|
1716
|
-
"inputs": [
|
|
1717
|
-
{
|
|
1718
|
-
"components": [
|
|
1719
|
-
{
|
|
1720
|
-
"components": [
|
|
1721
|
-
{
|
|
1722
|
-
"internalType": "bytes32",
|
|
1723
|
-
"name": "boxId",
|
|
1724
|
-
"type": "bytes32"
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
"internalType": "uint256",
|
|
1728
|
-
"name": "expiry",
|
|
1729
|
-
"type": "uint256"
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
"internalType": "uint32",
|
|
1733
|
-
"name": "sessionNonce",
|
|
1734
|
-
"type": "uint32"
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
"internalType": "uint32",
|
|
1738
|
-
"name": "permitNonceCap",
|
|
1739
|
-
"type": "uint32"
|
|
1740
|
-
},
|
|
1741
|
-
{
|
|
1742
|
-
"internalType": "uint256",
|
|
1743
|
-
"name": "swapBridgeSlippage",
|
|
1744
|
-
"type": "uint256"
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
"internalType": "bytes",
|
|
1748
|
-
"name": "offchainMetadata",
|
|
1749
|
-
"type": "bytes"
|
|
1750
|
-
}
|
|
1751
|
-
],
|
|
1752
|
-
"internalType": "struct IPPTLooperEIP712Types.RequestHeader",
|
|
1753
|
-
"name": "header",
|
|
1754
|
-
"type": "tuple"
|
|
1755
|
-
},
|
|
1756
|
-
{
|
|
1757
|
-
"internalType": "address",
|
|
1758
|
-
"name": "initTokenIn",
|
|
1759
|
-
"type": "address"
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
"internalType": "uint256",
|
|
1763
|
-
"name": "initMinToPtSwapRate",
|
|
1764
|
-
"type": "uint256"
|
|
1765
|
-
},
|
|
1766
|
-
{
|
|
1767
|
-
"internalType": "uint256",
|
|
1768
|
-
"name": "minDebtToPtSwapRate",
|
|
1769
|
-
"type": "uint256"
|
|
1770
|
-
},
|
|
1771
|
-
{
|
|
1772
|
-
"internalType": "uint256",
|
|
1773
|
-
"name": "postBorrowMaxLTV",
|
|
1774
|
-
"type": "uint256"
|
|
1775
|
-
},
|
|
1776
|
-
{
|
|
1777
|
-
"internalType": "bool",
|
|
1778
|
-
"name": "isZeroPriceImpact",
|
|
1779
|
-
"type": "bool"
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
1782
|
-
"internalType": "uint256",
|
|
1783
|
-
"name": "maxFeeRate",
|
|
1784
|
-
"type": "uint256"
|
|
1785
|
-
}
|
|
1786
|
-
],
|
|
1787
|
-
"internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
|
|
1788
|
-
"name": "req",
|
|
1789
|
-
"type": "tuple"
|
|
1790
|
-
}
|
|
1791
|
-
],
|
|
1792
|
-
"name": "hashTyped",
|
|
1793
|
-
"outputs": [
|
|
1794
|
-
{
|
|
1795
|
-
"internalType": "bytes32",
|
|
1796
|
-
"name": "",
|
|
1797
|
-
"type": "bytes32"
|
|
1798
|
-
}
|
|
1799
|
-
],
|
|
1800
|
-
"stateMutability": "view",
|
|
1801
|
-
"type": "function"
|
|
1802
|
-
},
|
|
1803
1679
|
{
|
|
1804
1680
|
"inputs": [
|
|
1805
1681
|
{
|
|
@@ -1962,6 +1838,130 @@
|
|
|
1962
1838
|
"stateMutability": "view",
|
|
1963
1839
|
"type": "function"
|
|
1964
1840
|
},
|
|
1841
|
+
{
|
|
1842
|
+
"inputs": [
|
|
1843
|
+
{
|
|
1844
|
+
"components": [
|
|
1845
|
+
{
|
|
1846
|
+
"components": [
|
|
1847
|
+
{
|
|
1848
|
+
"internalType": "address",
|
|
1849
|
+
"name": "owner",
|
|
1850
|
+
"type": "address"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"internalType": "bytes32",
|
|
1854
|
+
"name": "boxId",
|
|
1855
|
+
"type": "bytes32"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"internalType": "uint256",
|
|
1859
|
+
"name": "expiry",
|
|
1860
|
+
"type": "uint256"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"internalType": "uint256",
|
|
1864
|
+
"name": "nonce",
|
|
1865
|
+
"type": "uint256"
|
|
1866
|
+
}
|
|
1867
|
+
],
|
|
1868
|
+
"internalType": "struct IPPTLooperEIP712Types.BoxPermit",
|
|
1869
|
+
"name": "permit",
|
|
1870
|
+
"type": "tuple"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"components": [
|
|
1874
|
+
{
|
|
1875
|
+
"internalType": "address",
|
|
1876
|
+
"name": "extRouter",
|
|
1877
|
+
"type": "address"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
"internalType": "address",
|
|
1881
|
+
"name": "approve",
|
|
1882
|
+
"type": "address"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"internalType": "bytes",
|
|
1886
|
+
"name": "callData",
|
|
1887
|
+
"type": "bytes"
|
|
1888
|
+
}
|
|
1889
|
+
],
|
|
1890
|
+
"internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
|
|
1891
|
+
"name": "swap",
|
|
1892
|
+
"type": "tuple"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"components": [
|
|
1896
|
+
{
|
|
1897
|
+
"components": [
|
|
1898
|
+
{
|
|
1899
|
+
"internalType": "address",
|
|
1900
|
+
"name": "extRouter",
|
|
1901
|
+
"type": "address"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"internalType": "address",
|
|
1905
|
+
"name": "approve",
|
|
1906
|
+
"type": "address"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
"internalType": "bytes",
|
|
1910
|
+
"name": "callData",
|
|
1911
|
+
"type": "bytes"
|
|
1912
|
+
}
|
|
1913
|
+
],
|
|
1914
|
+
"internalType": "struct IPPTLooperEIP712Types.BoxApprovedCall",
|
|
1915
|
+
"name": "call",
|
|
1916
|
+
"type": "tuple"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"internalType": "uint256",
|
|
1920
|
+
"name": "maxAmount",
|
|
1921
|
+
"type": "uint256"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"internalType": "uint256",
|
|
1925
|
+
"name": "nativeFee",
|
|
1926
|
+
"type": "uint256"
|
|
1927
|
+
}
|
|
1928
|
+
],
|
|
1929
|
+
"internalType": "struct IPPTLooperEIP712Types.BridgeData",
|
|
1930
|
+
"name": "bridge",
|
|
1931
|
+
"type": "tuple"
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"internalType": "uint256",
|
|
1935
|
+
"name": "amountPtWithdrawn",
|
|
1936
|
+
"type": "uint256"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"internalType": "uint256",
|
|
1940
|
+
"name": "fee",
|
|
1941
|
+
"type": "uint256"
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"internalType": "bytes",
|
|
1945
|
+
"name": "postStateCheckData",
|
|
1946
|
+
"type": "bytes"
|
|
1947
|
+
}
|
|
1948
|
+
],
|
|
1949
|
+
"internalType": "struct IPPTLooperEIP712Types.DecreasePositionMessage",
|
|
1950
|
+
"name": "ms",
|
|
1951
|
+
"type": "tuple"
|
|
1952
|
+
}
|
|
1953
|
+
],
|
|
1954
|
+
"name": "hashTyped",
|
|
1955
|
+
"outputs": [
|
|
1956
|
+
{
|
|
1957
|
+
"internalType": "bytes32",
|
|
1958
|
+
"name": "",
|
|
1959
|
+
"type": "bytes32"
|
|
1960
|
+
}
|
|
1961
|
+
],
|
|
1962
|
+
"stateMutability": "view",
|
|
1963
|
+
"type": "function"
|
|
1964
|
+
},
|
|
1965
1965
|
{
|
|
1966
1966
|
"inputs": [
|
|
1967
1967
|
{
|
|
@@ -2142,11 +2142,6 @@
|
|
|
2142
2142
|
"internalType": "bool",
|
|
2143
2143
|
"name": "isZeroPriceImpact",
|
|
2144
2144
|
"type": "bool"
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
"internalType": "uint256",
|
|
2148
|
-
"name": "maxFeeRate",
|
|
2149
|
-
"type": "uint256"
|
|
2150
2145
|
}
|
|
2151
2146
|
],
|
|
2152
2147
|
"internalType": "struct IPPTLooperEIP712Types.IncreasePositionRequest",
|