@gearbox-protocol/sdk 13.0.0-next.9 → 13.0.1

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 (744) hide show
  1. package/dist/cjs/abi/310/iLinearInterestRateModelV310.js +92 -0
  2. package/dist/cjs/abi/errors.js +0 -145
  3. package/dist/cjs/abi/iPriceFeed.js +84 -0
  4. package/dist/cjs/{sdk/sdk-gov-legacy/oracles → common-utils}/index.js +4 -4
  5. package/dist/cjs/common-utils/package.json +1 -0
  6. package/dist/cjs/common-utils/utils/assetsMath.js +216 -0
  7. package/dist/cjs/common-utils/utils/bigintMath.js +65 -0
  8. package/dist/cjs/common-utils/utils/creditAccount/calcHealthFactor.js +76 -0
  9. package/dist/cjs/common-utils/utils/creditAccount/calcOverallAPY.js +81 -0
  10. package/dist/cjs/{sdk/accountMigration/MigrateCreditAccountsServiceV310.js → common-utils/utils/creditAccount/calcQuotaBorrowRate.js} +19 -7
  11. package/dist/cjs/{sdk/sdk-legacy/utils/math.js → common-utils/utils/creditAccount/calcRelativeBaseBorrowRate.js} +11 -10
  12. package/dist/cjs/common-utils/utils/creditAccount/debt.js +64 -0
  13. package/dist/cjs/common-utils/utils/creditAccount/getTimeToLiquidation.js +38 -0
  14. package/dist/cjs/common-utils/utils/creditAccount/index.js +40 -0
  15. package/dist/cjs/common-utils/utils/creditAccount/liquidationPrice.js +47 -0
  16. package/dist/cjs/common-utils/utils/creditAccount/quotaUtils.js +149 -0
  17. package/dist/cjs/common-utils/utils/creditAccount/sort.js +95 -0
  18. package/dist/cjs/common-utils/utils/endpoints.js +65 -0
  19. package/dist/cjs/{sdk/sdk-legacy → common-utils}/utils/index.js +10 -6
  20. package/dist/cjs/common-utils/utils/priceMath.js +66 -0
  21. package/dist/cjs/dev/AccountOpener.js +3 -3
  22. package/dist/cjs/dev/ltUtils.js +4 -91
  23. package/dist/cjs/dev/migrateFaucet.js +25 -53
  24. package/dist/cjs/dev/providers.js +12 -0
  25. package/dist/cjs/history/assembleOperations.js +103 -0
  26. package/dist/cjs/history/classifyMulticallOperations.js +157 -0
  27. package/dist/cjs/history/errors.js +91 -0
  28. package/dist/cjs/history/extractProtocolCalls.js +53 -0
  29. package/dist/cjs/history/extractTransfers.js +168 -0
  30. package/dist/cjs/history/findFacadeCalls.js +84 -0
  31. package/dist/cjs/history/index.js +39 -0
  32. package/dist/cjs/history/inner-operations.js +16 -0
  33. package/dist/cjs/history/internal-types.js +16 -0
  34. package/dist/cjs/history/mapOperations.js +79 -0
  35. package/dist/cjs/history/package.json +1 -0
  36. package/dist/cjs/history/parseCreditAccountTransaction.js +86 -0
  37. package/dist/cjs/history/populateContractsRegister.js +68 -0
  38. package/dist/cjs/history/toLegacyOperation.js +182 -0
  39. package/dist/cjs/{plugins/adapters/contracts/YearnV2AdapterContract.js → history/trace-utils.js} +36 -21
  40. package/dist/cjs/permissionless/bindings/cross-chain-multisig.js +3 -3
  41. package/dist/cjs/permissionless/bindings/instance-manager.js +3 -3
  42. package/dist/cjs/permissionless/utils/price-update/get-prices.js +2 -6
  43. package/dist/cjs/plugins/adapters/AdaptersPlugin.js +13 -106
  44. package/dist/cjs/plugins/adapters/abi/index.js +2 -0
  45. package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +5168 -0
  46. package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +123 -3
  47. package/dist/cjs/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
  48. package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +65 -30
  49. package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +27 -11
  50. package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +40 -21
  51. package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +100 -25
  52. package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +74 -25
  53. package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +79 -31
  54. package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +79 -31
  55. package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +84 -31
  56. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +80 -33
  57. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +62 -26
  58. package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +92 -34
  59. package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +46 -14
  60. package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +62 -27
  61. package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +46 -14
  62. package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +34 -14
  63. package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +56 -23
  64. package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +31 -14
  65. package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +28 -12
  66. package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +35 -16
  67. package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +47 -17
  68. package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +29 -11
  69. package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +45 -14
  70. package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +42 -17
  71. package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +79 -42
  72. package/dist/cjs/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +34 -14
  73. package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +27 -11
  74. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +44 -17
  75. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +49 -21
  76. package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +92 -55
  77. package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +71 -37
  78. package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +55 -25
  79. package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +44 -21
  80. package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +42 -23
  81. package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +53 -27
  82. package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +42 -17
  83. package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +46 -25
  84. package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +37 -11
  85. package/dist/cjs/plugins/adapters/contracts/index.js +7 -15
  86. package/dist/cjs/plugins/adapters/createAdapter.js +125 -0
  87. package/dist/cjs/plugins/adapters/index.js +6 -0
  88. package/dist/cjs/plugins/adapters/legacyAdapterOperations.js +16 -0
  89. package/dist/cjs/plugins/adapters/transferHelpers.js +127 -0
  90. package/dist/cjs/plugins/bots/PartialLiquidationBotV310Contract.js +4 -4
  91. package/dist/cjs/plugins/bots/abi/index.js +0 -2
  92. package/dist/cjs/plugins/degen-distributors/DegenDistributorsPlugin.js +2 -1
  93. package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +1 -1
  94. package/dist/cjs/plugins/zappers/ZappersPlugin.js +144 -0
  95. package/dist/cjs/{sdk/market/ZapperRegister.js → plugins/zappers/extraZappers.js} +6 -110
  96. package/dist/cjs/{sdk/sdk-gov-legacy/contracts → plugins/zappers}/index.js +8 -6
  97. package/dist/cjs/plugins/zappers/package.json +1 -0
  98. package/dist/cjs/sdk/GearboxSDK.js +6 -14
  99. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +19 -86
  100. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +11 -12
  101. package/dist/cjs/sdk/accounts/createCreditAccountService.js +0 -4
  102. package/dist/cjs/sdk/accounts/index.js +0 -2
  103. package/dist/cjs/sdk/base/BaseContract.js +60 -6
  104. package/dist/cjs/sdk/base/ChainContractsRegister.js +33 -10
  105. package/dist/cjs/sdk/base/Construct.js +29 -15
  106. package/dist/cjs/sdk/base/PlaceholderContract.js +2 -2
  107. package/dist/cjs/sdk/base/SDKConstruct.js +1 -1
  108. package/dist/cjs/sdk/base/TokensMeta.js +32 -112
  109. package/dist/cjs/{abi/iStateSerializer.js → sdk/base/errors.js} +12 -13
  110. package/dist/cjs/sdk/base/index.js +2 -2
  111. package/dist/cjs/sdk/chain/chains.js +13 -31
  112. package/dist/cjs/sdk/constants/addresses.js +2 -88
  113. package/dist/cjs/sdk/constants/index.js +2 -0
  114. package/dist/cjs/sdk/constants/networks.js +0 -32
  115. package/dist/cjs/sdk/{base/token-types.js → constants/phantom-tokens.js} +3 -9
  116. package/dist/cjs/sdk/constants/versions.js +0 -8
  117. package/dist/cjs/sdk/core/{address-provider/AbstractAddressProviderContract.js → AbstractAddressProviderContract.js} +3 -3
  118. package/dist/cjs/sdk/core/{address-provider/AddressProviderV310Contract.js → AddressProviderV310Contract.js} +1 -1
  119. package/dist/cjs/sdk/core/{address-provider/createAddressProvider.js → createAddressProvider.js} +4 -7
  120. package/dist/cjs/sdk/core/index.js +6 -6
  121. package/dist/cjs/sdk/{gauges/utils.js → core/types.js} +2 -2
  122. package/dist/cjs/sdk/index.js +0 -10
  123. package/dist/cjs/sdk/market/MarketConfiguratorContract.js +3 -2
  124. package/dist/cjs/sdk/market/MarketRegister.js +2 -3
  125. package/dist/cjs/sdk/market/MarketSuite.js +1 -4
  126. package/dist/cjs/sdk/market/adapters/PlaceholderAdapterContracts.js +25 -4
  127. package/dist/cjs/sdk/market/adapters/{factory.js → createAdapter.js} +3 -3
  128. package/dist/cjs/sdk/market/adapters/index.js +2 -2
  129. package/dist/cjs/sdk/market/credit/CreditFacadeV310BaseContract.js +108 -0
  130. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -40
  131. package/dist/cjs/sdk/market/credit/CreditManagerV310Contract.js +1 -4
  132. package/dist/cjs/sdk/market/credit/createCreditConfigurator.js +1 -4
  133. package/dist/cjs/sdk/market/credit/createCreditFacade.js +1 -4
  134. package/dist/cjs/sdk/market/credit/createCreditManager.js +1 -4
  135. package/dist/cjs/sdk/market/credit/index.js +2 -6
  136. package/dist/cjs/sdk/market/index.js +1 -3
  137. package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +9 -57
  138. package/dist/cjs/sdk/market/oracle/createPriceOracle.js +7 -38
  139. package/dist/cjs/sdk/market/oracle/index.js +0 -2
  140. package/dist/cjs/sdk/market/pool/GaugeContract.js +3 -3
  141. package/dist/cjs/sdk/market/pool/LinearInterestRateModelContract.js +2 -2
  142. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +1 -1
  143. package/dist/cjs/sdk/market/pool/createPool.js +0 -4
  144. package/dist/cjs/sdk/market/pool/createPoolQuotaKeeper.js +0 -4
  145. package/dist/cjs/sdk/market/pool/index.js +0 -4
  146. package/dist/cjs/sdk/market/pricefeeds/AbstractLPPriceFeed.js +14 -53
  147. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +5 -3
  148. package/dist/cjs/sdk/market/pricefeeds/PythPriceFeed.js +20 -0
  149. package/dist/cjs/sdk/market/pricefeeds/RedstonePriceFeed.js +19 -46
  150. package/dist/cjs/sdk/market/pricefeeds/updates/PriceUpdatesCache.js +0 -17
  151. package/dist/cjs/sdk/market/pricefeeds/updates/PythUpdater.js +7 -7
  152. package/dist/cjs/sdk/market/pricefeeds/updates/RedstoneUpdater.js +6 -6
  153. package/dist/cjs/sdk/market/pricefeeds/updates/fetchPythPayloads.js +7 -7
  154. package/dist/cjs/sdk/market/pricefeeds/updates/fetchRedstonePayloads.js +10 -10
  155. package/dist/cjs/sdk/plugins/index.js +1 -3
  156. package/dist/cjs/sdk/pools/AbstractPoolService.js +137 -0
  157. package/dist/cjs/sdk/{sdk-legacy/gearboxRewards/merklAPI.js → pools/PoolServiceV310.js} +7 -7
  158. package/dist/cjs/sdk/{accountMigration/MigrateCreditAccountsServiceV300.js → pools/createPoolService.js} +12 -7
  159. package/dist/cjs/sdk/pools/index.js +4 -2
  160. package/dist/cjs/sdk/router/AbstractRouterContract.js +0 -4
  161. package/dist/cjs/sdk/router/RouterV310Contract.js +3 -32
  162. package/dist/cjs/sdk/router/createRouter.js +0 -4
  163. package/dist/cjs/sdk/router/helpers.js +0 -5
  164. package/dist/cjs/sdk/router/index.js +0 -2
  165. package/dist/cjs/sdk/utils/abi-decode.js +43 -2
  166. package/dist/cjs/sdk/utils/formatter.js +55 -2
  167. package/dist/esm/abi/310/iLinearInterestRateModelV310.js +68 -0
  168. package/dist/esm/abi/errors.js +0 -143
  169. package/dist/esm/abi/iPriceFeed.js +60 -0
  170. package/dist/esm/common-utils/index.js +1 -0
  171. package/dist/esm/common-utils/package.json +1 -0
  172. package/dist/esm/{sdk/sdk-legacy/core/assets.js → common-utils/utils/assetsMath.js} +80 -14
  173. package/dist/esm/common-utils/utils/bigintMath.js +41 -0
  174. package/dist/esm/common-utils/utils/creditAccount/calcHealthFactor.js +55 -0
  175. package/dist/esm/common-utils/utils/creditAccount/calcOverallAPY.js +60 -0
  176. package/dist/esm/common-utils/utils/creditAccount/calcQuotaBorrowRate.js +18 -0
  177. package/dist/esm/common-utils/utils/creditAccount/calcRelativeBaseBorrowRate.js +10 -0
  178. package/dist/esm/common-utils/utils/creditAccount/debt.js +43 -0
  179. package/dist/esm/common-utils/utils/creditAccount/getTimeToLiquidation.js +18 -0
  180. package/dist/esm/common-utils/utils/creditAccount/index.js +10 -0
  181. package/dist/esm/common-utils/utils/creditAccount/liquidationPrice.js +23 -0
  182. package/dist/esm/common-utils/utils/creditAccount/quotaUtils.js +125 -0
  183. package/dist/esm/common-utils/utils/creditAccount/sort.js +67 -0
  184. package/dist/esm/common-utils/utils/endpoints.js +41 -0
  185. package/dist/esm/common-utils/utils/index.js +5 -0
  186. package/dist/esm/common-utils/utils/priceMath.js +42 -0
  187. package/dist/esm/dev/AccountOpener.js +3 -3
  188. package/dist/esm/dev/ltUtils.js +7 -100
  189. package/dist/esm/dev/migrateFaucet.js +24 -51
  190. package/dist/esm/dev/providers.js +12 -0
  191. package/dist/esm/history/assembleOperations.js +79 -0
  192. package/dist/esm/history/classifyMulticallOperations.js +137 -0
  193. package/dist/esm/history/errors.js +62 -0
  194. package/dist/esm/history/extractProtocolCalls.js +32 -0
  195. package/dist/esm/history/extractTransfers.js +148 -0
  196. package/dist/esm/history/findFacadeCalls.js +63 -0
  197. package/dist/esm/history/index.js +9 -0
  198. package/dist/esm/history/mapOperations.js +55 -0
  199. package/dist/esm/history/package.json +1 -0
  200. package/dist/esm/history/parseCreditAccountTransaction.js +62 -0
  201. package/dist/esm/history/populateContractsRegister.js +52 -0
  202. package/dist/esm/history/toLegacyOperation.js +157 -0
  203. package/dist/esm/history/trace-utils.js +36 -0
  204. package/dist/esm/permissionless/bindings/cross-chain-multisig.js +3 -3
  205. package/dist/esm/permissionless/bindings/instance-manager.js +3 -3
  206. package/dist/esm/permissionless/utils/price-update/get-prices.js +2 -6
  207. package/dist/esm/plugins/adapters/AdaptersPlugin.js +14 -148
  208. package/dist/esm/plugins/adapters/abi/index.js +1 -0
  209. package/dist/esm/plugins/adapters/abi/targetContractAbi.js +5113 -0
  210. package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +133 -4
  211. package/dist/esm/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
  212. package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +64 -30
  213. package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +27 -11
  214. package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +40 -21
  215. package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +109 -26
  216. package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +76 -25
  217. package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +81 -31
  218. package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +81 -31
  219. package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +86 -31
  220. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +82 -33
  221. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +64 -26
  222. package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +97 -34
  223. package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +48 -14
  224. package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +64 -27
  225. package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +48 -14
  226. package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +36 -14
  227. package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +58 -23
  228. package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +37 -15
  229. package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +33 -12
  230. package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +40 -16
  231. package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +49 -17
  232. package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +31 -11
  233. package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +47 -14
  234. package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +44 -17
  235. package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +82 -43
  236. package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +36 -14
  237. package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +29 -11
  238. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +46 -17
  239. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +55 -22
  240. package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +91 -54
  241. package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +73 -37
  242. package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +54 -25
  243. package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +45 -22
  244. package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +43 -24
  245. package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +57 -28
  246. package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +48 -18
  247. package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +46 -25
  248. package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +39 -11
  249. package/dist/esm/plugins/adapters/contracts/index.js +3 -7
  250. package/dist/esm/plugins/adapters/createAdapter.js +140 -0
  251. package/dist/esm/plugins/adapters/index.js +3 -0
  252. package/dist/esm/plugins/adapters/transferHelpers.js +95 -0
  253. package/dist/esm/plugins/bots/PartialLiquidationBotV310Contract.js +5 -8
  254. package/dist/esm/plugins/bots/abi/index.js +0 -1
  255. package/dist/esm/plugins/degen-distributors/DegenDistributorsPlugin.js +2 -1
  256. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +1 -2
  257. package/dist/esm/plugins/zappers/ZappersPlugin.js +126 -0
  258. package/dist/esm/{sdk/market/ZapperRegister.js → plugins/zappers/extraZappers.js} +2 -109
  259. package/dist/esm/plugins/zappers/index.js +3 -0
  260. package/dist/esm/plugins/zappers/package.json +1 -0
  261. package/dist/esm/sdk/GearboxSDK.js +7 -23
  262. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +23 -91
  263. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +11 -12
  264. package/dist/esm/sdk/accounts/createCreditAccountService.js +1 -5
  265. package/dist/esm/sdk/accounts/index.js +0 -1
  266. package/dist/esm/sdk/base/BaseContract.js +62 -6
  267. package/dist/esm/sdk/base/ChainContractsRegister.js +33 -10
  268. package/dist/esm/sdk/base/Construct.js +29 -15
  269. package/dist/esm/sdk/base/PlaceholderContract.js +2 -2
  270. package/dist/esm/sdk/base/SDKConstruct.js +1 -1
  271. package/dist/esm/sdk/base/TokensMeta.js +36 -117
  272. package/dist/esm/sdk/base/errors.js +11 -0
  273. package/dist/esm/sdk/base/index.js +1 -1
  274. package/dist/esm/sdk/chain/chains.js +14 -31
  275. package/dist/esm/sdk/constants/addresses.js +1 -83
  276. package/dist/esm/sdk/constants/index.js +1 -0
  277. package/dist/esm/sdk/constants/networks.js +0 -31
  278. package/dist/esm/sdk/{base/token-types.js → constants/phantom-tokens.js} +0 -4
  279. package/dist/esm/sdk/constants/versions.js +0 -6
  280. package/dist/esm/sdk/core/{address-provider/AbstractAddressProviderContract.js → AbstractAddressProviderContract.js} +3 -3
  281. package/dist/esm/sdk/core/{address-provider/AddressProviderV310Contract.js → AddressProviderV310Contract.js} +1 -1
  282. package/dist/esm/sdk/core/{address-provider/createAddressProvider.js → createAddressProvider.js} +4 -8
  283. package/dist/esm/sdk/core/index.js +3 -3
  284. package/dist/esm/sdk/index.js +0 -5
  285. package/dist/esm/sdk/market/MarketConfiguratorContract.js +3 -2
  286. package/dist/esm/sdk/market/MarketRegister.js +2 -3
  287. package/dist/esm/sdk/market/MarketSuite.js +2 -5
  288. package/dist/esm/sdk/market/adapters/PlaceholderAdapterContracts.js +29 -5
  289. package/dist/esm/sdk/market/adapters/index.js +1 -1
  290. package/dist/esm/sdk/market/credit/CreditFacadeV310BaseContract.js +86 -0
  291. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +3 -43
  292. package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -4
  293. package/dist/esm/sdk/market/credit/createCreditConfigurator.js +2 -5
  294. package/dist/esm/sdk/market/credit/createCreditFacade.js +2 -5
  295. package/dist/esm/sdk/market/credit/createCreditManager.js +2 -5
  296. package/dist/esm/sdk/market/credit/index.js +1 -3
  297. package/dist/esm/sdk/market/index.js +0 -1
  298. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +10 -59
  299. package/dist/esm/sdk/market/oracle/createPriceOracle.js +7 -38
  300. package/dist/esm/sdk/market/oracle/index.js +0 -1
  301. package/dist/esm/sdk/market/pool/GaugeContract.js +3 -3
  302. package/dist/esm/sdk/market/pool/LinearInterestRateModelContract.js +2 -2
  303. package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
  304. package/dist/esm/sdk/market/pool/createPool.js +1 -5
  305. package/dist/esm/sdk/market/pool/createPoolQuotaKeeper.js +1 -5
  306. package/dist/esm/sdk/market/pool/index.js +0 -2
  307. package/dist/esm/sdk/market/pricefeeds/AbstractLPPriceFeed.js +14 -53
  308. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +5 -3
  309. package/dist/esm/sdk/market/pricefeeds/PythPriceFeed.js +21 -1
  310. package/dist/esm/sdk/market/pricefeeds/RedstonePriceFeed.js +20 -47
  311. package/dist/esm/sdk/market/pricefeeds/updates/PriceUpdatesCache.js +0 -17
  312. package/dist/esm/sdk/market/pricefeeds/updates/PythUpdater.js +7 -7
  313. package/dist/esm/sdk/market/pricefeeds/updates/RedstoneUpdater.js +6 -6
  314. package/dist/esm/sdk/market/pricefeeds/updates/fetchPythPayloads.js +7 -7
  315. package/dist/esm/sdk/market/pricefeeds/updates/fetchRedstonePayloads.js +10 -10
  316. package/dist/esm/sdk/plugins/index.js +0 -1
  317. package/dist/esm/sdk/pools/AbstractPoolService.js +113 -0
  318. package/dist/esm/sdk/pools/PoolServiceV310.js +6 -0
  319. package/dist/esm/sdk/pools/createPoolService.js +11 -0
  320. package/dist/esm/sdk/pools/index.js +2 -1
  321. package/dist/esm/sdk/router/AbstractRouterContract.js +0 -4
  322. package/dist/esm/sdk/router/RouterV310Contract.js +3 -32
  323. package/dist/esm/sdk/router/createRouter.js +1 -5
  324. package/dist/esm/sdk/router/helpers.js +0 -4
  325. package/dist/esm/sdk/router/index.js +0 -1
  326. package/dist/esm/sdk/utils/abi-decode.js +43 -2
  327. package/dist/esm/sdk/utils/formatter.js +37 -1
  328. package/dist/types/abi/310/iLinearInterestRateModelV310.d.ts +111 -0
  329. package/dist/types/abi/errors.d.ts +186 -996
  330. package/dist/types/abi/iPriceFeed.d.ts +87 -0
  331. package/dist/types/common-utils/index.d.ts +1 -0
  332. package/dist/types/common-utils/utils/assetsMath.d.ts +114 -0
  333. package/dist/types/common-utils/utils/bigintMath.d.ts +43 -0
  334. package/dist/types/common-utils/utils/creditAccount/calcHealthFactor.d.ts +25 -0
  335. package/dist/types/common-utils/utils/creditAccount/calcOverallAPY.d.ts +37 -0
  336. package/dist/types/common-utils/utils/creditAccount/calcQuotaBorrowRate.d.ts +18 -0
  337. package/dist/types/common-utils/utils/creditAccount/calcRelativeBaseBorrowRate.d.ts +15 -0
  338. package/dist/types/common-utils/utils/creditAccount/debt.d.ts +35 -0
  339. package/dist/types/common-utils/utils/creditAccount/getTimeToLiquidation.d.ts +16 -0
  340. package/dist/types/common-utils/utils/creditAccount/index.d.ts +10 -0
  341. package/dist/types/common-utils/utils/creditAccount/liquidationPrice.d.ts +25 -0
  342. package/dist/types/common-utils/utils/creditAccount/quotaUtils.d.ts +81 -0
  343. package/dist/types/common-utils/utils/creditAccount/sort.d.ts +55 -0
  344. package/dist/types/common-utils/utils/creditAccount/types.d.ts +18 -0
  345. package/dist/types/common-utils/utils/endpoints.d.ts +27 -0
  346. package/dist/types/common-utils/utils/index.d.ts +5 -0
  347. package/dist/types/common-utils/utils/priceMath.d.ts +47 -0
  348. package/dist/types/dev/migrateFaucet.d.ts +4 -5
  349. package/dist/types/dev/providers.d.ts +5 -5
  350. package/dist/types/history/assembleOperations.d.ts +22 -0
  351. package/dist/types/history/classifyMulticallOperations.d.ts +35 -0
  352. package/dist/types/history/errors.d.ts +30 -0
  353. package/dist/types/history/extractProtocolCalls.d.ts +8 -0
  354. package/dist/types/history/extractTransfers.d.ts +22 -0
  355. package/dist/types/history/findFacadeCalls.d.ts +9 -0
  356. package/dist/types/history/index.d.ts +6 -0
  357. package/dist/types/history/inner-operations.d.ts +57 -0
  358. package/dist/types/history/internal-types.d.ts +47 -0
  359. package/dist/types/history/mapOperations.d.ts +27 -0
  360. package/dist/types/history/parseCreditAccountTransaction.d.ts +27 -0
  361. package/dist/types/history/populateContractsRegister.d.ts +19 -0
  362. package/dist/types/history/toLegacyOperation.d.ts +18 -0
  363. package/dist/types/history/trace-utils.d.ts +12 -0
  364. package/dist/types/history/types.d.ts +71 -0
  365. package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +3 -3
  366. package/dist/types/permissionless/bindings/instance-manager.d.ts +3 -3
  367. package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
  368. package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +8262 -0
  369. package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +50 -8
  370. package/dist/types/plugins/adapters/contracts/AccountMigratorAdapterContract.d.ts +238 -4
  371. package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +135 -8
  372. package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +45 -4
  373. package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +225 -7
  374. package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +418 -8
  375. package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +227 -10
  376. package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +1257 -10
  377. package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +1257 -10
  378. package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +1257 -10
  379. package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +575 -11
  380. package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +1244 -10
  381. package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +1227 -11
  382. package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +69 -6
  383. package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +492 -6
  384. package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +67 -6
  385. package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +132 -6
  386. package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +144 -8
  387. package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +163 -5
  388. package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +248 -6
  389. package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +367 -6
  390. package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +104 -7
  391. package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +46 -5
  392. package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +488 -6
  393. package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +20 -7
  394. package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +493 -7
  395. package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +18 -6
  396. package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +56 -5
  397. package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +52 -7
  398. package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +199 -7
  399. package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +1040 -17
  400. package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +82 -8
  401. package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +148 -10
  402. package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +758 -5
  403. package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +183 -4
  404. package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +110 -5
  405. package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +84 -7
  406. package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +122 -4
  407. package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +275 -5
  408. package/dist/types/plugins/adapters/contracts/index.d.ts +3 -7
  409. package/dist/types/plugins/adapters/createAdapter.d.ts +5 -0
  410. package/dist/types/plugins/adapters/index.d.ts +3 -0
  411. package/dist/types/plugins/adapters/legacyAdapterOperations.d.ts +200 -0
  412. package/dist/types/plugins/adapters/transferHelpers.d.ts +60 -0
  413. package/dist/types/plugins/adapters/types.d.ts +64 -2
  414. package/dist/types/plugins/bots/abi/index.d.ts +0 -1
  415. package/dist/types/plugins/zappers/ZappersPlugin.d.ts +18 -0
  416. package/dist/types/plugins/zappers/extraZappers.d.ts +6 -0
  417. package/dist/types/plugins/zappers/index.d.ts +3 -0
  418. package/dist/types/plugins/zappers/types.d.ts +12 -0
  419. package/dist/types/sdk/GearboxSDK.d.ts +0 -3
  420. package/dist/types/sdk/accounts/AbstractCreditAccountsService.d.ts +3 -13
  421. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +1 -1
  422. package/dist/types/sdk/accounts/createCreditAccountService.d.ts +1 -1
  423. package/dist/types/sdk/accounts/index.d.ts +0 -1
  424. package/dist/types/sdk/accounts/types.d.ts +9 -37
  425. package/dist/types/sdk/base/BaseContract.d.ts +17 -4
  426. package/dist/types/sdk/base/ChainContractsRegister.d.ts +11 -3
  427. package/dist/types/sdk/base/Construct.d.ts +13 -13
  428. package/dist/types/sdk/base/PlaceholderContract.d.ts +2 -2
  429. package/dist/types/sdk/base/TokensMeta.d.ts +18 -11
  430. package/dist/types/sdk/base/errors.d.ts +3 -0
  431. package/dist/types/sdk/base/index.d.ts +1 -1
  432. package/dist/types/sdk/base/types.d.ts +37 -0
  433. package/dist/types/sdk/chain/chains.d.ts +1 -1
  434. package/dist/types/sdk/constants/addresses.d.ts +0 -19
  435. package/dist/types/sdk/constants/index.d.ts +1 -0
  436. package/dist/types/sdk/constants/networks.d.ts +0 -5
  437. package/dist/types/sdk/constants/phantom-tokens.d.ts +2 -0
  438. package/dist/types/sdk/constants/versions.d.ts +0 -2
  439. package/dist/types/sdk/core/{address-provider/AbstractAddressProviderContract.d.ts → AbstractAddressProviderContract.d.ts} +4 -4
  440. package/dist/types/sdk/core/{address-provider/AddressProviderV310Contract.d.ts → AddressProviderV310Contract.d.ts} +1 -1
  441. package/dist/types/sdk/core/{address-provider/createAddressProvider.d.ts → createAddressProvider.d.ts} +1 -1
  442. package/dist/types/sdk/core/index.d.ts +3 -3
  443. package/dist/types/sdk/core/{address-provider/types.d.ts → types.d.ts} +3 -3
  444. package/dist/types/sdk/index.d.ts +0 -5
  445. package/dist/types/sdk/market/MarketConfiguratorContract.d.ts +1 -1
  446. package/dist/types/sdk/market/MarketRegister.d.ts +2 -3
  447. package/dist/types/sdk/market/MarketSuite.d.ts +0 -1
  448. package/dist/types/sdk/market/adapters/PlaceholderAdapterContracts.d.ts +10 -5
  449. package/dist/types/sdk/market/adapters/index.d.ts +1 -1
  450. package/dist/types/sdk/market/credit/CreditConfiguratorV310Contract.d.ts +6 -2
  451. package/dist/types/sdk/market/credit/{CreditFacadeV300Contract.d.ts → CreditFacadeV310BaseContract.d.ts} +335 -267
  452. package/dist/types/sdk/market/credit/CreditFacadeV310Contract.d.ts +6 -848
  453. package/dist/types/sdk/market/credit/index.d.ts +1 -3
  454. package/dist/types/sdk/market/credit/types.d.ts +2 -3
  455. package/dist/types/sdk/market/index.d.ts +0 -1
  456. package/dist/types/sdk/market/loss-policy/createLossPolicy.d.ts +0 -12
  457. package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -21
  458. package/dist/types/sdk/market/oracle/PriceOracleV310Contract.d.ts +2 -2
  459. package/dist/types/sdk/market/oracle/createPriceOracle.d.ts +1 -15
  460. package/dist/types/sdk/market/oracle/index.d.ts +0 -1
  461. package/dist/types/sdk/market/oracle/types.d.ts +6 -18
  462. package/dist/types/sdk/market/pool/GaugeContract.d.ts +116 -76
  463. package/dist/types/sdk/market/pool/LinearInterestRateModelContract.d.ts +20 -0
  464. package/dist/types/sdk/market/pool/index.d.ts +0 -2
  465. package/dist/types/sdk/market/pool/types.d.ts +2 -4
  466. package/dist/types/sdk/market/pricefeeds/AbstractLPPriceFeed.d.ts +0 -3
  467. package/dist/types/sdk/market/pricefeeds/PythPriceFeed.d.ts +21 -1
  468. package/dist/types/sdk/market/pricefeeds/types.d.ts +0 -9
  469. package/dist/types/sdk/market/pricefeeds/updates/PriceUpdatesCache.d.ts +1 -8
  470. package/dist/types/sdk/market/pricefeeds/updates/PythUpdater.d.ts +1 -1
  471. package/dist/types/sdk/market/pricefeeds/updates/RedstoneUpdater.d.ts +1 -1
  472. package/dist/types/sdk/market/pricefeeds/updates/fetchPythPayloads.d.ts +2 -2
  473. package/dist/types/sdk/market/pricefeeds/updates/fetchRedstonePayloads.d.ts +2 -2
  474. package/dist/types/sdk/options.d.ts +2 -2
  475. package/dist/types/sdk/plugins/index.d.ts +0 -1
  476. package/dist/types/sdk/pools/AbstractPoolService.d.ts +9 -0
  477. package/dist/types/sdk/pools/PoolServiceV310.d.ts +4 -0
  478. package/dist/types/sdk/pools/createPoolService.d.ts +3 -0
  479. package/dist/types/sdk/pools/index.d.ts +2 -1
  480. package/dist/types/sdk/pools/types.d.ts +62 -64
  481. package/dist/types/sdk/router/AbstractRouterContract.d.ts +2 -7
  482. package/dist/types/sdk/router/RouterV310Contract.d.ts +1 -16
  483. package/dist/types/sdk/router/helpers.d.ts +2 -2
  484. package/dist/types/sdk/router/index.d.ts +0 -1
  485. package/dist/types/sdk/router/types.d.ts +2 -55
  486. package/dist/types/sdk/types/state-human.d.ts +1 -4
  487. package/dist/types/sdk/utils/abi-decode.d.ts +14 -1
  488. package/dist/types/sdk/utils/formatter.d.ts +9 -0
  489. package/package.json +26 -12
  490. package/dist/cjs/abi/iDegenDistributorV300.js +0 -100
  491. package/dist/cjs/abi/routerV300.js +0 -406
  492. package/dist/cjs/abi/v300.js +0 -4189
  493. package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -51
  494. package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -58
  495. package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -49
  496. package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -56
  497. package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -46
  498. package/dist/cjs/plugins/adapters/contracts/types.js +0 -77
  499. package/dist/cjs/plugins/bots/abi/iPartialLiquidationBotV300.js +0 -164
  500. package/dist/cjs/sdk/accountMigration/AbstractMigrateCreditAccountsService.js +0 -192
  501. package/dist/cjs/sdk/accountMigration/createMigrateCreditAccountsService.js +0 -41
  502. package/dist/cjs/sdk/accountMigration/index.js +0 -26
  503. package/dist/cjs/sdk/accounts/CreditAccountsServiceV300.js +0 -454
  504. package/dist/cjs/sdk/core/BotListV3Contract.js +0 -101
  505. package/dist/cjs/sdk/core/GearStakingV3Contract.js +0 -83
  506. package/dist/cjs/sdk/core/address-provider/AddressProviderV300Contract.js +0 -116
  507. package/dist/cjs/sdk/core/address-provider/index.js +0 -28
  508. package/dist/cjs/sdk/gauges/GaugeStakingService.js +0 -118
  509. package/dist/cjs/sdk/gauges/index.js +0 -24
  510. package/dist/cjs/sdk/market/credit/CreditConfiguratorV300Contract.js +0 -139
  511. package/dist/cjs/sdk/market/credit/CreditFacadeV300Contract.js +0 -160
  512. package/dist/cjs/sdk/market/credit/CreditManagerV300Contract.js +0 -114
  513. package/dist/cjs/sdk/market/oracle/PriceOracleV300Contract.js +0 -129
  514. package/dist/cjs/sdk/market/pool/PoolQuotaKeeperV300Contract.js +0 -85
  515. package/dist/cjs/sdk/market/pool/PoolV300Contract.js +0 -135
  516. package/dist/cjs/sdk/plugins/V300StalenessPeriodPlugin.js +0 -131
  517. package/dist/cjs/sdk/poolMigration/index.js +0 -84
  518. package/dist/cjs/sdk/pools/PoolService.js +0 -260
  519. package/dist/cjs/sdk/router/PathOptionFactory.js +0 -105
  520. package/dist/cjs/sdk/router/RouterV300Contract.js +0 -390
  521. package/dist/cjs/sdk/sdk-gov-legacy/contracts/adapters.js +0 -67
  522. package/dist/cjs/sdk/sdk-gov-legacy/contracts/contracts.js +0 -2576
  523. package/dist/cjs/sdk/sdk-gov-legacy/contracts/protocols.js +0 -58
  524. package/dist/cjs/sdk/sdk-gov-legacy/index.js +0 -26
  525. package/dist/cjs/sdk/sdk-gov-legacy/oracles/PriceFeedType.js +0 -52
  526. package/dist/cjs/sdk/sdk-gov-legacy/tokens/aave.js +0 -16
  527. package/dist/cjs/sdk/sdk-gov-legacy/tokens/aura.js +0 -239
  528. package/dist/cjs/sdk/sdk-gov-legacy/tokens/balancer.js +0 -339
  529. package/dist/cjs/sdk/sdk-gov-legacy/tokens/compound.js +0 -16
  530. package/dist/cjs/sdk/sdk-gov-legacy/tokens/convex.js +0 -450
  531. package/dist/cjs/sdk/sdk-gov-legacy/tokens/curveLP.js +0 -394
  532. package/dist/cjs/sdk/sdk-gov-legacy/tokens/erc4626.js +0 -16
  533. package/dist/cjs/sdk/sdk-gov-legacy/tokens/gear.js +0 -16
  534. package/dist/cjs/sdk/sdk-gov-legacy/tokens/index.js +0 -52
  535. package/dist/cjs/sdk/sdk-gov-legacy/tokens/normal.js +0 -562
  536. package/dist/cjs/sdk/sdk-gov-legacy/tokens/stakingRewards.js +0 -45
  537. package/dist/cjs/sdk/sdk-gov-legacy/tokens/token.js +0 -1002
  538. package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenData.js +0 -80
  539. package/dist/cjs/sdk/sdk-gov-legacy/tokens/tokenType.js +0 -50
  540. package/dist/cjs/sdk/sdk-gov-legacy/tokens/wrapped.js +0 -16
  541. package/dist/cjs/sdk/sdk-gov-legacy/tokens/yearn.js +0 -95
  542. package/dist/cjs/sdk/sdk-gov-legacy/tokens/zircuit.js +0 -16
  543. package/dist/cjs/sdk/sdk-legacy/core/assets.js +0 -150
  544. package/dist/cjs/sdk/sdk-legacy/core/creditAccount.js +0 -510
  545. package/dist/cjs/sdk/sdk-legacy/core/creditAccount.spec.js +0 -1802
  546. package/dist/cjs/sdk/sdk-legacy/core/creditManager.js +0 -263
  547. package/dist/cjs/sdk/sdk-legacy/core/creditSession.js +0 -256
  548. package/dist/cjs/sdk/sdk-legacy/core/endpoint.js +0 -137
  549. package/dist/cjs/sdk/sdk-legacy/core/eventOrTx.js +0 -87
  550. package/dist/cjs/sdk/sdk-legacy/core/pool.js +0 -334
  551. package/dist/cjs/sdk/sdk-legacy/core/transactions.js +0 -783
  552. package/dist/cjs/sdk/sdk-legacy/gearboxRewards/api.js +0 -366
  553. package/dist/cjs/sdk/sdk-legacy/gearboxRewards/apy.js +0 -176
  554. package/dist/cjs/sdk/sdk-legacy/gearboxRewards/extraAPY.js +0 -137
  555. package/dist/cjs/sdk/sdk-legacy/gearboxRewards/index.js +0 -26
  556. package/dist/cjs/sdk/sdk-legacy/index.js +0 -52
  557. package/dist/cjs/sdk/sdk-legacy/payload/creditAccount.js +0 -16
  558. package/dist/cjs/sdk/sdk-legacy/payload/creditManager.js +0 -16
  559. package/dist/cjs/sdk/sdk-legacy/payload/creditSession.js +0 -16
  560. package/dist/cjs/sdk/sdk-legacy/payload/graphPayload.js +0 -16
  561. package/dist/cjs/sdk/sdk-legacy/payload/pool.js +0 -16
  562. package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +0 -92
  563. package/dist/cjs/sdk/sdk-legacy/utils/formatter.js +0 -79
  564. package/dist/cjs/sdk/sdk-legacy/utils/price.js +0 -35
  565. package/dist/esm/abi/iDegenDistributorV300.js +0 -76
  566. package/dist/esm/abi/iStateSerializer.js +0 -12
  567. package/dist/esm/abi/routerV300.js +0 -381
  568. package/dist/esm/abi/v300.js +0 -4154
  569. package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -27
  570. package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -34
  571. package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -25
  572. package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -32
  573. package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -22
  574. package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +0 -22
  575. package/dist/esm/plugins/adapters/contracts/types.js +0 -48
  576. package/dist/esm/plugins/bots/abi/iPartialLiquidationBotV300.js +0 -140
  577. package/dist/esm/sdk/accountMigration/AbstractMigrateCreditAccountsService.js +0 -171
  578. package/dist/esm/sdk/accountMigration/MigrateCreditAccountsServiceV300.js +0 -6
  579. package/dist/esm/sdk/accountMigration/MigrateCreditAccountsServiceV310.js +0 -6
  580. package/dist/esm/sdk/accountMigration/createMigrateCreditAccountsService.js +0 -17
  581. package/dist/esm/sdk/accountMigration/index.js +0 -3
  582. package/dist/esm/sdk/accounts/CreditAccountsServiceV300.js +0 -442
  583. package/dist/esm/sdk/core/BotListV3Contract.js +0 -77
  584. package/dist/esm/sdk/core/GearStakingV3Contract.js +0 -59
  585. package/dist/esm/sdk/core/address-provider/AddressProviderV300Contract.js +0 -82
  586. package/dist/esm/sdk/core/address-provider/index.js +0 -4
  587. package/dist/esm/sdk/gauges/GaugeStakingService.js +0 -94
  588. package/dist/esm/sdk/gauges/index.js +0 -2
  589. package/dist/esm/sdk/market/credit/CreditConfiguratorV300Contract.js +0 -115
  590. package/dist/esm/sdk/market/credit/CreditFacadeV300Contract.js +0 -143
  591. package/dist/esm/sdk/market/credit/CreditManagerV300Contract.js +0 -90
  592. package/dist/esm/sdk/market/oracle/PriceOracleV300Contract.js +0 -111
  593. package/dist/esm/sdk/market/pool/PoolQuotaKeeperV300Contract.js +0 -61
  594. package/dist/esm/sdk/market/pool/PoolV300Contract.js +0 -116
  595. package/dist/esm/sdk/plugins/V300StalenessPeriodPlugin.js +0 -107
  596. package/dist/esm/sdk/poolMigration/index.js +0 -60
  597. package/dist/esm/sdk/pools/PoolService.js +0 -240
  598. package/dist/esm/sdk/router/PathOptionFactory.js +0 -92
  599. package/dist/esm/sdk/router/RouterV300Contract.js +0 -374
  600. package/dist/esm/sdk/sdk-gov-legacy/contracts/adapters.js +0 -43
  601. package/dist/esm/sdk/sdk-gov-legacy/contracts/contracts.js +0 -2538
  602. package/dist/esm/sdk/sdk-gov-legacy/contracts/index.js +0 -2
  603. package/dist/esm/sdk/sdk-gov-legacy/contracts/protocols.js +0 -34
  604. package/dist/esm/sdk/sdk-gov-legacy/index.js +0 -3
  605. package/dist/esm/sdk/sdk-gov-legacy/oracles/PriceFeedType.js +0 -28
  606. package/dist/esm/sdk/sdk-gov-legacy/oracles/index.js +0 -1
  607. package/dist/esm/sdk/sdk-gov-legacy/tokens/aura.js +0 -213
  608. package/dist/esm/sdk/sdk-gov-legacy/tokens/balancer.js +0 -314
  609. package/dist/esm/sdk/sdk-gov-legacy/tokens/convex.js +0 -424
  610. package/dist/esm/sdk/sdk-gov-legacy/tokens/curveLP.js +0 -369
  611. package/dist/esm/sdk/sdk-gov-legacy/tokens/gear.js +0 -0
  612. package/dist/esm/sdk/sdk-gov-legacy/tokens/index.js +0 -16
  613. package/dist/esm/sdk/sdk-gov-legacy/tokens/normal.js +0 -538
  614. package/dist/esm/sdk/sdk-gov-legacy/tokens/stakingRewards.js +0 -20
  615. package/dist/esm/sdk/sdk-gov-legacy/tokens/token.js +0 -975
  616. package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenData.js +0 -55
  617. package/dist/esm/sdk/sdk-gov-legacy/tokens/tokenType.js +0 -26
  618. package/dist/esm/sdk/sdk-gov-legacy/tokens/wrapped.js +0 -0
  619. package/dist/esm/sdk/sdk-gov-legacy/tokens/yearn.js +0 -71
  620. package/dist/esm/sdk/sdk-gov-legacy/tokens/zircuit.js +0 -0
  621. package/dist/esm/sdk/sdk-legacy/core/creditAccount.js +0 -495
  622. package/dist/esm/sdk/sdk-legacy/core/creditAccount.spec.js +0 -1805
  623. package/dist/esm/sdk/sdk-legacy/core/creditManager.js +0 -242
  624. package/dist/esm/sdk/sdk-legacy/core/creditSession.js +0 -228
  625. package/dist/esm/sdk/sdk-legacy/core/endpoint.js +0 -107
  626. package/dist/esm/sdk/sdk-legacy/core/eventOrTx.js +0 -63
  627. package/dist/esm/sdk/sdk-legacy/core/pool.js +0 -311
  628. package/dist/esm/sdk/sdk-legacy/core/transactions.js +0 -732
  629. package/dist/esm/sdk/sdk-legacy/gearboxRewards/api.js +0 -332
  630. package/dist/esm/sdk/sdk-legacy/gearboxRewards/apy.js +0 -158
  631. package/dist/esm/sdk/sdk-legacy/gearboxRewards/extraAPY.js +0 -102
  632. package/dist/esm/sdk/sdk-legacy/gearboxRewards/index.js +0 -3
  633. package/dist/esm/sdk/sdk-legacy/gearboxRewards/merklAPI.js +0 -6
  634. package/dist/esm/sdk/sdk-legacy/index.js +0 -16
  635. package/dist/esm/sdk/sdk-legacy/payload/creditAccount.js +0 -0
  636. package/dist/esm/sdk/sdk-legacy/payload/creditManager.js +0 -0
  637. package/dist/esm/sdk/sdk-legacy/payload/creditSession.js +0 -0
  638. package/dist/esm/sdk/sdk-legacy/payload/graphPayload.js +0 -0
  639. package/dist/esm/sdk/sdk-legacy/payload/pool.js +0 -0
  640. package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +0 -68
  641. package/dist/esm/sdk/sdk-legacy/utils/formatter.js +0 -39
  642. package/dist/esm/sdk/sdk-legacy/utils/index.js +0 -3
  643. package/dist/esm/sdk/sdk-legacy/utils/math.js +0 -9
  644. package/dist/esm/sdk/sdk-legacy/utils/price.js +0 -11
  645. package/dist/types/abi/iDegenDistributorV300.d.ts +0 -87
  646. package/dist/types/abi/iStateSerializer.d.ts +0 -11
  647. package/dist/types/abi/routerV300.d.ts +0 -585
  648. package/dist/types/abi/v300.d.ts +0 -5484
  649. package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +0 -482
  650. package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +0 -225
  651. package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +0 -198
  652. package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +0 -396
  653. package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +0 -203
  654. package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +0 -185
  655. package/dist/types/plugins/adapters/contracts/types.d.ts +0 -34
  656. package/dist/types/plugins/bots/abi/iPartialLiquidationBotV300.d.ts +0 -210
  657. package/dist/types/sdk/accountMigration/AbstractMigrateCreditAccountsService.d.ts +0 -32
  658. package/dist/types/sdk/accountMigration/MigrateCreditAccountsServiceV300.d.ts +0 -4
  659. package/dist/types/sdk/accountMigration/MigrateCreditAccountsServiceV310.d.ts +0 -4
  660. package/dist/types/sdk/accountMigration/createMigrateCreditAccountsService.d.ts +0 -8
  661. package/dist/types/sdk/accountMigration/index.d.ts +0 -3
  662. package/dist/types/sdk/accountMigration/types.d.ts +0 -62
  663. package/dist/types/sdk/accounts/CreditAccountsServiceV300.d.ts +0 -32
  664. package/dist/types/sdk/base/token-types.d.ts +0 -25
  665. package/dist/types/sdk/core/BotListV3Contract.d.ts +0 -323
  666. package/dist/types/sdk/core/GearStakingV3Contract.d.ts +0 -520
  667. package/dist/types/sdk/core/address-provider/AddressProviderV300Contract.d.ts +0 -97
  668. package/dist/types/sdk/core/address-provider/index.d.ts +0 -4
  669. package/dist/types/sdk/gauges/GaugeStakingService.d.ts +0 -14
  670. package/dist/types/sdk/gauges/index.d.ts +0 -2
  671. package/dist/types/sdk/gauges/utils.d.ts +0 -22
  672. package/dist/types/sdk/market/ZapperRegister.d.ts +0 -17
  673. package/dist/types/sdk/market/credit/CreditConfiguratorV300Contract.d.ts +0 -648
  674. package/dist/types/sdk/market/credit/CreditManagerV300Contract.d.ts +0 -1043
  675. package/dist/types/sdk/market/oracle/PriceOracleV300Contract.d.ts +0 -369
  676. package/dist/types/sdk/market/pool/PoolQuotaKeeperV300Contract.d.ts +0 -448
  677. package/dist/types/sdk/market/pool/PoolV300Contract.d.ts +0 -1107
  678. package/dist/types/sdk/market/types.d.ts +0 -10
  679. package/dist/types/sdk/plugins/V300StalenessPeriodPlugin.d.ts +0 -29
  680. package/dist/types/sdk/poolMigration/index.d.ts +0 -11
  681. package/dist/types/sdk/pools/PoolService.d.ts +0 -11
  682. package/dist/types/sdk/router/PathOptionFactory.d.ts +0 -9
  683. package/dist/types/sdk/router/RouterV300Contract.d.ts +0 -39
  684. package/dist/types/sdk/sdk-gov-legacy/contracts/adapters.d.ts +0 -39
  685. package/dist/types/sdk/sdk-gov-legacy/contracts/contracts.d.ts +0 -194
  686. package/dist/types/sdk/sdk-gov-legacy/contracts/index.d.ts +0 -2
  687. package/dist/types/sdk/sdk-gov-legacy/contracts/protocols.d.ts +0 -30
  688. package/dist/types/sdk/sdk-gov-legacy/index.d.ts +0 -3
  689. package/dist/types/sdk/sdk-gov-legacy/oracles/PriceFeedType.d.ts +0 -24
  690. package/dist/types/sdk/sdk-gov-legacy/oracles/index.d.ts +0 -1
  691. package/dist/types/sdk/sdk-gov-legacy/tokens/aave.d.ts +0 -2
  692. package/dist/types/sdk/sdk-gov-legacy/tokens/aura.d.ts +0 -26
  693. package/dist/types/sdk/sdk-gov-legacy/tokens/balancer.d.ts +0 -15
  694. package/dist/types/sdk/sdk-gov-legacy/tokens/compound.d.ts +0 -1
  695. package/dist/types/sdk/sdk-gov-legacy/tokens/convex.d.ts +0 -31
  696. package/dist/types/sdk/sdk-gov-legacy/tokens/curveLP.d.ts +0 -25
  697. package/dist/types/sdk/sdk-gov-legacy/tokens/erc4626.d.ts +0 -1
  698. package/dist/types/sdk/sdk-gov-legacy/tokens/gear.d.ts +0 -5
  699. package/dist/types/sdk/sdk-gov-legacy/tokens/index.d.ts +0 -16
  700. package/dist/types/sdk/sdk-gov-legacy/tokens/normal.d.ts +0 -9
  701. package/dist/types/sdk/sdk-gov-legacy/tokens/stakingRewards.d.ts +0 -13
  702. package/dist/types/sdk/sdk-gov-legacy/tokens/token.d.ts +0 -34
  703. package/dist/types/sdk/sdk-gov-legacy/tokens/tokenData.d.ts +0 -5
  704. package/dist/types/sdk/sdk-gov-legacy/tokens/tokenType.d.ts +0 -24
  705. package/dist/types/sdk/sdk-gov-legacy/tokens/wrapped.d.ts +0 -7
  706. package/dist/types/sdk/sdk-gov-legacy/tokens/yearn.d.ts +0 -26
  707. package/dist/types/sdk/sdk-gov-legacy/tokens/zircuit.d.ts +0 -1
  708. package/dist/types/sdk/sdk-legacy/core/assets.d.ts +0 -39
  709. package/dist/types/sdk/sdk-legacy/core/creditAccount.d.ts +0 -152
  710. package/dist/types/sdk/sdk-legacy/core/creditAccount.spec.d.ts +0 -1
  711. package/dist/types/sdk/sdk-legacy/core/creditManager.d.ts +0 -92
  712. package/dist/types/sdk/sdk-legacy/core/creditSession.d.ts +0 -110
  713. package/dist/types/sdk/sdk-legacy/core/endpoint.d.ts +0 -24
  714. package/dist/types/sdk/sdk-legacy/core/eventOrTx.d.ts +0 -35
  715. package/dist/types/sdk/sdk-legacy/core/pool.d.ts +0 -144
  716. package/dist/types/sdk/sdk-legacy/core/transactions.d.ts +0 -348
  717. package/dist/types/sdk/sdk-legacy/gearboxRewards/api.d.ts +0 -87
  718. package/dist/types/sdk/sdk-legacy/gearboxRewards/apy.d.ts +0 -46
  719. package/dist/types/sdk/sdk-legacy/gearboxRewards/extraAPY.d.ts +0 -41
  720. package/dist/types/sdk/sdk-legacy/gearboxRewards/index.d.ts +0 -3
  721. package/dist/types/sdk/sdk-legacy/gearboxRewards/merklAPI.d.ts +0 -42
  722. package/dist/types/sdk/sdk-legacy/index.d.ts +0 -16
  723. package/dist/types/sdk/sdk-legacy/payload/creditAccount.d.ts +0 -47
  724. package/dist/types/sdk/sdk-legacy/payload/creditManager.d.ts +0 -109
  725. package/dist/types/sdk/sdk-legacy/payload/creditSession.d.ts +0 -111
  726. package/dist/types/sdk/sdk-legacy/payload/graphPayload.d.ts +0 -10
  727. package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +0 -181
  728. package/dist/types/sdk/sdk-legacy/tokens/tokenData.d.ts +0 -21
  729. package/dist/types/sdk/sdk-legacy/utils/formatter.d.ts +0 -8
  730. package/dist/types/sdk/sdk-legacy/utils/index.d.ts +0 -3
  731. package/dist/types/sdk/sdk-legacy/utils/math.d.ts +0 -6
  732. package/dist/types/sdk/sdk-legacy/utils/price.d.ts +0 -9
  733. /package/dist/cjs/{sdk/accountMigration → common-utils/utils/creditAccount}/types.js +0 -0
  734. /package/dist/cjs/{sdk/core/address-provider → history}/types.js +0 -0
  735. /package/dist/cjs/{sdk/market → plugins/zappers}/types.js +0 -0
  736. /package/dist/esm/{sdk/accountMigration → common-utils/utils/creditAccount}/types.js +0 -0
  737. /package/dist/esm/{sdk/core/address-provider/types.js → history/inner-operations.js} +0 -0
  738. /package/dist/esm/{sdk/gauges/utils.js → history/internal-types.js} +0 -0
  739. /package/dist/esm/{sdk/market → history}/types.js +0 -0
  740. /package/dist/esm/{sdk/sdk-gov-legacy/tokens/aave.js → plugins/adapters/legacyAdapterOperations.js} +0 -0
  741. /package/dist/esm/{sdk/sdk-gov-legacy/tokens/compound.js → plugins/zappers/types.js} +0 -0
  742. /package/dist/esm/sdk/{sdk-gov-legacy/tokens/erc4626.js → core/types.js} +0 -0
  743. /package/dist/esm/sdk/market/adapters/{factory.js → createAdapter.js} +0 -0
  744. /package/dist/types/sdk/market/adapters/{factory.d.ts → createAdapter.d.ts} +0 -0
@@ -1,4189 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var v300_exports = {};
20
- __export(v300_exports, {
21
- iAddressProviderV300Abi: () => iAddressProviderV300Abi,
22
- iBotListV300Abi: () => iBotListV300Abi,
23
- iCreditConfiguratorV300Abi: () => iCreditConfiguratorV300Abi,
24
- iCreditFacadeV300Abi: () => iCreditFacadeV300Abi,
25
- iCreditFacadeV300MulticallAbi: () => iCreditFacadeV300MulticallAbi,
26
- iCreditManagerV300Abi: () => iCreditManagerV300Abi,
27
- iGaugeV300Abi: () => iGaugeV300Abi,
28
- iGearStakingV300Abi: () => iGearStakingV300Abi,
29
- iLinearInterestRateModelV300Abi: () => iLinearInterestRateModelV300Abi,
30
- iPoolQuotaKeeperV300Abi: () => iPoolQuotaKeeperV300Abi,
31
- iPoolV300Abi: () => iPoolV300Abi,
32
- iPriceOracleV300Abi: () => iPriceOracleV300Abi
33
- });
34
- module.exports = __toCommonJS(v300_exports);
35
- const iAddressProviderV300Abi = [
36
- {
37
- type: "function",
38
- name: "addresses",
39
- inputs: [
40
- { name: "key", type: "bytes32", internalType: "bytes32" },
41
- { name: "_version", type: "uint256", internalType: "uint256" }
42
- ],
43
- outputs: [{ name: "", type: "address", internalType: "address" }],
44
- stateMutability: "view"
45
- },
46
- {
47
- type: "function",
48
- name: "getAddressOrRevert",
49
- inputs: [
50
- { name: "key", type: "bytes32", internalType: "bytes32" },
51
- { name: "_version", type: "uint256", internalType: "uint256" }
52
- ],
53
- outputs: [{ name: "result", type: "address", internalType: "address" }],
54
- stateMutability: "view"
55
- },
56
- {
57
- type: "function",
58
- name: "setAddress",
59
- inputs: [
60
- { name: "key", type: "bytes32", internalType: "bytes32" },
61
- { name: "value", type: "address", internalType: "address" },
62
- { name: "saveVersion", type: "bool", internalType: "bool" }
63
- ],
64
- outputs: [],
65
- stateMutability: "nonpayable"
66
- },
67
- {
68
- type: "function",
69
- name: "version",
70
- inputs: [],
71
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
72
- stateMutability: "view"
73
- },
74
- {
75
- type: "event",
76
- name: "SetAddress",
77
- inputs: [
78
- { name: "key", type: "bytes32", indexed: true, internalType: "bytes32" },
79
- {
80
- name: "value",
81
- type: "address",
82
- indexed: true,
83
- internalType: "address"
84
- },
85
- {
86
- name: "version",
87
- type: "uint256",
88
- indexed: true,
89
- internalType: "uint256"
90
- }
91
- ],
92
- anonymous: false
93
- }
94
- ];
95
- const iBotListV300Abi = [
96
- {
97
- type: "function",
98
- name: "activeBots",
99
- inputs: [
100
- { name: "creditManager", type: "address", internalType: "address" },
101
- { name: "creditAccount", type: "address", internalType: "address" }
102
- ],
103
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
104
- stateMutability: "view"
105
- },
106
- {
107
- type: "function",
108
- name: "approvedCreditManager",
109
- inputs: [
110
- { name: "creditManager", type: "address", internalType: "address" }
111
- ],
112
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
113
- stateMutability: "view"
114
- },
115
- {
116
- type: "function",
117
- name: "botForbiddenStatus",
118
- inputs: [{ name: "bot", type: "address", internalType: "address" }],
119
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
120
- stateMutability: "view"
121
- },
122
- {
123
- type: "function",
124
- name: "botPermissions",
125
- inputs: [
126
- { name: "bot", type: "address", internalType: "address" },
127
- { name: "creditManager", type: "address", internalType: "address" },
128
- { name: "creditAccount", type: "address", internalType: "address" }
129
- ],
130
- outputs: [{ name: "", type: "uint192", internalType: "uint192" }],
131
- stateMutability: "view"
132
- },
133
- {
134
- type: "function",
135
- name: "botSpecialPermissions",
136
- inputs: [
137
- { name: "bot", type: "address", internalType: "address" },
138
- { name: "creditManager", type: "address", internalType: "address" }
139
- ],
140
- outputs: [{ name: "", type: "uint192", internalType: "uint192" }],
141
- stateMutability: "view"
142
- },
143
- {
144
- type: "function",
145
- name: "eraseAllBotPermissions",
146
- inputs: [
147
- { name: "creditManager", type: "address", internalType: "address" },
148
- { name: "creditAccount", type: "address", internalType: "address" }
149
- ],
150
- outputs: [],
151
- stateMutability: "nonpayable"
152
- },
153
- {
154
- type: "function",
155
- name: "getBotStatus",
156
- inputs: [
157
- { name: "bot", type: "address", internalType: "address" },
158
- { name: "creditManager", type: "address", internalType: "address" },
159
- { name: "creditAccount", type: "address", internalType: "address" }
160
- ],
161
- outputs: [
162
- { name: "permissions", type: "uint192", internalType: "uint192" },
163
- { name: "forbidden", type: "bool", internalType: "bool" },
164
- { name: "hasSpecialPermissions", type: "bool", internalType: "bool" }
165
- ],
166
- stateMutability: "view"
167
- },
168
- {
169
- type: "function",
170
- name: "setBotForbiddenStatus",
171
- inputs: [
172
- { name: "bot", type: "address", internalType: "address" },
173
- { name: "forbidden", type: "bool", internalType: "bool" }
174
- ],
175
- outputs: [],
176
- stateMutability: "nonpayable"
177
- },
178
- {
179
- type: "function",
180
- name: "setBotPermissions",
181
- inputs: [
182
- { name: "bot", type: "address", internalType: "address" },
183
- { name: "creditManager", type: "address", internalType: "address" },
184
- { name: "creditAccount", type: "address", internalType: "address" },
185
- { name: "permissions", type: "uint192", internalType: "uint192" }
186
- ],
187
- outputs: [
188
- { name: "activeBotsRemaining", type: "uint256", internalType: "uint256" }
189
- ],
190
- stateMutability: "nonpayable"
191
- },
192
- {
193
- type: "function",
194
- name: "setBotSpecialPermissions",
195
- inputs: [
196
- { name: "bot", type: "address", internalType: "address" },
197
- { name: "creditManager", type: "address", internalType: "address" },
198
- { name: "permissions", type: "uint192", internalType: "uint192" }
199
- ],
200
- outputs: [],
201
- stateMutability: "nonpayable"
202
- },
203
- {
204
- type: "function",
205
- name: "setCreditManagerApprovedStatus",
206
- inputs: [
207
- { name: "creditManager", type: "address", internalType: "address" },
208
- { name: "approved", type: "bool", internalType: "bool" }
209
- ],
210
- outputs: [],
211
- stateMutability: "nonpayable"
212
- },
213
- {
214
- type: "function",
215
- name: "version",
216
- inputs: [],
217
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
218
- stateMutability: "view"
219
- },
220
- {
221
- type: "event",
222
- name: "EraseBot",
223
- inputs: [
224
- { name: "bot", type: "address", indexed: true, internalType: "address" },
225
- {
226
- name: "creditManager",
227
- type: "address",
228
- indexed: true,
229
- internalType: "address"
230
- },
231
- {
232
- name: "creditAccount",
233
- type: "address",
234
- indexed: true,
235
- internalType: "address"
236
- }
237
- ],
238
- anonymous: false
239
- },
240
- {
241
- type: "event",
242
- name: "SetBotForbiddenStatus",
243
- inputs: [
244
- { name: "bot", type: "address", indexed: true, internalType: "address" },
245
- { name: "forbidden", type: "bool", indexed: false, internalType: "bool" }
246
- ],
247
- anonymous: false
248
- },
249
- {
250
- type: "event",
251
- name: "SetBotPermissions",
252
- inputs: [
253
- { name: "bot", type: "address", indexed: true, internalType: "address" },
254
- {
255
- name: "creditManager",
256
- type: "address",
257
- indexed: true,
258
- internalType: "address"
259
- },
260
- {
261
- name: "creditAccount",
262
- type: "address",
263
- indexed: true,
264
- internalType: "address"
265
- },
266
- {
267
- name: "permissions",
268
- type: "uint192",
269
- indexed: false,
270
- internalType: "uint192"
271
- }
272
- ],
273
- anonymous: false
274
- },
275
- {
276
- type: "event",
277
- name: "SetBotSpecialPermissions",
278
- inputs: [
279
- { name: "bot", type: "address", indexed: true, internalType: "address" },
280
- {
281
- name: "creditManager",
282
- type: "address",
283
- indexed: true,
284
- internalType: "address"
285
- },
286
- {
287
- name: "permissions",
288
- type: "uint192",
289
- indexed: false,
290
- internalType: "uint192"
291
- }
292
- ],
293
- anonymous: false
294
- },
295
- {
296
- type: "event",
297
- name: "SetCreditManagerApprovedStatus",
298
- inputs: [
299
- {
300
- name: "creditManager",
301
- type: "address",
302
- indexed: true,
303
- internalType: "address"
304
- },
305
- { name: "approved", type: "bool", indexed: false, internalType: "bool" }
306
- ],
307
- anonymous: false
308
- }
309
- ];
310
- const iCreditConfiguratorV300Abi = [
311
- {
312
- type: "function",
313
- name: "addCollateralToken",
314
- inputs: [
315
- { name: "token", type: "address", internalType: "address" },
316
- { name: "liquidationThreshold", type: "uint16", internalType: "uint16" }
317
- ],
318
- outputs: [],
319
- stateMutability: "nonpayable"
320
- },
321
- {
322
- type: "function",
323
- name: "addEmergencyLiquidator",
324
- inputs: [{ name: "liquidator", type: "address", internalType: "address" }],
325
- outputs: [],
326
- stateMutability: "nonpayable"
327
- },
328
- {
329
- type: "function",
330
- name: "addressProvider",
331
- inputs: [],
332
- outputs: [{ name: "", type: "address", internalType: "address" }],
333
- stateMutability: "view"
334
- },
335
- {
336
- type: "function",
337
- name: "allowAdapter",
338
- inputs: [{ name: "adapter", type: "address", internalType: "address" }],
339
- outputs: [],
340
- stateMutability: "nonpayable"
341
- },
342
- {
343
- type: "function",
344
- name: "allowToken",
345
- inputs: [{ name: "token", type: "address", internalType: "address" }],
346
- outputs: [],
347
- stateMutability: "nonpayable"
348
- },
349
- {
350
- type: "function",
351
- name: "allowedAdapters",
352
- inputs: [],
353
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
354
- stateMutability: "view"
355
- },
356
- {
357
- type: "function",
358
- name: "creditFacade",
359
- inputs: [],
360
- outputs: [{ name: "", type: "address", internalType: "address" }],
361
- stateMutability: "view"
362
- },
363
- {
364
- type: "function",
365
- name: "creditManager",
366
- inputs: [],
367
- outputs: [{ name: "", type: "address", internalType: "address" }],
368
- stateMutability: "view"
369
- },
370
- {
371
- type: "function",
372
- name: "emergencyLiquidators",
373
- inputs: [],
374
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
375
- stateMutability: "view"
376
- },
377
- {
378
- type: "function",
379
- name: "forbidAdapter",
380
- inputs: [{ name: "adapter", type: "address", internalType: "address" }],
381
- outputs: [],
382
- stateMutability: "nonpayable"
383
- },
384
- {
385
- type: "function",
386
- name: "forbidBorrowing",
387
- inputs: [],
388
- outputs: [],
389
- stateMutability: "nonpayable"
390
- },
391
- {
392
- type: "function",
393
- name: "forbidToken",
394
- inputs: [{ name: "token", type: "address", internalType: "address" }],
395
- outputs: [],
396
- stateMutability: "nonpayable"
397
- },
398
- {
399
- type: "function",
400
- name: "makeTokenQuoted",
401
- inputs: [{ name: "token", type: "address", internalType: "address" }],
402
- outputs: [],
403
- stateMutability: "nonpayable"
404
- },
405
- {
406
- type: "function",
407
- name: "rampLiquidationThreshold",
408
- inputs: [
409
- { name: "token", type: "address", internalType: "address" },
410
- {
411
- name: "liquidationThresholdFinal",
412
- type: "uint16",
413
- internalType: "uint16"
414
- },
415
- { name: "rampStart", type: "uint40", internalType: "uint40" },
416
- { name: "rampDuration", type: "uint24", internalType: "uint24" }
417
- ],
418
- outputs: [],
419
- stateMutability: "nonpayable"
420
- },
421
- {
422
- type: "function",
423
- name: "removeEmergencyLiquidator",
424
- inputs: [{ name: "liquidator", type: "address", internalType: "address" }],
425
- outputs: [],
426
- stateMutability: "nonpayable"
427
- },
428
- {
429
- type: "function",
430
- name: "resetCumulativeLoss",
431
- inputs: [],
432
- outputs: [],
433
- stateMutability: "nonpayable"
434
- },
435
- {
436
- type: "function",
437
- name: "setBotList",
438
- inputs: [{ name: "newVersion", type: "uint256", internalType: "uint256" }],
439
- outputs: [],
440
- stateMutability: "nonpayable"
441
- },
442
- {
443
- type: "function",
444
- name: "setCreditFacade",
445
- inputs: [
446
- { name: "newCreditFacade", type: "address", internalType: "address" },
447
- { name: "migrateParams", type: "bool", internalType: "bool" }
448
- ],
449
- outputs: [],
450
- stateMutability: "nonpayable"
451
- },
452
- {
453
- type: "function",
454
- name: "setExpirationDate",
455
- inputs: [
456
- { name: "newExpirationDate", type: "uint40", internalType: "uint40" }
457
- ],
458
- outputs: [],
459
- stateMutability: "nonpayable"
460
- },
461
- {
462
- type: "function",
463
- name: "setFees",
464
- inputs: [
465
- { name: "feeInterest", type: "uint16", internalType: "uint16" },
466
- { name: "feeLiquidation", type: "uint16", internalType: "uint16" },
467
- { name: "liquidationPremium", type: "uint16", internalType: "uint16" },
468
- { name: "feeLiquidationExpired", type: "uint16", internalType: "uint16" },
469
- {
470
- name: "liquidationPremiumExpired",
471
- type: "uint16",
472
- internalType: "uint16"
473
- }
474
- ],
475
- outputs: [],
476
- stateMutability: "nonpayable"
477
- },
478
- {
479
- type: "function",
480
- name: "setLiquidationThreshold",
481
- inputs: [
482
- { name: "token", type: "address", internalType: "address" },
483
- { name: "liquidationThreshold", type: "uint16", internalType: "uint16" }
484
- ],
485
- outputs: [],
486
- stateMutability: "nonpayable"
487
- },
488
- {
489
- type: "function",
490
- name: "setMaxCumulativeLoss",
491
- inputs: [
492
- {
493
- name: "newMaxCumulativeLoss",
494
- type: "uint128",
495
- internalType: "uint128"
496
- }
497
- ],
498
- outputs: [],
499
- stateMutability: "nonpayable"
500
- },
501
- {
502
- type: "function",
503
- name: "setMaxDebtLimit",
504
- inputs: [{ name: "newMaxDebt", type: "uint128", internalType: "uint128" }],
505
- outputs: [],
506
- stateMutability: "nonpayable"
507
- },
508
- {
509
- type: "function",
510
- name: "setMaxDebtPerBlockMultiplier",
511
- inputs: [
512
- {
513
- name: "newMaxDebtLimitPerBlockMultiplier",
514
- type: "uint8",
515
- internalType: "uint8"
516
- }
517
- ],
518
- outputs: [],
519
- stateMutability: "nonpayable"
520
- },
521
- {
522
- type: "function",
523
- name: "setMaxEnabledTokens",
524
- inputs: [
525
- { name: "newMaxEnabledTokens", type: "uint8", internalType: "uint8" }
526
- ],
527
- outputs: [],
528
- stateMutability: "nonpayable"
529
- },
530
- {
531
- type: "function",
532
- name: "setMinDebtLimit",
533
- inputs: [{ name: "newMinDebt", type: "uint128", internalType: "uint128" }],
534
- outputs: [],
535
- stateMutability: "nonpayable"
536
- },
537
- {
538
- type: "function",
539
- name: "setPriceOracle",
540
- inputs: [{ name: "newVersion", type: "uint256", internalType: "uint256" }],
541
- outputs: [],
542
- stateMutability: "nonpayable"
543
- },
544
- {
545
- type: "function",
546
- name: "underlying",
547
- inputs: [],
548
- outputs: [{ name: "", type: "address", internalType: "address" }],
549
- stateMutability: "view"
550
- },
551
- {
552
- type: "function",
553
- name: "upgradeCreditConfigurator",
554
- inputs: [
555
- {
556
- name: "newCreditConfigurator",
557
- type: "address",
558
- internalType: "address"
559
- }
560
- ],
561
- outputs: [],
562
- stateMutability: "nonpayable"
563
- },
564
- {
565
- type: "function",
566
- name: "version",
567
- inputs: [],
568
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
569
- stateMutability: "view"
570
- },
571
- {
572
- type: "event",
573
- name: "AddCollateralToken",
574
- inputs: [
575
- {
576
- name: "token",
577
- type: "address",
578
- indexed: true,
579
- internalType: "address"
580
- }
581
- ],
582
- anonymous: false
583
- },
584
- {
585
- type: "event",
586
- name: "AddEmergencyLiquidator",
587
- inputs: [
588
- {
589
- name: "liquidator",
590
- type: "address",
591
- indexed: true,
592
- internalType: "address"
593
- }
594
- ],
595
- anonymous: false
596
- },
597
- {
598
- type: "event",
599
- name: "AllowAdapter",
600
- inputs: [
601
- {
602
- name: "targetContract",
603
- type: "address",
604
- indexed: true,
605
- internalType: "address"
606
- },
607
- {
608
- name: "adapter",
609
- type: "address",
610
- indexed: true,
611
- internalType: "address"
612
- }
613
- ],
614
- anonymous: false
615
- },
616
- {
617
- type: "event",
618
- name: "AllowToken",
619
- inputs: [
620
- {
621
- name: "token",
622
- type: "address",
623
- indexed: true,
624
- internalType: "address"
625
- }
626
- ],
627
- anonymous: false
628
- },
629
- {
630
- type: "event",
631
- name: "CreditConfiguratorUpgraded",
632
- inputs: [
633
- {
634
- name: "creditConfigurator",
635
- type: "address",
636
- indexed: true,
637
- internalType: "address"
638
- }
639
- ],
640
- anonymous: false
641
- },
642
- {
643
- type: "event",
644
- name: "ForbidAdapter",
645
- inputs: [
646
- {
647
- name: "targetContract",
648
- type: "address",
649
- indexed: true,
650
- internalType: "address"
651
- },
652
- {
653
- name: "adapter",
654
- type: "address",
655
- indexed: true,
656
- internalType: "address"
657
- }
658
- ],
659
- anonymous: false
660
- },
661
- {
662
- type: "event",
663
- name: "ForbidToken",
664
- inputs: [
665
- {
666
- name: "token",
667
- type: "address",
668
- indexed: true,
669
- internalType: "address"
670
- }
671
- ],
672
- anonymous: false
673
- },
674
- {
675
- type: "event",
676
- name: "QuoteToken",
677
- inputs: [
678
- {
679
- name: "token",
680
- type: "address",
681
- indexed: true,
682
- internalType: "address"
683
- }
684
- ],
685
- anonymous: false
686
- },
687
- {
688
- type: "event",
689
- name: "RemoveEmergencyLiquidator",
690
- inputs: [
691
- {
692
- name: "liquidator",
693
- type: "address",
694
- indexed: true,
695
- internalType: "address"
696
- }
697
- ],
698
- anonymous: false
699
- },
700
- { type: "event", name: "ResetCumulativeLoss", inputs: [], anonymous: false },
701
- {
702
- type: "event",
703
- name: "ScheduleTokenLiquidationThresholdRamp",
704
- inputs: [
705
- {
706
- name: "token",
707
- type: "address",
708
- indexed: true,
709
- internalType: "address"
710
- },
711
- {
712
- name: "liquidationThresholdInitial",
713
- type: "uint16",
714
- indexed: false,
715
- internalType: "uint16"
716
- },
717
- {
718
- name: "liquidationThresholdFinal",
719
- type: "uint16",
720
- indexed: false,
721
- internalType: "uint16"
722
- },
723
- {
724
- name: "timestampRampStart",
725
- type: "uint40",
726
- indexed: false,
727
- internalType: "uint40"
728
- },
729
- {
730
- name: "timestampRampEnd",
731
- type: "uint40",
732
- indexed: false,
733
- internalType: "uint40"
734
- }
735
- ],
736
- anonymous: false
737
- },
738
- {
739
- type: "event",
740
- name: "SetBorrowingLimits",
741
- inputs: [
742
- {
743
- name: "minDebt",
744
- type: "uint256",
745
- indexed: false,
746
- internalType: "uint256"
747
- },
748
- {
749
- name: "maxDebt",
750
- type: "uint256",
751
- indexed: false,
752
- internalType: "uint256"
753
- }
754
- ],
755
- anonymous: false
756
- },
757
- {
758
- type: "event",
759
- name: "SetBotList",
760
- inputs: [
761
- {
762
- name: "botList",
763
- type: "address",
764
- indexed: true,
765
- internalType: "address"
766
- }
767
- ],
768
- anonymous: false
769
- },
770
- {
771
- type: "event",
772
- name: "SetCreditFacade",
773
- inputs: [
774
- {
775
- name: "creditFacade",
776
- type: "address",
777
- indexed: true,
778
- internalType: "address"
779
- }
780
- ],
781
- anonymous: false
782
- },
783
- {
784
- type: "event",
785
- name: "SetExpirationDate",
786
- inputs: [
787
- {
788
- name: "expirationDate",
789
- type: "uint40",
790
- indexed: false,
791
- internalType: "uint40"
792
- }
793
- ],
794
- anonymous: false
795
- },
796
- {
797
- type: "event",
798
- name: "SetMaxCumulativeLoss",
799
- inputs: [
800
- {
801
- name: "maxCumulativeLoss",
802
- type: "uint128",
803
- indexed: false,
804
- internalType: "uint128"
805
- }
806
- ],
807
- anonymous: false
808
- },
809
- {
810
- type: "event",
811
- name: "SetMaxDebtPerBlockMultiplier",
812
- inputs: [
813
- {
814
- name: "maxDebtPerBlockMultiplier",
815
- type: "uint8",
816
- indexed: false,
817
- internalType: "uint8"
818
- }
819
- ],
820
- anonymous: false
821
- },
822
- {
823
- type: "event",
824
- name: "SetMaxEnabledTokens",
825
- inputs: [
826
- {
827
- name: "maxEnabledTokens",
828
- type: "uint8",
829
- indexed: false,
830
- internalType: "uint8"
831
- }
832
- ],
833
- anonymous: false
834
- },
835
- {
836
- type: "event",
837
- name: "SetPriceOracle",
838
- inputs: [
839
- {
840
- name: "priceOracle",
841
- type: "address",
842
- indexed: true,
843
- internalType: "address"
844
- }
845
- ],
846
- anonymous: false
847
- },
848
- {
849
- type: "event",
850
- name: "SetTokenLiquidationThreshold",
851
- inputs: [
852
- {
853
- name: "token",
854
- type: "address",
855
- indexed: true,
856
- internalType: "address"
857
- },
858
- {
859
- name: "liquidationThreshold",
860
- type: "uint16",
861
- indexed: false,
862
- internalType: "uint16"
863
- }
864
- ],
865
- anonymous: false
866
- },
867
- {
868
- type: "event",
869
- name: "UpdateFees",
870
- inputs: [
871
- {
872
- name: "feeInterest",
873
- type: "uint16",
874
- indexed: false,
875
- internalType: "uint16"
876
- },
877
- {
878
- name: "feeLiquidation",
879
- type: "uint16",
880
- indexed: false,
881
- internalType: "uint16"
882
- },
883
- {
884
- name: "liquidationPremium",
885
- type: "uint16",
886
- indexed: false,
887
- internalType: "uint16"
888
- },
889
- {
890
- name: "feeLiquidationExpired",
891
- type: "uint16",
892
- indexed: false,
893
- internalType: "uint16"
894
- },
895
- {
896
- name: "liquidationPremiumExpired",
897
- type: "uint16",
898
- indexed: false,
899
- internalType: "uint16"
900
- }
901
- ],
902
- anonymous: false
903
- }
904
- ];
905
- const iCreditFacadeV300Abi = [
906
- {
907
- type: "function",
908
- name: "botList",
909
- inputs: [],
910
- outputs: [{ name: "", type: "address", internalType: "address" }],
911
- stateMutability: "view"
912
- },
913
- {
914
- type: "function",
915
- name: "botMulticall",
916
- inputs: [
917
- { name: "creditAccount", type: "address", internalType: "address" },
918
- {
919
- name: "calls",
920
- type: "tuple[]",
921
- internalType: "struct MultiCall[]",
922
- components: [
923
- { name: "target", type: "address", internalType: "address" },
924
- { name: "callData", type: "bytes", internalType: "bytes" }
925
- ]
926
- }
927
- ],
928
- outputs: [],
929
- stateMutability: "nonpayable"
930
- },
931
- {
932
- type: "function",
933
- name: "canLiquidateWhilePaused",
934
- inputs: [{ name: "", type: "address", internalType: "address" }],
935
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
936
- stateMutability: "view"
937
- },
938
- {
939
- type: "function",
940
- name: "closeCreditAccount",
941
- inputs: [
942
- { name: "creditAccount", type: "address", internalType: "address" },
943
- {
944
- name: "calls",
945
- type: "tuple[]",
946
- internalType: "struct MultiCall[]",
947
- components: [
948
- { name: "target", type: "address", internalType: "address" },
949
- { name: "callData", type: "bytes", internalType: "bytes" }
950
- ]
951
- }
952
- ],
953
- outputs: [],
954
- stateMutability: "payable"
955
- },
956
- {
957
- type: "function",
958
- name: "creditManager",
959
- inputs: [],
960
- outputs: [{ name: "", type: "address", internalType: "address" }],
961
- stateMutability: "view"
962
- },
963
- {
964
- type: "function",
965
- name: "debtLimits",
966
- inputs: [],
967
- outputs: [
968
- { name: "minDebt", type: "uint128", internalType: "uint128" },
969
- { name: "maxDebt", type: "uint128", internalType: "uint128" }
970
- ],
971
- stateMutability: "view"
972
- },
973
- {
974
- type: "function",
975
- name: "degenNFT",
976
- inputs: [],
977
- outputs: [{ name: "", type: "address", internalType: "address" }],
978
- stateMutability: "view"
979
- },
980
- {
981
- type: "function",
982
- name: "expirable",
983
- inputs: [],
984
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
985
- stateMutability: "view"
986
- },
987
- {
988
- type: "function",
989
- name: "expirationDate",
990
- inputs: [],
991
- outputs: [{ name: "", type: "uint40", internalType: "uint40" }],
992
- stateMutability: "view"
993
- },
994
- {
995
- type: "function",
996
- name: "forbiddenTokenMask",
997
- inputs: [],
998
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
999
- stateMutability: "view"
1000
- },
1001
- {
1002
- type: "function",
1003
- name: "liquidateCreditAccount",
1004
- inputs: [
1005
- { name: "creditAccount", type: "address", internalType: "address" },
1006
- { name: "to", type: "address", internalType: "address" },
1007
- {
1008
- name: "calls",
1009
- type: "tuple[]",
1010
- internalType: "struct MultiCall[]",
1011
- components: [
1012
- { name: "target", type: "address", internalType: "address" },
1013
- { name: "callData", type: "bytes", internalType: "bytes" }
1014
- ]
1015
- }
1016
- ],
1017
- outputs: [],
1018
- stateMutability: "nonpayable"
1019
- },
1020
- {
1021
- type: "function",
1022
- name: "lossParams",
1023
- inputs: [],
1024
- outputs: [
1025
- {
1026
- name: "currentCumulativeLoss",
1027
- type: "uint128",
1028
- internalType: "uint128"
1029
- },
1030
- { name: "maxCumulativeLoss", type: "uint128", internalType: "uint128" }
1031
- ],
1032
- stateMutability: "view"
1033
- },
1034
- {
1035
- type: "function",
1036
- name: "maxDebtPerBlockMultiplier",
1037
- inputs: [],
1038
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
1039
- stateMutability: "view"
1040
- },
1041
- {
1042
- type: "function",
1043
- name: "maxQuotaMultiplier",
1044
- inputs: [],
1045
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
1046
- stateMutability: "view"
1047
- },
1048
- {
1049
- type: "function",
1050
- name: "multicall",
1051
- inputs: [
1052
- { name: "creditAccount", type: "address", internalType: "address" },
1053
- {
1054
- name: "calls",
1055
- type: "tuple[]",
1056
- internalType: "struct MultiCall[]",
1057
- components: [
1058
- { name: "target", type: "address", internalType: "address" },
1059
- { name: "callData", type: "bytes", internalType: "bytes" }
1060
- ]
1061
- }
1062
- ],
1063
- outputs: [],
1064
- stateMutability: "payable"
1065
- },
1066
- {
1067
- type: "function",
1068
- name: "openCreditAccount",
1069
- inputs: [
1070
- { name: "onBehalfOf", type: "address", internalType: "address" },
1071
- {
1072
- name: "calls",
1073
- type: "tuple[]",
1074
- internalType: "struct MultiCall[]",
1075
- components: [
1076
- { name: "target", type: "address", internalType: "address" },
1077
- { name: "callData", type: "bytes", internalType: "bytes" }
1078
- ]
1079
- },
1080
- { name: "referralCode", type: "uint256", internalType: "uint256" }
1081
- ],
1082
- outputs: [
1083
- { name: "creditAccount", type: "address", internalType: "address" }
1084
- ],
1085
- stateMutability: "payable"
1086
- },
1087
- {
1088
- type: "function",
1089
- name: "setBotList",
1090
- inputs: [{ name: "newBotList", type: "address", internalType: "address" }],
1091
- outputs: [],
1092
- stateMutability: "nonpayable"
1093
- },
1094
- {
1095
- type: "function",
1096
- name: "setBotPermissions",
1097
- inputs: [
1098
- { name: "creditAccount", type: "address", internalType: "address" },
1099
- { name: "bot", type: "address", internalType: "address" },
1100
- { name: "permissions", type: "uint192", internalType: "uint192" }
1101
- ],
1102
- outputs: [],
1103
- stateMutability: "nonpayable"
1104
- },
1105
- {
1106
- type: "function",
1107
- name: "setCumulativeLossParams",
1108
- inputs: [
1109
- {
1110
- name: "newMaxCumulativeLoss",
1111
- type: "uint128",
1112
- internalType: "uint128"
1113
- },
1114
- { name: "resetCumulativeLoss", type: "bool", internalType: "bool" }
1115
- ],
1116
- outputs: [],
1117
- stateMutability: "nonpayable"
1118
- },
1119
- {
1120
- type: "function",
1121
- name: "setDebtLimits",
1122
- inputs: [
1123
- { name: "newMinDebt", type: "uint128", internalType: "uint128" },
1124
- { name: "newMaxDebt", type: "uint128", internalType: "uint128" },
1125
- {
1126
- name: "newMaxDebtPerBlockMultiplier",
1127
- type: "uint8",
1128
- internalType: "uint8"
1129
- }
1130
- ],
1131
- outputs: [],
1132
- stateMutability: "nonpayable"
1133
- },
1134
- {
1135
- type: "function",
1136
- name: "setEmergencyLiquidator",
1137
- inputs: [
1138
- { name: "liquidator", type: "address", internalType: "address" },
1139
- {
1140
- name: "allowance",
1141
- type: "uint8",
1142
- internalType: "enum AllowanceAction"
1143
- }
1144
- ],
1145
- outputs: [],
1146
- stateMutability: "nonpayable"
1147
- },
1148
- {
1149
- type: "function",
1150
- name: "setExpirationDate",
1151
- inputs: [
1152
- { name: "newExpirationDate", type: "uint40", internalType: "uint40" }
1153
- ],
1154
- outputs: [],
1155
- stateMutability: "nonpayable"
1156
- },
1157
- {
1158
- type: "function",
1159
- name: "setTokenAllowance",
1160
- inputs: [
1161
- { name: "token", type: "address", internalType: "address" },
1162
- {
1163
- name: "allowance",
1164
- type: "uint8",
1165
- internalType: "enum AllowanceAction"
1166
- }
1167
- ],
1168
- outputs: [],
1169
- stateMutability: "nonpayable"
1170
- },
1171
- {
1172
- type: "function",
1173
- name: "version",
1174
- inputs: [],
1175
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
1176
- stateMutability: "view"
1177
- },
1178
- {
1179
- type: "function",
1180
- name: "weth",
1181
- inputs: [],
1182
- outputs: [{ name: "", type: "address", internalType: "address" }],
1183
- stateMutability: "view"
1184
- },
1185
- {
1186
- type: "event",
1187
- name: "AddCollateral",
1188
- inputs: [
1189
- {
1190
- name: "creditAccount",
1191
- type: "address",
1192
- indexed: true,
1193
- internalType: "address"
1194
- },
1195
- {
1196
- name: "token",
1197
- type: "address",
1198
- indexed: true,
1199
- internalType: "address"
1200
- },
1201
- {
1202
- name: "amount",
1203
- type: "uint256",
1204
- indexed: false,
1205
- internalType: "uint256"
1206
- }
1207
- ],
1208
- anonymous: false
1209
- },
1210
- {
1211
- type: "event",
1212
- name: "CloseCreditAccount",
1213
- inputs: [
1214
- {
1215
- name: "creditAccount",
1216
- type: "address",
1217
- indexed: true,
1218
- internalType: "address"
1219
- },
1220
- {
1221
- name: "borrower",
1222
- type: "address",
1223
- indexed: true,
1224
- internalType: "address"
1225
- }
1226
- ],
1227
- anonymous: false
1228
- },
1229
- {
1230
- type: "event",
1231
- name: "DecreaseDebt",
1232
- inputs: [
1233
- {
1234
- name: "creditAccount",
1235
- type: "address",
1236
- indexed: true,
1237
- internalType: "address"
1238
- },
1239
- {
1240
- name: "amount",
1241
- type: "uint256",
1242
- indexed: false,
1243
- internalType: "uint256"
1244
- }
1245
- ],
1246
- anonymous: false
1247
- },
1248
- {
1249
- type: "event",
1250
- name: "Execute",
1251
- inputs: [
1252
- {
1253
- name: "creditAccount",
1254
- type: "address",
1255
- indexed: true,
1256
- internalType: "address"
1257
- },
1258
- {
1259
- name: "targetContract",
1260
- type: "address",
1261
- indexed: true,
1262
- internalType: "address"
1263
- }
1264
- ],
1265
- anonymous: false
1266
- },
1267
- { type: "event", name: "FinishMultiCall", inputs: [], anonymous: false },
1268
- {
1269
- type: "event",
1270
- name: "IncreaseDebt",
1271
- inputs: [
1272
- {
1273
- name: "creditAccount",
1274
- type: "address",
1275
- indexed: true,
1276
- internalType: "address"
1277
- },
1278
- {
1279
- name: "amount",
1280
- type: "uint256",
1281
- indexed: false,
1282
- internalType: "uint256"
1283
- }
1284
- ],
1285
- anonymous: false
1286
- },
1287
- {
1288
- type: "event",
1289
- name: "LiquidateCreditAccount",
1290
- inputs: [
1291
- {
1292
- name: "creditAccount",
1293
- type: "address",
1294
- indexed: true,
1295
- internalType: "address"
1296
- },
1297
- {
1298
- name: "liquidator",
1299
- type: "address",
1300
- indexed: true,
1301
- internalType: "address"
1302
- },
1303
- { name: "to", type: "address", indexed: false, internalType: "address" },
1304
- {
1305
- name: "remainingFunds",
1306
- type: "uint256",
1307
- indexed: false,
1308
- internalType: "uint256"
1309
- }
1310
- ],
1311
- anonymous: false
1312
- },
1313
- {
1314
- type: "event",
1315
- name: "OpenCreditAccount",
1316
- inputs: [
1317
- {
1318
- name: "creditAccount",
1319
- type: "address",
1320
- indexed: true,
1321
- internalType: "address"
1322
- },
1323
- {
1324
- name: "onBehalfOf",
1325
- type: "address",
1326
- indexed: true,
1327
- internalType: "address"
1328
- },
1329
- {
1330
- name: "caller",
1331
- type: "address",
1332
- indexed: true,
1333
- internalType: "address"
1334
- },
1335
- {
1336
- name: "referralCode",
1337
- type: "uint256",
1338
- indexed: false,
1339
- internalType: "uint256"
1340
- }
1341
- ],
1342
- anonymous: false
1343
- },
1344
- {
1345
- type: "event",
1346
- name: "StartMultiCall",
1347
- inputs: [
1348
- {
1349
- name: "creditAccount",
1350
- type: "address",
1351
- indexed: true,
1352
- internalType: "address"
1353
- },
1354
- {
1355
- name: "caller",
1356
- type: "address",
1357
- indexed: true,
1358
- internalType: "address"
1359
- }
1360
- ],
1361
- anonymous: false
1362
- },
1363
- {
1364
- type: "event",
1365
- name: "WithdrawCollateral",
1366
- inputs: [
1367
- {
1368
- name: "creditAccount",
1369
- type: "address",
1370
- indexed: true,
1371
- internalType: "address"
1372
- },
1373
- {
1374
- name: "token",
1375
- type: "address",
1376
- indexed: true,
1377
- internalType: "address"
1378
- },
1379
- {
1380
- name: "amount",
1381
- type: "uint256",
1382
- indexed: false,
1383
- internalType: "uint256"
1384
- },
1385
- { name: "to", type: "address", indexed: false, internalType: "address" }
1386
- ],
1387
- anonymous: false
1388
- }
1389
- ];
1390
- const iCreditFacadeV300MulticallAbi = [
1391
- {
1392
- type: "function",
1393
- name: "addCollateral",
1394
- inputs: [
1395
- { name: "token", type: "address", internalType: "address" },
1396
- { name: "amount", type: "uint256", internalType: "uint256" }
1397
- ],
1398
- outputs: [],
1399
- stateMutability: "nonpayable"
1400
- },
1401
- {
1402
- type: "function",
1403
- name: "addCollateralWithPermit",
1404
- inputs: [
1405
- { name: "token", type: "address", internalType: "address" },
1406
- { name: "amount", type: "uint256", internalType: "uint256" },
1407
- { name: "deadline", type: "uint256", internalType: "uint256" },
1408
- { name: "v", type: "uint8", internalType: "uint8" },
1409
- { name: "r", type: "bytes32", internalType: "bytes32" },
1410
- { name: "s", type: "bytes32", internalType: "bytes32" }
1411
- ],
1412
- outputs: [],
1413
- stateMutability: "nonpayable"
1414
- },
1415
- {
1416
- type: "function",
1417
- name: "compareBalances",
1418
- inputs: [],
1419
- outputs: [],
1420
- stateMutability: "nonpayable"
1421
- },
1422
- {
1423
- type: "function",
1424
- name: "decreaseDebt",
1425
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
1426
- outputs: [],
1427
- stateMutability: "nonpayable"
1428
- },
1429
- {
1430
- type: "function",
1431
- name: "disableToken",
1432
- inputs: [{ name: "token", type: "address", internalType: "address" }],
1433
- outputs: [],
1434
- stateMutability: "nonpayable"
1435
- },
1436
- {
1437
- type: "function",
1438
- name: "enableToken",
1439
- inputs: [{ name: "token", type: "address", internalType: "address" }],
1440
- outputs: [],
1441
- stateMutability: "nonpayable"
1442
- },
1443
- {
1444
- type: "function",
1445
- name: "increaseDebt",
1446
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
1447
- outputs: [],
1448
- stateMutability: "nonpayable"
1449
- },
1450
- {
1451
- type: "function",
1452
- name: "onDemandPriceUpdate",
1453
- inputs: [
1454
- { name: "token", type: "address", internalType: "address" },
1455
- { name: "reserve", type: "bool", internalType: "bool" },
1456
- { name: "data", type: "bytes", internalType: "bytes" }
1457
- ],
1458
- outputs: [],
1459
- stateMutability: "nonpayable"
1460
- },
1461
- {
1462
- type: "function",
1463
- name: "revokeAdapterAllowances",
1464
- inputs: [
1465
- {
1466
- name: "revocations",
1467
- type: "tuple[]",
1468
- internalType: "struct RevocationPair[]",
1469
- components: [
1470
- { name: "spender", type: "address", internalType: "address" },
1471
- { name: "token", type: "address", internalType: "address" }
1472
- ]
1473
- }
1474
- ],
1475
- outputs: [],
1476
- stateMutability: "nonpayable"
1477
- },
1478
- {
1479
- type: "function",
1480
- name: "setFullCheckParams",
1481
- inputs: [
1482
- { name: "collateralHints", type: "uint256[]", internalType: "uint256[]" },
1483
- { name: "minHealthFactor", type: "uint16", internalType: "uint16" }
1484
- ],
1485
- outputs: [],
1486
- stateMutability: "nonpayable"
1487
- },
1488
- {
1489
- type: "function",
1490
- name: "storeExpectedBalances",
1491
- inputs: [
1492
- {
1493
- name: "balanceDeltas",
1494
- type: "tuple[]",
1495
- internalType: "struct BalanceDelta[]",
1496
- components: [
1497
- { name: "token", type: "address", internalType: "address" },
1498
- { name: "amount", type: "int256", internalType: "int256" }
1499
- ]
1500
- }
1501
- ],
1502
- outputs: [],
1503
- stateMutability: "nonpayable"
1504
- },
1505
- {
1506
- type: "function",
1507
- name: "updateQuota",
1508
- inputs: [
1509
- { name: "token", type: "address", internalType: "address" },
1510
- { name: "quotaChange", type: "int96", internalType: "int96" },
1511
- { name: "minQuota", type: "uint96", internalType: "uint96" }
1512
- ],
1513
- outputs: [],
1514
- stateMutability: "nonpayable"
1515
- },
1516
- {
1517
- type: "function",
1518
- name: "withdrawCollateral",
1519
- inputs: [
1520
- { name: "token", type: "address", internalType: "address" },
1521
- { name: "amount", type: "uint256", internalType: "uint256" },
1522
- { name: "to", type: "address", internalType: "address" }
1523
- ],
1524
- outputs: [],
1525
- stateMutability: "nonpayable"
1526
- }
1527
- ];
1528
- const iCreditManagerV300Abi = [
1529
- {
1530
- type: "function",
1531
- name: "accountFactory",
1532
- inputs: [],
1533
- outputs: [{ name: "", type: "address", internalType: "address" }],
1534
- stateMutability: "view"
1535
- },
1536
- {
1537
- type: "function",
1538
- name: "adapterToContract",
1539
- inputs: [{ name: "adapter", type: "address", internalType: "address" }],
1540
- outputs: [
1541
- { name: "targetContract", type: "address", internalType: "address" }
1542
- ],
1543
- stateMutability: "view"
1544
- },
1545
- {
1546
- type: "function",
1547
- name: "addCollateral",
1548
- inputs: [
1549
- { name: "payer", type: "address", internalType: "address" },
1550
- { name: "creditAccount", type: "address", internalType: "address" },
1551
- { name: "token", type: "address", internalType: "address" },
1552
- { name: "amount", type: "uint256", internalType: "uint256" }
1553
- ],
1554
- outputs: [
1555
- { name: "tokensToEnable", type: "uint256", internalType: "uint256" }
1556
- ],
1557
- stateMutability: "nonpayable"
1558
- },
1559
- {
1560
- type: "function",
1561
- name: "addToken",
1562
- inputs: [{ name: "token", type: "address", internalType: "address" }],
1563
- outputs: [],
1564
- stateMutability: "nonpayable"
1565
- },
1566
- {
1567
- type: "function",
1568
- name: "addressProvider",
1569
- inputs: [],
1570
- outputs: [{ name: "", type: "address", internalType: "address" }],
1571
- stateMutability: "view"
1572
- },
1573
- {
1574
- type: "function",
1575
- name: "approveCreditAccount",
1576
- inputs: [
1577
- { name: "token", type: "address", internalType: "address" },
1578
- { name: "amount", type: "uint256", internalType: "uint256" }
1579
- ],
1580
- outputs: [],
1581
- stateMutability: "nonpayable"
1582
- },
1583
- {
1584
- type: "function",
1585
- name: "approveToken",
1586
- inputs: [
1587
- { name: "creditAccount", type: "address", internalType: "address" },
1588
- { name: "token", type: "address", internalType: "address" },
1589
- { name: "spender", type: "address", internalType: "address" },
1590
- { name: "amount", type: "uint256", internalType: "uint256" }
1591
- ],
1592
- outputs: [],
1593
- stateMutability: "nonpayable"
1594
- },
1595
- {
1596
- type: "function",
1597
- name: "calcDebtAndCollateral",
1598
- inputs: [
1599
- { name: "creditAccount", type: "address", internalType: "address" },
1600
- { name: "task", type: "uint8", internalType: "enum CollateralCalcTask" }
1601
- ],
1602
- outputs: [
1603
- {
1604
- name: "cdd",
1605
- type: "tuple",
1606
- internalType: "struct CollateralDebtData",
1607
- components: [
1608
- { name: "debt", type: "uint256", internalType: "uint256" },
1609
- {
1610
- name: "cumulativeIndexNow",
1611
- type: "uint256",
1612
- internalType: "uint256"
1613
- },
1614
- {
1615
- name: "cumulativeIndexLastUpdate",
1616
- type: "uint256",
1617
- internalType: "uint256"
1618
- },
1619
- {
1620
- name: "cumulativeQuotaInterest",
1621
- type: "uint128",
1622
- internalType: "uint128"
1623
- },
1624
- { name: "accruedInterest", type: "uint256", internalType: "uint256" },
1625
- { name: "accruedFees", type: "uint256", internalType: "uint256" },
1626
- { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
1627
- { name: "totalValue", type: "uint256", internalType: "uint256" },
1628
- { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
1629
- { name: "twvUSD", type: "uint256", internalType: "uint256" },
1630
- {
1631
- name: "enabledTokensMask",
1632
- type: "uint256",
1633
- internalType: "uint256"
1634
- },
1635
- {
1636
- name: "quotedTokensMask",
1637
- type: "uint256",
1638
- internalType: "uint256"
1639
- },
1640
- {
1641
- name: "quotedTokens",
1642
- type: "address[]",
1643
- internalType: "address[]"
1644
- },
1645
- {
1646
- name: "_poolQuotaKeeper",
1647
- type: "address",
1648
- internalType: "address"
1649
- }
1650
- ]
1651
- }
1652
- ],
1653
- stateMutability: "view"
1654
- },
1655
- {
1656
- type: "function",
1657
- name: "closeCreditAccount",
1658
- inputs: [
1659
- { name: "creditAccount", type: "address", internalType: "address" }
1660
- ],
1661
- outputs: [],
1662
- stateMutability: "nonpayable"
1663
- },
1664
- {
1665
- type: "function",
1666
- name: "collateralTokenByMask",
1667
- inputs: [{ name: "tokenMask", type: "uint256", internalType: "uint256" }],
1668
- outputs: [
1669
- { name: "token", type: "address", internalType: "address" },
1670
- { name: "liquidationThreshold", type: "uint16", internalType: "uint16" }
1671
- ],
1672
- stateMutability: "view"
1673
- },
1674
- {
1675
- type: "function",
1676
- name: "collateralTokensCount",
1677
- inputs: [],
1678
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
1679
- stateMutability: "view"
1680
- },
1681
- {
1682
- type: "function",
1683
- name: "contractToAdapter",
1684
- inputs: [
1685
- { name: "targetContract", type: "address", internalType: "address" }
1686
- ],
1687
- outputs: [{ name: "adapter", type: "address", internalType: "address" }],
1688
- stateMutability: "view"
1689
- },
1690
- {
1691
- type: "function",
1692
- name: "creditAccountInfo",
1693
- inputs: [
1694
- { name: "creditAccount", type: "address", internalType: "address" }
1695
- ],
1696
- outputs: [
1697
- { name: "debt", type: "uint256", internalType: "uint256" },
1698
- {
1699
- name: "cumulativeIndexLastUpdate",
1700
- type: "uint256",
1701
- internalType: "uint256"
1702
- },
1703
- {
1704
- name: "cumulativeQuotaInterest",
1705
- type: "uint128",
1706
- internalType: "uint128"
1707
- },
1708
- { name: "quotaFees", type: "uint128", internalType: "uint128" },
1709
- { name: "enabledTokensMask", type: "uint256", internalType: "uint256" },
1710
- { name: "flags", type: "uint16", internalType: "uint16" },
1711
- { name: "lastDebtUpdate", type: "uint64", internalType: "uint64" },
1712
- { name: "borrower", type: "address", internalType: "address" }
1713
- ],
1714
- stateMutability: "view"
1715
- },
1716
- {
1717
- type: "function",
1718
- name: "creditAccounts",
1719
- inputs: [
1720
- { name: "offset", type: "uint256", internalType: "uint256" },
1721
- { name: "limit", type: "uint256", internalType: "uint256" }
1722
- ],
1723
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
1724
- stateMutability: "view"
1725
- },
1726
- {
1727
- type: "function",
1728
- name: "creditAccounts",
1729
- inputs: [],
1730
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
1731
- stateMutability: "view"
1732
- },
1733
- {
1734
- type: "function",
1735
- name: "creditAccountsLen",
1736
- inputs: [],
1737
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
1738
- stateMutability: "view"
1739
- },
1740
- {
1741
- type: "function",
1742
- name: "creditConfigurator",
1743
- inputs: [],
1744
- outputs: [{ name: "", type: "address", internalType: "address" }],
1745
- stateMutability: "view"
1746
- },
1747
- {
1748
- type: "function",
1749
- name: "creditFacade",
1750
- inputs: [],
1751
- outputs: [{ name: "", type: "address", internalType: "address" }],
1752
- stateMutability: "view"
1753
- },
1754
- {
1755
- type: "function",
1756
- name: "enabledTokensMaskOf",
1757
- inputs: [
1758
- { name: "creditAccount", type: "address", internalType: "address" }
1759
- ],
1760
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
1761
- stateMutability: "view"
1762
- },
1763
- {
1764
- type: "function",
1765
- name: "execute",
1766
- inputs: [{ name: "data", type: "bytes", internalType: "bytes" }],
1767
- outputs: [{ name: "result", type: "bytes", internalType: "bytes" }],
1768
- stateMutability: "nonpayable"
1769
- },
1770
- {
1771
- type: "function",
1772
- name: "externalCall",
1773
- inputs: [
1774
- { name: "creditAccount", type: "address", internalType: "address" },
1775
- { name: "target", type: "address", internalType: "address" },
1776
- { name: "callData", type: "bytes", internalType: "bytes" }
1777
- ],
1778
- outputs: [{ name: "result", type: "bytes", internalType: "bytes" }],
1779
- stateMutability: "nonpayable"
1780
- },
1781
- {
1782
- type: "function",
1783
- name: "fees",
1784
- inputs: [],
1785
- outputs: [
1786
- { name: "feeInterest", type: "uint16", internalType: "uint16" },
1787
- { name: "feeLiquidation", type: "uint16", internalType: "uint16" },
1788
- { name: "liquidationDiscount", type: "uint16", internalType: "uint16" },
1789
- { name: "feeLiquidationExpired", type: "uint16", internalType: "uint16" },
1790
- {
1791
- name: "liquidationDiscountExpired",
1792
- type: "uint16",
1793
- internalType: "uint16"
1794
- }
1795
- ],
1796
- stateMutability: "view"
1797
- },
1798
- {
1799
- type: "function",
1800
- name: "flagsOf",
1801
- inputs: [
1802
- { name: "creditAccount", type: "address", internalType: "address" }
1803
- ],
1804
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
1805
- stateMutability: "view"
1806
- },
1807
- {
1808
- type: "function",
1809
- name: "fullCollateralCheck",
1810
- inputs: [
1811
- { name: "creditAccount", type: "address", internalType: "address" },
1812
- { name: "enabledTokensMask", type: "uint256", internalType: "uint256" },
1813
- { name: "collateralHints", type: "uint256[]", internalType: "uint256[]" },
1814
- { name: "minHealthFactor", type: "uint16", internalType: "uint16" },
1815
- { name: "useSafePrices", type: "bool", internalType: "bool" }
1816
- ],
1817
- outputs: [
1818
- {
1819
- name: "enabledTokensMaskAfter",
1820
- type: "uint256",
1821
- internalType: "uint256"
1822
- }
1823
- ],
1824
- stateMutability: "nonpayable"
1825
- },
1826
- {
1827
- type: "function",
1828
- name: "getActiveCreditAccountOrRevert",
1829
- inputs: [],
1830
- outputs: [
1831
- { name: "creditAccount", type: "address", internalType: "address" }
1832
- ],
1833
- stateMutability: "view"
1834
- },
1835
- {
1836
- type: "function",
1837
- name: "getBorrowerOrRevert",
1838
- inputs: [
1839
- { name: "creditAccount", type: "address", internalType: "address" }
1840
- ],
1841
- outputs: [{ name: "borrower", type: "address", internalType: "address" }],
1842
- stateMutability: "view"
1843
- },
1844
- {
1845
- type: "function",
1846
- name: "getTokenByMask",
1847
- inputs: [{ name: "tokenMask", type: "uint256", internalType: "uint256" }],
1848
- outputs: [{ name: "token", type: "address", internalType: "address" }],
1849
- stateMutability: "view"
1850
- },
1851
- {
1852
- type: "function",
1853
- name: "getTokenMaskOrRevert",
1854
- inputs: [{ name: "token", type: "address", internalType: "address" }],
1855
- outputs: [{ name: "tokenMask", type: "uint256", internalType: "uint256" }],
1856
- stateMutability: "view"
1857
- },
1858
- {
1859
- type: "function",
1860
- name: "isLiquidatable",
1861
- inputs: [
1862
- { name: "creditAccount", type: "address", internalType: "address" },
1863
- { name: "minHealthFactor", type: "uint16", internalType: "uint16" }
1864
- ],
1865
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
1866
- stateMutability: "view"
1867
- },
1868
- {
1869
- type: "function",
1870
- name: "liquidateCreditAccount",
1871
- inputs: [
1872
- { name: "creditAccount", type: "address", internalType: "address" },
1873
- {
1874
- name: "collateralDebtData",
1875
- type: "tuple",
1876
- internalType: "struct CollateralDebtData",
1877
- components: [
1878
- { name: "debt", type: "uint256", internalType: "uint256" },
1879
- {
1880
- name: "cumulativeIndexNow",
1881
- type: "uint256",
1882
- internalType: "uint256"
1883
- },
1884
- {
1885
- name: "cumulativeIndexLastUpdate",
1886
- type: "uint256",
1887
- internalType: "uint256"
1888
- },
1889
- {
1890
- name: "cumulativeQuotaInterest",
1891
- type: "uint128",
1892
- internalType: "uint128"
1893
- },
1894
- { name: "accruedInterest", type: "uint256", internalType: "uint256" },
1895
- { name: "accruedFees", type: "uint256", internalType: "uint256" },
1896
- { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
1897
- { name: "totalValue", type: "uint256", internalType: "uint256" },
1898
- { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
1899
- { name: "twvUSD", type: "uint256", internalType: "uint256" },
1900
- {
1901
- name: "enabledTokensMask",
1902
- type: "uint256",
1903
- internalType: "uint256"
1904
- },
1905
- {
1906
- name: "quotedTokensMask",
1907
- type: "uint256",
1908
- internalType: "uint256"
1909
- },
1910
- {
1911
- name: "quotedTokens",
1912
- type: "address[]",
1913
- internalType: "address[]"
1914
- },
1915
- {
1916
- name: "_poolQuotaKeeper",
1917
- type: "address",
1918
- internalType: "address"
1919
- }
1920
- ]
1921
- },
1922
- { name: "to", type: "address", internalType: "address" },
1923
- { name: "isExpired", type: "bool", internalType: "bool" }
1924
- ],
1925
- outputs: [
1926
- { name: "remainingFunds", type: "uint256", internalType: "uint256" },
1927
- { name: "loss", type: "uint256", internalType: "uint256" }
1928
- ],
1929
- stateMutability: "nonpayable"
1930
- },
1931
- {
1932
- type: "function",
1933
- name: "liquidationThresholds",
1934
- inputs: [{ name: "token", type: "address", internalType: "address" }],
1935
- outputs: [{ name: "lt", type: "uint16", internalType: "uint16" }],
1936
- stateMutability: "view"
1937
- },
1938
- {
1939
- type: "function",
1940
- name: "ltParams",
1941
- inputs: [{ name: "token", type: "address", internalType: "address" }],
1942
- outputs: [
1943
- { name: "ltInitial", type: "uint16", internalType: "uint16" },
1944
- { name: "ltFinal", type: "uint16", internalType: "uint16" },
1945
- { name: "timestampRampStart", type: "uint40", internalType: "uint40" },
1946
- { name: "rampDuration", type: "uint24", internalType: "uint24" }
1947
- ],
1948
- stateMutability: "view"
1949
- },
1950
- {
1951
- type: "function",
1952
- name: "manageDebt",
1953
- inputs: [
1954
- { name: "creditAccount", type: "address", internalType: "address" },
1955
- { name: "amount", type: "uint256", internalType: "uint256" },
1956
- { name: "enabledTokensMask", type: "uint256", internalType: "uint256" },
1957
- { name: "action", type: "uint8", internalType: "enum ManageDebtAction" }
1958
- ],
1959
- outputs: [
1960
- { name: "newDebt", type: "uint256", internalType: "uint256" },
1961
- { name: "tokensToEnable", type: "uint256", internalType: "uint256" },
1962
- { name: "tokensToDisable", type: "uint256", internalType: "uint256" }
1963
- ],
1964
- stateMutability: "nonpayable"
1965
- },
1966
- {
1967
- type: "function",
1968
- name: "maxEnabledTokens",
1969
- inputs: [],
1970
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
1971
- stateMutability: "view"
1972
- },
1973
- {
1974
- type: "function",
1975
- name: "name",
1976
- inputs: [],
1977
- outputs: [{ name: "", type: "string", internalType: "string" }],
1978
- stateMutability: "view"
1979
- },
1980
- {
1981
- type: "function",
1982
- name: "openCreditAccount",
1983
- inputs: [{ name: "onBehalfOf", type: "address", internalType: "address" }],
1984
- outputs: [{ name: "", type: "address", internalType: "address" }],
1985
- stateMutability: "nonpayable"
1986
- },
1987
- {
1988
- type: "function",
1989
- name: "pool",
1990
- inputs: [],
1991
- outputs: [{ name: "", type: "address", internalType: "address" }],
1992
- stateMutability: "view"
1993
- },
1994
- {
1995
- type: "function",
1996
- name: "poolQuotaKeeper",
1997
- inputs: [],
1998
- outputs: [{ name: "", type: "address", internalType: "address" }],
1999
- stateMutability: "view"
2000
- },
2001
- {
2002
- type: "function",
2003
- name: "priceOracle",
2004
- inputs: [],
2005
- outputs: [{ name: "", type: "address", internalType: "address" }],
2006
- stateMutability: "view"
2007
- },
2008
- {
2009
- type: "function",
2010
- name: "quotedTokensMask",
2011
- inputs: [],
2012
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2013
- stateMutability: "view"
2014
- },
2015
- {
2016
- type: "function",
2017
- name: "revokeAdapterAllowances",
2018
- inputs: [
2019
- { name: "creditAccount", type: "address", internalType: "address" },
2020
- {
2021
- name: "revocations",
2022
- type: "tuple[]",
2023
- internalType: "struct RevocationPair[]",
2024
- components: [
2025
- { name: "spender", type: "address", internalType: "address" },
2026
- { name: "token", type: "address", internalType: "address" }
2027
- ]
2028
- }
2029
- ],
2030
- outputs: [],
2031
- stateMutability: "nonpayable"
2032
- },
2033
- {
2034
- type: "function",
2035
- name: "setActiveCreditAccount",
2036
- inputs: [
2037
- { name: "creditAccount", type: "address", internalType: "address" }
2038
- ],
2039
- outputs: [],
2040
- stateMutability: "nonpayable"
2041
- },
2042
- {
2043
- type: "function",
2044
- name: "setCollateralTokenData",
2045
- inputs: [
2046
- { name: "token", type: "address", internalType: "address" },
2047
- { name: "ltInitial", type: "uint16", internalType: "uint16" },
2048
- { name: "ltFinal", type: "uint16", internalType: "uint16" },
2049
- { name: "timestampRampStart", type: "uint40", internalType: "uint40" },
2050
- { name: "rampDuration", type: "uint24", internalType: "uint24" }
2051
- ],
2052
- outputs: [],
2053
- stateMutability: "nonpayable"
2054
- },
2055
- {
2056
- type: "function",
2057
- name: "setContractAllowance",
2058
- inputs: [
2059
- { name: "adapter", type: "address", internalType: "address" },
2060
- { name: "targetContract", type: "address", internalType: "address" }
2061
- ],
2062
- outputs: [],
2063
- stateMutability: "nonpayable"
2064
- },
2065
- {
2066
- type: "function",
2067
- name: "setCreditConfigurator",
2068
- inputs: [
2069
- { name: "creditConfigurator", type: "address", internalType: "address" }
2070
- ],
2071
- outputs: [],
2072
- stateMutability: "nonpayable"
2073
- },
2074
- {
2075
- type: "function",
2076
- name: "setCreditFacade",
2077
- inputs: [
2078
- { name: "creditFacade", type: "address", internalType: "address" }
2079
- ],
2080
- outputs: [],
2081
- stateMutability: "nonpayable"
2082
- },
2083
- {
2084
- type: "function",
2085
- name: "setFees",
2086
- inputs: [
2087
- { name: "feeInterest", type: "uint16", internalType: "uint16" },
2088
- { name: "feeLiquidation", type: "uint16", internalType: "uint16" },
2089
- { name: "liquidationDiscount", type: "uint16", internalType: "uint16" },
2090
- { name: "feeLiquidationExpired", type: "uint16", internalType: "uint16" },
2091
- {
2092
- name: "liquidationDiscountExpired",
2093
- type: "uint16",
2094
- internalType: "uint16"
2095
- }
2096
- ],
2097
- outputs: [],
2098
- stateMutability: "nonpayable"
2099
- },
2100
- {
2101
- type: "function",
2102
- name: "setFlagFor",
2103
- inputs: [
2104
- { name: "creditAccount", type: "address", internalType: "address" },
2105
- { name: "flag", type: "uint16", internalType: "uint16" },
2106
- { name: "value", type: "bool", internalType: "bool" }
2107
- ],
2108
- outputs: [],
2109
- stateMutability: "nonpayable"
2110
- },
2111
- {
2112
- type: "function",
2113
- name: "setMaxEnabledTokens",
2114
- inputs: [
2115
- { name: "maxEnabledTokens", type: "uint8", internalType: "uint8" }
2116
- ],
2117
- outputs: [],
2118
- stateMutability: "nonpayable"
2119
- },
2120
- {
2121
- type: "function",
2122
- name: "setPriceOracle",
2123
- inputs: [{ name: "priceOracle", type: "address", internalType: "address" }],
2124
- outputs: [],
2125
- stateMutability: "nonpayable"
2126
- },
2127
- {
2128
- type: "function",
2129
- name: "setQuotedMask",
2130
- inputs: [
2131
- { name: "quotedTokensMask", type: "uint256", internalType: "uint256" }
2132
- ],
2133
- outputs: [],
2134
- stateMutability: "nonpayable"
2135
- },
2136
- {
2137
- type: "function",
2138
- name: "underlying",
2139
- inputs: [],
2140
- outputs: [{ name: "", type: "address", internalType: "address" }],
2141
- stateMutability: "view"
2142
- },
2143
- {
2144
- type: "function",
2145
- name: "updateQuota",
2146
- inputs: [
2147
- { name: "creditAccount", type: "address", internalType: "address" },
2148
- { name: "token", type: "address", internalType: "address" },
2149
- { name: "quotaChange", type: "int96", internalType: "int96" },
2150
- { name: "minQuota", type: "uint96", internalType: "uint96" },
2151
- { name: "maxQuota", type: "uint96", internalType: "uint96" }
2152
- ],
2153
- outputs: [
2154
- { name: "tokensToEnable", type: "uint256", internalType: "uint256" },
2155
- { name: "tokensToDisable", type: "uint256", internalType: "uint256" }
2156
- ],
2157
- stateMutability: "nonpayable"
2158
- },
2159
- {
2160
- type: "function",
2161
- name: "version",
2162
- inputs: [],
2163
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2164
- stateMutability: "view"
2165
- },
2166
- {
2167
- type: "function",
2168
- name: "withdrawCollateral",
2169
- inputs: [
2170
- { name: "creditAccount", type: "address", internalType: "address" },
2171
- { name: "token", type: "address", internalType: "address" },
2172
- { name: "amount", type: "uint256", internalType: "uint256" },
2173
- { name: "to", type: "address", internalType: "address" }
2174
- ],
2175
- outputs: [
2176
- { name: "tokensToDisable", type: "uint256", internalType: "uint256" }
2177
- ],
2178
- stateMutability: "nonpayable"
2179
- },
2180
- {
2181
- type: "event",
2182
- name: "SetCreditConfigurator",
2183
- inputs: [
2184
- {
2185
- name: "newConfigurator",
2186
- type: "address",
2187
- indexed: true,
2188
- internalType: "address"
2189
- }
2190
- ],
2191
- anonymous: false
2192
- }
2193
- ];
2194
- const iGaugeV300Abi = [
2195
- {
2196
- type: "function",
2197
- name: "addQuotaToken",
2198
- inputs: [
2199
- { name: "token", type: "address", internalType: "address" },
2200
- { name: "minRate", type: "uint16", internalType: "uint16" },
2201
- { name: "maxRate", type: "uint16", internalType: "uint16" }
2202
- ],
2203
- outputs: [],
2204
- stateMutability: "nonpayable"
2205
- },
2206
- {
2207
- type: "function",
2208
- name: "changeQuotaMaxRate",
2209
- inputs: [
2210
- { name: "token", type: "address", internalType: "address" },
2211
- { name: "maxRate", type: "uint16", internalType: "uint16" }
2212
- ],
2213
- outputs: [],
2214
- stateMutability: "nonpayable"
2215
- },
2216
- {
2217
- type: "function",
2218
- name: "changeQuotaMinRate",
2219
- inputs: [
2220
- { name: "token", type: "address", internalType: "address" },
2221
- { name: "minRate", type: "uint16", internalType: "uint16" }
2222
- ],
2223
- outputs: [],
2224
- stateMutability: "nonpayable"
2225
- },
2226
- {
2227
- type: "function",
2228
- name: "epochFrozen",
2229
- inputs: [],
2230
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
2231
- stateMutability: "view"
2232
- },
2233
- {
2234
- type: "function",
2235
- name: "epochLastUpdate",
2236
- inputs: [],
2237
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
2238
- stateMutability: "view"
2239
- },
2240
- {
2241
- type: "function",
2242
- name: "getRates",
2243
- inputs: [{ name: "tokens", type: "address[]", internalType: "address[]" }],
2244
- outputs: [{ name: "rates", type: "uint16[]", internalType: "uint16[]" }],
2245
- stateMutability: "view"
2246
- },
2247
- {
2248
- type: "function",
2249
- name: "isTokenAdded",
2250
- inputs: [{ name: "token", type: "address", internalType: "address" }],
2251
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
2252
- stateMutability: "view"
2253
- },
2254
- {
2255
- type: "function",
2256
- name: "pool",
2257
- inputs: [],
2258
- outputs: [{ name: "", type: "address", internalType: "address" }],
2259
- stateMutability: "view"
2260
- },
2261
- {
2262
- type: "function",
2263
- name: "quotaRateParams",
2264
- inputs: [{ name: "token", type: "address", internalType: "address" }],
2265
- outputs: [
2266
- { name: "minRate", type: "uint16", internalType: "uint16" },
2267
- { name: "maxRate", type: "uint16", internalType: "uint16" },
2268
- { name: "totalVotesLpSide", type: "uint96", internalType: "uint96" },
2269
- { name: "totalVotesCaSide", type: "uint96", internalType: "uint96" }
2270
- ],
2271
- stateMutability: "view"
2272
- },
2273
- {
2274
- type: "function",
2275
- name: "setFrozenEpoch",
2276
- inputs: [{ name: "status", type: "bool", internalType: "bool" }],
2277
- outputs: [],
2278
- stateMutability: "nonpayable"
2279
- },
2280
- {
2281
- type: "function",
2282
- name: "unvote",
2283
- inputs: [
2284
- { name: "user", type: "address", internalType: "address" },
2285
- { name: "votes", type: "uint96", internalType: "uint96" },
2286
- { name: "extraData", type: "bytes", internalType: "bytes" }
2287
- ],
2288
- outputs: [],
2289
- stateMutability: "nonpayable"
2290
- },
2291
- {
2292
- type: "function",
2293
- name: "updateEpoch",
2294
- inputs: [],
2295
- outputs: [],
2296
- stateMutability: "nonpayable"
2297
- },
2298
- {
2299
- type: "function",
2300
- name: "userTokenVotes",
2301
- inputs: [
2302
- { name: "user", type: "address", internalType: "address" },
2303
- { name: "token", type: "address", internalType: "address" }
2304
- ],
2305
- outputs: [
2306
- { name: "votesLpSide", type: "uint96", internalType: "uint96" },
2307
- { name: "votesCaSide", type: "uint96", internalType: "uint96" }
2308
- ],
2309
- stateMutability: "view"
2310
- },
2311
- {
2312
- type: "function",
2313
- name: "version",
2314
- inputs: [],
2315
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2316
- stateMutability: "view"
2317
- },
2318
- {
2319
- type: "function",
2320
- name: "vote",
2321
- inputs: [
2322
- { name: "user", type: "address", internalType: "address" },
2323
- { name: "votes", type: "uint96", internalType: "uint96" },
2324
- { name: "extraData", type: "bytes", internalType: "bytes" }
2325
- ],
2326
- outputs: [],
2327
- stateMutability: "nonpayable"
2328
- },
2329
- {
2330
- type: "function",
2331
- name: "voter",
2332
- inputs: [],
2333
- outputs: [{ name: "", type: "address", internalType: "address" }],
2334
- stateMutability: "view"
2335
- },
2336
- {
2337
- type: "event",
2338
- name: "AddQuotaToken",
2339
- inputs: [
2340
- {
2341
- name: "token",
2342
- type: "address",
2343
- indexed: true,
2344
- internalType: "address"
2345
- },
2346
- {
2347
- name: "minRate",
2348
- type: "uint16",
2349
- indexed: false,
2350
- internalType: "uint16"
2351
- },
2352
- {
2353
- name: "maxRate",
2354
- type: "uint16",
2355
- indexed: false,
2356
- internalType: "uint16"
2357
- }
2358
- ],
2359
- anonymous: false
2360
- },
2361
- {
2362
- type: "event",
2363
- name: "SetFrozenEpoch",
2364
- inputs: [
2365
- { name: "status", type: "bool", indexed: false, internalType: "bool" }
2366
- ],
2367
- anonymous: false
2368
- },
2369
- {
2370
- type: "event",
2371
- name: "SetQuotaTokenParams",
2372
- inputs: [
2373
- {
2374
- name: "token",
2375
- type: "address",
2376
- indexed: true,
2377
- internalType: "address"
2378
- },
2379
- {
2380
- name: "minRate",
2381
- type: "uint16",
2382
- indexed: false,
2383
- internalType: "uint16"
2384
- },
2385
- {
2386
- name: "maxRate",
2387
- type: "uint16",
2388
- indexed: false,
2389
- internalType: "uint16"
2390
- }
2391
- ],
2392
- anonymous: false
2393
- },
2394
- {
2395
- type: "event",
2396
- name: "Unvote",
2397
- inputs: [
2398
- { name: "user", type: "address", indexed: true, internalType: "address" },
2399
- {
2400
- name: "token",
2401
- type: "address",
2402
- indexed: true,
2403
- internalType: "address"
2404
- },
2405
- { name: "votes", type: "uint96", indexed: false, internalType: "uint96" },
2406
- { name: "lpSide", type: "bool", indexed: false, internalType: "bool" }
2407
- ],
2408
- anonymous: false
2409
- },
2410
- {
2411
- type: "event",
2412
- name: "UpdateEpoch",
2413
- inputs: [
2414
- {
2415
- name: "epochNow",
2416
- type: "uint16",
2417
- indexed: false,
2418
- internalType: "uint16"
2419
- }
2420
- ],
2421
- anonymous: false
2422
- },
2423
- {
2424
- type: "event",
2425
- name: "Vote",
2426
- inputs: [
2427
- { name: "user", type: "address", indexed: true, internalType: "address" },
2428
- {
2429
- name: "token",
2430
- type: "address",
2431
- indexed: true,
2432
- internalType: "address"
2433
- },
2434
- { name: "votes", type: "uint96", indexed: false, internalType: "uint96" },
2435
- { name: "lpSide", type: "bool", indexed: false, internalType: "bool" }
2436
- ],
2437
- anonymous: false
2438
- }
2439
- ];
2440
- const iGearStakingV300Abi = [
2441
- {
2442
- type: "function",
2443
- name: "allowedVotingContract",
2444
- inputs: [{ name: "", type: "address", internalType: "address" }],
2445
- outputs: [
2446
- { name: "", type: "uint8", internalType: "enum VotingContractStatus" }
2447
- ],
2448
- stateMutability: "view"
2449
- },
2450
- {
2451
- type: "function",
2452
- name: "availableBalance",
2453
- inputs: [{ name: "user", type: "address", internalType: "address" }],
2454
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2455
- stateMutability: "view"
2456
- },
2457
- {
2458
- type: "function",
2459
- name: "balanceOf",
2460
- inputs: [{ name: "user", type: "address", internalType: "address" }],
2461
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2462
- stateMutability: "view"
2463
- },
2464
- {
2465
- type: "function",
2466
- name: "claimWithdrawals",
2467
- inputs: [{ name: "to", type: "address", internalType: "address" }],
2468
- outputs: [],
2469
- stateMutability: "nonpayable"
2470
- },
2471
- {
2472
- type: "function",
2473
- name: "deposit",
2474
- inputs: [
2475
- { name: "amount", type: "uint96", internalType: "uint96" },
2476
- {
2477
- name: "votes",
2478
- type: "tuple[]",
2479
- internalType: "struct MultiVote[]",
2480
- components: [
2481
- { name: "votingContract", type: "address", internalType: "address" },
2482
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2483
- { name: "isIncrease", type: "bool", internalType: "bool" },
2484
- { name: "extraData", type: "bytes", internalType: "bytes" }
2485
- ]
2486
- }
2487
- ],
2488
- outputs: [],
2489
- stateMutability: "nonpayable"
2490
- },
2491
- {
2492
- type: "function",
2493
- name: "depositOnMigration",
2494
- inputs: [
2495
- { name: "amount", type: "uint96", internalType: "uint96" },
2496
- { name: "onBehalfOf", type: "address", internalType: "address" },
2497
- {
2498
- name: "votes",
2499
- type: "tuple[]",
2500
- internalType: "struct MultiVote[]",
2501
- components: [
2502
- { name: "votingContract", type: "address", internalType: "address" },
2503
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2504
- { name: "isIncrease", type: "bool", internalType: "bool" },
2505
- { name: "extraData", type: "bytes", internalType: "bytes" }
2506
- ]
2507
- }
2508
- ],
2509
- outputs: [],
2510
- stateMutability: "nonpayable"
2511
- },
2512
- {
2513
- type: "function",
2514
- name: "depositWithPermit",
2515
- inputs: [
2516
- { name: "amount", type: "uint96", internalType: "uint96" },
2517
- {
2518
- name: "votes",
2519
- type: "tuple[]",
2520
- internalType: "struct MultiVote[]",
2521
- components: [
2522
- { name: "votingContract", type: "address", internalType: "address" },
2523
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2524
- { name: "isIncrease", type: "bool", internalType: "bool" },
2525
- { name: "extraData", type: "bytes", internalType: "bytes" }
2526
- ]
2527
- },
2528
- { name: "deadline", type: "uint256", internalType: "uint256" },
2529
- { name: "v", type: "uint8", internalType: "uint8" },
2530
- { name: "r", type: "bytes32", internalType: "bytes32" },
2531
- { name: "s", type: "bytes32", internalType: "bytes32" }
2532
- ],
2533
- outputs: [],
2534
- stateMutability: "nonpayable"
2535
- },
2536
- {
2537
- type: "function",
2538
- name: "firstEpochTimestamp",
2539
- inputs: [],
2540
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2541
- stateMutability: "view"
2542
- },
2543
- {
2544
- type: "function",
2545
- name: "gear",
2546
- inputs: [],
2547
- outputs: [{ name: "", type: "address", internalType: "address" }],
2548
- stateMutability: "view"
2549
- },
2550
- {
2551
- type: "function",
2552
- name: "getCurrentEpoch",
2553
- inputs: [],
2554
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
2555
- stateMutability: "view"
2556
- },
2557
- {
2558
- type: "function",
2559
- name: "getWithdrawableAmounts",
2560
- inputs: [{ name: "user", type: "address", internalType: "address" }],
2561
- outputs: [
2562
- { name: "withdrawableNow", type: "uint256", internalType: "uint256" },
2563
- {
2564
- name: "withdrawableInEpochs",
2565
- type: "uint256[4]",
2566
- internalType: "uint256[4]"
2567
- }
2568
- ],
2569
- stateMutability: "view"
2570
- },
2571
- {
2572
- type: "function",
2573
- name: "migrate",
2574
- inputs: [
2575
- { name: "amount", type: "uint96", internalType: "uint96" },
2576
- {
2577
- name: "votesBefore",
2578
- type: "tuple[]",
2579
- internalType: "struct MultiVote[]",
2580
- components: [
2581
- { name: "votingContract", type: "address", internalType: "address" },
2582
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2583
- { name: "isIncrease", type: "bool", internalType: "bool" },
2584
- { name: "extraData", type: "bytes", internalType: "bytes" }
2585
- ]
2586
- },
2587
- {
2588
- name: "votesAfter",
2589
- type: "tuple[]",
2590
- internalType: "struct MultiVote[]",
2591
- components: [
2592
- { name: "votingContract", type: "address", internalType: "address" },
2593
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2594
- { name: "isIncrease", type: "bool", internalType: "bool" },
2595
- { name: "extraData", type: "bytes", internalType: "bytes" }
2596
- ]
2597
- }
2598
- ],
2599
- outputs: [],
2600
- stateMutability: "nonpayable"
2601
- },
2602
- {
2603
- type: "function",
2604
- name: "migrator",
2605
- inputs: [],
2606
- outputs: [{ name: "", type: "address", internalType: "address" }],
2607
- stateMutability: "view"
2608
- },
2609
- {
2610
- type: "function",
2611
- name: "multivote",
2612
- inputs: [
2613
- {
2614
- name: "votes",
2615
- type: "tuple[]",
2616
- internalType: "struct MultiVote[]",
2617
- components: [
2618
- { name: "votingContract", type: "address", internalType: "address" },
2619
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2620
- { name: "isIncrease", type: "bool", internalType: "bool" },
2621
- { name: "extraData", type: "bytes", internalType: "bytes" }
2622
- ]
2623
- }
2624
- ],
2625
- outputs: [],
2626
- stateMutability: "nonpayable"
2627
- },
2628
- {
2629
- type: "function",
2630
- name: "setMigrator",
2631
- inputs: [{ name: "newMigrator", type: "address", internalType: "address" }],
2632
- outputs: [],
2633
- stateMutability: "nonpayable"
2634
- },
2635
- {
2636
- type: "function",
2637
- name: "setSuccessor",
2638
- inputs: [
2639
- { name: "newSuccessor", type: "address", internalType: "address" }
2640
- ],
2641
- outputs: [],
2642
- stateMutability: "nonpayable"
2643
- },
2644
- {
2645
- type: "function",
2646
- name: "setVotingContractStatus",
2647
- inputs: [
2648
- { name: "votingContract", type: "address", internalType: "address" },
2649
- {
2650
- name: "status",
2651
- type: "uint8",
2652
- internalType: "enum VotingContractStatus"
2653
- }
2654
- ],
2655
- outputs: [],
2656
- stateMutability: "nonpayable"
2657
- },
2658
- {
2659
- type: "function",
2660
- name: "successor",
2661
- inputs: [],
2662
- outputs: [{ name: "", type: "address", internalType: "address" }],
2663
- stateMutability: "view"
2664
- },
2665
- {
2666
- type: "function",
2667
- name: "version",
2668
- inputs: [],
2669
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2670
- stateMutability: "view"
2671
- },
2672
- {
2673
- type: "function",
2674
- name: "withdraw",
2675
- inputs: [
2676
- { name: "amount", type: "uint96", internalType: "uint96" },
2677
- { name: "to", type: "address", internalType: "address" },
2678
- {
2679
- name: "votes",
2680
- type: "tuple[]",
2681
- internalType: "struct MultiVote[]",
2682
- components: [
2683
- { name: "votingContract", type: "address", internalType: "address" },
2684
- { name: "voteAmount", type: "uint96", internalType: "uint96" },
2685
- { name: "isIncrease", type: "bool", internalType: "bool" },
2686
- { name: "extraData", type: "bytes", internalType: "bytes" }
2687
- ]
2688
- }
2689
- ],
2690
- outputs: [],
2691
- stateMutability: "nonpayable"
2692
- },
2693
- {
2694
- type: "event",
2695
- name: "ClaimGearWithdrawal",
2696
- inputs: [
2697
- { name: "user", type: "address", indexed: true, internalType: "address" },
2698
- { name: "to", type: "address", indexed: false, internalType: "address" },
2699
- {
2700
- name: "amount",
2701
- type: "uint256",
2702
- indexed: false,
2703
- internalType: "uint256"
2704
- }
2705
- ],
2706
- anonymous: false
2707
- },
2708
- {
2709
- type: "event",
2710
- name: "DepositGear",
2711
- inputs: [
2712
- { name: "user", type: "address", indexed: true, internalType: "address" },
2713
- {
2714
- name: "amount",
2715
- type: "uint256",
2716
- indexed: false,
2717
- internalType: "uint256"
2718
- }
2719
- ],
2720
- anonymous: false
2721
- },
2722
- {
2723
- type: "event",
2724
- name: "MigrateGear",
2725
- inputs: [
2726
- { name: "user", type: "address", indexed: true, internalType: "address" },
2727
- {
2728
- name: "successor",
2729
- type: "address",
2730
- indexed: true,
2731
- internalType: "address"
2732
- },
2733
- {
2734
- name: "amount",
2735
- type: "uint256",
2736
- indexed: false,
2737
- internalType: "uint256"
2738
- }
2739
- ],
2740
- anonymous: false
2741
- },
2742
- {
2743
- type: "event",
2744
- name: "ScheduleGearWithdrawal",
2745
- inputs: [
2746
- { name: "user", type: "address", indexed: true, internalType: "address" },
2747
- {
2748
- name: "amount",
2749
- type: "uint256",
2750
- indexed: false,
2751
- internalType: "uint256"
2752
- }
2753
- ],
2754
- anonymous: false
2755
- },
2756
- {
2757
- type: "event",
2758
- name: "SetMigrator",
2759
- inputs: [
2760
- {
2761
- name: "migrator",
2762
- type: "address",
2763
- indexed: true,
2764
- internalType: "address"
2765
- }
2766
- ],
2767
- anonymous: false
2768
- },
2769
- {
2770
- type: "event",
2771
- name: "SetSuccessor",
2772
- inputs: [
2773
- {
2774
- name: "successor",
2775
- type: "address",
2776
- indexed: true,
2777
- internalType: "address"
2778
- }
2779
- ],
2780
- anonymous: false
2781
- },
2782
- {
2783
- type: "event",
2784
- name: "SetVotingContractStatus",
2785
- inputs: [
2786
- {
2787
- name: "votingContract",
2788
- type: "address",
2789
- indexed: true,
2790
- internalType: "address"
2791
- },
2792
- {
2793
- name: "status",
2794
- type: "uint8",
2795
- indexed: false,
2796
- internalType: "enum VotingContractStatus"
2797
- }
2798
- ],
2799
- anonymous: false
2800
- }
2801
- ];
2802
- const iLinearInterestRateModelV300Abi = [
2803
- {
2804
- type: "function",
2805
- name: "availableToBorrow",
2806
- inputs: [
2807
- { name: "expectedLiquidity", type: "uint256", internalType: "uint256" },
2808
- { name: "availableLiquidity", type: "uint256", internalType: "uint256" }
2809
- ],
2810
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2811
- stateMutability: "view"
2812
- },
2813
- {
2814
- type: "function",
2815
- name: "calcBorrowRate",
2816
- inputs: [
2817
- { name: "expectedLiquidity", type: "uint256", internalType: "uint256" },
2818
- { name: "availableLiquidity", type: "uint256", internalType: "uint256" },
2819
- { name: "checkOptimalBorrowing", type: "bool", internalType: "bool" }
2820
- ],
2821
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2822
- stateMutability: "view"
2823
- },
2824
- {
2825
- type: "function",
2826
- name: "getModelParameters",
2827
- inputs: [],
2828
- outputs: [
2829
- { name: "U_1", type: "uint16", internalType: "uint16" },
2830
- { name: "U_2", type: "uint16", internalType: "uint16" },
2831
- { name: "R_base", type: "uint16", internalType: "uint16" },
2832
- { name: "R_slope1", type: "uint16", internalType: "uint16" },
2833
- { name: "R_slope2", type: "uint16", internalType: "uint16" },
2834
- { name: "R_slope3", type: "uint16", internalType: "uint16" }
2835
- ],
2836
- stateMutability: "view"
2837
- },
2838
- {
2839
- type: "function",
2840
- name: "isBorrowingMoreU2Forbidden",
2841
- inputs: [],
2842
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
2843
- stateMutability: "view"
2844
- },
2845
- {
2846
- type: "function",
2847
- name: "version",
2848
- inputs: [],
2849
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2850
- stateMutability: "view"
2851
- }
2852
- ];
2853
- const iPoolQuotaKeeperV300Abi = [
2854
- {
2855
- type: "function",
2856
- name: "accrueQuotaInterest",
2857
- inputs: [
2858
- { name: "creditAccount", type: "address", internalType: "address" },
2859
- { name: "tokens", type: "address[]", internalType: "address[]" }
2860
- ],
2861
- outputs: [],
2862
- stateMutability: "nonpayable"
2863
- },
2864
- {
2865
- type: "function",
2866
- name: "addCreditManager",
2867
- inputs: [
2868
- { name: "_creditManager", type: "address", internalType: "address" }
2869
- ],
2870
- outputs: [],
2871
- stateMutability: "nonpayable"
2872
- },
2873
- {
2874
- type: "function",
2875
- name: "addQuotaToken",
2876
- inputs: [{ name: "token", type: "address", internalType: "address" }],
2877
- outputs: [],
2878
- stateMutability: "nonpayable"
2879
- },
2880
- {
2881
- type: "function",
2882
- name: "creditManagers",
2883
- inputs: [],
2884
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
2885
- stateMutability: "view"
2886
- },
2887
- {
2888
- type: "function",
2889
- name: "cumulativeIndex",
2890
- inputs: [{ name: "token", type: "address", internalType: "address" }],
2891
- outputs: [{ name: "", type: "uint192", internalType: "uint192" }],
2892
- stateMutability: "view"
2893
- },
2894
- {
2895
- type: "function",
2896
- name: "gauge",
2897
- inputs: [],
2898
- outputs: [{ name: "", type: "address", internalType: "address" }],
2899
- stateMutability: "view"
2900
- },
2901
- {
2902
- type: "function",
2903
- name: "getQuota",
2904
- inputs: [
2905
- { name: "creditAccount", type: "address", internalType: "address" },
2906
- { name: "token", type: "address", internalType: "address" }
2907
- ],
2908
- outputs: [
2909
- { name: "quota", type: "uint96", internalType: "uint96" },
2910
- { name: "cumulativeIndexLU", type: "uint192", internalType: "uint192" }
2911
- ],
2912
- stateMutability: "view"
2913
- },
2914
- {
2915
- type: "function",
2916
- name: "getQuotaAndOutstandingInterest",
2917
- inputs: [
2918
- { name: "creditAccount", type: "address", internalType: "address" },
2919
- { name: "token", type: "address", internalType: "address" }
2920
- ],
2921
- outputs: [
2922
- { name: "quoted", type: "uint96", internalType: "uint96" },
2923
- { name: "outstandingInterest", type: "uint128", internalType: "uint128" }
2924
- ],
2925
- stateMutability: "view"
2926
- },
2927
- {
2928
- type: "function",
2929
- name: "getQuotaRate",
2930
- inputs: [{ name: "", type: "address", internalType: "address" }],
2931
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
2932
- stateMutability: "view"
2933
- },
2934
- {
2935
- type: "function",
2936
- name: "getTokenQuotaParams",
2937
- inputs: [{ name: "token", type: "address", internalType: "address" }],
2938
- outputs: [
2939
- { name: "rate", type: "uint16", internalType: "uint16" },
2940
- { name: "cumulativeIndexLU", type: "uint192", internalType: "uint192" },
2941
- { name: "quotaIncreaseFee", type: "uint16", internalType: "uint16" },
2942
- { name: "totalQuoted", type: "uint96", internalType: "uint96" },
2943
- { name: "limit", type: "uint96", internalType: "uint96" },
2944
- { name: "isActive", type: "bool", internalType: "bool" }
2945
- ],
2946
- stateMutability: "view"
2947
- },
2948
- {
2949
- type: "function",
2950
- name: "isQuotedToken",
2951
- inputs: [{ name: "token", type: "address", internalType: "address" }],
2952
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
2953
- stateMutability: "view"
2954
- },
2955
- {
2956
- type: "function",
2957
- name: "lastQuotaRateUpdate",
2958
- inputs: [],
2959
- outputs: [{ name: "", type: "uint40", internalType: "uint40" }],
2960
- stateMutability: "view"
2961
- },
2962
- {
2963
- type: "function",
2964
- name: "pool",
2965
- inputs: [],
2966
- outputs: [{ name: "", type: "address", internalType: "address" }],
2967
- stateMutability: "view"
2968
- },
2969
- {
2970
- type: "function",
2971
- name: "poolQuotaRevenue",
2972
- inputs: [],
2973
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2974
- stateMutability: "view"
2975
- },
2976
- {
2977
- type: "function",
2978
- name: "quotedTokens",
2979
- inputs: [],
2980
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
2981
- stateMutability: "view"
2982
- },
2983
- {
2984
- type: "function",
2985
- name: "removeQuotas",
2986
- inputs: [
2987
- { name: "creditAccount", type: "address", internalType: "address" },
2988
- { name: "tokens", type: "address[]", internalType: "address[]" },
2989
- { name: "setLimitsToZero", type: "bool", internalType: "bool" }
2990
- ],
2991
- outputs: [],
2992
- stateMutability: "nonpayable"
2993
- },
2994
- {
2995
- type: "function",
2996
- name: "setGauge",
2997
- inputs: [{ name: "_gauge", type: "address", internalType: "address" }],
2998
- outputs: [],
2999
- stateMutability: "nonpayable"
3000
- },
3001
- {
3002
- type: "function",
3003
- name: "setTokenLimit",
3004
- inputs: [
3005
- { name: "token", type: "address", internalType: "address" },
3006
- { name: "limit", type: "uint96", internalType: "uint96" }
3007
- ],
3008
- outputs: [],
3009
- stateMutability: "nonpayable"
3010
- },
3011
- {
3012
- type: "function",
3013
- name: "setTokenQuotaIncreaseFee",
3014
- inputs: [
3015
- { name: "token", type: "address", internalType: "address" },
3016
- { name: "fee", type: "uint16", internalType: "uint16" }
3017
- ],
3018
- outputs: [],
3019
- stateMutability: "nonpayable"
3020
- },
3021
- {
3022
- type: "function",
3023
- name: "underlying",
3024
- inputs: [],
3025
- outputs: [{ name: "", type: "address", internalType: "address" }],
3026
- stateMutability: "view"
3027
- },
3028
- {
3029
- type: "function",
3030
- name: "updateQuota",
3031
- inputs: [
3032
- { name: "creditAccount", type: "address", internalType: "address" },
3033
- { name: "token", type: "address", internalType: "address" },
3034
- { name: "requestedChange", type: "int96", internalType: "int96" },
3035
- { name: "minQuota", type: "uint96", internalType: "uint96" },
3036
- { name: "maxQuota", type: "uint96", internalType: "uint96" }
3037
- ],
3038
- outputs: [
3039
- {
3040
- name: "caQuotaInterestChange",
3041
- type: "uint128",
3042
- internalType: "uint128"
3043
- },
3044
- { name: "fees", type: "uint128", internalType: "uint128" },
3045
- { name: "enableToken", type: "bool", internalType: "bool" },
3046
- { name: "disableToken", type: "bool", internalType: "bool" }
3047
- ],
3048
- stateMutability: "nonpayable"
3049
- },
3050
- {
3051
- type: "function",
3052
- name: "updateRates",
3053
- inputs: [],
3054
- outputs: [],
3055
- stateMutability: "nonpayable"
3056
- },
3057
- {
3058
- type: "function",
3059
- name: "version",
3060
- inputs: [],
3061
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3062
- stateMutability: "view"
3063
- },
3064
- {
3065
- type: "event",
3066
- name: "AddCreditManager",
3067
- inputs: [
3068
- {
3069
- name: "creditManager",
3070
- type: "address",
3071
- indexed: true,
3072
- internalType: "address"
3073
- }
3074
- ],
3075
- anonymous: false
3076
- },
3077
- {
3078
- type: "event",
3079
- name: "AddQuotaToken",
3080
- inputs: [
3081
- {
3082
- name: "token",
3083
- type: "address",
3084
- indexed: true,
3085
- internalType: "address"
3086
- }
3087
- ],
3088
- anonymous: false
3089
- },
3090
- {
3091
- type: "event",
3092
- name: "SetGauge",
3093
- inputs: [
3094
- {
3095
- name: "newGauge",
3096
- type: "address",
3097
- indexed: true,
3098
- internalType: "address"
3099
- }
3100
- ],
3101
- anonymous: false
3102
- },
3103
- {
3104
- type: "event",
3105
- name: "SetQuotaIncreaseFee",
3106
- inputs: [
3107
- {
3108
- name: "token",
3109
- type: "address",
3110
- indexed: true,
3111
- internalType: "address"
3112
- },
3113
- { name: "fee", type: "uint16", indexed: false, internalType: "uint16" }
3114
- ],
3115
- anonymous: false
3116
- },
3117
- {
3118
- type: "event",
3119
- name: "SetTokenLimit",
3120
- inputs: [
3121
- {
3122
- name: "token",
3123
- type: "address",
3124
- indexed: true,
3125
- internalType: "address"
3126
- },
3127
- { name: "limit", type: "uint96", indexed: false, internalType: "uint96" }
3128
- ],
3129
- anonymous: false
3130
- },
3131
- {
3132
- type: "event",
3133
- name: "UpdateQuota",
3134
- inputs: [
3135
- {
3136
- name: "creditAccount",
3137
- type: "address",
3138
- indexed: true,
3139
- internalType: "address"
3140
- },
3141
- {
3142
- name: "token",
3143
- type: "address",
3144
- indexed: true,
3145
- internalType: "address"
3146
- },
3147
- {
3148
- name: "quotaChange",
3149
- type: "int96",
3150
- indexed: false,
3151
- internalType: "int96"
3152
- }
3153
- ],
3154
- anonymous: false
3155
- },
3156
- {
3157
- type: "event",
3158
- name: "UpdateTokenQuotaRate",
3159
- inputs: [
3160
- {
3161
- name: "token",
3162
- type: "address",
3163
- indexed: true,
3164
- internalType: "address"
3165
- },
3166
- { name: "rate", type: "uint16", indexed: false, internalType: "uint16" }
3167
- ],
3168
- anonymous: false
3169
- }
3170
- ];
3171
- const iPoolV300Abi = [
3172
- {
3173
- type: "function",
3174
- name: "DOMAIN_SEPARATOR",
3175
- inputs: [],
3176
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
3177
- stateMutability: "view"
3178
- },
3179
- {
3180
- type: "function",
3181
- name: "addressProvider",
3182
- inputs: [],
3183
- outputs: [{ name: "", type: "address", internalType: "address" }],
3184
- stateMutability: "view"
3185
- },
3186
- {
3187
- type: "function",
3188
- name: "allowance",
3189
- inputs: [
3190
- { name: "owner", type: "address", internalType: "address" },
3191
- { name: "spender", type: "address", internalType: "address" }
3192
- ],
3193
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3194
- stateMutability: "view"
3195
- },
3196
- {
3197
- type: "function",
3198
- name: "approve",
3199
- inputs: [
3200
- { name: "spender", type: "address", internalType: "address" },
3201
- { name: "amount", type: "uint256", internalType: "uint256" }
3202
- ],
3203
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
3204
- stateMutability: "nonpayable"
3205
- },
3206
- {
3207
- type: "function",
3208
- name: "asset",
3209
- inputs: [],
3210
- outputs: [
3211
- { name: "assetTokenAddress", type: "address", internalType: "address" }
3212
- ],
3213
- stateMutability: "view"
3214
- },
3215
- {
3216
- type: "function",
3217
- name: "availableLiquidity",
3218
- inputs: [],
3219
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3220
- stateMutability: "view"
3221
- },
3222
- {
3223
- type: "function",
3224
- name: "balanceOf",
3225
- inputs: [{ name: "account", type: "address", internalType: "address" }],
3226
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3227
- stateMutability: "view"
3228
- },
3229
- {
3230
- type: "function",
3231
- name: "baseInterestIndex",
3232
- inputs: [],
3233
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3234
- stateMutability: "view"
3235
- },
3236
- {
3237
- type: "function",
3238
- name: "baseInterestIndexLU",
3239
- inputs: [],
3240
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3241
- stateMutability: "view"
3242
- },
3243
- {
3244
- type: "function",
3245
- name: "baseInterestRate",
3246
- inputs: [],
3247
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3248
- stateMutability: "view"
3249
- },
3250
- {
3251
- type: "function",
3252
- name: "convertToAssets",
3253
- inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3254
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3255
- stateMutability: "view"
3256
- },
3257
- {
3258
- type: "function",
3259
- name: "convertToShares",
3260
- inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3261
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3262
- stateMutability: "view"
3263
- },
3264
- {
3265
- type: "function",
3266
- name: "creditManagerBorrowable",
3267
- inputs: [
3268
- { name: "creditManager", type: "address", internalType: "address" }
3269
- ],
3270
- outputs: [{ name: "borrowable", type: "uint256", internalType: "uint256" }],
3271
- stateMutability: "view"
3272
- },
3273
- {
3274
- type: "function",
3275
- name: "creditManagerBorrowed",
3276
- inputs: [
3277
- { name: "creditManager", type: "address", internalType: "address" }
3278
- ],
3279
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3280
- stateMutability: "view"
3281
- },
3282
- {
3283
- type: "function",
3284
- name: "creditManagerDebtLimit",
3285
- inputs: [
3286
- { name: "creditManager", type: "address", internalType: "address" }
3287
- ],
3288
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3289
- stateMutability: "view"
3290
- },
3291
- {
3292
- type: "function",
3293
- name: "creditManagers",
3294
- inputs: [],
3295
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
3296
- stateMutability: "view"
3297
- },
3298
- {
3299
- type: "function",
3300
- name: "decimals",
3301
- inputs: [],
3302
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
3303
- stateMutability: "view"
3304
- },
3305
- {
3306
- type: "function",
3307
- name: "deposit",
3308
- inputs: [
3309
- { name: "assets", type: "uint256", internalType: "uint256" },
3310
- { name: "receiver", type: "address", internalType: "address" }
3311
- ],
3312
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3313
- stateMutability: "nonpayable"
3314
- },
3315
- {
3316
- type: "function",
3317
- name: "depositWithReferral",
3318
- inputs: [
3319
- { name: "assets", type: "uint256", internalType: "uint256" },
3320
- { name: "receiver", type: "address", internalType: "address" },
3321
- { name: "referralCode", type: "uint256", internalType: "uint256" }
3322
- ],
3323
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3324
- stateMutability: "nonpayable"
3325
- },
3326
- {
3327
- type: "function",
3328
- name: "expectedLiquidity",
3329
- inputs: [],
3330
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3331
- stateMutability: "view"
3332
- },
3333
- {
3334
- type: "function",
3335
- name: "expectedLiquidityLU",
3336
- inputs: [],
3337
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3338
- stateMutability: "view"
3339
- },
3340
- {
3341
- type: "function",
3342
- name: "interestRateModel",
3343
- inputs: [],
3344
- outputs: [{ name: "", type: "address", internalType: "address" }],
3345
- stateMutability: "view"
3346
- },
3347
- {
3348
- type: "function",
3349
- name: "lastBaseInterestUpdate",
3350
- inputs: [],
3351
- outputs: [{ name: "", type: "uint40", internalType: "uint40" }],
3352
- stateMutability: "view"
3353
- },
3354
- {
3355
- type: "function",
3356
- name: "lastQuotaRevenueUpdate",
3357
- inputs: [],
3358
- outputs: [{ name: "", type: "uint40", internalType: "uint40" }],
3359
- stateMutability: "view"
3360
- },
3361
- {
3362
- type: "function",
3363
- name: "lendCreditAccount",
3364
- inputs: [
3365
- { name: "borrowedAmount", type: "uint256", internalType: "uint256" },
3366
- { name: "creditAccount", type: "address", internalType: "address" }
3367
- ],
3368
- outputs: [],
3369
- stateMutability: "nonpayable"
3370
- },
3371
- {
3372
- type: "function",
3373
- name: "maxDeposit",
3374
- inputs: [{ name: "receiver", type: "address", internalType: "address" }],
3375
- outputs: [{ name: "maxAssets", type: "uint256", internalType: "uint256" }],
3376
- stateMutability: "view"
3377
- },
3378
- {
3379
- type: "function",
3380
- name: "maxMint",
3381
- inputs: [{ name: "receiver", type: "address", internalType: "address" }],
3382
- outputs: [{ name: "maxShares", type: "uint256", internalType: "uint256" }],
3383
- stateMutability: "view"
3384
- },
3385
- {
3386
- type: "function",
3387
- name: "maxRedeem",
3388
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
3389
- outputs: [{ name: "maxShares", type: "uint256", internalType: "uint256" }],
3390
- stateMutability: "view"
3391
- },
3392
- {
3393
- type: "function",
3394
- name: "maxWithdraw",
3395
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
3396
- outputs: [{ name: "maxAssets", type: "uint256", internalType: "uint256" }],
3397
- stateMutability: "view"
3398
- },
3399
- {
3400
- type: "function",
3401
- name: "mint",
3402
- inputs: [
3403
- { name: "shares", type: "uint256", internalType: "uint256" },
3404
- { name: "receiver", type: "address", internalType: "address" }
3405
- ],
3406
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3407
- stateMutability: "nonpayable"
3408
- },
3409
- {
3410
- type: "function",
3411
- name: "mintWithReferral",
3412
- inputs: [
3413
- { name: "shares", type: "uint256", internalType: "uint256" },
3414
- { name: "receiver", type: "address", internalType: "address" },
3415
- { name: "referralCode", type: "uint256", internalType: "uint256" }
3416
- ],
3417
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3418
- stateMutability: "nonpayable"
3419
- },
3420
- {
3421
- type: "function",
3422
- name: "name",
3423
- inputs: [],
3424
- outputs: [{ name: "", type: "string", internalType: "string" }],
3425
- stateMutability: "view"
3426
- },
3427
- {
3428
- type: "function",
3429
- name: "nonces",
3430
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
3431
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3432
- stateMutability: "view"
3433
- },
3434
- {
3435
- type: "function",
3436
- name: "permit",
3437
- inputs: [
3438
- { name: "owner", type: "address", internalType: "address" },
3439
- { name: "spender", type: "address", internalType: "address" },
3440
- { name: "value", type: "uint256", internalType: "uint256" },
3441
- { name: "deadline", type: "uint256", internalType: "uint256" },
3442
- { name: "v", type: "uint8", internalType: "uint8" },
3443
- { name: "r", type: "bytes32", internalType: "bytes32" },
3444
- { name: "s", type: "bytes32", internalType: "bytes32" }
3445
- ],
3446
- outputs: [],
3447
- stateMutability: "nonpayable"
3448
- },
3449
- {
3450
- type: "function",
3451
- name: "poolQuotaKeeper",
3452
- inputs: [],
3453
- outputs: [{ name: "", type: "address", internalType: "address" }],
3454
- stateMutability: "view"
3455
- },
3456
- {
3457
- type: "function",
3458
- name: "previewDeposit",
3459
- inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3460
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3461
- stateMutability: "view"
3462
- },
3463
- {
3464
- type: "function",
3465
- name: "previewMint",
3466
- inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3467
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3468
- stateMutability: "view"
3469
- },
3470
- {
3471
- type: "function",
3472
- name: "previewRedeem",
3473
- inputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3474
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3475
- stateMutability: "view"
3476
- },
3477
- {
3478
- type: "function",
3479
- name: "previewWithdraw",
3480
- inputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3481
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3482
- stateMutability: "view"
3483
- },
3484
- {
3485
- type: "function",
3486
- name: "quotaRevenue",
3487
- inputs: [],
3488
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3489
- stateMutability: "view"
3490
- },
3491
- {
3492
- type: "function",
3493
- name: "redeem",
3494
- inputs: [
3495
- { name: "shares", type: "uint256", internalType: "uint256" },
3496
- { name: "receiver", type: "address", internalType: "address" },
3497
- { name: "owner", type: "address", internalType: "address" }
3498
- ],
3499
- outputs: [{ name: "assets", type: "uint256", internalType: "uint256" }],
3500
- stateMutability: "nonpayable"
3501
- },
3502
- {
3503
- type: "function",
3504
- name: "repayCreditAccount",
3505
- inputs: [
3506
- { name: "repaidAmount", type: "uint256", internalType: "uint256" },
3507
- { name: "profit", type: "uint256", internalType: "uint256" },
3508
- { name: "loss", type: "uint256", internalType: "uint256" }
3509
- ],
3510
- outputs: [],
3511
- stateMutability: "nonpayable"
3512
- },
3513
- {
3514
- type: "function",
3515
- name: "setCreditManagerDebtLimit",
3516
- inputs: [
3517
- { name: "creditManager", type: "address", internalType: "address" },
3518
- { name: "newLimit", type: "uint256", internalType: "uint256" }
3519
- ],
3520
- outputs: [],
3521
- stateMutability: "nonpayable"
3522
- },
3523
- {
3524
- type: "function",
3525
- name: "setInterestRateModel",
3526
- inputs: [
3527
- {
3528
- name: "newInterestRateModel",
3529
- type: "address",
3530
- internalType: "address"
3531
- }
3532
- ],
3533
- outputs: [],
3534
- stateMutability: "nonpayable"
3535
- },
3536
- {
3537
- type: "function",
3538
- name: "setPoolQuotaKeeper",
3539
- inputs: [
3540
- { name: "newPoolQuotaKeeper", type: "address", internalType: "address" }
3541
- ],
3542
- outputs: [],
3543
- stateMutability: "nonpayable"
3544
- },
3545
- {
3546
- type: "function",
3547
- name: "setQuotaRevenue",
3548
- inputs: [
3549
- { name: "newQuotaRevenue", type: "uint256", internalType: "uint256" }
3550
- ],
3551
- outputs: [],
3552
- stateMutability: "nonpayable"
3553
- },
3554
- {
3555
- type: "function",
3556
- name: "setTotalDebtLimit",
3557
- inputs: [{ name: "newLimit", type: "uint256", internalType: "uint256" }],
3558
- outputs: [],
3559
- stateMutability: "nonpayable"
3560
- },
3561
- {
3562
- type: "function",
3563
- name: "setWithdrawFee",
3564
- inputs: [
3565
- { name: "newWithdrawFee", type: "uint256", internalType: "uint256" }
3566
- ],
3567
- outputs: [],
3568
- stateMutability: "nonpayable"
3569
- },
3570
- {
3571
- type: "function",
3572
- name: "supplyRate",
3573
- inputs: [],
3574
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3575
- stateMutability: "view"
3576
- },
3577
- {
3578
- type: "function",
3579
- name: "symbol",
3580
- inputs: [],
3581
- outputs: [{ name: "", type: "string", internalType: "string" }],
3582
- stateMutability: "view"
3583
- },
3584
- {
3585
- type: "function",
3586
- name: "totalAssets",
3587
- inputs: [],
3588
- outputs: [
3589
- { name: "totalManagedAssets", type: "uint256", internalType: "uint256" }
3590
- ],
3591
- stateMutability: "view"
3592
- },
3593
- {
3594
- type: "function",
3595
- name: "totalBorrowed",
3596
- inputs: [],
3597
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3598
- stateMutability: "view"
3599
- },
3600
- {
3601
- type: "function",
3602
- name: "totalDebtLimit",
3603
- inputs: [],
3604
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3605
- stateMutability: "view"
3606
- },
3607
- {
3608
- type: "function",
3609
- name: "totalSupply",
3610
- inputs: [],
3611
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3612
- stateMutability: "view"
3613
- },
3614
- {
3615
- type: "function",
3616
- name: "transfer",
3617
- inputs: [
3618
- { name: "to", type: "address", internalType: "address" },
3619
- { name: "amount", type: "uint256", internalType: "uint256" }
3620
- ],
3621
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
3622
- stateMutability: "nonpayable"
3623
- },
3624
- {
3625
- type: "function",
3626
- name: "transferFrom",
3627
- inputs: [
3628
- { name: "from", type: "address", internalType: "address" },
3629
- { name: "to", type: "address", internalType: "address" },
3630
- { name: "amount", type: "uint256", internalType: "uint256" }
3631
- ],
3632
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
3633
- stateMutability: "nonpayable"
3634
- },
3635
- {
3636
- type: "function",
3637
- name: "treasury",
3638
- inputs: [],
3639
- outputs: [{ name: "", type: "address", internalType: "address" }],
3640
- stateMutability: "view"
3641
- },
3642
- {
3643
- type: "function",
3644
- name: "underlyingToken",
3645
- inputs: [],
3646
- outputs: [{ name: "", type: "address", internalType: "address" }],
3647
- stateMutability: "view"
3648
- },
3649
- {
3650
- type: "function",
3651
- name: "updateQuotaRevenue",
3652
- inputs: [
3653
- { name: "quotaRevenueDelta", type: "int256", internalType: "int256" }
3654
- ],
3655
- outputs: [],
3656
- stateMutability: "nonpayable"
3657
- },
3658
- {
3659
- type: "function",
3660
- name: "version",
3661
- inputs: [],
3662
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3663
- stateMutability: "view"
3664
- },
3665
- {
3666
- type: "function",
3667
- name: "withdraw",
3668
- inputs: [
3669
- { name: "assets", type: "uint256", internalType: "uint256" },
3670
- { name: "receiver", type: "address", internalType: "address" },
3671
- { name: "owner", type: "address", internalType: "address" }
3672
- ],
3673
- outputs: [{ name: "shares", type: "uint256", internalType: "uint256" }],
3674
- stateMutability: "nonpayable"
3675
- },
3676
- {
3677
- type: "function",
3678
- name: "withdrawFee",
3679
- inputs: [],
3680
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
3681
- stateMutability: "view"
3682
- },
3683
- {
3684
- type: "event",
3685
- name: "AddCreditManager",
3686
- inputs: [
3687
- {
3688
- name: "creditManager",
3689
- type: "address",
3690
- indexed: true,
3691
- internalType: "address"
3692
- }
3693
- ],
3694
- anonymous: false
3695
- },
3696
- {
3697
- type: "event",
3698
- name: "Approval",
3699
- inputs: [
3700
- {
3701
- name: "owner",
3702
- type: "address",
3703
- indexed: true,
3704
- internalType: "address"
3705
- },
3706
- {
3707
- name: "spender",
3708
- type: "address",
3709
- indexed: true,
3710
- internalType: "address"
3711
- },
3712
- {
3713
- name: "value",
3714
- type: "uint256",
3715
- indexed: false,
3716
- internalType: "uint256"
3717
- }
3718
- ],
3719
- anonymous: false
3720
- },
3721
- {
3722
- type: "event",
3723
- name: "Borrow",
3724
- inputs: [
3725
- {
3726
- name: "creditManager",
3727
- type: "address",
3728
- indexed: true,
3729
- internalType: "address"
3730
- },
3731
- {
3732
- name: "creditAccount",
3733
- type: "address",
3734
- indexed: true,
3735
- internalType: "address"
3736
- },
3737
- {
3738
- name: "amount",
3739
- type: "uint256",
3740
- indexed: false,
3741
- internalType: "uint256"
3742
- }
3743
- ],
3744
- anonymous: false
3745
- },
3746
- {
3747
- type: "event",
3748
- name: "Deposit",
3749
- inputs: [
3750
- {
3751
- name: "sender",
3752
- type: "address",
3753
- indexed: true,
3754
- internalType: "address"
3755
- },
3756
- {
3757
- name: "owner",
3758
- type: "address",
3759
- indexed: true,
3760
- internalType: "address"
3761
- },
3762
- {
3763
- name: "assets",
3764
- type: "uint256",
3765
- indexed: false,
3766
- internalType: "uint256"
3767
- },
3768
- {
3769
- name: "shares",
3770
- type: "uint256",
3771
- indexed: false,
3772
- internalType: "uint256"
3773
- }
3774
- ],
3775
- anonymous: false
3776
- },
3777
- {
3778
- type: "event",
3779
- name: "IncurUncoveredLoss",
3780
- inputs: [
3781
- {
3782
- name: "creditManager",
3783
- type: "address",
3784
- indexed: true,
3785
- internalType: "address"
3786
- },
3787
- {
3788
- name: "loss",
3789
- type: "uint256",
3790
- indexed: false,
3791
- internalType: "uint256"
3792
- }
3793
- ],
3794
- anonymous: false
3795
- },
3796
- {
3797
- type: "event",
3798
- name: "Refer",
3799
- inputs: [
3800
- {
3801
- name: "onBehalfOf",
3802
- type: "address",
3803
- indexed: true,
3804
- internalType: "address"
3805
- },
3806
- {
3807
- name: "referralCode",
3808
- type: "uint256",
3809
- indexed: true,
3810
- internalType: "uint256"
3811
- },
3812
- {
3813
- name: "amount",
3814
- type: "uint256",
3815
- indexed: false,
3816
- internalType: "uint256"
3817
- }
3818
- ],
3819
- anonymous: false
3820
- },
3821
- {
3822
- type: "event",
3823
- name: "Repay",
3824
- inputs: [
3825
- {
3826
- name: "creditManager",
3827
- type: "address",
3828
- indexed: true,
3829
- internalType: "address"
3830
- },
3831
- {
3832
- name: "borrowedAmount",
3833
- type: "uint256",
3834
- indexed: false,
3835
- internalType: "uint256"
3836
- },
3837
- {
3838
- name: "profit",
3839
- type: "uint256",
3840
- indexed: false,
3841
- internalType: "uint256"
3842
- },
3843
- {
3844
- name: "loss",
3845
- type: "uint256",
3846
- indexed: false,
3847
- internalType: "uint256"
3848
- }
3849
- ],
3850
- anonymous: false
3851
- },
3852
- {
3853
- type: "event",
3854
- name: "SetCreditManagerDebtLimit",
3855
- inputs: [
3856
- {
3857
- name: "creditManager",
3858
- type: "address",
3859
- indexed: true,
3860
- internalType: "address"
3861
- },
3862
- {
3863
- name: "newLimit",
3864
- type: "uint256",
3865
- indexed: false,
3866
- internalType: "uint256"
3867
- }
3868
- ],
3869
- anonymous: false
3870
- },
3871
- {
3872
- type: "event",
3873
- name: "SetInterestRateModel",
3874
- inputs: [
3875
- {
3876
- name: "newInterestRateModel",
3877
- type: "address",
3878
- indexed: true,
3879
- internalType: "address"
3880
- }
3881
- ],
3882
- anonymous: false
3883
- },
3884
- {
3885
- type: "event",
3886
- name: "SetPoolQuotaKeeper",
3887
- inputs: [
3888
- {
3889
- name: "newPoolQuotaKeeper",
3890
- type: "address",
3891
- indexed: true,
3892
- internalType: "address"
3893
- }
3894
- ],
3895
- anonymous: false
3896
- },
3897
- {
3898
- type: "event",
3899
- name: "SetTotalDebtLimit",
3900
- inputs: [
3901
- {
3902
- name: "limit",
3903
- type: "uint256",
3904
- indexed: false,
3905
- internalType: "uint256"
3906
- }
3907
- ],
3908
- anonymous: false
3909
- },
3910
- {
3911
- type: "event",
3912
- name: "SetWithdrawFee",
3913
- inputs: [
3914
- { name: "fee", type: "uint256", indexed: false, internalType: "uint256" }
3915
- ],
3916
- anonymous: false
3917
- },
3918
- {
3919
- type: "event",
3920
- name: "Transfer",
3921
- inputs: [
3922
- { name: "from", type: "address", indexed: true, internalType: "address" },
3923
- { name: "to", type: "address", indexed: true, internalType: "address" },
3924
- {
3925
- name: "value",
3926
- type: "uint256",
3927
- indexed: false,
3928
- internalType: "uint256"
3929
- }
3930
- ],
3931
- anonymous: false
3932
- },
3933
- {
3934
- type: "event",
3935
- name: "Withdraw",
3936
- inputs: [
3937
- {
3938
- name: "sender",
3939
- type: "address",
3940
- indexed: true,
3941
- internalType: "address"
3942
- },
3943
- {
3944
- name: "receiver",
3945
- type: "address",
3946
- indexed: true,
3947
- internalType: "address"
3948
- },
3949
- {
3950
- name: "owner",
3951
- type: "address",
3952
- indexed: true,
3953
- internalType: "address"
3954
- },
3955
- {
3956
- name: "assets",
3957
- type: "uint256",
3958
- indexed: false,
3959
- internalType: "uint256"
3960
- },
3961
- {
3962
- name: "shares",
3963
- type: "uint256",
3964
- indexed: false,
3965
- internalType: "uint256"
3966
- }
3967
- ],
3968
- anonymous: false
3969
- }
3970
- ];
3971
- const iPriceOracleV300Abi = [
3972
- {
3973
- type: "function",
3974
- name: "convert",
3975
- inputs: [
3976
- { name: "amount", type: "uint256", internalType: "uint256" },
3977
- { name: "tokenFrom", type: "address", internalType: "address" },
3978
- { name: "tokenTo", type: "address", internalType: "address" }
3979
- ],
3980
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3981
- stateMutability: "view"
3982
- },
3983
- {
3984
- type: "function",
3985
- name: "convertFromUSD",
3986
- inputs: [
3987
- { name: "amount", type: "uint256", internalType: "uint256" },
3988
- { name: "token", type: "address", internalType: "address" }
3989
- ],
3990
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
3991
- stateMutability: "view"
3992
- },
3993
- {
3994
- type: "function",
3995
- name: "convertToUSD",
3996
- inputs: [
3997
- { name: "amount", type: "uint256", internalType: "uint256" },
3998
- { name: "token", type: "address", internalType: "address" }
3999
- ],
4000
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4001
- stateMutability: "view"
4002
- },
4003
- {
4004
- type: "function",
4005
- name: "getPrice",
4006
- inputs: [{ name: "token", type: "address", internalType: "address" }],
4007
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4008
- stateMutability: "view"
4009
- },
4010
- {
4011
- type: "function",
4012
- name: "getPriceRaw",
4013
- inputs: [
4014
- { name: "token", type: "address", internalType: "address" },
4015
- { name: "reserve", type: "bool", internalType: "bool" }
4016
- ],
4017
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4018
- stateMutability: "view"
4019
- },
4020
- {
4021
- type: "function",
4022
- name: "getPriceSafe",
4023
- inputs: [{ name: "token", type: "address", internalType: "address" }],
4024
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4025
- stateMutability: "view"
4026
- },
4027
- {
4028
- type: "function",
4029
- name: "priceFeedParams",
4030
- inputs: [{ name: "token", type: "address", internalType: "address" }],
4031
- outputs: [
4032
- { name: "priceFeed", type: "address", internalType: "address" },
4033
- { name: "stalenessPeriod", type: "uint32", internalType: "uint32" },
4034
- { name: "skipCheck", type: "bool", internalType: "bool" },
4035
- { name: "decimals", type: "uint8", internalType: "uint8" },
4036
- { name: "trusted", type: "bool", internalType: "bool" }
4037
- ],
4038
- stateMutability: "view"
4039
- },
4040
- {
4041
- type: "function",
4042
- name: "priceFeeds",
4043
- inputs: [{ name: "token", type: "address", internalType: "address" }],
4044
- outputs: [{ name: "priceFeed", type: "address", internalType: "address" }],
4045
- stateMutability: "view"
4046
- },
4047
- {
4048
- type: "function",
4049
- name: "priceFeedsRaw",
4050
- inputs: [
4051
- { name: "token", type: "address", internalType: "address" },
4052
- { name: "reserve", type: "bool", internalType: "bool" }
4053
- ],
4054
- outputs: [{ name: "", type: "address", internalType: "address" }],
4055
- stateMutability: "view"
4056
- },
4057
- {
4058
- type: "function",
4059
- name: "safeConvertToUSD",
4060
- inputs: [
4061
- { name: "amount", type: "uint256", internalType: "uint256" },
4062
- { name: "token", type: "address", internalType: "address" }
4063
- ],
4064
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4065
- stateMutability: "view"
4066
- },
4067
- {
4068
- type: "function",
4069
- name: "setPriceFeed",
4070
- inputs: [
4071
- { name: "token", type: "address", internalType: "address" },
4072
- { name: "priceFeed", type: "address", internalType: "address" },
4073
- { name: "stalenessPeriod", type: "uint32", internalType: "uint32" },
4074
- { name: "trusted", type: "bool", internalType: "bool" }
4075
- ],
4076
- outputs: [],
4077
- stateMutability: "nonpayable"
4078
- },
4079
- {
4080
- type: "function",
4081
- name: "setReservePriceFeed",
4082
- inputs: [
4083
- { name: "token", type: "address", internalType: "address" },
4084
- { name: "priceFeed", type: "address", internalType: "address" },
4085
- { name: "stalenessPeriod", type: "uint32", internalType: "uint32" }
4086
- ],
4087
- outputs: [],
4088
- stateMutability: "nonpayable"
4089
- },
4090
- {
4091
- type: "function",
4092
- name: "setReservePriceFeedStatus",
4093
- inputs: [
4094
- { name: "token", type: "address", internalType: "address" },
4095
- { name: "active", type: "bool", internalType: "bool" }
4096
- ],
4097
- outputs: [],
4098
- stateMutability: "nonpayable"
4099
- },
4100
- {
4101
- type: "function",
4102
- name: "version",
4103
- inputs: [],
4104
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
4105
- stateMutability: "view"
4106
- },
4107
- {
4108
- type: "event",
4109
- name: "SetPriceFeed",
4110
- inputs: [
4111
- {
4112
- name: "token",
4113
- type: "address",
4114
- indexed: true,
4115
- internalType: "address"
4116
- },
4117
- {
4118
- name: "priceFeed",
4119
- type: "address",
4120
- indexed: true,
4121
- internalType: "address"
4122
- },
4123
- {
4124
- name: "stalenessPeriod",
4125
- type: "uint32",
4126
- indexed: false,
4127
- internalType: "uint32"
4128
- },
4129
- { name: "skipCheck", type: "bool", indexed: false, internalType: "bool" },
4130
- { name: "trusted", type: "bool", indexed: false, internalType: "bool" }
4131
- ],
4132
- anonymous: false
4133
- },
4134
- {
4135
- type: "event",
4136
- name: "SetReservePriceFeed",
4137
- inputs: [
4138
- {
4139
- name: "token",
4140
- type: "address",
4141
- indexed: true,
4142
- internalType: "address"
4143
- },
4144
- {
4145
- name: "priceFeed",
4146
- type: "address",
4147
- indexed: true,
4148
- internalType: "address"
4149
- },
4150
- {
4151
- name: "stalenessPeriod",
4152
- type: "uint32",
4153
- indexed: false,
4154
- internalType: "uint32"
4155
- },
4156
- { name: "skipCheck", type: "bool", indexed: false, internalType: "bool" }
4157
- ],
4158
- anonymous: false
4159
- },
4160
- {
4161
- type: "event",
4162
- name: "SetReservePriceFeedStatus",
4163
- inputs: [
4164
- {
4165
- name: "token",
4166
- type: "address",
4167
- indexed: true,
4168
- internalType: "address"
4169
- },
4170
- { name: "active", type: "bool", indexed: false, internalType: "bool" }
4171
- ],
4172
- anonymous: false
4173
- }
4174
- ];
4175
- // Annotate the CommonJS export names for ESM import in node:
4176
- 0 && (module.exports = {
4177
- iAddressProviderV300Abi,
4178
- iBotListV300Abi,
4179
- iCreditConfiguratorV300Abi,
4180
- iCreditFacadeV300Abi,
4181
- iCreditFacadeV300MulticallAbi,
4182
- iCreditManagerV300Abi,
4183
- iGaugeV300Abi,
4184
- iGearStakingV300Abi,
4185
- iLinearInterestRateModelV300Abi,
4186
- iPoolQuotaKeeperV300Abi,
4187
- iPoolV300Abi,
4188
- iPriceOracleV300Abi
4189
- });