@huma-finance/shared 0.0.30 → 0.0.32

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 (259) hide show
  1. package/dist/abis/BaseCreditPool.json +1179 -1179
  2. package/dist/abis/BaseFeeManager.json +480 -480
  3. package/dist/abis/BasePoolConfig.json +1364 -1364
  4. package/dist/abis/ERC20TransferableReceivable.json +648 -648
  5. package/dist/abis/HDT.json +512 -512
  6. package/dist/abis/IConstantFlowAgreementV1.json +890 -890
  7. package/dist/abis/ISuperfluid.json +1122 -1122
  8. package/dist/abis/InvoiceNFT.json +625 -625
  9. package/dist/abis/Multisend.json +26 -26
  10. package/dist/abis/RealWorldReceivable.json +823 -823
  11. package/dist/abis/ReceivableFactoringPool.json +1529 -1529
  12. package/dist/abis/StreamFactoringPool.json +1523 -1523
  13. package/dist/abis/StreamFeeManager.json +522 -522
  14. package/dist/abis/SuperfluidPoolProcessor.json +692 -692
  15. package/dist/abis/TestERC20.json +358 -358
  16. package/dist/abis/TradableStream.json +850 -850
  17. package/dist/abis/Transfer.json +24 -24
  18. package/dist/abis/TransferNFT.json +27 -27
  19. package/dist/abis/erc20.json +117 -117
  20. package/dist/abis/erc2612.json +132 -132
  21. package/dist/abis/erc721.json +673 -673
  22. package/dist/abis/index.d.ts +3 -3
  23. package/dist/abis/index.js +3 -3
  24. package/dist/abis/types/BaseCreditPool.d.ts +803 -803
  25. package/dist/abis/types/BaseCreditPool.js +1 -1
  26. package/dist/abis/types/BaseFeeManager.d.ts +408 -408
  27. package/dist/abis/types/BaseFeeManager.js +1 -1
  28. package/dist/abis/types/BasePoolConfig.d.ts +1097 -1097
  29. package/dist/abis/types/BasePoolConfig.js +1 -1
  30. package/dist/abis/types/ERC20TransferableReceivable.d.ts +407 -407
  31. package/dist/abis/types/ERC20TransferableReceivable.js +1 -1
  32. package/dist/abis/types/Erc20.d.ts +168 -168
  33. package/dist/abis/types/Erc20.js +1 -1
  34. package/dist/abis/types/Erc2612.d.ts +192 -192
  35. package/dist/abis/types/Erc2612.js +1 -1
  36. package/dist/abis/types/Erc721.d.ts +474 -474
  37. package/dist/abis/types/Erc721.js +1 -1
  38. package/dist/abis/types/HDT.d.ts +369 -369
  39. package/dist/abis/types/HDT.js +1 -1
  40. package/dist/abis/types/IConstantFlowAgreementV1.d.ts +573 -573
  41. package/dist/abis/types/IConstantFlowAgreementV1.js +1 -1
  42. package/dist/abis/types/ISuperfluid.d.ts +728 -728
  43. package/dist/abis/types/ISuperfluid.js +1 -1
  44. package/dist/abis/types/InvoiceNFT.d.ts +425 -425
  45. package/dist/abis/types/InvoiceNFT.js +1 -1
  46. package/dist/abis/types/Multisend.d.ts +50 -50
  47. package/dist/abis/types/Multisend.js +1 -1
  48. package/dist/abis/types/RealWorldReceivable.d.ts +564 -564
  49. package/dist/abis/types/RealWorldReceivable.js +1 -1
  50. package/dist/abis/types/ReceivableFactoringPool.d.ts +999 -999
  51. package/dist/abis/types/ReceivableFactoringPool.js +1 -1
  52. package/dist/abis/types/StreamFactoringPool.d.ts +985 -985
  53. package/dist/abis/types/StreamFactoringPool.js +1 -1
  54. package/dist/abis/types/StreamFeeManager.d.ts +440 -440
  55. package/dist/abis/types/StreamFeeManager.js +1 -1
  56. package/dist/abis/types/SuperfluidPoolProcessor.d.ts +398 -398
  57. package/dist/abis/types/SuperfluidPoolProcessor.js +1 -1
  58. package/dist/abis/types/TestERC20.d.ts +270 -270
  59. package/dist/abis/types/TestERC20.js +1 -1
  60. package/dist/abis/types/TradableStream.d.ts +607 -607
  61. package/dist/abis/types/TradableStream.js +1 -1
  62. package/dist/abis/types/Transfer.d.ts +45 -45
  63. package/dist/abis/types/Transfer.js +1 -1
  64. package/dist/abis/types/TransferNFT.d.ts +45 -45
  65. package/dist/abis/types/TransferNFT.js +1 -1
  66. package/dist/abis/types/common.d.ts +22 -22
  67. package/dist/abis/types/common.js +1 -1
  68. package/dist/abis/types/factories/BaseCreditPool__factory.d.ts +931 -931
  69. package/dist/abis/types/factories/BaseCreditPool__factory.js +1193 -1192
  70. package/dist/abis/types/factories/BaseCreditPool__factory.js.map +1 -1
  71. package/dist/abis/types/factories/BaseFeeManager__factory.d.ts +379 -379
  72. package/dist/abis/types/factories/BaseFeeManager__factory.js +494 -493
  73. package/dist/abis/types/factories/BaseFeeManager__factory.js.map +1 -1
  74. package/dist/abis/types/factories/BasePoolConfig__factory.d.ts +1074 -1074
  75. package/dist/abis/types/factories/BasePoolConfig__factory.js +1378 -1377
  76. package/dist/abis/types/factories/BasePoolConfig__factory.js.map +1 -1
  77. package/dist/abis/types/factories/ERC20TransferableReceivable__factory.d.ts +508 -508
  78. package/dist/abis/types/factories/ERC20TransferableReceivable__factory.js +662 -661
  79. package/dist/abis/types/factories/ERC20TransferableReceivable__factory.js.map +1 -1
  80. package/dist/abis/types/factories/Erc20__factory.d.ts +175 -175
  81. package/dist/abis/types/factories/Erc20__factory.js +236 -235
  82. package/dist/abis/types/factories/Erc20__factory.js.map +1 -1
  83. package/dist/abis/types/factories/Erc2612__factory.d.ts +209 -209
  84. package/dist/abis/types/factories/Erc2612__factory.js +279 -278
  85. package/dist/abis/types/factories/Erc2612__factory.js.map +1 -1
  86. package/dist/abis/types/factories/Erc721__factory.d.ts +539 -539
  87. package/dist/abis/types/factories/Erc721__factory.js +687 -686
  88. package/dist/abis/types/factories/Erc721__factory.js.map +1 -1
  89. package/dist/abis/types/factories/HDT__factory.d.ts +399 -399
  90. package/dist/abis/types/factories/HDT__factory.js +526 -525
  91. package/dist/abis/types/factories/HDT__factory.js.map +1 -1
  92. package/dist/abis/types/factories/IConstantFlowAgreementV1__factory.d.ts +695 -695
  93. package/dist/abis/types/factories/IConstantFlowAgreementV1__factory.js +904 -903
  94. package/dist/abis/types/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
  95. package/dist/abis/types/factories/ISuperfluid__factory.d.ts +866 -866
  96. package/dist/abis/types/factories/ISuperfluid__factory.js +1136 -1135
  97. package/dist/abis/types/factories/ISuperfluid__factory.js.map +1 -1
  98. package/dist/abis/types/factories/InvoiceNFT__factory.d.ts +489 -489
  99. package/dist/abis/types/factories/InvoiceNFT__factory.js +639 -638
  100. package/dist/abis/types/factories/InvoiceNFT__factory.js.map +1 -1
  101. package/dist/abis/types/factories/Multisend__factory.d.ts +26 -26
  102. package/dist/abis/types/factories/Multisend__factory.js +40 -39
  103. package/dist/abis/types/factories/Multisend__factory.js.map +1 -1
  104. package/dist/abis/types/factories/RealWorldReceivable__factory.d.ts +645 -645
  105. package/dist/abis/types/factories/RealWorldReceivable__factory.js +837 -836
  106. package/dist/abis/types/factories/RealWorldReceivable__factory.js.map +1 -1
  107. package/dist/abis/types/factories/ReceivableFactoringPool__factory.d.ts +1204 -1204
  108. package/dist/abis/types/factories/ReceivableFactoringPool__factory.js +1543 -1542
  109. package/dist/abis/types/factories/ReceivableFactoringPool__factory.js.map +1 -1
  110. package/dist/abis/types/factories/StreamFactoringPool__factory.d.ts +1200 -1200
  111. package/dist/abis/types/factories/StreamFactoringPool__factory.js +1537 -1536
  112. package/dist/abis/types/factories/StreamFactoringPool__factory.js.map +1 -1
  113. package/dist/abis/types/factories/StreamFeeManager__factory.d.ts +412 -412
  114. package/dist/abis/types/factories/StreamFeeManager__factory.js +536 -535
  115. package/dist/abis/types/factories/StreamFeeManager__factory.js.map +1 -1
  116. package/dist/abis/types/factories/SuperfluidPoolProcessor__factory.d.ts +546 -546
  117. package/dist/abis/types/factories/SuperfluidPoolProcessor__factory.js +706 -705
  118. package/dist/abis/types/factories/SuperfluidPoolProcessor__factory.js.map +1 -1
  119. package/dist/abis/types/factories/TestERC20__factory.d.ts +280 -280
  120. package/dist/abis/types/factories/TestERC20__factory.js +372 -371
  121. package/dist/abis/types/factories/TestERC20__factory.js.map +1 -1
  122. package/dist/abis/types/factories/TradableStream__factory.d.ts +663 -663
  123. package/dist/abis/types/factories/TradableStream__factory.js +864 -863
  124. package/dist/abis/types/factories/TradableStream__factory.js.map +1 -1
  125. package/dist/abis/types/factories/TransferNFT__factory.d.ts +28 -28
  126. package/dist/abis/types/factories/TransferNFT__factory.js +41 -40
  127. package/dist/abis/types/factories/TransferNFT__factory.js.map +1 -1
  128. package/dist/abis/types/factories/Transfer__factory.d.ts +25 -25
  129. package/dist/abis/types/factories/Transfer__factory.js +38 -37
  130. package/dist/abis/types/factories/Transfer__factory.js.map +1 -1
  131. package/dist/abis/types/factories/index.d.ts +21 -21
  132. package/dist/abis/types/factories/index.js +24 -24
  133. package/dist/abis/types/index.d.ts +43 -43
  134. package/dist/abis/types/index.js +22 -22
  135. package/dist/cjs/hooks/web3/index.js +2 -2
  136. package/dist/cjs/hooks/web3/index.js.map +1 -1
  137. package/dist/cjs/services/IdentityService.d.ts +17 -0
  138. package/dist/cjs/services/IdentityService.js +31 -4
  139. package/dist/cjs/services/IdentityService.js.map +1 -1
  140. package/dist/cjs/utils/chain.d.ts +3 -1
  141. package/dist/cjs/utils/chain.js +9 -1
  142. package/dist/cjs/utils/chain.js.map +1 -1
  143. package/dist/cjs/utils/config.d.ts +1 -0
  144. package/dist/cjs/utils/config.js +10 -1
  145. package/dist/cjs/utils/config.js.map +1 -1
  146. package/dist/cjs/utils/index.d.ts +2 -0
  147. package/dist/cjs/utils/index.js +2 -0
  148. package/dist/cjs/utils/index.js.map +1 -1
  149. package/dist/cjs/utils/notifi.d.ts +3 -0
  150. package/dist/cjs/utils/notifi.js +40 -0
  151. package/dist/cjs/utils/notifi.js.map +1 -0
  152. package/dist/cjs/utils/number.js +7 -1
  153. package/dist/cjs/utils/number.js.map +1 -1
  154. package/dist/cjs/utils/pool.d.ts +1 -0
  155. package/dist/cjs/utils/pool.js +9 -6
  156. package/dist/cjs/utils/pool.js.map +1 -1
  157. package/dist/cjs/utils/realWorldReceivable.d.ts +12 -0
  158. package/dist/cjs/utils/realWorldReceivable.js +3 -0
  159. package/dist/cjs/utils/realWorldReceivable.js.map +1 -0
  160. package/dist/hooks/index.d.ts +18 -18
  161. package/dist/hooks/index.js +18 -18
  162. package/dist/hooks/useActiveRoute.d.ts +8 -8
  163. package/dist/hooks/useActiveRoute.js +7 -7
  164. package/dist/hooks/useAsyncError.d.ts +14 -14
  165. package/dist/hooks/useAsyncError.js +22 -22
  166. package/dist/hooks/useCLPoolContract.d.ts +27 -27
  167. package/dist/hooks/useContract.d.ts +7 -7
  168. package/dist/hooks/useContractFunction.d.ts +18 -18
  169. package/dist/hooks/useContractFunction.js +54 -54
  170. package/dist/hooks/useERC2612Permit/ethPermit/index.d.ts +35 -35
  171. package/dist/hooks/useERC2612Permit/ethPermit/index.js +139 -139
  172. package/dist/hooks/useERC2612Permit/ethPermit/lib.d.ts +1 -1
  173. package/dist/hooks/useERC2612Permit/ethPermit/lib.js +21 -21
  174. package/dist/hooks/useERC2612Permit/ethPermit/rpc.d.ts +10 -10
  175. package/dist/hooks/useERC2612Permit/ethPermit/rpc.js +96 -96
  176. package/dist/hooks/useERC2612Permit/index.d.ts +6 -6
  177. package/dist/hooks/useERC2612Permit/index.js +31 -31
  178. package/dist/hooks/useFactoring.d.ts +19 -19
  179. package/dist/hooks/useForceRefresh.d.ts +1 -1
  180. package/dist/hooks/useForceRefresh.js +8 -8
  181. package/dist/hooks/useGetSizes.d.ts +12 -12
  182. package/dist/hooks/useGetSizes.js +19 -19
  183. package/dist/hooks/useInvoiceNFTContract.d.ts +11 -11
  184. package/dist/hooks/useMQ.d.ts +6 -6
  185. package/dist/hooks/useMQ.js +14 -14
  186. package/dist/hooks/useMount.d.ts +2 -2
  187. package/dist/hooks/useMount.js +8 -8
  188. package/dist/hooks/useParamsSearch.d.ts +2 -2
  189. package/dist/hooks/useParamsSearch.js +6 -6
  190. package/dist/hooks/usePool.d.ts +4 -4
  191. package/dist/hooks/usePoolContract.d.ts +73 -73
  192. package/dist/hooks/useRFPoolContract.d.ts +22 -22
  193. package/dist/hooks/useRefresh.d.ts +1 -1
  194. package/dist/hooks/useRefresh.js +47 -47
  195. package/dist/hooks/web3/index.d.ts +15 -15
  196. package/dist/hooks/web3/index.js +2 -2
  197. package/dist/hooks/web3/index.js.map +1 -1
  198. package/dist/hooks/web3/useConnectors.d.ts +17 -17
  199. package/dist/hooks/web3/useConnectors.js +24 -24
  200. package/dist/hooks/web3/useJsonRpcUrlsMap.d.ts +13 -13
  201. package/dist/index.d.ts +5 -5
  202. package/dist/services/EAService.d.ts +153 -153
  203. package/dist/services/IdentityService.d.ts +17 -0
  204. package/dist/services/IdentityService.js +32 -5
  205. package/dist/services/IdentityService.js.map +1 -1
  206. package/dist/services/RNService.d.ts +14 -14
  207. package/dist/services/index.d.ts +3 -3
  208. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  209. package/dist/utils/JsonRpcConnector.d.ts +11 -11
  210. package/dist/utils/JsonRpcConnector.js +38 -38
  211. package/dist/utils/WalletConnect.d.ts +10 -10
  212. package/dist/utils/WalletConnect.js +50 -49
  213. package/dist/utils/WalletConnect.js.map +1 -1
  214. package/dist/utils/chain.d.ts +3 -1
  215. package/dist/utils/chain.js +7 -0
  216. package/dist/utils/chain.js.map +1 -1
  217. package/dist/utils/common.d.ts +4 -4
  218. package/dist/utils/common.js +10 -10
  219. package/dist/utils/config.d.ts +1 -0
  220. package/dist/utils/config.js +10 -1
  221. package/dist/utils/config.js.map +1 -1
  222. package/dist/utils/const.d.ts +2 -2
  223. package/dist/utils/const.js +2 -2
  224. package/dist/utils/contractError.json +73 -73
  225. package/dist/utils/credit.d.ts +21 -21
  226. package/dist/utils/credit.js +35 -35
  227. package/dist/utils/errors.d.ts +26 -26
  228. package/dist/utils/errors.js +39 -39
  229. package/dist/utils/index.d.ts +2 -0
  230. package/dist/utils/index.js +2 -0
  231. package/dist/utils/index.js.map +1 -1
  232. package/dist/utils/jsonRpcEndpoints.d.ts +12 -12
  233. package/dist/utils/notifi.d.ts +3 -0
  234. package/dist/utils/notifi.js +35 -0
  235. package/dist/utils/notifi.js.map +1 -0
  236. package/dist/utils/number.d.ts +5 -5
  237. package/dist/utils/number.js +7 -1
  238. package/dist/utils/number.js.map +1 -1
  239. package/dist/utils/pool.d.ts +1 -0
  240. package/dist/utils/pool.js +9 -6
  241. package/dist/utils/pool.js.map +1 -1
  242. package/dist/utils/realWorldReceivable.d.ts +12 -0
  243. package/dist/utils/realWorldReceivable.js +2 -0
  244. package/dist/utils/realWorldReceivable.js.map +1 -0
  245. package/dist/utils/request.d.ts +3 -3
  246. package/dist/utils/request.js +38 -38
  247. package/dist/utils/scientificToDecimal.d.ts +1 -1
  248. package/dist/utils/scientificToDecimal.js +57 -57
  249. package/dist/utils/string.d.ts +1 -1
  250. package/dist/utils/string.js +1 -1
  251. package/dist/utils/style.d.ts +1 -1
  252. package/dist/utils/style.js +12 -12
  253. package/dist/utils/time.d.ts +26 -26
  254. package/dist/utils/time.js +50 -50
  255. package/dist/utils/transaction.d.ts +32 -32
  256. package/dist/utils/transaction.js +87 -87
  257. package/dist/utils/web3.d.ts +4 -4
  258. package/dist/utils/web3.js +34 -34
  259. package/package.json +3 -3
@@ -1,522 +1,522 @@
1
- [
2
- {
3
- "inputs": [],
4
- "name": "borrowingAmountLessThanPlatformFees",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [],
9
- "name": "minPrincipalPaymentRateSettingTooHigh",
10
- "type": "error"
11
- },
12
- {
13
- "anonymous": false,
14
- "inputs": [
15
- {
16
- "indexed": false,
17
- "internalType": "uint256",
18
- "name": "frontLoandingFeeFlat",
19
- "type": "uint256"
20
- },
21
- {
22
- "indexed": false,
23
- "internalType": "uint256",
24
- "name": "frontLoadingFeeBps",
25
- "type": "uint256"
26
- },
27
- {
28
- "indexed": false,
29
- "internalType": "uint256",
30
- "name": "lateFeeFlat",
31
- "type": "uint256"
32
- },
33
- {
34
- "indexed": false,
35
- "internalType": "uint256",
36
- "name": "lateFeeBps",
37
- "type": "uint256"
38
- },
39
- {
40
- "indexed": false,
41
- "internalType": "uint256",
42
- "name": "membershipFee",
43
- "type": "uint256"
44
- }
45
- ],
46
- "name": "FeeChanged",
47
- "type": "event"
48
- },
49
- {
50
- "anonymous": false,
51
- "inputs": [
52
- {
53
- "indexed": false,
54
- "internalType": "uint256",
55
- "name": "minPrincipalRateInBps",
56
- "type": "uint256"
57
- }
58
- ],
59
- "name": "MinPrincipalRateChanged",
60
- "type": "event"
61
- },
62
- {
63
- "anonymous": false,
64
- "inputs": [
65
- {
66
- "indexed": true,
67
- "internalType": "address",
68
- "name": "previousOwner",
69
- "type": "address"
70
- },
71
- {
72
- "indexed": true,
73
- "internalType": "address",
74
- "name": "newOwner",
75
- "type": "address"
76
- }
77
- ],
78
- "name": "OwnershipTransferred",
79
- "type": "event"
80
- },
81
- {
82
- "inputs": [
83
- {
84
- "internalType": "uint256",
85
- "name": "dueDate",
86
- "type": "uint256"
87
- },
88
- {
89
- "internalType": "uint256",
90
- "name": "aprInBps",
91
- "type": "uint256"
92
- },
93
- {
94
- "internalType": "uint256",
95
- "name": "amount",
96
- "type": "uint256"
97
- }
98
- ],
99
- "name": "calcCorrection",
100
- "outputs": [
101
- {
102
- "internalType": "uint256",
103
- "name": "correction",
104
- "type": "uint256"
105
- }
106
- ],
107
- "stateMutability": "view",
108
- "type": "function"
109
- },
110
- {
111
- "inputs": [
112
- {
113
- "internalType": "uint256",
114
- "name": "_amount",
115
- "type": "uint256"
116
- }
117
- ],
118
- "name": "calcFrontLoadingFee",
119
- "outputs": [
120
- {
121
- "internalType": "uint256",
122
- "name": "fees",
123
- "type": "uint256"
124
- }
125
- ],
126
- "stateMutability": "view",
127
- "type": "function"
128
- },
129
- {
130
- "inputs": [
131
- {
132
- "internalType": "uint256",
133
- "name": "dueDate",
134
- "type": "uint256"
135
- },
136
- {
137
- "internalType": "uint256",
138
- "name": "totalDue",
139
- "type": "uint256"
140
- },
141
- {
142
- "internalType": "uint256",
143
- "name": "totalBalance",
144
- "type": "uint256"
145
- }
146
- ],
147
- "name": "calcLateFee",
148
- "outputs": [
149
- {
150
- "internalType": "uint256",
151
- "name": "fees",
152
- "type": "uint256"
153
- }
154
- ],
155
- "stateMutability": "view",
156
- "type": "function"
157
- },
158
- {
159
- "inputs": [],
160
- "name": "deleteTempCreditRecordStatic",
161
- "outputs": [],
162
- "stateMutability": "nonpayable",
163
- "type": "function"
164
- },
165
- {
166
- "inputs": [
167
- {
168
- "internalType": "uint256",
169
- "name": "borrowAmount",
170
- "type": "uint256"
171
- }
172
- ],
173
- "name": "distBorrowingAmount",
174
- "outputs": [
175
- {
176
- "internalType": "uint256",
177
- "name": "amtToBorrower",
178
- "type": "uint256"
179
- },
180
- {
181
- "internalType": "uint256",
182
- "name": "platformFees",
183
- "type": "uint256"
184
- }
185
- ],
186
- "stateMutability": "view",
187
- "type": "function"
188
- },
189
- {
190
- "inputs": [],
191
- "name": "frontLoadingFeeBps",
192
- "outputs": [
193
- {
194
- "internalType": "uint256",
195
- "name": "",
196
- "type": "uint256"
197
- }
198
- ],
199
- "stateMutability": "view",
200
- "type": "function"
201
- },
202
- {
203
- "inputs": [],
204
- "name": "frontLoadingFeeFlat",
205
- "outputs": [
206
- {
207
- "internalType": "uint256",
208
- "name": "",
209
- "type": "uint256"
210
- }
211
- ],
212
- "stateMutability": "view",
213
- "type": "function"
214
- },
215
- {
216
- "inputs": [
217
- {
218
- "components": [
219
- {
220
- "internalType": "uint96",
221
- "name": "unbilledPrincipal",
222
- "type": "uint96"
223
- },
224
- {
225
- "internalType": "uint64",
226
- "name": "dueDate",
227
- "type": "uint64"
228
- },
229
- {
230
- "internalType": "int96",
231
- "name": "correction",
232
- "type": "int96"
233
- },
234
- {
235
- "internalType": "uint96",
236
- "name": "totalDue",
237
- "type": "uint96"
238
- },
239
- {
240
- "internalType": "uint96",
241
- "name": "feesAndInterestDue",
242
- "type": "uint96"
243
- },
244
- {
245
- "internalType": "uint16",
246
- "name": "missedPeriods",
247
- "type": "uint16"
248
- },
249
- {
250
- "internalType": "uint16",
251
- "name": "remainingPeriods",
252
- "type": "uint16"
253
- },
254
- {
255
- "internalType": "enum BaseStructs.CreditState",
256
- "name": "state",
257
- "type": "uint8"
258
- }
259
- ],
260
- "internalType": "struct BaseStructs.CreditRecord",
261
- "name": "_cr",
262
- "type": "tuple"
263
- },
264
- {
265
- "components": [
266
- {
267
- "internalType": "uint96",
268
- "name": "creditLimit",
269
- "type": "uint96"
270
- },
271
- {
272
- "internalType": "uint16",
273
- "name": "aprInBps",
274
- "type": "uint16"
275
- },
276
- {
277
- "internalType": "uint16",
278
- "name": "intervalInDays",
279
- "type": "uint16"
280
- },
281
- {
282
- "internalType": "uint96",
283
- "name": "defaultAmount",
284
- "type": "uint96"
285
- }
286
- ],
287
- "internalType": "struct BaseStructs.CreditRecordStatic",
288
- "name": "_crStatic",
289
- "type": "tuple"
290
- }
291
- ],
292
- "name": "getDueInfo",
293
- "outputs": [
294
- {
295
- "internalType": "uint256",
296
- "name": "periodsPassed",
297
- "type": "uint256"
298
- },
299
- {
300
- "internalType": "uint96",
301
- "name": "feesAndInterestDue",
302
- "type": "uint96"
303
- },
304
- {
305
- "internalType": "uint96",
306
- "name": "totalDue",
307
- "type": "uint96"
308
- },
309
- {
310
- "internalType": "uint96",
311
- "name": "unbilledPrincipal",
312
- "type": "uint96"
313
- },
314
- {
315
- "internalType": "int96",
316
- "name": "totalCharges",
317
- "type": "int96"
318
- }
319
- ],
320
- "stateMutability": "view",
321
- "type": "function"
322
- },
323
- {
324
- "inputs": [],
325
- "name": "getFees",
326
- "outputs": [
327
- {
328
- "internalType": "uint256",
329
- "name": "_frontLoadingFeeFlat",
330
- "type": "uint256"
331
- },
332
- {
333
- "internalType": "uint256",
334
- "name": "_frontLoadingFeeBps",
335
- "type": "uint256"
336
- },
337
- {
338
- "internalType": "uint256",
339
- "name": "_lateFeeFlat",
340
- "type": "uint256"
341
- },
342
- {
343
- "internalType": "uint256",
344
- "name": "_lateFeeBps",
345
- "type": "uint256"
346
- },
347
- {
348
- "internalType": "uint256",
349
- "name": "_membershipFee",
350
- "type": "uint256"
351
- }
352
- ],
353
- "stateMutability": "view",
354
- "type": "function"
355
- },
356
- {
357
- "inputs": [],
358
- "name": "lateFeeBps",
359
- "outputs": [
360
- {
361
- "internalType": "uint256",
362
- "name": "",
363
- "type": "uint256"
364
- }
365
- ],
366
- "stateMutability": "view",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [],
371
- "name": "lateFeeFlat",
372
- "outputs": [
373
- {
374
- "internalType": "uint256",
375
- "name": "",
376
- "type": "uint256"
377
- }
378
- ],
379
- "stateMutability": "view",
380
- "type": "function"
381
- },
382
- {
383
- "inputs": [],
384
- "name": "membershipFee",
385
- "outputs": [
386
- {
387
- "internalType": "uint256",
388
- "name": "",
389
- "type": "uint256"
390
- }
391
- ],
392
- "stateMutability": "view",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [],
397
- "name": "minPrincipalRateInBps",
398
- "outputs": [
399
- {
400
- "internalType": "uint256",
401
- "name": "",
402
- "type": "uint256"
403
- }
404
- ],
405
- "stateMutability": "view",
406
- "type": "function"
407
- },
408
- {
409
- "inputs": [],
410
- "name": "owner",
411
- "outputs": [
412
- {
413
- "internalType": "address",
414
- "name": "",
415
- "type": "address"
416
- }
417
- ],
418
- "stateMutability": "view",
419
- "type": "function"
420
- },
421
- {
422
- "inputs": [],
423
- "name": "renounceOwnership",
424
- "outputs": [],
425
- "stateMutability": "nonpayable",
426
- "type": "function"
427
- },
428
- {
429
- "inputs": [
430
- {
431
- "internalType": "uint256",
432
- "name": "_frontLoadingFeeFlat",
433
- "type": "uint256"
434
- },
435
- {
436
- "internalType": "uint256",
437
- "name": "_frontLoadingFeeBps",
438
- "type": "uint256"
439
- },
440
- {
441
- "internalType": "uint256",
442
- "name": "_lateFeeFlat",
443
- "type": "uint256"
444
- },
445
- {
446
- "internalType": "uint256",
447
- "name": "_lateFeeBps",
448
- "type": "uint256"
449
- },
450
- {
451
- "internalType": "uint256",
452
- "name": "_membershipFee",
453
- "type": "uint256"
454
- }
455
- ],
456
- "name": "setFees",
457
- "outputs": [],
458
- "stateMutability": "nonpayable",
459
- "type": "function"
460
- },
461
- {
462
- "inputs": [
463
- {
464
- "internalType": "uint256",
465
- "name": "_minPrincipalRateInBps",
466
- "type": "uint256"
467
- }
468
- ],
469
- "name": "setMinPrincipalRateInBps",
470
- "outputs": [],
471
- "stateMutability": "nonpayable",
472
- "type": "function"
473
- },
474
- {
475
- "inputs": [
476
- {
477
- "components": [
478
- {
479
- "internalType": "uint96",
480
- "name": "creditLimit",
481
- "type": "uint96"
482
- },
483
- {
484
- "internalType": "uint16",
485
- "name": "aprInBps",
486
- "type": "uint16"
487
- },
488
- {
489
- "internalType": "uint16",
490
- "name": "intervalInDays",
491
- "type": "uint16"
492
- },
493
- {
494
- "internalType": "uint96",
495
- "name": "defaultAmount",
496
- "type": "uint96"
497
- }
498
- ],
499
- "internalType": "struct BaseStructs.CreditRecordStatic",
500
- "name": "_crStatic",
501
- "type": "tuple"
502
- }
503
- ],
504
- "name": "setTempCreditRecordStatic",
505
- "outputs": [],
506
- "stateMutability": "nonpayable",
507
- "type": "function"
508
- },
509
- {
510
- "inputs": [
511
- {
512
- "internalType": "address",
513
- "name": "newOwner",
514
- "type": "address"
515
- }
516
- ],
517
- "name": "transferOwnership",
518
- "outputs": [],
519
- "stateMutability": "nonpayable",
520
- "type": "function"
521
- }
522
- ]
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "borrowingAmountLessThanPlatformFees",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "minPrincipalPaymentRateSettingTooHigh",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "anonymous": false,
14
+ "inputs": [
15
+ {
16
+ "indexed": false,
17
+ "internalType": "uint256",
18
+ "name": "frontLoandingFeeFlat",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "indexed": false,
23
+ "internalType": "uint256",
24
+ "name": "frontLoadingFeeBps",
25
+ "type": "uint256"
26
+ },
27
+ {
28
+ "indexed": false,
29
+ "internalType": "uint256",
30
+ "name": "lateFeeFlat",
31
+ "type": "uint256"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "uint256",
36
+ "name": "lateFeeBps",
37
+ "type": "uint256"
38
+ },
39
+ {
40
+ "indexed": false,
41
+ "internalType": "uint256",
42
+ "name": "membershipFee",
43
+ "type": "uint256"
44
+ }
45
+ ],
46
+ "name": "FeeChanged",
47
+ "type": "event"
48
+ },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": false,
54
+ "internalType": "uint256",
55
+ "name": "minPrincipalRateInBps",
56
+ "type": "uint256"
57
+ }
58
+ ],
59
+ "name": "MinPrincipalRateChanged",
60
+ "type": "event"
61
+ },
62
+ {
63
+ "anonymous": false,
64
+ "inputs": [
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "previousOwner",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "newOwner",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "OwnershipTransferred",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "dueDate",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "aprInBps",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "amount",
96
+ "type": "uint256"
97
+ }
98
+ ],
99
+ "name": "calcCorrection",
100
+ "outputs": [
101
+ {
102
+ "internalType": "uint256",
103
+ "name": "correction",
104
+ "type": "uint256"
105
+ }
106
+ ],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "_amount",
115
+ "type": "uint256"
116
+ }
117
+ ],
118
+ "name": "calcFrontLoadingFee",
119
+ "outputs": [
120
+ {
121
+ "internalType": "uint256",
122
+ "name": "fees",
123
+ "type": "uint256"
124
+ }
125
+ ],
126
+ "stateMutability": "view",
127
+ "type": "function"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "dueDate",
134
+ "type": "uint256"
135
+ },
136
+ {
137
+ "internalType": "uint256",
138
+ "name": "totalDue",
139
+ "type": "uint256"
140
+ },
141
+ {
142
+ "internalType": "uint256",
143
+ "name": "totalBalance",
144
+ "type": "uint256"
145
+ }
146
+ ],
147
+ "name": "calcLateFee",
148
+ "outputs": [
149
+ {
150
+ "internalType": "uint256",
151
+ "name": "fees",
152
+ "type": "uint256"
153
+ }
154
+ ],
155
+ "stateMutability": "view",
156
+ "type": "function"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "deleteTempCreditRecordStatic",
161
+ "outputs": [],
162
+ "stateMutability": "nonpayable",
163
+ "type": "function"
164
+ },
165
+ {
166
+ "inputs": [
167
+ {
168
+ "internalType": "uint256",
169
+ "name": "borrowAmount",
170
+ "type": "uint256"
171
+ }
172
+ ],
173
+ "name": "distBorrowingAmount",
174
+ "outputs": [
175
+ {
176
+ "internalType": "uint256",
177
+ "name": "amtToBorrower",
178
+ "type": "uint256"
179
+ },
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "platformFees",
183
+ "type": "uint256"
184
+ }
185
+ ],
186
+ "stateMutability": "view",
187
+ "type": "function"
188
+ },
189
+ {
190
+ "inputs": [],
191
+ "name": "frontLoadingFeeBps",
192
+ "outputs": [
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "stateMutability": "view",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [],
204
+ "name": "frontLoadingFeeFlat",
205
+ "outputs": [
206
+ {
207
+ "internalType": "uint256",
208
+ "name": "",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "components": [
219
+ {
220
+ "internalType": "uint96",
221
+ "name": "unbilledPrincipal",
222
+ "type": "uint96"
223
+ },
224
+ {
225
+ "internalType": "uint64",
226
+ "name": "dueDate",
227
+ "type": "uint64"
228
+ },
229
+ {
230
+ "internalType": "int96",
231
+ "name": "correction",
232
+ "type": "int96"
233
+ },
234
+ {
235
+ "internalType": "uint96",
236
+ "name": "totalDue",
237
+ "type": "uint96"
238
+ },
239
+ {
240
+ "internalType": "uint96",
241
+ "name": "feesAndInterestDue",
242
+ "type": "uint96"
243
+ },
244
+ {
245
+ "internalType": "uint16",
246
+ "name": "missedPeriods",
247
+ "type": "uint16"
248
+ },
249
+ {
250
+ "internalType": "uint16",
251
+ "name": "remainingPeriods",
252
+ "type": "uint16"
253
+ },
254
+ {
255
+ "internalType": "enum BaseStructs.CreditState",
256
+ "name": "state",
257
+ "type": "uint8"
258
+ }
259
+ ],
260
+ "internalType": "struct BaseStructs.CreditRecord",
261
+ "name": "_cr",
262
+ "type": "tuple"
263
+ },
264
+ {
265
+ "components": [
266
+ {
267
+ "internalType": "uint96",
268
+ "name": "creditLimit",
269
+ "type": "uint96"
270
+ },
271
+ {
272
+ "internalType": "uint16",
273
+ "name": "aprInBps",
274
+ "type": "uint16"
275
+ },
276
+ {
277
+ "internalType": "uint16",
278
+ "name": "intervalInDays",
279
+ "type": "uint16"
280
+ },
281
+ {
282
+ "internalType": "uint96",
283
+ "name": "defaultAmount",
284
+ "type": "uint96"
285
+ }
286
+ ],
287
+ "internalType": "struct BaseStructs.CreditRecordStatic",
288
+ "name": "_crStatic",
289
+ "type": "tuple"
290
+ }
291
+ ],
292
+ "name": "getDueInfo",
293
+ "outputs": [
294
+ {
295
+ "internalType": "uint256",
296
+ "name": "periodsPassed",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "internalType": "uint96",
301
+ "name": "feesAndInterestDue",
302
+ "type": "uint96"
303
+ },
304
+ {
305
+ "internalType": "uint96",
306
+ "name": "totalDue",
307
+ "type": "uint96"
308
+ },
309
+ {
310
+ "internalType": "uint96",
311
+ "name": "unbilledPrincipal",
312
+ "type": "uint96"
313
+ },
314
+ {
315
+ "internalType": "int96",
316
+ "name": "totalCharges",
317
+ "type": "int96"
318
+ }
319
+ ],
320
+ "stateMutability": "view",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [],
325
+ "name": "getFees",
326
+ "outputs": [
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "_frontLoadingFeeFlat",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "internalType": "uint256",
334
+ "name": "_frontLoadingFeeBps",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "internalType": "uint256",
339
+ "name": "_lateFeeFlat",
340
+ "type": "uint256"
341
+ },
342
+ {
343
+ "internalType": "uint256",
344
+ "name": "_lateFeeBps",
345
+ "type": "uint256"
346
+ },
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "_membershipFee",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "lateFeeBps",
359
+ "outputs": [
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "stateMutability": "view",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [],
371
+ "name": "lateFeeFlat",
372
+ "outputs": [
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "",
376
+ "type": "uint256"
377
+ }
378
+ ],
379
+ "stateMutability": "view",
380
+ "type": "function"
381
+ },
382
+ {
383
+ "inputs": [],
384
+ "name": "membershipFee",
385
+ "outputs": [
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "",
389
+ "type": "uint256"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "minPrincipalRateInBps",
398
+ "outputs": [
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "",
402
+ "type": "uint256"
403
+ }
404
+ ],
405
+ "stateMutability": "view",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [],
410
+ "name": "owner",
411
+ "outputs": [
412
+ {
413
+ "internalType": "address",
414
+ "name": "",
415
+ "type": "address"
416
+ }
417
+ ],
418
+ "stateMutability": "view",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "inputs": [],
423
+ "name": "renounceOwnership",
424
+ "outputs": [],
425
+ "stateMutability": "nonpayable",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "inputs": [
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "_frontLoadingFeeFlat",
433
+ "type": "uint256"
434
+ },
435
+ {
436
+ "internalType": "uint256",
437
+ "name": "_frontLoadingFeeBps",
438
+ "type": "uint256"
439
+ },
440
+ {
441
+ "internalType": "uint256",
442
+ "name": "_lateFeeFlat",
443
+ "type": "uint256"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "_lateFeeBps",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "_membershipFee",
453
+ "type": "uint256"
454
+ }
455
+ ],
456
+ "name": "setFees",
457
+ "outputs": [],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "internalType": "uint256",
465
+ "name": "_minPrincipalRateInBps",
466
+ "type": "uint256"
467
+ }
468
+ ],
469
+ "name": "setMinPrincipalRateInBps",
470
+ "outputs": [],
471
+ "stateMutability": "nonpayable",
472
+ "type": "function"
473
+ },
474
+ {
475
+ "inputs": [
476
+ {
477
+ "components": [
478
+ {
479
+ "internalType": "uint96",
480
+ "name": "creditLimit",
481
+ "type": "uint96"
482
+ },
483
+ {
484
+ "internalType": "uint16",
485
+ "name": "aprInBps",
486
+ "type": "uint16"
487
+ },
488
+ {
489
+ "internalType": "uint16",
490
+ "name": "intervalInDays",
491
+ "type": "uint16"
492
+ },
493
+ {
494
+ "internalType": "uint96",
495
+ "name": "defaultAmount",
496
+ "type": "uint96"
497
+ }
498
+ ],
499
+ "internalType": "struct BaseStructs.CreditRecordStatic",
500
+ "name": "_crStatic",
501
+ "type": "tuple"
502
+ }
503
+ ],
504
+ "name": "setTempCreditRecordStatic",
505
+ "outputs": [],
506
+ "stateMutability": "nonpayable",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "address",
513
+ "name": "newOwner",
514
+ "type": "address"
515
+ }
516
+ ],
517
+ "name": "transferOwnership",
518
+ "outputs": [],
519
+ "stateMutability": "nonpayable",
520
+ "type": "function"
521
+ }
522
+ ]