@huma-finance/widgets 0.0.6-alpha.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 (203) hide show
  1. package/.env.example +3 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc.js +64 -0
  4. package/.prettierignore +4 -0
  5. package/.prettierrc.js +16 -0
  6. package/API.md +331 -0
  7. package/LICENSE +661 -0
  8. package/README.md +48 -0
  9. package/babel.config.js +15 -0
  10. package/config-overrides.js +9 -0
  11. package/cosmos.config.json +7 -0
  12. package/cypress/e2e/01-invoice-factoring-borrow.test.ts +62 -0
  13. package/cypress/support/e2e.ts +76 -0
  14. package/cypress/support/ethereum.ts +142 -0
  15. package/cypress/tsconfig.json +9 -0
  16. package/cypress/utils/index.ts +54 -0
  17. package/cypress.config.ts +20 -0
  18. package/dist/assets/output-15e10f9f.css +44 -0
  19. package/dist/cjs/assets/output-15e10f9f.css +44 -0
  20. package/dist/cjs/index.cjs +17576 -0
  21. package/dist/cjs/index.cjs.map +1 -0
  22. package/dist/index.d.ts +211 -0
  23. package/dist/index.js +17529 -0
  24. package/dist/index.js.map +1 -0
  25. package/jsdoc2md.json +20 -0
  26. package/package.json +193 -0
  27. package/public/favicon.ico +0 -0
  28. package/public/index.html +40 -0
  29. package/public/logo192.png +0 -0
  30. package/public/logo512.png +0 -0
  31. package/public/manifest.json +25 -0
  32. package/public/robots.txt +3 -0
  33. package/rollup.config.js +81 -0
  34. package/src/components/Activity.tsx +123 -0
  35. package/src/components/AllowListModal.tsx +113 -0
  36. package/src/components/ApolloWrapper.tsx +15 -0
  37. package/src/components/ApproveAllowanceModal.tsx +118 -0
  38. package/src/components/BottomButton.tsx +31 -0
  39. package/src/components/ChooseAmountModal.tsx +315 -0
  40. package/src/components/CreditLine/borrow/1-Evaluation.tsx +159 -0
  41. package/src/components/CreditLine/borrow/2-AllowList.tsx +34 -0
  42. package/src/components/CreditLine/borrow/3-ChooseAmount.tsx +74 -0
  43. package/src/components/CreditLine/borrow/4-ApproveAllowance.tsx +29 -0
  44. package/src/components/CreditLine/borrow/5-Transfer.tsx +30 -0
  45. package/src/components/CreditLine/borrow/6-Success.tsx +30 -0
  46. package/src/components/CreditLine/borrow/index.tsx +119 -0
  47. package/src/components/CreditLine/payment/1-ChooseAmount.tsx +67 -0
  48. package/src/components/CreditLine/payment/2-ApproveAllowance.tsx +23 -0
  49. package/src/components/CreditLine/payment/3-Transfer.tsx +34 -0
  50. package/src/components/CreditLine/payment/4-Success.tsx +39 -0
  51. package/src/components/CreditLine/payment/index.tsx +94 -0
  52. package/src/components/ErrorModal.tsx +132 -0
  53. package/src/components/Factoring/FactoredList.tsx +143 -0
  54. package/src/components/Factoring/UpcomingList.tsx +90 -0
  55. package/src/components/Factoring/index.ts +2 -0
  56. package/src/components/HumaLoading.tsx +68 -0
  57. package/src/components/HumaTable.tsx +158 -0
  58. package/src/components/InvoiceFactoring/borrow/1-Evaluation.tsx +46 -0
  59. package/src/components/InvoiceFactoring/borrow/2-AllowList.tsx +34 -0
  60. package/src/components/InvoiceFactoring/borrow/3-ChooseAmount.tsx +92 -0
  61. package/src/components/InvoiceFactoring/borrow/4-ConfirmTransfer.tsx +104 -0
  62. package/src/components/InvoiceFactoring/borrow/5-ApproveNFT.tsx +55 -0
  63. package/src/components/InvoiceFactoring/borrow/6-Transfer.tsx +34 -0
  64. package/src/components/InvoiceFactoring/borrow/7-Success.tsx +20 -0
  65. package/src/components/InvoiceFactoring/borrow/index.tsx +96 -0
  66. package/src/components/InvoiceFactoring/payment/1-ChooseAmount.tsx +67 -0
  67. package/src/components/InvoiceFactoring/payment/2-ApproveAllowance.tsx +23 -0
  68. package/src/components/InvoiceFactoring/payment/3-Transfer.tsx +34 -0
  69. package/src/components/InvoiceFactoring/payment/4-Success.tsx +23 -0
  70. package/src/components/InvoiceFactoring/payment/index.tsx +86 -0
  71. package/src/components/Lend/supply/1-Evaluation.tsx +86 -0
  72. package/src/components/Lend/supply/2-ChooseAmount.tsx +70 -0
  73. package/src/components/Lend/supply/3-ApproveAllowance.tsx +25 -0
  74. package/src/components/Lend/supply/4-ConfirmTransfer.tsx +104 -0
  75. package/src/components/Lend/supply/6-Transfer.tsx +32 -0
  76. package/src/components/Lend/supply/7-Success.tsx +49 -0
  77. package/src/components/Lend/supply/index.tsx +144 -0
  78. package/src/components/Lend/withdraw/1-CheckWithdrawble.tsx +73 -0
  79. package/src/components/Lend/withdraw/2-ChooseAmount.tsx +50 -0
  80. package/src/components/Lend/withdraw/3-Transfer.tsx +32 -0
  81. package/src/components/Lend/withdraw/4-Success.tsx +49 -0
  82. package/src/components/Lend/withdraw/index.tsx +101 -0
  83. package/src/components/LoadingModal.tsx +49 -0
  84. package/src/components/StreamFactoring/borrow/1-Evaluation.tsx +57 -0
  85. package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +124 -0
  86. package/src/components/StreamFactoring/borrow/3-ConfirmTransfer.tsx +104 -0
  87. package/src/components/StreamFactoring/borrow/4-ApproveAllowance.tsx +65 -0
  88. package/src/components/StreamFactoring/borrow/5-Permit.tsx +144 -0
  89. package/src/components/StreamFactoring/borrow/6-Transfer.tsx +37 -0
  90. package/src/components/StreamFactoring/borrow/7-Success.tsx +20 -0
  91. package/src/components/StreamFactoring/borrow/index.tsx +95 -0
  92. package/src/components/StreamFactoring/payment/ChooseAmount.tsx +54 -0
  93. package/src/components/StreamFactoring/payment/Success.tsx +23 -0
  94. package/src/components/StreamFactoring/payment/Transfer.tsx +34 -0
  95. package/src/components/StreamFactoring/payment/index.tsx +66 -0
  96. package/src/components/SuperfluidFactoring/SuperfluidFactoredList.tsx +61 -0
  97. package/src/components/SuperfluidFactoring/SuperfluidUpcomingList.tsx +185 -0
  98. package/src/components/SuperfluidFactoring/index.tsx +85 -0
  99. package/src/components/TxDoneModal.tsx +83 -0
  100. package/src/components/TxSendModal.tsx +59 -0
  101. package/src/components/ViewOnExplorer.tsx +26 -0
  102. package/src/components/WidgetWrapper.tsx +74 -0
  103. package/src/components/WrapperModal.tsx +54 -0
  104. package/src/components/buttons/TableActionButton.tsx +36 -0
  105. package/src/components/buttons/index.ts +1 -0
  106. package/src/components/humaModal/HumaModal.tsx +68 -0
  107. package/src/components/humaModal/HumaModalHeader.tsx +70 -0
  108. package/src/components/humaModal/index.tsx +2 -0
  109. package/src/components/icons/approve-lender.svg +30 -0
  110. package/src/components/icons/auto-payback.svg +40 -0
  111. package/src/components/icons/check-circle.svg +3 -0
  112. package/src/components/icons/check-green.svg +3 -0
  113. package/src/components/icons/check.svg +10 -0
  114. package/src/components/icons/donut.svg +904 -0
  115. package/src/components/icons/ellipse.svg +3 -0
  116. package/src/components/icons/ethereum.svg +1 -0
  117. package/src/components/icons/huma-full.svg +22 -0
  118. package/src/components/icons/huma.svg +15 -0
  119. package/src/components/icons/index.tsx +93 -0
  120. package/src/components/icons/loader.svg +229 -0
  121. package/src/components/icons/metamask.svg +31 -0
  122. package/src/components/icons/polygon.svg +16 -0
  123. package/src/components/icons/receipt.svg +3 -0
  124. package/src/components/icons/separator.svg +3 -0
  125. package/src/components/icons/sorry.svg +31 -0
  126. package/src/components/icons/spinner.gif +0 -0
  127. package/src/components/icons/usdc.svg +5 -0
  128. package/src/components/icons/wallet-connect.svg +12 -0
  129. package/src/cosmos/CreditLineBorrow.fixture.tsx +85 -0
  130. package/src/cosmos/CreditLinePayment.fixture.tsx +49 -0
  131. package/src/cosmos/InvoiceFactoringBorrow.fixture.tsx +111 -0
  132. package/src/cosmos/InvoiceFactoringPayment.fixture.tsx +67 -0
  133. package/src/cosmos/LendSupply.fixture.tsx +75 -0
  134. package/src/cosmos/LendWithdraw.fixture.tsx +43 -0
  135. package/src/cosmos/SDKTesting.fixture.tsx +507 -0
  136. package/src/cosmos/SuperfluidFactoringBorrow.fixture.tsx +12 -0
  137. package/src/cosmos/WalletWrapper.tsx +52 -0
  138. package/src/cosmos/abis/InvoiceNFT.json +644 -0
  139. package/src/cosmos/abis/ReceivableFactoringPool.json +1529 -0
  140. package/src/cosmos/utils/index.ts +169 -0
  141. package/src/fonts/Inter/Inter-Black.ttf +0 -0
  142. package/src/fonts/Inter/Inter-Bold.ttf +0 -0
  143. package/src/fonts/Inter/Inter-ExtraBold.ttf +0 -0
  144. package/src/fonts/Inter/Inter-ExtraLight.ttf +0 -0
  145. package/src/fonts/Inter/Inter-Light.ttf +0 -0
  146. package/src/fonts/Inter/Inter-Medium.ttf +0 -0
  147. package/src/fonts/Inter/Inter-Regular.ttf +0 -0
  148. package/src/fonts/Inter/Inter-SemiBold.ttf +0 -0
  149. package/src/fonts/Inter/Inter-Thin.ttf +0 -0
  150. package/src/fonts/Recoleta/Recoleta-Black.otf +0 -0
  151. package/src/fonts/Recoleta/Recoleta-Bold.otf +0 -0
  152. package/src/fonts/Recoleta/Recoleta-Light.otf +0 -0
  153. package/src/fonts/Recoleta/Recoleta-Medium.otf +0 -0
  154. package/src/fonts/Recoleta/Recoleta-Regular.otf +0 -0
  155. package/src/fonts/Recoleta/Recoleta-RegularDEMO.otf +0 -0
  156. package/src/fonts/Recoleta/Recoleta-SemiBold.otf +0 -0
  157. package/src/fonts/Recoleta/Recoleta-Thin.otf +0 -0
  158. package/src/fonts/Roboto/LICENSE.txt +202 -0
  159. package/src/fonts/Roboto/Roboto-Black.ttf +0 -0
  160. package/src/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
  161. package/src/fonts/Roboto/Roboto-Bold.ttf +0 -0
  162. package/src/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
  163. package/src/fonts/Roboto/Roboto-Italic.ttf +0 -0
  164. package/src/fonts/Roboto/Roboto-Light.ttf +0 -0
  165. package/src/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
  166. package/src/fonts/Roboto/Roboto-Medium.ttf +0 -0
  167. package/src/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  168. package/src/fonts/Roboto/Roboto-Regular.ttf +0 -0
  169. package/src/fonts/Roboto/Roboto-Thin.ttf +0 -0
  170. package/src/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
  171. package/src/fonts/UniNeue/UniNeue-Black.ttf +0 -0
  172. package/src/fonts/UniNeue/UniNeue-Bold.ttf +0 -0
  173. package/src/fonts/UniNeue/UniNeue-Book.ttf +0 -0
  174. package/src/fonts/UniNeue/UniNeue-Heavy.ttf +0 -0
  175. package/src/fonts/UniNeue/UniNeue-Light.ttf +0 -0
  176. package/src/fonts/UniNeue/UniNeue-Regular.ttf +0 -0
  177. package/src/fonts/UniNeue/UniNeue-Thin.ttf +0 -0
  178. package/src/hooks/useEA.ts +70 -0
  179. package/src/hooks/useRedux.ts +6 -0
  180. package/src/index.css +61 -0
  181. package/src/index.tsx +219 -0
  182. package/src/react-app-env.d.ts +1 -0
  183. package/src/reportWebVitals.ts +15 -0
  184. package/src/setupTests.ts +6 -0
  185. package/src/store/index.ts +27 -0
  186. package/src/store/widgets.reducers.ts +120 -0
  187. package/src/store/widgets.selectors.ts +3 -0
  188. package/src/store/widgets.store.ts +55 -0
  189. package/src/theme/breakpoints.ts +10 -0
  190. package/src/theme/components.ts +70 -0
  191. package/src/theme/coreThemeConstants.ts +29 -0
  192. package/src/theme/cssMixins.ts +92 -0
  193. package/src/theme/hooks/useGetSizes.ts +34 -0
  194. package/src/theme/index.ts +24 -0
  195. package/src/theme/palette.ts +150 -0
  196. package/src/theme/shape.ts +7 -0
  197. package/src/theme/theme.types.ts +80 -0
  198. package/src/theme/typography.ts +117 -0
  199. package/src/utilTypes.d.ts +29 -0
  200. package/src/utils/env.ts +9 -0
  201. package/tsconfig.build.json +7 -0
  202. package/tsconfig.json +32 -0
  203. package/webpack.cosmos.js +54 -0
@@ -0,0 +1,1529 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "creditExpiredDueToFirstDrawdownTooLate",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "creditExpiredDueToMaturity",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [],
14
+ "name": "creditLineAlreadyExists",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "creditLineExceeded",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "creditLineNotInGoodStandingState",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "creditLineNotInStateForDrawdown",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "creditLineNotInStateForMakingPayment",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "defaultHasAlreadyBeenTriggered",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "defaultTriggeredTooEarly",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "drawdownFunctionUsedInsteadofDrawdownWithReceivable",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "evaluationAgentServiceAccountRequired",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "exceededPoolLiquidityCap",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "inputs": [],
64
+ "name": "greaterThanMaxCreditLine",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "insufficientReceivableAmount",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "onlyBorrowerOrEACanReduceCreditLine",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "paymentAlreadyProcessed",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "paymentDetectionServiceAccountRequired",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "permissionDeniedNotLender",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "poolIsNotOn",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "protocolIsPaused",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "receivableAssetMismatch",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "receivableAssetParamMismatch",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "requestedCreditWithZeroDuration",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "sameValue",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "unsupportedReceivableAsset",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "withdrawTooSoon",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [],
134
+ "name": "withdrawnAmountHigherThanBalance",
135
+ "type": "error"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "zeroAmountProvided",
140
+ "type": "error"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ {
146
+ "indexed": true,
147
+ "internalType": "address",
148
+ "name": "lender",
149
+ "type": "address"
150
+ },
151
+ {
152
+ "indexed": false,
153
+ "internalType": "address",
154
+ "name": "by",
155
+ "type": "address"
156
+ }
157
+ ],
158
+ "name": "AddApprovedLender",
159
+ "type": "event"
160
+ },
161
+ {
162
+ "anonymous": false,
163
+ "inputs": [
164
+ {
165
+ "indexed": true,
166
+ "internalType": "address",
167
+ "name": "borrower",
168
+ "type": "address"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "internalType": "uint256",
173
+ "name": "newDueDate",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "address",
179
+ "name": "by",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "BillRefreshed",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": true,
191
+ "internalType": "address",
192
+ "name": "borrower",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "uint256",
198
+ "name": "creditLimit",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "indexed": false,
203
+ "internalType": "uint256",
204
+ "name": "intervalInDays",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "uint256",
210
+ "name": "remainingPeriods",
211
+ "type": "uint256"
212
+ },
213
+ {
214
+ "indexed": false,
215
+ "internalType": "uint256",
216
+ "name": "aprInBps",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "name": "CreditApproved",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "borrower",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": false,
234
+ "internalType": "uint256",
235
+ "name": "creditLimit",
236
+ "type": "uint256"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "internalType": "uint256",
241
+ "name": "aprInBps",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "payPeriodInDays",
248
+ "type": "uint256"
249
+ },
250
+ {
251
+ "indexed": false,
252
+ "internalType": "uint256",
253
+ "name": "remainingPeriods",
254
+ "type": "uint256"
255
+ },
256
+ {
257
+ "indexed": false,
258
+ "internalType": "bool",
259
+ "name": "approved",
260
+ "type": "bool"
261
+ }
262
+ ],
263
+ "name": "CreditInitiated",
264
+ "type": "event"
265
+ },
266
+ {
267
+ "anonymous": false,
268
+ "inputs": [
269
+ {
270
+ "indexed": true,
271
+ "internalType": "address",
272
+ "name": "borrower",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "indexed": false,
277
+ "internalType": "uint256",
278
+ "name": "oldCreditLimit",
279
+ "type": "uint256"
280
+ },
281
+ {
282
+ "indexed": false,
283
+ "internalType": "uint256",
284
+ "name": "newCreditLimit",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "name": "CreditLineChanged",
289
+ "type": "event"
290
+ },
291
+ {
292
+ "anonymous": false,
293
+ "inputs": [
294
+ {
295
+ "indexed": true,
296
+ "internalType": "address",
297
+ "name": "borrower",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "indexed": false,
302
+ "internalType": "address",
303
+ "name": "by",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "indexed": false,
308
+ "internalType": "enum BaseCreditPool.CreditLineClosureReason",
309
+ "name": "reasonCode",
310
+ "type": "uint8"
311
+ }
312
+ ],
313
+ "name": "CreditLineClosed",
314
+ "type": "event"
315
+ },
316
+ {
317
+ "anonymous": false,
318
+ "inputs": [
319
+ {
320
+ "indexed": true,
321
+ "internalType": "address",
322
+ "name": "borrower",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "internalType": "uint256",
328
+ "name": "numOfPeriods",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint256",
334
+ "name": "remainingPeriods",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "indexed": false,
339
+ "internalType": "address",
340
+ "name": "by",
341
+ "type": "address"
342
+ }
343
+ ],
344
+ "name": "CreditLineExtended",
345
+ "type": "event"
346
+ },
347
+ {
348
+ "anonymous": false,
349
+ "inputs": [
350
+ {
351
+ "indexed": true,
352
+ "internalType": "address",
353
+ "name": "borrower",
354
+ "type": "address"
355
+ },
356
+ {
357
+ "indexed": false,
358
+ "internalType": "uint256",
359
+ "name": "losses",
360
+ "type": "uint256"
361
+ },
362
+ {
363
+ "indexed": false,
364
+ "internalType": "address",
365
+ "name": "by",
366
+ "type": "address"
367
+ }
368
+ ],
369
+ "name": "DefaultTriggered",
370
+ "type": "event"
371
+ },
372
+ {
373
+ "anonymous": false,
374
+ "inputs": [
375
+ {
376
+ "indexed": true,
377
+ "internalType": "address",
378
+ "name": "borrower",
379
+ "type": "address"
380
+ },
381
+ {
382
+ "indexed": false,
383
+ "internalType": "uint256",
384
+ "name": "borrowAmount",
385
+ "type": "uint256"
386
+ },
387
+ {
388
+ "indexed": false,
389
+ "internalType": "uint256",
390
+ "name": "netAmountToBorrower",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "name": "DrawdownMade",
395
+ "type": "event"
396
+ },
397
+ {
398
+ "anonymous": false,
399
+ "inputs": [
400
+ {
401
+ "indexed": true,
402
+ "internalType": "address",
403
+ "name": "borrower",
404
+ "type": "address"
405
+ },
406
+ {
407
+ "indexed": false,
408
+ "internalType": "uint256",
409
+ "name": "borrowAmount",
410
+ "type": "uint256"
411
+ },
412
+ {
413
+ "indexed": false,
414
+ "internalType": "uint256",
415
+ "name": "netAmountToBorrower",
416
+ "type": "uint256"
417
+ },
418
+ {
419
+ "indexed": false,
420
+ "internalType": "address",
421
+ "name": "receivableAsset",
422
+ "type": "address"
423
+ },
424
+ {
425
+ "indexed": false,
426
+ "internalType": "uint256",
427
+ "name": "receivableParam",
428
+ "type": "uint256"
429
+ }
430
+ ],
431
+ "name": "DrawdownMadeWithReceivable",
432
+ "type": "event"
433
+ },
434
+ {
435
+ "anonymous": false,
436
+ "inputs": [
437
+ {
438
+ "indexed": true,
439
+ "internalType": "address",
440
+ "name": "receiver",
441
+ "type": "address"
442
+ },
443
+ {
444
+ "indexed": false,
445
+ "internalType": "uint256",
446
+ "name": "amount",
447
+ "type": "uint256"
448
+ }
449
+ ],
450
+ "name": "ExtraFundsDispersed",
451
+ "type": "event"
452
+ },
453
+ {
454
+ "anonymous": false,
455
+ "inputs": [
456
+ {
457
+ "indexed": false,
458
+ "internalType": "uint8",
459
+ "name": "version",
460
+ "type": "uint8"
461
+ }
462
+ ],
463
+ "name": "Initialized",
464
+ "type": "event"
465
+ },
466
+ {
467
+ "anonymous": false,
468
+ "inputs": [
469
+ {
470
+ "indexed": true,
471
+ "internalType": "address",
472
+ "name": "account",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "indexed": false,
477
+ "internalType": "uint256",
478
+ "name": "assetAmount",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "indexed": false,
483
+ "internalType": "uint256",
484
+ "name": "shareAmount",
485
+ "type": "uint256"
486
+ }
487
+ ],
488
+ "name": "LiquidityDeposited",
489
+ "type": "event"
490
+ },
491
+ {
492
+ "anonymous": false,
493
+ "inputs": [
494
+ {
495
+ "indexed": true,
496
+ "internalType": "address",
497
+ "name": "account",
498
+ "type": "address"
499
+ },
500
+ {
501
+ "indexed": false,
502
+ "internalType": "uint256",
503
+ "name": "assetAmount",
504
+ "type": "uint256"
505
+ },
506
+ {
507
+ "indexed": false,
508
+ "internalType": "uint256",
509
+ "name": "shareAmount",
510
+ "type": "uint256"
511
+ }
512
+ ],
513
+ "name": "LiquidityWithdrawn",
514
+ "type": "event"
515
+ },
516
+ {
517
+ "anonymous": false,
518
+ "inputs": [
519
+ {
520
+ "indexed": false,
521
+ "internalType": "uint256",
522
+ "name": "lossesDistributed",
523
+ "type": "uint256"
524
+ },
525
+ {
526
+ "indexed": false,
527
+ "internalType": "uint256",
528
+ "name": "updatedPoolValue",
529
+ "type": "uint256"
530
+ }
531
+ ],
532
+ "name": "LossesDistributed",
533
+ "type": "event"
534
+ },
535
+ {
536
+ "anonymous": false,
537
+ "inputs": [
538
+ {
539
+ "indexed": false,
540
+ "internalType": "bytes32",
541
+ "name": "paymentIdHash",
542
+ "type": "bytes32"
543
+ }
544
+ ],
545
+ "name": "PaymentInvalidated",
546
+ "type": "event"
547
+ },
548
+ {
549
+ "anonymous": false,
550
+ "inputs": [
551
+ {
552
+ "indexed": true,
553
+ "internalType": "address",
554
+ "name": "borrower",
555
+ "type": "address"
556
+ },
557
+ {
558
+ "indexed": false,
559
+ "internalType": "uint256",
560
+ "name": "amount",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "indexed": false,
565
+ "internalType": "uint256",
566
+ "name": "totalDue",
567
+ "type": "uint256"
568
+ },
569
+ {
570
+ "indexed": false,
571
+ "internalType": "uint256",
572
+ "name": "unbilledPrincipal",
573
+ "type": "uint256"
574
+ },
575
+ {
576
+ "indexed": false,
577
+ "internalType": "address",
578
+ "name": "by",
579
+ "type": "address"
580
+ }
581
+ ],
582
+ "name": "PaymentMade",
583
+ "type": "event"
584
+ },
585
+ {
586
+ "anonymous": false,
587
+ "inputs": [
588
+ {
589
+ "indexed": true,
590
+ "internalType": "address",
591
+ "name": "sender",
592
+ "type": "address"
593
+ },
594
+ {
595
+ "indexed": false,
596
+ "internalType": "address",
597
+ "name": "newPoolConfig",
598
+ "type": "address"
599
+ }
600
+ ],
601
+ "name": "PoolConfigChanged",
602
+ "type": "event"
603
+ },
604
+ {
605
+ "anonymous": false,
606
+ "inputs": [
607
+ {
608
+ "indexed": true,
609
+ "internalType": "address",
610
+ "name": "sender",
611
+ "type": "address"
612
+ },
613
+ {
614
+ "indexed": false,
615
+ "internalType": "address",
616
+ "name": "underlyingToken",
617
+ "type": "address"
618
+ },
619
+ {
620
+ "indexed": false,
621
+ "internalType": "address",
622
+ "name": "poolToken",
623
+ "type": "address"
624
+ },
625
+ {
626
+ "indexed": false,
627
+ "internalType": "address",
628
+ "name": "humaConfig",
629
+ "type": "address"
630
+ },
631
+ {
632
+ "indexed": false,
633
+ "internalType": "address",
634
+ "name": "feeManager",
635
+ "type": "address"
636
+ }
637
+ ],
638
+ "name": "PoolCoreDataChanged",
639
+ "type": "event"
640
+ },
641
+ {
642
+ "anonymous": false,
643
+ "inputs": [
644
+ {
645
+ "indexed": true,
646
+ "internalType": "address",
647
+ "name": "by",
648
+ "type": "address"
649
+ }
650
+ ],
651
+ "name": "PoolDisabled",
652
+ "type": "event"
653
+ },
654
+ {
655
+ "anonymous": false,
656
+ "inputs": [
657
+ {
658
+ "indexed": true,
659
+ "internalType": "address",
660
+ "name": "by",
661
+ "type": "address"
662
+ }
663
+ ],
664
+ "name": "PoolEnabled",
665
+ "type": "event"
666
+ },
667
+ {
668
+ "anonymous": false,
669
+ "inputs": [
670
+ {
671
+ "indexed": true,
672
+ "internalType": "address",
673
+ "name": "sender",
674
+ "type": "address"
675
+ },
676
+ {
677
+ "indexed": true,
678
+ "internalType": "address",
679
+ "name": "borrower",
680
+ "type": "address"
681
+ },
682
+ {
683
+ "indexed": false,
684
+ "internalType": "uint256",
685
+ "name": "amount",
686
+ "type": "uint256"
687
+ },
688
+ {
689
+ "indexed": false,
690
+ "internalType": "bytes32",
691
+ "name": "paymentIdHash",
692
+ "type": "bytes32"
693
+ }
694
+ ],
695
+ "name": "ReceivedPaymentProcessed",
696
+ "type": "event"
697
+ },
698
+ {
699
+ "anonymous": false,
700
+ "inputs": [
701
+ {
702
+ "indexed": true,
703
+ "internalType": "address",
704
+ "name": "lender",
705
+ "type": "address"
706
+ },
707
+ {
708
+ "indexed": false,
709
+ "internalType": "address",
710
+ "name": "by",
711
+ "type": "address"
712
+ }
713
+ ],
714
+ "name": "RemoveApprovedLender",
715
+ "type": "event"
716
+ },
717
+ {
718
+ "inputs": [
719
+ {
720
+ "internalType": "address",
721
+ "name": "lender",
722
+ "type": "address"
723
+ }
724
+ ],
725
+ "name": "addApprovedLender",
726
+ "outputs": [],
727
+ "stateMutability": "nonpayable",
728
+ "type": "function"
729
+ },
730
+ {
731
+ "inputs": [
732
+ {
733
+ "internalType": "address",
734
+ "name": "borrower",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "uint256",
739
+ "name": "creditLimit",
740
+ "type": "uint256"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "intervalInDays",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "remainingPeriods",
750
+ "type": "uint256"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "aprInBps",
755
+ "type": "uint256"
756
+ }
757
+ ],
758
+ "name": "approveCredit",
759
+ "outputs": [],
760
+ "stateMutability": "nonpayable",
761
+ "type": "function"
762
+ },
763
+ {
764
+ "inputs": [
765
+ {
766
+ "internalType": "address",
767
+ "name": "borrower",
768
+ "type": "address"
769
+ },
770
+ {
771
+ "internalType": "uint256",
772
+ "name": "creditLimit",
773
+ "type": "uint256"
774
+ },
775
+ {
776
+ "internalType": "uint256",
777
+ "name": "intervalInDays",
778
+ "type": "uint256"
779
+ },
780
+ {
781
+ "internalType": "uint256",
782
+ "name": "remainingPeriods",
783
+ "type": "uint256"
784
+ },
785
+ {
786
+ "internalType": "uint256",
787
+ "name": "aprInBps",
788
+ "type": "uint256"
789
+ },
790
+ {
791
+ "internalType": "address",
792
+ "name": "receivableAsset",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "uint256",
797
+ "name": "receivableParam",
798
+ "type": "uint256"
799
+ },
800
+ {
801
+ "internalType": "uint256",
802
+ "name": "receivableAmount",
803
+ "type": "uint256"
804
+ }
805
+ ],
806
+ "name": "approveCredit",
807
+ "outputs": [],
808
+ "stateMutability": "nonpayable",
809
+ "type": "function"
810
+ },
811
+ {
812
+ "inputs": [
813
+ {
814
+ "internalType": "address",
815
+ "name": "borrower",
816
+ "type": "address"
817
+ },
818
+ {
819
+ "internalType": "uint256",
820
+ "name": "newCreditLimit",
821
+ "type": "uint256"
822
+ }
823
+ ],
824
+ "name": "changeCreditLine",
825
+ "outputs": [],
826
+ "stateMutability": "nonpayable",
827
+ "type": "function"
828
+ },
829
+ {
830
+ "inputs": [
831
+ {
832
+ "internalType": "address",
833
+ "name": "account",
834
+ "type": "address"
835
+ }
836
+ ],
837
+ "name": "creditRecordMapping",
838
+ "outputs": [
839
+ {
840
+ "components": [
841
+ {
842
+ "internalType": "uint96",
843
+ "name": "unbilledPrincipal",
844
+ "type": "uint96"
845
+ },
846
+ {
847
+ "internalType": "uint64",
848
+ "name": "dueDate",
849
+ "type": "uint64"
850
+ },
851
+ {
852
+ "internalType": "int96",
853
+ "name": "correction",
854
+ "type": "int96"
855
+ },
856
+ {
857
+ "internalType": "uint96",
858
+ "name": "totalDue",
859
+ "type": "uint96"
860
+ },
861
+ {
862
+ "internalType": "uint96",
863
+ "name": "feesAndInterestDue",
864
+ "type": "uint96"
865
+ },
866
+ {
867
+ "internalType": "uint16",
868
+ "name": "missedPeriods",
869
+ "type": "uint16"
870
+ },
871
+ {
872
+ "internalType": "uint16",
873
+ "name": "remainingPeriods",
874
+ "type": "uint16"
875
+ },
876
+ {
877
+ "internalType": "enum BaseStructs.CreditState",
878
+ "name": "state",
879
+ "type": "uint8"
880
+ }
881
+ ],
882
+ "internalType": "struct BaseStructs.CreditRecord",
883
+ "name": "",
884
+ "type": "tuple"
885
+ }
886
+ ],
887
+ "stateMutability": "view",
888
+ "type": "function"
889
+ },
890
+ {
891
+ "inputs": [
892
+ {
893
+ "internalType": "address",
894
+ "name": "account",
895
+ "type": "address"
896
+ }
897
+ ],
898
+ "name": "creditRecordStaticMapping",
899
+ "outputs": [
900
+ {
901
+ "components": [
902
+ {
903
+ "internalType": "uint96",
904
+ "name": "creditLimit",
905
+ "type": "uint96"
906
+ },
907
+ {
908
+ "internalType": "uint16",
909
+ "name": "aprInBps",
910
+ "type": "uint16"
911
+ },
912
+ {
913
+ "internalType": "uint16",
914
+ "name": "intervalInDays",
915
+ "type": "uint16"
916
+ },
917
+ {
918
+ "internalType": "uint96",
919
+ "name": "defaultAmount",
920
+ "type": "uint96"
921
+ }
922
+ ],
923
+ "internalType": "struct BaseStructs.CreditRecordStatic",
924
+ "name": "",
925
+ "type": "tuple"
926
+ }
927
+ ],
928
+ "stateMutability": "view",
929
+ "type": "function"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "uint256",
935
+ "name": "amount",
936
+ "type": "uint256"
937
+ }
938
+ ],
939
+ "name": "deposit",
940
+ "outputs": [],
941
+ "stateMutability": "nonpayable",
942
+ "type": "function"
943
+ },
944
+ {
945
+ "inputs": [],
946
+ "name": "disablePool",
947
+ "outputs": [],
948
+ "stateMutability": "nonpayable",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
953
+ {
954
+ "internalType": "uint256",
955
+ "name": "",
956
+ "type": "uint256"
957
+ }
958
+ ],
959
+ "name": "drawdown",
960
+ "outputs": [],
961
+ "stateMutability": "nonpayable",
962
+ "type": "function"
963
+ },
964
+ {
965
+ "inputs": [
966
+ {
967
+ "internalType": "uint256",
968
+ "name": "borrowAmount",
969
+ "type": "uint256"
970
+ },
971
+ {
972
+ "internalType": "address",
973
+ "name": "receivableAsset",
974
+ "type": "address"
975
+ },
976
+ {
977
+ "internalType": "uint256",
978
+ "name": "receivableParam",
979
+ "type": "uint256"
980
+ }
981
+ ],
982
+ "name": "drawdownWithReceivable",
983
+ "outputs": [],
984
+ "stateMutability": "nonpayable",
985
+ "type": "function"
986
+ },
987
+ {
988
+ "inputs": [],
989
+ "name": "enablePool",
990
+ "outputs": [],
991
+ "stateMutability": "nonpayable",
992
+ "type": "function"
993
+ },
994
+ {
995
+ "inputs": [
996
+ {
997
+ "internalType": "address",
998
+ "name": "borrower",
999
+ "type": "address"
1000
+ },
1001
+ {
1002
+ "internalType": "uint256",
1003
+ "name": "numOfPeriods",
1004
+ "type": "uint256"
1005
+ }
1006
+ ],
1007
+ "name": "extendCreditLineDuration",
1008
+ "outputs": [],
1009
+ "stateMutability": "nonpayable",
1010
+ "type": "function"
1011
+ },
1012
+ {
1013
+ "inputs": [],
1014
+ "name": "getCoreData",
1015
+ "outputs": [
1016
+ {
1017
+ "internalType": "address",
1018
+ "name": "underlyingToken_",
1019
+ "type": "address"
1020
+ },
1021
+ {
1022
+ "internalType": "address",
1023
+ "name": "poolToken_",
1024
+ "type": "address"
1025
+ },
1026
+ {
1027
+ "internalType": "address",
1028
+ "name": "humaConfig_",
1029
+ "type": "address"
1030
+ },
1031
+ {
1032
+ "internalType": "address",
1033
+ "name": "feeManager_",
1034
+ "type": "address"
1035
+ }
1036
+ ],
1037
+ "stateMutability": "view",
1038
+ "type": "function"
1039
+ },
1040
+ {
1041
+ "inputs": [
1042
+ {
1043
+ "internalType": "address",
1044
+ "name": "poolConfigAddr",
1045
+ "type": "address"
1046
+ }
1047
+ ],
1048
+ "name": "initialize",
1049
+ "outputs": [],
1050
+ "stateMutability": "nonpayable",
1051
+ "type": "function"
1052
+ },
1053
+ {
1054
+ "inputs": [
1055
+ {
1056
+ "internalType": "address",
1057
+ "name": "borrower",
1058
+ "type": "address"
1059
+ }
1060
+ ],
1061
+ "name": "isApproved",
1062
+ "outputs": [
1063
+ {
1064
+ "internalType": "bool",
1065
+ "name": "",
1066
+ "type": "bool"
1067
+ }
1068
+ ],
1069
+ "stateMutability": "view",
1070
+ "type": "function"
1071
+ },
1072
+ {
1073
+ "inputs": [
1074
+ {
1075
+ "internalType": "address",
1076
+ "name": "account",
1077
+ "type": "address"
1078
+ }
1079
+ ],
1080
+ "name": "isApprovedLender",
1081
+ "outputs": [
1082
+ {
1083
+ "internalType": "bool",
1084
+ "name": "",
1085
+ "type": "bool"
1086
+ }
1087
+ ],
1088
+ "stateMutability": "view",
1089
+ "type": "function"
1090
+ },
1091
+ {
1092
+ "inputs": [
1093
+ {
1094
+ "internalType": "address",
1095
+ "name": "borrower",
1096
+ "type": "address"
1097
+ }
1098
+ ],
1099
+ "name": "isDefaultReady",
1100
+ "outputs": [
1101
+ {
1102
+ "internalType": "bool",
1103
+ "name": "",
1104
+ "type": "bool"
1105
+ }
1106
+ ],
1107
+ "stateMutability": "view",
1108
+ "type": "function"
1109
+ },
1110
+ {
1111
+ "inputs": [
1112
+ {
1113
+ "internalType": "address",
1114
+ "name": "borrower",
1115
+ "type": "address"
1116
+ }
1117
+ ],
1118
+ "name": "isLate",
1119
+ "outputs": [
1120
+ {
1121
+ "internalType": "bool",
1122
+ "name": "",
1123
+ "type": "bool"
1124
+ }
1125
+ ],
1126
+ "stateMutability": "view",
1127
+ "type": "function"
1128
+ },
1129
+ {
1130
+ "inputs": [
1131
+ {
1132
+ "internalType": "bytes32",
1133
+ "name": "paymentIdHash",
1134
+ "type": "bytes32"
1135
+ }
1136
+ ],
1137
+ "name": "isPaymentProcessed",
1138
+ "outputs": [
1139
+ {
1140
+ "internalType": "bool",
1141
+ "name": "",
1142
+ "type": "bool"
1143
+ }
1144
+ ],
1145
+ "stateMutability": "view",
1146
+ "type": "function"
1147
+ },
1148
+ {
1149
+ "inputs": [],
1150
+ "name": "isPoolOn",
1151
+ "outputs": [
1152
+ {
1153
+ "internalType": "bool",
1154
+ "name": "status",
1155
+ "type": "bool"
1156
+ }
1157
+ ],
1158
+ "stateMutability": "view",
1159
+ "type": "function"
1160
+ },
1161
+ {
1162
+ "inputs": [
1163
+ {
1164
+ "internalType": "address",
1165
+ "name": "account",
1166
+ "type": "address"
1167
+ }
1168
+ ],
1169
+ "name": "lastDepositTime",
1170
+ "outputs": [
1171
+ {
1172
+ "internalType": "uint256",
1173
+ "name": "",
1174
+ "type": "uint256"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view",
1178
+ "type": "function"
1179
+ },
1180
+ {
1181
+ "inputs": [
1182
+ {
1183
+ "internalType": "uint256",
1184
+ "name": "amount",
1185
+ "type": "uint256"
1186
+ }
1187
+ ],
1188
+ "name": "makeInitialDeposit",
1189
+ "outputs": [],
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "address",
1197
+ "name": "borrower",
1198
+ "type": "address"
1199
+ },
1200
+ {
1201
+ "internalType": "uint256",
1202
+ "name": "amount",
1203
+ "type": "uint256"
1204
+ }
1205
+ ],
1206
+ "name": "makePayment",
1207
+ "outputs": [
1208
+ {
1209
+ "internalType": "uint256",
1210
+ "name": "amountPaid",
1211
+ "type": "uint256"
1212
+ },
1213
+ {
1214
+ "internalType": "bool",
1215
+ "name": "paidoff",
1216
+ "type": "bool"
1217
+ }
1218
+ ],
1219
+ "stateMutability": "nonpayable",
1220
+ "type": "function"
1221
+ },
1222
+ {
1223
+ "inputs": [
1224
+ {
1225
+ "internalType": "bytes32",
1226
+ "name": "paymentIdHash",
1227
+ "type": "bytes32"
1228
+ }
1229
+ ],
1230
+ "name": "markPaymentInvalid",
1231
+ "outputs": [],
1232
+ "stateMutability": "nonpayable",
1233
+ "type": "function"
1234
+ },
1235
+ {
1236
+ "inputs": [
1237
+ {
1238
+ "internalType": "address",
1239
+ "name": "",
1240
+ "type": "address"
1241
+ },
1242
+ {
1243
+ "internalType": "address",
1244
+ "name": "",
1245
+ "type": "address"
1246
+ },
1247
+ {
1248
+ "internalType": "uint256",
1249
+ "name": "",
1250
+ "type": "uint256"
1251
+ },
1252
+ {
1253
+ "internalType": "bytes",
1254
+ "name": "",
1255
+ "type": "bytes"
1256
+ }
1257
+ ],
1258
+ "name": "onERC721Received",
1259
+ "outputs": [
1260
+ {
1261
+ "internalType": "bytes4",
1262
+ "name": "",
1263
+ "type": "bytes4"
1264
+ }
1265
+ ],
1266
+ "stateMutability": "nonpayable",
1267
+ "type": "function"
1268
+ },
1269
+ {
1270
+ "inputs": [
1271
+ {
1272
+ "internalType": "address",
1273
+ "name": "borrower",
1274
+ "type": "address"
1275
+ },
1276
+ {
1277
+ "internalType": "uint256",
1278
+ "name": "amount",
1279
+ "type": "uint256"
1280
+ },
1281
+ {
1282
+ "internalType": "bytes32",
1283
+ "name": "paymentIdHash",
1284
+ "type": "bytes32"
1285
+ }
1286
+ ],
1287
+ "name": "onReceivedPayment",
1288
+ "outputs": [],
1289
+ "stateMutability": "nonpayable",
1290
+ "type": "function"
1291
+ },
1292
+ {
1293
+ "inputs": [],
1294
+ "name": "poolConfig",
1295
+ "outputs": [
1296
+ {
1297
+ "internalType": "address",
1298
+ "name": "",
1299
+ "type": "address"
1300
+ }
1301
+ ],
1302
+ "stateMutability": "view",
1303
+ "type": "function"
1304
+ },
1305
+ {
1306
+ "inputs": [
1307
+ {
1308
+ "internalType": "address",
1309
+ "name": "account",
1310
+ "type": "address"
1311
+ }
1312
+ ],
1313
+ "name": "receivableInfoMapping",
1314
+ "outputs": [
1315
+ {
1316
+ "components": [
1317
+ {
1318
+ "internalType": "address",
1319
+ "name": "receivableAsset",
1320
+ "type": "address"
1321
+ },
1322
+ {
1323
+ "internalType": "uint96",
1324
+ "name": "receivableAmount",
1325
+ "type": "uint96"
1326
+ },
1327
+ {
1328
+ "internalType": "uint256",
1329
+ "name": "receivableParam",
1330
+ "type": "uint256"
1331
+ }
1332
+ ],
1333
+ "internalType": "struct BaseStructs.ReceivableInfo",
1334
+ "name": "",
1335
+ "type": "tuple"
1336
+ }
1337
+ ],
1338
+ "stateMutability": "view",
1339
+ "type": "function"
1340
+ },
1341
+ {
1342
+ "inputs": [
1343
+ {
1344
+ "internalType": "bytes32",
1345
+ "name": "receivableHash",
1346
+ "type": "bytes32"
1347
+ }
1348
+ ],
1349
+ "name": "receivableOwnershipMapping",
1350
+ "outputs": [
1351
+ {
1352
+ "internalType": "address",
1353
+ "name": "",
1354
+ "type": "address"
1355
+ }
1356
+ ],
1357
+ "stateMutability": "view",
1358
+ "type": "function"
1359
+ },
1360
+ {
1361
+ "inputs": [
1362
+ {
1363
+ "internalType": "address",
1364
+ "name": "borrower",
1365
+ "type": "address"
1366
+ }
1367
+ ],
1368
+ "name": "refreshAccount",
1369
+ "outputs": [
1370
+ {
1371
+ "components": [
1372
+ {
1373
+ "internalType": "uint96",
1374
+ "name": "unbilledPrincipal",
1375
+ "type": "uint96"
1376
+ },
1377
+ {
1378
+ "internalType": "uint64",
1379
+ "name": "dueDate",
1380
+ "type": "uint64"
1381
+ },
1382
+ {
1383
+ "internalType": "int96",
1384
+ "name": "correction",
1385
+ "type": "int96"
1386
+ },
1387
+ {
1388
+ "internalType": "uint96",
1389
+ "name": "totalDue",
1390
+ "type": "uint96"
1391
+ },
1392
+ {
1393
+ "internalType": "uint96",
1394
+ "name": "feesAndInterestDue",
1395
+ "type": "uint96"
1396
+ },
1397
+ {
1398
+ "internalType": "uint16",
1399
+ "name": "missedPeriods",
1400
+ "type": "uint16"
1401
+ },
1402
+ {
1403
+ "internalType": "uint16",
1404
+ "name": "remainingPeriods",
1405
+ "type": "uint16"
1406
+ },
1407
+ {
1408
+ "internalType": "enum BaseStructs.CreditState",
1409
+ "name": "state",
1410
+ "type": "uint8"
1411
+ }
1412
+ ],
1413
+ "internalType": "struct BaseStructs.CreditRecord",
1414
+ "name": "cr",
1415
+ "type": "tuple"
1416
+ }
1417
+ ],
1418
+ "stateMutability": "nonpayable",
1419
+ "type": "function"
1420
+ },
1421
+ {
1422
+ "inputs": [
1423
+ {
1424
+ "internalType": "address",
1425
+ "name": "lender",
1426
+ "type": "address"
1427
+ }
1428
+ ],
1429
+ "name": "removeApprovedLender",
1430
+ "outputs": [],
1431
+ "stateMutability": "nonpayable",
1432
+ "type": "function"
1433
+ },
1434
+ {
1435
+ "inputs": [
1436
+ {
1437
+ "internalType": "uint256",
1438
+ "name": "creditLimit",
1439
+ "type": "uint256"
1440
+ },
1441
+ {
1442
+ "internalType": "uint256",
1443
+ "name": "intervalInDays",
1444
+ "type": "uint256"
1445
+ },
1446
+ {
1447
+ "internalType": "uint256",
1448
+ "name": "numOfPayments",
1449
+ "type": "uint256"
1450
+ }
1451
+ ],
1452
+ "name": "requestCredit",
1453
+ "outputs": [],
1454
+ "stateMutability": "nonpayable",
1455
+ "type": "function"
1456
+ },
1457
+ {
1458
+ "inputs": [
1459
+ {
1460
+ "internalType": "address",
1461
+ "name": "poolConfigAddr",
1462
+ "type": "address"
1463
+ }
1464
+ ],
1465
+ "name": "setPoolConfig",
1466
+ "outputs": [],
1467
+ "stateMutability": "nonpayable",
1468
+ "type": "function"
1469
+ },
1470
+ {
1471
+ "inputs": [],
1472
+ "name": "totalPoolValue",
1473
+ "outputs": [
1474
+ {
1475
+ "internalType": "uint256",
1476
+ "name": "",
1477
+ "type": "uint256"
1478
+ }
1479
+ ],
1480
+ "stateMutability": "view",
1481
+ "type": "function"
1482
+ },
1483
+ {
1484
+ "inputs": [
1485
+ {
1486
+ "internalType": "address",
1487
+ "name": "borrower",
1488
+ "type": "address"
1489
+ }
1490
+ ],
1491
+ "name": "triggerDefault",
1492
+ "outputs": [
1493
+ {
1494
+ "internalType": "uint256",
1495
+ "name": "losses",
1496
+ "type": "uint256"
1497
+ }
1498
+ ],
1499
+ "stateMutability": "nonpayable",
1500
+ "type": "function"
1501
+ },
1502
+ {
1503
+ "inputs": [],
1504
+ "name": "updateCoreData",
1505
+ "outputs": [],
1506
+ "stateMutability": "nonpayable",
1507
+ "type": "function"
1508
+ },
1509
+ {
1510
+ "inputs": [
1511
+ {
1512
+ "internalType": "uint256",
1513
+ "name": "amount",
1514
+ "type": "uint256"
1515
+ }
1516
+ ],
1517
+ "name": "withdraw",
1518
+ "outputs": [],
1519
+ "stateMutability": "nonpayable",
1520
+ "type": "function"
1521
+ },
1522
+ {
1523
+ "inputs": [],
1524
+ "name": "withdrawAll",
1525
+ "outputs": [],
1526
+ "stateMutability": "nonpayable",
1527
+ "type": "function"
1528
+ }
1529
+ ]