@huma-finance/widgets 0.0.31 → 0.0.33

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 (176) hide show
  1. package/.env.example +2 -2
  2. package/.eslintignore +2 -2
  3. package/.eslintrc.js +64 -64
  4. package/.prettierignore +4 -4
  5. package/.prettierrc.js +16 -16
  6. package/API.md +332 -332
  7. package/LICENSE +660 -660
  8. package/README.md +48 -48
  9. package/babel.config.js +15 -15
  10. package/config-overrides.js +9 -9
  11. package/cosmos.config.json +7 -7
  12. package/cypress/e2e/01-invoice-factoring-borrow.test.ts +62 -62
  13. package/cypress/support/e2e.ts +76 -76
  14. package/cypress/support/ethereum.ts +142 -142
  15. package/cypress/tsconfig.json +9 -9
  16. package/cypress/utils/index.ts +54 -54
  17. package/cypress.config.ts +20 -20
  18. package/dist/cjs/index.cjs +1026 -296
  19. package/dist/cjs/index.cjs.map +1 -1
  20. package/dist/index.d.ts +193 -193
  21. package/dist/index.js +1028 -299
  22. package/dist/index.js.map +1 -1
  23. package/jsdoc2md.json +20 -20
  24. package/package.json +4 -4
  25. package/public/index.html +40 -40
  26. package/public/manifest.json +25 -25
  27. package/public/robots.txt +3 -3
  28. package/rollup.config.js +81 -81
  29. package/src/components/Activity.tsx +132 -132
  30. package/src/components/ApolloWrapper.tsx +15 -15
  31. package/src/components/ApproveAllowanceModal.tsx +121 -121
  32. package/src/components/BottomButton.tsx +33 -33
  33. package/src/components/ChainNotSupportedModal.tsx +33 -33
  34. package/src/components/ChooseAmountModal.tsx +322 -322
  35. package/src/components/ConfirmTransferModal.tsx +153 -153
  36. package/src/components/CreditLine/borrow/1-Evaluation.tsx +157 -157
  37. package/src/components/CreditLine/borrow/2-ChooseAmount.tsx +68 -68
  38. package/src/components/CreditLine/borrow/3-Transfer.tsx +44 -44
  39. package/src/components/CreditLine/borrow/4-ApproveAllowance.tsx +29 -29
  40. package/src/components/CreditLine/borrow/5-Success.tsx +38 -30
  41. package/src/components/CreditLine/borrow/6-Notifications.tsx +10 -0
  42. package/src/components/CreditLine/borrow/index.tsx +136 -117
  43. package/src/components/CreditLine/payment/1-ChooseAmount.tsx +67 -67
  44. package/src/components/CreditLine/payment/2-ApproveAllowance.tsx +23 -23
  45. package/src/components/CreditLine/payment/3-Transfer.tsx +34 -34
  46. package/src/components/CreditLine/payment/4-Success.tsx +39 -39
  47. package/src/components/CreditLine/payment/index.tsx +94 -94
  48. package/src/components/ErrorModal.tsx +132 -132
  49. package/src/components/Factoring/FactoredList.tsx +143 -143
  50. package/src/components/Factoring/UpcomingList.tsx +90 -90
  51. package/src/components/Factoring/index.ts +2 -2
  52. package/src/components/HumaLoading.tsx +68 -68
  53. package/src/components/HumaSnackBar.tsx +60 -0
  54. package/src/components/HumaTable.tsx +158 -158
  55. package/src/components/InvoiceFactoring/borrow/1-Evaluation.tsx +49 -49
  56. package/src/components/InvoiceFactoring/borrow/2-ChooseAmount.tsx +88 -88
  57. package/src/components/InvoiceFactoring/borrow/3-ConfirmTransfer.tsx +37 -37
  58. package/src/components/InvoiceFactoring/borrow/4-ApproveNFT.tsx +55 -55
  59. package/src/components/InvoiceFactoring/borrow/5-Transfer.tsx +34 -34
  60. package/src/components/InvoiceFactoring/borrow/6-Success.tsx +20 -20
  61. package/src/components/InvoiceFactoring/borrow/index.tsx +94 -94
  62. package/src/components/InvoiceFactoring/payment/1-ChooseAmount.tsx +67 -67
  63. package/src/components/InvoiceFactoring/payment/2-ApproveAllowance.tsx +23 -23
  64. package/src/components/InvoiceFactoring/payment/3-Transfer.tsx +34 -34
  65. package/src/components/InvoiceFactoring/payment/4-Success.tsx +23 -23
  66. package/src/components/InvoiceFactoring/payment/index.tsx +86 -86
  67. package/src/components/Lend/supply/1-Evaluation/EvaluationEA.tsx +86 -0
  68. package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +287 -0
  69. package/src/components/Lend/supply/1-Evaluation/index.tsx +31 -0
  70. package/src/components/Lend/supply/2-ChooseAmount.tsx +69 -70
  71. package/src/components/Lend/supply/3-ApproveAllowance.tsx +25 -25
  72. package/src/components/Lend/supply/{6-Transfer.tsx → 4-Transfer.tsx} +32 -32
  73. package/src/components/Lend/supply/{7-Success.tsx → 5-Success.tsx} +60 -49
  74. package/src/components/Lend/supply/6-Notifications.tsx +10 -0
  75. package/src/components/Lend/supply/index.tsx +167 -144
  76. package/src/components/Lend/withdraw/1-CheckWithdrawble.tsx +73 -73
  77. package/src/components/Lend/withdraw/2-ChooseAmount.tsx +50 -50
  78. package/src/components/Lend/withdraw/3-Transfer.tsx +32 -32
  79. package/src/components/Lend/withdraw/4-Success.tsx +49 -49
  80. package/src/components/Lend/withdraw/index.tsx +101 -101
  81. package/src/components/LoadingModal.tsx +49 -49
  82. package/src/components/Notifi/NotifiSubscriptionModal.tsx +264 -0
  83. package/src/components/StreamFactoring/borrow/1-Evaluation.tsx +55 -55
  84. package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +127 -127
  85. package/src/components/StreamFactoring/borrow/3-ConfirmTransfer.tsx +42 -42
  86. package/src/components/StreamFactoring/borrow/4-ApproveAllowance.tsx +33 -33
  87. package/src/components/StreamFactoring/borrow/5-Permit.tsx +144 -144
  88. package/src/components/StreamFactoring/borrow/6-Transfer.tsx +37 -37
  89. package/src/components/StreamFactoring/borrow/7-Success.tsx +20 -20
  90. package/src/components/StreamFactoring/borrow/index.tsx +94 -94
  91. package/src/components/StreamFactoring/payment/ChooseAmount.tsx +54 -54
  92. package/src/components/StreamFactoring/payment/Success.tsx +23 -23
  93. package/src/components/StreamFactoring/payment/Transfer.tsx +34 -34
  94. package/src/components/StreamFactoring/payment/index.tsx +66 -66
  95. package/src/components/SuperfluidFactoring/SuperfluidFactoredList.tsx +70 -70
  96. package/src/components/SuperfluidFactoring/SuperfluidUpcomingList.tsx +167 -167
  97. package/src/components/SuperfluidFactoring/index.tsx +85 -85
  98. package/src/components/TxDoneModal.tsx +85 -83
  99. package/src/components/TxSendModal.tsx +59 -59
  100. package/src/components/ViewOnExplorer.tsx +26 -26
  101. package/src/components/WidgetWrapper.tsx +74 -74
  102. package/src/components/WrapperModal.tsx +54 -54
  103. package/src/components/buttons/TableActionButton.tsx +36 -36
  104. package/src/components/buttons/index.ts +1 -1
  105. package/src/components/humaModal/HumaModal.tsx +68 -68
  106. package/src/components/humaModal/HumaModalHeader.tsx +70 -70
  107. package/src/components/humaModal/index.tsx +2 -2
  108. package/src/components/icons/approve-lender.svg +30 -30
  109. package/src/components/icons/auto-payback.svg +40 -40
  110. package/src/components/icons/check-circle.svg +3 -3
  111. package/src/components/icons/check-green.svg +3 -3
  112. package/src/components/icons/check.svg +10 -10
  113. package/src/components/icons/donut.svg +904 -904
  114. package/src/components/icons/ellipse.svg +3 -3
  115. package/src/components/icons/huma-full.svg +22 -22
  116. package/src/components/icons/huma.svg +15 -15
  117. package/src/components/icons/index.tsx +93 -93
  118. package/src/components/icons/loader.svg +229 -229
  119. package/src/components/icons/metamask.svg +31 -31
  120. package/src/components/icons/polygon.svg +16 -16
  121. package/src/components/icons/receipt.svg +3 -3
  122. package/src/components/icons/separator.svg +3 -3
  123. package/src/components/icons/sorry.svg +31 -31
  124. package/src/components/icons/usdc.svg +5 -5
  125. package/src/components/icons/wallet-connect.svg +11 -11
  126. package/src/cosmos/CreditLineBorrow.fixture.tsx +86 -86
  127. package/src/cosmos/CreditLinePayment.fixture.tsx +50 -50
  128. package/src/cosmos/InvoiceFactoringBorrow.fixture.tsx +111 -111
  129. package/src/cosmos/InvoiceFactoringPayment.fixture.tsx +67 -67
  130. package/src/cosmos/LendSupply.fixture.tsx +75 -75
  131. package/src/cosmos/LendWithdraw.fixture.tsx +43 -43
  132. package/src/cosmos/SDKTesting.fixture.tsx +616 -616
  133. package/src/cosmos/SuperfluidFactoringBorrow.fixture.tsx +15 -15
  134. package/src/cosmos/WalletWrapper.tsx +52 -52
  135. package/src/cosmos/abis/InvoiceNFT.json +644 -644
  136. package/src/cosmos/abis/ReceivableFactoringPool.json +1529 -1529
  137. package/src/cosmos/utils/env.ts +6 -6
  138. package/src/cosmos/utils/index.ts +169 -169
  139. package/src/fonts/Recoleta/Recoleta-Black.otf +0 -0
  140. package/src/fonts/Recoleta/Recoleta-Bold.otf +0 -0
  141. package/src/fonts/Recoleta/Recoleta-Light.otf +0 -0
  142. package/src/fonts/Recoleta/Recoleta-Medium.otf +0 -0
  143. package/src/fonts/Recoleta/Recoleta-Regular.otf +0 -0
  144. package/src/fonts/Recoleta/Recoleta-RegularDEMO.otf +0 -0
  145. package/src/fonts/Recoleta/Recoleta-SemiBold.otf +0 -0
  146. package/src/fonts/Recoleta/Recoleta-Thin.otf +0 -0
  147. package/src/hooks/useEA.ts +53 -53
  148. package/src/hooks/useNotifi.ts +71 -0
  149. package/src/hooks/useRedux.ts +6 -6
  150. package/src/index.css +61 -61
  151. package/src/index.tsx +301 -301
  152. package/src/react-app-env.d.ts +1 -1
  153. package/src/reportWebVitals.ts +15 -15
  154. package/src/setupTests.ts +6 -6
  155. package/src/store/index.ts +27 -27
  156. package/src/store/widgets.reducers.ts +120 -120
  157. package/src/store/widgets.selectors.ts +3 -3
  158. package/src/store/widgets.store.ts +55 -54
  159. package/src/theme/breakpoints.ts +10 -10
  160. package/src/theme/components.ts +70 -70
  161. package/src/theme/coreThemeConstants.ts +29 -29
  162. package/src/theme/cssMixins.ts +92 -92
  163. package/src/theme/hooks/useGetSizes.ts +31 -31
  164. package/src/theme/index.ts +24 -24
  165. package/src/theme/palette.ts +150 -150
  166. package/src/theme/shape.ts +7 -7
  167. package/src/theme/theme.types.ts +80 -80
  168. package/src/theme/typography.ts +117 -117
  169. package/src/utilTypes.d.ts +31 -31
  170. package/src/utils/env.ts +10 -10
  171. package/tsconfig.build.json +7 -7
  172. package/tsconfig.json +32 -32
  173. package/webpack.cosmos.js +54 -54
  174. package/src/components/Lend/supply/1-Evaluation.tsx +0 -175
  175. package/src/components/Lend/supply/4-ConfirmTransfer.tsx +0 -104
  176. package/src/components/NotifiSubscriptionModal.tsx +0 -84
@@ -1,644 +1,644 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "tokenAddress",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "anonymous": false,
15
- "inputs": [
16
- {
17
- "indexed": true,
18
- "internalType": "address",
19
- "name": "owner",
20
- "type": "address"
21
- },
22
- {
23
- "indexed": true,
24
- "internalType": "address",
25
- "name": "approved",
26
- "type": "address"
27
- },
28
- {
29
- "indexed": true,
30
- "internalType": "uint256",
31
- "name": "tokenId",
32
- "type": "uint256"
33
- }
34
- ],
35
- "name": "Approval",
36
- "type": "event"
37
- },
38
- {
39
- "anonymous": false,
40
- "inputs": [
41
- {
42
- "indexed": true,
43
- "internalType": "address",
44
- "name": "owner",
45
- "type": "address"
46
- },
47
- {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "operator",
51
- "type": "address"
52
- },
53
- {
54
- "indexed": false,
55
- "internalType": "bool",
56
- "name": "approved",
57
- "type": "bool"
58
- }
59
- ],
60
- "name": "ApprovalForAll",
61
- "type": "event"
62
- },
63
- {
64
- "anonymous": false,
65
- "inputs": [
66
- {
67
- "indexed": false,
68
- "internalType": "address",
69
- "name": "recipient",
70
- "type": "address"
71
- },
72
- {
73
- "indexed": false,
74
- "internalType": "string",
75
- "name": "tokenURI",
76
- "type": "string"
77
- }
78
- ],
79
- "name": "Mint",
80
- "type": "event"
81
- },
82
- {
83
- "anonymous": false,
84
- "inputs": [
85
- {
86
- "indexed": false,
87
- "internalType": "address",
88
- "name": "recipient",
89
- "type": "address"
90
- },
91
- {
92
- "indexed": false,
93
- "internalType": "uint256",
94
- "name": "tokenId",
95
- "type": "uint256"
96
- }
97
- ],
98
- "name": "NFTGenerated",
99
- "type": "event"
100
- },
101
- {
102
- "anonymous": false,
103
- "inputs": [
104
- {
105
- "indexed": true,
106
- "internalType": "address",
107
- "name": "previousOwner",
108
- "type": "address"
109
- },
110
- {
111
- "indexed": true,
112
- "internalType": "address",
113
- "name": "newOwner",
114
- "type": "address"
115
- }
116
- ],
117
- "name": "OwnershipTransferred",
118
- "type": "event"
119
- },
120
- {
121
- "anonymous": false,
122
- "inputs": [
123
- {
124
- "indexed": false,
125
- "internalType": "address",
126
- "name": "sender",
127
- "type": "address"
128
- },
129
- {
130
- "indexed": false,
131
- "internalType": "address",
132
- "name": "recipient",
133
- "type": "address"
134
- },
135
- {
136
- "indexed": false,
137
- "internalType": "address",
138
- "name": "assetAddress",
139
- "type": "address"
140
- },
141
- {
142
- "indexed": false,
143
- "internalType": "uint256",
144
- "name": "amount",
145
- "type": "uint256"
146
- },
147
- {
148
- "indexed": false,
149
- "internalType": "uint256",
150
- "name": "tokenId",
151
- "type": "uint256"
152
- },
153
- {
154
- "indexed": false,
155
- "internalType": "uint256",
156
- "name": "paymentId",
157
- "type": "uint256"
158
- }
159
- ],
160
- "name": "Payment",
161
- "type": "event"
162
- },
163
- {
164
- "anonymous": false,
165
- "inputs": [
166
- {
167
- "indexed": false,
168
- "internalType": "uint256",
169
- "name": "tokenId",
170
- "type": "uint256"
171
- },
172
- {
173
- "indexed": false,
174
- "internalType": "string",
175
- "name": "tokenURI",
176
- "type": "string"
177
- }
178
- ],
179
- "name": "SetURI",
180
- "type": "event"
181
- },
182
- {
183
- "anonymous": false,
184
- "inputs": [
185
- {
186
- "indexed": true,
187
- "internalType": "address",
188
- "name": "from",
189
- "type": "address"
190
- },
191
- {
192
- "indexed": true,
193
- "internalType": "address",
194
- "name": "to",
195
- "type": "address"
196
- },
197
- {
198
- "indexed": true,
199
- "internalType": "uint256",
200
- "name": "tokenId",
201
- "type": "uint256"
202
- }
203
- ],
204
- "name": "Transfer",
205
- "type": "event"
206
- },
207
- {
208
- "inputs": [
209
- {
210
- "internalType": "address",
211
- "name": "to",
212
- "type": "address"
213
- },
214
- {
215
- "internalType": "uint256",
216
- "name": "tokenId",
217
- "type": "uint256"
218
- }
219
- ],
220
- "name": "approve",
221
- "outputs": [],
222
- "stateMutability": "nonpayable",
223
- "type": "function"
224
- },
225
- {
226
- "inputs": [
227
- {
228
- "internalType": "address",
229
- "name": "owner",
230
- "type": "address"
231
- }
232
- ],
233
- "name": "balanceOf",
234
- "outputs": [
235
- {
236
- "internalType": "uint256",
237
- "name": "",
238
- "type": "uint256"
239
- }
240
- ],
241
- "stateMutability": "view",
242
- "type": "function"
243
- },
244
- {
245
- "inputs": [
246
- {
247
- "internalType": "uint256",
248
- "name": "tokenId",
249
- "type": "uint256"
250
- }
251
- ],
252
- "name": "getApproved",
253
- "outputs": [
254
- {
255
- "internalType": "address",
256
- "name": "",
257
- "type": "address"
258
- }
259
- ],
260
- "stateMutability": "view",
261
- "type": "function"
262
- },
263
- {
264
- "inputs": [],
265
- "name": "getCurrentTokenId",
266
- "outputs": [
267
- {
268
- "internalType": "uint256",
269
- "name": "",
270
- "type": "uint256"
271
- }
272
- ],
273
- "stateMutability": "view",
274
- "type": "function"
275
- },
276
- {
277
- "inputs": [
278
- {
279
- "internalType": "address",
280
- "name": "account",
281
- "type": "address"
282
- }
283
- ],
284
- "name": "getNFTIds",
285
- "outputs": [
286
- {
287
- "internalType": "uint256[]",
288
- "name": "",
289
- "type": "uint256[]"
290
- }
291
- ],
292
- "stateMutability": "view",
293
- "type": "function"
294
- },
295
- {
296
- "inputs": [
297
- {
298
- "internalType": "address",
299
- "name": "account",
300
- "type": "address"
301
- }
302
- ],
303
- "name": "getIds",
304
- "outputs": [
305
- {
306
- "internalType": "uint256[]",
307
- "name": "",
308
- "type": "uint256[]"
309
- }
310
- ],
311
- "stateMutability": "view",
312
- "type": "function"
313
- },
314
- {
315
- "inputs": [
316
- {
317
- "internalType": "address",
318
- "name": "account",
319
- "type": "address"
320
- }
321
- ],
322
- "name": "getTokenIds",
323
- "outputs": [
324
- {
325
- "internalType": "uint256[]",
326
- "name": "",
327
- "type": "uint256[]"
328
- }
329
- ],
330
- "stateMutability": "view",
331
- "type": "function"
332
- },
333
- {
334
- "inputs": [
335
- {
336
- "internalType": "uint256",
337
- "name": "tokenId",
338
- "type": "uint256"
339
- }
340
- ],
341
- "name": "getTokenIdIndex",
342
- "outputs": [
343
- {
344
- "internalType": "uint256",
345
- "name": "",
346
- "type": "uint256"
347
- }
348
- ],
349
- "stateMutability": "view",
350
- "type": "function"
351
- },
352
- {
353
- "inputs": [
354
- {
355
- "internalType": "address",
356
- "name": "owner",
357
- "type": "address"
358
- },
359
- {
360
- "internalType": "address",
361
- "name": "operator",
362
- "type": "address"
363
- }
364
- ],
365
- "name": "isApprovedForAll",
366
- "outputs": [
367
- {
368
- "internalType": "bool",
369
- "name": "",
370
- "type": "bool"
371
- }
372
- ],
373
- "stateMutability": "view",
374
- "type": "function"
375
- },
376
- {
377
- "inputs": [
378
- {
379
- "internalType": "address",
380
- "name": "recipient",
381
- "type": "address"
382
- },
383
- {
384
- "internalType": "string",
385
- "name": "tokenURI",
386
- "type": "string"
387
- }
388
- ],
389
- "name": "mintNFT",
390
- "outputs": [
391
- {
392
- "internalType": "uint256",
393
- "name": "",
394
- "type": "uint256"
395
- }
396
- ],
397
- "stateMutability": "nonpayable",
398
- "type": "function"
399
- },
400
- {
401
- "inputs": [],
402
- "name": "name",
403
- "outputs": [
404
- {
405
- "internalType": "string",
406
- "name": "",
407
- "type": "string"
408
- }
409
- ],
410
- "stateMutability": "view",
411
- "type": "function"
412
- },
413
- {
414
- "inputs": [],
415
- "name": "owner",
416
- "outputs": [
417
- {
418
- "internalType": "address",
419
- "name": "",
420
- "type": "address"
421
- }
422
- ],
423
- "stateMutability": "view",
424
- "type": "function"
425
- },
426
- {
427
- "inputs": [
428
- {
429
- "internalType": "uint256",
430
- "name": "tokenId",
431
- "type": "uint256"
432
- }
433
- ],
434
- "name": "ownerOf",
435
- "outputs": [
436
- {
437
- "internalType": "address",
438
- "name": "",
439
- "type": "address"
440
- }
441
- ],
442
- "stateMutability": "view",
443
- "type": "function"
444
- },
445
- {
446
- "inputs": [
447
- {
448
- "internalType": "uint256",
449
- "name": "tokenId",
450
- "type": "uint256"
451
- },
452
- {
453
- "internalType": "uint256",
454
- "name": "amount",
455
- "type": "uint256"
456
- }
457
- ],
458
- "name": "payOwner",
459
- "outputs": [],
460
- "stateMutability": "nonpayable",
461
- "type": "function"
462
- },
463
- {
464
- "inputs": [],
465
- "name": "renounceOwnership",
466
- "outputs": [],
467
- "stateMutability": "nonpayable",
468
- "type": "function"
469
- },
470
- {
471
- "inputs": [
472
- {
473
- "internalType": "address",
474
- "name": "from",
475
- "type": "address"
476
- },
477
- {
478
- "internalType": "address",
479
- "name": "to",
480
- "type": "address"
481
- },
482
- {
483
- "internalType": "uint256",
484
- "name": "tokenId",
485
- "type": "uint256"
486
- }
487
- ],
488
- "name": "safeTransferFrom",
489
- "outputs": [],
490
- "stateMutability": "nonpayable",
491
- "type": "function"
492
- },
493
- {
494
- "inputs": [
495
- {
496
- "internalType": "address",
497
- "name": "from",
498
- "type": "address"
499
- },
500
- {
501
- "internalType": "address",
502
- "name": "to",
503
- "type": "address"
504
- },
505
- {
506
- "internalType": "uint256",
507
- "name": "tokenId",
508
- "type": "uint256"
509
- },
510
- {
511
- "internalType": "bytes",
512
- "name": "data",
513
- "type": "bytes"
514
- }
515
- ],
516
- "name": "safeTransferFrom",
517
- "outputs": [],
518
- "stateMutability": "nonpayable",
519
- "type": "function"
520
- },
521
- {
522
- "inputs": [
523
- {
524
- "internalType": "address",
525
- "name": "operator",
526
- "type": "address"
527
- },
528
- {
529
- "internalType": "bool",
530
- "name": "approved",
531
- "type": "bool"
532
- }
533
- ],
534
- "name": "setApprovalForAll",
535
- "outputs": [],
536
- "stateMutability": "nonpayable",
537
- "type": "function"
538
- },
539
- {
540
- "inputs": [
541
- {
542
- "internalType": "uint256",
543
- "name": "tokenId",
544
- "type": "uint256"
545
- },
546
- {
547
- "internalType": "string",
548
- "name": "uri",
549
- "type": "string"
550
- }
551
- ],
552
- "name": "setTokenURI",
553
- "outputs": [],
554
- "stateMutability": "nonpayable",
555
- "type": "function"
556
- },
557
- {
558
- "inputs": [
559
- {
560
- "internalType": "bytes4",
561
- "name": "interfaceId",
562
- "type": "bytes4"
563
- }
564
- ],
565
- "name": "supportsInterface",
566
- "outputs": [
567
- {
568
- "internalType": "bool",
569
- "name": "",
570
- "type": "bool"
571
- }
572
- ],
573
- "stateMutability": "view",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [],
578
- "name": "symbol",
579
- "outputs": [
580
- {
581
- "internalType": "string",
582
- "name": "",
583
- "type": "string"
584
- }
585
- ],
586
- "stateMutability": "view",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [
591
- {
592
- "internalType": "uint256",
593
- "name": "tokenId",
594
- "type": "uint256"
595
- }
596
- ],
597
- "name": "tokenURI",
598
- "outputs": [
599
- {
600
- "internalType": "string",
601
- "name": "",
602
- "type": "string"
603
- }
604
- ],
605
- "stateMutability": "view",
606
- "type": "function"
607
- },
608
- {
609
- "inputs": [
610
- {
611
- "internalType": "address",
612
- "name": "from",
613
- "type": "address"
614
- },
615
- {
616
- "internalType": "address",
617
- "name": "to",
618
- "type": "address"
619
- },
620
- {
621
- "internalType": "uint256",
622
- "name": "tokenId",
623
- "type": "uint256"
624
- }
625
- ],
626
- "name": "transferFrom",
627
- "outputs": [],
628
- "stateMutability": "nonpayable",
629
- "type": "function"
630
- },
631
- {
632
- "inputs": [
633
- {
634
- "internalType": "address",
635
- "name": "newOwner",
636
- "type": "address"
637
- }
638
- ],
639
- "name": "transferOwnership",
640
- "outputs": [],
641
- "stateMutability": "nonpayable",
642
- "type": "function"
643
- }
644
- ]
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "tokenAddress",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "anonymous": false,
15
+ "inputs": [
16
+ {
17
+ "indexed": true,
18
+ "internalType": "address",
19
+ "name": "owner",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "indexed": true,
24
+ "internalType": "address",
25
+ "name": "approved",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "indexed": true,
30
+ "internalType": "uint256",
31
+ "name": "tokenId",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "Approval",
36
+ "type": "event"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "address",
44
+ "name": "owner",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "operator",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "indexed": false,
55
+ "internalType": "bool",
56
+ "name": "approved",
57
+ "type": "bool"
58
+ }
59
+ ],
60
+ "name": "ApprovalForAll",
61
+ "type": "event"
62
+ },
63
+ {
64
+ "anonymous": false,
65
+ "inputs": [
66
+ {
67
+ "indexed": false,
68
+ "internalType": "address",
69
+ "name": "recipient",
70
+ "type": "address"
71
+ },
72
+ {
73
+ "indexed": false,
74
+ "internalType": "string",
75
+ "name": "tokenURI",
76
+ "type": "string"
77
+ }
78
+ ],
79
+ "name": "Mint",
80
+ "type": "event"
81
+ },
82
+ {
83
+ "anonymous": false,
84
+ "inputs": [
85
+ {
86
+ "indexed": false,
87
+ "internalType": "address",
88
+ "name": "recipient",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "uint256",
94
+ "name": "tokenId",
95
+ "type": "uint256"
96
+ }
97
+ ],
98
+ "name": "NFTGenerated",
99
+ "type": "event"
100
+ },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": true,
106
+ "internalType": "address",
107
+ "name": "previousOwner",
108
+ "type": "address"
109
+ },
110
+ {
111
+ "indexed": true,
112
+ "internalType": "address",
113
+ "name": "newOwner",
114
+ "type": "address"
115
+ }
116
+ ],
117
+ "name": "OwnershipTransferred",
118
+ "type": "event"
119
+ },
120
+ {
121
+ "anonymous": false,
122
+ "inputs": [
123
+ {
124
+ "indexed": false,
125
+ "internalType": "address",
126
+ "name": "sender",
127
+ "type": "address"
128
+ },
129
+ {
130
+ "indexed": false,
131
+ "internalType": "address",
132
+ "name": "recipient",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "indexed": false,
137
+ "internalType": "address",
138
+ "name": "assetAddress",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "indexed": false,
143
+ "internalType": "uint256",
144
+ "name": "amount",
145
+ "type": "uint256"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "uint256",
150
+ "name": "tokenId",
151
+ "type": "uint256"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "uint256",
156
+ "name": "paymentId",
157
+ "type": "uint256"
158
+ }
159
+ ],
160
+ "name": "Payment",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
166
+ {
167
+ "indexed": false,
168
+ "internalType": "uint256",
169
+ "name": "tokenId",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "internalType": "string",
175
+ "name": "tokenURI",
176
+ "type": "string"
177
+ }
178
+ ],
179
+ "name": "SetURI",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": true,
187
+ "internalType": "address",
188
+ "name": "from",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": true,
193
+ "internalType": "address",
194
+ "name": "to",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "indexed": true,
199
+ "internalType": "uint256",
200
+ "name": "tokenId",
201
+ "type": "uint256"
202
+ }
203
+ ],
204
+ "name": "Transfer",
205
+ "type": "event"
206
+ },
207
+ {
208
+ "inputs": [
209
+ {
210
+ "internalType": "address",
211
+ "name": "to",
212
+ "type": "address"
213
+ },
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "tokenId",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "name": "approve",
221
+ "outputs": [],
222
+ "stateMutability": "nonpayable",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [
227
+ {
228
+ "internalType": "address",
229
+ "name": "owner",
230
+ "type": "address"
231
+ }
232
+ ],
233
+ "name": "balanceOf",
234
+ "outputs": [
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "internalType": "uint256",
248
+ "name": "tokenId",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "name": "getApproved",
253
+ "outputs": [
254
+ {
255
+ "internalType": "address",
256
+ "name": "",
257
+ "type": "address"
258
+ }
259
+ ],
260
+ "stateMutability": "view",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "getCurrentTokenId",
266
+ "outputs": [
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "",
270
+ "type": "uint256"
271
+ }
272
+ ],
273
+ "stateMutability": "view",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [
278
+ {
279
+ "internalType": "address",
280
+ "name": "account",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "name": "getNFTIds",
285
+ "outputs": [
286
+ {
287
+ "internalType": "uint256[]",
288
+ "name": "",
289
+ "type": "uint256[]"
290
+ }
291
+ ],
292
+ "stateMutability": "view",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "address",
299
+ "name": "account",
300
+ "type": "address"
301
+ }
302
+ ],
303
+ "name": "getIds",
304
+ "outputs": [
305
+ {
306
+ "internalType": "uint256[]",
307
+ "name": "",
308
+ "type": "uint256[]"
309
+ }
310
+ ],
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "inputs": [
316
+ {
317
+ "internalType": "address",
318
+ "name": "account",
319
+ "type": "address"
320
+ }
321
+ ],
322
+ "name": "getTokenIds",
323
+ "outputs": [
324
+ {
325
+ "internalType": "uint256[]",
326
+ "name": "",
327
+ "type": "uint256[]"
328
+ }
329
+ ],
330
+ "stateMutability": "view",
331
+ "type": "function"
332
+ },
333
+ {
334
+ "inputs": [
335
+ {
336
+ "internalType": "uint256",
337
+ "name": "tokenId",
338
+ "type": "uint256"
339
+ }
340
+ ],
341
+ "name": "getTokenIdIndex",
342
+ "outputs": [
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "",
346
+ "type": "uint256"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "address",
356
+ "name": "owner",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "internalType": "address",
361
+ "name": "operator",
362
+ "type": "address"
363
+ }
364
+ ],
365
+ "name": "isApprovedForAll",
366
+ "outputs": [
367
+ {
368
+ "internalType": "bool",
369
+ "name": "",
370
+ "type": "bool"
371
+ }
372
+ ],
373
+ "stateMutability": "view",
374
+ "type": "function"
375
+ },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "address",
380
+ "name": "recipient",
381
+ "type": "address"
382
+ },
383
+ {
384
+ "internalType": "string",
385
+ "name": "tokenURI",
386
+ "type": "string"
387
+ }
388
+ ],
389
+ "name": "mintNFT",
390
+ "outputs": [
391
+ {
392
+ "internalType": "uint256",
393
+ "name": "",
394
+ "type": "uint256"
395
+ }
396
+ ],
397
+ "stateMutability": "nonpayable",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [],
402
+ "name": "name",
403
+ "outputs": [
404
+ {
405
+ "internalType": "string",
406
+ "name": "",
407
+ "type": "string"
408
+ }
409
+ ],
410
+ "stateMutability": "view",
411
+ "type": "function"
412
+ },
413
+ {
414
+ "inputs": [],
415
+ "name": "owner",
416
+ "outputs": [
417
+ {
418
+ "internalType": "address",
419
+ "name": "",
420
+ "type": "address"
421
+ }
422
+ ],
423
+ "stateMutability": "view",
424
+ "type": "function"
425
+ },
426
+ {
427
+ "inputs": [
428
+ {
429
+ "internalType": "uint256",
430
+ "name": "tokenId",
431
+ "type": "uint256"
432
+ }
433
+ ],
434
+ "name": "ownerOf",
435
+ "outputs": [
436
+ {
437
+ "internalType": "address",
438
+ "name": "",
439
+ "type": "address"
440
+ }
441
+ ],
442
+ "stateMutability": "view",
443
+ "type": "function"
444
+ },
445
+ {
446
+ "inputs": [
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "tokenId",
450
+ "type": "uint256"
451
+ },
452
+ {
453
+ "internalType": "uint256",
454
+ "name": "amount",
455
+ "type": "uint256"
456
+ }
457
+ ],
458
+ "name": "payOwner",
459
+ "outputs": [],
460
+ "stateMutability": "nonpayable",
461
+ "type": "function"
462
+ },
463
+ {
464
+ "inputs": [],
465
+ "name": "renounceOwnership",
466
+ "outputs": [],
467
+ "stateMutability": "nonpayable",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [
472
+ {
473
+ "internalType": "address",
474
+ "name": "from",
475
+ "type": "address"
476
+ },
477
+ {
478
+ "internalType": "address",
479
+ "name": "to",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "internalType": "uint256",
484
+ "name": "tokenId",
485
+ "type": "uint256"
486
+ }
487
+ ],
488
+ "name": "safeTransferFrom",
489
+ "outputs": [],
490
+ "stateMutability": "nonpayable",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [
495
+ {
496
+ "internalType": "address",
497
+ "name": "from",
498
+ "type": "address"
499
+ },
500
+ {
501
+ "internalType": "address",
502
+ "name": "to",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "internalType": "uint256",
507
+ "name": "tokenId",
508
+ "type": "uint256"
509
+ },
510
+ {
511
+ "internalType": "bytes",
512
+ "name": "data",
513
+ "type": "bytes"
514
+ }
515
+ ],
516
+ "name": "safeTransferFrom",
517
+ "outputs": [],
518
+ "stateMutability": "nonpayable",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "operator",
526
+ "type": "address"
527
+ },
528
+ {
529
+ "internalType": "bool",
530
+ "name": "approved",
531
+ "type": "bool"
532
+ }
533
+ ],
534
+ "name": "setApprovalForAll",
535
+ "outputs": [],
536
+ "stateMutability": "nonpayable",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "internalType": "uint256",
543
+ "name": "tokenId",
544
+ "type": "uint256"
545
+ },
546
+ {
547
+ "internalType": "string",
548
+ "name": "uri",
549
+ "type": "string"
550
+ }
551
+ ],
552
+ "name": "setTokenURI",
553
+ "outputs": [],
554
+ "stateMutability": "nonpayable",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "inputs": [
559
+ {
560
+ "internalType": "bytes4",
561
+ "name": "interfaceId",
562
+ "type": "bytes4"
563
+ }
564
+ ],
565
+ "name": "supportsInterface",
566
+ "outputs": [
567
+ {
568
+ "internalType": "bool",
569
+ "name": "",
570
+ "type": "bool"
571
+ }
572
+ ],
573
+ "stateMutability": "view",
574
+ "type": "function"
575
+ },
576
+ {
577
+ "inputs": [],
578
+ "name": "symbol",
579
+ "outputs": [
580
+ {
581
+ "internalType": "string",
582
+ "name": "",
583
+ "type": "string"
584
+ }
585
+ ],
586
+ "stateMutability": "view",
587
+ "type": "function"
588
+ },
589
+ {
590
+ "inputs": [
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "tokenId",
594
+ "type": "uint256"
595
+ }
596
+ ],
597
+ "name": "tokenURI",
598
+ "outputs": [
599
+ {
600
+ "internalType": "string",
601
+ "name": "",
602
+ "type": "string"
603
+ }
604
+ ],
605
+ "stateMutability": "view",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [
610
+ {
611
+ "internalType": "address",
612
+ "name": "from",
613
+ "type": "address"
614
+ },
615
+ {
616
+ "internalType": "address",
617
+ "name": "to",
618
+ "type": "address"
619
+ },
620
+ {
621
+ "internalType": "uint256",
622
+ "name": "tokenId",
623
+ "type": "uint256"
624
+ }
625
+ ],
626
+ "name": "transferFrom",
627
+ "outputs": [],
628
+ "stateMutability": "nonpayable",
629
+ "type": "function"
630
+ },
631
+ {
632
+ "inputs": [
633
+ {
634
+ "internalType": "address",
635
+ "name": "newOwner",
636
+ "type": "address"
637
+ }
638
+ ],
639
+ "name": "transferOwnership",
640
+ "outputs": [],
641
+ "stateMutability": "nonpayable",
642
+ "type": "function"
643
+ }
644
+ ]