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