upshift-finance 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +349 -0
  3. package/lib/abis/AddressResolver.d.ts +28 -0
  4. package/lib/abis/AddressResolver.js +23 -0
  5. package/lib/abis/ChainlinkV3.d.ts +87 -0
  6. package/lib/abis/ChainlinkV3.js +117 -0
  7. package/lib/abis/ERC20.d.ts +168 -0
  8. package/lib/abis/ERC20.js +226 -0
  9. package/lib/abis/ERC20_Bytes32.d.ts +139 -0
  10. package/lib/abis/ERC20_Bytes32.js +196 -0
  11. package/lib/abis/ERC4626.d.ts +364 -0
  12. package/lib/abis/ERC4626.js +507 -0
  13. package/lib/abis/ERC721.d.ts +231 -0
  14. package/lib/abis/ERC721.js +321 -0
  15. package/lib/abis/FeeOracle.d.ts +120 -0
  16. package/lib/abis/FeeOracle.js +162 -0
  17. package/lib/abis/LendingPool.d.ts +1393 -0
  18. package/lib/abis/LendingPool.js +1807 -0
  19. package/lib/abis/LendingPoolV2.d.ts +1413 -0
  20. package/lib/abis/LendingPoolV2.js +1833 -0
  21. package/lib/abis/LendingPoolV3.d.ts +1677 -0
  22. package/lib/abis/LendingPoolV3.js +1160 -0
  23. package/lib/abis/Loan.d.ts +837 -0
  24. package/lib/abis/Loan.js +1080 -0
  25. package/lib/abis/MultiAssetNativeDepositWrapper.d.ts +137 -0
  26. package/lib/abis/MultiAssetNativeDepositWrapper.js +125 -0
  27. package/lib/abis/Multicall3.d.ts +30 -0
  28. package/lib/abis/Multicall3.js +97 -0
  29. package/lib/abis/OFT.d.ts +116 -0
  30. package/lib/abis/OFT.js +85 -0
  31. package/lib/abis/PoolAdapter.d.ts +36 -0
  32. package/lib/abis/PoolAdapter.js +51 -0
  33. package/lib/abis/RewardDistributor.d.ts +267 -0
  34. package/lib/abis/RewardDistributor.js +352 -0
  35. package/lib/abis/RwaRedeemSubaccount.d.ts +747 -0
  36. package/lib/abis/RwaRedeemSubaccount.js +548 -0
  37. package/lib/abis/SmartAccount.d.ts +17 -0
  38. package/lib/abis/SmartAccount.js +19 -0
  39. package/lib/abis/SwapRouter.d.ts +1043 -0
  40. package/lib/abis/SwapRouter.js +740 -0
  41. package/lib/abis/TextResolver.d.ts +16 -0
  42. package/lib/abis/TextResolver.js +16 -0
  43. package/lib/abis/TokenizedVaultV2.d.ts +1364 -0
  44. package/lib/abis/TokenizedVaultV2.js +1041 -0
  45. package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +1456 -0
  46. package/lib/abis/TokenizedVaultV2DepositWithPermit.js +1878 -0
  47. package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
  48. package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
  49. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.d.ts +454 -0
  50. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.js +327 -0
  51. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.d.ts +1466 -0
  52. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.js +1092 -0
  53. package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
  54. package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
  55. package/lib/abis/UniversalResolverResolve.d.ts +69 -0
  56. package/lib/abis/UniversalResolverResolve.js +35 -0
  57. package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
  58. package/lib/abis/UniversalSignatureValidator.js +30 -0
  59. package/lib/abis/WrapperAdapter.d.ts +71 -0
  60. package/lib/abis/WrapperAdapter.js +77 -0
  61. package/lib/abis/index.d.ts +34 -0
  62. package/lib/abis/index.js +51 -0
  63. package/lib/adapters/evm/getters.d.ts +19 -0
  64. package/lib/adapters/evm/getters.js +209 -0
  65. package/lib/adapters/evm/index.d.ts +353 -0
  66. package/lib/adapters/evm/index.js +434 -0
  67. package/lib/adapters/evm/utils.d.ts +8 -0
  68. package/lib/adapters/evm/utils.js +51 -0
  69. package/lib/adapters/solana/constants.d.ts +33 -0
  70. package/lib/adapters/solana/constants.js +52 -0
  71. package/lib/adapters/solana/getters.d.ts +11 -0
  72. package/lib/adapters/solana/getters.js +165 -0
  73. package/lib/adapters/solana/idl/vault-idl.d.ts +272 -0
  74. package/lib/adapters/solana/idl/vault-idl.js +1084 -0
  75. package/lib/adapters/solana/index.d.ts +233 -0
  76. package/lib/adapters/solana/index.js +291 -0
  77. package/lib/adapters/solana/types.d.ts +67 -0
  78. package/lib/adapters/solana/types.js +3 -0
  79. package/lib/adapters/solana/utils.d.ts +141 -0
  80. package/lib/adapters/solana/utils.js +595 -0
  81. package/lib/adapters/solana/vault.actions.d.ts +57 -0
  82. package/lib/adapters/solana/vault.actions.js +379 -0
  83. package/lib/adapters/stellar/actions.d.ts +28 -0
  84. package/lib/adapters/stellar/actions.js +77 -0
  85. package/lib/adapters/stellar/constants.d.ts +43 -0
  86. package/lib/adapters/stellar/constants.js +53 -0
  87. package/lib/adapters/stellar/getters.d.ts +68 -0
  88. package/lib/adapters/stellar/getters.js +290 -0
  89. package/lib/adapters/stellar/index.d.ts +114 -0
  90. package/lib/adapters/stellar/index.js +175 -0
  91. package/lib/adapters/stellar/soroban.d.ts +123 -0
  92. package/lib/adapters/stellar/soroban.js +613 -0
  93. package/lib/adapters/stellar/submit.d.ts +34 -0
  94. package/lib/adapters/stellar/submit.js +149 -0
  95. package/lib/adapters/stellar/types.d.ts +58 -0
  96. package/lib/adapters/stellar/types.js +6 -0
  97. package/lib/adapters/stellar/utils.d.ts +24 -0
  98. package/lib/adapters/stellar/utils.js +34 -0
  99. package/lib/adapters/sui/constants.d.ts +14 -0
  100. package/lib/adapters/sui/constants.js +29 -0
  101. package/lib/adapters/sui/getters.d.ts +9 -0
  102. package/lib/adapters/sui/getters.js +60 -0
  103. package/lib/adapters/sui/index.d.ts +45 -0
  104. package/lib/adapters/sui/index.js +101 -0
  105. package/lib/adapters/sui/transformer.d.ts +10 -0
  106. package/lib/adapters/sui/transformer.js +107 -0
  107. package/lib/adapters/sui/types.d.ts +66 -0
  108. package/lib/adapters/sui/types.js +3 -0
  109. package/lib/adapters/sui/utils.d.ts +10 -0
  110. package/lib/adapters/sui/utils.js +29 -0
  111. package/lib/core/analytics/chain-name.d.ts +9 -0
  112. package/lib/core/analytics/chain-name.js +34 -0
  113. package/lib/core/analytics/constants.d.ts +5 -0
  114. package/lib/core/analytics/constants.js +9 -0
  115. package/lib/core/analytics/env.d.ts +29 -0
  116. package/lib/core/analytics/env.js +59 -0
  117. package/lib/core/analytics/index.d.ts +36 -0
  118. package/lib/core/analytics/index.js +79 -0
  119. package/lib/core/analytics/instrumentation.d.ts +29 -0
  120. package/lib/core/analytics/instrumentation.js +277 -0
  121. package/lib/core/analytics/method-taxonomy.d.ts +19 -0
  122. package/lib/core/analytics/method-taxonomy.js +128 -0
  123. package/lib/core/analytics/metrics.d.ts +33 -0
  124. package/lib/core/analytics/metrics.js +116 -0
  125. package/lib/core/analytics/sanitize.d.ts +44 -0
  126. package/lib/core/analytics/sanitize.js +260 -0
  127. package/lib/core/analytics/sentry-runtime.d.ts +15 -0
  128. package/lib/core/analytics/sentry-runtime.js +97 -0
  129. package/lib/core/analytics/sentry.d.ts +67 -0
  130. package/lib/core/analytics/sentry.js +613 -0
  131. package/lib/core/analytics/types.d.ts +48 -0
  132. package/lib/core/analytics/types.js +3 -0
  133. package/lib/core/analytics/user-identity.d.ts +41 -0
  134. package/lib/core/analytics/user-identity.js +141 -0
  135. package/lib/core/analytics/version.d.ts +6 -0
  136. package/lib/core/analytics/version.js +10 -0
  137. package/lib/core/attribution.d.ts +111 -0
  138. package/lib/core/attribution.js +142 -0
  139. package/lib/core/auth/index.d.ts +1 -0
  140. package/lib/core/auth/index.js +18 -0
  141. package/lib/core/auth/verify.d.ts +2 -0
  142. package/lib/core/auth/verify.js +31 -0
  143. package/lib/core/base.class.d.ts +152 -0
  144. package/lib/core/base.class.js +172 -0
  145. package/lib/core/cache.d.ts +9 -0
  146. package/lib/core/cache.js +31 -0
  147. package/lib/core/constants/adapters.d.ts +103 -0
  148. package/lib/core/constants/adapters.js +180 -0
  149. package/lib/core/constants/core.d.ts +133 -0
  150. package/lib/core/constants/core.js +209 -0
  151. package/lib/core/constants/swap-router.d.ts +150 -0
  152. package/lib/core/constants/swap-router.js +169 -0
  153. package/lib/core/constants/vaults.d.ts +93 -0
  154. package/lib/core/constants/vaults.js +273 -0
  155. package/lib/core/constants/web3.d.ts +91 -0
  156. package/lib/core/constants/web3.js +229 -0
  157. package/lib/core/errors/index.d.ts +114 -0
  158. package/lib/core/errors/index.js +183 -0
  159. package/lib/core/fetcher.d.ts +198 -0
  160. package/lib/core/fetcher.js +903 -0
  161. package/lib/core/helpers/adapters.d.ts +13 -0
  162. package/lib/core/helpers/adapters.js +39 -0
  163. package/lib/core/helpers/chain-address.d.ts +13 -0
  164. package/lib/core/helpers/chain-address.js +47 -0
  165. package/lib/core/helpers/chain-error.d.ts +207 -0
  166. package/lib/core/helpers/chain-error.js +682 -0
  167. package/lib/core/helpers/chain-support.d.ts +80 -0
  168. package/lib/core/helpers/chain-support.js +115 -0
  169. package/lib/core/helpers/core.d.ts +68 -0
  170. package/lib/core/helpers/core.js +285 -0
  171. package/lib/core/helpers/explorer-link.d.ts +16 -0
  172. package/lib/core/helpers/explorer-link.js +26 -0
  173. package/lib/core/helpers/multicall.d.ts +68 -0
  174. package/lib/core/helpers/multicall.js +103 -0
  175. package/lib/core/helpers/revert-decode.d.ts +248 -0
  176. package/lib/core/helpers/revert-decode.js +515 -0
  177. package/lib/core/helpers/signer.d.ts +52 -0
  178. package/lib/core/helpers/signer.js +145 -0
  179. package/lib/core/helpers/swap-router.d.ts +211 -0
  180. package/lib/core/helpers/swap-router.js +480 -0
  181. package/lib/core/helpers/vault-version.d.ts +23 -0
  182. package/lib/core/helpers/vault-version.js +75 -0
  183. package/lib/core/helpers/vaults.d.ts +89 -0
  184. package/lib/core/helpers/vaults.js +235 -0
  185. package/lib/core/helpers/web3.d.ts +353 -0
  186. package/lib/core/helpers/web3.js +992 -0
  187. package/lib/core/index.d.ts +23 -0
  188. package/lib/core/index.js +40 -0
  189. package/lib/core/logger/index.d.ts +98 -0
  190. package/lib/core/logger/index.js +144 -0
  191. package/lib/core/logger/slack.d.ts +16 -0
  192. package/lib/core/logger/slack.js +57 -0
  193. package/lib/core/vault-metadata.d.ts +12 -0
  194. package/lib/core/vault-metadata.js +42 -0
  195. package/lib/core/version-check.d.ts +58 -0
  196. package/lib/core/version-check.js +182 -0
  197. package/lib/evm/index.d.ts +2 -0
  198. package/lib/evm/index.js +19 -0
  199. package/lib/evm/methods/crossChainVault.d.ts +128 -0
  200. package/lib/evm/methods/crossChainVault.js +853 -0
  201. package/lib/evm/methods/crossChainVaultRegistry.d.ts +93 -0
  202. package/lib/evm/methods/crossChainVaultRegistry.js +240 -0
  203. package/lib/evm/methods/index.d.ts +2 -0
  204. package/lib/evm/methods/index.js +19 -0
  205. package/lib/evm/types/crossChain.d.ts +363 -0
  206. package/lib/evm/types/crossChain.js +20 -0
  207. package/lib/evm/types/index.d.ts +1 -0
  208. package/lib/evm/types/index.js +18 -0
  209. package/lib/index.d.ts +30 -0
  210. package/lib/index.js +52 -0
  211. package/lib/main.d.ts +527 -0
  212. package/lib/main.js +601 -0
  213. package/lib/modules/api/fetcher.d.ts +82 -0
  214. package/lib/modules/api/fetcher.js +150 -0
  215. package/lib/modules/api/index.d.ts +1 -0
  216. package/lib/modules/api/index.js +6 -0
  217. package/lib/modules/api/main.d.ts +313 -0
  218. package/lib/modules/api/main.js +479 -0
  219. package/lib/modules/sub-accounts/fetcher.d.ts +53 -0
  220. package/lib/modules/sub-accounts/fetcher.js +120 -0
  221. package/lib/modules/sub-accounts/index.d.ts +2 -0
  222. package/lib/modules/sub-accounts/index.js +19 -0
  223. package/lib/modules/sub-accounts/main.d.ts +243 -0
  224. package/lib/modules/sub-accounts/main.js +205 -0
  225. package/lib/modules/sub-accounts/utils.d.ts +106 -0
  226. package/lib/modules/sub-accounts/utils.js +112 -0
  227. package/lib/modules/vaults/adapter.helpers.d.ts +64 -0
  228. package/lib/modules/vaults/adapter.helpers.js +184 -0
  229. package/lib/modules/vaults/fetcher.d.ts +147 -0
  230. package/lib/modules/vaults/fetcher.js +368 -0
  231. package/lib/modules/vaults/getters.d.ts +570 -0
  232. package/lib/modules/vaults/getters.js +3051 -0
  233. package/lib/modules/vaults/index.d.ts +20 -0
  234. package/lib/modules/vaults/index.js +44 -0
  235. package/lib/modules/vaults/main.d.ts +601 -0
  236. package/lib/modules/vaults/main.js +1623 -0
  237. package/lib/modules/vaults/prefetch.d.ts +65 -0
  238. package/lib/modules/vaults/prefetch.js +120 -0
  239. package/lib/modules/vaults/read.actions.d.ts +225 -0
  240. package/lib/modules/vaults/read.actions.js +596 -0
  241. package/lib/modules/vaults/types.d.ts +71 -0
  242. package/lib/modules/vaults/types.js +3 -0
  243. package/lib/modules/vaults/utils/call-data-decoder.d.ts +61 -0
  244. package/lib/modules/vaults/utils/call-data-decoder.js +194 -0
  245. package/lib/modules/vaults/utils/date-utils.d.ts +50 -0
  246. package/lib/modules/vaults/utils/date-utils.js +84 -0
  247. package/lib/modules/vaults/utils.d.ts +140 -0
  248. package/lib/modules/vaults/utils.js +799 -0
  249. package/lib/modules/vaults/write.actions.d.ts +529 -0
  250. package/lib/modules/vaults/write.actions.js +1749 -0
  251. package/lib/polyfills.d.ts +1 -0
  252. package/lib/polyfills.js +12 -0
  253. package/lib/sdk.d.ts +26721 -0
  254. package/lib/services/coingecko/fetcher.d.ts +15 -0
  255. package/lib/services/coingecko/fetcher.js +67 -0
  256. package/lib/services/coingecko/index.d.ts +2 -0
  257. package/lib/services/coingecko/index.js +19 -0
  258. package/lib/services/coingecko/utils.d.ts +1 -0
  259. package/lib/services/coingecko/utils.js +24 -0
  260. package/lib/services/debank/fetcher.d.ts +126 -0
  261. package/lib/services/debank/fetcher.js +47 -0
  262. package/lib/services/debank/index.d.ts +2 -0
  263. package/lib/services/debank/index.js +19 -0
  264. package/lib/services/debank/utils.d.ts +38 -0
  265. package/lib/services/debank/utils.js +297 -0
  266. package/lib/services/layerzero/deposits.d.ts +49 -0
  267. package/lib/services/layerzero/deposits.js +166 -0
  268. package/lib/services/layerzero/redeems.d.ts +20 -0
  269. package/lib/services/layerzero/redeems.js +92 -0
  270. package/lib/services/layerzero/utils.d.ts +9 -0
  271. package/lib/services/layerzero/utils.js +22 -0
  272. package/lib/services/octavfi/fetcher.d.ts +9 -0
  273. package/lib/services/octavfi/fetcher.js +103 -0
  274. package/lib/services/octavfi/index.d.ts +3 -0
  275. package/lib/services/octavfi/index.js +20 -0
  276. package/lib/services/octavfi/types.d.ts +34 -0
  277. package/lib/services/octavfi/types.js +3 -0
  278. package/lib/services/octavfi/utils.d.ts +16 -0
  279. package/lib/services/octavfi/utils.js +212 -0
  280. package/lib/services/subgraph/fetcher.d.ts +2 -0
  281. package/lib/services/subgraph/fetcher.js +61 -0
  282. package/lib/services/subgraph/index.d.ts +2 -0
  283. package/lib/services/subgraph/index.js +19 -0
  284. package/lib/services/subgraph/schema.d.ts +45 -0
  285. package/lib/services/subgraph/schema.js +75 -0
  286. package/lib/services/subgraph/vaults.d.ts +25 -0
  287. package/lib/services/subgraph/vaults.js +1106 -0
  288. package/lib/services/swap-quotes/index.d.ts +105 -0
  289. package/lib/services/swap-quotes/index.js +77 -0
  290. package/lib/services/swap-quotes/paraswap.d.ts +51 -0
  291. package/lib/services/swap-quotes/paraswap.js +138 -0
  292. package/lib/types/api.d.ts +280 -0
  293. package/lib/types/api.js +3 -0
  294. package/lib/types/index.d.ts +12 -0
  295. package/lib/types/index.js +28 -0
  296. package/lib/types/points.d.ts +28 -0
  297. package/lib/types/points.js +3 -0
  298. package/lib/types/pools.d.ts +144 -0
  299. package/lib/types/pools.js +3 -0
  300. package/lib/types/staking.d.ts +28 -0
  301. package/lib/types/staking.js +3 -0
  302. package/lib/types/sub-accounts.d.ts +140 -0
  303. package/lib/types/sub-accounts.js +3 -0
  304. package/lib/types/subgraph.d.ts +74 -0
  305. package/lib/types/subgraph.js +3 -0
  306. package/lib/types/typed-contract.d.ts +102 -0
  307. package/lib/types/typed-contract.js +3 -0
  308. package/lib/types/user.d.ts +1 -0
  309. package/lib/types/user.js +3 -0
  310. package/lib/types/vaults.d.ts +714 -0
  311. package/lib/types/vaults.js +24 -0
  312. package/lib/types/web3.d.ts +51 -0
  313. package/lib/types/web3.js +14 -0
  314. package/lib/types/webserver.d.ts +698 -0
  315. package/lib/types/webserver.js +3 -0
  316. package/package.json +78 -0
@@ -0,0 +1,1807 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ABI_LENDING_POOLS = void 0;
4
+ exports.ABI_LENDING_POOLS = [
5
+ {
6
+ inputs: [],
7
+ stateMutability: 'nonpayable',
8
+ type: 'constructor',
9
+ },
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: true,
15
+ internalType: 'address',
16
+ name: 'owner',
17
+ type: 'address',
18
+ },
19
+ {
20
+ indexed: true,
21
+ internalType: 'address',
22
+ name: 'spender',
23
+ type: 'address',
24
+ },
25
+ {
26
+ indexed: false,
27
+ internalType: 'uint256',
28
+ name: 'value',
29
+ type: 'uint256',
30
+ },
31
+ ],
32
+ name: 'Approval',
33
+ type: 'event',
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ {
39
+ indexed: true,
40
+ internalType: 'address',
41
+ name: 'sender',
42
+ type: 'address',
43
+ },
44
+ {
45
+ indexed: true,
46
+ internalType: 'address',
47
+ name: 'owner',
48
+ type: 'address',
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: 'uint256',
53
+ name: 'assets',
54
+ type: 'uint256',
55
+ },
56
+ {
57
+ indexed: false,
58
+ internalType: 'uint256',
59
+ name: 'shares',
60
+ type: 'uint256',
61
+ },
62
+ ],
63
+ name: 'Deposit',
64
+ type: 'event',
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: false,
71
+ internalType: 'bool',
72
+ name: 'bDepositsPaused',
73
+ type: 'bool',
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: 'bool',
78
+ name: 'bWithdrawalsPaused',
79
+ type: 'bool',
80
+ },
81
+ ],
82
+ name: 'DepositWithdrawalStatusChanged',
83
+ type: 'event',
84
+ },
85
+ {
86
+ anonymous: false,
87
+ inputs: [
88
+ {
89
+ indexed: false,
90
+ internalType: 'uint8',
91
+ name: 'version',
92
+ type: 'uint8',
93
+ },
94
+ ],
95
+ name: 'Initialized',
96
+ type: 'event',
97
+ },
98
+ {
99
+ anonymous: false,
100
+ inputs: [
101
+ {
102
+ indexed: false,
103
+ internalType: 'address',
104
+ name: 'loanAddr',
105
+ type: 'address',
106
+ },
107
+ {
108
+ indexed: false,
109
+ internalType: 'uint256',
110
+ name: 'aprWithTwoDecimals',
111
+ type: 'uint256',
112
+ },
113
+ ],
114
+ name: 'NewLoanDeployedByPool',
115
+ type: 'event',
116
+ },
117
+ {
118
+ anonymous: false,
119
+ inputs: [
120
+ {
121
+ indexed: false,
122
+ internalType: 'uint256',
123
+ name: 'withdrawalAmount',
124
+ type: 'uint256',
125
+ },
126
+ {
127
+ indexed: false,
128
+ internalType: 'address',
129
+ name: 'tokenAddr',
130
+ type: 'address',
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: 'address',
135
+ name: 'destinationAddr',
136
+ type: 'address',
137
+ },
138
+ ],
139
+ name: 'OnEmergencyWithdraw',
140
+ type: 'event',
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: false,
147
+ internalType: 'uint256',
148
+ name: 'prevValue',
149
+ type: 'uint256',
150
+ },
151
+ {
152
+ indexed: false,
153
+ internalType: 'uint256',
154
+ name: 'newValue',
155
+ type: 'uint256',
156
+ },
157
+ ],
158
+ name: 'OnMaxSupplyChanged',
159
+ type: 'event',
160
+ },
161
+ {
162
+ anonymous: false,
163
+ inputs: [
164
+ {
165
+ indexed: true,
166
+ internalType: 'address',
167
+ name: 'previousOwner',
168
+ type: 'address',
169
+ },
170
+ {
171
+ indexed: true,
172
+ internalType: 'address',
173
+ name: 'newOwner',
174
+ type: 'address',
175
+ },
176
+ ],
177
+ name: 'OwnershipTransferred',
178
+ type: 'event',
179
+ },
180
+ {
181
+ anonymous: false,
182
+ inputs: [
183
+ {
184
+ indexed: true,
185
+ internalType: 'address',
186
+ name: 'from',
187
+ type: 'address',
188
+ },
189
+ {
190
+ indexed: true,
191
+ internalType: 'address',
192
+ name: 'to',
193
+ type: 'address',
194
+ },
195
+ {
196
+ indexed: false,
197
+ internalType: 'uint256',
198
+ name: 'value',
199
+ type: 'uint256',
200
+ },
201
+ ],
202
+ name: 'Transfer',
203
+ type: 'event',
204
+ },
205
+ {
206
+ anonymous: false,
207
+ inputs: [
208
+ {
209
+ indexed: true,
210
+ internalType: 'address',
211
+ name: 'sender',
212
+ type: 'address',
213
+ },
214
+ {
215
+ indexed: true,
216
+ internalType: 'address',
217
+ name: 'receiver',
218
+ type: 'address',
219
+ },
220
+ {
221
+ indexed: true,
222
+ internalType: 'address',
223
+ name: 'owner',
224
+ type: 'address',
225
+ },
226
+ {
227
+ indexed: false,
228
+ internalType: 'uint256',
229
+ name: 'assets',
230
+ type: 'uint256',
231
+ },
232
+ {
233
+ indexed: false,
234
+ internalType: 'uint256',
235
+ name: 'shares',
236
+ type: 'uint256',
237
+ },
238
+ ],
239
+ name: 'Withdraw',
240
+ type: 'event',
241
+ },
242
+ {
243
+ anonymous: false,
244
+ inputs: [
245
+ {
246
+ indexed: false,
247
+ internalType: 'uint256',
248
+ name: 'assetsAmount',
249
+ type: 'uint256',
250
+ },
251
+ {
252
+ indexed: false,
253
+ internalType: 'uint256',
254
+ name: 'processedOn',
255
+ type: 'uint256',
256
+ },
257
+ {
258
+ indexed: false,
259
+ internalType: 'address',
260
+ name: 'receiverAddr',
261
+ type: 'address',
262
+ },
263
+ {
264
+ indexed: false,
265
+ internalType: 'uint256',
266
+ name: 'requestedOn',
267
+ type: 'uint256',
268
+ },
269
+ ],
270
+ name: 'WithdrawalProcessed',
271
+ type: 'event',
272
+ },
273
+ {
274
+ anonymous: false,
275
+ inputs: [
276
+ {
277
+ indexed: false,
278
+ internalType: 'address',
279
+ name: 'ownerAddr',
280
+ type: 'address',
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: 'address',
285
+ name: 'receiverAddr',
286
+ type: 'address',
287
+ },
288
+ {
289
+ indexed: false,
290
+ internalType: 'uint256',
291
+ name: 'shares',
292
+ type: 'uint256',
293
+ },
294
+ {
295
+ indexed: false,
296
+ internalType: 'uint256',
297
+ name: 'assets',
298
+ type: 'uint256',
299
+ },
300
+ {
301
+ indexed: false,
302
+ internalType: 'uint256',
303
+ name: 'fee',
304
+ type: 'uint256',
305
+ },
306
+ {
307
+ indexed: false,
308
+ internalType: 'uint256',
309
+ name: 'year',
310
+ type: 'uint256',
311
+ },
312
+ {
313
+ indexed: false,
314
+ internalType: 'uint256',
315
+ name: 'month',
316
+ type: 'uint256',
317
+ },
318
+ {
319
+ indexed: false,
320
+ internalType: 'uint256',
321
+ name: 'day',
322
+ type: 'uint256',
323
+ },
324
+ ],
325
+ name: 'WithdrawalRequested',
326
+ type: 'event',
327
+ },
328
+ {
329
+ inputs: [
330
+ {
331
+ internalType: 'address',
332
+ name: 'ownerAddr',
333
+ type: 'address',
334
+ },
335
+ {
336
+ internalType: 'address',
337
+ name: 'spenderAddr',
338
+ type: 'address',
339
+ },
340
+ ],
341
+ name: 'allowance',
342
+ outputs: [
343
+ {
344
+ internalType: 'uint256',
345
+ name: '',
346
+ type: 'uint256',
347
+ },
348
+ ],
349
+ stateMutability: 'view',
350
+ type: 'function',
351
+ },
352
+ {
353
+ inputs: [
354
+ {
355
+ internalType: 'address',
356
+ name: 'spender',
357
+ type: 'address',
358
+ },
359
+ {
360
+ internalType: 'uint256',
361
+ name: 'value',
362
+ type: 'uint256',
363
+ },
364
+ ],
365
+ name: 'approve',
366
+ outputs: [
367
+ {
368
+ internalType: 'bool',
369
+ name: '',
370
+ type: 'bool',
371
+ },
372
+ ],
373
+ stateMutability: 'nonpayable',
374
+ type: 'function',
375
+ },
376
+ {
377
+ inputs: [],
378
+ name: 'asset',
379
+ outputs: [
380
+ {
381
+ internalType: 'address',
382
+ name: '',
383
+ type: 'address',
384
+ },
385
+ ],
386
+ stateMutability: 'view',
387
+ type: 'function',
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: 'address',
393
+ name: 'addr',
394
+ type: 'address',
395
+ },
396
+ ],
397
+ name: 'balanceOf',
398
+ outputs: [
399
+ {
400
+ internalType: 'uint256',
401
+ name: '',
402
+ type: 'uint256',
403
+ },
404
+ ],
405
+ stateMutability: 'view',
406
+ type: 'function',
407
+ },
408
+ {
409
+ inputs: [
410
+ {
411
+ internalType: 'address',
412
+ name: 'loanAddr',
413
+ type: 'address',
414
+ },
415
+ {
416
+ internalType: 'uint256',
417
+ name: 'callbackPeriodInHours',
418
+ type: 'uint256',
419
+ },
420
+ {
421
+ internalType: 'uint256',
422
+ name: 'gracePeriodInHours',
423
+ type: 'uint256',
424
+ },
425
+ ],
426
+ name: 'callLoan',
427
+ outputs: [],
428
+ stateMutability: 'nonpayable',
429
+ type: 'function',
430
+ },
431
+ {
432
+ inputs: [
433
+ {
434
+ internalType: 'address',
435
+ name: 'loanAddr',
436
+ type: 'address',
437
+ },
438
+ {
439
+ internalType: 'uint256',
440
+ name: 'lateInterestFeeWithTwoDecimals',
441
+ type: 'uint256',
442
+ },
443
+ {
444
+ internalType: 'uint256',
445
+ name: 'latePrincipalFeeWithTwoDecimals',
446
+ type: 'uint256',
447
+ },
448
+ ],
449
+ name: 'changeLateFees',
450
+ outputs: [],
451
+ stateMutability: 'nonpayable',
452
+ type: 'function',
453
+ },
454
+ {
455
+ inputs: [
456
+ {
457
+ internalType: 'address',
458
+ name: 'loanAddr',
459
+ type: 'address',
460
+ },
461
+ {
462
+ internalType: 'uint256',
463
+ name: 'maintenanceCollateralRatioWith2Decimals',
464
+ type: 'uint256',
465
+ },
466
+ ],
467
+ name: 'changeMaintenanceCollateralRatio',
468
+ outputs: [],
469
+ stateMutability: 'nonpayable',
470
+ type: 'function',
471
+ },
472
+ {
473
+ inputs: [
474
+ {
475
+ internalType: 'uint256',
476
+ name: 'year',
477
+ type: 'uint256',
478
+ },
479
+ {
480
+ internalType: 'uint256',
481
+ name: 'month',
482
+ type: 'uint256',
483
+ },
484
+ {
485
+ internalType: 'uint256',
486
+ name: 'day',
487
+ type: 'uint256',
488
+ },
489
+ {
490
+ internalType: 'address',
491
+ name: 'receiverAddr',
492
+ type: 'address',
493
+ },
494
+ ],
495
+ name: 'claim',
496
+ outputs: [
497
+ {
498
+ internalType: 'uint256',
499
+ name: '',
500
+ type: 'uint256',
501
+ },
502
+ {
503
+ internalType: 'uint256',
504
+ name: '',
505
+ type: 'uint256',
506
+ },
507
+ ],
508
+ stateMutability: 'nonpayable',
509
+ type: 'function',
510
+ },
511
+ {
512
+ inputs: [],
513
+ name: 'collectFees',
514
+ outputs: [],
515
+ stateMutability: 'nonpayable',
516
+ type: 'function',
517
+ },
518
+ {
519
+ inputs: [
520
+ {
521
+ internalType: 'uint256',
522
+ name: 'newLagDuration',
523
+ type: 'uint256',
524
+ },
525
+ {
526
+ internalType: 'uint256',
527
+ name: 'newMaxDepositAmount',
528
+ type: 'uint256',
529
+ },
530
+ {
531
+ internalType: 'uint256',
532
+ name: 'newMaxWithdrawalAmount',
533
+ type: 'uint256',
534
+ },
535
+ {
536
+ internalType: 'uint256',
537
+ name: 'newMaxTokenSupply',
538
+ type: 'uint256',
539
+ },
540
+ {
541
+ internalType: 'address',
542
+ name: 'newUnderlyingAsset',
543
+ type: 'address',
544
+ },
545
+ {
546
+ internalType: 'address',
547
+ name: 'newLoansOperator',
548
+ type: 'address',
549
+ },
550
+ {
551
+ internalType: 'address',
552
+ name: 'newLoansDeployerAddress',
553
+ type: 'address',
554
+ },
555
+ {
556
+ internalType: 'address',
557
+ name: 'newFeesCollectorAddr',
558
+ type: 'address',
559
+ },
560
+ {
561
+ internalType: 'address',
562
+ name: 'newScheduledCallerAddress',
563
+ type: 'address',
564
+ },
565
+ {
566
+ internalType: 'uint8',
567
+ name: 'newProcessingHour',
568
+ type: 'uint8',
569
+ },
570
+ ],
571
+ name: 'configurePool',
572
+ outputs: [],
573
+ stateMutability: 'nonpayable',
574
+ type: 'function',
575
+ },
576
+ {
577
+ inputs: [
578
+ {
579
+ internalType: 'uint256',
580
+ name: 'shares',
581
+ type: 'uint256',
582
+ },
583
+ ],
584
+ name: 'convertToAssets',
585
+ outputs: [
586
+ {
587
+ internalType: 'uint256',
588
+ name: '',
589
+ type: 'uint256',
590
+ },
591
+ ],
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ },
595
+ {
596
+ inputs: [
597
+ {
598
+ internalType: 'uint256',
599
+ name: 'assets',
600
+ type: 'uint256',
601
+ },
602
+ ],
603
+ name: 'convertToShares',
604
+ outputs: [
605
+ {
606
+ internalType: 'uint256',
607
+ name: '',
608
+ type: 'uint256',
609
+ },
610
+ ],
611
+ stateMutability: 'view',
612
+ type: 'function',
613
+ },
614
+ {
615
+ inputs: [],
616
+ name: 'decimals',
617
+ outputs: [
618
+ {
619
+ internalType: 'uint8',
620
+ name: '',
621
+ type: 'uint8',
622
+ },
623
+ ],
624
+ stateMutability: 'view',
625
+ type: 'function',
626
+ },
627
+ {
628
+ inputs: [
629
+ {
630
+ components: [
631
+ {
632
+ internalType: 'uint256',
633
+ name: 'fundingPeriodInSeconds',
634
+ type: 'uint256',
635
+ },
636
+ {
637
+ internalType: 'uint256',
638
+ name: 'newPaymentIntervalInSeconds',
639
+ type: 'uint256',
640
+ },
641
+ {
642
+ internalType: 'uint256',
643
+ name: 'newLoanAmountInPrincipalTokens',
644
+ type: 'uint256',
645
+ },
646
+ {
647
+ internalType: 'uint256',
648
+ name: 'originationFeePercent2Decimals',
649
+ type: 'uint256',
650
+ },
651
+ {
652
+ internalType: 'uint256',
653
+ name: 'newAprWithTwoDecimals',
654
+ type: 'uint256',
655
+ },
656
+ {
657
+ internalType: 'uint256',
658
+ name: 'initialCollateralRatioWith2Decimals',
659
+ type: 'uint256',
660
+ },
661
+ {
662
+ internalType: 'uint256',
663
+ name: 'maintenanceCollateralRatioWith2Decimals',
664
+ type: 'uint256',
665
+ },
666
+ {
667
+ internalType: 'uint256',
668
+ name: 'lateInterestFee',
669
+ type: 'uint256',
670
+ },
671
+ {
672
+ internalType: 'uint256',
673
+ name: 'latePrincipalFee',
674
+ type: 'uint256',
675
+ },
676
+ {
677
+ internalType: 'uint256',
678
+ name: 'expiryInfo',
679
+ type: 'uint256',
680
+ },
681
+ {
682
+ internalType: 'string',
683
+ name: 'loanTypeInfo',
684
+ type: 'string',
685
+ },
686
+ {
687
+ internalType: 'address',
688
+ name: 'lenderAddr',
689
+ type: 'address',
690
+ },
691
+ {
692
+ internalType: 'address',
693
+ name: 'borrowerAddr',
694
+ type: 'address',
695
+ },
696
+ {
697
+ internalType: 'address',
698
+ name: 'newCollateralToken',
699
+ type: 'address',
700
+ },
701
+ {
702
+ internalType: 'address',
703
+ name: 'newPrincipalToken',
704
+ type: 'address',
705
+ },
706
+ {
707
+ internalType: 'address',
708
+ name: 'feesManagerAddr',
709
+ type: 'address',
710
+ },
711
+ {
712
+ internalType: 'address',
713
+ name: 'priceOracleAddress',
714
+ type: 'address',
715
+ },
716
+ {
717
+ internalType: 'address',
718
+ name: 'feesCollectorAddress',
719
+ type: 'address',
720
+ },
721
+ {
722
+ internalType: 'address',
723
+ name: 'categoryFeesAdress',
724
+ type: 'address',
725
+ },
726
+ {
727
+ internalType: 'bool',
728
+ name: 'allowSeizeCollateral',
729
+ type: 'bool',
730
+ },
731
+ ],
732
+ internalType: 'struct LoanDeploymentParams',
733
+ name: 'loanParams',
734
+ type: 'tuple',
735
+ },
736
+ ],
737
+ name: 'deployLoan',
738
+ outputs: [
739
+ {
740
+ internalType: 'address',
741
+ name: '',
742
+ type: 'address',
743
+ },
744
+ ],
745
+ stateMutability: 'nonpayable',
746
+ type: 'function',
747
+ },
748
+ {
749
+ inputs: [
750
+ {
751
+ internalType: 'uint256',
752
+ name: 'assets',
753
+ type: 'uint256',
754
+ },
755
+ {
756
+ internalType: 'address',
757
+ name: 'receiver',
758
+ type: 'address',
759
+ },
760
+ ],
761
+ name: 'deposit',
762
+ outputs: [
763
+ {
764
+ internalType: 'uint256',
765
+ name: 'shares',
766
+ type: 'uint256',
767
+ },
768
+ ],
769
+ stateMutability: 'nonpayable',
770
+ type: 'function',
771
+ },
772
+ {
773
+ inputs: [],
774
+ name: 'depositsPaused',
775
+ outputs: [
776
+ {
777
+ internalType: 'bool',
778
+ name: '',
779
+ type: 'bool',
780
+ },
781
+ ],
782
+ stateMutability: 'view',
783
+ type: 'function',
784
+ },
785
+ {
786
+ inputs: [
787
+ {
788
+ internalType: 'contract IERC20',
789
+ name: 'token',
790
+ type: 'address',
791
+ },
792
+ {
793
+ internalType: 'address',
794
+ name: 'destinationAddr',
795
+ type: 'address',
796
+ },
797
+ ],
798
+ name: 'emergencyWithdraw',
799
+ outputs: [],
800
+ stateMutability: 'nonpayable',
801
+ type: 'function',
802
+ },
803
+ {
804
+ inputs: [],
805
+ name: 'feesCollector',
806
+ outputs: [
807
+ {
808
+ internalType: 'address',
809
+ name: '',
810
+ type: 'address',
811
+ },
812
+ ],
813
+ stateMutability: 'view',
814
+ type: 'function',
815
+ },
816
+ {
817
+ inputs: [
818
+ {
819
+ internalType: 'address',
820
+ name: 'loanAddr',
821
+ type: 'address',
822
+ },
823
+ ],
824
+ name: 'fundLoan',
825
+ outputs: [],
826
+ stateMutability: 'nonpayable',
827
+ type: 'function',
828
+ },
829
+ {
830
+ inputs: [
831
+ {
832
+ internalType: 'uint256',
833
+ name: 'year',
834
+ type: 'uint256',
835
+ },
836
+ {
837
+ internalType: 'uint256',
838
+ name: 'month',
839
+ type: 'uint256',
840
+ },
841
+ {
842
+ internalType: 'uint256',
843
+ name: 'day',
844
+ type: 'uint256',
845
+ },
846
+ {
847
+ internalType: 'address',
848
+ name: 'receiverAddr',
849
+ type: 'address',
850
+ },
851
+ ],
852
+ name: 'getBurnableAmountByReceiver',
853
+ outputs: [
854
+ {
855
+ internalType: 'uint256',
856
+ name: '',
857
+ type: 'uint256',
858
+ },
859
+ ],
860
+ stateMutability: 'view',
861
+ type: 'function',
862
+ },
863
+ {
864
+ inputs: [
865
+ {
866
+ internalType: 'uint256',
867
+ name: 'year',
868
+ type: 'uint256',
869
+ },
870
+ {
871
+ internalType: 'uint256',
872
+ name: 'month',
873
+ type: 'uint256',
874
+ },
875
+ {
876
+ internalType: 'uint256',
877
+ name: 'day',
878
+ type: 'uint256',
879
+ },
880
+ {
881
+ internalType: 'address',
882
+ name: 'receiverAddr',
883
+ type: 'address',
884
+ },
885
+ ],
886
+ name: 'getClaimableAmountByReceiver',
887
+ outputs: [
888
+ {
889
+ internalType: 'uint256',
890
+ name: '',
891
+ type: 'uint256',
892
+ },
893
+ ],
894
+ stateMutability: 'view',
895
+ type: 'function',
896
+ },
897
+ {
898
+ inputs: [],
899
+ name: 'getInitializedVersion',
900
+ outputs: [
901
+ {
902
+ internalType: 'uint8',
903
+ name: '',
904
+ type: 'uint8',
905
+ },
906
+ ],
907
+ stateMutability: 'view',
908
+ type: 'function',
909
+ },
910
+ {
911
+ inputs: [
912
+ {
913
+ internalType: 'uint256',
914
+ name: 'year',
915
+ type: 'uint256',
916
+ },
917
+ {
918
+ internalType: 'uint256',
919
+ name: 'month',
920
+ type: 'uint256',
921
+ },
922
+ {
923
+ internalType: 'uint256',
924
+ name: 'day',
925
+ type: 'uint256',
926
+ },
927
+ ],
928
+ name: 'getRequirementByDate',
929
+ outputs: [
930
+ {
931
+ internalType: 'uint256',
932
+ name: 'shares',
933
+ type: 'uint256',
934
+ },
935
+ {
936
+ internalType: 'uint256',
937
+ name: 'assets',
938
+ type: 'uint256',
939
+ },
940
+ ],
941
+ stateMutability: 'view',
942
+ type: 'function',
943
+ },
944
+ {
945
+ inputs: [
946
+ {
947
+ internalType: 'uint256',
948
+ name: 'year',
949
+ type: 'uint256',
950
+ },
951
+ {
952
+ internalType: 'uint256',
953
+ name: 'month',
954
+ type: 'uint256',
955
+ },
956
+ {
957
+ internalType: 'uint256',
958
+ name: 'day',
959
+ type: 'uint256',
960
+ },
961
+ ],
962
+ name: 'getScheduledTransactionsByDate',
963
+ outputs: [
964
+ {
965
+ internalType: 'uint256',
966
+ name: 'totalTransactions',
967
+ type: 'uint256',
968
+ },
969
+ {
970
+ internalType: 'uint256',
971
+ name: 'executionEpoch',
972
+ type: 'uint256',
973
+ },
974
+ ],
975
+ stateMutability: 'view',
976
+ type: 'function',
977
+ },
978
+ {
979
+ inputs: [],
980
+ name: 'getTotalLoansDeployed',
981
+ outputs: [
982
+ {
983
+ internalType: 'uint256',
984
+ name: '',
985
+ type: 'uint256',
986
+ },
987
+ ],
988
+ stateMutability: 'view',
989
+ type: 'function',
990
+ },
991
+ {
992
+ inputs: [],
993
+ name: 'getWithdrawalEpoch',
994
+ outputs: [
995
+ {
996
+ internalType: 'uint256',
997
+ name: 'year',
998
+ type: 'uint256',
999
+ },
1000
+ {
1001
+ internalType: 'uint256',
1002
+ name: 'month',
1003
+ type: 'uint256',
1004
+ },
1005
+ {
1006
+ internalType: 'uint256',
1007
+ name: 'day',
1008
+ type: 'uint256',
1009
+ },
1010
+ {
1011
+ internalType: 'uint256',
1012
+ name: 'claimableEpoch',
1013
+ type: 'uint256',
1014
+ },
1015
+ ],
1016
+ stateMutability: 'view',
1017
+ type: 'function',
1018
+ },
1019
+ {
1020
+ inputs: [],
1021
+ name: 'globalLiabilityShares',
1022
+ outputs: [
1023
+ {
1024
+ internalType: 'uint256',
1025
+ name: '',
1026
+ type: 'uint256',
1027
+ },
1028
+ ],
1029
+ stateMutability: 'view',
1030
+ type: 'function',
1031
+ },
1032
+ {
1033
+ inputs: [],
1034
+ name: 'globalLoansAmount',
1035
+ outputs: [
1036
+ {
1037
+ internalType: 'uint256',
1038
+ name: '',
1039
+ type: 'uint256',
1040
+ },
1041
+ ],
1042
+ stateMutability: 'view',
1043
+ type: 'function',
1044
+ },
1045
+ {
1046
+ inputs: [
1047
+ {
1048
+ internalType: 'address',
1049
+ name: 'newOwner',
1050
+ type: 'address',
1051
+ },
1052
+ {
1053
+ internalType: 'uint8',
1054
+ name: 'erc20Decimals',
1055
+ type: 'uint8',
1056
+ },
1057
+ {
1058
+ internalType: 'string',
1059
+ name: 'erc20Symbol',
1060
+ type: 'string',
1061
+ },
1062
+ {
1063
+ internalType: 'string',
1064
+ name: 'erc20Name',
1065
+ type: 'string',
1066
+ },
1067
+ ],
1068
+ name: 'initialize',
1069
+ outputs: [],
1070
+ stateMutability: 'nonpayable',
1071
+ type: 'function',
1072
+ },
1073
+ {
1074
+ inputs: [],
1075
+ name: 'lagDuration',
1076
+ outputs: [
1077
+ {
1078
+ internalType: 'uint256',
1079
+ name: '',
1080
+ type: 'uint256',
1081
+ },
1082
+ ],
1083
+ stateMutability: 'view',
1084
+ type: 'function',
1085
+ },
1086
+ {
1087
+ inputs: [
1088
+ {
1089
+ internalType: 'address',
1090
+ name: 'loanAddr',
1091
+ type: 'address',
1092
+ },
1093
+ ],
1094
+ name: 'liquidate',
1095
+ outputs: [],
1096
+ stateMutability: 'nonpayable',
1097
+ type: 'function',
1098
+ },
1099
+ {
1100
+ inputs: [],
1101
+ name: 'liquidationHour',
1102
+ outputs: [
1103
+ {
1104
+ internalType: 'uint8',
1105
+ name: '',
1106
+ type: 'uint8',
1107
+ },
1108
+ ],
1109
+ stateMutability: 'view',
1110
+ type: 'function',
1111
+ },
1112
+ {
1113
+ inputs: [
1114
+ {
1115
+ internalType: 'uint256',
1116
+ name: '',
1117
+ type: 'uint256',
1118
+ },
1119
+ ],
1120
+ name: 'loansDeployed',
1121
+ outputs: [
1122
+ {
1123
+ internalType: 'address',
1124
+ name: '',
1125
+ type: 'address',
1126
+ },
1127
+ ],
1128
+ stateMutability: 'view',
1129
+ type: 'function',
1130
+ },
1131
+ {
1132
+ inputs: [],
1133
+ name: 'loansDeployerAddress',
1134
+ outputs: [
1135
+ {
1136
+ internalType: 'address',
1137
+ name: '',
1138
+ type: 'address',
1139
+ },
1140
+ ],
1141
+ stateMutability: 'view',
1142
+ type: 'function',
1143
+ },
1144
+ {
1145
+ inputs: [],
1146
+ name: 'loansOperator',
1147
+ outputs: [
1148
+ {
1149
+ internalType: 'address',
1150
+ name: '',
1151
+ type: 'address',
1152
+ },
1153
+ ],
1154
+ stateMutability: 'view',
1155
+ type: 'function',
1156
+ },
1157
+ {
1158
+ // TokenizedVaults only
1159
+ inputs: [],
1160
+ name: 'operator',
1161
+ outputs: [
1162
+ {
1163
+ internalType: 'address',
1164
+ name: '',
1165
+ type: 'address',
1166
+ },
1167
+ ],
1168
+ stateMutability: 'view',
1169
+ type: 'function',
1170
+ },
1171
+ {
1172
+ inputs: [
1173
+ {
1174
+ internalType: 'address',
1175
+ name: '',
1176
+ type: 'address',
1177
+ },
1178
+ ],
1179
+ name: 'maxDeposit',
1180
+ outputs: [
1181
+ {
1182
+ internalType: 'uint256',
1183
+ name: '',
1184
+ type: 'uint256',
1185
+ },
1186
+ ],
1187
+ stateMutability: 'view',
1188
+ type: 'function',
1189
+ },
1190
+ {
1191
+ inputs: [],
1192
+ name: 'maxDepositAmount',
1193
+ outputs: [
1194
+ {
1195
+ internalType: 'uint256',
1196
+ name: '',
1197
+ type: 'uint256',
1198
+ },
1199
+ ],
1200
+ stateMutability: 'view',
1201
+ type: 'function',
1202
+ },
1203
+ {
1204
+ inputs: [
1205
+ {
1206
+ internalType: 'address',
1207
+ name: '',
1208
+ type: 'address',
1209
+ },
1210
+ ],
1211
+ name: 'maxMint',
1212
+ outputs: [
1213
+ {
1214
+ internalType: 'uint256',
1215
+ name: '',
1216
+ type: 'uint256',
1217
+ },
1218
+ ],
1219
+ stateMutability: 'view',
1220
+ type: 'function',
1221
+ },
1222
+ {
1223
+ inputs: [
1224
+ {
1225
+ internalType: 'address',
1226
+ name: 'holderAddr',
1227
+ type: 'address',
1228
+ },
1229
+ ],
1230
+ name: 'maxRedeem',
1231
+ outputs: [
1232
+ {
1233
+ internalType: 'uint256',
1234
+ name: '',
1235
+ type: 'uint256',
1236
+ },
1237
+ ],
1238
+ stateMutability: 'view',
1239
+ type: 'function',
1240
+ },
1241
+ {
1242
+ inputs: [],
1243
+ name: 'maxSupply',
1244
+ outputs: [
1245
+ {
1246
+ internalType: 'uint256',
1247
+ name: '',
1248
+ type: 'uint256',
1249
+ },
1250
+ ],
1251
+ stateMutability: 'view',
1252
+ type: 'function',
1253
+ },
1254
+ {
1255
+ inputs: [
1256
+ {
1257
+ internalType: 'address',
1258
+ name: 'holderAddr',
1259
+ type: 'address',
1260
+ },
1261
+ ],
1262
+ name: 'maxWithdraw',
1263
+ outputs: [
1264
+ {
1265
+ internalType: 'uint256',
1266
+ name: '',
1267
+ type: 'uint256',
1268
+ },
1269
+ ],
1270
+ stateMutability: 'view',
1271
+ type: 'function',
1272
+ },
1273
+ {
1274
+ inputs: [],
1275
+ name: 'maxWithdrawalAmount',
1276
+ outputs: [
1277
+ {
1278
+ internalType: 'uint256',
1279
+ name: '',
1280
+ type: 'uint256',
1281
+ },
1282
+ ],
1283
+ stateMutability: 'view',
1284
+ type: 'function',
1285
+ },
1286
+ {
1287
+ inputs: [
1288
+ {
1289
+ internalType: 'uint256',
1290
+ name: 'shares',
1291
+ type: 'uint256',
1292
+ },
1293
+ {
1294
+ internalType: 'address',
1295
+ name: 'receiver',
1296
+ type: 'address',
1297
+ },
1298
+ ],
1299
+ name: 'mint',
1300
+ outputs: [
1301
+ {
1302
+ internalType: 'uint256',
1303
+ name: 'assets',
1304
+ type: 'uint256',
1305
+ },
1306
+ ],
1307
+ stateMutability: 'nonpayable',
1308
+ type: 'function',
1309
+ },
1310
+ {
1311
+ inputs: [],
1312
+ name: 'name',
1313
+ outputs: [
1314
+ {
1315
+ internalType: 'string',
1316
+ name: '',
1317
+ type: 'string',
1318
+ },
1319
+ ],
1320
+ stateMutability: 'view',
1321
+ type: 'function',
1322
+ },
1323
+ {
1324
+ inputs: [],
1325
+ name: 'notifyLoanClosed',
1326
+ outputs: [],
1327
+ stateMutability: 'nonpayable',
1328
+ type: 'function',
1329
+ },
1330
+ {
1331
+ inputs: [],
1332
+ name: 'notifyLoanMatured',
1333
+ outputs: [],
1334
+ stateMutability: 'nonpayable',
1335
+ type: 'function',
1336
+ },
1337
+ {
1338
+ inputs: [
1339
+ {
1340
+ internalType: 'uint256',
1341
+ name: 'effectiveLoanAmount',
1342
+ type: 'uint256',
1343
+ },
1344
+ {
1345
+ internalType: 'uint256',
1346
+ name: 'principalRepaid',
1347
+ type: 'uint256',
1348
+ },
1349
+ ],
1350
+ name: 'notifyPrincipalRepayment',
1351
+ outputs: [],
1352
+ stateMutability: 'nonpayable',
1353
+ type: 'function',
1354
+ },
1355
+ {
1356
+ inputs: [],
1357
+ name: 'owner',
1358
+ outputs: [
1359
+ {
1360
+ internalType: 'address',
1361
+ name: '',
1362
+ type: 'address',
1363
+ },
1364
+ ],
1365
+ stateMutability: 'view',
1366
+ type: 'function',
1367
+ },
1368
+ {
1369
+ inputs: [
1370
+ {
1371
+ internalType: 'bool',
1372
+ name: 'bPauseDeposits',
1373
+ type: 'bool',
1374
+ },
1375
+ {
1376
+ internalType: 'bool',
1377
+ name: 'bPauseWithdrawals',
1378
+ type: 'bool',
1379
+ },
1380
+ ],
1381
+ name: 'pauseDepositsAndWithdrawals',
1382
+ outputs: [],
1383
+ stateMutability: 'nonpayable',
1384
+ type: 'function',
1385
+ },
1386
+ {
1387
+ inputs: [
1388
+ {
1389
+ internalType: 'uint256',
1390
+ name: 'assets',
1391
+ type: 'uint256',
1392
+ },
1393
+ ],
1394
+ name: 'previewDeposit',
1395
+ outputs: [
1396
+ {
1397
+ internalType: 'uint256',
1398
+ name: '',
1399
+ type: 'uint256',
1400
+ },
1401
+ ],
1402
+ stateMutability: 'view',
1403
+ type: 'function',
1404
+ },
1405
+ {
1406
+ inputs: [
1407
+ {
1408
+ internalType: 'uint256',
1409
+ name: 'shares',
1410
+ type: 'uint256',
1411
+ },
1412
+ ],
1413
+ name: 'previewMint',
1414
+ outputs: [
1415
+ {
1416
+ internalType: 'uint256',
1417
+ name: '',
1418
+ type: 'uint256',
1419
+ },
1420
+ ],
1421
+ stateMutability: 'view',
1422
+ type: 'function',
1423
+ },
1424
+ {
1425
+ inputs: [
1426
+ {
1427
+ internalType: 'uint256',
1428
+ name: 'shares',
1429
+ type: 'uint256',
1430
+ },
1431
+ ],
1432
+ name: 'previewRedeem',
1433
+ outputs: [
1434
+ {
1435
+ internalType: 'uint256',
1436
+ name: 'assets',
1437
+ type: 'uint256',
1438
+ },
1439
+ ],
1440
+ stateMutability: 'view',
1441
+ type: 'function',
1442
+ },
1443
+ {
1444
+ inputs: [
1445
+ {
1446
+ internalType: 'uint256',
1447
+ name: 'assets',
1448
+ type: 'uint256',
1449
+ },
1450
+ ],
1451
+ name: 'previewWithdraw',
1452
+ outputs: [
1453
+ {
1454
+ internalType: 'uint256',
1455
+ name: '',
1456
+ type: 'uint256',
1457
+ },
1458
+ ],
1459
+ stateMutability: 'view',
1460
+ type: 'function',
1461
+ },
1462
+ {
1463
+ inputs: [
1464
+ {
1465
+ internalType: 'uint256',
1466
+ name: 'year',
1467
+ type: 'uint256',
1468
+ },
1469
+ {
1470
+ internalType: 'uint256',
1471
+ name: 'month',
1472
+ type: 'uint256',
1473
+ },
1474
+ {
1475
+ internalType: 'uint256',
1476
+ name: 'day',
1477
+ type: 'uint256',
1478
+ },
1479
+ {
1480
+ internalType: 'uint256',
1481
+ name: 'maxLimit',
1482
+ type: 'uint256',
1483
+ },
1484
+ ],
1485
+ name: 'processAllClaimsByDate',
1486
+ outputs: [],
1487
+ stateMutability: 'nonpayable',
1488
+ type: 'function',
1489
+ },
1490
+ {
1491
+ inputs: [
1492
+ {
1493
+ internalType: 'address',
1494
+ name: 'loanAddr',
1495
+ type: 'address',
1496
+ },
1497
+ {
1498
+ internalType: 'uint256',
1499
+ name: 'newAprWithTwoDecimals',
1500
+ type: 'uint256',
1501
+ },
1502
+ ],
1503
+ name: 'proposeNewApr',
1504
+ outputs: [],
1505
+ stateMutability: 'nonpayable',
1506
+ type: 'function',
1507
+ },
1508
+ {
1509
+ inputs: [
1510
+ {
1511
+ internalType: 'uint256',
1512
+ name: '',
1513
+ type: 'uint256',
1514
+ },
1515
+ {
1516
+ internalType: 'address',
1517
+ name: '',
1518
+ type: 'address',
1519
+ },
1520
+ {
1521
+ internalType: 'address',
1522
+ name: '',
1523
+ type: 'address',
1524
+ },
1525
+ ],
1526
+ name: 'redeem',
1527
+ outputs: [
1528
+ {
1529
+ internalType: 'uint256',
1530
+ name: '',
1531
+ type: 'uint256',
1532
+ },
1533
+ ],
1534
+ stateMutability: 'pure',
1535
+ type: 'function',
1536
+ },
1537
+ {
1538
+ inputs: [
1539
+ {
1540
+ internalType: 'uint256',
1541
+ name: 'shares',
1542
+ type: 'uint256',
1543
+ },
1544
+ {
1545
+ internalType: 'address',
1546
+ name: 'receiverAddr',
1547
+ type: 'address',
1548
+ },
1549
+ {
1550
+ internalType: 'address',
1551
+ name: 'holderAddr',
1552
+ type: 'address',
1553
+ },
1554
+ ],
1555
+ name: 'requestRedeem',
1556
+ outputs: [
1557
+ {
1558
+ internalType: 'uint256',
1559
+ name: 'assets',
1560
+ type: 'uint256',
1561
+ },
1562
+ {
1563
+ internalType: 'uint256',
1564
+ name: 'claimableEpoch',
1565
+ type: 'uint256',
1566
+ },
1567
+ ],
1568
+ stateMutability: 'nonpayable',
1569
+ type: 'function',
1570
+ },
1571
+ {
1572
+ inputs: [],
1573
+ name: 'scheduledCallerAddress',
1574
+ outputs: [
1575
+ {
1576
+ internalType: 'address',
1577
+ name: '',
1578
+ type: 'address',
1579
+ },
1580
+ ],
1581
+ stateMutability: 'view',
1582
+ type: 'function',
1583
+ },
1584
+ {
1585
+ inputs: [],
1586
+ name: 'symbol',
1587
+ outputs: [
1588
+ {
1589
+ internalType: 'string',
1590
+ name: '',
1591
+ type: 'string',
1592
+ },
1593
+ ],
1594
+ stateMutability: 'view',
1595
+ type: 'function',
1596
+ },
1597
+ {
1598
+ inputs: [],
1599
+ name: 'totalAssets',
1600
+ outputs: [
1601
+ {
1602
+ internalType: 'uint256',
1603
+ name: '',
1604
+ type: 'uint256',
1605
+ },
1606
+ ],
1607
+ stateMutability: 'view',
1608
+ type: 'function',
1609
+ },
1610
+ {
1611
+ inputs: [],
1612
+ name: 'totalCollectableFees',
1613
+ outputs: [
1614
+ {
1615
+ internalType: 'uint256',
1616
+ name: '',
1617
+ type: 'uint256',
1618
+ },
1619
+ ],
1620
+ stateMutability: 'view',
1621
+ type: 'function',
1622
+ },
1623
+ {
1624
+ inputs: [],
1625
+ name: 'totalSupply',
1626
+ outputs: [
1627
+ {
1628
+ internalType: 'uint256',
1629
+ name: '',
1630
+ type: 'uint256',
1631
+ },
1632
+ ],
1633
+ stateMutability: 'view',
1634
+ type: 'function',
1635
+ },
1636
+ {
1637
+ inputs: [
1638
+ {
1639
+ internalType: 'address',
1640
+ name: 'to',
1641
+ type: 'address',
1642
+ },
1643
+ {
1644
+ internalType: 'uint256',
1645
+ name: 'value',
1646
+ type: 'uint256',
1647
+ },
1648
+ ],
1649
+ name: 'transfer',
1650
+ outputs: [
1651
+ {
1652
+ internalType: 'bool',
1653
+ name: '',
1654
+ type: 'bool',
1655
+ },
1656
+ ],
1657
+ stateMutability: 'nonpayable',
1658
+ type: 'function',
1659
+ },
1660
+ {
1661
+ inputs: [
1662
+ {
1663
+ internalType: 'address',
1664
+ name: 'from',
1665
+ type: 'address',
1666
+ },
1667
+ {
1668
+ internalType: 'address',
1669
+ name: 'to',
1670
+ type: 'address',
1671
+ },
1672
+ {
1673
+ internalType: 'uint256',
1674
+ name: 'value',
1675
+ type: 'uint256',
1676
+ },
1677
+ ],
1678
+ name: 'transferFrom',
1679
+ outputs: [
1680
+ {
1681
+ internalType: 'bool',
1682
+ name: '',
1683
+ type: 'bool',
1684
+ },
1685
+ ],
1686
+ stateMutability: 'nonpayable',
1687
+ type: 'function',
1688
+ },
1689
+ {
1690
+ inputs: [
1691
+ {
1692
+ internalType: 'address',
1693
+ name: 'newOwner',
1694
+ type: 'address',
1695
+ },
1696
+ ],
1697
+ name: 'transferOwnership',
1698
+ outputs: [],
1699
+ stateMutability: 'nonpayable',
1700
+ type: 'function',
1701
+ },
1702
+ {
1703
+ inputs: [
1704
+ {
1705
+ internalType: 'uint256',
1706
+ name: 'newMaxDepositAmount',
1707
+ type: 'uint256',
1708
+ },
1709
+ {
1710
+ internalType: 'uint256',
1711
+ name: 'newMaxWithdrawalAmount',
1712
+ type: 'uint256',
1713
+ },
1714
+ {
1715
+ internalType: 'uint256',
1716
+ name: 'newMaxTokenSupply',
1717
+ type: 'uint256',
1718
+ },
1719
+ ],
1720
+ name: 'updateIssuanceLimits',
1721
+ outputs: [],
1722
+ stateMutability: 'nonpayable',
1723
+ type: 'function',
1724
+ },
1725
+ {
1726
+ inputs: [
1727
+ {
1728
+ internalType: 'uint256',
1729
+ name: 'newDuration',
1730
+ type: 'uint256',
1731
+ },
1732
+ ],
1733
+ name: 'updateTimelockDuration',
1734
+ outputs: [],
1735
+ stateMutability: 'nonpayable',
1736
+ type: 'function',
1737
+ },
1738
+ {
1739
+ inputs: [
1740
+ {
1741
+ internalType: 'uint256',
1742
+ name: 'newWithdrawalFee',
1743
+ type: 'uint256',
1744
+ },
1745
+ ],
1746
+ name: 'updateWithdrawalFee',
1747
+ outputs: [],
1748
+ stateMutability: 'nonpayable',
1749
+ type: 'function',
1750
+ },
1751
+ {
1752
+ inputs: [
1753
+ {
1754
+ internalType: 'uint256',
1755
+ name: '',
1756
+ type: 'uint256',
1757
+ },
1758
+ {
1759
+ internalType: 'address',
1760
+ name: '',
1761
+ type: 'address',
1762
+ },
1763
+ {
1764
+ internalType: 'address',
1765
+ name: '',
1766
+ type: 'address',
1767
+ },
1768
+ ],
1769
+ name: 'withdraw',
1770
+ outputs: [
1771
+ {
1772
+ internalType: 'uint256',
1773
+ name: '',
1774
+ type: 'uint256',
1775
+ },
1776
+ ],
1777
+ stateMutability: 'pure',
1778
+ type: 'function',
1779
+ },
1780
+ {
1781
+ inputs: [],
1782
+ name: 'withdrawalFee',
1783
+ outputs: [
1784
+ {
1785
+ internalType: 'uint256',
1786
+ name: '',
1787
+ type: 'uint256',
1788
+ },
1789
+ ],
1790
+ stateMutability: 'view',
1791
+ type: 'function',
1792
+ },
1793
+ {
1794
+ inputs: [],
1795
+ name: 'withdrawalsPaused',
1796
+ outputs: [
1797
+ {
1798
+ internalType: 'bool',
1799
+ name: '',
1800
+ type: 'bool',
1801
+ },
1802
+ ],
1803
+ stateMutability: 'view',
1804
+ type: 'function',
1805
+ },
1806
+ ];
1807
+ //# sourceMappingURL=LendingPool.js.map