@augustdigital/sdk 3.16.5-alpha → 3.16.7-alpha

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 (199) hide show
  1. package/lib/index.js.map +1 -0
  2. package/lib/{sdk/src.ts/main.d.ts → main.d.ts} +2 -0
  3. package/lib/{sdk/src.ts/main.js → main.js} +3 -0
  4. package/lib/main.js.map +1 -0
  5. package/lib/verify.js.map +1 -0
  6. package/package.json +7 -6
  7. package/lib/abis/src.ts/AddressResolver.d.ts +0 -28
  8. package/lib/abis/src.ts/AddressResolver.js +0 -23
  9. package/lib/abis/src.ts/AddressResolver.js.map +0 -1
  10. package/lib/abis/src.ts/ChainlinkV3.d.ts +0 -87
  11. package/lib/abis/src.ts/ChainlinkV3.js +0 -117
  12. package/lib/abis/src.ts/ChainlinkV3.js.map +0 -1
  13. package/lib/abis/src.ts/ERC20.d.ts +0 -168
  14. package/lib/abis/src.ts/ERC20.js +0 -226
  15. package/lib/abis/src.ts/ERC20.js.map +0 -1
  16. package/lib/abis/src.ts/ERC20_Bytes32.d.ts +0 -135
  17. package/lib/abis/src.ts/ERC20_Bytes32.js +0 -192
  18. package/lib/abis/src.ts/ERC20_Bytes32.js.map +0 -1
  19. package/lib/abis/src.ts/ERC4626.d.ts +0 -363
  20. package/lib/abis/src.ts/ERC4626.js +0 -506
  21. package/lib/abis/src.ts/ERC4626.js.map +0 -1
  22. package/lib/abis/src.ts/ERC721.d.ts +0 -230
  23. package/lib/abis/src.ts/ERC721.js +0 -320
  24. package/lib/abis/src.ts/ERC721.js.map +0 -1
  25. package/lib/abis/src.ts/FeeOracle.d.ts +0 -120
  26. package/lib/abis/src.ts/FeeOracle.js +0 -161
  27. package/lib/abis/src.ts/FeeOracle.js.map +0 -1
  28. package/lib/abis/src.ts/LendingPool.d.ts +0 -1393
  29. package/lib/abis/src.ts/LendingPool.js +0 -1806
  30. package/lib/abis/src.ts/LendingPool.js.map +0 -1
  31. package/lib/abis/src.ts/LendingPoolV2.d.ts +0 -55
  32. package/lib/abis/src.ts/LendingPoolV2.js +0 -1832
  33. package/lib/abis/src.ts/LendingPoolV2.js.map +0 -1
  34. package/lib/abis/src.ts/LendingPoolV3.d.ts +0 -35
  35. package/lib/abis/src.ts/LendingPoolV3.js +0 -1160
  36. package/lib/abis/src.ts/LendingPoolV3.js.map +0 -1
  37. package/lib/abis/src.ts/Loan.d.ts +0 -837
  38. package/lib/abis/src.ts/Loan.js +0 -1080
  39. package/lib/abis/src.ts/Loan.js.map +0 -1
  40. package/lib/abis/src.ts/Multicall3.d.ts +0 -30
  41. package/lib/abis/src.ts/Multicall3.js +0 -94
  42. package/lib/abis/src.ts/Multicall3.js.map +0 -1
  43. package/lib/abis/src.ts/PoolAdapter.d.ts +0 -76
  44. package/lib/abis/src.ts/PoolAdapter.js +0 -412
  45. package/lib/abis/src.ts/PoolAdapter.js.map +0 -1
  46. package/lib/abis/src.ts/RewardDistributor.d.ts +0 -46
  47. package/lib/abis/src.ts/RewardDistributor.js +0 -352
  48. package/lib/abis/src.ts/RewardDistributor.js.map +0 -1
  49. package/lib/abis/src.ts/SmartAccount.d.ts +0 -16
  50. package/lib/abis/src.ts/SmartAccount.js +0 -16
  51. package/lib/abis/src.ts/SmartAccount.js.map +0 -1
  52. package/lib/abis/src.ts/TextResolver.d.ts +0 -16
  53. package/lib/abis/src.ts/TextResolver.js +0 -16
  54. package/lib/abis/src.ts/TextResolver.js.map +0 -1
  55. package/lib/abis/src.ts/UniversalResolverResolve.d.ts +0 -69
  56. package/lib/abis/src.ts/UniversalResolverResolve.js +0 -35
  57. package/lib/abis/src.ts/UniversalResolverResolve.js.map +0 -1
  58. package/lib/abis/src.ts/UniversalSignatureValidator.d.ts +0 -17
  59. package/lib/abis/src.ts/UniversalSignatureValidator.js +0 -27
  60. package/lib/abis/src.ts/UniversalSignatureValidator.js.map +0 -1
  61. package/lib/abis/src.ts/WrapperAdapter.d.ts +0 -60
  62. package/lib/abis/src.ts/WrapperAdapter.js +0 -150
  63. package/lib/abis/src.ts/WrapperAdapter.js.map +0 -1
  64. package/lib/abis/src.ts/index.d.ts +0 -19
  65. package/lib/abis/src.ts/index.js +0 -36
  66. package/lib/abis/src.ts/index.js.map +0 -1
  67. package/lib/pools/src.ts/admin-actions.d.ts +0 -0
  68. package/lib/pools/src.ts/admin-actions.js +0 -1
  69. package/lib/pools/src.ts/admin-actions.js.map +0 -1
  70. package/lib/pools/src.ts/getters-v2.d.ts +0 -0
  71. package/lib/pools/src.ts/getters-v2.js +0 -1
  72. package/lib/pools/src.ts/getters-v2.js.map +0 -1
  73. package/lib/pools/src.ts/getters.d.ts +0 -85
  74. package/lib/pools/src.ts/getters.js +0 -431
  75. package/lib/pools/src.ts/getters.js.map +0 -1
  76. package/lib/pools/src.ts/helpers.d.ts +0 -69
  77. package/lib/pools/src.ts/helpers.js +0 -634
  78. package/lib/pools/src.ts/helpers.js.map +0 -1
  79. package/lib/pools/src.ts/index.d.ts +0 -4
  80. package/lib/pools/src.ts/index.js +0 -21
  81. package/lib/pools/src.ts/index.js.map +0 -1
  82. package/lib/pools/src.ts/main.d.ts +0 -55
  83. package/lib/pools/src.ts/main.js +0 -270
  84. package/lib/pools/src.ts/main.js.map +0 -1
  85. package/lib/pools/src.ts/staking.d.ts +0 -8
  86. package/lib/pools/src.ts/staking.js +0 -116
  87. package/lib/pools/src.ts/staking.js.map +0 -1
  88. package/lib/pools/src.ts/user-actions.d.ts +0 -19
  89. package/lib/pools/src.ts/user-actions.js +0 -191
  90. package/lib/pools/src.ts/user-actions.js.map +0 -1
  91. package/lib/sdk/src.ts/index.js.map +0 -1
  92. package/lib/sdk/src.ts/main.js.map +0 -1
  93. package/lib/sdk/src.ts/verify.js.map +0 -1
  94. package/lib/services/src.ts/index.d.ts +0 -2
  95. package/lib/services/src.ts/index.js +0 -19
  96. package/lib/services/src.ts/index.js.map +0 -1
  97. package/lib/services/src.ts/slack.d.ts +0 -12
  98. package/lib/services/src.ts/slack.js +0 -57
  99. package/lib/services/src.ts/slack.js.map +0 -1
  100. package/lib/services/src.ts/subgraph.d.ts +0 -10
  101. package/lib/services/src.ts/subgraph.js +0 -460
  102. package/lib/services/src.ts/subgraph.js.map +0 -1
  103. package/lib/types/src.ts/index.d.ts +0 -8
  104. package/lib/types/src.ts/index.js +0 -24
  105. package/lib/types/src.ts/index.js.map +0 -1
  106. package/lib/types/src.ts/pools.d.ts +0 -141
  107. package/lib/types/src.ts/pools.js +0 -3
  108. package/lib/types/src.ts/pools.js.map +0 -1
  109. package/lib/types/src.ts/staking.d.ts +0 -28
  110. package/lib/types/src.ts/staking.js +0 -3
  111. package/lib/types/src.ts/staking.js.map +0 -1
  112. package/lib/types/src.ts/subgraph.d.ts +0 -45
  113. package/lib/types/src.ts/subgraph.js +0 -3
  114. package/lib/types/src.ts/subgraph.js.map +0 -1
  115. package/lib/types/src.ts/user.d.ts +0 -1
  116. package/lib/types/src.ts/user.js +0 -3
  117. package/lib/types/src.ts/user.js.map +0 -1
  118. package/lib/types/src.ts/vaults.d.ts +0 -159
  119. package/lib/types/src.ts/vaults.js +0 -3
  120. package/lib/types/src.ts/vaults.js.map +0 -1
  121. package/lib/types/src.ts/web3.d.ts +0 -19
  122. package/lib/types/src.ts/web3.js +0 -3
  123. package/lib/types/src.ts/web3.js.map +0 -1
  124. package/lib/types/src.ts/webserver.d.ts +0 -471
  125. package/lib/types/src.ts/webserver.js +0 -3
  126. package/lib/types/src.ts/webserver.js.map +0 -1
  127. package/lib/utils/src.ts/base-class.d.ts +0 -29
  128. package/lib/utils/src.ts/base-class.js +0 -48
  129. package/lib/utils/src.ts/base-class.js.map +0 -1
  130. package/lib/utils/src.ts/constants/august.d.ts +0 -57
  131. package/lib/utils/src.ts/constants/august.js +0 -61
  132. package/lib/utils/src.ts/constants/august.js.map +0 -1
  133. package/lib/utils/src.ts/constants/fallbacks.d.ts +0 -3
  134. package/lib/utils/src.ts/constants/fallbacks.js +0 -25
  135. package/lib/utils/src.ts/constants/fallbacks.js.map +0 -1
  136. package/lib/utils/src.ts/constants/index.d.ts +0 -3
  137. package/lib/utils/src.ts/constants/index.js +0 -20
  138. package/lib/utils/src.ts/constants/index.js.map +0 -1
  139. package/lib/utils/src.ts/constants/web3.d.ts +0 -25
  140. package/lib/utils/src.ts/constants/web3.js +0 -94
  141. package/lib/utils/src.ts/constants/web3.js.map +0 -1
  142. package/lib/utils/src.ts/fetcher.d.ts +0 -25
  143. package/lib/utils/src.ts/fetcher.js +0 -322
  144. package/lib/utils/src.ts/fetcher.js.map +0 -1
  145. package/lib/utils/src.ts/helpers/array.d.ts +0 -6
  146. package/lib/utils/src.ts/helpers/array.js +0 -35
  147. package/lib/utils/src.ts/helpers/array.js.map +0 -1
  148. package/lib/utils/src.ts/helpers/datetime.d.ts +0 -5
  149. package/lib/utils/src.ts/helpers/datetime.js +0 -32
  150. package/lib/utils/src.ts/helpers/datetime.js.map +0 -1
  151. package/lib/utils/src.ts/helpers/formatters.d.ts +0 -8
  152. package/lib/utils/src.ts/helpers/formatters.js +0 -114
  153. package/lib/utils/src.ts/helpers/formatters.js.map +0 -1
  154. package/lib/utils/src.ts/helpers/index.d.ts +0 -6
  155. package/lib/utils/src.ts/helpers/index.js +0 -23
  156. package/lib/utils/src.ts/helpers/index.js.map +0 -1
  157. package/lib/utils/src.ts/helpers/responses.d.ts +0 -32
  158. package/lib/utils/src.ts/helpers/responses.js +0 -238
  159. package/lib/utils/src.ts/helpers/responses.js.map +0 -1
  160. package/lib/utils/src.ts/helpers/verify-keys.d.ts +0 -2
  161. package/lib/utils/src.ts/helpers/verify-keys.js +0 -34
  162. package/lib/utils/src.ts/helpers/verify-keys.js.map +0 -1
  163. package/lib/utils/src.ts/helpers/web3.d.ts +0 -27
  164. package/lib/utils/src.ts/helpers/web3.js +0 -351
  165. package/lib/utils/src.ts/helpers/web3.js.map +0 -1
  166. package/lib/utils/src.ts/index.d.ts +0 -5
  167. package/lib/utils/src.ts/index.js +0 -22
  168. package/lib/utils/src.ts/index.js.map +0 -1
  169. package/lib/utils/src.ts/vaults.d.ts +0 -53
  170. package/lib/utils/src.ts/vaults.js +0 -167
  171. package/lib/utils/src.ts/vaults.js.map +0 -1
  172. package/lib/vaults/src.ts/admin-actions.d.ts +0 -0
  173. package/lib/vaults/src.ts/admin-actions.js +0 -1
  174. package/lib/vaults/src.ts/admin-actions.js.map +0 -1
  175. package/lib/vaults/src.ts/getters.d.ts +0 -36
  176. package/lib/vaults/src.ts/getters.js +0 -649
  177. package/lib/vaults/src.ts/getters.js.map +0 -1
  178. package/lib/vaults/src.ts/index.d.ts +0 -4
  179. package/lib/vaults/src.ts/index.js +0 -21
  180. package/lib/vaults/src.ts/index.js.map +0 -1
  181. package/lib/vaults/src.ts/main.d.ts +0 -88
  182. package/lib/vaults/src.ts/main.js +0 -497
  183. package/lib/vaults/src.ts/main.js.map +0 -1
  184. package/lib/vaults/src.ts/rpc-config.d.ts +0 -4
  185. package/lib/vaults/src.ts/rpc-config.js +0 -32
  186. package/lib/vaults/src.ts/rpc-config.js.map +0 -1
  187. package/lib/vaults/src.ts/user-actions.d.ts +0 -19
  188. package/lib/vaults/src.ts/user-actions.js +0 -191
  189. package/lib/vaults/src.ts/user-actions.js.map +0 -1
  190. package/lib/vaults/src.ts/utils.d.ts +0 -120
  191. package/lib/vaults/src.ts/utils.js +0 -438
  192. package/lib/vaults/src.ts/utils.js.map +0 -1
  193. package/lib/vaults/src.ts/vault-fetching-examples.d.ts +0 -4
  194. package/lib/vaults/src.ts/vault-fetching-examples.js +0 -40
  195. package/lib/vaults/src.ts/vault-fetching-examples.js.map +0 -1
  196. /package/lib/{sdk/src.ts/index.d.ts → index.d.ts} +0 -0
  197. /package/lib/{sdk/src.ts/index.js → index.js} +0 -0
  198. /package/lib/{sdk/src.ts/verify.d.ts → verify.d.ts} +0 -0
  199. /package/lib/{sdk/src.ts/verify.js → verify.js} +0 -0
@@ -1,1080 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ABI_LOAN = void 0;
4
- exports.ABI_LOAN = [
5
- {
6
- type: "function",
7
- name: "LIQUIDATE_LOAN_COLLATERAL_CATEGORY",
8
- inputs: [],
9
- outputs: [
10
- {
11
- name: "",
12
- type: "bytes32",
13
- internalType: "bytes32",
14
- },
15
- ],
16
- stateMutability: "view",
17
- },
18
- {
19
- type: "function",
20
- name: "REPAY_INTERESTS_CATEGORY",
21
- inputs: [],
22
- outputs: [
23
- {
24
- name: "",
25
- type: "bytes32",
26
- internalType: "bytes32",
27
- },
28
- ],
29
- stateMutability: "view",
30
- },
31
- {
32
- type: "function",
33
- name: "acceptApr",
34
- inputs: [],
35
- outputs: [],
36
- stateMutability: "nonpayable",
37
- },
38
- {
39
- type: "function",
40
- name: "aprUpdatedOn",
41
- inputs: [],
42
- outputs: [
43
- {
44
- name: "",
45
- type: "uint256",
46
- internalType: "uint256",
47
- },
48
- ],
49
- stateMutability: "view",
50
- },
51
- {
52
- type: "function",
53
- name: "borrower",
54
- inputs: [],
55
- outputs: [
56
- {
57
- name: "",
58
- type: "address",
59
- internalType: "address",
60
- },
61
- ],
62
- stateMutability: "view",
63
- },
64
- {
65
- type: "function",
66
- name: "borrowerCommitment",
67
- inputs: [],
68
- outputs: [],
69
- stateMutability: "nonpayable",
70
- },
71
- {
72
- type: "function",
73
- name: "callLoan",
74
- inputs: [
75
- {
76
- name: "callbackPeriodInSeconds",
77
- type: "uint256",
78
- internalType: "uint256",
79
- },
80
- {
81
- name: "gracePeriodInSeconds",
82
- type: "uint256",
83
- internalType: "uint256",
84
- },
85
- ],
86
- outputs: [],
87
- stateMutability: "nonpayable",
88
- },
89
- {
90
- type: "function",
91
- name: "callbackDeadline",
92
- inputs: [],
93
- outputs: [
94
- {
95
- name: "",
96
- type: "uint256",
97
- internalType: "uint256",
98
- },
99
- ],
100
- stateMutability: "view",
101
- },
102
- {
103
- type: "function",
104
- name: "canSeizeCollateral",
105
- inputs: [],
106
- outputs: [
107
- {
108
- name: "",
109
- type: "bool",
110
- internalType: "bool",
111
- },
112
- ],
113
- stateMutability: "view",
114
- },
115
- {
116
- type: "function",
117
- name: "changeLateFees",
118
- inputs: [
119
- {
120
- name: "lateInterestFeeWithTwoDecimals",
121
- type: "uint256",
122
- internalType: "uint256",
123
- },
124
- {
125
- name: "latePrincipalFeeWithTwoDecimals",
126
- type: "uint256",
127
- internalType: "uint256",
128
- },
129
- ],
130
- outputs: [],
131
- stateMutability: "nonpayable",
132
- },
133
- {
134
- type: "function",
135
- name: "changeMaintenanceCollateralRatio",
136
- inputs: [
137
- {
138
- name: "newRatioWith2Decimals",
139
- type: "uint256",
140
- internalType: "uint256",
141
- },
142
- ],
143
- outputs: [],
144
- stateMutability: "nonpayable",
145
- },
146
- {
147
- type: "function",
148
- name: "changeOracle",
149
- inputs: [
150
- {
151
- name: "newOracleAddr",
152
- type: "address",
153
- internalType: "address",
154
- },
155
- ],
156
- outputs: [],
157
- stateMutability: "nonpayable",
158
- },
159
- {
160
- type: "function",
161
- name: "claimCollateral",
162
- inputs: [],
163
- outputs: [],
164
- stateMutability: "nonpayable",
165
- },
166
- {
167
- type: "function",
168
- name: "collateralAmountSeized",
169
- inputs: [],
170
- outputs: [
171
- {
172
- name: "",
173
- type: "uint256",
174
- internalType: "uint256",
175
- },
176
- ],
177
- stateMutability: "view",
178
- },
179
- {
180
- type: "function",
181
- name: "collateralToken",
182
- inputs: [],
183
- outputs: [
184
- {
185
- name: "",
186
- type: "address",
187
- internalType: "address",
188
- },
189
- ],
190
- stateMutability: "view",
191
- },
192
- {
193
- type: "function",
194
- name: "currentApr",
195
- inputs: [],
196
- outputs: [
197
- {
198
- name: "",
199
- type: "uint256",
200
- internalType: "uint256",
201
- },
202
- ],
203
- stateMutability: "view",
204
- },
205
- {
206
- type: "function",
207
- name: "cycleInterestsRepaid",
208
- inputs: [],
209
- outputs: [
210
- {
211
- name: "",
212
- type: "uint256",
213
- internalType: "uint256",
214
- },
215
- ],
216
- stateMutability: "view",
217
- },
218
- {
219
- type: "function",
220
- name: "deployedBy",
221
- inputs: [],
222
- outputs: [
223
- {
224
- name: "",
225
- type: "address",
226
- internalType: "address",
227
- },
228
- ],
229
- stateMutability: "view",
230
- },
231
- {
232
- type: "function",
233
- name: "effectiveLoanAmount",
234
- inputs: [],
235
- outputs: [
236
- {
237
- name: "",
238
- type: "uint256",
239
- internalType: "uint256",
240
- },
241
- ],
242
- stateMutability: "view",
243
- },
244
- {
245
- type: "function",
246
- name: "expiryInfo",
247
- inputs: [],
248
- outputs: [
249
- {
250
- name: "",
251
- type: "uint256",
252
- internalType: "uint256",
253
- },
254
- ],
255
- stateMutability: "view",
256
- },
257
- {
258
- type: "function",
259
- name: "feesCollector",
260
- inputs: [],
261
- outputs: [
262
- {
263
- name: "",
264
- type: "address",
265
- internalType: "address",
266
- },
267
- ],
268
- stateMutability: "view",
269
- },
270
- {
271
- type: "function",
272
- name: "feesOracle",
273
- inputs: [],
274
- outputs: [
275
- {
276
- name: "",
277
- type: "address",
278
- internalType: "address",
279
- },
280
- ],
281
- stateMutability: "view",
282
- },
283
- {
284
- type: "function",
285
- name: "fromTokenToToken",
286
- inputs: [
287
- {
288
- name: "principalPrice",
289
- type: "uint256",
290
- internalType: "uint256",
291
- },
292
- {
293
- name: "principalQty",
294
- type: "uint256",
295
- internalType: "uint256",
296
- },
297
- {
298
- name: "collateralPrice",
299
- type: "uint256",
300
- internalType: "uint256",
301
- },
302
- {
303
- name: "collateralDecimals",
304
- type: "uint256",
305
- internalType: "uint256",
306
- },
307
- ],
308
- outputs: [
309
- {
310
- name: "",
311
- type: "uint256",
312
- internalType: "uint256",
313
- },
314
- ],
315
- stateMutability: "pure",
316
- },
317
- {
318
- type: "function",
319
- name: "fundLoan",
320
- inputs: [],
321
- outputs: [],
322
- stateMutability: "nonpayable",
323
- },
324
- {
325
- type: "function",
326
- name: "fundedOn",
327
- inputs: [],
328
- outputs: [
329
- {
330
- name: "",
331
- type: "uint256",
332
- internalType: "uint256",
333
- },
334
- ],
335
- stateMutability: "view",
336
- },
337
- {
338
- type: "function",
339
- name: "fundingDeadline",
340
- inputs: [],
341
- outputs: [
342
- {
343
- name: "",
344
- type: "uint256",
345
- internalType: "uint256",
346
- },
347
- ],
348
- stateMutability: "view",
349
- },
350
- {
351
- type: "function",
352
- name: "fundingPeriod",
353
- inputs: [],
354
- outputs: [
355
- {
356
- name: "",
357
- type: "uint256",
358
- internalType: "uint256",
359
- },
360
- ],
361
- stateMutability: "view",
362
- },
363
- {
364
- type: "function",
365
- name: "getCollateralRequirements",
366
- inputs: [],
367
- outputs: [
368
- {
369
- name: "initialCollateralAmount",
370
- type: "uint256",
371
- internalType: "uint256",
372
- },
373
- {
374
- name: "maintenanceCollateralAmount",
375
- type: "uint256",
376
- internalType: "uint256",
377
- },
378
- ],
379
- stateMutability: "view",
380
- },
381
- {
382
- type: "function",
383
- name: "getDebt",
384
- inputs: [],
385
- outputs: [
386
- {
387
- name: "currentBillingCycle",
388
- type: "uint256",
389
- internalType: "uint256",
390
- },
391
- {
392
- name: "cyclesSinceLastAprUpdate",
393
- type: "uint256",
394
- internalType: "uint256",
395
- },
396
- {
397
- name: "interestOwed",
398
- type: "uint256",
399
- internalType: "uint256",
400
- },
401
- {
402
- name: "applicableLateFee",
403
- type: "uint256",
404
- internalType: "uint256",
405
- },
406
- {
407
- name: "minPaymentAmount",
408
- type: "uint256",
409
- internalType: "uint256",
410
- },
411
- {
412
- name: "maxPaymentAmount",
413
- type: "uint256",
414
- internalType: "uint256",
415
- },
416
- ],
417
- stateMutability: "view",
418
- },
419
- {
420
- type: "function",
421
- name: "getNextPaymentDate",
422
- inputs: [],
423
- outputs: [
424
- {
425
- name: "",
426
- type: "uint256",
427
- internalType: "uint256",
428
- },
429
- ],
430
- stateMutability: "view",
431
- },
432
- {
433
- type: "function",
434
- name: "getUpcomingAmountAfterFees",
435
- inputs: [
436
- {
437
- name: "paymentAmount",
438
- type: "uint256",
439
- internalType: "uint256",
440
- },
441
- ],
442
- outputs: [
443
- {
444
- name: "upcomingPaymentAmountAfterFees",
445
- type: "uint256",
446
- internalType: "uint256",
447
- },
448
- {
449
- name: "upcomingNetDebtAfterFees",
450
- type: "uint256",
451
- internalType: "uint256",
452
- },
453
- ],
454
- stateMutability: "view",
455
- },
456
- {
457
- type: "function",
458
- name: "initialCollateralRatio",
459
- inputs: [],
460
- outputs: [
461
- {
462
- name: "",
463
- type: "uint256",
464
- internalType: "uint256",
465
- },
466
- ],
467
- stateMutability: "view",
468
- },
469
- {
470
- type: "function",
471
- name: "lateInterestFee",
472
- inputs: [],
473
- outputs: [
474
- {
475
- name: "",
476
- type: "uint256",
477
- internalType: "uint256",
478
- },
479
- ],
480
- stateMutability: "view",
481
- },
482
- {
483
- type: "function",
484
- name: "latePrincipalFee",
485
- inputs: [],
486
- outputs: [
487
- {
488
- name: "",
489
- type: "uint256",
490
- internalType: "uint256",
491
- },
492
- ],
493
- stateMutability: "view",
494
- },
495
- {
496
- type: "function",
497
- name: "lender",
498
- inputs: [],
499
- outputs: [
500
- {
501
- name: "",
502
- type: "address",
503
- internalType: "address",
504
- },
505
- ],
506
- stateMutability: "view",
507
- },
508
- {
509
- type: "function",
510
- name: "liquidate",
511
- inputs: [],
512
- outputs: [],
513
- stateMutability: "nonpayable",
514
- },
515
- {
516
- type: "function",
517
- name: "loanAmountInPrincipalTokens",
518
- inputs: [],
519
- outputs: [
520
- {
521
- name: "",
522
- type: "uint256",
523
- internalType: "uint256",
524
- },
525
- ],
526
- stateMutability: "view",
527
- },
528
- {
529
- type: "function",
530
- name: "loanState",
531
- inputs: [],
532
- outputs: [
533
- {
534
- name: "",
535
- type: "uint8",
536
- internalType: "uint8",
537
- },
538
- ],
539
- stateMutability: "view",
540
- },
541
- {
542
- type: "function",
543
- name: "loanTypeInfo",
544
- inputs: [],
545
- outputs: [
546
- {
547
- name: "",
548
- type: "string",
549
- internalType: "string",
550
- },
551
- ],
552
- stateMutability: "view",
553
- },
554
- {
555
- type: "function",
556
- name: "maintenanceCollateralRatio",
557
- inputs: [],
558
- outputs: [
559
- {
560
- name: "",
561
- type: "uint256",
562
- internalType: "uint256",
563
- },
564
- ],
565
- stateMutability: "view",
566
- },
567
- {
568
- type: "function",
569
- name: "manager",
570
- inputs: [],
571
- outputs: [
572
- {
573
- name: "",
574
- type: "address",
575
- internalType: "address",
576
- },
577
- ],
578
- stateMutability: "view",
579
- },
580
- {
581
- type: "function",
582
- name: "minInterestAmount",
583
- inputs: [],
584
- outputs: [
585
- {
586
- name: "",
587
- type: "uint256",
588
- internalType: "uint256",
589
- },
590
- ],
591
- stateMutability: "view",
592
- },
593
- {
594
- type: "function",
595
- name: "paymentIntervalInSeconds",
596
- inputs: [],
597
- outputs: [
598
- {
599
- name: "",
600
- type: "uint256",
601
- internalType: "uint256",
602
- },
603
- ],
604
- stateMutability: "view",
605
- },
606
- {
607
- type: "function",
608
- name: "priceOracle",
609
- inputs: [],
610
- outputs: [
611
- {
612
- name: "",
613
- type: "address",
614
- internalType: "address",
615
- },
616
- ],
617
- stateMutability: "view",
618
- },
619
- {
620
- type: "function",
621
- name: "principalAmount",
622
- inputs: [],
623
- outputs: [
624
- {
625
- name: "",
626
- type: "uint256",
627
- internalType: "uint256",
628
- },
629
- ],
630
- stateMutability: "view",
631
- },
632
- {
633
- type: "function",
634
- name: "principalRepaid",
635
- inputs: [],
636
- outputs: [
637
- {
638
- name: "",
639
- type: "uint256",
640
- internalType: "uint256",
641
- },
642
- ],
643
- stateMutability: "view",
644
- },
645
- {
646
- type: "function",
647
- name: "principalToken",
648
- inputs: [],
649
- outputs: [
650
- {
651
- name: "",
652
- type: "address",
653
- internalType: "address",
654
- },
655
- ],
656
- stateMutability: "view",
657
- },
658
- {
659
- type: "function",
660
- name: "proposeNewApr",
661
- inputs: [
662
- {
663
- name: "newAprWithTwoDecimals",
664
- type: "uint256",
665
- internalType: "uint256",
666
- },
667
- ],
668
- outputs: [],
669
- stateMutability: "nonpayable",
670
- },
671
- {
672
- type: "function",
673
- name: "proposedApr",
674
- inputs: [],
675
- outputs: [
676
- {
677
- name: "",
678
- type: "uint256",
679
- internalType: "uint256",
680
- },
681
- ],
682
- stateMutability: "view",
683
- },
684
- {
685
- type: "function",
686
- name: "repay",
687
- inputs: [
688
- {
689
- name: "paymentAmount",
690
- type: "uint256",
691
- internalType: "uint256",
692
- },
693
- ],
694
- outputs: [],
695
- stateMutability: "nonpayable",
696
- },
697
- {
698
- type: "function",
699
- name: "repayInterests",
700
- inputs: [],
701
- outputs: [],
702
- stateMutability: "nonpayable",
703
- },
704
- {
705
- type: "function",
706
- name: "repayPrincipal",
707
- inputs: [
708
- {
709
- name: "paymentAmountInTokens",
710
- type: "uint256",
711
- internalType: "uint256",
712
- },
713
- ],
714
- outputs: [],
715
- stateMutability: "nonpayable",
716
- },
717
- {
718
- type: "function",
719
- name: "returnCollateral",
720
- inputs: [
721
- {
722
- name: "depositAmount",
723
- type: "uint256",
724
- internalType: "uint256",
725
- },
726
- ],
727
- outputs: [],
728
- stateMutability: "nonpayable",
729
- },
730
- {
731
- type: "function",
732
- name: "seizeCollateral",
733
- inputs: [
734
- {
735
- name: "amount",
736
- type: "uint256",
737
- internalType: "uint256",
738
- },
739
- ],
740
- outputs: [],
741
- stateMutability: "nonpayable",
742
- },
743
- {
744
- type: "function",
745
- name: "setFeesCollector",
746
- inputs: [
747
- {
748
- name: "newFeesCollector",
749
- type: "address",
750
- internalType: "address",
751
- },
752
- ],
753
- outputs: [],
754
- stateMutability: "nonpayable",
755
- },
756
- {
757
- type: "function",
758
- name: "setFeesOracle",
759
- inputs: [
760
- {
761
- name: "newFeesOracle",
762
- type: "address",
763
- internalType: "address",
764
- },
765
- ],
766
- outputs: [],
767
- stateMutability: "nonpayable",
768
- },
769
- {
770
- type: "function",
771
- name: "totalInterestPaymentFees",
772
- inputs: [],
773
- outputs: [
774
- {
775
- name: "",
776
- type: "uint256",
777
- internalType: "uint256",
778
- },
779
- ],
780
- stateMutability: "view",
781
- },
782
- {
783
- type: "function",
784
- name: "totalInterestRepaid",
785
- inputs: [],
786
- outputs: [
787
- {
788
- name: "",
789
- type: "uint256",
790
- internalType: "uint256",
791
- },
792
- ],
793
- stateMutability: "view",
794
- },
795
- {
796
- type: "function",
797
- name: "updateInfo",
798
- inputs: [
799
- {
800
- name: "newExpiryInfo",
801
- type: "uint256",
802
- internalType: "uint256",
803
- },
804
- {
805
- name: "newLoanTypeInfo",
806
- type: "string",
807
- internalType: "string",
808
- },
809
- ],
810
- outputs: [],
811
- stateMutability: "nonpayable",
812
- },
813
- {
814
- type: "event",
815
- name: "OnAprAcceptedByBorrower",
816
- inputs: [
817
- {
818
- name: "oldApr",
819
- type: "uint256",
820
- indexed: false,
821
- internalType: "uint256",
822
- },
823
- {
824
- name: "newApr",
825
- type: "uint256",
826
- indexed: false,
827
- internalType: "uint256",
828
- },
829
- ],
830
- anonymous: false,
831
- },
832
- {
833
- type: "event",
834
- name: "OnBorrowerCommitment",
835
- inputs: [],
836
- anonymous: false,
837
- },
838
- {
839
- type: "event",
840
- name: "OnBorrowerWithdrawal",
841
- inputs: [
842
- {
843
- name: "numberOfTokens",
844
- type: "uint256",
845
- indexed: false,
846
- internalType: "uint256",
847
- },
848
- ],
849
- anonymous: false,
850
- },
851
- {
852
- type: "event",
853
- name: "OnCollateralCaptured",
854
- inputs: [
855
- {
856
- name: "amount",
857
- type: "uint256",
858
- indexed: false,
859
- internalType: "uint256",
860
- },
861
- ],
862
- anonymous: false,
863
- },
864
- {
865
- type: "event",
866
- name: "OnCollateralClaimed",
867
- inputs: [
868
- {
869
- name: "collateralClaimed",
870
- type: "uint256",
871
- indexed: false,
872
- internalType: "uint256",
873
- },
874
- ],
875
- anonymous: false,
876
- },
877
- {
878
- type: "event",
879
- name: "OnCollateralRatioChanged",
880
- inputs: [
881
- {
882
- name: "prevValue",
883
- type: "uint256",
884
- indexed: false,
885
- internalType: "uint256",
886
- },
887
- {
888
- name: "newValue",
889
- type: "uint256",
890
- indexed: false,
891
- internalType: "uint256",
892
- },
893
- ],
894
- anonymous: false,
895
- },
896
- {
897
- type: "event",
898
- name: "OnCollateralRedeposited",
899
- inputs: [
900
- {
901
- name: "depositAmount",
902
- type: "uint256",
903
- indexed: false,
904
- internalType: "uint256",
905
- },
906
- ],
907
- anonymous: false,
908
- },
909
- {
910
- type: "event",
911
- name: "OnFeeProcessed",
912
- inputs: [
913
- {
914
- name: "feePercent",
915
- type: "uint256",
916
- indexed: false,
917
- internalType: "uint256",
918
- },
919
- {
920
- name: "feeAmount",
921
- type: "uint256",
922
- indexed: false,
923
- internalType: "uint256",
924
- },
925
- {
926
- name: "from",
927
- type: "address",
928
- indexed: false,
929
- internalType: "address",
930
- },
931
- {
932
- name: "to",
933
- type: "address",
934
- indexed: false,
935
- internalType: "address",
936
- },
937
- ],
938
- anonymous: false,
939
- },
940
- {
941
- type: "event",
942
- name: "OnInterestsRepayment",
943
- inputs: [
944
- {
945
- name: "paymentAmountTokens",
946
- type: "uint256",
947
- indexed: false,
948
- internalType: "uint256",
949
- },
950
- ],
951
- anonymous: false,
952
- },
953
- {
954
- type: "event",
955
- name: "OnLateFeesChanged",
956
- inputs: [
957
- {
958
- name: "prevLateInterestFee",
959
- type: "uint256",
960
- indexed: false,
961
- internalType: "uint256",
962
- },
963
- {
964
- name: "newLateInterestFee",
965
- type: "uint256",
966
- indexed: false,
967
- internalType: "uint256",
968
- },
969
- {
970
- name: "prevLatePrincipalFee",
971
- type: "uint256",
972
- indexed: false,
973
- internalType: "uint256",
974
- },
975
- {
976
- name: "newLatePrincipalFee",
977
- type: "uint256",
978
- indexed: false,
979
- internalType: "uint256",
980
- },
981
- ],
982
- anonymous: false,
983
- },
984
- {
985
- type: "event",
986
- name: "OnLoanCalled",
987
- inputs: [
988
- {
989
- name: "callbackPeriodInHours",
990
- type: "uint256",
991
- indexed: false,
992
- internalType: "uint256",
993
- },
994
- {
995
- name: "gracePeriodInHours",
996
- type: "uint256",
997
- indexed: false,
998
- internalType: "uint256",
999
- },
1000
- ],
1001
- anonymous: false,
1002
- },
1003
- {
1004
- type: "event",
1005
- name: "OnLoanClosed",
1006
- inputs: [],
1007
- anonymous: false,
1008
- },
1009
- {
1010
- type: "event",
1011
- name: "OnLoanFunded",
1012
- inputs: [
1013
- {
1014
- name: "amount",
1015
- type: "uint256",
1016
- indexed: false,
1017
- internalType: "uint256",
1018
- },
1019
- ],
1020
- anonymous: false,
1021
- },
1022
- {
1023
- type: "event",
1024
- name: "OnLoanMatured",
1025
- inputs: [],
1026
- anonymous: false,
1027
- },
1028
- {
1029
- type: "event",
1030
- name: "OnNewAprProposed",
1031
- inputs: [
1032
- {
1033
- name: "oldApr",
1034
- type: "uint256",
1035
- indexed: false,
1036
- internalType: "uint256",
1037
- },
1038
- {
1039
- name: "newApr",
1040
- type: "uint256",
1041
- indexed: false,
1042
- internalType: "uint256",
1043
- },
1044
- ],
1045
- anonymous: false,
1046
- },
1047
- {
1048
- type: "event",
1049
- name: "OnPriceOracleChanged",
1050
- inputs: [
1051
- {
1052
- name: "prevAddress",
1053
- type: "address",
1054
- indexed: false,
1055
- internalType: "address",
1056
- },
1057
- {
1058
- name: "newAddress",
1059
- type: "address",
1060
- indexed: false,
1061
- internalType: "address",
1062
- },
1063
- ],
1064
- anonymous: false,
1065
- },
1066
- {
1067
- type: "event",
1068
- name: "OnPrincipalRepayment",
1069
- inputs: [
1070
- {
1071
- name: "paymentAmountTokens",
1072
- type: "uint256",
1073
- indexed: false,
1074
- internalType: "uint256",
1075
- },
1076
- ],
1077
- anonymous: false,
1078
- },
1079
- ];
1080
- //# sourceMappingURL=Loan.js.map