@huma-finance/shared 0.0.48-beta.296 → 0.0.48-beta.298
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.
- package/dist/cjs/utils/credit.d.ts +2 -1
- package/dist/cjs/utils/credit.js +4 -2
- package/dist/cjs/utils/credit.js.map +1 -1
- package/dist/cjs/utils/number.d.ts +3 -1
- package/dist/cjs/utils/number.js +10 -1
- package/dist/cjs/utils/number.js.map +1 -1
- package/dist/cjs/v2/abis/Credit.json +72 -519
- package/dist/cjs/v2/abis/CreditLine.json +1025 -0
- package/dist/cjs/v2/abis/Pool.json +198 -114
- package/dist/cjs/v2/abis/ReceivableBackedCreditLine.json +58 -108
- package/dist/cjs/v2/abis/TrancheVault.json +159 -65
- package/dist/cjs/v2/abis/types/Credit.d.ts +118 -328
- package/dist/cjs/v2/abis/types/CreditLine.d.ts +556 -0
- package/dist/cjs/v2/abis/types/CreditLine.js +3 -0
- package/dist/cjs/v2/abis/types/CreditLine.js.map +1 -0
- package/dist/cjs/v2/abis/types/Pool.d.ts +179 -96
- package/dist/cjs/v2/abis/types/ReceivableBackedCreditLine.d.ts +55 -80
- package/dist/cjs/v2/abis/types/TrancheVault.d.ts +128 -62
- package/dist/cjs/v2/abis/types/factories/CreditLine__factory.d.ts +808 -0
- package/dist/cjs/v2/abis/types/factories/CreditLine__factory.js +1043 -0
- package/dist/cjs/v2/abis/types/factories/CreditLine__factory.js.map +1 -0
- package/dist/cjs/v2/abis/types/factories/Credit__factory.d.ts +69 -414
- package/dist/cjs/v2/abis/types/factories/Credit__factory.js +71 -518
- package/dist/cjs/v2/abis/types/factories/Credit__factory.js.map +1 -1
- package/dist/cjs/v2/abis/types/factories/Pool__factory.d.ts +157 -95
- package/dist/cjs/v2/abis/types/factories/Pool__factory.js +197 -113
- package/dist/cjs/v2/abis/types/factories/Pool__factory.js.map +1 -1
- package/dist/cjs/v2/abis/types/factories/ReceivableBackedCreditLine__factory.d.ts +49 -91
- package/dist/cjs/v2/abis/types/factories/ReceivableBackedCreditLine__factory.js +58 -108
- package/dist/cjs/v2/abis/types/factories/ReceivableBackedCreditLine__factory.js.map +1 -1
- package/dist/cjs/v2/abis/types/factories/TrancheVault__factory.d.ts +130 -56
- package/dist/cjs/v2/abis/types/factories/TrancheVault__factory.js +159 -65
- package/dist/cjs/v2/abis/types/factories/TrancheVault__factory.js.map +1 -1
- package/dist/cjs/v2/abis/types/factories/index.d.ts +1 -0
- package/dist/cjs/v2/abis/types/factories/index.js +3 -1
- package/dist/cjs/v2/abis/types/factories/index.js.map +1 -1
- package/dist/cjs/v2/abis/types/index.d.ts +2 -0
- package/dist/cjs/v2/abis/types/index.js +3 -1
- package/dist/cjs/v2/abis/types/index.js.map +1 -1
- package/dist/cjs/v2/hooks/usePool.d.ts +3 -10
- package/dist/cjs/v2/hooks/usePool.js +10 -62
- package/dist/cjs/v2/hooks/usePool.js.map +1 -1
- package/dist/cjs/v2/metadata/humaTestnet.js +20 -20
- package/dist/cjs/v2/metadata/localhost.js +20 -20
- package/dist/cjs/v2/utils/const.d.ts +10 -5
- package/dist/cjs/v2/utils/const.js +12 -6
- package/dist/cjs/v2/utils/const.js.map +1 -1
- package/dist/cjs/v2/utils/firstLossCoverContract.js +2 -1
- package/dist/cjs/v2/utils/firstLossCoverContract.js.map +1 -1
- package/dist/cjs/v2/utils/index.d.ts +1 -0
- package/dist/cjs/v2/utils/index.js +1 -0
- package/dist/cjs/v2/utils/index.js.map +1 -1
- package/dist/cjs/v2/utils/pool.d.ts +13 -9
- package/dist/cjs/v2/utils/pool.js +16 -20
- package/dist/cjs/v2/utils/pool.js.map +1 -1
- package/dist/cjs/v2/utils/poolContract.d.ts +2 -4
- package/dist/cjs/v2/utils/poolContract.js +13 -30
- package/dist/cjs/v2/utils/poolContract.js.map +1 -1
- package/dist/cjs/v2/utils/trancheVaultContract.d.ts +28 -0
- package/dist/cjs/v2/utils/trancheVaultContract.js +67 -0
- package/dist/cjs/v2/utils/trancheVaultContract.js.map +1 -0
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/utils/credit.d.ts +2 -1
- package/dist/utils/credit.js +4 -2
- package/dist/utils/credit.js.map +1 -1
- package/dist/utils/number.d.ts +3 -1
- package/dist/utils/number.js +7 -0
- package/dist/utils/number.js.map +1 -1
- package/dist/v2/abis/Credit.json +72 -519
- package/dist/v2/abis/CreditLine.json +1025 -0
- package/dist/v2/abis/Pool.json +198 -114
- package/dist/v2/abis/ReceivableBackedCreditLine.json +58 -108
- package/dist/v2/abis/TrancheVault.json +159 -65
- package/dist/v2/abis/types/Credit.d.ts +118 -328
- package/dist/v2/abis/types/CreditLine.d.ts +556 -0
- package/dist/v2/abis/types/CreditLine.js +2 -0
- package/dist/v2/abis/types/CreditLine.js.map +1 -0
- package/dist/v2/abis/types/Pool.d.ts +179 -96
- package/dist/v2/abis/types/ReceivableBackedCreditLine.d.ts +55 -80
- package/dist/v2/abis/types/TrancheVault.d.ts +128 -62
- package/dist/v2/abis/types/factories/CreditLine__factory.d.ts +808 -0
- package/dist/v2/abis/types/factories/CreditLine__factory.js +1039 -0
- package/dist/v2/abis/types/factories/CreditLine__factory.js.map +1 -0
- package/dist/v2/abis/types/factories/Credit__factory.d.ts +69 -414
- package/dist/v2/abis/types/factories/Credit__factory.js +71 -518
- package/dist/v2/abis/types/factories/Credit__factory.js.map +1 -1
- package/dist/v2/abis/types/factories/Pool__factory.d.ts +157 -95
- package/dist/v2/abis/types/factories/Pool__factory.js +197 -113
- package/dist/v2/abis/types/factories/Pool__factory.js.map +1 -1
- package/dist/v2/abis/types/factories/ReceivableBackedCreditLine__factory.d.ts +49 -91
- package/dist/v2/abis/types/factories/ReceivableBackedCreditLine__factory.js +58 -108
- package/dist/v2/abis/types/factories/ReceivableBackedCreditLine__factory.js.map +1 -1
- package/dist/v2/abis/types/factories/TrancheVault__factory.d.ts +130 -56
- package/dist/v2/abis/types/factories/TrancheVault__factory.js +159 -65
- package/dist/v2/abis/types/factories/TrancheVault__factory.js.map +1 -1
- package/dist/v2/abis/types/factories/index.d.ts +1 -0
- package/dist/v2/abis/types/factories/index.js +1 -0
- package/dist/v2/abis/types/factories/index.js.map +1 -1
- package/dist/v2/abis/types/index.d.ts +2 -0
- package/dist/v2/abis/types/index.js +1 -0
- package/dist/v2/abis/types/index.js.map +1 -1
- package/dist/v2/hooks/usePool.d.ts +3 -10
- package/dist/v2/hooks/usePool.js +10 -60
- package/dist/v2/hooks/usePool.js.map +1 -1
- package/dist/v2/metadata/humaTestnet.js +20 -20
- package/dist/v2/metadata/localhost.js +20 -20
- package/dist/v2/utils/const.d.ts +10 -5
- package/dist/v2/utils/const.js +11 -5
- package/dist/v2/utils/const.js.map +1 -1
- package/dist/v2/utils/firstLossCoverContract.js +2 -1
- package/dist/v2/utils/firstLossCoverContract.js.map +1 -1
- package/dist/v2/utils/index.d.ts +1 -0
- package/dist/v2/utils/index.js +1 -0
- package/dist/v2/utils/index.js.map +1 -1
- package/dist/v2/utils/pool.d.ts +13 -9
- package/dist/v2/utils/pool.js +15 -19
- package/dist/v2/utils/pool.js.map +1 -1
- package/dist/v2/utils/poolContract.d.ts +2 -4
- package/dist/v2/utils/poolContract.js +9 -24
- package/dist/v2/utils/poolContract.js.map +1 -1
- package/dist/v2/utils/trancheVaultContract.d.ts +28 -0
- package/dist/v2/utils/trancheVaultContract.js +60 -0
- package/dist/v2/utils/trancheVaultContract.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,97 +1,31 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"inputs": [],
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "AuthorizedContractCallerRequired",
|
|
5
5
|
"type": "error"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"inputs": [],
|
|
9
|
-
"name": "
|
|
10
|
-
"type": "error"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"inputs": [],
|
|
14
|
-
"name": "creditLineNotInGoodStandingState",
|
|
15
|
-
"type": "error"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"name": "creditLineNotInStateForMakingPayment",
|
|
20
|
-
"type": "error"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"inputs": [],
|
|
24
|
-
"name": "creditLineNotInStateForMakingPrincipalPayment",
|
|
25
|
-
"type": "error"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"inputs": [],
|
|
29
|
-
"name": "creditNotInStateForDrawdown",
|
|
30
|
-
"type": "error"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"inputs": [],
|
|
34
|
-
"name": "drawdownNotAllowedInLatePaymentGracePeriod",
|
|
35
|
-
"type": "error"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"inputs": [],
|
|
39
|
-
"name": "firstDrawdownTooSoon",
|
|
40
|
-
"type": "error"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"inputs": [],
|
|
44
|
-
"name": "insufficientBorrowerFirstLossCover",
|
|
45
|
-
"type": "error"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"inputs": [],
|
|
49
|
-
"name": "notBorrower",
|
|
50
|
-
"type": "error"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"inputs": [],
|
|
54
|
-
"name": "paymentDetectionServiceAccountRequired",
|
|
55
|
-
"type": "error"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"inputs": [],
|
|
59
|
-
"name": "todo",
|
|
60
|
-
"type": "error"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"inputs": [],
|
|
64
|
-
"name": "zeroAddressProvided",
|
|
65
|
-
"type": "error"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"inputs": [],
|
|
69
|
-
"name": "zeroAmountProvided",
|
|
9
|
+
"name": "ZeroAddressProvided",
|
|
70
10
|
"type": "error"
|
|
71
11
|
},
|
|
72
12
|
{
|
|
73
13
|
"anonymous": false,
|
|
74
14
|
"inputs": [
|
|
75
|
-
{
|
|
76
|
-
"indexed": true,
|
|
77
|
-
"internalType": "bytes32",
|
|
78
|
-
"name": "creditHash",
|
|
79
|
-
"type": "bytes32"
|
|
80
|
-
},
|
|
81
15
|
{
|
|
82
16
|
"indexed": false,
|
|
83
|
-
"internalType": "
|
|
84
|
-
"name": "
|
|
85
|
-
"type": "
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "previousAdmin",
|
|
19
|
+
"type": "address"
|
|
86
20
|
},
|
|
87
21
|
{
|
|
88
22
|
"indexed": false,
|
|
89
|
-
"internalType": "
|
|
90
|
-
"name": "
|
|
91
|
-
"type": "
|
|
23
|
+
"internalType": "address",
|
|
24
|
+
"name": "newAdmin",
|
|
25
|
+
"type": "address"
|
|
92
26
|
}
|
|
93
27
|
],
|
|
94
|
-
"name": "
|
|
28
|
+
"name": "AdminChanged",
|
|
95
29
|
"type": "event"
|
|
96
30
|
},
|
|
97
31
|
{
|
|
@@ -100,41 +34,11 @@
|
|
|
100
34
|
{
|
|
101
35
|
"indexed": true,
|
|
102
36
|
"internalType": "address",
|
|
103
|
-
"name": "
|
|
37
|
+
"name": "beacon",
|
|
104
38
|
"type": "address"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"indexed": false,
|
|
108
|
-
"internalType": "uint256",
|
|
109
|
-
"name": "creditLimit",
|
|
110
|
-
"type": "uint256"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"indexed": false,
|
|
114
|
-
"internalType": "uint256",
|
|
115
|
-
"name": "aprInBps",
|
|
116
|
-
"type": "uint256"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"indexed": false,
|
|
120
|
-
"internalType": "enum PayPeriodDuration",
|
|
121
|
-
"name": "periodDuration",
|
|
122
|
-
"type": "uint8"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"indexed": false,
|
|
126
|
-
"internalType": "uint256",
|
|
127
|
-
"name": "remainingPeriods",
|
|
128
|
-
"type": "uint256"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"indexed": false,
|
|
132
|
-
"internalType": "bool",
|
|
133
|
-
"name": "approved",
|
|
134
|
-
"type": "bool"
|
|
135
39
|
}
|
|
136
40
|
],
|
|
137
|
-
"name": "
|
|
41
|
+
"name": "BeaconUpgraded",
|
|
138
42
|
"type": "event"
|
|
139
43
|
},
|
|
140
44
|
{
|
|
@@ -142,24 +46,30 @@
|
|
|
142
46
|
"inputs": [
|
|
143
47
|
{
|
|
144
48
|
"indexed": true,
|
|
145
|
-
"internalType": "
|
|
146
|
-
"name": "
|
|
147
|
-
"type": "
|
|
49
|
+
"internalType": "bytes32",
|
|
50
|
+
"name": "creditHash",
|
|
51
|
+
"type": "bytes32"
|
|
148
52
|
},
|
|
149
53
|
{
|
|
150
54
|
"indexed": false,
|
|
151
55
|
"internalType": "uint256",
|
|
152
|
-
"name": "
|
|
56
|
+
"name": "newDueDate",
|
|
153
57
|
"type": "uint256"
|
|
154
58
|
},
|
|
155
59
|
{
|
|
156
60
|
"indexed": false,
|
|
157
61
|
"internalType": "uint256",
|
|
158
|
-
"name": "
|
|
62
|
+
"name": "nextDue",
|
|
63
|
+
"type": "uint256"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"indexed": false,
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "totalPastDue",
|
|
159
69
|
"type": "uint256"
|
|
160
70
|
}
|
|
161
71
|
],
|
|
162
|
-
"name": "
|
|
72
|
+
"name": "BillRefreshed",
|
|
163
73
|
"type": "event"
|
|
164
74
|
},
|
|
165
75
|
{
|
|
@@ -167,24 +77,18 @@
|
|
|
167
77
|
"inputs": [
|
|
168
78
|
{
|
|
169
79
|
"indexed": true,
|
|
170
|
-
"internalType": "
|
|
171
|
-
"name": "
|
|
172
|
-
"type": "
|
|
80
|
+
"internalType": "bytes32",
|
|
81
|
+
"name": "creditHash",
|
|
82
|
+
"type": "bytes32"
|
|
173
83
|
},
|
|
174
84
|
{
|
|
175
85
|
"indexed": false,
|
|
176
86
|
"internalType": "address",
|
|
177
87
|
"name": "by",
|
|
178
88
|
"type": "address"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"indexed": false,
|
|
182
|
-
"internalType": "enum CreditLineClosureReason",
|
|
183
|
-
"name": "reasonCode",
|
|
184
|
-
"type": "uint8"
|
|
185
89
|
}
|
|
186
90
|
],
|
|
187
|
-
"name": "
|
|
91
|
+
"name": "CreditClosedAfterPayOff",
|
|
188
92
|
"type": "event"
|
|
189
93
|
},
|
|
190
94
|
{
|
|
@@ -234,6 +138,12 @@
|
|
|
234
138
|
"name": "borrower",
|
|
235
139
|
"type": "address"
|
|
236
140
|
},
|
|
141
|
+
{
|
|
142
|
+
"indexed": true,
|
|
143
|
+
"internalType": "address",
|
|
144
|
+
"name": "payer",
|
|
145
|
+
"type": "address"
|
|
146
|
+
},
|
|
237
147
|
{
|
|
238
148
|
"indexed": false,
|
|
239
149
|
"internalType": "uint256",
|
|
@@ -327,6 +237,12 @@
|
|
|
327
237
|
"name": "borrower",
|
|
328
238
|
"type": "address"
|
|
329
239
|
},
|
|
240
|
+
{
|
|
241
|
+
"indexed": true,
|
|
242
|
+
"internalType": "address",
|
|
243
|
+
"name": "payer",
|
|
244
|
+
"type": "address"
|
|
245
|
+
},
|
|
330
246
|
{
|
|
331
247
|
"indexed": false,
|
|
332
248
|
"internalType": "uint256",
|
|
@@ -374,17 +290,17 @@
|
|
|
374
290
|
"type": "event"
|
|
375
291
|
},
|
|
376
292
|
{
|
|
377
|
-
"
|
|
378
|
-
"
|
|
379
|
-
"outputs": [
|
|
293
|
+
"anonymous": false,
|
|
294
|
+
"inputs": [
|
|
380
295
|
{
|
|
381
|
-
"
|
|
382
|
-
"
|
|
296
|
+
"indexed": true,
|
|
297
|
+
"internalType": "address",
|
|
298
|
+
"name": "implementation",
|
|
383
299
|
"type": "address"
|
|
384
300
|
}
|
|
385
301
|
],
|
|
386
|
-
"
|
|
387
|
-
"type": "
|
|
302
|
+
"name": "Upgraded",
|
|
303
|
+
"type": "event"
|
|
388
304
|
},
|
|
389
305
|
{
|
|
390
306
|
"inputs": [],
|
|
@@ -399,27 +315,9 @@
|
|
|
399
315
|
"stateMutability": "view",
|
|
400
316
|
"type": "function"
|
|
401
317
|
},
|
|
402
|
-
{
|
|
403
|
-
"inputs": [
|
|
404
|
-
{
|
|
405
|
-
"internalType": "address",
|
|
406
|
-
"name": "borrower",
|
|
407
|
-
"type": "address"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"internalType": "uint256",
|
|
411
|
-
"name": "borrowAmount",
|
|
412
|
-
"type": "uint256"
|
|
413
|
-
}
|
|
414
|
-
],
|
|
415
|
-
"name": "drawdown",
|
|
416
|
-
"outputs": [],
|
|
417
|
-
"stateMutability": "nonpayable",
|
|
418
|
-
"type": "function"
|
|
419
|
-
},
|
|
420
318
|
{
|
|
421
319
|
"inputs": [],
|
|
422
|
-
"name": "
|
|
320
|
+
"name": "dueManager",
|
|
423
321
|
"outputs": [
|
|
424
322
|
{
|
|
425
323
|
"internalType": "contract ICreditDueManager",
|
|
@@ -443,57 +341,6 @@
|
|
|
443
341
|
"stateMutability": "view",
|
|
444
342
|
"type": "function"
|
|
445
343
|
},
|
|
446
|
-
{
|
|
447
|
-
"inputs": [
|
|
448
|
-
{
|
|
449
|
-
"internalType": "bytes32",
|
|
450
|
-
"name": "creditHash",
|
|
451
|
-
"type": "bytes32"
|
|
452
|
-
}
|
|
453
|
-
],
|
|
454
|
-
"name": "getCreditLoss",
|
|
455
|
-
"outputs": [
|
|
456
|
-
{
|
|
457
|
-
"components": [
|
|
458
|
-
{
|
|
459
|
-
"internalType": "uint96",
|
|
460
|
-
"name": "principalLoss",
|
|
461
|
-
"type": "uint96"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"internalType": "uint96",
|
|
465
|
-
"name": "yieldLoss",
|
|
466
|
-
"type": "uint96"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"internalType": "uint96",
|
|
470
|
-
"name": "feesLoss",
|
|
471
|
-
"type": "uint96"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"internalType": "uint96",
|
|
475
|
-
"name": "principalRecovered",
|
|
476
|
-
"type": "uint96"
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"internalType": "uint96",
|
|
480
|
-
"name": "yieldRecovered",
|
|
481
|
-
"type": "uint96"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"internalType": "uint96",
|
|
485
|
-
"name": "feesRecovered",
|
|
486
|
-
"type": "uint96"
|
|
487
|
-
}
|
|
488
|
-
],
|
|
489
|
-
"internalType": "struct CreditLoss",
|
|
490
|
-
"name": "",
|
|
491
|
-
"type": "tuple"
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
"stateMutability": "view",
|
|
495
|
-
"type": "function"
|
|
496
|
-
},
|
|
497
344
|
{
|
|
498
345
|
"inputs": [
|
|
499
346
|
{
|
|
@@ -611,25 +458,6 @@
|
|
|
611
458
|
"stateMutability": "view",
|
|
612
459
|
"type": "function"
|
|
613
460
|
},
|
|
614
|
-
{
|
|
615
|
-
"inputs": [
|
|
616
|
-
{
|
|
617
|
-
"internalType": "bytes32",
|
|
618
|
-
"name": "creditHash",
|
|
619
|
-
"type": "bytes32"
|
|
620
|
-
}
|
|
621
|
-
],
|
|
622
|
-
"name": "getMaturityDate",
|
|
623
|
-
"outputs": [
|
|
624
|
-
{
|
|
625
|
-
"internalType": "uint256",
|
|
626
|
-
"name": "maturitydate",
|
|
627
|
-
"type": "uint256"
|
|
628
|
-
}
|
|
629
|
-
],
|
|
630
|
-
"stateMutability": "view",
|
|
631
|
-
"type": "function"
|
|
632
|
-
},
|
|
633
461
|
{
|
|
634
462
|
"inputs": [],
|
|
635
463
|
"name": "humaConfig",
|
|
@@ -647,7 +475,7 @@
|
|
|
647
475
|
"inputs": [
|
|
648
476
|
{
|
|
649
477
|
"internalType": "contract PoolConfig",
|
|
650
|
-
"name": "
|
|
478
|
+
"name": "poolConfig_",
|
|
651
479
|
"type": "address"
|
|
652
480
|
}
|
|
653
481
|
],
|
|
@@ -657,80 +485,16 @@
|
|
|
657
485
|
"type": "function"
|
|
658
486
|
},
|
|
659
487
|
{
|
|
660
|
-
"inputs": [
|
|
661
|
-
|
|
662
|
-
"internalType": "bytes32",
|
|
663
|
-
"name": "creditHash",
|
|
664
|
-
"type": "bytes32"
|
|
665
|
-
}
|
|
666
|
-
],
|
|
667
|
-
"name": "isLate",
|
|
668
|
-
"outputs": [
|
|
669
|
-
{
|
|
670
|
-
"internalType": "bool",
|
|
671
|
-
"name": "lateFlag",
|
|
672
|
-
"type": "bool"
|
|
673
|
-
}
|
|
674
|
-
],
|
|
675
|
-
"stateMutability": "view",
|
|
676
|
-
"type": "function"
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"inputs": [
|
|
680
|
-
{
|
|
681
|
-
"internalType": "address",
|
|
682
|
-
"name": "borrower",
|
|
683
|
-
"type": "address"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"internalType": "uint256",
|
|
687
|
-
"name": "amount",
|
|
688
|
-
"type": "uint256"
|
|
689
|
-
}
|
|
690
|
-
],
|
|
691
|
-
"name": "makePayment",
|
|
488
|
+
"inputs": [],
|
|
489
|
+
"name": "pool",
|
|
692
490
|
"outputs": [
|
|
693
491
|
{
|
|
694
|
-
"internalType": "
|
|
695
|
-
"name": "
|
|
696
|
-
"type": "uint256"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"internalType": "bool",
|
|
700
|
-
"name": "paidoff",
|
|
701
|
-
"type": "bool"
|
|
702
|
-
}
|
|
703
|
-
],
|
|
704
|
-
"stateMutability": "nonpayable",
|
|
705
|
-
"type": "function"
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"inputs": [
|
|
709
|
-
{
|
|
710
|
-
"internalType": "address",
|
|
711
|
-
"name": "borrower",
|
|
492
|
+
"internalType": "contract IPool",
|
|
493
|
+
"name": "",
|
|
712
494
|
"type": "address"
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"internalType": "uint256",
|
|
716
|
-
"name": "amount",
|
|
717
|
-
"type": "uint256"
|
|
718
495
|
}
|
|
719
496
|
],
|
|
720
|
-
"
|
|
721
|
-
"outputs": [
|
|
722
|
-
{
|
|
723
|
-
"internalType": "uint256",
|
|
724
|
-
"name": "amountPaid",
|
|
725
|
-
"type": "uint256"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
"internalType": "bool",
|
|
729
|
-
"name": "paidoff",
|
|
730
|
-
"type": "bool"
|
|
731
|
-
}
|
|
732
|
-
],
|
|
733
|
-
"stateMutability": "nonpayable",
|
|
497
|
+
"stateMutability": "view",
|
|
734
498
|
"type": "function"
|
|
735
499
|
},
|
|
736
500
|
{
|
|
@@ -760,53 +524,16 @@
|
|
|
760
524
|
"type": "function"
|
|
761
525
|
},
|
|
762
526
|
{
|
|
763
|
-
"inputs": [
|
|
527
|
+
"inputs": [],
|
|
528
|
+
"name": "proxiableUUID",
|
|
529
|
+
"outputs": [
|
|
764
530
|
{
|
|
765
531
|
"internalType": "bytes32",
|
|
766
|
-
"name": "
|
|
532
|
+
"name": "",
|
|
767
533
|
"type": "bytes32"
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
"components": [
|
|
771
|
-
{
|
|
772
|
-
"internalType": "uint96",
|
|
773
|
-
"name": "principalLoss",
|
|
774
|
-
"type": "uint96"
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"internalType": "uint96",
|
|
778
|
-
"name": "yieldLoss",
|
|
779
|
-
"type": "uint96"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"internalType": "uint96",
|
|
783
|
-
"name": "feesLoss",
|
|
784
|
-
"type": "uint96"
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
"internalType": "uint96",
|
|
788
|
-
"name": "principalRecovered",
|
|
789
|
-
"type": "uint96"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
"internalType": "uint96",
|
|
793
|
-
"name": "yieldRecovered",
|
|
794
|
-
"type": "uint96"
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
"internalType": "uint96",
|
|
798
|
-
"name": "feesRecovered",
|
|
799
|
-
"type": "uint96"
|
|
800
|
-
}
|
|
801
|
-
],
|
|
802
|
-
"internalType": "struct CreditLoss",
|
|
803
|
-
"name": "cl",
|
|
804
|
-
"type": "tuple"
|
|
805
534
|
}
|
|
806
535
|
],
|
|
807
|
-
"
|
|
808
|
-
"outputs": [],
|
|
809
|
-
"stateMutability": "nonpayable",
|
|
536
|
+
"stateMutability": "view",
|
|
810
537
|
"type": "function"
|
|
811
538
|
},
|
|
812
539
|
{
|
|
@@ -869,84 +596,11 @@
|
|
|
869
596
|
"stateMutability": "nonpayable",
|
|
870
597
|
"type": "function"
|
|
871
598
|
},
|
|
872
|
-
{
|
|
873
|
-
"inputs": [
|
|
874
|
-
{
|
|
875
|
-
"internalType": "bytes32",
|
|
876
|
-
"name": "creditHash",
|
|
877
|
-
"type": "bytes32"
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
"components": [
|
|
881
|
-
{
|
|
882
|
-
"internalType": "uint64",
|
|
883
|
-
"name": "lateFeeUpdatedDate",
|
|
884
|
-
"type": "uint64"
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"internalType": "uint96",
|
|
888
|
-
"name": "lateFee",
|
|
889
|
-
"type": "uint96"
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
"internalType": "uint96",
|
|
893
|
-
"name": "principalPastDue",
|
|
894
|
-
"type": "uint96"
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
"internalType": "uint96",
|
|
898
|
-
"name": "yieldPastDue",
|
|
899
|
-
"type": "uint96"
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
"internalType": "uint96",
|
|
903
|
-
"name": "committed",
|
|
904
|
-
"type": "uint96"
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
"internalType": "uint96",
|
|
908
|
-
"name": "accrued",
|
|
909
|
-
"type": "uint96"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"internalType": "uint96",
|
|
913
|
-
"name": "paid",
|
|
914
|
-
"type": "uint96"
|
|
915
|
-
}
|
|
916
|
-
],
|
|
917
|
-
"internalType": "struct DueDetail",
|
|
918
|
-
"name": "dd",
|
|
919
|
-
"type": "tuple"
|
|
920
|
-
}
|
|
921
|
-
],
|
|
922
|
-
"name": "setDueDetail",
|
|
923
|
-
"outputs": [],
|
|
924
|
-
"stateMutability": "nonpayable",
|
|
925
|
-
"type": "function"
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
"inputs": [
|
|
929
|
-
{
|
|
930
|
-
"internalType": "bytes32",
|
|
931
|
-
"name": "creditHash",
|
|
932
|
-
"type": "bytes32"
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"internalType": "uint256",
|
|
936
|
-
"name": "maturityDate",
|
|
937
|
-
"type": "uint256"
|
|
938
|
-
}
|
|
939
|
-
],
|
|
940
|
-
"name": "setMaturityDate",
|
|
941
|
-
"outputs": [],
|
|
942
|
-
"stateMutability": "nonpayable",
|
|
943
|
-
"type": "function"
|
|
944
|
-
},
|
|
945
599
|
{
|
|
946
600
|
"inputs": [
|
|
947
601
|
{
|
|
948
602
|
"internalType": "contract PoolConfig",
|
|
949
|
-
"name": "
|
|
603
|
+
"name": "poolConfig_",
|
|
950
604
|
"type": "address"
|
|
951
605
|
}
|
|
952
606
|
],
|
|
@@ -961,10 +615,7 @@
|
|
|
961
615
|
"internalType": "bytes32",
|
|
962
616
|
"name": "creditHash",
|
|
963
617
|
"type": "bytes32"
|
|
964
|
-
}
|
|
965
|
-
],
|
|
966
|
-
"name": "updateDueInfo",
|
|
967
|
-
"outputs": [
|
|
618
|
+
},
|
|
968
619
|
{
|
|
969
620
|
"components": [
|
|
970
621
|
{
|
|
@@ -1055,6 +706,8 @@
|
|
|
1055
706
|
"type": "tuple"
|
|
1056
707
|
}
|
|
1057
708
|
],
|
|
709
|
+
"name": "updateDueInfo",
|
|
710
|
+
"outputs": [],
|
|
1058
711
|
"stateMutability": "nonpayable",
|
|
1059
712
|
"type": "function"
|
|
1060
713
|
},
|
|
@@ -1069,62 +722,12 @@
|
|
|
1069
722
|
"inputs": [
|
|
1070
723
|
{
|
|
1071
724
|
"internalType": "address",
|
|
1072
|
-
"name": "
|
|
725
|
+
"name": "newImplementation",
|
|
1073
726
|
"type": "address"
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
"internalType": "uint256",
|
|
1077
|
-
"name": "receivableId",
|
|
1078
|
-
"type": "uint256"
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"internalType": "uint256",
|
|
1082
|
-
"name": "amount",
|
|
1083
|
-
"type": "uint256"
|
|
1084
|
-
}
|
|
1085
|
-
],
|
|
1086
|
-
"name": "drawdownWithReceivable",
|
|
1087
|
-
"outputs": [
|
|
1088
|
-
{
|
|
1089
|
-
"internalType": "uint256",
|
|
1090
|
-
"name": "netAmountToBorrower",
|
|
1091
|
-
"type": "uint256"
|
|
1092
|
-
}
|
|
1093
|
-
],
|
|
1094
|
-
"stateMutability": "nonpayable",
|
|
1095
|
-
"type": "function"
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
"inputs": [
|
|
1099
|
-
{
|
|
1100
|
-
"internalType": "address",
|
|
1101
|
-
"name": "borrower",
|
|
1102
|
-
"type": "address"
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"internalType": "uint256",
|
|
1106
|
-
"name": "receivableId",
|
|
1107
|
-
"type": "uint256"
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
"internalType": "uint256",
|
|
1111
|
-
"name": "amount",
|
|
1112
|
-
"type": "uint256"
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
"name": "makePaymentWithReceivable",
|
|
1116
|
-
"outputs": [
|
|
1117
|
-
{
|
|
1118
|
-
"internalType": "uint256",
|
|
1119
|
-
"name": "amountPaid",
|
|
1120
|
-
"type": "uint256"
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
"internalType": "bool",
|
|
1124
|
-
"name": "paidoff",
|
|
1125
|
-
"type": "bool"
|
|
1126
727
|
}
|
|
1127
728
|
],
|
|
729
|
+
"name": "upgradeTo",
|
|
730
|
+
"outputs": [],
|
|
1128
731
|
"stateMutability": "nonpayable",
|
|
1129
732
|
"type": "function"
|
|
1130
733
|
},
|
|
@@ -1132,68 +735,18 @@
|
|
|
1132
735
|
"inputs": [
|
|
1133
736
|
{
|
|
1134
737
|
"internalType": "address",
|
|
1135
|
-
"name": "
|
|
738
|
+
"name": "newImplementation",
|
|
1136
739
|
"type": "address"
|
|
1137
740
|
},
|
|
1138
741
|
{
|
|
1139
|
-
"internalType": "
|
|
1140
|
-
"name": "
|
|
1141
|
-
"type": "
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
"internalType": "uint256",
|
|
1145
|
-
"name": "paymentAmount",
|
|
1146
|
-
"type": "uint256"
|
|
1147
|
-
},
|
|
1148
|
-
{
|
|
1149
|
-
"internalType": "uint256",
|
|
1150
|
-
"name": "drawdownReceivableId",
|
|
1151
|
-
"type": "uint256"
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
"internalType": "uint256",
|
|
1155
|
-
"name": "drawdownAmount",
|
|
1156
|
-
"type": "uint256"
|
|
742
|
+
"internalType": "bytes",
|
|
743
|
+
"name": "data",
|
|
744
|
+
"type": "bytes"
|
|
1157
745
|
}
|
|
1158
746
|
],
|
|
1159
|
-
"name": "
|
|
1160
|
-
"outputs": [
|
|
1161
|
-
|
|
1162
|
-
"internalType": "uint256",
|
|
1163
|
-
"name": "amountPaid",
|
|
1164
|
-
"type": "uint256"
|
|
1165
|
-
},
|
|
1166
|
-
{
|
|
1167
|
-
"internalType": "uint256",
|
|
1168
|
-
"name": "netAmountToBorrower",
|
|
1169
|
-
"type": "uint256"
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
"internalType": "bool",
|
|
1173
|
-
"name": "paidoff",
|
|
1174
|
-
"type": "bool"
|
|
1175
|
-
}
|
|
1176
|
-
],
|
|
1177
|
-
"stateMutability": "nonpayable",
|
|
1178
|
-
"type": "function"
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
"inputs": [
|
|
1182
|
-
{
|
|
1183
|
-
"internalType": "address",
|
|
1184
|
-
"name": "borrower",
|
|
1185
|
-
"type": "address"
|
|
1186
|
-
}
|
|
1187
|
-
],
|
|
1188
|
-
"name": "getNextBillRefreshDate",
|
|
1189
|
-
"outputs": [
|
|
1190
|
-
{
|
|
1191
|
-
"internalType": "uint256",
|
|
1192
|
-
"name": "refreshDate",
|
|
1193
|
-
"type": "uint256"
|
|
1194
|
-
}
|
|
1195
|
-
],
|
|
1196
|
-
"stateMutability": "view",
|
|
747
|
+
"name": "upgradeToAndCall",
|
|
748
|
+
"outputs": [],
|
|
749
|
+
"stateMutability": "payable",
|
|
1197
750
|
"type": "function"
|
|
1198
751
|
}
|
|
1199
752
|
]
|