@pendle/core-v2 4.0.5 → 4.1.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/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.json +20 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol/PendleL2LRTSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol/PendleL2LRTSY.json +1054 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.json +1141 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.json +1044 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.json +2 -2
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +0 -45
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +0 -69
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +0 -26
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -140
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoOracle.sol/IRenzoOracle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoOracle.sol/IRenzoOracle.json +64 -0
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoRestakeManager.sol/IRenzoRestakeManager.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Renzo/IRenzoRestakeManager.sol/IRenzoRestakeManager.json +102 -0
- package/build/artifacts/contracts/interfaces/Swell/IRswETH.sol/IRswETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Swell/IRswETH.sol/IRswETH.json +44 -0
- package/build/artifacts/contracts/interfaces/Swell/ISwETH.sol/ISwETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{ISwETH.sol → Swell/ISwETH.sol}/ISwETH.json +8 -8
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +30 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +307 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +409 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +1352 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +247 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +202 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +93 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.json +10 -0
- package/build/artifacts/contracts/oracles/PendleRedStoneRateOracle.sol/PendleRedStoneRateOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendleRedStoneRateOracle.sol/PendleRedStoneRateOracle.json +66 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.json +168 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.json +378 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.json +2 -2
- package/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol +18 -9
- package/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol +93 -0
- package/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol +139 -0
- package/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol +101 -0
- package/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol +1 -1
- package/contracts/interfaces/IPActionMarketCoreStatic.sol +8 -17
- package/contracts/interfaces/IPActionMintRedeemStatic.sol +4 -16
- package/contracts/interfaces/IPActionStorageStatic.sol +0 -4
- package/contracts/interfaces/Renzo/IRenzoOracle.sol +8 -0
- package/contracts/interfaces/Renzo/IRenzoRestakeManager.sol +14 -0
- package/contracts/interfaces/Swell/IRswETH.sol +10 -0
- package/contracts/interfaces/{ISwETH.sol → Swell/ISwETH.sol} +2 -2
- package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +19 -0
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +109 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +182 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +672 -0
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +116 -0
- package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +64 -0
- package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +55 -0
- package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +20 -0
- package/contracts/oracles/PendleRedStoneRateOracle.sol +23 -0
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol +58 -1
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol +107 -1
- package/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol +14 -0
- package/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol +32 -0
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol +6 -0
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol +59 -2
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol +22 -1
- package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol +24 -0
- package/deployments/1-core.json +1 -1
- package/deployments/1-markets/EZETH-JUNE2024.json +11 -0
- package/deployments/1-markets/RSETH-KELP-JUNE2024.json +11 -0
- package/deployments/10-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/deployments/42161-markets/RSETH-APR2024-ARBITRUM.json +11 -0
- package/deployments/42161-markets/WEETH-APR2024.json +11 -0
- package/deployments/56-core.json +1 -1
- package/deployments/merkle-distribution/2024-01-25.json +9615 -0
- package/package.json +1 -1
- package/typechain-types/IExecutorHelper.ts +273 -0
- package/typechain-types/IExecutorHelperL2.ts +455 -0
- package/typechain-types/IPActionMarketCoreStatic.ts +18 -63
- package/typechain-types/IPActionMintRedeemStatic.ts +10 -102
- package/typechain-types/IPActionStorageStatic.ts +0 -55
- package/typechain-types/IPRouterStatic.ts +28 -220
- package/typechain-types/IRenzoOracle.ts +152 -0
- package/typechain-types/IRenzoRestakeManager.ts +219 -0
- package/typechain-types/IRswETH.ts +138 -0
- package/typechain-types/ISwETH.ts +24 -9
- package/typechain-types/PendleEzETHSY.ts +1471 -0
- package/typechain-types/PendleL2LRTSY.ts +1323 -0
- package/typechain-types/PendleRedStoneRateOracle.ts +113 -0
- package/typechain-types/PendleRsETHSY.ts +21 -0
- package/typechain-types/PendleRswETHSY.ts +1294 -0
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/IExecutorHelperL2__factory.ts +378 -0
- package/typechain-types/factories/IExecutorHelper__factory.ts +168 -0
- package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +0 -45
- package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +0 -69
- package/typechain-types/factories/IPActionStorageStatic__factory.ts +0 -26
- package/typechain-types/factories/IPRouterStatic__factory.ts +0 -140
- package/typechain-types/factories/IRenzoOracle__factory.ts +76 -0
- package/typechain-types/factories/IRenzoRestakeManager__factory.ts +121 -0
- package/typechain-types/factories/IRswETH__factory.ts +56 -0
- package/typechain-types/factories/ISwETH__factory.ts +7 -7
- package/typechain-types/factories/PendleAaveV3SY__factory.ts +1 -1
- package/typechain-types/factories/PendleEzETHSY__factory.ts +1218 -0
- package/typechain-types/factories/PendleL2LRTSY__factory.ts +1139 -0
- package/typechain-types/factories/PendleRedStoneRateOracle__factory.ts +142 -0
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRsETHSY__factory.ts +23 -1
- package/typechain-types/factories/PendleRswETHSY__factory.ts +1117 -0
- package/typechain-types/factories/PendleSwapL1__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL2__factory.ts +1 -1
- package/typechain-types/factories/PendleWEEthSY__factory.ts +1 -1
- package/typechain-types/factories/SwETHSY__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +135 -0
- package/typechain-types/index.ts +28 -0
- package/build/artifacts/contracts/interfaces/ISwETH.sol/ISwETH.dbg.json +0 -4
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ActionMintRedeemStatic",
|
|
4
|
+
"sourceName": "contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "YCExpired",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "SY",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "tokenIn",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "netSyOut",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"name": "getAmountTokenToMintSy",
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint256",
|
|
33
|
+
"name": "netTokenIn",
|
|
34
|
+
"type": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"stateMutability": "view",
|
|
38
|
+
"type": "function"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "YT",
|
|
45
|
+
"type": "address"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"internalType": "uint256",
|
|
49
|
+
"name": "netSyToMint",
|
|
50
|
+
"type": "uint256"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"name": "mintPyFromSyStatic",
|
|
54
|
+
"outputs": [
|
|
55
|
+
{
|
|
56
|
+
"internalType": "uint256",
|
|
57
|
+
"name": "netPYOut",
|
|
58
|
+
"type": "uint256"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"stateMutability": "view",
|
|
62
|
+
"type": "function"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"inputs": [
|
|
66
|
+
{
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "YT",
|
|
69
|
+
"type": "address"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "address",
|
|
73
|
+
"name": "tokenIn",
|
|
74
|
+
"type": "address"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"internalType": "uint256",
|
|
78
|
+
"name": "netTokenIn",
|
|
79
|
+
"type": "uint256"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"name": "mintPyFromTokenStatic",
|
|
83
|
+
"outputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "uint256",
|
|
86
|
+
"name": "netPyOut",
|
|
87
|
+
"type": "uint256"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"stateMutability": "view",
|
|
91
|
+
"type": "function"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "address",
|
|
97
|
+
"name": "SY",
|
|
98
|
+
"type": "address"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"internalType": "address",
|
|
102
|
+
"name": "tokenIn",
|
|
103
|
+
"type": "address"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "uint256",
|
|
107
|
+
"name": "netTokenIn",
|
|
108
|
+
"type": "uint256"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"name": "mintSyFromTokenStatic",
|
|
112
|
+
"outputs": [
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint256",
|
|
115
|
+
"name": "netSyOut",
|
|
116
|
+
"type": "uint256"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"stateMutability": "view",
|
|
120
|
+
"type": "function"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"inputs": [
|
|
124
|
+
{
|
|
125
|
+
"internalType": "address",
|
|
126
|
+
"name": "market",
|
|
127
|
+
"type": "address"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"name": "pyIndexCurrentViewMarket",
|
|
131
|
+
"outputs": [
|
|
132
|
+
{
|
|
133
|
+
"internalType": "uint256",
|
|
134
|
+
"name": "",
|
|
135
|
+
"type": "uint256"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"stateMutability": "view",
|
|
139
|
+
"type": "function"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"inputs": [
|
|
143
|
+
{
|
|
144
|
+
"internalType": "address",
|
|
145
|
+
"name": "yt",
|
|
146
|
+
"type": "address"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"name": "pyIndexCurrentViewYt",
|
|
150
|
+
"outputs": [
|
|
151
|
+
{
|
|
152
|
+
"internalType": "uint256",
|
|
153
|
+
"name": "",
|
|
154
|
+
"type": "uint256"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"stateMutability": "view",
|
|
158
|
+
"type": "function"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"inputs": [
|
|
162
|
+
{
|
|
163
|
+
"internalType": "address",
|
|
164
|
+
"name": "YT",
|
|
165
|
+
"type": "address"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"internalType": "uint256",
|
|
169
|
+
"name": "netPYToRedeem",
|
|
170
|
+
"type": "uint256"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"name": "redeemPyToSyStatic",
|
|
174
|
+
"outputs": [
|
|
175
|
+
{
|
|
176
|
+
"internalType": "uint256",
|
|
177
|
+
"name": "netSyOut",
|
|
178
|
+
"type": "uint256"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"stateMutability": "view",
|
|
182
|
+
"type": "function"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"inputs": [
|
|
186
|
+
{
|
|
187
|
+
"internalType": "address",
|
|
188
|
+
"name": "YT",
|
|
189
|
+
"type": "address"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"internalType": "uint256",
|
|
193
|
+
"name": "netPYToRedeem",
|
|
194
|
+
"type": "uint256"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"internalType": "address",
|
|
198
|
+
"name": "tokenOut",
|
|
199
|
+
"type": "address"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"name": "redeemPyToTokenStatic",
|
|
203
|
+
"outputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "uint256",
|
|
206
|
+
"name": "netTokenOut",
|
|
207
|
+
"type": "uint256"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"stateMutability": "view",
|
|
211
|
+
"type": "function"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [
|
|
215
|
+
{
|
|
216
|
+
"internalType": "address",
|
|
217
|
+
"name": "SY",
|
|
218
|
+
"type": "address"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"internalType": "address",
|
|
222
|
+
"name": "tokenOut",
|
|
223
|
+
"type": "address"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"internalType": "uint256",
|
|
227
|
+
"name": "netSyIn",
|
|
228
|
+
"type": "uint256"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"name": "redeemSyToTokenStatic",
|
|
232
|
+
"outputs": [
|
|
233
|
+
{
|
|
234
|
+
"internalType": "uint256",
|
|
235
|
+
"name": "netTokenOut",
|
|
236
|
+
"type": "uint256"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"stateMutability": "view",
|
|
240
|
+
"type": "function"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610bd3806100206000396000f3fe608060405234801561001057600080fd5b50600436106100835760003560e01c806309fa708a146100885780631bb00860146100ad578063295c2ea6146100c05780634303d0db146100d35780635fbdb155146100e657806380cb9d76146100f9578063b37bc69d1461010c578063ed84175d1461011f578063fea1147114610132575b600080fd5b61009b61009636600461083e565b610145565b60405190815260200160405180910390f35b61009b6100bb366004610880565b6101cf565b61009b6100ce3660046108ac565b61026d565b61009b6100e13660046108ac565b6102e6565b61009b6100f43660046108c9565b61050d565b61009b610107366004610880565b61058d565b61009b61011a3660046108c9565b6105a2565b61009b61012d3660046108c9565b61071c565b61009b6101403660046108c9565b610796565b600080846001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101aa919061090a565b905060006101b8868661058d565b90506101c582858361071c565b9695505050505050565b6000826001600160a01b0316632f13b60c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561020f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102339190610927565b1561025157604051632d8ad36d60e11b815260040160405180910390fd5b61026461025d846102e6565b83906107c7565b90505b92915050565b600080826001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156102ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d29190610949565b925050506102df816102e6565b9392505050565b6000808290506000816001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561032c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610350919061090a565b90506000816001600160a01b0316633ba0b9a96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b6919061098b565b90506000836001600160a01b031663d2a3584e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041c919061098b565b9050836001600160a01b031663516399df6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190610927565b80156104f5575043846001600160a01b03166360e0a9e16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ea91906109a4565b6001600160801b0316145b156105035795945050505050565b6101c582826107ea565b600080846001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561054e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610572919061090a565b90506000610581828686610796565b90506101c586826101cf565b600061026461059b846102e6565b8390610800565b6000806001600160a01b0384166105c25750670de0b6b3a7640000610632565b846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610600573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062491906109cd565b61062f90600a610aea565b90505b805b6000610641878784610796565b905084811061065c57610655600a83610b0f565b9150610662565b50610668565b50610634565b815b6000610677888884610796565b9050858110156106935761068c600a83610b31565b9150610699565b5061069f565b5061066a565b80821161070257600060026106b48385610b48565b6106be9190610b0f565b905060006106cd898984610796565b90508681106106ed578195506001826106e69190610b5b565b92506106fb565b6106f8826001610b48565b93505b505061069f565b6000841161071257610712610b6e565b5050509392505050565b60405163cbe52ae360e01b81526000906001600160a01b0385169063cbe52ae39061074d9086908690600401610b84565b602060405180830381865afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e919061098b565b949350505050565b604051635c7c159360e11b81526000906001600160a01b0385169063b8f82b269061074d9086908690600401610b84565b6000806107d48385610b31565b9050670de0b6b3a7640000815b04949350505050565b60008183116107f95781610264565b5090919050565b600080610815670de0b6b3a764000085610b31565b90508281816107e1576107e1610af9565b6001600160a01b038116811461083b57600080fd5b50565b60008060006060848603121561085357600080fd5b833561085e81610826565b925060208401359150604084013561087581610826565b809150509250925092565b6000806040838503121561089357600080fd5b823561089e81610826565b946020939093013593505050565b6000602082840312156108be57600080fd5b81356102df81610826565b6000806000606084860312156108de57600080fd5b83356108e981610826565b925060208401356108f981610826565b929592945050506040919091013590565b60006020828403121561091c57600080fd5b81516102df81610826565b60006020828403121561093957600080fd5b815180151581146102df57600080fd5b60008060006060848603121561095e57600080fd5b835161096981610826565b602085015190935061097a81610826565b604085015190925061087581610826565b60006020828403121561099d57600080fd5b5051919050565b6000602082840312156109b657600080fd5b81516001600160801b03811681146102df57600080fd5b6000602082840312156109df57600080fd5b815160ff811681146102df57600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610a41578160001904821115610a2757610a276109f0565b80851615610a3457918102915b93841c9390800290610a0b565b509250929050565b600082610a5857506001610267565b81610a6557506000610267565b8160018114610a7b5760028114610a8557610aa1565b6001915050610267565b60ff841115610a9657610a966109f0565b50506001821b610267565b5060208310610133831016604e8410600b8410161715610ac4575081810a610267565b610ace8383610a06565b8060001904821115610ae257610ae26109f0565b029392505050565b600061026460ff841683610a49565b634e487b7160e01b600052601260045260246000fd5b600082610b2c57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610267576102676109f0565b80820180821115610267576102676109f0565b81810381811115610267576102676109f0565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b0392909216825260208201526040019056fea2646970667358221220e9188b49624394f87d49aa78aef6bf3383f4e6aefecba3e1aeb82967e0303f0064736f6c63430008170033",
|
|
244
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100835760003560e01c806309fa708a146100885780631bb00860146100ad578063295c2ea6146100c05780634303d0db146100d35780635fbdb155146100e657806380cb9d76146100f9578063b37bc69d1461010c578063ed84175d1461011f578063fea1147114610132575b600080fd5b61009b61009636600461083e565b610145565b60405190815260200160405180910390f35b61009b6100bb366004610880565b6101cf565b61009b6100ce3660046108ac565b61026d565b61009b6100e13660046108ac565b6102e6565b61009b6100f43660046108c9565b61050d565b61009b610107366004610880565b61058d565b61009b61011a3660046108c9565b6105a2565b61009b61012d3660046108c9565b61071c565b61009b6101403660046108c9565b610796565b600080846001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101aa919061090a565b905060006101b8868661058d565b90506101c582858361071c565b9695505050505050565b6000826001600160a01b0316632f13b60c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561020f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102339190610927565b1561025157604051632d8ad36d60e11b815260040160405180910390fd5b61026461025d846102e6565b83906107c7565b90505b92915050565b600080826001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156102ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d29190610949565b925050506102df816102e6565b9392505050565b6000808290506000816001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561032c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610350919061090a565b90506000816001600160a01b0316633ba0b9a96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b6919061098b565b90506000836001600160a01b031663d2a3584e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041c919061098b565b9050836001600160a01b031663516399df6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561045c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104809190610927565b80156104f5575043846001600160a01b03166360e0a9e16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ea91906109a4565b6001600160801b0316145b156105035795945050505050565b6101c582826107ea565b600080846001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561054e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610572919061090a565b90506000610581828686610796565b90506101c586826101cf565b600061026461059b846102e6565b8390610800565b6000806001600160a01b0384166105c25750670de0b6b3a7640000610632565b846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610600573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062491906109cd565b61062f90600a610aea565b90505b805b6000610641878784610796565b905084811061065c57610655600a83610b0f565b9150610662565b50610668565b50610634565b815b6000610677888884610796565b9050858110156106935761068c600a83610b31565b9150610699565b5061069f565b5061066a565b80821161070257600060026106b48385610b48565b6106be9190610b0f565b905060006106cd898984610796565b90508681106106ed578195506001826106e69190610b5b565b92506106fb565b6106f8826001610b48565b93505b505061069f565b6000841161071257610712610b6e565b5050509392505050565b60405163cbe52ae360e01b81526000906001600160a01b0385169063cbe52ae39061074d9086908690600401610b84565b602060405180830381865afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e919061098b565b949350505050565b604051635c7c159360e11b81526000906001600160a01b0385169063b8f82b269061074d9086908690600401610b84565b6000806107d48385610b31565b9050670de0b6b3a7640000815b04949350505050565b60008183116107f95781610264565b5090919050565b600080610815670de0b6b3a764000085610b31565b90508281816107e1576107e1610af9565b6001600160a01b038116811461083b57600080fd5b50565b60008060006060848603121561085357600080fd5b833561085e81610826565b925060208401359150604084013561087581610826565b809150509250925092565b6000806040838503121561089357600080fd5b823561089e81610826565b946020939093013593505050565b6000602082840312156108be57600080fd5b81356102df81610826565b6000806000606084860312156108de57600080fd5b83356108e981610826565b925060208401356108f981610826565b929592945050506040919091013590565b60006020828403121561091c57600080fd5b81516102df81610826565b60006020828403121561093957600080fd5b815180151581146102df57600080fd5b60008060006060848603121561095e57600080fd5b835161096981610826565b602085015190935061097a81610826565b604085015190925061087581610826565b60006020828403121561099d57600080fd5b5051919050565b6000602082840312156109b657600080fd5b81516001600160801b03811681146102df57600080fd5b6000602082840312156109df57600080fd5b815160ff811681146102df57600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610a41578160001904821115610a2757610a276109f0565b80851615610a3457918102915b93841c9390800290610a0b565b509250929050565b600082610a5857506001610267565b81610a6557506000610267565b8160018114610a7b5760028114610a8557610aa1565b6001915050610267565b60ff841115610a9657610a966109f0565b50506001821b610267565b5060208310610133831016604e8410600b8410161715610ac4575081810a610267565b610ace8383610a06565b8060001904821115610ae257610ae26109f0565b029392505050565b600061026460ff841683610a49565b634e487b7160e01b600052601260045260246000fd5b600082610b2c57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610267576102676109f0565b80820180821115610267576102676109f0565b81810381811115610267576102676109f0565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b0392909216825260208201526040019056fea2646970667358221220e9188b49624394f87d49aa78aef6bf3383f4e6aefecba3e1aeb82967e0303f0064736f6c63430008170033",
|
|
245
|
+
"linkReferences": {},
|
|
246
|
+
"deployedLinkReferences": {}
|
|
247
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ActionStorageStatic",
|
|
4
|
+
"sourceName": "contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": true,
|
|
11
|
+
"internalType": "address",
|
|
12
|
+
"name": "previousOwner",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"indexed": true,
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "newOwner",
|
|
19
|
+
"type": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"name": "OwnershipTransferred",
|
|
23
|
+
"type": "event"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "claimOwnership",
|
|
28
|
+
"outputs": [],
|
|
29
|
+
"stateMutability": "nonpayable",
|
|
30
|
+
"type": "function"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"internalType": "bytes4",
|
|
36
|
+
"name": "selector",
|
|
37
|
+
"type": "bytes4"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"name": "facetAddress",
|
|
41
|
+
"outputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "res",
|
|
45
|
+
"type": "address"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"stateMutability": "view",
|
|
49
|
+
"type": "function"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"inputs": [],
|
|
53
|
+
"name": "getDefaultApproxParams",
|
|
54
|
+
"outputs": [
|
|
55
|
+
{
|
|
56
|
+
"components": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "uint256",
|
|
59
|
+
"name": "guessMin",
|
|
60
|
+
"type": "uint256"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "guessMax",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "uint256",
|
|
69
|
+
"name": "guessOffchain",
|
|
70
|
+
"type": "uint256"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "maxIteration",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "eps",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"internalType": "struct ApproxParams",
|
|
84
|
+
"name": "",
|
|
85
|
+
"type": "tuple"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"stateMutability": "view",
|
|
89
|
+
"type": "function"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputs": [],
|
|
93
|
+
"name": "getOwnerAndPendingOwner",
|
|
94
|
+
"outputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "address",
|
|
97
|
+
"name": "_owner",
|
|
98
|
+
"type": "address"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"internalType": "address",
|
|
102
|
+
"name": "_pendingOwner",
|
|
103
|
+
"type": "address"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "view",
|
|
107
|
+
"type": "function"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"inputs": [
|
|
111
|
+
{
|
|
112
|
+
"components": [
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint256",
|
|
115
|
+
"name": "guessMin",
|
|
116
|
+
"type": "uint256"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"internalType": "uint256",
|
|
120
|
+
"name": "guessMax",
|
|
121
|
+
"type": "uint256"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "uint256",
|
|
125
|
+
"name": "guessOffchain",
|
|
126
|
+
"type": "uint256"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"internalType": "uint256",
|
|
130
|
+
"name": "maxIteration",
|
|
131
|
+
"type": "uint256"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"internalType": "uint256",
|
|
135
|
+
"name": "eps",
|
|
136
|
+
"type": "uint256"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"internalType": "struct ApproxParams",
|
|
140
|
+
"name": "params",
|
|
141
|
+
"type": "tuple"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"name": "setDefaultApproxParams",
|
|
145
|
+
"outputs": [],
|
|
146
|
+
"stateMutability": "nonpayable",
|
|
147
|
+
"type": "function"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"components": [
|
|
153
|
+
{
|
|
154
|
+
"internalType": "address",
|
|
155
|
+
"name": "facet",
|
|
156
|
+
"type": "address"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"internalType": "bytes4[]",
|
|
160
|
+
"name": "selectors",
|
|
161
|
+
"type": "bytes4[]"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"internalType": "struct IPMiniDiamond.SelectorsToFacet[]",
|
|
165
|
+
"name": "arr",
|
|
166
|
+
"type": "tuple[]"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"name": "setFacetForSelectors",
|
|
170
|
+
"outputs": [],
|
|
171
|
+
"stateMutability": "nonpayable",
|
|
172
|
+
"type": "function"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"inputs": [
|
|
176
|
+
{
|
|
177
|
+
"internalType": "address",
|
|
178
|
+
"name": "newOwner",
|
|
179
|
+
"type": "address"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"internalType": "bool",
|
|
183
|
+
"name": "direct",
|
|
184
|
+
"type": "bool"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"internalType": "bool",
|
|
188
|
+
"name": "renounce",
|
|
189
|
+
"type": "bool"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"name": "transferOwnership",
|
|
193
|
+
"outputs": [],
|
|
194
|
+
"stateMutability": "nonpayable",
|
|
195
|
+
"type": "function"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610890806100206000396000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c8063051cee2914610072578063078dfbe7146100875780630a33de0d1461009a5780634e71e0c8146100ed5780638edf4f34146100f5578063cdffacc614610108578063ddf46a2614610133575b600080fd5b610085610080366004610581565b610159565b005b610085610095366004610617565b6101b2565b6100a26102ae565b6040516100e49190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b60405180910390f35b610085610315565b61008561010336600461065a565b6103c0565b61011b6101163660046106e6565b6104a9565b6040516001600160a01b0390911681526020016100e4565b600054600154604080516001600160a01b039384168152929091166020830152016100e4565b6000546001600160a01b0316331461018c5760405162461bcd60e51b815260040161018390610708565b60405180910390fd5b805160035560208101516004556040810151600555606081015160065560800151600755565b6000546001600160a01b031633146101dc5760405162461bcd60e51b815260040161018390610708565b811561028d576001600160a01b0383161515806101f65750805b61023a5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610183565b600080546040516001600160a01b038087169392169160008051602061083b83398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6102e06040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a08101825260035481526004546020820152600554918101919091526006546060820152600754608082015290565b6001546001600160a01b03163381146103705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610183565b600080546040516001600160a01b038085169392169160008051602061083b83398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000546001600160a01b031633146103ea5760405162461bcd60e51b815260040161018390610708565b60005b818110156102a95760008383838181106104095761040961073d565b905060200281019061041b9190610753565b61042490610773565b905060005b81602001515181101561049f57816000015160026000846020015184815181106104555761045561073d565b6020908102919091018101516001600160e01b031916825281019190915260400160002080546001600160a01b0319166001600160a01b0392909216919091179055600101610429565b50506001016103ed565b6001600160e01b031981166000908152600260205260409020546001600160a01b03168061050e5760405162461bcd60e51b81526020600482015260126024820152711cd95b1958dd1bdc881b9bdd08199bdd5b9960721b6044820152606401610183565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561054b5761054b610513565b60405290565b604051601f8201601f191681016001600160401b038111828210171561057957610579610513565b604052919050565b600060a0828403121561059357600080fd5b60405160a081016001600160401b03811182821017156105b5576105b5610513565b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b80356001600160a01b038116811461050e57600080fd5b8035801515811461050e57600080fd5b60008060006060848603121561062c57600080fd5b610635846105f0565b925061064360208501610607565b915061065160408501610607565b90509250925092565b6000806020838503121561066d57600080fd5b82356001600160401b038082111561068457600080fd5b818501915085601f83011261069857600080fd5b8135818111156106a757600080fd5b8660208260051b85010111156106bc57600080fd5b60209290920196919550909350505050565b80356001600160e01b03198116811461050e57600080fd5b6000602082840312156106f857600080fd5b610701826106ce565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261076957600080fd5b9190910192915050565b60006040823603121561078557600080fd5b61078d610529565b610796836105f0565b81526020838101356001600160401b03808211156107b357600080fd5b9085019036601f8301126107c657600080fd5b8135818111156107d8576107d8610513565b8060051b91506107e9848301610551565b818152918301840191848101903684111561080357600080fd5b938501935b8385101561082857610819856106ce565b82529385019390850190610808565b9486019490945250929594505050505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220285971f813e05830e21df681f16f89815ff82bea1ac0197012dce2cf6844e93664736f6c63430008170033",
|
|
199
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061006d5760003560e01c8063051cee2914610072578063078dfbe7146100875780630a33de0d1461009a5780634e71e0c8146100ed5780638edf4f34146100f5578063cdffacc614610108578063ddf46a2614610133575b600080fd5b610085610080366004610581565b610159565b005b610085610095366004610617565b6101b2565b6100a26102ae565b6040516100e49190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b60405180910390f35b610085610315565b61008561010336600461065a565b6103c0565b61011b6101163660046106e6565b6104a9565b6040516001600160a01b0390911681526020016100e4565b600054600154604080516001600160a01b039384168152929091166020830152016100e4565b6000546001600160a01b0316331461018c5760405162461bcd60e51b815260040161018390610708565b60405180910390fd5b805160035560208101516004556040810151600555606081015160065560800151600755565b6000546001600160a01b031633146101dc5760405162461bcd60e51b815260040161018390610708565b811561028d576001600160a01b0383161515806101f65750805b61023a5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b6044820152606401610183565b600080546040516001600160a01b038087169392169160008051602061083b83398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6102e06040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a08101825260035481526004546020820152600554918101919091526006546060820152600754608082015290565b6001546001600160a01b03163381146103705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e65726044820152606401610183565b600080546040516001600160a01b038085169392169160008051602061083b83398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000546001600160a01b031633146103ea5760405162461bcd60e51b815260040161018390610708565b60005b818110156102a95760008383838181106104095761040961073d565b905060200281019061041b9190610753565b61042490610773565b905060005b81602001515181101561049f57816000015160026000846020015184815181106104555761045561073d565b6020908102919091018101516001600160e01b031916825281019190915260400160002080546001600160a01b0319166001600160a01b0392909216919091179055600101610429565b50506001016103ed565b6001600160e01b031981166000908152600260205260409020546001600160a01b03168061050e5760405162461bcd60e51b81526020600482015260126024820152711cd95b1958dd1bdc881b9bdd08199bdd5b9960721b6044820152606401610183565b919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561054b5761054b610513565b60405290565b604051601f8201601f191681016001600160401b038111828210171561057957610579610513565b604052919050565b600060a0828403121561059357600080fd5b60405160a081016001600160401b03811182821017156105b5576105b5610513565b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b80356001600160a01b038116811461050e57600080fd5b8035801515811461050e57600080fd5b60008060006060848603121561062c57600080fd5b610635846105f0565b925061064360208501610607565b915061065160408501610607565b90509250925092565b6000806020838503121561066d57600080fd5b82356001600160401b038082111561068457600080fd5b818501915085601f83011261069857600080fd5b8135818111156106a757600080fd5b8660208260051b85010111156106bc57600080fd5b60209290920196919550909350505050565b80356001600160e01b03198116811461050e57600080fd5b6000602082840312156106f857600080fd5b610701826106ce565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261076957600080fd5b9190910192915050565b60006040823603121561078557600080fd5b61078d610529565b610796836105f0565b81526020838101356001600160401b03808211156107b357600080fd5b9085019036601f8301126107c657600080fd5b8135818111156107d8576107d8610513565b8060051b91506107e9848301610551565b818152918301840191848101903684111561080357600080fd5b938501935b8385101561082857610819856106ce565b82529385019390850190610808565b9486019490945250929594505050505056fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220285971f813e05830e21df681f16f89815ff82bea1ac0197012dce2cf6844e93664736f6c63430008170033",
|
|
200
|
+
"linkReferences": {},
|
|
201
|
+
"deployedLinkReferences": {}
|
|
202
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ActionVePendleStatic",
|
|
4
|
+
"sourceName": "contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "contract IPVotingEscrowMainchain",
|
|
10
|
+
"name": "_vePENDLE",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "nonpayable",
|
|
15
|
+
"type": "constructor"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"internalType": "uint256",
|
|
21
|
+
"name": "expiry",
|
|
22
|
+
"type": "uint256"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"name": "ExpiryInThePast",
|
|
26
|
+
"type": "error"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"internalType": "uint256",
|
|
32
|
+
"name": "wTime",
|
|
33
|
+
"type": "uint256"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"name": "InvalidWTime",
|
|
37
|
+
"type": "error"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputs": [],
|
|
41
|
+
"name": "VEExceededMaxLockTime",
|
|
42
|
+
"type": "error"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"inputs": [],
|
|
46
|
+
"name": "VEInsufficientLockTime",
|
|
47
|
+
"type": "error"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [],
|
|
51
|
+
"name": "VENotAllowedReduceExpiry",
|
|
52
|
+
"type": "error"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [],
|
|
56
|
+
"name": "VEZeroAmountLocked",
|
|
57
|
+
"type": "error"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "address",
|
|
63
|
+
"name": "user",
|
|
64
|
+
"type": "address"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "uint128",
|
|
68
|
+
"name": "additionalAmountToLock",
|
|
69
|
+
"type": "uint128"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "uint128",
|
|
73
|
+
"name": "newExpiry",
|
|
74
|
+
"type": "uint128"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"name": "increaseLockPositionStatic",
|
|
78
|
+
"outputs": [
|
|
79
|
+
{
|
|
80
|
+
"internalType": "uint128",
|
|
81
|
+
"name": "newVeBalance",
|
|
82
|
+
"type": "uint128"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"stateMutability": "view",
|
|
86
|
+
"type": "function"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"bytecode": "0x60a060405234801561001057600080fd5b5060405161065738038061065783398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516105cc61008b600039600061016501526105cc6000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063180e394314610030575b600080fd5b61004361003e366004610406565b610059565b604051610050919061045d565b60405180910390f35b600061006d826001600160801b03166102d3565b6100955781604051637bf16ce960e11b815260040161008c919061045d565b60405180910390fd5b6001600160801b03821642106100c0578160405163d928003560e01b815260040161008c919061045d565b6100ce6303bfc40042610487565b826001600160801b031611156100f757604051632739a01960e11b815260040160405180910390fd5b61010462093a8042610487565b826001600160801b0316101561012d57604051630def6af560e21b815260040160405180910390fd5b60408051808201909152600080825260208201526040516332dad3cf60e21b81526001600160a01b03868116600483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169063cb6b4f3c906024016040805180830381865afa1580156101ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cf919061049a565b604080518082019091526001600160801b0392831681529082166020820181905290945090861610159150610219905057604051631f8b0c5960e21b815260040160405180910390fd5b805160009061022890866104d4565b9050806001600160801b0316600003610254576040516323fbc14f60e11b815260040160405180910390fd5b600082602001518561026691906104fb565b90506000604051806040016040528088866000015161028591906104d4565b6001600160801b031681526020018386602001516102a391906104d4565b6001600160801b03169052905060006102bb826102e9565b90506102c68161033b565b9998505050505050505050565b60006102e262093a8083610531565b1592915050565b6040805180820190915260008082526020820152815161030e906303bfc40090610545565b6001600160801b0316602080830182905283015161032b9161056b565b6001600160801b03168152919050565b600061034682610363565b1561035357506000919050565b61035d8242610394565b92915050565b600081600001516001600160801b0316428360200151610383919061056b565b6001600160801b0316101592915050565b600082600001516001600160801b03168284602001516103b4919061056b565b6001600160801b031611156103cb5750600061035d565b8183602001516103db919061056b565b83516103e791906104fb565b9392505050565b6001600160801b038116811461040357600080fd5b50565b60008060006060848603121561041b57600080fd5b83356001600160a01b038116811461043257600080fd5b92506020840135610442816103ee565b91506040840135610452816103ee565b809150509250925092565b6001600160801b0391909116815260200190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561035d5761035d610471565b600080604083850312156104ad57600080fd5b82516104b8816103ee565b60208401519092506104c9816103ee565b809150509250929050565b6001600160801b038181168382160190808211156104f4576104f4610471565b5092915050565b6001600160801b038281168282160390808211156104f4576104f4610471565b634e487b7160e01b600052601260045260246000fd5b6000826105405761054061051b565b500690565b60006001600160801b038381168061055f5761055f61051b565b92169190910492915050565b6001600160801b0381811683821602808216919082811461058e5761058e610471565b50509291505056fea26469706673582212203e46b6ed589864f067242832c43ef3e3063d5983f2f05d0c9fb3babf2fb1919c64736f6c63430008170033",
|
|
90
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063180e394314610030575b600080fd5b61004361003e366004610406565b610059565b604051610050919061045d565b60405180910390f35b600061006d826001600160801b03166102d3565b6100955781604051637bf16ce960e11b815260040161008c919061045d565b60405180910390fd5b6001600160801b03821642106100c0578160405163d928003560e01b815260040161008c919061045d565b6100ce6303bfc40042610487565b826001600160801b031611156100f757604051632739a01960e11b815260040160405180910390fd5b61010462093a8042610487565b826001600160801b0316101561012d57604051630def6af560e21b815260040160405180910390fd5b60408051808201909152600080825260208201526040516332dad3cf60e21b81526001600160a01b03868116600483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169063cb6b4f3c906024016040805180830381865afa1580156101ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cf919061049a565b604080518082019091526001600160801b0392831681529082166020820181905290945090861610159150610219905057604051631f8b0c5960e21b815260040160405180910390fd5b805160009061022890866104d4565b9050806001600160801b0316600003610254576040516323fbc14f60e11b815260040160405180910390fd5b600082602001518561026691906104fb565b90506000604051806040016040528088866000015161028591906104d4565b6001600160801b031681526020018386602001516102a391906104d4565b6001600160801b03169052905060006102bb826102e9565b90506102c68161033b565b9998505050505050505050565b60006102e262093a8083610531565b1592915050565b6040805180820190915260008082526020820152815161030e906303bfc40090610545565b6001600160801b0316602080830182905283015161032b9161056b565b6001600160801b03168152919050565b600061034682610363565b1561035357506000919050565b61035d8242610394565b92915050565b600081600001516001600160801b0316428360200151610383919061056b565b6001600160801b0316101592915050565b600082600001516001600160801b03168284602001516103b4919061056b565b6001600160801b031611156103cb5750600061035d565b8183602001516103db919061056b565b83516103e791906104fb565b9392505050565b6001600160801b038116811461040357600080fd5b50565b60008060006060848603121561041b57600080fd5b83356001600160a01b038116811461043257600080fd5b92506020840135610442816103ee565b91506040840135610452816103ee565b809150509250925092565b6001600160801b0391909116815260200190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561035d5761035d610471565b600080604083850312156104ad57600080fd5b82516104b8816103ee565b60208401519092506104c9816103ee565b809150509250929050565b6001600160801b038181168382160190808211156104f4576104f4610471565b5092915050565b6001600160801b038281168282160390808211156104f4576104f4610471565b634e487b7160e01b600052601260045260246000fd5b6000826105405761054061051b565b500690565b60006001600160801b038381168061055f5761055f61051b565b92169190910492915050565b6001600160801b0381811683821602808216919082811461058e5761058e610471565b50509291505056fea26469706673582212203e46b6ed589864f067242832c43ef3e3063d5983f2f05d0c9fb3babf2fb1919c64736f6c63430008170033",
|
|
91
|
+
"linkReferences": {},
|
|
92
|
+
"deployedLinkReferences": {}
|
|
93
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "StorageLayout",
|
|
4
|
+
"sourceName": "contracts/offchain-helpers/router-static/base/StorageLayout.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x",
|
|
7
|
+
"deployedBytecode": "0x",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|