@gearbox-protocol/sdk 3.0.0-vfourabi.1 → 3.0.0-vfourabi.3

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 (275) hide show
  1. package/.eslintignore +3 -0
  2. package/.github/workflows/lint_pr.yml +18 -0
  3. package/.github/workflows/pr.yml +39 -0
  4. package/.github/workflows/release.yml +47 -0
  5. package/.gitignore +19 -0
  6. package/.husky/commit-msg +1 -0
  7. package/.husky/pre-commit +1 -0
  8. package/.nvmrc +1 -0
  9. package/.releaserc.json +34 -0
  10. package/.vscode/extensions.json +7 -0
  11. package/.vscode/settings.json +16 -0
  12. package/.yarn/install-state.gz +0 -0
  13. package/.yarnrc.yml +1 -0
  14. package/ContributionAgreement +72 -0
  15. package/dist/cjs/abi/iZapper.cjs +85 -0
  16. package/dist/cjs/abi/iZapper.d.ts +123 -0
  17. package/dist/cjs/sdk/index.cjs +19830 -19764
  18. package/dist/cjs/sdk/index.d.ts +3746 -3061
  19. package/dist/esm/abi/iZapper.d.mts +123 -0
  20. package/dist/esm/abi/iZapper.mjs +83 -0
  21. package/dist/esm/sdk/index.d.mts +3746 -3061
  22. package/dist/esm/sdk/index.mjs +19807 -19765
  23. package/jest.config.js +7 -0
  24. package/package.json +32 -2
  25. package/scripts/example.ts +30 -0
  26. package/src/abi/compressors.ts +3962 -0
  27. package/src/abi/errors.ts +196 -0
  28. package/src/abi/iERC20.ts +122 -0
  29. package/src/abi/iPausable.ts +35 -0
  30. package/src/abi/iPriceFeedStore.ts +227 -0
  31. package/src/abi/iUpdatablePriceFeed.ts +16 -0
  32. package/src/abi/iVersion.ts +28 -0
  33. package/src/abi/iZapper.ts +84 -0
  34. package/src/abi/routerV300.ts +378 -0
  35. package/src/abi/v300.ts +4151 -0
  36. package/src/abi/v310.ts +5179 -0
  37. package/src/adapters/AbstractAdapter.ts +28 -0
  38. package/src/adapters/BalancerV2VaultAdapterContract.ts +19 -0
  39. package/src/adapters/BalancerV3RouterAdapterContract.ts +19 -0
  40. package/src/adapters/CamelotV3AdapterContract.ts +20 -0
  41. package/src/adapters/ConvexV1BaseRewardPoolAdapterContract.ts +20 -0
  42. package/src/adapters/ConvexV1BoosterAdapterContract.ts +20 -0
  43. package/src/adapters/Curve2AssetsAdapterContract.ts +20 -0
  44. package/src/adapters/Curve3AssetsAdapterContract.ts +20 -0
  45. package/src/adapters/Curve4AssetsAdapterContract.ts +20 -0
  46. package/src/adapters/CurveV1AdapterStETHContract.ts +20 -0
  47. package/src/adapters/CurveV1StableNGAdapterContract.ts +20 -0
  48. package/src/adapters/DaiUsdsAdapterContract.ts +21 -0
  49. package/src/adapters/ERC4626AdapterContract.ts +20 -0
  50. package/src/adapters/MellowERC4626VaultAdapterContract.ts +20 -0
  51. package/src/adapters/MellowVaultAdapterContract.ts +20 -0
  52. package/src/adapters/PendleRouterAdapterContract.ts +21 -0
  53. package/src/adapters/StakingRewardsAdapterContract.ts +21 -0
  54. package/src/adapters/UniswapV2AdapterContract.ts +20 -0
  55. package/src/adapters/UniswapV3AdapterContract.ts +170 -0
  56. package/src/adapters/VelodromeV2AdapterContract.ts +20 -0
  57. package/src/adapters/WstETHV1AdapterContract.ts +20 -0
  58. package/src/adapters/YearnV2AdapterContract.ts +20 -0
  59. package/src/adapters/abi/adapters.ts +4325 -0
  60. package/src/adapters/abi/iBalancerV3RouterAdapter.ts +126 -0
  61. package/src/adapters/abi/index.ts +2 -0
  62. package/src/adapters/index.ts +2 -0
  63. package/src/adapters/plugin.ts +90 -0
  64. package/src/adapters/types.ts +62 -0
  65. package/src/dev/AccountOpener.ts +611 -0
  66. package/src/dev/PriceFeedStore.ts +95 -0
  67. package/src/dev/SDKExample.ts +167 -0
  68. package/src/dev/abi.ts +14 -0
  69. package/src/dev/calcLiquidatableLTs.ts +77 -0
  70. package/src/dev/createAnvilClient.ts +155 -0
  71. package/src/dev/index.ts +7 -0
  72. package/src/dev/setLTZero.ts +127 -0
  73. package/src/dev/setLTs.ts +68 -0
  74. package/src/sdk/GearboxSDK.ts +488 -0
  75. package/src/sdk/abi/index.ts +1 -0
  76. package/src/sdk/abi/oracles.ts +4614 -0
  77. package/src/sdk/accounts/CreditAccountsService.ts +1123 -0
  78. package/src/sdk/accounts/index.ts +1 -0
  79. package/src/sdk/base/AddressLabeller.ts +35 -0
  80. package/src/sdk/base/BaseContract.ts +237 -0
  81. package/src/sdk/base/IAddressLabeller.ts +13 -0
  82. package/src/sdk/base/PlaceholderContract.ts +12 -0
  83. package/src/sdk/base/SDKConstruct.ts +35 -0
  84. package/src/sdk/base/TokensMeta.ts +45 -0
  85. package/src/sdk/base/index.ts +6 -0
  86. package/src/sdk/base/types.ts +102 -0
  87. package/src/sdk/bots/BotsService.ts +92 -0
  88. package/src/sdk/bots/index.ts +2 -0
  89. package/src/sdk/bots/utils.ts +19 -0
  90. package/src/sdk/chain/Provider.ts +99 -0
  91. package/src/sdk/chain/chains.ts +41 -0
  92. package/src/sdk/chain/detectChain.ts +21 -0
  93. package/src/sdk/chain/index.ts +3 -0
  94. package/src/sdk/constants/address-provider.ts +47 -0
  95. package/src/sdk/constants/addresses.ts +82 -0
  96. package/src/sdk/constants/bot-permissions.ts +36 -0
  97. package/src/sdk/constants/index.ts +6 -0
  98. package/src/sdk/constants/math.ts +23 -0
  99. package/src/sdk/constants/networks.ts +38 -0
  100. package/src/sdk/constants/periphery.ts +7 -0
  101. package/src/sdk/core/BotListV3Contract.ts +103 -0
  102. package/src/sdk/core/GearStakingV3Contract.ts +84 -0
  103. package/src/sdk/core/address-provider/AbstractAddressProviderContract.ts +101 -0
  104. package/src/sdk/core/address-provider/AddressProviderV3Contract.ts +105 -0
  105. package/src/sdk/core/address-provider/AddressProviderV3_1Contract.ts +92 -0
  106. package/src/sdk/core/address-provider/getAddressProvider.ts +45 -0
  107. package/src/sdk/core/address-provider/index.ts +4 -0
  108. package/src/sdk/core/address-provider/types.ts +17 -0
  109. package/src/sdk/core/index.ts +3 -0
  110. package/src/sdk/gauges/GaugeStakingService.ts +100 -0
  111. package/src/sdk/gauges/index.ts +2 -0
  112. package/src/sdk/gauges/utils.ts +25 -0
  113. package/src/sdk/index.ts +17 -0
  114. package/src/sdk/market/MarketConfiguratorContract.ts +78 -0
  115. package/src/sdk/market/MarketRegister.ts +330 -0
  116. package/src/sdk/market/MarketSuite.ts +83 -0
  117. package/src/sdk/market/adapters/PlaceholderAdapterContracts.ts +18 -0
  118. package/src/sdk/market/adapters/factory.ts +34 -0
  119. package/src/sdk/market/adapters/index.ts +3 -0
  120. package/src/sdk/market/adapters/types.ts +7 -0
  121. package/src/sdk/market/credit/CreditConfiguratorV300Contract.ts +164 -0
  122. package/src/sdk/market/credit/CreditConfiguratorV310Contract.ts +139 -0
  123. package/src/sdk/market/credit/CreditFacadeV300Contract.ts +206 -0
  124. package/src/sdk/market/credit/CreditFacadeV310Contract.ts +190 -0
  125. package/src/sdk/market/credit/CreditManagerV300Contract.ts +122 -0
  126. package/src/sdk/market/credit/CreditManagerV310Contract.ts +122 -0
  127. package/src/sdk/market/credit/CreditSuite.ts +65 -0
  128. package/src/sdk/market/credit/createCreditConfigurator.ts +18 -0
  129. package/src/sdk/market/credit/createCreditFacade.ts +18 -0
  130. package/src/sdk/market/credit/createCreditManager.ts +18 -0
  131. package/src/sdk/market/credit/index.ts +8 -0
  132. package/src/sdk/market/credit/types.ts +42 -0
  133. package/src/sdk/market/index.ts +7 -0
  134. package/src/sdk/market/oracle/PriceOracleBaseContract.ts +376 -0
  135. package/src/sdk/market/oracle/PriceOracleV300Contract.ts +71 -0
  136. package/src/sdk/market/oracle/PriceOracleV310Contract.ts +43 -0
  137. package/src/sdk/market/oracle/createPriceOracle.ts +22 -0
  138. package/src/sdk/market/oracle/index.ts +4 -0
  139. package/src/sdk/market/oracle/types.ts +48 -0
  140. package/src/sdk/market/pool/GaugeContract.ts +120 -0
  141. package/src/sdk/market/pool/LinearInterestRateModelContract.ts +75 -0
  142. package/src/sdk/market/pool/PoolQuotaKeeperV300Contract.ts +89 -0
  143. package/src/sdk/market/pool/PoolQuotaKeeperV310Contract.ts +89 -0
  144. package/src/sdk/market/pool/PoolSuite.ts +76 -0
  145. package/src/sdk/market/pool/PoolV300Contract.ts +144 -0
  146. package/src/sdk/market/pool/PoolV310Contract.ts +144 -0
  147. package/src/sdk/market/pool/TumblerContract.ts +73 -0
  148. package/src/sdk/market/pool/createInterestRateModel.ts +33 -0
  149. package/src/sdk/market/pool/createPool.ts +19 -0
  150. package/src/sdk/market/pool/createPoolQuotaKeeper.ts +20 -0
  151. package/src/sdk/market/pool/createRateKeeper.ts +25 -0
  152. package/src/sdk/market/pool/index.ts +6 -0
  153. package/src/sdk/market/pool/types.ts +28 -0
  154. package/src/sdk/market/pricefeeds/AbstractLPPriceFeed.ts +71 -0
  155. package/src/sdk/market/pricefeeds/AbstractPriceFeed.ts +137 -0
  156. package/src/sdk/market/pricefeeds/BalancerStablePriceFeed.ts +24 -0
  157. package/src/sdk/market/pricefeeds/BalancerWeightedPriceFeed.ts +70 -0
  158. package/src/sdk/market/pricefeeds/BoundedPriceFeed.ts +34 -0
  159. package/src/sdk/market/pricefeeds/ChainlinkPriceFeed.ts +16 -0
  160. package/src/sdk/market/pricefeeds/CompositePriceFeed.ts +25 -0
  161. package/src/sdk/market/pricefeeds/CurveCryptoPriceFeed.ts +24 -0
  162. package/src/sdk/market/pricefeeds/CurveStablePriceFeed.ts +24 -0
  163. package/src/sdk/market/pricefeeds/CurveUSDPriceFeed.ts +24 -0
  164. package/src/sdk/market/pricefeeds/Erc4626PriceFeed.ts +36 -0
  165. package/src/sdk/market/pricefeeds/MellowLRTPriceFeed.ts +26 -0
  166. package/src/sdk/market/pricefeeds/PendleTWAPPTPriceFeed.ts +44 -0
  167. package/src/sdk/market/pricefeeds/PriceFeedRef.ts +34 -0
  168. package/src/sdk/market/pricefeeds/PriceFeedsRegister.ts +293 -0
  169. package/src/sdk/market/pricefeeds/RedstonePriceFeed.ts +65 -0
  170. package/src/sdk/market/pricefeeds/RedstoneUpdater.ts +304 -0
  171. package/src/sdk/market/pricefeeds/WstETHPriceFeed.ts +24 -0
  172. package/src/sdk/market/pricefeeds/YearnPriceFeed.ts +24 -0
  173. package/src/sdk/market/pricefeeds/ZeroPriceFeed.ts +17 -0
  174. package/src/sdk/market/pricefeeds/index.ts +20 -0
  175. package/src/sdk/market/pricefeeds/types.ts +82 -0
  176. package/src/sdk/market/pricefeeds/utils.ts +24 -0
  177. package/src/sdk/plugins/index.ts +10 -0
  178. package/src/sdk/router/PathOptionFactory.ts +147 -0
  179. package/src/sdk/router/RouterV3Contract.ts +558 -0
  180. package/src/sdk/router/index.ts +2 -0
  181. package/src/sdk/router/types.ts +48 -0
  182. package/src/sdk/sdk-gov-legacy/contracts/adapters.ts +39 -0
  183. package/src/sdk/sdk-gov-legacy/contracts/contracts.ts +647 -0
  184. package/src/sdk/sdk-gov-legacy/contracts/index.ts +2 -0
  185. package/src/sdk/sdk-gov-legacy/core/constants.ts +11 -0
  186. package/src/sdk/sdk-gov-legacy/index.ts +4 -0
  187. package/src/sdk/sdk-gov-legacy/oracles/PriceFeedType.ts +24 -0
  188. package/src/sdk/sdk-gov-legacy/oracles/index.ts +1 -0
  189. package/src/sdk/sdk-gov-legacy/tokens/aave.ts +101 -0
  190. package/src/sdk/sdk-gov-legacy/tokens/aura.ts +284 -0
  191. package/src/sdk/sdk-gov-legacy/tokens/balancer.ts +421 -0
  192. package/src/sdk/sdk-gov-legacy/tokens/compound.ts +79 -0
  193. package/src/sdk/sdk-gov-legacy/tokens/convex.ts +561 -0
  194. package/src/sdk/sdk-gov-legacy/tokens/curveLP.ts +480 -0
  195. package/src/sdk/sdk-gov-legacy/tokens/decimals.ts +301 -0
  196. package/src/sdk/sdk-gov-legacy/tokens/erc4626.ts +75 -0
  197. package/src/sdk/sdk-gov-legacy/tokens/gear.ts +273 -0
  198. package/src/sdk/sdk-gov-legacy/tokens/index.ts +18 -0
  199. package/src/sdk/sdk-gov-legacy/tokens/normal.ts +613 -0
  200. package/src/sdk/sdk-gov-legacy/tokens/quoted.ts +10 -0
  201. package/src/sdk/sdk-gov-legacy/tokens/stakingRewards.ts +41 -0
  202. package/src/sdk/sdk-gov-legacy/tokens/token.ts +2354 -0
  203. package/src/sdk/sdk-gov-legacy/tokens/tokenData.ts +44 -0
  204. package/src/sdk/sdk-gov-legacy/tokens/tokenType.ts +33 -0
  205. package/src/sdk/sdk-gov-legacy/tokens/wrapped.ts +28 -0
  206. package/src/sdk/sdk-gov-legacy/tokens/yearn.ts +122 -0
  207. package/src/sdk/sdk-gov-legacy/tokens/zircuit.ts +44 -0
  208. package/src/sdk/sdk-legacy/apy/index.ts +149 -0
  209. package/src/sdk/sdk-legacy/core/assets.ts +200 -0
  210. package/src/sdk/sdk-legacy/core/creditAccount.spec.ts +1966 -0
  211. package/src/sdk/sdk-legacy/core/creditAccount.ts +816 -0
  212. package/src/sdk/sdk-legacy/core/creditManager.ts +316 -0
  213. package/src/sdk/sdk-legacy/core/creditSession.ts +352 -0
  214. package/src/sdk/sdk-legacy/core/endpoint.ts +131 -0
  215. package/src/sdk/sdk-legacy/core/eventOrTx.ts +101 -0
  216. package/src/sdk/sdk-legacy/core/pool.ts +439 -0
  217. package/src/sdk/sdk-legacy/core/strategy.ts +82 -0
  218. package/src/sdk/sdk-legacy/core/transactions.ts +865 -0
  219. package/src/sdk/sdk-legacy/gearboxRewards/api.ts +704 -0
  220. package/src/sdk/sdk-legacy/gearboxRewards/apy.ts +267 -0
  221. package/src/sdk/sdk-legacy/gearboxRewards/extraAPY.ts +165 -0
  222. package/src/sdk/sdk-legacy/gearboxRewards/index.ts +3 -0
  223. package/src/sdk/sdk-legacy/gearboxRewards/merklAPI.ts +151 -0
  224. package/src/sdk/sdk-legacy/index.ts +21 -0
  225. package/src/sdk/sdk-legacy/pathfinder/core.ts +18 -0
  226. package/src/sdk/sdk-legacy/pathfinder/index.ts +1 -0
  227. package/src/sdk/sdk-legacy/payload/creditAccount.ts +48 -0
  228. package/src/sdk/sdk-legacy/payload/creditManager.ts +133 -0
  229. package/src/sdk/sdk-legacy/payload/creditSession.ts +143 -0
  230. package/src/sdk/sdk-legacy/payload/graphPayload.ts +10 -0
  231. package/src/sdk/sdk-legacy/payload/pool.ts +198 -0
  232. package/src/sdk/sdk-legacy/payload/token.ts +13 -0
  233. package/src/sdk/sdk-legacy/tokens/tokenData.ts +57 -0
  234. package/src/sdk/sdk-legacy/types/IAirdropDistributor.ts +103 -0
  235. package/src/sdk/sdk-legacy/types/IBaseRewardPool.ts +249 -0
  236. package/src/sdk/sdk-legacy/types/IDataCompressorV3.ts +957 -0
  237. package/src/sdk/sdk-legacy/types/IDegenDistributor.ts +70 -0
  238. package/src/sdk/sdk-legacy/types/IERC20Permit.ts +35 -0
  239. package/src/sdk/sdk-legacy/types/IERC20ZapperDeposits.ts +99 -0
  240. package/src/sdk/sdk-legacy/types/IETHZapperDeposits.ts +27 -0
  241. package/src/sdk/sdk-legacy/types/IFarmingPool.ts +229 -0
  242. package/src/sdk/sdk-legacy/types/IInterestRateModel.ts +23 -0
  243. package/src/sdk/sdk-legacy/types/IMulticall3.ts +242 -0
  244. package/src/sdk/sdk-legacy/types/IOffchainOracle.ts +31 -0
  245. package/src/sdk/sdk-legacy/types/index.ts +11 -0
  246. package/src/sdk/sdk-legacy/utils/formatter.ts +46 -0
  247. package/src/sdk/sdk-legacy/utils/index.ts +3 -0
  248. package/src/sdk/sdk-legacy/utils/math.ts +6 -0
  249. package/src/sdk/sdk-legacy/utils/price.ts +27 -0
  250. package/src/sdk/types/index.ts +5 -0
  251. package/src/sdk/types/logger.ts +13 -0
  252. package/src/sdk/types/state-human.ts +224 -0
  253. package/src/sdk/types/state.ts +8 -0
  254. package/src/sdk/types/transactions.ts +22 -0
  255. package/src/sdk/types/tvl.ts +4 -0
  256. package/src/sdk/utils/AddressMap.ts +111 -0
  257. package/src/sdk/utils/bytes32ToString.ts +6 -0
  258. package/src/sdk/utils/childLogger.ts +8 -0
  259. package/src/sdk/utils/createRawTx.ts +86 -0
  260. package/src/sdk/utils/etherscan.ts +42 -0
  261. package/src/sdk/utils/filterDust.ts +20 -0
  262. package/src/sdk/utils/formatter.ts +124 -0
  263. package/src/sdk/utils/index.ts +10 -0
  264. package/src/sdk/utils/internal/Hooks.ts +51 -0
  265. package/src/sdk/utils/internal/index.ts +1 -0
  266. package/src/sdk/utils/json.ts +27 -0
  267. package/src/sdk/utils/mappers.ts +38 -0
  268. package/src/sdk/utils/retry.ts +24 -0
  269. package/src/sdk/utils/viem/detectNetwork.ts +27 -0
  270. package/src/sdk/utils/viem/index.ts +3 -0
  271. package/src/sdk/utils/viem/sendRawTx.ts +36 -0
  272. package/src/sdk/utils/viem/simulateMulticall.ts +262 -0
  273. package/tsconfig.build.json +4 -0
  274. package/tsconfig.json +16 -0
  275. package/tsup.config.ts +77 -0
@@ -0,0 +1,4614 @@
1
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
+ // BPTStablePriceFeed
3
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
+
5
+ export const bptStablePriceFeedAbi = [
6
+ {
7
+ type: "constructor",
8
+ inputs: [
9
+ { name: "addressProvider", internalType: "address", type: "address" },
10
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
11
+ { name: "_balancerPool", internalType: "address", type: "address" },
12
+ {
13
+ name: "priceFeeds",
14
+ internalType: "struct PriceFeedParams[5]",
15
+ type: "tuple[5]",
16
+ components: [
17
+ { name: "priceFeed", internalType: "address", type: "address" },
18
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
19
+ ],
20
+ },
21
+ ],
22
+ stateMutability: "nonpayable",
23
+ },
24
+ {
25
+ type: "function",
26
+ inputs: [],
27
+ name: "acl",
28
+ outputs: [{ name: "", internalType: "address", type: "address" }],
29
+ stateMutability: "view",
30
+ },
31
+ {
32
+ type: "function",
33
+ inputs: [],
34
+ name: "allowBoundsUpdate",
35
+ outputs: [],
36
+ stateMutability: "nonpayable",
37
+ },
38
+ {
39
+ type: "function",
40
+ inputs: [],
41
+ name: "controller",
42
+ outputs: [{ name: "", internalType: "address", type: "address" }],
43
+ stateMutability: "view",
44
+ },
45
+ {
46
+ type: "function",
47
+ inputs: [],
48
+ name: "decimals",
49
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
50
+ stateMutability: "view",
51
+ },
52
+ {
53
+ type: "function",
54
+ inputs: [],
55
+ name: "description",
56
+ outputs: [{ name: "", internalType: "string", type: "string" }],
57
+ stateMutability: "view",
58
+ },
59
+ {
60
+ type: "function",
61
+ inputs: [],
62
+ name: "forbidBoundsUpdate",
63
+ outputs: [],
64
+ stateMutability: "nonpayable",
65
+ },
66
+ {
67
+ type: "function",
68
+ inputs: [],
69
+ name: "getAggregatePrice",
70
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
71
+ stateMutability: "view",
72
+ },
73
+ {
74
+ type: "function",
75
+ inputs: [],
76
+ name: "getLPExchangeRate",
77
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
78
+ stateMutability: "view",
79
+ },
80
+ {
81
+ type: "function",
82
+ inputs: [],
83
+ name: "getScale",
84
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
85
+ stateMutability: "pure",
86
+ },
87
+ {
88
+ type: "function",
89
+ inputs: [],
90
+ name: "lastBoundsUpdate",
91
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
92
+ stateMutability: "view",
93
+ },
94
+ {
95
+ type: "function",
96
+ inputs: [],
97
+ name: "latestRoundData",
98
+ outputs: [
99
+ { name: "", internalType: "uint80", type: "uint80" },
100
+ { name: "answer", internalType: "int256", type: "int256" },
101
+ { name: "", internalType: "uint256", type: "uint256" },
102
+ { name: "", internalType: "uint256", type: "uint256" },
103
+ { name: "", internalType: "uint80", type: "uint80" },
104
+ ],
105
+ stateMutability: "view",
106
+ },
107
+ {
108
+ type: "function",
109
+ inputs: [],
110
+ name: "lowerBound",
111
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
112
+ stateMutability: "view",
113
+ },
114
+ {
115
+ type: "function",
116
+ inputs: [],
117
+ name: "lpContract",
118
+ outputs: [{ name: "", internalType: "address", type: "address" }],
119
+ stateMutability: "view",
120
+ },
121
+ {
122
+ type: "function",
123
+ inputs: [],
124
+ name: "lpToken",
125
+ outputs: [{ name: "", internalType: "address", type: "address" }],
126
+ stateMutability: "view",
127
+ },
128
+ {
129
+ type: "function",
130
+ inputs: [],
131
+ name: "numAssets",
132
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
133
+ stateMutability: "view",
134
+ },
135
+ {
136
+ type: "function",
137
+ inputs: [],
138
+ name: "pause",
139
+ outputs: [],
140
+ stateMutability: "nonpayable",
141
+ },
142
+ {
143
+ type: "function",
144
+ inputs: [],
145
+ name: "paused",
146
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
147
+ stateMutability: "view",
148
+ },
149
+ {
150
+ type: "function",
151
+ inputs: [],
152
+ name: "priceFeed0",
153
+ outputs: [{ name: "", internalType: "address", type: "address" }],
154
+ stateMutability: "view",
155
+ },
156
+ {
157
+ type: "function",
158
+ inputs: [],
159
+ name: "priceFeed1",
160
+ outputs: [{ name: "", internalType: "address", type: "address" }],
161
+ stateMutability: "view",
162
+ },
163
+ {
164
+ type: "function",
165
+ inputs: [],
166
+ name: "priceFeed2",
167
+ outputs: [{ name: "", internalType: "address", type: "address" }],
168
+ stateMutability: "view",
169
+ },
170
+ {
171
+ type: "function",
172
+ inputs: [],
173
+ name: "priceFeed3",
174
+ outputs: [{ name: "", internalType: "address", type: "address" }],
175
+ stateMutability: "view",
176
+ },
177
+ {
178
+ type: "function",
179
+ inputs: [],
180
+ name: "priceFeed4",
181
+ outputs: [{ name: "", internalType: "address", type: "address" }],
182
+ stateMutability: "view",
183
+ },
184
+ {
185
+ type: "function",
186
+ inputs: [],
187
+ name: "priceFeedType",
188
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
189
+ stateMutability: "view",
190
+ },
191
+ {
192
+ type: "function",
193
+ inputs: [],
194
+ name: "priceOracle",
195
+ outputs: [{ name: "", internalType: "address", type: "address" }],
196
+ stateMutability: "view",
197
+ },
198
+ {
199
+ type: "function",
200
+ inputs: [
201
+ { name: "newController", internalType: "address", type: "address" },
202
+ ],
203
+ name: "setController",
204
+ outputs: [],
205
+ stateMutability: "nonpayable",
206
+ },
207
+ {
208
+ type: "function",
209
+ inputs: [
210
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
211
+ ],
212
+ name: "setLimiter",
213
+ outputs: [],
214
+ stateMutability: "nonpayable",
215
+ },
216
+ {
217
+ type: "function",
218
+ inputs: [],
219
+ name: "skipCheck0",
220
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
221
+ stateMutability: "view",
222
+ },
223
+ {
224
+ type: "function",
225
+ inputs: [],
226
+ name: "skipCheck1",
227
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
228
+ stateMutability: "view",
229
+ },
230
+ {
231
+ type: "function",
232
+ inputs: [],
233
+ name: "skipCheck2",
234
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
235
+ stateMutability: "view",
236
+ },
237
+ {
238
+ type: "function",
239
+ inputs: [],
240
+ name: "skipCheck3",
241
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
242
+ stateMutability: "view",
243
+ },
244
+ {
245
+ type: "function",
246
+ inputs: [],
247
+ name: "skipCheck4",
248
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
249
+ stateMutability: "view",
250
+ },
251
+ {
252
+ type: "function",
253
+ inputs: [],
254
+ name: "skipPriceCheck",
255
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
256
+ stateMutability: "view",
257
+ },
258
+ {
259
+ type: "function",
260
+ inputs: [],
261
+ name: "stalenessPeriod0",
262
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
263
+ stateMutability: "view",
264
+ },
265
+ {
266
+ type: "function",
267
+ inputs: [],
268
+ name: "stalenessPeriod1",
269
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
270
+ stateMutability: "view",
271
+ },
272
+ {
273
+ type: "function",
274
+ inputs: [],
275
+ name: "stalenessPeriod2",
276
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
277
+ stateMutability: "view",
278
+ },
279
+ {
280
+ type: "function",
281
+ inputs: [],
282
+ name: "stalenessPeriod3",
283
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
284
+ stateMutability: "view",
285
+ },
286
+ {
287
+ type: "function",
288
+ inputs: [],
289
+ name: "stalenessPeriod4",
290
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
291
+ stateMutability: "view",
292
+ },
293
+ {
294
+ type: "function",
295
+ inputs: [],
296
+ name: "unpause",
297
+ outputs: [],
298
+ stateMutability: "nonpayable",
299
+ },
300
+ {
301
+ type: "function",
302
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
303
+ name: "updateBounds",
304
+ outputs: [],
305
+ stateMutability: "nonpayable",
306
+ },
307
+ {
308
+ type: "function",
309
+ inputs: [],
310
+ name: "updateBoundsAllowed",
311
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
312
+ stateMutability: "view",
313
+ },
314
+ {
315
+ type: "function",
316
+ inputs: [],
317
+ name: "upperBound",
318
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
319
+ stateMutability: "view",
320
+ },
321
+ {
322
+ type: "function",
323
+ inputs: [],
324
+ name: "version",
325
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
326
+ stateMutability: "view",
327
+ },
328
+ {
329
+ type: "event",
330
+ anonymous: false,
331
+ inputs: [
332
+ {
333
+ name: "newController",
334
+ internalType: "address",
335
+ type: "address",
336
+ indexed: true,
337
+ },
338
+ ],
339
+ name: "NewController",
340
+ },
341
+ {
342
+ type: "event",
343
+ anonymous: false,
344
+ inputs: [
345
+ {
346
+ name: "account",
347
+ internalType: "address",
348
+ type: "address",
349
+ indexed: false,
350
+ },
351
+ ],
352
+ name: "Paused",
353
+ },
354
+ {
355
+ type: "event",
356
+ anonymous: false,
357
+ inputs: [
358
+ {
359
+ name: "lowerBound",
360
+ internalType: "uint256",
361
+ type: "uint256",
362
+ indexed: false,
363
+ },
364
+ {
365
+ name: "upperBound",
366
+ internalType: "uint256",
367
+ type: "uint256",
368
+ indexed: false,
369
+ },
370
+ ],
371
+ name: "SetBounds",
372
+ },
373
+ {
374
+ type: "event",
375
+ anonymous: false,
376
+ inputs: [
377
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
378
+ ],
379
+ name: "SetUpdateBoundsAllowed",
380
+ },
381
+ {
382
+ type: "event",
383
+ anonymous: false,
384
+ inputs: [
385
+ {
386
+ name: "account",
387
+ internalType: "address",
388
+ type: "address",
389
+ indexed: false,
390
+ },
391
+ ],
392
+ name: "Unpaused",
393
+ },
394
+ {
395
+ type: "error",
396
+ inputs: [{ name: "", internalType: "address", type: "address" }],
397
+ name: "AddressIsNotContractException",
398
+ },
399
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
400
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
401
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
402
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
403
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
404
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
405
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
406
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
407
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
408
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
409
+ { type: "error", inputs: [], name: "StalePriceException" },
410
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
411
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
412
+ { type: "error", inputs: [], name: "ZeroAddressException" },
413
+ ] as const;
414
+
415
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
416
+ // BPTWeightedPriceFeed
417
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
418
+
419
+ export const bptWeightedPriceFeedAbi = [
420
+ {
421
+ type: "constructor",
422
+ inputs: [
423
+ { name: "addressProvider", internalType: "address", type: "address" },
424
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
425
+ { name: "_vault", internalType: "address", type: "address" },
426
+ { name: "_pool", internalType: "address", type: "address" },
427
+ {
428
+ name: "priceFeeds",
429
+ internalType: "struct PriceFeedParams[]",
430
+ type: "tuple[]",
431
+ components: [
432
+ { name: "priceFeed", internalType: "address", type: "address" },
433
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
434
+ ],
435
+ },
436
+ ],
437
+ stateMutability: "nonpayable",
438
+ },
439
+ {
440
+ type: "function",
441
+ inputs: [],
442
+ name: "acl",
443
+ outputs: [{ name: "", internalType: "address", type: "address" }],
444
+ stateMutability: "view",
445
+ },
446
+ {
447
+ type: "function",
448
+ inputs: [],
449
+ name: "allowBoundsUpdate",
450
+ outputs: [],
451
+ stateMutability: "nonpayable",
452
+ },
453
+ {
454
+ type: "function",
455
+ inputs: [],
456
+ name: "controller",
457
+ outputs: [{ name: "", internalType: "address", type: "address" }],
458
+ stateMutability: "view",
459
+ },
460
+ {
461
+ type: "function",
462
+ inputs: [],
463
+ name: "decimals",
464
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
465
+ stateMutability: "view",
466
+ },
467
+ {
468
+ type: "function",
469
+ inputs: [],
470
+ name: "description",
471
+ outputs: [{ name: "", internalType: "string", type: "string" }],
472
+ stateMutability: "view",
473
+ },
474
+ {
475
+ type: "function",
476
+ inputs: [],
477
+ name: "forbidBoundsUpdate",
478
+ outputs: [],
479
+ stateMutability: "nonpayable",
480
+ },
481
+ {
482
+ type: "function",
483
+ inputs: [],
484
+ name: "getAggregatePrice",
485
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
486
+ stateMutability: "view",
487
+ },
488
+ {
489
+ type: "function",
490
+ inputs: [],
491
+ name: "getLPExchangeRate",
492
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
493
+ stateMutability: "view",
494
+ },
495
+ {
496
+ type: "function",
497
+ inputs: [],
498
+ name: "getScale",
499
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
500
+ stateMutability: "pure",
501
+ },
502
+ {
503
+ type: "function",
504
+ inputs: [],
505
+ name: "lastBoundsUpdate",
506
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
507
+ stateMutability: "view",
508
+ },
509
+ {
510
+ type: "function",
511
+ inputs: [],
512
+ name: "latestRoundData",
513
+ outputs: [
514
+ { name: "", internalType: "uint80", type: "uint80" },
515
+ { name: "answer", internalType: "int256", type: "int256" },
516
+ { name: "", internalType: "uint256", type: "uint256" },
517
+ { name: "", internalType: "uint256", type: "uint256" },
518
+ { name: "", internalType: "uint80", type: "uint80" },
519
+ ],
520
+ stateMutability: "view",
521
+ },
522
+ {
523
+ type: "function",
524
+ inputs: [],
525
+ name: "lowerBound",
526
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
527
+ stateMutability: "view",
528
+ },
529
+ {
530
+ type: "function",
531
+ inputs: [],
532
+ name: "lpContract",
533
+ outputs: [{ name: "", internalType: "address", type: "address" }],
534
+ stateMutability: "view",
535
+ },
536
+ {
537
+ type: "function",
538
+ inputs: [],
539
+ name: "lpToken",
540
+ outputs: [{ name: "", internalType: "address", type: "address" }],
541
+ stateMutability: "view",
542
+ },
543
+ {
544
+ type: "function",
545
+ inputs: [],
546
+ name: "numAssets",
547
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
548
+ stateMutability: "view",
549
+ },
550
+ {
551
+ type: "function",
552
+ inputs: [],
553
+ name: "pause",
554
+ outputs: [],
555
+ stateMutability: "nonpayable",
556
+ },
557
+ {
558
+ type: "function",
559
+ inputs: [],
560
+ name: "paused",
561
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
562
+ stateMutability: "view",
563
+ },
564
+ {
565
+ type: "function",
566
+ inputs: [],
567
+ name: "poolId",
568
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
569
+ stateMutability: "view",
570
+ },
571
+ {
572
+ type: "function",
573
+ inputs: [],
574
+ name: "priceFeed0",
575
+ outputs: [{ name: "", internalType: "address", type: "address" }],
576
+ stateMutability: "view",
577
+ },
578
+ {
579
+ type: "function",
580
+ inputs: [],
581
+ name: "priceFeed1",
582
+ outputs: [{ name: "", internalType: "address", type: "address" }],
583
+ stateMutability: "view",
584
+ },
585
+ {
586
+ type: "function",
587
+ inputs: [],
588
+ name: "priceFeed2",
589
+ outputs: [{ name: "", internalType: "address", type: "address" }],
590
+ stateMutability: "view",
591
+ },
592
+ {
593
+ type: "function",
594
+ inputs: [],
595
+ name: "priceFeed3",
596
+ outputs: [{ name: "", internalType: "address", type: "address" }],
597
+ stateMutability: "view",
598
+ },
599
+ {
600
+ type: "function",
601
+ inputs: [],
602
+ name: "priceFeed4",
603
+ outputs: [{ name: "", internalType: "address", type: "address" }],
604
+ stateMutability: "view",
605
+ },
606
+ {
607
+ type: "function",
608
+ inputs: [],
609
+ name: "priceFeed5",
610
+ outputs: [{ name: "", internalType: "address", type: "address" }],
611
+ stateMutability: "view",
612
+ },
613
+ {
614
+ type: "function",
615
+ inputs: [],
616
+ name: "priceFeed6",
617
+ outputs: [{ name: "", internalType: "address", type: "address" }],
618
+ stateMutability: "view",
619
+ },
620
+ {
621
+ type: "function",
622
+ inputs: [],
623
+ name: "priceFeed7",
624
+ outputs: [{ name: "", internalType: "address", type: "address" }],
625
+ stateMutability: "view",
626
+ },
627
+ {
628
+ type: "function",
629
+ inputs: [],
630
+ name: "priceFeedType",
631
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
632
+ stateMutability: "view",
633
+ },
634
+ {
635
+ type: "function",
636
+ inputs: [],
637
+ name: "priceOracle",
638
+ outputs: [{ name: "", internalType: "address", type: "address" }],
639
+ stateMutability: "view",
640
+ },
641
+ {
642
+ type: "function",
643
+ inputs: [
644
+ { name: "newController", internalType: "address", type: "address" },
645
+ ],
646
+ name: "setController",
647
+ outputs: [],
648
+ stateMutability: "nonpayable",
649
+ },
650
+ {
651
+ type: "function",
652
+ inputs: [
653
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
654
+ ],
655
+ name: "setLimiter",
656
+ outputs: [],
657
+ stateMutability: "nonpayable",
658
+ },
659
+ {
660
+ type: "function",
661
+ inputs: [],
662
+ name: "skipCheck0",
663
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
664
+ stateMutability: "view",
665
+ },
666
+ {
667
+ type: "function",
668
+ inputs: [],
669
+ name: "skipCheck1",
670
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
671
+ stateMutability: "view",
672
+ },
673
+ {
674
+ type: "function",
675
+ inputs: [],
676
+ name: "skipCheck2",
677
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
678
+ stateMutability: "view",
679
+ },
680
+ {
681
+ type: "function",
682
+ inputs: [],
683
+ name: "skipCheck3",
684
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
685
+ stateMutability: "view",
686
+ },
687
+ {
688
+ type: "function",
689
+ inputs: [],
690
+ name: "skipCheck4",
691
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
692
+ stateMutability: "view",
693
+ },
694
+ {
695
+ type: "function",
696
+ inputs: [],
697
+ name: "skipCheck5",
698
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
699
+ stateMutability: "view",
700
+ },
701
+ {
702
+ type: "function",
703
+ inputs: [],
704
+ name: "skipCheck6",
705
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
706
+ stateMutability: "view",
707
+ },
708
+ {
709
+ type: "function",
710
+ inputs: [],
711
+ name: "skipCheck7",
712
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
713
+ stateMutability: "view",
714
+ },
715
+ {
716
+ type: "function",
717
+ inputs: [],
718
+ name: "skipPriceCheck",
719
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
720
+ stateMutability: "view",
721
+ },
722
+ {
723
+ type: "function",
724
+ inputs: [],
725
+ name: "stalenessPeriod0",
726
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
727
+ stateMutability: "view",
728
+ },
729
+ {
730
+ type: "function",
731
+ inputs: [],
732
+ name: "stalenessPeriod1",
733
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
734
+ stateMutability: "view",
735
+ },
736
+ {
737
+ type: "function",
738
+ inputs: [],
739
+ name: "stalenessPeriod2",
740
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
741
+ stateMutability: "view",
742
+ },
743
+ {
744
+ type: "function",
745
+ inputs: [],
746
+ name: "stalenessPeriod3",
747
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
748
+ stateMutability: "view",
749
+ },
750
+ {
751
+ type: "function",
752
+ inputs: [],
753
+ name: "stalenessPeriod4",
754
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
755
+ stateMutability: "view",
756
+ },
757
+ {
758
+ type: "function",
759
+ inputs: [],
760
+ name: "stalenessPeriod5",
761
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
762
+ stateMutability: "view",
763
+ },
764
+ {
765
+ type: "function",
766
+ inputs: [],
767
+ name: "stalenessPeriod6",
768
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
769
+ stateMutability: "view",
770
+ },
771
+ {
772
+ type: "function",
773
+ inputs: [],
774
+ name: "stalenessPeriod7",
775
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
776
+ stateMutability: "view",
777
+ },
778
+ {
779
+ type: "function",
780
+ inputs: [],
781
+ name: "unpause",
782
+ outputs: [],
783
+ stateMutability: "nonpayable",
784
+ },
785
+ {
786
+ type: "function",
787
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
788
+ name: "updateBounds",
789
+ outputs: [],
790
+ stateMutability: "nonpayable",
791
+ },
792
+ {
793
+ type: "function",
794
+ inputs: [],
795
+ name: "updateBoundsAllowed",
796
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
797
+ stateMutability: "view",
798
+ },
799
+ {
800
+ type: "function",
801
+ inputs: [],
802
+ name: "upperBound",
803
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
804
+ stateMutability: "view",
805
+ },
806
+ {
807
+ type: "function",
808
+ inputs: [],
809
+ name: "vault",
810
+ outputs: [{ name: "", internalType: "address", type: "address" }],
811
+ stateMutability: "view",
812
+ },
813
+ {
814
+ type: "function",
815
+ inputs: [],
816
+ name: "version",
817
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
818
+ stateMutability: "view",
819
+ },
820
+ {
821
+ type: "function",
822
+ inputs: [],
823
+ name: "weight0",
824
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
825
+ stateMutability: "view",
826
+ },
827
+ {
828
+ type: "function",
829
+ inputs: [],
830
+ name: "weight1",
831
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
832
+ stateMutability: "view",
833
+ },
834
+ {
835
+ type: "function",
836
+ inputs: [],
837
+ name: "weight2",
838
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
839
+ stateMutability: "view",
840
+ },
841
+ {
842
+ type: "function",
843
+ inputs: [],
844
+ name: "weight3",
845
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
846
+ stateMutability: "view",
847
+ },
848
+ {
849
+ type: "function",
850
+ inputs: [],
851
+ name: "weight4",
852
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
853
+ stateMutability: "view",
854
+ },
855
+ {
856
+ type: "function",
857
+ inputs: [],
858
+ name: "weight5",
859
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
860
+ stateMutability: "view",
861
+ },
862
+ {
863
+ type: "function",
864
+ inputs: [],
865
+ name: "weight6",
866
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
867
+ stateMutability: "view",
868
+ },
869
+ {
870
+ type: "function",
871
+ inputs: [],
872
+ name: "weight7",
873
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
874
+ stateMutability: "view",
875
+ },
876
+ {
877
+ type: "event",
878
+ anonymous: false,
879
+ inputs: [
880
+ {
881
+ name: "newController",
882
+ internalType: "address",
883
+ type: "address",
884
+ indexed: true,
885
+ },
886
+ ],
887
+ name: "NewController",
888
+ },
889
+ {
890
+ type: "event",
891
+ anonymous: false,
892
+ inputs: [
893
+ {
894
+ name: "account",
895
+ internalType: "address",
896
+ type: "address",
897
+ indexed: false,
898
+ },
899
+ ],
900
+ name: "Paused",
901
+ },
902
+ {
903
+ type: "event",
904
+ anonymous: false,
905
+ inputs: [
906
+ {
907
+ name: "lowerBound",
908
+ internalType: "uint256",
909
+ type: "uint256",
910
+ indexed: false,
911
+ },
912
+ {
913
+ name: "upperBound",
914
+ internalType: "uint256",
915
+ type: "uint256",
916
+ indexed: false,
917
+ },
918
+ ],
919
+ name: "SetBounds",
920
+ },
921
+ {
922
+ type: "event",
923
+ anonymous: false,
924
+ inputs: [
925
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
926
+ ],
927
+ name: "SetUpdateBoundsAllowed",
928
+ },
929
+ {
930
+ type: "event",
931
+ anonymous: false,
932
+ inputs: [
933
+ {
934
+ name: "account",
935
+ internalType: "address",
936
+ type: "address",
937
+ indexed: false,
938
+ },
939
+ ],
940
+ name: "Unpaused",
941
+ },
942
+ {
943
+ type: "error",
944
+ inputs: [{ name: "", internalType: "address", type: "address" }],
945
+ name: "AddressIsNotContractException",
946
+ },
947
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
948
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
949
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
950
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
951
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
952
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
953
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
954
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
955
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
956
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
957
+ { type: "error", inputs: [], name: "StalePriceException" },
958
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
959
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
960
+ { type: "error", inputs: [], name: "ZeroAddressException" },
961
+ ] as const;
962
+
963
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
964
+ // BoundedPriceFeed
965
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
966
+
967
+ export const boundedPriceFeedAbi = [
968
+ {
969
+ type: "constructor",
970
+ inputs: [
971
+ { name: "_priceFeed", internalType: "address", type: "address" },
972
+ { name: "_stalenessPeriod", internalType: "uint32", type: "uint32" },
973
+ { name: "_upperBound", internalType: "int256", type: "int256" },
974
+ ],
975
+ stateMutability: "nonpayable",
976
+ },
977
+ {
978
+ type: "function",
979
+ inputs: [],
980
+ name: "aggregator",
981
+ outputs: [{ name: "", internalType: "address", type: "address" }],
982
+ stateMutability: "view",
983
+ },
984
+ {
985
+ type: "function",
986
+ inputs: [],
987
+ name: "decimals",
988
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
989
+ stateMutability: "view",
990
+ },
991
+ {
992
+ type: "function",
993
+ inputs: [],
994
+ name: "description",
995
+ outputs: [{ name: "", internalType: "string", type: "string" }],
996
+ stateMutability: "view",
997
+ },
998
+ {
999
+ type: "function",
1000
+ inputs: [],
1001
+ name: "latestRoundData",
1002
+ outputs: [
1003
+ { name: "", internalType: "uint80", type: "uint80" },
1004
+ { name: "answer", internalType: "int256", type: "int256" },
1005
+ { name: "", internalType: "uint256", type: "uint256" },
1006
+ { name: "", internalType: "uint256", type: "uint256" },
1007
+ { name: "", internalType: "uint80", type: "uint80" },
1008
+ ],
1009
+ stateMutability: "view",
1010
+ },
1011
+ {
1012
+ type: "function",
1013
+ inputs: [{ name: "idx", internalType: "uint16", type: "uint16" }],
1014
+ name: "phaseAggregators",
1015
+ outputs: [
1016
+ {
1017
+ name: "",
1018
+ internalType: "contract AggregatorV2V3Interface",
1019
+ type: "address",
1020
+ },
1021
+ ],
1022
+ stateMutability: "view",
1023
+ },
1024
+ {
1025
+ type: "function",
1026
+ inputs: [],
1027
+ name: "phaseId",
1028
+ outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
1029
+ stateMutability: "view",
1030
+ },
1031
+ {
1032
+ type: "function",
1033
+ inputs: [],
1034
+ name: "priceFeed",
1035
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1036
+ stateMutability: "view",
1037
+ },
1038
+ {
1039
+ type: "function",
1040
+ inputs: [],
1041
+ name: "priceFeedType",
1042
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
1043
+ stateMutability: "view",
1044
+ },
1045
+ {
1046
+ type: "function",
1047
+ inputs: [],
1048
+ name: "skipCheck",
1049
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1050
+ stateMutability: "view",
1051
+ },
1052
+ {
1053
+ type: "function",
1054
+ inputs: [],
1055
+ name: "skipPriceCheck",
1056
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1057
+ stateMutability: "view",
1058
+ },
1059
+ {
1060
+ type: "function",
1061
+ inputs: [],
1062
+ name: "stalenessPeriod",
1063
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1064
+ stateMutability: "view",
1065
+ },
1066
+ {
1067
+ type: "function",
1068
+ inputs: [],
1069
+ name: "upperBound",
1070
+ outputs: [{ name: "", internalType: "int256", type: "int256" }],
1071
+ stateMutability: "view",
1072
+ },
1073
+ {
1074
+ type: "function",
1075
+ inputs: [],
1076
+ name: "version",
1077
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1078
+ stateMutability: "view",
1079
+ },
1080
+ {
1081
+ type: "error",
1082
+ inputs: [{ name: "", internalType: "address", type: "address" }],
1083
+ name: "AddressIsNotContractException",
1084
+ },
1085
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
1086
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
1087
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
1088
+ { type: "error", inputs: [], name: "StalePriceException" },
1089
+ { type: "error", inputs: [], name: "ZeroAddressException" },
1090
+ ] as const;
1091
+
1092
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1093
+ // ChainlinkReadableAggregator
1094
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1095
+
1096
+ export const chainlinkReadableAggregatorAbi = [
1097
+ {
1098
+ type: "function",
1099
+ inputs: [],
1100
+ name: "aggregator",
1101
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1102
+ stateMutability: "view",
1103
+ },
1104
+ {
1105
+ type: "function",
1106
+ inputs: [{ name: "idx", internalType: "uint16", type: "uint16" }],
1107
+ name: "phaseAggregators",
1108
+ outputs: [
1109
+ {
1110
+ name: "",
1111
+ internalType: "contract AggregatorV2V3Interface",
1112
+ type: "address",
1113
+ },
1114
+ ],
1115
+ stateMutability: "view",
1116
+ },
1117
+ {
1118
+ type: "function",
1119
+ inputs: [],
1120
+ name: "phaseId",
1121
+ outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
1122
+ stateMutability: "view",
1123
+ },
1124
+ ] as const;
1125
+
1126
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1127
+ // CompositePriceFeed
1128
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1129
+
1130
+ export const compositePriceFeedAbi = [
1131
+ {
1132
+ type: "constructor",
1133
+ inputs: [
1134
+ {
1135
+ name: "priceFeeds",
1136
+ internalType: "struct PriceFeedParams[2]",
1137
+ type: "tuple[2]",
1138
+ components: [
1139
+ { name: "priceFeed", internalType: "address", type: "address" },
1140
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
1141
+ ],
1142
+ },
1143
+ ],
1144
+ stateMutability: "nonpayable",
1145
+ },
1146
+ {
1147
+ type: "function",
1148
+ inputs: [],
1149
+ name: "decimals",
1150
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
1151
+ stateMutability: "view",
1152
+ },
1153
+ {
1154
+ type: "function",
1155
+ inputs: [],
1156
+ name: "description",
1157
+ outputs: [{ name: "", internalType: "string", type: "string" }],
1158
+ stateMutability: "view",
1159
+ },
1160
+ {
1161
+ type: "function",
1162
+ inputs: [],
1163
+ name: "latestRoundData",
1164
+ outputs: [
1165
+ { name: "", internalType: "uint80", type: "uint80" },
1166
+ { name: "answer", internalType: "int256", type: "int256" },
1167
+ { name: "", internalType: "uint256", type: "uint256" },
1168
+ { name: "", internalType: "uint256", type: "uint256" },
1169
+ { name: "", internalType: "uint80", type: "uint80" },
1170
+ ],
1171
+ stateMutability: "view",
1172
+ },
1173
+ {
1174
+ type: "function",
1175
+ inputs: [],
1176
+ name: "priceFeed0",
1177
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1178
+ stateMutability: "view",
1179
+ },
1180
+ {
1181
+ type: "function",
1182
+ inputs: [],
1183
+ name: "priceFeed1",
1184
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1185
+ stateMutability: "view",
1186
+ },
1187
+ {
1188
+ type: "function",
1189
+ inputs: [],
1190
+ name: "priceFeedType",
1191
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
1192
+ stateMutability: "view",
1193
+ },
1194
+ {
1195
+ type: "function",
1196
+ inputs: [],
1197
+ name: "skipCheck1",
1198
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1199
+ stateMutability: "view",
1200
+ },
1201
+ {
1202
+ type: "function",
1203
+ inputs: [],
1204
+ name: "skipPriceCheck",
1205
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1206
+ stateMutability: "view",
1207
+ },
1208
+ {
1209
+ type: "function",
1210
+ inputs: [],
1211
+ name: "stalenessPeriod0",
1212
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1213
+ stateMutability: "view",
1214
+ },
1215
+ {
1216
+ type: "function",
1217
+ inputs: [],
1218
+ name: "stalenessPeriod1",
1219
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1220
+ stateMutability: "view",
1221
+ },
1222
+ {
1223
+ type: "function",
1224
+ inputs: [],
1225
+ name: "targetFeedScale",
1226
+ outputs: [{ name: "", internalType: "int256", type: "int256" }],
1227
+ stateMutability: "view",
1228
+ },
1229
+ {
1230
+ type: "function",
1231
+ inputs: [],
1232
+ name: "version",
1233
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1234
+ stateMutability: "view",
1235
+ },
1236
+ {
1237
+ type: "error",
1238
+ inputs: [{ name: "", internalType: "address", type: "address" }],
1239
+ name: "AddressIsNotContractException",
1240
+ },
1241
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
1242
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
1243
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
1244
+ { type: "error", inputs: [], name: "StalePriceException" },
1245
+ { type: "error", inputs: [], name: "ZeroAddressException" },
1246
+ ] as const;
1247
+
1248
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1249
+ // CurveCryptoLPPriceFeed
1250
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1251
+
1252
+ export const curveCryptoLpPriceFeedAbi = [
1253
+ {
1254
+ type: "constructor",
1255
+ inputs: [
1256
+ { name: "addressProvider", internalType: "address", type: "address" },
1257
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
1258
+ { name: "_token", internalType: "address", type: "address" },
1259
+ { name: "_pool", internalType: "address", type: "address" },
1260
+ {
1261
+ name: "priceFeeds",
1262
+ internalType: "struct PriceFeedParams[3]",
1263
+ type: "tuple[3]",
1264
+ components: [
1265
+ { name: "priceFeed", internalType: "address", type: "address" },
1266
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
1267
+ ],
1268
+ },
1269
+ ],
1270
+ stateMutability: "nonpayable",
1271
+ },
1272
+ {
1273
+ type: "function",
1274
+ inputs: [],
1275
+ name: "acl",
1276
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1277
+ stateMutability: "view",
1278
+ },
1279
+ {
1280
+ type: "function",
1281
+ inputs: [],
1282
+ name: "allowBoundsUpdate",
1283
+ outputs: [],
1284
+ stateMutability: "nonpayable",
1285
+ },
1286
+ {
1287
+ type: "function",
1288
+ inputs: [],
1289
+ name: "controller",
1290
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1291
+ stateMutability: "view",
1292
+ },
1293
+ {
1294
+ type: "function",
1295
+ inputs: [],
1296
+ name: "decimals",
1297
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
1298
+ stateMutability: "view",
1299
+ },
1300
+ {
1301
+ type: "function",
1302
+ inputs: [],
1303
+ name: "description",
1304
+ outputs: [{ name: "", internalType: "string", type: "string" }],
1305
+ stateMutability: "view",
1306
+ },
1307
+ {
1308
+ type: "function",
1309
+ inputs: [],
1310
+ name: "forbidBoundsUpdate",
1311
+ outputs: [],
1312
+ stateMutability: "nonpayable",
1313
+ },
1314
+ {
1315
+ type: "function",
1316
+ inputs: [],
1317
+ name: "getAggregatePrice",
1318
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
1319
+ stateMutability: "view",
1320
+ },
1321
+ {
1322
+ type: "function",
1323
+ inputs: [],
1324
+ name: "getLPExchangeRate",
1325
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1326
+ stateMutability: "view",
1327
+ },
1328
+ {
1329
+ type: "function",
1330
+ inputs: [],
1331
+ name: "getScale",
1332
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1333
+ stateMutability: "pure",
1334
+ },
1335
+ {
1336
+ type: "function",
1337
+ inputs: [],
1338
+ name: "lastBoundsUpdate",
1339
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
1340
+ stateMutability: "view",
1341
+ },
1342
+ {
1343
+ type: "function",
1344
+ inputs: [],
1345
+ name: "latestRoundData",
1346
+ outputs: [
1347
+ { name: "", internalType: "uint80", type: "uint80" },
1348
+ { name: "answer", internalType: "int256", type: "int256" },
1349
+ { name: "", internalType: "uint256", type: "uint256" },
1350
+ { name: "", internalType: "uint256", type: "uint256" },
1351
+ { name: "", internalType: "uint80", type: "uint80" },
1352
+ ],
1353
+ stateMutability: "view",
1354
+ },
1355
+ {
1356
+ type: "function",
1357
+ inputs: [],
1358
+ name: "lowerBound",
1359
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1360
+ stateMutability: "view",
1361
+ },
1362
+ {
1363
+ type: "function",
1364
+ inputs: [],
1365
+ name: "lpContract",
1366
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1367
+ stateMutability: "view",
1368
+ },
1369
+ {
1370
+ type: "function",
1371
+ inputs: [],
1372
+ name: "lpToken",
1373
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1374
+ stateMutability: "view",
1375
+ },
1376
+ {
1377
+ type: "function",
1378
+ inputs: [],
1379
+ name: "nCoins",
1380
+ outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
1381
+ stateMutability: "view",
1382
+ },
1383
+ {
1384
+ type: "function",
1385
+ inputs: [],
1386
+ name: "pause",
1387
+ outputs: [],
1388
+ stateMutability: "nonpayable",
1389
+ },
1390
+ {
1391
+ type: "function",
1392
+ inputs: [],
1393
+ name: "paused",
1394
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1395
+ stateMutability: "view",
1396
+ },
1397
+ {
1398
+ type: "function",
1399
+ inputs: [],
1400
+ name: "priceFeed0",
1401
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1402
+ stateMutability: "view",
1403
+ },
1404
+ {
1405
+ type: "function",
1406
+ inputs: [],
1407
+ name: "priceFeed1",
1408
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1409
+ stateMutability: "view",
1410
+ },
1411
+ {
1412
+ type: "function",
1413
+ inputs: [],
1414
+ name: "priceFeed2",
1415
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1416
+ stateMutability: "view",
1417
+ },
1418
+ {
1419
+ type: "function",
1420
+ inputs: [],
1421
+ name: "priceFeedType",
1422
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
1423
+ stateMutability: "view",
1424
+ },
1425
+ {
1426
+ type: "function",
1427
+ inputs: [],
1428
+ name: "priceOracle",
1429
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1430
+ stateMutability: "view",
1431
+ },
1432
+ {
1433
+ type: "function",
1434
+ inputs: [
1435
+ { name: "newController", internalType: "address", type: "address" },
1436
+ ],
1437
+ name: "setController",
1438
+ outputs: [],
1439
+ stateMutability: "nonpayable",
1440
+ },
1441
+ {
1442
+ type: "function",
1443
+ inputs: [
1444
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
1445
+ ],
1446
+ name: "setLimiter",
1447
+ outputs: [],
1448
+ stateMutability: "nonpayable",
1449
+ },
1450
+ {
1451
+ type: "function",
1452
+ inputs: [],
1453
+ name: "skipCheck0",
1454
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1455
+ stateMutability: "view",
1456
+ },
1457
+ {
1458
+ type: "function",
1459
+ inputs: [],
1460
+ name: "skipCheck1",
1461
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1462
+ stateMutability: "view",
1463
+ },
1464
+ {
1465
+ type: "function",
1466
+ inputs: [],
1467
+ name: "skipCheck2",
1468
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1469
+ stateMutability: "view",
1470
+ },
1471
+ {
1472
+ type: "function",
1473
+ inputs: [],
1474
+ name: "skipPriceCheck",
1475
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1476
+ stateMutability: "view",
1477
+ },
1478
+ {
1479
+ type: "function",
1480
+ inputs: [],
1481
+ name: "stalenessPeriod0",
1482
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1483
+ stateMutability: "view",
1484
+ },
1485
+ {
1486
+ type: "function",
1487
+ inputs: [],
1488
+ name: "stalenessPeriod1",
1489
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1490
+ stateMutability: "view",
1491
+ },
1492
+ {
1493
+ type: "function",
1494
+ inputs: [],
1495
+ name: "stalenessPeriod2",
1496
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1497
+ stateMutability: "view",
1498
+ },
1499
+ {
1500
+ type: "function",
1501
+ inputs: [],
1502
+ name: "unpause",
1503
+ outputs: [],
1504
+ stateMutability: "nonpayable",
1505
+ },
1506
+ {
1507
+ type: "function",
1508
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
1509
+ name: "updateBounds",
1510
+ outputs: [],
1511
+ stateMutability: "nonpayable",
1512
+ },
1513
+ {
1514
+ type: "function",
1515
+ inputs: [],
1516
+ name: "updateBoundsAllowed",
1517
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1518
+ stateMutability: "view",
1519
+ },
1520
+ {
1521
+ type: "function",
1522
+ inputs: [],
1523
+ name: "upperBound",
1524
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1525
+ stateMutability: "view",
1526
+ },
1527
+ {
1528
+ type: "function",
1529
+ inputs: [],
1530
+ name: "version",
1531
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1532
+ stateMutability: "view",
1533
+ },
1534
+ {
1535
+ type: "event",
1536
+ anonymous: false,
1537
+ inputs: [
1538
+ {
1539
+ name: "newController",
1540
+ internalType: "address",
1541
+ type: "address",
1542
+ indexed: true,
1543
+ },
1544
+ ],
1545
+ name: "NewController",
1546
+ },
1547
+ {
1548
+ type: "event",
1549
+ anonymous: false,
1550
+ inputs: [
1551
+ {
1552
+ name: "account",
1553
+ internalType: "address",
1554
+ type: "address",
1555
+ indexed: false,
1556
+ },
1557
+ ],
1558
+ name: "Paused",
1559
+ },
1560
+ {
1561
+ type: "event",
1562
+ anonymous: false,
1563
+ inputs: [
1564
+ {
1565
+ name: "lowerBound",
1566
+ internalType: "uint256",
1567
+ type: "uint256",
1568
+ indexed: false,
1569
+ },
1570
+ {
1571
+ name: "upperBound",
1572
+ internalType: "uint256",
1573
+ type: "uint256",
1574
+ indexed: false,
1575
+ },
1576
+ ],
1577
+ name: "SetBounds",
1578
+ },
1579
+ {
1580
+ type: "event",
1581
+ anonymous: false,
1582
+ inputs: [
1583
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
1584
+ ],
1585
+ name: "SetUpdateBoundsAllowed",
1586
+ },
1587
+ {
1588
+ type: "event",
1589
+ anonymous: false,
1590
+ inputs: [
1591
+ {
1592
+ name: "account",
1593
+ internalType: "address",
1594
+ type: "address",
1595
+ indexed: false,
1596
+ },
1597
+ ],
1598
+ name: "Unpaused",
1599
+ },
1600
+ {
1601
+ type: "error",
1602
+ inputs: [{ name: "", internalType: "address", type: "address" }],
1603
+ name: "AddressIsNotContractException",
1604
+ },
1605
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
1606
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
1607
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
1608
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
1609
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
1610
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
1611
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
1612
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
1613
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
1614
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
1615
+ { type: "error", inputs: [], name: "StalePriceException" },
1616
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
1617
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
1618
+ { type: "error", inputs: [], name: "ZeroAddressException" },
1619
+ ] as const;
1620
+
1621
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1622
+ // CurveStableLPPriceFeed
1623
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1624
+
1625
+ export const curveStableLpPriceFeedAbi = [
1626
+ {
1627
+ type: "constructor",
1628
+ inputs: [
1629
+ { name: "addressProvider", internalType: "address", type: "address" },
1630
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
1631
+ { name: "_token", internalType: "address", type: "address" },
1632
+ { name: "_pool", internalType: "address", type: "address" },
1633
+ {
1634
+ name: "priceFeeds",
1635
+ internalType: "struct PriceFeedParams[4]",
1636
+ type: "tuple[4]",
1637
+ components: [
1638
+ { name: "priceFeed", internalType: "address", type: "address" },
1639
+ { name: "stalenessPeriod", internalType: "uint32", type: "uint32" },
1640
+ ],
1641
+ },
1642
+ ],
1643
+ stateMutability: "nonpayable",
1644
+ },
1645
+ {
1646
+ type: "function",
1647
+ inputs: [],
1648
+ name: "acl",
1649
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1650
+ stateMutability: "view",
1651
+ },
1652
+ {
1653
+ type: "function",
1654
+ inputs: [],
1655
+ name: "allowBoundsUpdate",
1656
+ outputs: [],
1657
+ stateMutability: "nonpayable",
1658
+ },
1659
+ {
1660
+ type: "function",
1661
+ inputs: [],
1662
+ name: "controller",
1663
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1664
+ stateMutability: "view",
1665
+ },
1666
+ {
1667
+ type: "function",
1668
+ inputs: [],
1669
+ name: "decimals",
1670
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
1671
+ stateMutability: "view",
1672
+ },
1673
+ {
1674
+ type: "function",
1675
+ inputs: [],
1676
+ name: "description",
1677
+ outputs: [{ name: "", internalType: "string", type: "string" }],
1678
+ stateMutability: "view",
1679
+ },
1680
+ {
1681
+ type: "function",
1682
+ inputs: [],
1683
+ name: "forbidBoundsUpdate",
1684
+ outputs: [],
1685
+ stateMutability: "nonpayable",
1686
+ },
1687
+ {
1688
+ type: "function",
1689
+ inputs: [],
1690
+ name: "getAggregatePrice",
1691
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
1692
+ stateMutability: "view",
1693
+ },
1694
+ {
1695
+ type: "function",
1696
+ inputs: [],
1697
+ name: "getLPExchangeRate",
1698
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1699
+ stateMutability: "view",
1700
+ },
1701
+ {
1702
+ type: "function",
1703
+ inputs: [],
1704
+ name: "getScale",
1705
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1706
+ stateMutability: "pure",
1707
+ },
1708
+ {
1709
+ type: "function",
1710
+ inputs: [],
1711
+ name: "lastBoundsUpdate",
1712
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
1713
+ stateMutability: "view",
1714
+ },
1715
+ {
1716
+ type: "function",
1717
+ inputs: [],
1718
+ name: "latestRoundData",
1719
+ outputs: [
1720
+ { name: "", internalType: "uint80", type: "uint80" },
1721
+ { name: "answer", internalType: "int256", type: "int256" },
1722
+ { name: "", internalType: "uint256", type: "uint256" },
1723
+ { name: "", internalType: "uint256", type: "uint256" },
1724
+ { name: "", internalType: "uint80", type: "uint80" },
1725
+ ],
1726
+ stateMutability: "view",
1727
+ },
1728
+ {
1729
+ type: "function",
1730
+ inputs: [],
1731
+ name: "lowerBound",
1732
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1733
+ stateMutability: "view",
1734
+ },
1735
+ {
1736
+ type: "function",
1737
+ inputs: [],
1738
+ name: "lpContract",
1739
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1740
+ stateMutability: "view",
1741
+ },
1742
+ {
1743
+ type: "function",
1744
+ inputs: [],
1745
+ name: "lpToken",
1746
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1747
+ stateMutability: "view",
1748
+ },
1749
+ {
1750
+ type: "function",
1751
+ inputs: [],
1752
+ name: "nCoins",
1753
+ outputs: [{ name: "", internalType: "uint16", type: "uint16" }],
1754
+ stateMutability: "view",
1755
+ },
1756
+ {
1757
+ type: "function",
1758
+ inputs: [],
1759
+ name: "pause",
1760
+ outputs: [],
1761
+ stateMutability: "nonpayable",
1762
+ },
1763
+ {
1764
+ type: "function",
1765
+ inputs: [],
1766
+ name: "paused",
1767
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1768
+ stateMutability: "view",
1769
+ },
1770
+ {
1771
+ type: "function",
1772
+ inputs: [],
1773
+ name: "priceFeed0",
1774
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1775
+ stateMutability: "view",
1776
+ },
1777
+ {
1778
+ type: "function",
1779
+ inputs: [],
1780
+ name: "priceFeed1",
1781
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1782
+ stateMutability: "view",
1783
+ },
1784
+ {
1785
+ type: "function",
1786
+ inputs: [],
1787
+ name: "priceFeed2",
1788
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1789
+ stateMutability: "view",
1790
+ },
1791
+ {
1792
+ type: "function",
1793
+ inputs: [],
1794
+ name: "priceFeed3",
1795
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1796
+ stateMutability: "view",
1797
+ },
1798
+ {
1799
+ type: "function",
1800
+ inputs: [],
1801
+ name: "priceFeedType",
1802
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
1803
+ stateMutability: "view",
1804
+ },
1805
+ {
1806
+ type: "function",
1807
+ inputs: [],
1808
+ name: "priceOracle",
1809
+ outputs: [{ name: "", internalType: "address", type: "address" }],
1810
+ stateMutability: "view",
1811
+ },
1812
+ {
1813
+ type: "function",
1814
+ inputs: [
1815
+ { name: "newController", internalType: "address", type: "address" },
1816
+ ],
1817
+ name: "setController",
1818
+ outputs: [],
1819
+ stateMutability: "nonpayable",
1820
+ },
1821
+ {
1822
+ type: "function",
1823
+ inputs: [
1824
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
1825
+ ],
1826
+ name: "setLimiter",
1827
+ outputs: [],
1828
+ stateMutability: "nonpayable",
1829
+ },
1830
+ {
1831
+ type: "function",
1832
+ inputs: [],
1833
+ name: "skipCheck0",
1834
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1835
+ stateMutability: "view",
1836
+ },
1837
+ {
1838
+ type: "function",
1839
+ inputs: [],
1840
+ name: "skipCheck1",
1841
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1842
+ stateMutability: "view",
1843
+ },
1844
+ {
1845
+ type: "function",
1846
+ inputs: [],
1847
+ name: "skipCheck2",
1848
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1849
+ stateMutability: "view",
1850
+ },
1851
+ {
1852
+ type: "function",
1853
+ inputs: [],
1854
+ name: "skipCheck3",
1855
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1856
+ stateMutability: "view",
1857
+ },
1858
+ {
1859
+ type: "function",
1860
+ inputs: [],
1861
+ name: "skipPriceCheck",
1862
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1863
+ stateMutability: "view",
1864
+ },
1865
+ {
1866
+ type: "function",
1867
+ inputs: [],
1868
+ name: "stalenessPeriod0",
1869
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1870
+ stateMutability: "view",
1871
+ },
1872
+ {
1873
+ type: "function",
1874
+ inputs: [],
1875
+ name: "stalenessPeriod1",
1876
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1877
+ stateMutability: "view",
1878
+ },
1879
+ {
1880
+ type: "function",
1881
+ inputs: [],
1882
+ name: "stalenessPeriod2",
1883
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1884
+ stateMutability: "view",
1885
+ },
1886
+ {
1887
+ type: "function",
1888
+ inputs: [],
1889
+ name: "stalenessPeriod3",
1890
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
1891
+ stateMutability: "view",
1892
+ },
1893
+ {
1894
+ type: "function",
1895
+ inputs: [],
1896
+ name: "unpause",
1897
+ outputs: [],
1898
+ stateMutability: "nonpayable",
1899
+ },
1900
+ {
1901
+ type: "function",
1902
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
1903
+ name: "updateBounds",
1904
+ outputs: [],
1905
+ stateMutability: "nonpayable",
1906
+ },
1907
+ {
1908
+ type: "function",
1909
+ inputs: [],
1910
+ name: "updateBoundsAllowed",
1911
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
1912
+ stateMutability: "view",
1913
+ },
1914
+ {
1915
+ type: "function",
1916
+ inputs: [],
1917
+ name: "upperBound",
1918
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1919
+ stateMutability: "view",
1920
+ },
1921
+ {
1922
+ type: "function",
1923
+ inputs: [],
1924
+ name: "version",
1925
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
1926
+ stateMutability: "view",
1927
+ },
1928
+ {
1929
+ type: "event",
1930
+ anonymous: false,
1931
+ inputs: [
1932
+ {
1933
+ name: "newController",
1934
+ internalType: "address",
1935
+ type: "address",
1936
+ indexed: true,
1937
+ },
1938
+ ],
1939
+ name: "NewController",
1940
+ },
1941
+ {
1942
+ type: "event",
1943
+ anonymous: false,
1944
+ inputs: [
1945
+ {
1946
+ name: "account",
1947
+ internalType: "address",
1948
+ type: "address",
1949
+ indexed: false,
1950
+ },
1951
+ ],
1952
+ name: "Paused",
1953
+ },
1954
+ {
1955
+ type: "event",
1956
+ anonymous: false,
1957
+ inputs: [
1958
+ {
1959
+ name: "lowerBound",
1960
+ internalType: "uint256",
1961
+ type: "uint256",
1962
+ indexed: false,
1963
+ },
1964
+ {
1965
+ name: "upperBound",
1966
+ internalType: "uint256",
1967
+ type: "uint256",
1968
+ indexed: false,
1969
+ },
1970
+ ],
1971
+ name: "SetBounds",
1972
+ },
1973
+ {
1974
+ type: "event",
1975
+ anonymous: false,
1976
+ inputs: [
1977
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
1978
+ ],
1979
+ name: "SetUpdateBoundsAllowed",
1980
+ },
1981
+ {
1982
+ type: "event",
1983
+ anonymous: false,
1984
+ inputs: [
1985
+ {
1986
+ name: "account",
1987
+ internalType: "address",
1988
+ type: "address",
1989
+ indexed: false,
1990
+ },
1991
+ ],
1992
+ name: "Unpaused",
1993
+ },
1994
+ {
1995
+ type: "error",
1996
+ inputs: [{ name: "", internalType: "address", type: "address" }],
1997
+ name: "AddressIsNotContractException",
1998
+ },
1999
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
2000
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
2001
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
2002
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
2003
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
2004
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
2005
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
2006
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
2007
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
2008
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
2009
+ { type: "error", inputs: [], name: "StalePriceException" },
2010
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
2011
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
2012
+ { type: "error", inputs: [], name: "ZeroAddressException" },
2013
+ ] as const;
2014
+
2015
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2016
+ // CurveUSDPriceFeed
2017
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2018
+
2019
+ export const curveUsdPriceFeedAbi = [
2020
+ {
2021
+ type: "constructor",
2022
+ inputs: [
2023
+ { name: "addressProvider", internalType: "address", type: "address" },
2024
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
2025
+ { name: "_crvUSD", internalType: "address", type: "address" },
2026
+ { name: "_pool", internalType: "address", type: "address" },
2027
+ { name: "_priceFeed", internalType: "address", type: "address" },
2028
+ { name: "_stalenessPeriod", internalType: "uint32", type: "uint32" },
2029
+ ],
2030
+ stateMutability: "nonpayable",
2031
+ },
2032
+ {
2033
+ type: "function",
2034
+ inputs: [],
2035
+ name: "acl",
2036
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2037
+ stateMutability: "view",
2038
+ },
2039
+ {
2040
+ type: "function",
2041
+ inputs: [],
2042
+ name: "allowBoundsUpdate",
2043
+ outputs: [],
2044
+ stateMutability: "nonpayable",
2045
+ },
2046
+ {
2047
+ type: "function",
2048
+ inputs: [],
2049
+ name: "controller",
2050
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2051
+ stateMutability: "view",
2052
+ },
2053
+ {
2054
+ type: "function",
2055
+ inputs: [],
2056
+ name: "decimals",
2057
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
2058
+ stateMutability: "view",
2059
+ },
2060
+ {
2061
+ type: "function",
2062
+ inputs: [],
2063
+ name: "description",
2064
+ outputs: [{ name: "", internalType: "string", type: "string" }],
2065
+ stateMutability: "view",
2066
+ },
2067
+ {
2068
+ type: "function",
2069
+ inputs: [],
2070
+ name: "forbidBoundsUpdate",
2071
+ outputs: [],
2072
+ stateMutability: "nonpayable",
2073
+ },
2074
+ {
2075
+ type: "function",
2076
+ inputs: [],
2077
+ name: "getAggregatePrice",
2078
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
2079
+ stateMutability: "view",
2080
+ },
2081
+ {
2082
+ type: "function",
2083
+ inputs: [],
2084
+ name: "getLPExchangeRate",
2085
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2086
+ stateMutability: "view",
2087
+ },
2088
+ {
2089
+ type: "function",
2090
+ inputs: [],
2091
+ name: "getScale",
2092
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2093
+ stateMutability: "pure",
2094
+ },
2095
+ {
2096
+ type: "function",
2097
+ inputs: [],
2098
+ name: "lastBoundsUpdate",
2099
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
2100
+ stateMutability: "view",
2101
+ },
2102
+ {
2103
+ type: "function",
2104
+ inputs: [],
2105
+ name: "latestRoundData",
2106
+ outputs: [
2107
+ { name: "", internalType: "uint80", type: "uint80" },
2108
+ { name: "answer", internalType: "int256", type: "int256" },
2109
+ { name: "", internalType: "uint256", type: "uint256" },
2110
+ { name: "", internalType: "uint256", type: "uint256" },
2111
+ { name: "", internalType: "uint80", type: "uint80" },
2112
+ ],
2113
+ stateMutability: "view",
2114
+ },
2115
+ {
2116
+ type: "function",
2117
+ inputs: [],
2118
+ name: "lowerBound",
2119
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2120
+ stateMutability: "view",
2121
+ },
2122
+ {
2123
+ type: "function",
2124
+ inputs: [],
2125
+ name: "lpContract",
2126
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2127
+ stateMutability: "view",
2128
+ },
2129
+ {
2130
+ type: "function",
2131
+ inputs: [],
2132
+ name: "lpToken",
2133
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2134
+ stateMutability: "view",
2135
+ },
2136
+ {
2137
+ type: "function",
2138
+ inputs: [],
2139
+ name: "pause",
2140
+ outputs: [],
2141
+ stateMutability: "nonpayable",
2142
+ },
2143
+ {
2144
+ type: "function",
2145
+ inputs: [],
2146
+ name: "paused",
2147
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2148
+ stateMutability: "view",
2149
+ },
2150
+ {
2151
+ type: "function",
2152
+ inputs: [],
2153
+ name: "priceFeed",
2154
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2155
+ stateMutability: "view",
2156
+ },
2157
+ {
2158
+ type: "function",
2159
+ inputs: [],
2160
+ name: "priceFeedType",
2161
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
2162
+ stateMutability: "view",
2163
+ },
2164
+ {
2165
+ type: "function",
2166
+ inputs: [],
2167
+ name: "priceOracle",
2168
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2169
+ stateMutability: "view",
2170
+ },
2171
+ {
2172
+ type: "function",
2173
+ inputs: [
2174
+ { name: "newController", internalType: "address", type: "address" },
2175
+ ],
2176
+ name: "setController",
2177
+ outputs: [],
2178
+ stateMutability: "nonpayable",
2179
+ },
2180
+ {
2181
+ type: "function",
2182
+ inputs: [
2183
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
2184
+ ],
2185
+ name: "setLimiter",
2186
+ outputs: [],
2187
+ stateMutability: "nonpayable",
2188
+ },
2189
+ {
2190
+ type: "function",
2191
+ inputs: [],
2192
+ name: "skipCheck",
2193
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2194
+ stateMutability: "view",
2195
+ },
2196
+ {
2197
+ type: "function",
2198
+ inputs: [],
2199
+ name: "skipPriceCheck",
2200
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2201
+ stateMutability: "view",
2202
+ },
2203
+ {
2204
+ type: "function",
2205
+ inputs: [],
2206
+ name: "stalenessPeriod",
2207
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
2208
+ stateMutability: "view",
2209
+ },
2210
+ {
2211
+ type: "function",
2212
+ inputs: [],
2213
+ name: "unpause",
2214
+ outputs: [],
2215
+ stateMutability: "nonpayable",
2216
+ },
2217
+ {
2218
+ type: "function",
2219
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
2220
+ name: "updateBounds",
2221
+ outputs: [],
2222
+ stateMutability: "nonpayable",
2223
+ },
2224
+ {
2225
+ type: "function",
2226
+ inputs: [],
2227
+ name: "updateBoundsAllowed",
2228
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2229
+ stateMutability: "view",
2230
+ },
2231
+ {
2232
+ type: "function",
2233
+ inputs: [],
2234
+ name: "upperBound",
2235
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2236
+ stateMutability: "view",
2237
+ },
2238
+ {
2239
+ type: "function",
2240
+ inputs: [],
2241
+ name: "version",
2242
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2243
+ stateMutability: "view",
2244
+ },
2245
+ {
2246
+ type: "event",
2247
+ anonymous: false,
2248
+ inputs: [
2249
+ {
2250
+ name: "newController",
2251
+ internalType: "address",
2252
+ type: "address",
2253
+ indexed: true,
2254
+ },
2255
+ ],
2256
+ name: "NewController",
2257
+ },
2258
+ {
2259
+ type: "event",
2260
+ anonymous: false,
2261
+ inputs: [
2262
+ {
2263
+ name: "account",
2264
+ internalType: "address",
2265
+ type: "address",
2266
+ indexed: false,
2267
+ },
2268
+ ],
2269
+ name: "Paused",
2270
+ },
2271
+ {
2272
+ type: "event",
2273
+ anonymous: false,
2274
+ inputs: [
2275
+ {
2276
+ name: "lowerBound",
2277
+ internalType: "uint256",
2278
+ type: "uint256",
2279
+ indexed: false,
2280
+ },
2281
+ {
2282
+ name: "upperBound",
2283
+ internalType: "uint256",
2284
+ type: "uint256",
2285
+ indexed: false,
2286
+ },
2287
+ ],
2288
+ name: "SetBounds",
2289
+ },
2290
+ {
2291
+ type: "event",
2292
+ anonymous: false,
2293
+ inputs: [
2294
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
2295
+ ],
2296
+ name: "SetUpdateBoundsAllowed",
2297
+ },
2298
+ {
2299
+ type: "event",
2300
+ anonymous: false,
2301
+ inputs: [
2302
+ {
2303
+ name: "account",
2304
+ internalType: "address",
2305
+ type: "address",
2306
+ indexed: false,
2307
+ },
2308
+ ],
2309
+ name: "Unpaused",
2310
+ },
2311
+ {
2312
+ type: "error",
2313
+ inputs: [{ name: "", internalType: "address", type: "address" }],
2314
+ name: "AddressIsNotContractException",
2315
+ },
2316
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
2317
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
2318
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
2319
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
2320
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
2321
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
2322
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
2323
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
2324
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
2325
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
2326
+ { type: "error", inputs: [], name: "StalePriceException" },
2327
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
2328
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
2329
+ { type: "error", inputs: [], name: "ZeroAddressException" },
2330
+ ] as const;
2331
+
2332
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2333
+ // ERC4626PriceFeed
2334
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2335
+
2336
+ export const erc4626PriceFeedAbi = [
2337
+ {
2338
+ type: "constructor",
2339
+ inputs: [
2340
+ { name: "addressProvider", internalType: "address", type: "address" },
2341
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
2342
+ { name: "_vault", internalType: "address", type: "address" },
2343
+ { name: "_priceFeed", internalType: "address", type: "address" },
2344
+ { name: "_stalenessPeriod", internalType: "uint32", type: "uint32" },
2345
+ ],
2346
+ stateMutability: "nonpayable",
2347
+ },
2348
+ {
2349
+ type: "function",
2350
+ inputs: [],
2351
+ name: "acl",
2352
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2353
+ stateMutability: "view",
2354
+ },
2355
+ {
2356
+ type: "function",
2357
+ inputs: [],
2358
+ name: "allowBoundsUpdate",
2359
+ outputs: [],
2360
+ stateMutability: "nonpayable",
2361
+ },
2362
+ {
2363
+ type: "function",
2364
+ inputs: [],
2365
+ name: "controller",
2366
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2367
+ stateMutability: "view",
2368
+ },
2369
+ {
2370
+ type: "function",
2371
+ inputs: [],
2372
+ name: "decimals",
2373
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
2374
+ stateMutability: "view",
2375
+ },
2376
+ {
2377
+ type: "function",
2378
+ inputs: [],
2379
+ name: "description",
2380
+ outputs: [{ name: "", internalType: "string", type: "string" }],
2381
+ stateMutability: "view",
2382
+ },
2383
+ {
2384
+ type: "function",
2385
+ inputs: [],
2386
+ name: "forbidBoundsUpdate",
2387
+ outputs: [],
2388
+ stateMutability: "nonpayable",
2389
+ },
2390
+ {
2391
+ type: "function",
2392
+ inputs: [],
2393
+ name: "getAggregatePrice",
2394
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
2395
+ stateMutability: "view",
2396
+ },
2397
+ {
2398
+ type: "function",
2399
+ inputs: [],
2400
+ name: "getLPExchangeRate",
2401
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2402
+ stateMutability: "view",
2403
+ },
2404
+ {
2405
+ type: "function",
2406
+ inputs: [],
2407
+ name: "getScale",
2408
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2409
+ stateMutability: "view",
2410
+ },
2411
+ {
2412
+ type: "function",
2413
+ inputs: [],
2414
+ name: "lastBoundsUpdate",
2415
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
2416
+ stateMutability: "view",
2417
+ },
2418
+ {
2419
+ type: "function",
2420
+ inputs: [],
2421
+ name: "latestRoundData",
2422
+ outputs: [
2423
+ { name: "", internalType: "uint80", type: "uint80" },
2424
+ { name: "answer", internalType: "int256", type: "int256" },
2425
+ { name: "", internalType: "uint256", type: "uint256" },
2426
+ { name: "", internalType: "uint256", type: "uint256" },
2427
+ { name: "", internalType: "uint80", type: "uint80" },
2428
+ ],
2429
+ stateMutability: "view",
2430
+ },
2431
+ {
2432
+ type: "function",
2433
+ inputs: [],
2434
+ name: "lowerBound",
2435
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2436
+ stateMutability: "view",
2437
+ },
2438
+ {
2439
+ type: "function",
2440
+ inputs: [],
2441
+ name: "lpContract",
2442
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2443
+ stateMutability: "view",
2444
+ },
2445
+ {
2446
+ type: "function",
2447
+ inputs: [],
2448
+ name: "lpToken",
2449
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2450
+ stateMutability: "view",
2451
+ },
2452
+ {
2453
+ type: "function",
2454
+ inputs: [],
2455
+ name: "pause",
2456
+ outputs: [],
2457
+ stateMutability: "nonpayable",
2458
+ },
2459
+ {
2460
+ type: "function",
2461
+ inputs: [],
2462
+ name: "paused",
2463
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2464
+ stateMutability: "view",
2465
+ },
2466
+ {
2467
+ type: "function",
2468
+ inputs: [],
2469
+ name: "priceFeed",
2470
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2471
+ stateMutability: "view",
2472
+ },
2473
+ {
2474
+ type: "function",
2475
+ inputs: [],
2476
+ name: "priceFeedType",
2477
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
2478
+ stateMutability: "view",
2479
+ },
2480
+ {
2481
+ type: "function",
2482
+ inputs: [],
2483
+ name: "priceOracle",
2484
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2485
+ stateMutability: "view",
2486
+ },
2487
+ {
2488
+ type: "function",
2489
+ inputs: [
2490
+ { name: "newController", internalType: "address", type: "address" },
2491
+ ],
2492
+ name: "setController",
2493
+ outputs: [],
2494
+ stateMutability: "nonpayable",
2495
+ },
2496
+ {
2497
+ type: "function",
2498
+ inputs: [
2499
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
2500
+ ],
2501
+ name: "setLimiter",
2502
+ outputs: [],
2503
+ stateMutability: "nonpayable",
2504
+ },
2505
+ {
2506
+ type: "function",
2507
+ inputs: [],
2508
+ name: "skipCheck",
2509
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2510
+ stateMutability: "view",
2511
+ },
2512
+ {
2513
+ type: "function",
2514
+ inputs: [],
2515
+ name: "skipPriceCheck",
2516
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2517
+ stateMutability: "view",
2518
+ },
2519
+ {
2520
+ type: "function",
2521
+ inputs: [],
2522
+ name: "stalenessPeriod",
2523
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
2524
+ stateMutability: "view",
2525
+ },
2526
+ {
2527
+ type: "function",
2528
+ inputs: [],
2529
+ name: "unpause",
2530
+ outputs: [],
2531
+ stateMutability: "nonpayable",
2532
+ },
2533
+ {
2534
+ type: "function",
2535
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
2536
+ name: "updateBounds",
2537
+ outputs: [],
2538
+ stateMutability: "nonpayable",
2539
+ },
2540
+ {
2541
+ type: "function",
2542
+ inputs: [],
2543
+ name: "updateBoundsAllowed",
2544
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2545
+ stateMutability: "view",
2546
+ },
2547
+ {
2548
+ type: "function",
2549
+ inputs: [],
2550
+ name: "upperBound",
2551
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2552
+ stateMutability: "view",
2553
+ },
2554
+ {
2555
+ type: "function",
2556
+ inputs: [],
2557
+ name: "version",
2558
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2559
+ stateMutability: "view",
2560
+ },
2561
+ {
2562
+ type: "event",
2563
+ anonymous: false,
2564
+ inputs: [
2565
+ {
2566
+ name: "newController",
2567
+ internalType: "address",
2568
+ type: "address",
2569
+ indexed: true,
2570
+ },
2571
+ ],
2572
+ name: "NewController",
2573
+ },
2574
+ {
2575
+ type: "event",
2576
+ anonymous: false,
2577
+ inputs: [
2578
+ {
2579
+ name: "account",
2580
+ internalType: "address",
2581
+ type: "address",
2582
+ indexed: false,
2583
+ },
2584
+ ],
2585
+ name: "Paused",
2586
+ },
2587
+ {
2588
+ type: "event",
2589
+ anonymous: false,
2590
+ inputs: [
2591
+ {
2592
+ name: "lowerBound",
2593
+ internalType: "uint256",
2594
+ type: "uint256",
2595
+ indexed: false,
2596
+ },
2597
+ {
2598
+ name: "upperBound",
2599
+ internalType: "uint256",
2600
+ type: "uint256",
2601
+ indexed: false,
2602
+ },
2603
+ ],
2604
+ name: "SetBounds",
2605
+ },
2606
+ {
2607
+ type: "event",
2608
+ anonymous: false,
2609
+ inputs: [
2610
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
2611
+ ],
2612
+ name: "SetUpdateBoundsAllowed",
2613
+ },
2614
+ {
2615
+ type: "event",
2616
+ anonymous: false,
2617
+ inputs: [
2618
+ {
2619
+ name: "account",
2620
+ internalType: "address",
2621
+ type: "address",
2622
+ indexed: false,
2623
+ },
2624
+ ],
2625
+ name: "Unpaused",
2626
+ },
2627
+ {
2628
+ type: "error",
2629
+ inputs: [{ name: "", internalType: "address", type: "address" }],
2630
+ name: "AddressIsNotContractException",
2631
+ },
2632
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
2633
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
2634
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
2635
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
2636
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
2637
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
2638
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
2639
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
2640
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
2641
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
2642
+ { type: "error", inputs: [], name: "StalePriceException" },
2643
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
2644
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
2645
+ { type: "error", inputs: [], name: "ZeroAddressException" },
2646
+ ] as const;
2647
+
2648
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2649
+ // IBalancerStablePool
2650
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2651
+
2652
+ export const iBalancerStablePoolAbi = [
2653
+ {
2654
+ type: "function",
2655
+ inputs: [],
2656
+ name: "getRate",
2657
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2658
+ stateMutability: "view",
2659
+ },
2660
+ ] as const;
2661
+
2662
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2663
+ // IBalancerWeightedPool
2664
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2665
+
2666
+ export const iBalancerWeightedPoolAbi = [
2667
+ {
2668
+ type: "function",
2669
+ inputs: [],
2670
+ name: "getActualSupply",
2671
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2672
+ stateMutability: "view",
2673
+ },
2674
+ {
2675
+ type: "function",
2676
+ inputs: [],
2677
+ name: "getNormalizedWeights",
2678
+ outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }],
2679
+ stateMutability: "view",
2680
+ },
2681
+ {
2682
+ type: "function",
2683
+ inputs: [],
2684
+ name: "getPoolId",
2685
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
2686
+ stateMutability: "view",
2687
+ },
2688
+ {
2689
+ type: "function",
2690
+ inputs: [],
2691
+ name: "getRate",
2692
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2693
+ stateMutability: "view",
2694
+ },
2695
+ {
2696
+ type: "function",
2697
+ inputs: [],
2698
+ name: "totalSupply",
2699
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2700
+ stateMutability: "view",
2701
+ },
2702
+ ] as const;
2703
+
2704
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2705
+ // ICurvePool
2706
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2707
+
2708
+ export const iCurvePoolAbi = [
2709
+ {
2710
+ type: "function",
2711
+ inputs: [],
2712
+ name: "get_virtual_price",
2713
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2714
+ stateMutability: "view",
2715
+ },
2716
+ {
2717
+ type: "function",
2718
+ inputs: [],
2719
+ name: "price_oracle",
2720
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2721
+ stateMutability: "view",
2722
+ },
2723
+ ] as const;
2724
+
2725
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2726
+ // ILPPriceFeed
2727
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2728
+
2729
+ export const ilpPriceFeedAbi = [
2730
+ {
2731
+ type: "function",
2732
+ inputs: [],
2733
+ name: "allowBoundsUpdate",
2734
+ outputs: [],
2735
+ stateMutability: "nonpayable",
2736
+ },
2737
+ {
2738
+ type: "function",
2739
+ inputs: [],
2740
+ name: "decimals",
2741
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
2742
+ stateMutability: "view",
2743
+ },
2744
+ {
2745
+ type: "function",
2746
+ inputs: [],
2747
+ name: "description",
2748
+ outputs: [{ name: "", internalType: "string", type: "string" }],
2749
+ stateMutability: "view",
2750
+ },
2751
+ {
2752
+ type: "function",
2753
+ inputs: [],
2754
+ name: "forbidBoundsUpdate",
2755
+ outputs: [],
2756
+ stateMutability: "nonpayable",
2757
+ },
2758
+ {
2759
+ type: "function",
2760
+ inputs: [],
2761
+ name: "getAggregatePrice",
2762
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
2763
+ stateMutability: "view",
2764
+ },
2765
+ {
2766
+ type: "function",
2767
+ inputs: [],
2768
+ name: "getLPExchangeRate",
2769
+ outputs: [
2770
+ { name: "exchangeRate", internalType: "uint256", type: "uint256" },
2771
+ ],
2772
+ stateMutability: "view",
2773
+ },
2774
+ {
2775
+ type: "function",
2776
+ inputs: [],
2777
+ name: "getScale",
2778
+ outputs: [{ name: "scale", internalType: "uint256", type: "uint256" }],
2779
+ stateMutability: "view",
2780
+ },
2781
+ {
2782
+ type: "function",
2783
+ inputs: [],
2784
+ name: "lastBoundsUpdate",
2785
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
2786
+ stateMutability: "view",
2787
+ },
2788
+ {
2789
+ type: "function",
2790
+ inputs: [],
2791
+ name: "latestRoundData",
2792
+ outputs: [
2793
+ { name: "", internalType: "uint80", type: "uint80" },
2794
+ { name: "answer", internalType: "int256", type: "int256" },
2795
+ { name: "", internalType: "uint256", type: "uint256" },
2796
+ { name: "updatedAt", internalType: "uint256", type: "uint256" },
2797
+ { name: "", internalType: "uint80", type: "uint80" },
2798
+ ],
2799
+ stateMutability: "view",
2800
+ },
2801
+ {
2802
+ type: "function",
2803
+ inputs: [],
2804
+ name: "lowerBound",
2805
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2806
+ stateMutability: "view",
2807
+ },
2808
+ {
2809
+ type: "function",
2810
+ inputs: [],
2811
+ name: "lpContract",
2812
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2813
+ stateMutability: "view",
2814
+ },
2815
+ {
2816
+ type: "function",
2817
+ inputs: [],
2818
+ name: "lpToken",
2819
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2820
+ stateMutability: "view",
2821
+ },
2822
+ {
2823
+ type: "function",
2824
+ inputs: [],
2825
+ name: "priceFeedType",
2826
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
2827
+ stateMutability: "view",
2828
+ },
2829
+ {
2830
+ type: "function",
2831
+ inputs: [],
2832
+ name: "priceOracle",
2833
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2834
+ stateMutability: "view",
2835
+ },
2836
+ {
2837
+ type: "function",
2838
+ inputs: [
2839
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
2840
+ ],
2841
+ name: "setLimiter",
2842
+ outputs: [],
2843
+ stateMutability: "nonpayable",
2844
+ },
2845
+ {
2846
+ type: "function",
2847
+ inputs: [],
2848
+ name: "skipPriceCheck",
2849
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2850
+ stateMutability: "view",
2851
+ },
2852
+ {
2853
+ type: "function",
2854
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
2855
+ name: "updateBounds",
2856
+ outputs: [],
2857
+ stateMutability: "nonpayable",
2858
+ },
2859
+ {
2860
+ type: "function",
2861
+ inputs: [],
2862
+ name: "updateBoundsAllowed",
2863
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
2864
+ stateMutability: "view",
2865
+ },
2866
+ {
2867
+ type: "function",
2868
+ inputs: [],
2869
+ name: "upperBound",
2870
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2871
+ stateMutability: "view",
2872
+ },
2873
+ {
2874
+ type: "function",
2875
+ inputs: [],
2876
+ name: "version",
2877
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
2878
+ stateMutability: "view",
2879
+ },
2880
+ {
2881
+ type: "event",
2882
+ anonymous: false,
2883
+ inputs: [
2884
+ {
2885
+ name: "lowerBound",
2886
+ internalType: "uint256",
2887
+ type: "uint256",
2888
+ indexed: false,
2889
+ },
2890
+ {
2891
+ name: "upperBound",
2892
+ internalType: "uint256",
2893
+ type: "uint256",
2894
+ indexed: false,
2895
+ },
2896
+ ],
2897
+ name: "SetBounds",
2898
+ },
2899
+ {
2900
+ type: "event",
2901
+ anonymous: false,
2902
+ inputs: [
2903
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
2904
+ ],
2905
+ name: "SetUpdateBoundsAllowed",
2906
+ },
2907
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
2908
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
2909
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
2910
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
2911
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
2912
+ ] as const;
2913
+
2914
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2915
+ // ILPPriceFeedEvents
2916
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2917
+
2918
+ export const ilpPriceFeedEventsAbi = [
2919
+ {
2920
+ type: "event",
2921
+ anonymous: false,
2922
+ inputs: [
2923
+ {
2924
+ name: "lowerBound",
2925
+ internalType: "uint256",
2926
+ type: "uint256",
2927
+ indexed: false,
2928
+ },
2929
+ {
2930
+ name: "upperBound",
2931
+ internalType: "uint256",
2932
+ type: "uint256",
2933
+ indexed: false,
2934
+ },
2935
+ ],
2936
+ name: "SetBounds",
2937
+ },
2938
+ {
2939
+ type: "event",
2940
+ anonymous: false,
2941
+ inputs: [
2942
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
2943
+ ],
2944
+ name: "SetUpdateBoundsAllowed",
2945
+ },
2946
+ ] as const;
2947
+
2948
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2949
+ // IMellowVault
2950
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2951
+
2952
+ export const iMellowVaultAbi = [
2953
+ {
2954
+ type: "function",
2955
+ inputs: [],
2956
+ name: "calculateStack",
2957
+ outputs: [
2958
+ {
2959
+ name: "s",
2960
+ internalType: "struct IMellowVault.ProcessWithdrawalsStack",
2961
+ type: "tuple",
2962
+ components: [
2963
+ { name: "tokens", internalType: "address[]", type: "address[]" },
2964
+ { name: "ratiosX96", internalType: "uint128[]", type: "uint128[]" },
2965
+ {
2966
+ name: "erc20Balances",
2967
+ internalType: "uint256[]",
2968
+ type: "uint256[]",
2969
+ },
2970
+ { name: "totalSupply", internalType: "uint256", type: "uint256" },
2971
+ { name: "totalValue", internalType: "uint256", type: "uint256" },
2972
+ { name: "ratiosX96Value", internalType: "uint256", type: "uint256" },
2973
+ { name: "timestamp", internalType: "uint256", type: "uint256" },
2974
+ { name: "feeD9", internalType: "uint256", type: "uint256" },
2975
+ { name: "tokensHash", internalType: "bytes32", type: "bytes32" },
2976
+ ],
2977
+ },
2978
+ ],
2979
+ stateMutability: "view",
2980
+ },
2981
+ {
2982
+ type: "function",
2983
+ inputs: [],
2984
+ name: "configurator",
2985
+ outputs: [
2986
+ {
2987
+ name: "",
2988
+ internalType: "contract IMellowVaultConfigurator",
2989
+ type: "address",
2990
+ },
2991
+ ],
2992
+ stateMutability: "view",
2993
+ },
2994
+ ] as const;
2995
+
2996
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2997
+ // IRedstonePriceFeedEvents
2998
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2999
+
3000
+ export const iRedstonePriceFeedEventsAbi = [
3001
+ {
3002
+ type: "event",
3003
+ anonymous: false,
3004
+ inputs: [
3005
+ {
3006
+ name: "price",
3007
+ internalType: "uint256",
3008
+ type: "uint256",
3009
+ indexed: false,
3010
+ },
3011
+ ],
3012
+ name: "UpdatePrice",
3013
+ },
3014
+ ] as const;
3015
+
3016
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3017
+ // IYVault
3018
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3019
+
3020
+ export const iyVaultAbi = [
3021
+ {
3022
+ type: "function",
3023
+ inputs: [],
3024
+ name: "decimals",
3025
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3026
+ stateMutability: "view",
3027
+ },
3028
+ {
3029
+ type: "function",
3030
+ inputs: [],
3031
+ name: "pricePerShare",
3032
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3033
+ stateMutability: "view",
3034
+ },
3035
+ {
3036
+ type: "function",
3037
+ inputs: [],
3038
+ name: "token",
3039
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3040
+ stateMutability: "view",
3041
+ },
3042
+ ] as const;
3043
+
3044
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3045
+ // IwstETH
3046
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3047
+
3048
+ export const iwstEthAbi = [
3049
+ {
3050
+ type: "function",
3051
+ inputs: [],
3052
+ name: "stETH",
3053
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3054
+ stateMutability: "view",
3055
+ },
3056
+ {
3057
+ type: "function",
3058
+ inputs: [],
3059
+ name: "stEthPerToken",
3060
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3061
+ stateMutability: "view",
3062
+ },
3063
+ ] as const;
3064
+
3065
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3066
+ // MellowLRTPriceFeed
3067
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3068
+
3069
+ export const mellowLrtPriceFeedAbi = [
3070
+ {
3071
+ type: "constructor",
3072
+ inputs: [
3073
+ { name: "addressProvider", internalType: "address", type: "address" },
3074
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
3075
+ { name: "_vault", internalType: "address", type: "address" },
3076
+ { name: "_priceFeed", internalType: "address", type: "address" },
3077
+ { name: "_stalenessPeriod", internalType: "uint32", type: "uint32" },
3078
+ ],
3079
+ stateMutability: "nonpayable",
3080
+ },
3081
+ {
3082
+ type: "function",
3083
+ inputs: [],
3084
+ name: "acl",
3085
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3086
+ stateMutability: "view",
3087
+ },
3088
+ {
3089
+ type: "function",
3090
+ inputs: [],
3091
+ name: "allowBoundsUpdate",
3092
+ outputs: [],
3093
+ stateMutability: "nonpayable",
3094
+ },
3095
+ {
3096
+ type: "function",
3097
+ inputs: [],
3098
+ name: "controller",
3099
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3100
+ stateMutability: "view",
3101
+ },
3102
+ {
3103
+ type: "function",
3104
+ inputs: [],
3105
+ name: "decimals",
3106
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3107
+ stateMutability: "view",
3108
+ },
3109
+ {
3110
+ type: "function",
3111
+ inputs: [],
3112
+ name: "description",
3113
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3114
+ stateMutability: "view",
3115
+ },
3116
+ {
3117
+ type: "function",
3118
+ inputs: [],
3119
+ name: "forbidBoundsUpdate",
3120
+ outputs: [],
3121
+ stateMutability: "nonpayable",
3122
+ },
3123
+ {
3124
+ type: "function",
3125
+ inputs: [],
3126
+ name: "getAggregatePrice",
3127
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
3128
+ stateMutability: "view",
3129
+ },
3130
+ {
3131
+ type: "function",
3132
+ inputs: [],
3133
+ name: "getLPExchangeRate",
3134
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3135
+ stateMutability: "view",
3136
+ },
3137
+ {
3138
+ type: "function",
3139
+ inputs: [],
3140
+ name: "getScale",
3141
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3142
+ stateMutability: "view",
3143
+ },
3144
+ {
3145
+ type: "function",
3146
+ inputs: [],
3147
+ name: "lastBoundsUpdate",
3148
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
3149
+ stateMutability: "view",
3150
+ },
3151
+ {
3152
+ type: "function",
3153
+ inputs: [],
3154
+ name: "latestRoundData",
3155
+ outputs: [
3156
+ { name: "", internalType: "uint80", type: "uint80" },
3157
+ { name: "answer", internalType: "int256", type: "int256" },
3158
+ { name: "", internalType: "uint256", type: "uint256" },
3159
+ { name: "", internalType: "uint256", type: "uint256" },
3160
+ { name: "", internalType: "uint80", type: "uint80" },
3161
+ ],
3162
+ stateMutability: "view",
3163
+ },
3164
+ {
3165
+ type: "function",
3166
+ inputs: [],
3167
+ name: "lowerBound",
3168
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3169
+ stateMutability: "view",
3170
+ },
3171
+ {
3172
+ type: "function",
3173
+ inputs: [],
3174
+ name: "lpContract",
3175
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3176
+ stateMutability: "view",
3177
+ },
3178
+ {
3179
+ type: "function",
3180
+ inputs: [],
3181
+ name: "lpToken",
3182
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3183
+ stateMutability: "view",
3184
+ },
3185
+ {
3186
+ type: "function",
3187
+ inputs: [],
3188
+ name: "pause",
3189
+ outputs: [],
3190
+ stateMutability: "nonpayable",
3191
+ },
3192
+ {
3193
+ type: "function",
3194
+ inputs: [],
3195
+ name: "paused",
3196
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3197
+ stateMutability: "view",
3198
+ },
3199
+ {
3200
+ type: "function",
3201
+ inputs: [],
3202
+ name: "priceFeed",
3203
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3204
+ stateMutability: "view",
3205
+ },
3206
+ {
3207
+ type: "function",
3208
+ inputs: [],
3209
+ name: "priceFeedType",
3210
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
3211
+ stateMutability: "view",
3212
+ },
3213
+ {
3214
+ type: "function",
3215
+ inputs: [],
3216
+ name: "priceOracle",
3217
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3218
+ stateMutability: "view",
3219
+ },
3220
+ {
3221
+ type: "function",
3222
+ inputs: [
3223
+ { name: "newController", internalType: "address", type: "address" },
3224
+ ],
3225
+ name: "setController",
3226
+ outputs: [],
3227
+ stateMutability: "nonpayable",
3228
+ },
3229
+ {
3230
+ type: "function",
3231
+ inputs: [
3232
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
3233
+ ],
3234
+ name: "setLimiter",
3235
+ outputs: [],
3236
+ stateMutability: "nonpayable",
3237
+ },
3238
+ {
3239
+ type: "function",
3240
+ inputs: [],
3241
+ name: "skipCheck",
3242
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3243
+ stateMutability: "view",
3244
+ },
3245
+ {
3246
+ type: "function",
3247
+ inputs: [],
3248
+ name: "skipPriceCheck",
3249
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3250
+ stateMutability: "view",
3251
+ },
3252
+ {
3253
+ type: "function",
3254
+ inputs: [],
3255
+ name: "stalenessPeriod",
3256
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
3257
+ stateMutability: "view",
3258
+ },
3259
+ {
3260
+ type: "function",
3261
+ inputs: [],
3262
+ name: "unpause",
3263
+ outputs: [],
3264
+ stateMutability: "nonpayable",
3265
+ },
3266
+ {
3267
+ type: "function",
3268
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
3269
+ name: "updateBounds",
3270
+ outputs: [],
3271
+ stateMutability: "nonpayable",
3272
+ },
3273
+ {
3274
+ type: "function",
3275
+ inputs: [],
3276
+ name: "updateBoundsAllowed",
3277
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3278
+ stateMutability: "view",
3279
+ },
3280
+ {
3281
+ type: "function",
3282
+ inputs: [],
3283
+ name: "upperBound",
3284
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3285
+ stateMutability: "view",
3286
+ },
3287
+ {
3288
+ type: "function",
3289
+ inputs: [],
3290
+ name: "version",
3291
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3292
+ stateMutability: "view",
3293
+ },
3294
+ {
3295
+ type: "event",
3296
+ anonymous: false,
3297
+ inputs: [
3298
+ {
3299
+ name: "newController",
3300
+ internalType: "address",
3301
+ type: "address",
3302
+ indexed: true,
3303
+ },
3304
+ ],
3305
+ name: "NewController",
3306
+ },
3307
+ {
3308
+ type: "event",
3309
+ anonymous: false,
3310
+ inputs: [
3311
+ {
3312
+ name: "account",
3313
+ internalType: "address",
3314
+ type: "address",
3315
+ indexed: false,
3316
+ },
3317
+ ],
3318
+ name: "Paused",
3319
+ },
3320
+ {
3321
+ type: "event",
3322
+ anonymous: false,
3323
+ inputs: [
3324
+ {
3325
+ name: "lowerBound",
3326
+ internalType: "uint256",
3327
+ type: "uint256",
3328
+ indexed: false,
3329
+ },
3330
+ {
3331
+ name: "upperBound",
3332
+ internalType: "uint256",
3333
+ type: "uint256",
3334
+ indexed: false,
3335
+ },
3336
+ ],
3337
+ name: "SetBounds",
3338
+ },
3339
+ {
3340
+ type: "event",
3341
+ anonymous: false,
3342
+ inputs: [
3343
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
3344
+ ],
3345
+ name: "SetUpdateBoundsAllowed",
3346
+ },
3347
+ {
3348
+ type: "event",
3349
+ anonymous: false,
3350
+ inputs: [
3351
+ {
3352
+ name: "account",
3353
+ internalType: "address",
3354
+ type: "address",
3355
+ indexed: false,
3356
+ },
3357
+ ],
3358
+ name: "Unpaused",
3359
+ },
3360
+ {
3361
+ type: "error",
3362
+ inputs: [{ name: "", internalType: "address", type: "address" }],
3363
+ name: "AddressIsNotContractException",
3364
+ },
3365
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
3366
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
3367
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
3368
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
3369
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
3370
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
3371
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
3372
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
3373
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
3374
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
3375
+ { type: "error", inputs: [], name: "StalePriceException" },
3376
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
3377
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
3378
+ { type: "error", inputs: [], name: "ZeroAddressException" },
3379
+ ] as const;
3380
+
3381
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3382
+ // RedstonePriceFeed
3383
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3384
+
3385
+ export const redstonePriceFeedAbi = [
3386
+ {
3387
+ type: "constructor",
3388
+ inputs: [
3389
+ { name: "_token", internalType: "address", type: "address" },
3390
+ { name: "_dataFeedId", internalType: "bytes32", type: "bytes32" },
3391
+ { name: "_signers", internalType: "address[10]", type: "address[10]" },
3392
+ { name: "signersThreshold", internalType: "uint8", type: "uint8" },
3393
+ ],
3394
+ stateMutability: "nonpayable",
3395
+ },
3396
+ {
3397
+ type: "function",
3398
+ inputs: [{ name: "values", internalType: "uint256[]", type: "uint256[]" }],
3399
+ name: "aggregateValues",
3400
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3401
+ stateMutability: "view",
3402
+ },
3403
+ {
3404
+ type: "function",
3405
+ inputs: [],
3406
+ name: "dataFeedId",
3407
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
3408
+ stateMutability: "view",
3409
+ },
3410
+ {
3411
+ type: "function",
3412
+ inputs: [],
3413
+ name: "decimals",
3414
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3415
+ stateMutability: "view",
3416
+ },
3417
+ {
3418
+ type: "function",
3419
+ inputs: [],
3420
+ name: "description",
3421
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3422
+ stateMutability: "view",
3423
+ },
3424
+ {
3425
+ type: "function",
3426
+ inputs: [],
3427
+ name: "extractTimestampsAndAssertAllAreEqual",
3428
+ outputs: [
3429
+ { name: "extractedTimestamp", internalType: "uint256", type: "uint256" },
3430
+ ],
3431
+ stateMutability: "pure",
3432
+ },
3433
+ {
3434
+ type: "function",
3435
+ inputs: [
3436
+ { name: "signerAddress", internalType: "address", type: "address" },
3437
+ ],
3438
+ name: "getAuthorisedSignerIndex",
3439
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3440
+ stateMutability: "view",
3441
+ },
3442
+ {
3443
+ type: "function",
3444
+ inputs: [],
3445
+ name: "getDataServiceId",
3446
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3447
+ stateMutability: "view",
3448
+ },
3449
+ {
3450
+ type: "function",
3451
+ inputs: [],
3452
+ name: "getUniqueSignersThreshold",
3453
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3454
+ stateMutability: "view",
3455
+ },
3456
+ {
3457
+ type: "function",
3458
+ inputs: [],
3459
+ name: "lastPayloadTimestamp",
3460
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
3461
+ stateMutability: "view",
3462
+ },
3463
+ {
3464
+ type: "function",
3465
+ inputs: [],
3466
+ name: "lastPrice",
3467
+ outputs: [{ name: "", internalType: "uint128", type: "uint128" }],
3468
+ stateMutability: "view",
3469
+ },
3470
+ {
3471
+ type: "function",
3472
+ inputs: [],
3473
+ name: "latestRoundData",
3474
+ outputs: [
3475
+ { name: "", internalType: "uint80", type: "uint80" },
3476
+ { name: "", internalType: "int256", type: "int256" },
3477
+ { name: "", internalType: "uint256", type: "uint256" },
3478
+ { name: "", internalType: "uint256", type: "uint256" },
3479
+ { name: "", internalType: "uint80", type: "uint80" },
3480
+ ],
3481
+ stateMutability: "view",
3482
+ },
3483
+ {
3484
+ type: "function",
3485
+ inputs: [],
3486
+ name: "priceFeedType",
3487
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
3488
+ stateMutability: "view",
3489
+ },
3490
+ {
3491
+ type: "function",
3492
+ inputs: [],
3493
+ name: "signerAddress0",
3494
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3495
+ stateMutability: "view",
3496
+ },
3497
+ {
3498
+ type: "function",
3499
+ inputs: [],
3500
+ name: "signerAddress1",
3501
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3502
+ stateMutability: "view",
3503
+ },
3504
+ {
3505
+ type: "function",
3506
+ inputs: [],
3507
+ name: "signerAddress2",
3508
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3509
+ stateMutability: "view",
3510
+ },
3511
+ {
3512
+ type: "function",
3513
+ inputs: [],
3514
+ name: "signerAddress3",
3515
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3516
+ stateMutability: "view",
3517
+ },
3518
+ {
3519
+ type: "function",
3520
+ inputs: [],
3521
+ name: "signerAddress4",
3522
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3523
+ stateMutability: "view",
3524
+ },
3525
+ {
3526
+ type: "function",
3527
+ inputs: [],
3528
+ name: "signerAddress5",
3529
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3530
+ stateMutability: "view",
3531
+ },
3532
+ {
3533
+ type: "function",
3534
+ inputs: [],
3535
+ name: "signerAddress6",
3536
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3537
+ stateMutability: "view",
3538
+ },
3539
+ {
3540
+ type: "function",
3541
+ inputs: [],
3542
+ name: "signerAddress7",
3543
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3544
+ stateMutability: "view",
3545
+ },
3546
+ {
3547
+ type: "function",
3548
+ inputs: [],
3549
+ name: "signerAddress8",
3550
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3551
+ stateMutability: "view",
3552
+ },
3553
+ {
3554
+ type: "function",
3555
+ inputs: [],
3556
+ name: "signerAddress9",
3557
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3558
+ stateMutability: "view",
3559
+ },
3560
+ {
3561
+ type: "function",
3562
+ inputs: [],
3563
+ name: "skipPriceCheck",
3564
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3565
+ stateMutability: "view",
3566
+ },
3567
+ {
3568
+ type: "function",
3569
+ inputs: [],
3570
+ name: "token",
3571
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3572
+ stateMutability: "view",
3573
+ },
3574
+ {
3575
+ type: "function",
3576
+ inputs: [],
3577
+ name: "updatable",
3578
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3579
+ stateMutability: "view",
3580
+ },
3581
+ {
3582
+ type: "function",
3583
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
3584
+ name: "updatePrice",
3585
+ outputs: [],
3586
+ stateMutability: "nonpayable",
3587
+ },
3588
+ {
3589
+ type: "function",
3590
+ inputs: [
3591
+ {
3592
+ name: "receivedTimestampMilliseconds",
3593
+ internalType: "uint256",
3594
+ type: "uint256",
3595
+ },
3596
+ ],
3597
+ name: "validateTimestamp",
3598
+ outputs: [],
3599
+ stateMutability: "view",
3600
+ },
3601
+ {
3602
+ type: "function",
3603
+ inputs: [],
3604
+ name: "version",
3605
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3606
+ stateMutability: "view",
3607
+ },
3608
+ {
3609
+ type: "event",
3610
+ anonymous: false,
3611
+ inputs: [
3612
+ {
3613
+ name: "price",
3614
+ internalType: "uint256",
3615
+ type: "uint256",
3616
+ indexed: false,
3617
+ },
3618
+ ],
3619
+ name: "UpdatePrice",
3620
+ },
3621
+ { type: "error", inputs: [], name: "CalldataMustHaveValidPayload" },
3622
+ { type: "error", inputs: [], name: "CalldataOverOrUnderFlow" },
3623
+ { type: "error", inputs: [], name: "CanNotPickMedianOfEmptyArray" },
3624
+ { type: "error", inputs: [], name: "DataPackageTimestampIncorrect" },
3625
+ { type: "error", inputs: [], name: "DataPackageTimestampMustNotBeZero" },
3626
+ { type: "error", inputs: [], name: "DataPackageTimestampsMustBeEqual" },
3627
+ { type: "error", inputs: [], name: "DuplicateSignersException" },
3628
+ { type: "error", inputs: [], name: "EachSignerMustProvideTheSameValue" },
3629
+ { type: "error", inputs: [], name: "EmptyCalldataPointersArr" },
3630
+ { type: "error", inputs: [], name: "GetDataServiceIdNotImplemented" },
3631
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
3632
+ { type: "error", inputs: [], name: "IncorrectSignersThresholdException" },
3633
+ { type: "error", inputs: [], name: "IncorrectUnsignedMetadataSize" },
3634
+ {
3635
+ type: "error",
3636
+ inputs: [
3637
+ {
3638
+ name: "receivedSignersCount",
3639
+ internalType: "uint256",
3640
+ type: "uint256",
3641
+ },
3642
+ {
3643
+ name: "requiredSignersCount",
3644
+ internalType: "uint256",
3645
+ type: "uint256",
3646
+ },
3647
+ ],
3648
+ name: "InsufficientNumberOfUniqueSigners",
3649
+ },
3650
+ { type: "error", inputs: [], name: "InvalidCalldataPointer" },
3651
+ { type: "error", inputs: [], name: "NotEnoughSignersException" },
3652
+ {
3653
+ type: "error",
3654
+ inputs: [],
3655
+ name: "RedstonePayloadMustHaveAtLeastOneDataPackage",
3656
+ },
3657
+ { type: "error", inputs: [], name: "RedstonePayloadTimestampIncorrect" },
3658
+ {
3659
+ type: "error",
3660
+ inputs: [
3661
+ { name: "receivedSigner", internalType: "address", type: "address" },
3662
+ ],
3663
+ name: "SignerNotAuthorised",
3664
+ },
3665
+ ] as const;
3666
+
3667
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3668
+ // WstETHPriceFeed
3669
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3670
+
3671
+ export const wstEthPriceFeedAbi = [
3672
+ {
3673
+ type: "constructor",
3674
+ inputs: [
3675
+ { name: "addressProvider", internalType: "address", type: "address" },
3676
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
3677
+ { name: "_wstETH", internalType: "address", type: "address" },
3678
+ { name: "_priceFeed", internalType: "address", type: "address" },
3679
+ { name: "_stalenessPeriod", internalType: "uint32", type: "uint32" },
3680
+ ],
3681
+ stateMutability: "nonpayable",
3682
+ },
3683
+ {
3684
+ type: "function",
3685
+ inputs: [],
3686
+ name: "acl",
3687
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3688
+ stateMutability: "view",
3689
+ },
3690
+ {
3691
+ type: "function",
3692
+ inputs: [],
3693
+ name: "allowBoundsUpdate",
3694
+ outputs: [],
3695
+ stateMutability: "nonpayable",
3696
+ },
3697
+ {
3698
+ type: "function",
3699
+ inputs: [],
3700
+ name: "controller",
3701
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3702
+ stateMutability: "view",
3703
+ },
3704
+ {
3705
+ type: "function",
3706
+ inputs: [],
3707
+ name: "decimals",
3708
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
3709
+ stateMutability: "view",
3710
+ },
3711
+ {
3712
+ type: "function",
3713
+ inputs: [],
3714
+ name: "description",
3715
+ outputs: [{ name: "", internalType: "string", type: "string" }],
3716
+ stateMutability: "view",
3717
+ },
3718
+ {
3719
+ type: "function",
3720
+ inputs: [],
3721
+ name: "forbidBoundsUpdate",
3722
+ outputs: [],
3723
+ stateMutability: "nonpayable",
3724
+ },
3725
+ {
3726
+ type: "function",
3727
+ inputs: [],
3728
+ name: "getAggregatePrice",
3729
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
3730
+ stateMutability: "view",
3731
+ },
3732
+ {
3733
+ type: "function",
3734
+ inputs: [],
3735
+ name: "getLPExchangeRate",
3736
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3737
+ stateMutability: "view",
3738
+ },
3739
+ {
3740
+ type: "function",
3741
+ inputs: [],
3742
+ name: "getScale",
3743
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3744
+ stateMutability: "pure",
3745
+ },
3746
+ {
3747
+ type: "function",
3748
+ inputs: [],
3749
+ name: "lastBoundsUpdate",
3750
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
3751
+ stateMutability: "view",
3752
+ },
3753
+ {
3754
+ type: "function",
3755
+ inputs: [],
3756
+ name: "latestRoundData",
3757
+ outputs: [
3758
+ { name: "", internalType: "uint80", type: "uint80" },
3759
+ { name: "answer", internalType: "int256", type: "int256" },
3760
+ { name: "", internalType: "uint256", type: "uint256" },
3761
+ { name: "", internalType: "uint256", type: "uint256" },
3762
+ { name: "", internalType: "uint80", type: "uint80" },
3763
+ ],
3764
+ stateMutability: "view",
3765
+ },
3766
+ {
3767
+ type: "function",
3768
+ inputs: [],
3769
+ name: "lowerBound",
3770
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3771
+ stateMutability: "view",
3772
+ },
3773
+ {
3774
+ type: "function",
3775
+ inputs: [],
3776
+ name: "lpContract",
3777
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3778
+ stateMutability: "view",
3779
+ },
3780
+ {
3781
+ type: "function",
3782
+ inputs: [],
3783
+ name: "lpToken",
3784
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3785
+ stateMutability: "view",
3786
+ },
3787
+ {
3788
+ type: "function",
3789
+ inputs: [],
3790
+ name: "pause",
3791
+ outputs: [],
3792
+ stateMutability: "nonpayable",
3793
+ },
3794
+ {
3795
+ type: "function",
3796
+ inputs: [],
3797
+ name: "paused",
3798
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3799
+ stateMutability: "view",
3800
+ },
3801
+ {
3802
+ type: "function",
3803
+ inputs: [],
3804
+ name: "priceFeed",
3805
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3806
+ stateMutability: "view",
3807
+ },
3808
+ {
3809
+ type: "function",
3810
+ inputs: [],
3811
+ name: "priceFeedType",
3812
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
3813
+ stateMutability: "view",
3814
+ },
3815
+ {
3816
+ type: "function",
3817
+ inputs: [],
3818
+ name: "priceOracle",
3819
+ outputs: [{ name: "", internalType: "address", type: "address" }],
3820
+ stateMutability: "view",
3821
+ },
3822
+ {
3823
+ type: "function",
3824
+ inputs: [
3825
+ { name: "newController", internalType: "address", type: "address" },
3826
+ ],
3827
+ name: "setController",
3828
+ outputs: [],
3829
+ stateMutability: "nonpayable",
3830
+ },
3831
+ {
3832
+ type: "function",
3833
+ inputs: [
3834
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
3835
+ ],
3836
+ name: "setLimiter",
3837
+ outputs: [],
3838
+ stateMutability: "nonpayable",
3839
+ },
3840
+ {
3841
+ type: "function",
3842
+ inputs: [],
3843
+ name: "skipCheck",
3844
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3845
+ stateMutability: "view",
3846
+ },
3847
+ {
3848
+ type: "function",
3849
+ inputs: [],
3850
+ name: "skipPriceCheck",
3851
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3852
+ stateMutability: "view",
3853
+ },
3854
+ {
3855
+ type: "function",
3856
+ inputs: [],
3857
+ name: "stalenessPeriod",
3858
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
3859
+ stateMutability: "view",
3860
+ },
3861
+ {
3862
+ type: "function",
3863
+ inputs: [],
3864
+ name: "unpause",
3865
+ outputs: [],
3866
+ stateMutability: "nonpayable",
3867
+ },
3868
+ {
3869
+ type: "function",
3870
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
3871
+ name: "updateBounds",
3872
+ outputs: [],
3873
+ stateMutability: "nonpayable",
3874
+ },
3875
+ {
3876
+ type: "function",
3877
+ inputs: [],
3878
+ name: "updateBoundsAllowed",
3879
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
3880
+ stateMutability: "view",
3881
+ },
3882
+ {
3883
+ type: "function",
3884
+ inputs: [],
3885
+ name: "upperBound",
3886
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3887
+ stateMutability: "view",
3888
+ },
3889
+ {
3890
+ type: "function",
3891
+ inputs: [],
3892
+ name: "version",
3893
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3894
+ stateMutability: "view",
3895
+ },
3896
+ {
3897
+ type: "event",
3898
+ anonymous: false,
3899
+ inputs: [
3900
+ {
3901
+ name: "newController",
3902
+ internalType: "address",
3903
+ type: "address",
3904
+ indexed: true,
3905
+ },
3906
+ ],
3907
+ name: "NewController",
3908
+ },
3909
+ {
3910
+ type: "event",
3911
+ anonymous: false,
3912
+ inputs: [
3913
+ {
3914
+ name: "account",
3915
+ internalType: "address",
3916
+ type: "address",
3917
+ indexed: false,
3918
+ },
3919
+ ],
3920
+ name: "Paused",
3921
+ },
3922
+ {
3923
+ type: "event",
3924
+ anonymous: false,
3925
+ inputs: [
3926
+ {
3927
+ name: "lowerBound",
3928
+ internalType: "uint256",
3929
+ type: "uint256",
3930
+ indexed: false,
3931
+ },
3932
+ {
3933
+ name: "upperBound",
3934
+ internalType: "uint256",
3935
+ type: "uint256",
3936
+ indexed: false,
3937
+ },
3938
+ ],
3939
+ name: "SetBounds",
3940
+ },
3941
+ {
3942
+ type: "event",
3943
+ anonymous: false,
3944
+ inputs: [
3945
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
3946
+ ],
3947
+ name: "SetUpdateBoundsAllowed",
3948
+ },
3949
+ {
3950
+ type: "event",
3951
+ anonymous: false,
3952
+ inputs: [
3953
+ {
3954
+ name: "account",
3955
+ internalType: "address",
3956
+ type: "address",
3957
+ indexed: false,
3958
+ },
3959
+ ],
3960
+ name: "Unpaused",
3961
+ },
3962
+ {
3963
+ type: "error",
3964
+ inputs: [{ name: "", internalType: "address", type: "address" }],
3965
+ name: "AddressIsNotContractException",
3966
+ },
3967
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
3968
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
3969
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
3970
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
3971
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
3972
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
3973
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
3974
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
3975
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
3976
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
3977
+ { type: "error", inputs: [], name: "StalePriceException" },
3978
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
3979
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
3980
+ { type: "error", inputs: [], name: "ZeroAddressException" },
3981
+ ] as const;
3982
+
3983
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3984
+ // YearnPriceFeed
3985
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3986
+
3987
+ export const yearnPriceFeedAbi = [
3988
+ {
3989
+ type: "constructor",
3990
+ inputs: [
3991
+ { name: "addressProvider", internalType: "address", type: "address" },
3992
+ { name: "lowerBound", internalType: "uint256", type: "uint256" },
3993
+ { name: "_yVault", internalType: "address", type: "address" },
3994
+ { name: "_priceFeed", internalType: "address", type: "address" },
3995
+ { name: "_stalenessPeriod", internalType: "uint32", type: "uint32" },
3996
+ ],
3997
+ stateMutability: "nonpayable",
3998
+ },
3999
+ {
4000
+ type: "function",
4001
+ inputs: [],
4002
+ name: "acl",
4003
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4004
+ stateMutability: "view",
4005
+ },
4006
+ {
4007
+ type: "function",
4008
+ inputs: [],
4009
+ name: "allowBoundsUpdate",
4010
+ outputs: [],
4011
+ stateMutability: "nonpayable",
4012
+ },
4013
+ {
4014
+ type: "function",
4015
+ inputs: [],
4016
+ name: "controller",
4017
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4018
+ stateMutability: "view",
4019
+ },
4020
+ {
4021
+ type: "function",
4022
+ inputs: [],
4023
+ name: "decimals",
4024
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
4025
+ stateMutability: "view",
4026
+ },
4027
+ {
4028
+ type: "function",
4029
+ inputs: [],
4030
+ name: "description",
4031
+ outputs: [{ name: "", internalType: "string", type: "string" }],
4032
+ stateMutability: "view",
4033
+ },
4034
+ {
4035
+ type: "function",
4036
+ inputs: [],
4037
+ name: "forbidBoundsUpdate",
4038
+ outputs: [],
4039
+ stateMutability: "nonpayable",
4040
+ },
4041
+ {
4042
+ type: "function",
4043
+ inputs: [],
4044
+ name: "getAggregatePrice",
4045
+ outputs: [{ name: "answer", internalType: "int256", type: "int256" }],
4046
+ stateMutability: "view",
4047
+ },
4048
+ {
4049
+ type: "function",
4050
+ inputs: [],
4051
+ name: "getLPExchangeRate",
4052
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4053
+ stateMutability: "view",
4054
+ },
4055
+ {
4056
+ type: "function",
4057
+ inputs: [],
4058
+ name: "getScale",
4059
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4060
+ stateMutability: "view",
4061
+ },
4062
+ {
4063
+ type: "function",
4064
+ inputs: [],
4065
+ name: "lastBoundsUpdate",
4066
+ outputs: [{ name: "", internalType: "uint40", type: "uint40" }],
4067
+ stateMutability: "view",
4068
+ },
4069
+ {
4070
+ type: "function",
4071
+ inputs: [],
4072
+ name: "latestRoundData",
4073
+ outputs: [
4074
+ { name: "", internalType: "uint80", type: "uint80" },
4075
+ { name: "answer", internalType: "int256", type: "int256" },
4076
+ { name: "", internalType: "uint256", type: "uint256" },
4077
+ { name: "", internalType: "uint256", type: "uint256" },
4078
+ { name: "", internalType: "uint80", type: "uint80" },
4079
+ ],
4080
+ stateMutability: "view",
4081
+ },
4082
+ {
4083
+ type: "function",
4084
+ inputs: [],
4085
+ name: "lowerBound",
4086
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4087
+ stateMutability: "view",
4088
+ },
4089
+ {
4090
+ type: "function",
4091
+ inputs: [],
4092
+ name: "lpContract",
4093
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4094
+ stateMutability: "view",
4095
+ },
4096
+ {
4097
+ type: "function",
4098
+ inputs: [],
4099
+ name: "lpToken",
4100
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4101
+ stateMutability: "view",
4102
+ },
4103
+ {
4104
+ type: "function",
4105
+ inputs: [],
4106
+ name: "pause",
4107
+ outputs: [],
4108
+ stateMutability: "nonpayable",
4109
+ },
4110
+ {
4111
+ type: "function",
4112
+ inputs: [],
4113
+ name: "paused",
4114
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4115
+ stateMutability: "view",
4116
+ },
4117
+ {
4118
+ type: "function",
4119
+ inputs: [],
4120
+ name: "priceFeed",
4121
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4122
+ stateMutability: "view",
4123
+ },
4124
+ {
4125
+ type: "function",
4126
+ inputs: [],
4127
+ name: "priceFeedType",
4128
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
4129
+ stateMutability: "view",
4130
+ },
4131
+ {
4132
+ type: "function",
4133
+ inputs: [],
4134
+ name: "priceOracle",
4135
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4136
+ stateMutability: "view",
4137
+ },
4138
+ {
4139
+ type: "function",
4140
+ inputs: [
4141
+ { name: "newController", internalType: "address", type: "address" },
4142
+ ],
4143
+ name: "setController",
4144
+ outputs: [],
4145
+ stateMutability: "nonpayable",
4146
+ },
4147
+ {
4148
+ type: "function",
4149
+ inputs: [
4150
+ { name: "newLowerBound", internalType: "uint256", type: "uint256" },
4151
+ ],
4152
+ name: "setLimiter",
4153
+ outputs: [],
4154
+ stateMutability: "nonpayable",
4155
+ },
4156
+ {
4157
+ type: "function",
4158
+ inputs: [],
4159
+ name: "skipCheck",
4160
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4161
+ stateMutability: "view",
4162
+ },
4163
+ {
4164
+ type: "function",
4165
+ inputs: [],
4166
+ name: "skipPriceCheck",
4167
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4168
+ stateMutability: "view",
4169
+ },
4170
+ {
4171
+ type: "function",
4172
+ inputs: [],
4173
+ name: "stalenessPeriod",
4174
+ outputs: [{ name: "", internalType: "uint32", type: "uint32" }],
4175
+ stateMutability: "view",
4176
+ },
4177
+ {
4178
+ type: "function",
4179
+ inputs: [],
4180
+ name: "unpause",
4181
+ outputs: [],
4182
+ stateMutability: "nonpayable",
4183
+ },
4184
+ {
4185
+ type: "function",
4186
+ inputs: [{ name: "updateData", internalType: "bytes", type: "bytes" }],
4187
+ name: "updateBounds",
4188
+ outputs: [],
4189
+ stateMutability: "nonpayable",
4190
+ },
4191
+ {
4192
+ type: "function",
4193
+ inputs: [],
4194
+ name: "updateBoundsAllowed",
4195
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4196
+ stateMutability: "view",
4197
+ },
4198
+ {
4199
+ type: "function",
4200
+ inputs: [],
4201
+ name: "upperBound",
4202
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4203
+ stateMutability: "view",
4204
+ },
4205
+ {
4206
+ type: "function",
4207
+ inputs: [],
4208
+ name: "version",
4209
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4210
+ stateMutability: "view",
4211
+ },
4212
+ {
4213
+ type: "event",
4214
+ anonymous: false,
4215
+ inputs: [
4216
+ {
4217
+ name: "newController",
4218
+ internalType: "address",
4219
+ type: "address",
4220
+ indexed: true,
4221
+ },
4222
+ ],
4223
+ name: "NewController",
4224
+ },
4225
+ {
4226
+ type: "event",
4227
+ anonymous: false,
4228
+ inputs: [
4229
+ {
4230
+ name: "account",
4231
+ internalType: "address",
4232
+ type: "address",
4233
+ indexed: false,
4234
+ },
4235
+ ],
4236
+ name: "Paused",
4237
+ },
4238
+ {
4239
+ type: "event",
4240
+ anonymous: false,
4241
+ inputs: [
4242
+ {
4243
+ name: "lowerBound",
4244
+ internalType: "uint256",
4245
+ type: "uint256",
4246
+ indexed: false,
4247
+ },
4248
+ {
4249
+ name: "upperBound",
4250
+ internalType: "uint256",
4251
+ type: "uint256",
4252
+ indexed: false,
4253
+ },
4254
+ ],
4255
+ name: "SetBounds",
4256
+ },
4257
+ {
4258
+ type: "event",
4259
+ anonymous: false,
4260
+ inputs: [
4261
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false },
4262
+ ],
4263
+ name: "SetUpdateBoundsAllowed",
4264
+ },
4265
+ {
4266
+ type: "event",
4267
+ anonymous: false,
4268
+ inputs: [
4269
+ {
4270
+ name: "account",
4271
+ internalType: "address",
4272
+ type: "address",
4273
+ indexed: false,
4274
+ },
4275
+ ],
4276
+ name: "Unpaused",
4277
+ },
4278
+ {
4279
+ type: "error",
4280
+ inputs: [{ name: "", internalType: "address", type: "address" }],
4281
+ name: "AddressIsNotContractException",
4282
+ },
4283
+ { type: "error", inputs: [], name: "CallerNotConfiguratorException" },
4284
+ { type: "error", inputs: [], name: "CallerNotControllerException" },
4285
+ { type: "error", inputs: [], name: "CallerNotPausableAdminException" },
4286
+ { type: "error", inputs: [], name: "CallerNotUnpausableAdminException" },
4287
+ { type: "error", inputs: [], name: "ExchangeRateOutOfBoundsException" },
4288
+ { type: "error", inputs: [], name: "IncorrectParameterException" },
4289
+ { type: "error", inputs: [], name: "IncorrectPriceException" },
4290
+ { type: "error", inputs: [], name: "IncorrectPriceFeedException" },
4291
+ { type: "error", inputs: [], name: "LowerBoundCantBeZeroException" },
4292
+ { type: "error", inputs: [], name: "ReserveFeedMustNotBeSelfException" },
4293
+ { type: "error", inputs: [], name: "StalePriceException" },
4294
+ { type: "error", inputs: [], name: "UpdateBoundsBeforeCooldownException" },
4295
+ { type: "error", inputs: [], name: "UpdateBoundsNotAllowedException" },
4296
+ { type: "error", inputs: [], name: "ZeroAddressException" },
4297
+ ] as const;
4298
+
4299
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4300
+ // ZeroPriceFeed
4301
+ /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4302
+
4303
+ export const zeroPriceFeedAbi = [
4304
+ {
4305
+ type: "function",
4306
+ inputs: [],
4307
+ name: "decimals",
4308
+ outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
4309
+ stateMutability: "view",
4310
+ },
4311
+ {
4312
+ type: "function",
4313
+ inputs: [],
4314
+ name: "description",
4315
+ outputs: [{ name: "", internalType: "string", type: "string" }],
4316
+ stateMutability: "view",
4317
+ },
4318
+ {
4319
+ type: "function",
4320
+ inputs: [],
4321
+ name: "latestRoundData",
4322
+ outputs: [
4323
+ { name: "", internalType: "uint80", type: "uint80" },
4324
+ { name: "", internalType: "int256", type: "int256" },
4325
+ { name: "", internalType: "uint256", type: "uint256" },
4326
+ { name: "", internalType: "uint256", type: "uint256" },
4327
+ { name: "", internalType: "uint80", type: "uint80" },
4328
+ ],
4329
+ stateMutability: "pure",
4330
+ },
4331
+ {
4332
+ type: "function",
4333
+ inputs: [],
4334
+ name: "priceFeedType",
4335
+ outputs: [{ name: "", internalType: "enum PriceFeedType", type: "uint8" }],
4336
+ stateMutability: "view",
4337
+ },
4338
+ {
4339
+ type: "function",
4340
+ inputs: [],
4341
+ name: "skipPriceCheck",
4342
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
4343
+ stateMutability: "view",
4344
+ },
4345
+ {
4346
+ type: "function",
4347
+ inputs: [],
4348
+ name: "version",
4349
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4350
+ stateMutability: "view",
4351
+ },
4352
+ ] as const;
4353
+
4354
+ export const pendleTWAPPTPriceFeedAbi = [
4355
+ {
4356
+ type: "constructor",
4357
+ inputs: [
4358
+ {
4359
+ name: "_market",
4360
+ type: "address",
4361
+ internalType: "address",
4362
+ },
4363
+ {
4364
+ name: "_priceFeed",
4365
+ type: "address",
4366
+ internalType: "address",
4367
+ },
4368
+ {
4369
+ name: "_stalenessPeriod",
4370
+ type: "uint32",
4371
+ internalType: "uint32",
4372
+ },
4373
+ {
4374
+ name: "_twapWindow",
4375
+ type: "uint32",
4376
+ internalType: "uint32",
4377
+ },
4378
+ ],
4379
+ stateMutability: "nonpayable",
4380
+ },
4381
+ {
4382
+ type: "function",
4383
+ name: "decimals",
4384
+ inputs: [],
4385
+ outputs: [
4386
+ {
4387
+ name: "",
4388
+ type: "uint8",
4389
+ internalType: "uint8",
4390
+ },
4391
+ ],
4392
+ stateMutability: "view",
4393
+ },
4394
+ {
4395
+ type: "function",
4396
+ name: "description",
4397
+ inputs: [],
4398
+ outputs: [
4399
+ {
4400
+ name: "",
4401
+ type: "string",
4402
+ internalType: "string",
4403
+ },
4404
+ ],
4405
+ stateMutability: "view",
4406
+ },
4407
+ {
4408
+ type: "function",
4409
+ name: "expiry",
4410
+ inputs: [],
4411
+ outputs: [
4412
+ {
4413
+ name: "",
4414
+ type: "uint256",
4415
+ internalType: "uint256",
4416
+ },
4417
+ ],
4418
+ stateMutability: "view",
4419
+ },
4420
+ {
4421
+ type: "function",
4422
+ name: "latestRoundData",
4423
+ inputs: [],
4424
+ outputs: [
4425
+ {
4426
+ name: "",
4427
+ type: "uint80",
4428
+ internalType: "uint80",
4429
+ },
4430
+ {
4431
+ name: "",
4432
+ type: "int256",
4433
+ internalType: "int256",
4434
+ },
4435
+ {
4436
+ name: "",
4437
+ type: "uint256",
4438
+ internalType: "uint256",
4439
+ },
4440
+ {
4441
+ name: "",
4442
+ type: "uint256",
4443
+ internalType: "uint256",
4444
+ },
4445
+ {
4446
+ name: "",
4447
+ type: "uint80",
4448
+ internalType: "uint80",
4449
+ },
4450
+ ],
4451
+ stateMutability: "view",
4452
+ },
4453
+ {
4454
+ type: "function",
4455
+ name: "market",
4456
+ inputs: [],
4457
+ outputs: [
4458
+ {
4459
+ name: "",
4460
+ type: "address",
4461
+ internalType: "address",
4462
+ },
4463
+ ],
4464
+ stateMutability: "view",
4465
+ },
4466
+ {
4467
+ type: "function",
4468
+ name: "priceFeed",
4469
+ inputs: [],
4470
+ outputs: [
4471
+ {
4472
+ name: "",
4473
+ type: "address",
4474
+ internalType: "address",
4475
+ },
4476
+ ],
4477
+ stateMutability: "view",
4478
+ },
4479
+ {
4480
+ type: "function",
4481
+ name: "priceFeedType",
4482
+ inputs: [],
4483
+ outputs: [
4484
+ {
4485
+ name: "",
4486
+ type: "uint8",
4487
+ internalType: "enum PriceFeedType",
4488
+ },
4489
+ ],
4490
+ stateMutability: "view",
4491
+ },
4492
+ {
4493
+ type: "function",
4494
+ name: "skipCheck",
4495
+ inputs: [],
4496
+ outputs: [
4497
+ {
4498
+ name: "",
4499
+ type: "bool",
4500
+ internalType: "bool",
4501
+ },
4502
+ ],
4503
+ stateMutability: "view",
4504
+ },
4505
+ {
4506
+ type: "function",
4507
+ name: "skipPriceCheck",
4508
+ inputs: [],
4509
+ outputs: [
4510
+ {
4511
+ name: "",
4512
+ type: "bool",
4513
+ internalType: "bool",
4514
+ },
4515
+ ],
4516
+ stateMutability: "view",
4517
+ },
4518
+ {
4519
+ type: "function",
4520
+ name: "stalenessPeriod",
4521
+ inputs: [],
4522
+ outputs: [
4523
+ {
4524
+ name: "",
4525
+ type: "uint32",
4526
+ internalType: "uint32",
4527
+ },
4528
+ ],
4529
+ stateMutability: "view",
4530
+ },
4531
+ {
4532
+ type: "function",
4533
+ name: "sy",
4534
+ inputs: [],
4535
+ outputs: [
4536
+ {
4537
+ name: "",
4538
+ type: "address",
4539
+ internalType: "address",
4540
+ },
4541
+ ],
4542
+ stateMutability: "view",
4543
+ },
4544
+ {
4545
+ type: "function",
4546
+ name: "twapWindow",
4547
+ inputs: [],
4548
+ outputs: [
4549
+ {
4550
+ name: "",
4551
+ type: "uint32",
4552
+ internalType: "uint32",
4553
+ },
4554
+ ],
4555
+ stateMutability: "view",
4556
+ },
4557
+ {
4558
+ type: "function",
4559
+ name: "version",
4560
+ inputs: [],
4561
+ outputs: [
4562
+ {
4563
+ name: "",
4564
+ type: "uint256",
4565
+ internalType: "uint256",
4566
+ },
4567
+ ],
4568
+ stateMutability: "view",
4569
+ },
4570
+ {
4571
+ type: "function",
4572
+ name: "yt",
4573
+ inputs: [],
4574
+ outputs: [
4575
+ {
4576
+ name: "",
4577
+ type: "address",
4578
+ internalType: "address",
4579
+ },
4580
+ ],
4581
+ stateMutability: "view",
4582
+ },
4583
+ {
4584
+ type: "error",
4585
+ name: "AddressIsNotContractException",
4586
+ inputs: [
4587
+ {
4588
+ name: "",
4589
+ type: "address",
4590
+ internalType: "address",
4591
+ },
4592
+ ],
4593
+ },
4594
+ {
4595
+ type: "error",
4596
+ name: "IncorrectParameterException",
4597
+ inputs: [],
4598
+ },
4599
+ {
4600
+ type: "error",
4601
+ name: "IncorrectPriceException",
4602
+ inputs: [],
4603
+ },
4604
+ {
4605
+ type: "error",
4606
+ name: "IncorrectPriceFeedException",
4607
+ inputs: [],
4608
+ },
4609
+ {
4610
+ type: "error",
4611
+ name: "StalePriceException",
4612
+ inputs: [],
4613
+ },
4614
+ ] as const;