@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
|
@@ -5,97 +5,31 @@ import { Contract, utils } from 'ethers';
|
|
|
5
5
|
const _abi = [
|
|
6
6
|
{
|
|
7
7
|
inputs: [],
|
|
8
|
-
name: '
|
|
8
|
+
name: 'AuthorizedContractCallerRequired',
|
|
9
9
|
type: 'error',
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
inputs: [],
|
|
13
|
-
name: '
|
|
14
|
-
type: 'error',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
inputs: [],
|
|
18
|
-
name: 'creditLineNotInGoodStandingState',
|
|
19
|
-
type: 'error',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
inputs: [],
|
|
23
|
-
name: 'creditLineNotInStateForMakingPayment',
|
|
24
|
-
type: 'error',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
inputs: [],
|
|
28
|
-
name: 'creditLineNotInStateForMakingPrincipalPayment',
|
|
29
|
-
type: 'error',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
inputs: [],
|
|
33
|
-
name: 'creditNotInStateForDrawdown',
|
|
34
|
-
type: 'error',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
inputs: [],
|
|
38
|
-
name: 'drawdownNotAllowedInLatePaymentGracePeriod',
|
|
39
|
-
type: 'error',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
inputs: [],
|
|
43
|
-
name: 'firstDrawdownTooSoon',
|
|
44
|
-
type: 'error',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
inputs: [],
|
|
48
|
-
name: 'insufficientBorrowerFirstLossCover',
|
|
49
|
-
type: 'error',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
inputs: [],
|
|
53
|
-
name: 'notBorrower',
|
|
54
|
-
type: 'error',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
inputs: [],
|
|
58
|
-
name: 'paymentDetectionServiceAccountRequired',
|
|
59
|
-
type: 'error',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
inputs: [],
|
|
63
|
-
name: 'todo',
|
|
64
|
-
type: 'error',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
inputs: [],
|
|
68
|
-
name: 'zeroAddressProvided',
|
|
69
|
-
type: 'error',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
inputs: [],
|
|
73
|
-
name: 'zeroAmountProvided',
|
|
13
|
+
name: 'ZeroAddressProvided',
|
|
74
14
|
type: 'error',
|
|
75
15
|
},
|
|
76
16
|
{
|
|
77
17
|
anonymous: false,
|
|
78
18
|
inputs: [
|
|
79
|
-
{
|
|
80
|
-
indexed: true,
|
|
81
|
-
internalType: 'bytes32',
|
|
82
|
-
name: 'creditHash',
|
|
83
|
-
type: 'bytes32',
|
|
84
|
-
},
|
|
85
19
|
{
|
|
86
20
|
indexed: false,
|
|
87
|
-
internalType: '
|
|
88
|
-
name: '
|
|
89
|
-
type: '
|
|
21
|
+
internalType: 'address',
|
|
22
|
+
name: 'previousAdmin',
|
|
23
|
+
type: 'address',
|
|
90
24
|
},
|
|
91
25
|
{
|
|
92
26
|
indexed: false,
|
|
93
|
-
internalType: '
|
|
94
|
-
name: '
|
|
95
|
-
type: '
|
|
27
|
+
internalType: 'address',
|
|
28
|
+
name: 'newAdmin',
|
|
29
|
+
type: 'address',
|
|
96
30
|
},
|
|
97
31
|
],
|
|
98
|
-
name: '
|
|
32
|
+
name: 'AdminChanged',
|
|
99
33
|
type: 'event',
|
|
100
34
|
},
|
|
101
35
|
{
|
|
@@ -104,41 +38,11 @@ const _abi = [
|
|
|
104
38
|
{
|
|
105
39
|
indexed: true,
|
|
106
40
|
internalType: 'address',
|
|
107
|
-
name: '
|
|
41
|
+
name: 'beacon',
|
|
108
42
|
type: 'address',
|
|
109
43
|
},
|
|
110
|
-
{
|
|
111
|
-
indexed: false,
|
|
112
|
-
internalType: 'uint256',
|
|
113
|
-
name: 'creditLimit',
|
|
114
|
-
type: 'uint256',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
indexed: false,
|
|
118
|
-
internalType: 'uint256',
|
|
119
|
-
name: 'aprInBps',
|
|
120
|
-
type: 'uint256',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
indexed: false,
|
|
124
|
-
internalType: 'enum PayPeriodDuration',
|
|
125
|
-
name: 'periodDuration',
|
|
126
|
-
type: 'uint8',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
indexed: false,
|
|
130
|
-
internalType: 'uint256',
|
|
131
|
-
name: 'remainingPeriods',
|
|
132
|
-
type: 'uint256',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
indexed: false,
|
|
136
|
-
internalType: 'bool',
|
|
137
|
-
name: 'approved',
|
|
138
|
-
type: 'bool',
|
|
139
|
-
},
|
|
140
44
|
],
|
|
141
|
-
name: '
|
|
45
|
+
name: 'BeaconUpgraded',
|
|
142
46
|
type: 'event',
|
|
143
47
|
},
|
|
144
48
|
{
|
|
@@ -146,24 +50,30 @@ const _abi = [
|
|
|
146
50
|
inputs: [
|
|
147
51
|
{
|
|
148
52
|
indexed: true,
|
|
149
|
-
internalType: '
|
|
150
|
-
name: '
|
|
151
|
-
type: '
|
|
53
|
+
internalType: 'bytes32',
|
|
54
|
+
name: 'creditHash',
|
|
55
|
+
type: 'bytes32',
|
|
152
56
|
},
|
|
153
57
|
{
|
|
154
58
|
indexed: false,
|
|
155
59
|
internalType: 'uint256',
|
|
156
|
-
name: '
|
|
60
|
+
name: 'newDueDate',
|
|
157
61
|
type: 'uint256',
|
|
158
62
|
},
|
|
159
63
|
{
|
|
160
64
|
indexed: false,
|
|
161
65
|
internalType: 'uint256',
|
|
162
|
-
name: '
|
|
66
|
+
name: 'nextDue',
|
|
67
|
+
type: 'uint256',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
indexed: false,
|
|
71
|
+
internalType: 'uint256',
|
|
72
|
+
name: 'totalPastDue',
|
|
163
73
|
type: 'uint256',
|
|
164
74
|
},
|
|
165
75
|
],
|
|
166
|
-
name: '
|
|
76
|
+
name: 'BillRefreshed',
|
|
167
77
|
type: 'event',
|
|
168
78
|
},
|
|
169
79
|
{
|
|
@@ -171,9 +81,9 @@ const _abi = [
|
|
|
171
81
|
inputs: [
|
|
172
82
|
{
|
|
173
83
|
indexed: true,
|
|
174
|
-
internalType: '
|
|
175
|
-
name: '
|
|
176
|
-
type: '
|
|
84
|
+
internalType: 'bytes32',
|
|
85
|
+
name: 'creditHash',
|
|
86
|
+
type: 'bytes32',
|
|
177
87
|
},
|
|
178
88
|
{
|
|
179
89
|
indexed: false,
|
|
@@ -181,14 +91,8 @@ const _abi = [
|
|
|
181
91
|
name: 'by',
|
|
182
92
|
type: 'address',
|
|
183
93
|
},
|
|
184
|
-
{
|
|
185
|
-
indexed: false,
|
|
186
|
-
internalType: 'enum CreditLineClosureReason',
|
|
187
|
-
name: 'reasonCode',
|
|
188
|
-
type: 'uint8',
|
|
189
|
-
},
|
|
190
94
|
],
|
|
191
|
-
name: '
|
|
95
|
+
name: 'CreditClosedAfterPayOff',
|
|
192
96
|
type: 'event',
|
|
193
97
|
},
|
|
194
98
|
{
|
|
@@ -238,6 +142,12 @@ const _abi = [
|
|
|
238
142
|
name: 'borrower',
|
|
239
143
|
type: 'address',
|
|
240
144
|
},
|
|
145
|
+
{
|
|
146
|
+
indexed: true,
|
|
147
|
+
internalType: 'address',
|
|
148
|
+
name: 'payer',
|
|
149
|
+
type: 'address',
|
|
150
|
+
},
|
|
241
151
|
{
|
|
242
152
|
indexed: false,
|
|
243
153
|
internalType: 'uint256',
|
|
@@ -331,6 +241,12 @@ const _abi = [
|
|
|
331
241
|
name: 'borrower',
|
|
332
242
|
type: 'address',
|
|
333
243
|
},
|
|
244
|
+
{
|
|
245
|
+
indexed: true,
|
|
246
|
+
internalType: 'address',
|
|
247
|
+
name: 'payer',
|
|
248
|
+
type: 'address',
|
|
249
|
+
},
|
|
334
250
|
{
|
|
335
251
|
indexed: false,
|
|
336
252
|
internalType: 'uint256',
|
|
@@ -378,17 +294,17 @@ const _abi = [
|
|
|
378
294
|
type: 'event',
|
|
379
295
|
},
|
|
380
296
|
{
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
outputs: [
|
|
297
|
+
anonymous: false,
|
|
298
|
+
inputs: [
|
|
384
299
|
{
|
|
385
|
-
|
|
386
|
-
|
|
300
|
+
indexed: true,
|
|
301
|
+
internalType: 'address',
|
|
302
|
+
name: 'implementation',
|
|
387
303
|
type: 'address',
|
|
388
304
|
},
|
|
389
305
|
],
|
|
390
|
-
|
|
391
|
-
type: '
|
|
306
|
+
name: 'Upgraded',
|
|
307
|
+
type: 'event',
|
|
392
308
|
},
|
|
393
309
|
{
|
|
394
310
|
inputs: [],
|
|
@@ -403,27 +319,9 @@ const _abi = [
|
|
|
403
319
|
stateMutability: 'view',
|
|
404
320
|
type: 'function',
|
|
405
321
|
},
|
|
406
|
-
{
|
|
407
|
-
inputs: [
|
|
408
|
-
{
|
|
409
|
-
internalType: 'address',
|
|
410
|
-
name: 'borrower',
|
|
411
|
-
type: 'address',
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
internalType: 'uint256',
|
|
415
|
-
name: 'borrowAmount',
|
|
416
|
-
type: 'uint256',
|
|
417
|
-
},
|
|
418
|
-
],
|
|
419
|
-
name: 'drawdown',
|
|
420
|
-
outputs: [],
|
|
421
|
-
stateMutability: 'nonpayable',
|
|
422
|
-
type: 'function',
|
|
423
|
-
},
|
|
424
322
|
{
|
|
425
323
|
inputs: [],
|
|
426
|
-
name: '
|
|
324
|
+
name: 'dueManager',
|
|
427
325
|
outputs: [
|
|
428
326
|
{
|
|
429
327
|
internalType: 'contract ICreditDueManager',
|
|
@@ -447,57 +345,6 @@ const _abi = [
|
|
|
447
345
|
stateMutability: 'view',
|
|
448
346
|
type: 'function',
|
|
449
347
|
},
|
|
450
|
-
{
|
|
451
|
-
inputs: [
|
|
452
|
-
{
|
|
453
|
-
internalType: 'bytes32',
|
|
454
|
-
name: 'creditHash',
|
|
455
|
-
type: 'bytes32',
|
|
456
|
-
},
|
|
457
|
-
],
|
|
458
|
-
name: 'getCreditLoss',
|
|
459
|
-
outputs: [
|
|
460
|
-
{
|
|
461
|
-
components: [
|
|
462
|
-
{
|
|
463
|
-
internalType: 'uint96',
|
|
464
|
-
name: 'principalLoss',
|
|
465
|
-
type: 'uint96',
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
internalType: 'uint96',
|
|
469
|
-
name: 'yieldLoss',
|
|
470
|
-
type: 'uint96',
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
internalType: 'uint96',
|
|
474
|
-
name: 'feesLoss',
|
|
475
|
-
type: 'uint96',
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
internalType: 'uint96',
|
|
479
|
-
name: 'principalRecovered',
|
|
480
|
-
type: 'uint96',
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
internalType: 'uint96',
|
|
484
|
-
name: 'yieldRecovered',
|
|
485
|
-
type: 'uint96',
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
internalType: 'uint96',
|
|
489
|
-
name: 'feesRecovered',
|
|
490
|
-
type: 'uint96',
|
|
491
|
-
},
|
|
492
|
-
],
|
|
493
|
-
internalType: 'struct CreditLoss',
|
|
494
|
-
name: '',
|
|
495
|
-
type: 'tuple',
|
|
496
|
-
},
|
|
497
|
-
],
|
|
498
|
-
stateMutability: 'view',
|
|
499
|
-
type: 'function',
|
|
500
|
-
},
|
|
501
348
|
{
|
|
502
349
|
inputs: [
|
|
503
350
|
{
|
|
@@ -615,25 +462,6 @@ const _abi = [
|
|
|
615
462
|
stateMutability: 'view',
|
|
616
463
|
type: 'function',
|
|
617
464
|
},
|
|
618
|
-
{
|
|
619
|
-
inputs: [
|
|
620
|
-
{
|
|
621
|
-
internalType: 'bytes32',
|
|
622
|
-
name: 'creditHash',
|
|
623
|
-
type: 'bytes32',
|
|
624
|
-
},
|
|
625
|
-
],
|
|
626
|
-
name: 'getMaturityDate',
|
|
627
|
-
outputs: [
|
|
628
|
-
{
|
|
629
|
-
internalType: 'uint256',
|
|
630
|
-
name: 'maturitydate',
|
|
631
|
-
type: 'uint256',
|
|
632
|
-
},
|
|
633
|
-
],
|
|
634
|
-
stateMutability: 'view',
|
|
635
|
-
type: 'function',
|
|
636
|
-
},
|
|
637
465
|
{
|
|
638
466
|
inputs: [],
|
|
639
467
|
name: 'humaConfig',
|
|
@@ -651,7 +479,7 @@ const _abi = [
|
|
|
651
479
|
inputs: [
|
|
652
480
|
{
|
|
653
481
|
internalType: 'contract PoolConfig',
|
|
654
|
-
name: '
|
|
482
|
+
name: 'poolConfig_',
|
|
655
483
|
type: 'address',
|
|
656
484
|
},
|
|
657
485
|
],
|
|
@@ -661,80 +489,16 @@ const _abi = [
|
|
|
661
489
|
type: 'function',
|
|
662
490
|
},
|
|
663
491
|
{
|
|
664
|
-
inputs: [
|
|
665
|
-
|
|
666
|
-
internalType: 'bytes32',
|
|
667
|
-
name: 'creditHash',
|
|
668
|
-
type: 'bytes32',
|
|
669
|
-
},
|
|
670
|
-
],
|
|
671
|
-
name: 'isLate',
|
|
672
|
-
outputs: [
|
|
673
|
-
{
|
|
674
|
-
internalType: 'bool',
|
|
675
|
-
name: 'lateFlag',
|
|
676
|
-
type: 'bool',
|
|
677
|
-
},
|
|
678
|
-
],
|
|
679
|
-
stateMutability: 'view',
|
|
680
|
-
type: 'function',
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
inputs: [
|
|
684
|
-
{
|
|
685
|
-
internalType: 'address',
|
|
686
|
-
name: 'borrower',
|
|
687
|
-
type: 'address',
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
internalType: 'uint256',
|
|
691
|
-
name: 'amount',
|
|
692
|
-
type: 'uint256',
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
name: 'makePayment',
|
|
492
|
+
inputs: [],
|
|
493
|
+
name: 'pool',
|
|
696
494
|
outputs: [
|
|
697
495
|
{
|
|
698
|
-
internalType: '
|
|
699
|
-
name: '
|
|
700
|
-
type: 'uint256',
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
internalType: 'bool',
|
|
704
|
-
name: 'paidoff',
|
|
705
|
-
type: 'bool',
|
|
706
|
-
},
|
|
707
|
-
],
|
|
708
|
-
stateMutability: 'nonpayable',
|
|
709
|
-
type: 'function',
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
inputs: [
|
|
713
|
-
{
|
|
714
|
-
internalType: 'address',
|
|
715
|
-
name: 'borrower',
|
|
496
|
+
internalType: 'contract IPool',
|
|
497
|
+
name: '',
|
|
716
498
|
type: 'address',
|
|
717
499
|
},
|
|
718
|
-
{
|
|
719
|
-
internalType: 'uint256',
|
|
720
|
-
name: 'amount',
|
|
721
|
-
type: 'uint256',
|
|
722
|
-
},
|
|
723
500
|
],
|
|
724
|
-
|
|
725
|
-
outputs: [
|
|
726
|
-
{
|
|
727
|
-
internalType: 'uint256',
|
|
728
|
-
name: 'amountPaid',
|
|
729
|
-
type: 'uint256',
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
internalType: 'bool',
|
|
733
|
-
name: 'paidoff',
|
|
734
|
-
type: 'bool',
|
|
735
|
-
},
|
|
736
|
-
],
|
|
737
|
-
stateMutability: 'nonpayable',
|
|
501
|
+
stateMutability: 'view',
|
|
738
502
|
type: 'function',
|
|
739
503
|
},
|
|
740
504
|
{
|
|
@@ -764,53 +528,16 @@ const _abi = [
|
|
|
764
528
|
type: 'function',
|
|
765
529
|
},
|
|
766
530
|
{
|
|
767
|
-
inputs: [
|
|
531
|
+
inputs: [],
|
|
532
|
+
name: 'proxiableUUID',
|
|
533
|
+
outputs: [
|
|
768
534
|
{
|
|
769
535
|
internalType: 'bytes32',
|
|
770
|
-
name: '
|
|
536
|
+
name: '',
|
|
771
537
|
type: 'bytes32',
|
|
772
538
|
},
|
|
773
|
-
{
|
|
774
|
-
components: [
|
|
775
|
-
{
|
|
776
|
-
internalType: 'uint96',
|
|
777
|
-
name: 'principalLoss',
|
|
778
|
-
type: 'uint96',
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
internalType: 'uint96',
|
|
782
|
-
name: 'yieldLoss',
|
|
783
|
-
type: 'uint96',
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
internalType: 'uint96',
|
|
787
|
-
name: 'feesLoss',
|
|
788
|
-
type: 'uint96',
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
internalType: 'uint96',
|
|
792
|
-
name: 'principalRecovered',
|
|
793
|
-
type: 'uint96',
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
internalType: 'uint96',
|
|
797
|
-
name: 'yieldRecovered',
|
|
798
|
-
type: 'uint96',
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
internalType: 'uint96',
|
|
802
|
-
name: 'feesRecovered',
|
|
803
|
-
type: 'uint96',
|
|
804
|
-
},
|
|
805
|
-
],
|
|
806
|
-
internalType: 'struct CreditLoss',
|
|
807
|
-
name: 'cl',
|
|
808
|
-
type: 'tuple',
|
|
809
|
-
},
|
|
810
539
|
],
|
|
811
|
-
|
|
812
|
-
outputs: [],
|
|
813
|
-
stateMutability: 'nonpayable',
|
|
540
|
+
stateMutability: 'view',
|
|
814
541
|
type: 'function',
|
|
815
542
|
},
|
|
816
543
|
{
|
|
@@ -873,84 +600,11 @@ const _abi = [
|
|
|
873
600
|
stateMutability: 'nonpayable',
|
|
874
601
|
type: 'function',
|
|
875
602
|
},
|
|
876
|
-
{
|
|
877
|
-
inputs: [
|
|
878
|
-
{
|
|
879
|
-
internalType: 'bytes32',
|
|
880
|
-
name: 'creditHash',
|
|
881
|
-
type: 'bytes32',
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
components: [
|
|
885
|
-
{
|
|
886
|
-
internalType: 'uint64',
|
|
887
|
-
name: 'lateFeeUpdatedDate',
|
|
888
|
-
type: 'uint64',
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
internalType: 'uint96',
|
|
892
|
-
name: 'lateFee',
|
|
893
|
-
type: 'uint96',
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
internalType: 'uint96',
|
|
897
|
-
name: 'principalPastDue',
|
|
898
|
-
type: 'uint96',
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
internalType: 'uint96',
|
|
902
|
-
name: 'yieldPastDue',
|
|
903
|
-
type: 'uint96',
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
internalType: 'uint96',
|
|
907
|
-
name: 'committed',
|
|
908
|
-
type: 'uint96',
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
internalType: 'uint96',
|
|
912
|
-
name: 'accrued',
|
|
913
|
-
type: 'uint96',
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
internalType: 'uint96',
|
|
917
|
-
name: 'paid',
|
|
918
|
-
type: 'uint96',
|
|
919
|
-
},
|
|
920
|
-
],
|
|
921
|
-
internalType: 'struct DueDetail',
|
|
922
|
-
name: 'dd',
|
|
923
|
-
type: 'tuple',
|
|
924
|
-
},
|
|
925
|
-
],
|
|
926
|
-
name: 'setDueDetail',
|
|
927
|
-
outputs: [],
|
|
928
|
-
stateMutability: 'nonpayable',
|
|
929
|
-
type: 'function',
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
inputs: [
|
|
933
|
-
{
|
|
934
|
-
internalType: 'bytes32',
|
|
935
|
-
name: 'creditHash',
|
|
936
|
-
type: 'bytes32',
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
internalType: 'uint256',
|
|
940
|
-
name: 'maturityDate',
|
|
941
|
-
type: 'uint256',
|
|
942
|
-
},
|
|
943
|
-
],
|
|
944
|
-
name: 'setMaturityDate',
|
|
945
|
-
outputs: [],
|
|
946
|
-
stateMutability: 'nonpayable',
|
|
947
|
-
type: 'function',
|
|
948
|
-
},
|
|
949
603
|
{
|
|
950
604
|
inputs: [
|
|
951
605
|
{
|
|
952
606
|
internalType: 'contract PoolConfig',
|
|
953
|
-
name: '
|
|
607
|
+
name: 'poolConfig_',
|
|
954
608
|
type: 'address',
|
|
955
609
|
},
|
|
956
610
|
],
|
|
@@ -966,9 +620,6 @@ const _abi = [
|
|
|
966
620
|
name: 'creditHash',
|
|
967
621
|
type: 'bytes32',
|
|
968
622
|
},
|
|
969
|
-
],
|
|
970
|
-
name: 'updateDueInfo',
|
|
971
|
-
outputs: [
|
|
972
623
|
{
|
|
973
624
|
components: [
|
|
974
625
|
{
|
|
@@ -1059,6 +710,8 @@ const _abi = [
|
|
|
1059
710
|
type: 'tuple',
|
|
1060
711
|
},
|
|
1061
712
|
],
|
|
713
|
+
name: 'updateDueInfo',
|
|
714
|
+
outputs: [],
|
|
1062
715
|
stateMutability: 'nonpayable',
|
|
1063
716
|
type: 'function',
|
|
1064
717
|
},
|
|
@@ -1073,111 +726,12 @@ const _abi = [
|
|
|
1073
726
|
inputs: [
|
|
1074
727
|
{
|
|
1075
728
|
internalType: 'address',
|
|
1076
|
-
name: '
|
|
729
|
+
name: 'newImplementation',
|
|
1077
730
|
type: 'address',
|
|
1078
731
|
},
|
|
1079
|
-
{
|
|
1080
|
-
internalType: 'uint256',
|
|
1081
|
-
name: 'receivableId',
|
|
1082
|
-
type: 'uint256',
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
internalType: 'uint256',
|
|
1086
|
-
name: 'amount',
|
|
1087
|
-
type: 'uint256',
|
|
1088
|
-
},
|
|
1089
|
-
],
|
|
1090
|
-
name: 'drawdownWithReceivable',
|
|
1091
|
-
outputs: [
|
|
1092
|
-
{
|
|
1093
|
-
internalType: 'uint256',
|
|
1094
|
-
name: 'netAmountToBorrower',
|
|
1095
|
-
type: 'uint256',
|
|
1096
|
-
},
|
|
1097
|
-
],
|
|
1098
|
-
stateMutability: 'nonpayable',
|
|
1099
|
-
type: 'function',
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
inputs: [
|
|
1103
|
-
{
|
|
1104
|
-
internalType: 'address',
|
|
1105
|
-
name: 'borrower',
|
|
1106
|
-
type: 'address',
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
internalType: 'uint256',
|
|
1110
|
-
name: 'receivableId',
|
|
1111
|
-
type: 'uint256',
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
internalType: 'uint256',
|
|
1115
|
-
name: 'amount',
|
|
1116
|
-
type: 'uint256',
|
|
1117
|
-
},
|
|
1118
|
-
],
|
|
1119
|
-
name: 'makePaymentWithReceivable',
|
|
1120
|
-
outputs: [
|
|
1121
|
-
{
|
|
1122
|
-
internalType: 'uint256',
|
|
1123
|
-
name: 'amountPaid',
|
|
1124
|
-
type: 'uint256',
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
internalType: 'bool',
|
|
1128
|
-
name: 'paidoff',
|
|
1129
|
-
type: 'bool',
|
|
1130
|
-
},
|
|
1131
|
-
],
|
|
1132
|
-
stateMutability: 'nonpayable',
|
|
1133
|
-
type: 'function',
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
inputs: [
|
|
1137
|
-
{
|
|
1138
|
-
internalType: 'address',
|
|
1139
|
-
name: 'borrower',
|
|
1140
|
-
type: 'address',
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
internalType: 'uint256',
|
|
1144
|
-
name: 'paymentReceivableId',
|
|
1145
|
-
type: 'uint256',
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
internalType: 'uint256',
|
|
1149
|
-
name: 'paymentAmount',
|
|
1150
|
-
type: 'uint256',
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
internalType: 'uint256',
|
|
1154
|
-
name: 'drawdownReceivableId',
|
|
1155
|
-
type: 'uint256',
|
|
1156
|
-
},
|
|
1157
|
-
{
|
|
1158
|
-
internalType: 'uint256',
|
|
1159
|
-
name: 'drawdownAmount',
|
|
1160
|
-
type: 'uint256',
|
|
1161
|
-
},
|
|
1162
|
-
],
|
|
1163
|
-
name: 'makePrincipalPaymentAndDrawdownWithReceivable',
|
|
1164
|
-
outputs: [
|
|
1165
|
-
{
|
|
1166
|
-
internalType: 'uint256',
|
|
1167
|
-
name: 'amountPaid',
|
|
1168
|
-
type: 'uint256',
|
|
1169
|
-
},
|
|
1170
|
-
{
|
|
1171
|
-
internalType: 'uint256',
|
|
1172
|
-
name: 'netAmountToBorrower',
|
|
1173
|
-
type: 'uint256',
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
internalType: 'bool',
|
|
1177
|
-
name: 'paidoff',
|
|
1178
|
-
type: 'bool',
|
|
1179
|
-
},
|
|
1180
732
|
],
|
|
733
|
+
name: 'upgradeTo',
|
|
734
|
+
outputs: [],
|
|
1181
735
|
stateMutability: 'nonpayable',
|
|
1182
736
|
type: 'function',
|
|
1183
737
|
},
|
|
@@ -1185,19 +739,18 @@ const _abi = [
|
|
|
1185
739
|
inputs: [
|
|
1186
740
|
{
|
|
1187
741
|
internalType: 'address',
|
|
1188
|
-
name: '
|
|
742
|
+
name: 'newImplementation',
|
|
1189
743
|
type: 'address',
|
|
1190
744
|
},
|
|
1191
|
-
],
|
|
1192
|
-
name: 'getNextBillRefreshDate',
|
|
1193
|
-
outputs: [
|
|
1194
745
|
{
|
|
1195
|
-
internalType: '
|
|
1196
|
-
name: '
|
|
1197
|
-
type: '
|
|
746
|
+
internalType: 'bytes',
|
|
747
|
+
name: 'data',
|
|
748
|
+
type: 'bytes',
|
|
1198
749
|
},
|
|
1199
750
|
],
|
|
1200
|
-
|
|
751
|
+
name: 'upgradeToAndCall',
|
|
752
|
+
outputs: [],
|
|
753
|
+
stateMutability: 'payable',
|
|
1201
754
|
type: 'function',
|
|
1202
755
|
},
|
|
1203
756
|
];
|