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