@pendle/core-v2 4.5.2 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.json +2 -2
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultERC20SY.sol/PendleKarakVaultERC20SY.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultERC20SY.sol/PendleKarakVaultERC20SY.json +1070 -0
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultEzETHSY.sol/PendleKarakVaultEzETHSY.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultEzETHSY.sol/PendleKarakVaultEzETHSY.json +1144 -0
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSUSDESY.sol/PendleKarakVaultSUSDESY.dbg.json +4 -0
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSUSDESY.sol/PendleKarakVaultSUSDESY.json +1111 -0
  9. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSYBaseUpg.sol/PendleKarakVaultSYBaseUpg.dbg.json +4 -0
  10. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSYBaseUpg.sol/PendleKarakVaultSYBaseUpg.json +1036 -0
  11. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultUSDESY.sol/PendleKarakVaultUSDESY.dbg.json +4 -0
  12. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultUSDESY.sol/PendleKarakVaultUSDESY.json +1096 -0
  13. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultWEETHSY.sol/PendleKarakVaultWEETHSY.dbg.json +4 -0
  14. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultWEETHSY.sol/PendleKarakVaultWEETHSY.json +1116 -0
  15. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.json +2 -2
  17. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.json +2 -2
  19. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  21. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  23. package/build/artifacts/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.json +2 -2
  25. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.json +2 -2
  27. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.json +2 -2
  29. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.json +19 -0
  31. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  32. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +1200 -34
  33. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  34. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +1228 -62
  35. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +4 -0
  36. package/build/artifacts/contracts/interfaces/{IPPtLpOracle.sol/IPPtLpOracle.json → IPPYLpOracle.sol/IPPYLpOracle.json} +50 -2
  37. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +4 -0
  38. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.json +30 -0
  39. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +4 -0
  40. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.json +37 -0
  41. package/build/artifacts/contracts/interfaces/Karak/IKarakVault.sol/IKarakVault.dbg.json +4 -0
  42. package/build/artifacts/contracts/interfaces/Karak/IKarakVault.sol/IKarakVault.json +24 -0
  43. package/build/artifacts/contracts/interfaces/Karak/IKarakVaultSupervisor.sol/IKarakVaultSupervisor.dbg.json +4 -0
  44. package/build/artifacts/contracts/interfaces/Karak/IKarakVaultSupervisor.sol/IKarakVaultSupervisor.json +76 -0
  45. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  46. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +25 -2
  47. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  48. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  49. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  50. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  51. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +4 -0
  52. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.json +422 -0
  53. package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +4 -0
  54. package/build/artifacts/contracts/oracles/{PendlePtOracleLib.sol/PendlePtOracleLib.json → PendlePYOracleLib.sol/PendlePYOracleLib.json} +4 -4
  55. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
  56. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +2 -2
  57. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +4 -0
  58. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +183 -0
  59. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +4 -0
  60. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +183 -0
  61. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  63. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +1202 -36
  65. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  67. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  69. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +4 -0
  70. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +34 -0
  71. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  72. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultERC20SY.sol +32 -0
  73. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultEzETHSY.sol +80 -0
  74. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSUSDESY.sol +73 -0
  75. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSYBaseUpg.sol +141 -0
  76. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultUSDESY.sol +18 -0
  77. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultWEETHSY.sol +71 -0
  78. package/contracts/interfaces/IERC4626.sol +2 -0
  79. package/contracts/interfaces/IPActionMiscV3.sol +99 -0
  80. package/contracts/interfaces/{IPPtLpOracle.sol → IPPYLpOracle.sol} +5 -1
  81. package/contracts/interfaces/IPReflector.sol +6 -0
  82. package/contracts/interfaces/IPTokenWithSupplyCap.sol +9 -0
  83. package/contracts/interfaces/Karak/IKarakVault.sol +6 -0
  84. package/contracts/interfaces/Karak/IKarakVaultSupervisor.sol +8 -0
  85. package/contracts/offchain-helpers/PendlePoolDeployHelper.sol +5 -0
  86. package/contracts/oracles/PendleLpOracleLib.sol +4 -4
  87. package/contracts/oracles/{PendlePtLpOracle.sol → PendlePYLpOracle.sol} +51 -21
  88. package/contracts/oracles/{PendlePtOracleLib.sol → PendlePYOracleLib.sol} +31 -1
  89. package/contracts/oracles/samples/BoringLpGlpOracle.sol +2 -2
  90. package/contracts/oracles/samples/{BoringPtUsdChainlinkOracle.sol → BoringPYUsdChainlinkAssetOracle.sol} +36 -12
  91. package/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol +102 -0
  92. package/contracts/router/ActionMiscV3.sol +182 -34
  93. package/contracts/router/ActionSwapYTV3.sol +0 -85
  94. package/contracts/router/Reflector.sol +70 -0
  95. package/contracts/router/base/ActionBase.sol +90 -1
  96. package/deployments/1-core.json +11 -2
  97. package/deployments/1-markets/KARAK-SUSDE-MAINNET-SEP2024.json +14 -0
  98. package/deployments/1-markets/KARAK-USDE-MAINNET-SEP2024.json +14 -0
  99. package/deployments/1-markets/KARAK-WEETH-MAINNET-SEP2024.json +14 -0
  100. package/deployments/10-core.json +11 -2
  101. package/deployments/42161-core.json +11 -2
  102. package/deployments/42161-markets/CAMELOT-PEP-ARBITRUM-JUNE2025.json +14 -0
  103. package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024-NEW.json +11 -0
  104. package/deployments/5000-core.json +11 -2
  105. package/deployments/56-core.json +11 -2
  106. package/package.json +1 -1
  107. package/typechain-types/ActionMiscV3.ts +628 -16
  108. package/typechain-types/IERC4626.ts +34 -0
  109. package/typechain-types/IKarakVault.ts +84 -0
  110. package/typechain-types/IKarakVaultSupervisor.ts +190 -0
  111. package/typechain-types/IPActionMiscV3.ts +628 -16
  112. package/typechain-types/IPAllActionV3.ts +535 -0
  113. package/typechain-types/IPReflector.ts +95 -0
  114. package/typechain-types/IPTokenWithSupplyCap.ts +110 -0
  115. package/typechain-types/PendleKarakVaultERC20SY.ts +1324 -0
  116. package/typechain-types/PendleKarakVaultEzETHSY.ts +1400 -0
  117. package/typechain-types/PendleKarakVaultSUSDESY.ts +1380 -0
  118. package/typechain-types/PendleKarakVaultSYBaseUpg.ts +1312 -0
  119. package/typechain-types/PendleKarakVaultUSDESY.ts +1366 -0
  120. package/typechain-types/PendleKarakVaultWEETHSY.ts +1370 -0
  121. package/typechain-types/PendlePYLpOracle.ts +10 -3
  122. package/typechain-types/PendlePoolDeployHelper.ts +44 -0
  123. package/typechain-types/Reflector.ts +95 -0
  124. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  125. package/typechain-types/factories/ActionMiscV3__factory.ts +1201 -35
  126. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  127. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  128. package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
  129. package/typechain-types/factories/IERC4626__factory.ts +19 -0
  130. package/typechain-types/factories/IKarakVaultSupervisor__factory.ts +95 -0
  131. package/typechain-types/factories/IKarakVault__factory.ts +36 -0
  132. package/typechain-types/factories/IPActionMiscV3__factory.ts +1200 -34
  133. package/typechain-types/factories/IPAllActionV3__factory.ts +1228 -62
  134. package/typechain-types/factories/IPReflector__factory.ts +42 -0
  135. package/typechain-types/factories/IPTokenWithSupplyCap__factory.ts +56 -0
  136. package/typechain-types/factories/PendleApxETHSY__factory.ts +1 -1
  137. package/typechain-types/factories/PendleERC4626SYUpg__factory.ts +1 -1
  138. package/typechain-types/factories/PendleERC4626SY__factory.ts +1 -1
  139. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  140. package/typechain-types/factories/PendleKarakVaultERC20SY__factory.ts +1139 -0
  141. package/typechain-types/factories/PendleKarakVaultEzETHSY__factory.ts +1236 -0
  142. package/typechain-types/factories/PendleKarakVaultSUSDESY__factory.ts +1180 -0
  143. package/typechain-types/factories/PendleKarakVaultSYBaseUpg__factory.ts +1055 -0
  144. package/typechain-types/factories/PendleKarakVaultUSDESY__factory.ts +1165 -0
  145. package/typechain-types/factories/PendleKarakVaultWEETHSY__factory.ts +1189 -0
  146. package/typechain-types/factories/PendlePYLpOracle__factory.ts +12 -24
  147. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +24 -1
  148. package/typechain-types/factories/PendlePufStETHSY__factory.ts +1 -1
  149. package/typechain-types/factories/PendlePufWETHSY__factory.ts +1 -1
  150. package/typechain-types/factories/PendleSUSDESY__factory.ts +1 -1
  151. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  152. package/typechain-types/factories/Reflector__factory.ts +84 -0
  153. package/typechain-types/hardhat.d.ts +99 -0
  154. package/typechain-types/index.ts +22 -0
  155. package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +0 -4
  156. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +0 -4
  157. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.json +0 -367
  158. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +0 -4
  159. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +0 -4
  160. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.json +0 -157
@@ -0,0 +1,1055 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ PendleKarakVaultSYBaseUpg,
9
+ PendleKarakVaultSYBaseUpgInterface,
10
+ } from "../PendleKarakVaultSYBaseUpg";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "uint256",
17
+ name: "assetLimit",
18
+ type: "uint256",
19
+ },
20
+ {
21
+ internalType: "uint256",
22
+ name: "totalAsset",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "amountAssetToDeposit",
28
+ type: "uint256",
29
+ },
30
+ ],
31
+ name: "KarakVaultAssetLimitExceeded",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: "uint256",
38
+ name: "actualSharesOut",
39
+ type: "uint256",
40
+ },
41
+ {
42
+ internalType: "uint256",
43
+ name: "requiredSharesOut",
44
+ type: "uint256",
45
+ },
46
+ ],
47
+ name: "SYInsufficientSharesOut",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "uint256",
54
+ name: "actualTokenOut",
55
+ type: "uint256",
56
+ },
57
+ {
58
+ internalType: "uint256",
59
+ name: "requiredTokenOut",
60
+ type: "uint256",
61
+ },
62
+ ],
63
+ name: "SYInsufficientTokenOut",
64
+ type: "error",
65
+ },
66
+ {
67
+ inputs: [
68
+ {
69
+ internalType: "address",
70
+ name: "token",
71
+ type: "address",
72
+ },
73
+ ],
74
+ name: "SYInvalidTokenIn",
75
+ type: "error",
76
+ },
77
+ {
78
+ inputs: [
79
+ {
80
+ internalType: "address",
81
+ name: "token",
82
+ type: "address",
83
+ },
84
+ ],
85
+ name: "SYInvalidTokenOut",
86
+ type: "error",
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: "SYZeroDeposit",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: "SYZeroRedeem",
96
+ type: "error",
97
+ },
98
+ {
99
+ anonymous: false,
100
+ inputs: [
101
+ {
102
+ indexed: true,
103
+ internalType: "address",
104
+ name: "owner",
105
+ type: "address",
106
+ },
107
+ {
108
+ indexed: true,
109
+ internalType: "address",
110
+ name: "spender",
111
+ type: "address",
112
+ },
113
+ {
114
+ indexed: false,
115
+ internalType: "uint256",
116
+ name: "value",
117
+ type: "uint256",
118
+ },
119
+ ],
120
+ name: "Approval",
121
+ type: "event",
122
+ },
123
+ {
124
+ anonymous: false,
125
+ inputs: [
126
+ {
127
+ indexed: true,
128
+ internalType: "address",
129
+ name: "user",
130
+ type: "address",
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: "address[]",
135
+ name: "rewardTokens",
136
+ type: "address[]",
137
+ },
138
+ {
139
+ indexed: false,
140
+ internalType: "uint256[]",
141
+ name: "rewardAmounts",
142
+ type: "uint256[]",
143
+ },
144
+ ],
145
+ name: "ClaimRewards",
146
+ type: "event",
147
+ },
148
+ {
149
+ anonymous: false,
150
+ inputs: [
151
+ {
152
+ indexed: true,
153
+ internalType: "address",
154
+ name: "caller",
155
+ type: "address",
156
+ },
157
+ {
158
+ indexed: true,
159
+ internalType: "address",
160
+ name: "receiver",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: true,
165
+ internalType: "address",
166
+ name: "tokenIn",
167
+ type: "address",
168
+ },
169
+ {
170
+ indexed: false,
171
+ internalType: "uint256",
172
+ name: "amountDeposited",
173
+ type: "uint256",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "uint256",
178
+ name: "amountSyOut",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ name: "Deposit",
183
+ type: "event",
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [],
188
+ name: "EIP712DomainChanged",
189
+ type: "event",
190
+ },
191
+ {
192
+ anonymous: false,
193
+ inputs: [
194
+ {
195
+ indexed: false,
196
+ internalType: "uint8",
197
+ name: "version",
198
+ type: "uint8",
199
+ },
200
+ ],
201
+ name: "Initialized",
202
+ type: "event",
203
+ },
204
+ {
205
+ anonymous: false,
206
+ inputs: [
207
+ {
208
+ indexed: true,
209
+ internalType: "address",
210
+ name: "previousOwner",
211
+ type: "address",
212
+ },
213
+ {
214
+ indexed: true,
215
+ internalType: "address",
216
+ name: "newOwner",
217
+ type: "address",
218
+ },
219
+ ],
220
+ name: "OwnershipTransferred",
221
+ type: "event",
222
+ },
223
+ {
224
+ anonymous: false,
225
+ inputs: [
226
+ {
227
+ indexed: false,
228
+ internalType: "address",
229
+ name: "account",
230
+ type: "address",
231
+ },
232
+ ],
233
+ name: "Paused",
234
+ type: "event",
235
+ },
236
+ {
237
+ anonymous: false,
238
+ inputs: [
239
+ {
240
+ indexed: true,
241
+ internalType: "address",
242
+ name: "caller",
243
+ type: "address",
244
+ },
245
+ {
246
+ indexed: true,
247
+ internalType: "address",
248
+ name: "receiver",
249
+ type: "address",
250
+ },
251
+ {
252
+ indexed: true,
253
+ internalType: "address",
254
+ name: "tokenOut",
255
+ type: "address",
256
+ },
257
+ {
258
+ indexed: false,
259
+ internalType: "uint256",
260
+ name: "amountSyToRedeem",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ indexed: false,
265
+ internalType: "uint256",
266
+ name: "amountTokenOut",
267
+ type: "uint256",
268
+ },
269
+ ],
270
+ name: "Redeem",
271
+ type: "event",
272
+ },
273
+ {
274
+ anonymous: false,
275
+ inputs: [
276
+ {
277
+ indexed: true,
278
+ internalType: "address",
279
+ name: "from",
280
+ type: "address",
281
+ },
282
+ {
283
+ indexed: true,
284
+ internalType: "address",
285
+ name: "to",
286
+ type: "address",
287
+ },
288
+ {
289
+ indexed: false,
290
+ internalType: "uint256",
291
+ name: "value",
292
+ type: "uint256",
293
+ },
294
+ ],
295
+ name: "Transfer",
296
+ type: "event",
297
+ },
298
+ {
299
+ anonymous: false,
300
+ inputs: [
301
+ {
302
+ indexed: false,
303
+ internalType: "address",
304
+ name: "account",
305
+ type: "address",
306
+ },
307
+ ],
308
+ name: "Unpaused",
309
+ type: "event",
310
+ },
311
+ {
312
+ inputs: [],
313
+ name: "DOMAIN_SEPARATOR",
314
+ outputs: [
315
+ {
316
+ internalType: "bytes32",
317
+ name: "",
318
+ type: "bytes32",
319
+ },
320
+ ],
321
+ stateMutability: "view",
322
+ type: "function",
323
+ },
324
+ {
325
+ inputs: [
326
+ {
327
+ internalType: "address",
328
+ name: "",
329
+ type: "address",
330
+ },
331
+ ],
332
+ name: "accruedRewards",
333
+ outputs: [
334
+ {
335
+ internalType: "uint256[]",
336
+ name: "rewardAmounts",
337
+ type: "uint256[]",
338
+ },
339
+ ],
340
+ stateMutability: "view",
341
+ type: "function",
342
+ },
343
+ {
344
+ inputs: [
345
+ {
346
+ internalType: "address",
347
+ name: "owner",
348
+ type: "address",
349
+ },
350
+ {
351
+ internalType: "address",
352
+ name: "spender",
353
+ type: "address",
354
+ },
355
+ ],
356
+ name: "allowance",
357
+ outputs: [
358
+ {
359
+ internalType: "uint256",
360
+ name: "",
361
+ type: "uint256",
362
+ },
363
+ ],
364
+ stateMutability: "view",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: "address",
371
+ name: "spender",
372
+ type: "address",
373
+ },
374
+ {
375
+ internalType: "uint256",
376
+ name: "amount",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ name: "approve",
381
+ outputs: [
382
+ {
383
+ internalType: "bool",
384
+ name: "",
385
+ type: "bool",
386
+ },
387
+ ],
388
+ stateMutability: "nonpayable",
389
+ type: "function",
390
+ },
391
+ {
392
+ inputs: [],
393
+ name: "assetInfo",
394
+ outputs: [
395
+ {
396
+ internalType: "enum IStandardizedYield.AssetType",
397
+ name: "assetType",
398
+ type: "uint8",
399
+ },
400
+ {
401
+ internalType: "address",
402
+ name: "assetAddress",
403
+ type: "address",
404
+ },
405
+ {
406
+ internalType: "uint8",
407
+ name: "assetDecimals",
408
+ type: "uint8",
409
+ },
410
+ ],
411
+ stateMutability: "view",
412
+ type: "function",
413
+ },
414
+ {
415
+ inputs: [
416
+ {
417
+ internalType: "address",
418
+ name: "account",
419
+ type: "address",
420
+ },
421
+ ],
422
+ name: "balanceOf",
423
+ outputs: [
424
+ {
425
+ internalType: "uint256",
426
+ name: "",
427
+ type: "uint256",
428
+ },
429
+ ],
430
+ stateMutability: "view",
431
+ type: "function",
432
+ },
433
+ {
434
+ inputs: [],
435
+ name: "claimOwnership",
436
+ outputs: [],
437
+ stateMutability: "nonpayable",
438
+ type: "function",
439
+ },
440
+ {
441
+ inputs: [
442
+ {
443
+ internalType: "address",
444
+ name: "",
445
+ type: "address",
446
+ },
447
+ ],
448
+ name: "claimRewards",
449
+ outputs: [
450
+ {
451
+ internalType: "uint256[]",
452
+ name: "rewardAmounts",
453
+ type: "uint256[]",
454
+ },
455
+ ],
456
+ stateMutability: "nonpayable",
457
+ type: "function",
458
+ },
459
+ {
460
+ inputs: [],
461
+ name: "decimals",
462
+ outputs: [
463
+ {
464
+ internalType: "uint8",
465
+ name: "",
466
+ type: "uint8",
467
+ },
468
+ ],
469
+ stateMutability: "view",
470
+ type: "function",
471
+ },
472
+ {
473
+ inputs: [
474
+ {
475
+ internalType: "address",
476
+ name: "receiver",
477
+ type: "address",
478
+ },
479
+ {
480
+ internalType: "address",
481
+ name: "tokenIn",
482
+ type: "address",
483
+ },
484
+ {
485
+ internalType: "uint256",
486
+ name: "amountTokenToDeposit",
487
+ type: "uint256",
488
+ },
489
+ {
490
+ internalType: "uint256",
491
+ name: "minSharesOut",
492
+ type: "uint256",
493
+ },
494
+ ],
495
+ name: "deposit",
496
+ outputs: [
497
+ {
498
+ internalType: "uint256",
499
+ name: "amountSharesOut",
500
+ type: "uint256",
501
+ },
502
+ ],
503
+ stateMutability: "payable",
504
+ type: "function",
505
+ },
506
+ {
507
+ inputs: [],
508
+ name: "eip712Domain",
509
+ outputs: [
510
+ {
511
+ internalType: "bytes1",
512
+ name: "fields",
513
+ type: "bytes1",
514
+ },
515
+ {
516
+ internalType: "string",
517
+ name: "name",
518
+ type: "string",
519
+ },
520
+ {
521
+ internalType: "string",
522
+ name: "version",
523
+ type: "string",
524
+ },
525
+ {
526
+ internalType: "uint256",
527
+ name: "chainId",
528
+ type: "uint256",
529
+ },
530
+ {
531
+ internalType: "address",
532
+ name: "verifyingContract",
533
+ type: "address",
534
+ },
535
+ {
536
+ internalType: "bytes32",
537
+ name: "salt",
538
+ type: "bytes32",
539
+ },
540
+ {
541
+ internalType: "uint256[]",
542
+ name: "extensions",
543
+ type: "uint256[]",
544
+ },
545
+ ],
546
+ stateMutability: "view",
547
+ type: "function",
548
+ },
549
+ {
550
+ inputs: [],
551
+ name: "exchangeRate",
552
+ outputs: [
553
+ {
554
+ internalType: "uint256",
555
+ name: "",
556
+ type: "uint256",
557
+ },
558
+ ],
559
+ stateMutability: "view",
560
+ type: "function",
561
+ },
562
+ {
563
+ inputs: [],
564
+ name: "getRewardTokens",
565
+ outputs: [
566
+ {
567
+ internalType: "address[]",
568
+ name: "rewardTokens",
569
+ type: "address[]",
570
+ },
571
+ ],
572
+ stateMutability: "view",
573
+ type: "function",
574
+ },
575
+ {
576
+ inputs: [],
577
+ name: "getTokensIn",
578
+ outputs: [
579
+ {
580
+ internalType: "address[]",
581
+ name: "",
582
+ type: "address[]",
583
+ },
584
+ ],
585
+ stateMutability: "view",
586
+ type: "function",
587
+ },
588
+ {
589
+ inputs: [],
590
+ name: "getTokensOut",
591
+ outputs: [
592
+ {
593
+ internalType: "address[]",
594
+ name: "",
595
+ type: "address[]",
596
+ },
597
+ ],
598
+ stateMutability: "view",
599
+ type: "function",
600
+ },
601
+ {
602
+ inputs: [
603
+ {
604
+ internalType: "address",
605
+ name: "token",
606
+ type: "address",
607
+ },
608
+ ],
609
+ name: "isValidTokenIn",
610
+ outputs: [
611
+ {
612
+ internalType: "bool",
613
+ name: "",
614
+ type: "bool",
615
+ },
616
+ ],
617
+ stateMutability: "view",
618
+ type: "function",
619
+ },
620
+ {
621
+ inputs: [
622
+ {
623
+ internalType: "address",
624
+ name: "token",
625
+ type: "address",
626
+ },
627
+ ],
628
+ name: "isValidTokenOut",
629
+ outputs: [
630
+ {
631
+ internalType: "bool",
632
+ name: "",
633
+ type: "bool",
634
+ },
635
+ ],
636
+ stateMutability: "view",
637
+ type: "function",
638
+ },
639
+ {
640
+ inputs: [],
641
+ name: "name",
642
+ outputs: [
643
+ {
644
+ internalType: "string",
645
+ name: "",
646
+ type: "string",
647
+ },
648
+ ],
649
+ stateMutability: "view",
650
+ type: "function",
651
+ },
652
+ {
653
+ inputs: [
654
+ {
655
+ internalType: "address",
656
+ name: "owner",
657
+ type: "address",
658
+ },
659
+ ],
660
+ name: "nonces",
661
+ outputs: [
662
+ {
663
+ internalType: "uint256",
664
+ name: "",
665
+ type: "uint256",
666
+ },
667
+ ],
668
+ stateMutability: "view",
669
+ type: "function",
670
+ },
671
+ {
672
+ inputs: [],
673
+ name: "owner",
674
+ outputs: [
675
+ {
676
+ internalType: "address",
677
+ name: "",
678
+ type: "address",
679
+ },
680
+ ],
681
+ stateMutability: "view",
682
+ type: "function",
683
+ },
684
+ {
685
+ inputs: [],
686
+ name: "pause",
687
+ outputs: [],
688
+ stateMutability: "nonpayable",
689
+ type: "function",
690
+ },
691
+ {
692
+ inputs: [],
693
+ name: "paused",
694
+ outputs: [
695
+ {
696
+ internalType: "bool",
697
+ name: "",
698
+ type: "bool",
699
+ },
700
+ ],
701
+ stateMutability: "view",
702
+ type: "function",
703
+ },
704
+ {
705
+ inputs: [],
706
+ name: "pendingOwner",
707
+ outputs: [
708
+ {
709
+ internalType: "address",
710
+ name: "",
711
+ type: "address",
712
+ },
713
+ ],
714
+ stateMutability: "view",
715
+ type: "function",
716
+ },
717
+ {
718
+ inputs: [
719
+ {
720
+ internalType: "address",
721
+ name: "owner",
722
+ type: "address",
723
+ },
724
+ {
725
+ internalType: "address",
726
+ name: "spender",
727
+ type: "address",
728
+ },
729
+ {
730
+ internalType: "uint256",
731
+ name: "value",
732
+ type: "uint256",
733
+ },
734
+ {
735
+ internalType: "uint256",
736
+ name: "deadline",
737
+ type: "uint256",
738
+ },
739
+ {
740
+ internalType: "uint8",
741
+ name: "v",
742
+ type: "uint8",
743
+ },
744
+ {
745
+ internalType: "bytes32",
746
+ name: "r",
747
+ type: "bytes32",
748
+ },
749
+ {
750
+ internalType: "bytes32",
751
+ name: "s",
752
+ type: "bytes32",
753
+ },
754
+ ],
755
+ name: "permit",
756
+ outputs: [],
757
+ stateMutability: "nonpayable",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [
762
+ {
763
+ internalType: "address",
764
+ name: "tokenIn",
765
+ type: "address",
766
+ },
767
+ {
768
+ internalType: "uint256",
769
+ name: "amountTokenToDeposit",
770
+ type: "uint256",
771
+ },
772
+ ],
773
+ name: "previewDeposit",
774
+ outputs: [
775
+ {
776
+ internalType: "uint256",
777
+ name: "amountSharesOut",
778
+ type: "uint256",
779
+ },
780
+ ],
781
+ stateMutability: "view",
782
+ type: "function",
783
+ },
784
+ {
785
+ inputs: [
786
+ {
787
+ internalType: "address",
788
+ name: "tokenOut",
789
+ type: "address",
790
+ },
791
+ {
792
+ internalType: "uint256",
793
+ name: "amountSharesToRedeem",
794
+ type: "uint256",
795
+ },
796
+ ],
797
+ name: "previewRedeem",
798
+ outputs: [
799
+ {
800
+ internalType: "uint256",
801
+ name: "amountTokenOut",
802
+ type: "uint256",
803
+ },
804
+ ],
805
+ stateMutability: "view",
806
+ type: "function",
807
+ },
808
+ {
809
+ inputs: [
810
+ {
811
+ internalType: "address",
812
+ name: "receiver",
813
+ type: "address",
814
+ },
815
+ {
816
+ internalType: "uint256",
817
+ name: "amountSharesToRedeem",
818
+ type: "uint256",
819
+ },
820
+ {
821
+ internalType: "address",
822
+ name: "tokenOut",
823
+ type: "address",
824
+ },
825
+ {
826
+ internalType: "uint256",
827
+ name: "minTokenOut",
828
+ type: "uint256",
829
+ },
830
+ {
831
+ internalType: "bool",
832
+ name: "burnFromInternalBalance",
833
+ type: "bool",
834
+ },
835
+ ],
836
+ name: "redeem",
837
+ outputs: [
838
+ {
839
+ internalType: "uint256",
840
+ name: "amountTokenOut",
841
+ type: "uint256",
842
+ },
843
+ ],
844
+ stateMutability: "nonpayable",
845
+ type: "function",
846
+ },
847
+ {
848
+ inputs: [],
849
+ name: "rewardIndexesCurrent",
850
+ outputs: [
851
+ {
852
+ internalType: "uint256[]",
853
+ name: "indexes",
854
+ type: "uint256[]",
855
+ },
856
+ ],
857
+ stateMutability: "nonpayable",
858
+ type: "function",
859
+ },
860
+ {
861
+ inputs: [],
862
+ name: "rewardIndexesStored",
863
+ outputs: [
864
+ {
865
+ internalType: "uint256[]",
866
+ name: "indexes",
867
+ type: "uint256[]",
868
+ },
869
+ ],
870
+ stateMutability: "view",
871
+ type: "function",
872
+ },
873
+ {
874
+ inputs: [],
875
+ name: "stakeToken",
876
+ outputs: [
877
+ {
878
+ internalType: "address",
879
+ name: "",
880
+ type: "address",
881
+ },
882
+ ],
883
+ stateMutability: "view",
884
+ type: "function",
885
+ },
886
+ {
887
+ inputs: [],
888
+ name: "symbol",
889
+ outputs: [
890
+ {
891
+ internalType: "string",
892
+ name: "",
893
+ type: "string",
894
+ },
895
+ ],
896
+ stateMutability: "view",
897
+ type: "function",
898
+ },
899
+ {
900
+ inputs: [],
901
+ name: "totalSupply",
902
+ outputs: [
903
+ {
904
+ internalType: "uint256",
905
+ name: "",
906
+ type: "uint256",
907
+ },
908
+ ],
909
+ stateMutability: "view",
910
+ type: "function",
911
+ },
912
+ {
913
+ inputs: [
914
+ {
915
+ internalType: "address",
916
+ name: "to",
917
+ type: "address",
918
+ },
919
+ {
920
+ internalType: "uint256",
921
+ name: "amount",
922
+ type: "uint256",
923
+ },
924
+ ],
925
+ name: "transfer",
926
+ outputs: [
927
+ {
928
+ internalType: "bool",
929
+ name: "",
930
+ type: "bool",
931
+ },
932
+ ],
933
+ stateMutability: "nonpayable",
934
+ type: "function",
935
+ },
936
+ {
937
+ inputs: [
938
+ {
939
+ internalType: "address",
940
+ name: "from",
941
+ type: "address",
942
+ },
943
+ {
944
+ internalType: "address",
945
+ name: "to",
946
+ type: "address",
947
+ },
948
+ {
949
+ internalType: "uint256",
950
+ name: "amount",
951
+ type: "uint256",
952
+ },
953
+ ],
954
+ name: "transferFrom",
955
+ outputs: [
956
+ {
957
+ internalType: "bool",
958
+ name: "",
959
+ type: "bool",
960
+ },
961
+ ],
962
+ stateMutability: "nonpayable",
963
+ type: "function",
964
+ },
965
+ {
966
+ inputs: [
967
+ {
968
+ internalType: "address",
969
+ name: "newOwner",
970
+ type: "address",
971
+ },
972
+ {
973
+ internalType: "bool",
974
+ name: "direct",
975
+ type: "bool",
976
+ },
977
+ {
978
+ internalType: "bool",
979
+ name: "renounce",
980
+ type: "bool",
981
+ },
982
+ ],
983
+ name: "transferOwnership",
984
+ outputs: [],
985
+ stateMutability: "nonpayable",
986
+ type: "function",
987
+ },
988
+ {
989
+ inputs: [],
990
+ name: "unpause",
991
+ outputs: [],
992
+ stateMutability: "nonpayable",
993
+ type: "function",
994
+ },
995
+ {
996
+ inputs: [],
997
+ name: "vault",
998
+ outputs: [
999
+ {
1000
+ internalType: "address",
1001
+ name: "",
1002
+ type: "address",
1003
+ },
1004
+ ],
1005
+ stateMutability: "view",
1006
+ type: "function",
1007
+ },
1008
+ {
1009
+ inputs: [],
1010
+ name: "vaultSupervisor",
1011
+ outputs: [
1012
+ {
1013
+ internalType: "address",
1014
+ name: "",
1015
+ type: "address",
1016
+ },
1017
+ ],
1018
+ stateMutability: "view",
1019
+ type: "function",
1020
+ },
1021
+ {
1022
+ inputs: [],
1023
+ name: "yieldToken",
1024
+ outputs: [
1025
+ {
1026
+ internalType: "address",
1027
+ name: "",
1028
+ type: "address",
1029
+ },
1030
+ ],
1031
+ stateMutability: "view",
1032
+ type: "function",
1033
+ },
1034
+ {
1035
+ stateMutability: "payable",
1036
+ type: "receive",
1037
+ },
1038
+ ];
1039
+
1040
+ export class PendleKarakVaultSYBaseUpg__factory {
1041
+ static readonly abi = _abi;
1042
+ static createInterface(): PendleKarakVaultSYBaseUpgInterface {
1043
+ return new utils.Interface(_abi) as PendleKarakVaultSYBaseUpgInterface;
1044
+ }
1045
+ static connect(
1046
+ address: string,
1047
+ signerOrProvider: Signer | Provider
1048
+ ): PendleKarakVaultSYBaseUpg {
1049
+ return new Contract(
1050
+ address,
1051
+ _abi,
1052
+ signerOrProvider
1053
+ ) as PendleKarakVaultSYBaseUpg;
1054
+ }
1055
+ }