@lukso/lsp8-contracts 0.15.0-rc.1 → 0.15.0-rc.4
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/README.md +6 -0
- package/artifacts/ILSP8IdentifiableDigitalAsset.json +602 -0
- package/artifacts/LSP8Burnable.json +954 -0
- package/artifacts/LSP8BurnableInitAbstract.json +967 -0
- package/artifacts/LSP8Enumerable.json +955 -0
- package/artifacts/LSP8EnumerableInitAbstract.json +968 -0
- package/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.12.0.json +748 -0
- package/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.13.0.json +899 -0
- package/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.14.0.json +899 -0
- package/compatibility-abis/README.md +9 -0
- package/package.json +4 -3
- package/types/contracts/ILSP8IdentifiableDigitalAsset.ts +706 -0
- package/types/contracts/extensions/LSP8Burnable.ts +797 -0
- package/types/contracts/extensions/LSP8BurnableInitAbstract.ts +829 -0
- package/types/contracts/extensions/LSP8Enumerable.ts +790 -0
- package/types/contracts/extensions/LSP8EnumerableInitAbstract.ts +821 -0
- package/types/index.ts +4954 -664
package/README.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
1
|
# LSP8 Identifiable Digital Asset · [](https://www.npmjs.com/package/@lukso/lsp8-contracts)
|
2
2
|
|
3
3
|
Package for the LSP8 Identifiable Digital Asset Standard.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
npm install @lukso/lsp8-contracts
|
9
|
+
```
|
@@ -0,0 +1,602 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "ILSP8IdentifiableDigitalAsset",
|
4
|
+
"sourceName": "contracts/ILSP8IdentifiableDigitalAsset.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"anonymous": false,
|
8
|
+
"inputs": [
|
9
|
+
{
|
10
|
+
"indexed": true,
|
11
|
+
"internalType": "bytes32",
|
12
|
+
"name": "dataKey",
|
13
|
+
"type": "bytes32"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"indexed": false,
|
17
|
+
"internalType": "bytes",
|
18
|
+
"name": "dataValue",
|
19
|
+
"type": "bytes"
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"name": "DataChanged",
|
23
|
+
"type": "event"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"anonymous": false,
|
27
|
+
"inputs": [
|
28
|
+
{
|
29
|
+
"indexed": true,
|
30
|
+
"internalType": "address",
|
31
|
+
"name": "operator",
|
32
|
+
"type": "address"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"indexed": true,
|
36
|
+
"internalType": "address",
|
37
|
+
"name": "tokenOwner",
|
38
|
+
"type": "address"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"indexed": true,
|
42
|
+
"internalType": "bytes32",
|
43
|
+
"name": "tokenId",
|
44
|
+
"type": "bytes32"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"indexed": false,
|
48
|
+
"internalType": "bytes",
|
49
|
+
"name": "operatorNotificationData",
|
50
|
+
"type": "bytes"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"name": "OperatorAuthorizationChanged",
|
54
|
+
"type": "event"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"anonymous": false,
|
58
|
+
"inputs": [
|
59
|
+
{
|
60
|
+
"indexed": true,
|
61
|
+
"internalType": "address",
|
62
|
+
"name": "operator",
|
63
|
+
"type": "address"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"indexed": true,
|
67
|
+
"internalType": "address",
|
68
|
+
"name": "tokenOwner",
|
69
|
+
"type": "address"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"indexed": true,
|
73
|
+
"internalType": "bytes32",
|
74
|
+
"name": "tokenId",
|
75
|
+
"type": "bytes32"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"indexed": false,
|
79
|
+
"internalType": "bool",
|
80
|
+
"name": "notified",
|
81
|
+
"type": "bool"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"indexed": false,
|
85
|
+
"internalType": "bytes",
|
86
|
+
"name": "operatorNotificationData",
|
87
|
+
"type": "bytes"
|
88
|
+
}
|
89
|
+
],
|
90
|
+
"name": "OperatorRevoked",
|
91
|
+
"type": "event"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"anonymous": false,
|
95
|
+
"inputs": [
|
96
|
+
{
|
97
|
+
"indexed": true,
|
98
|
+
"internalType": "bytes32",
|
99
|
+
"name": "tokenId",
|
100
|
+
"type": "bytes32"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"indexed": true,
|
104
|
+
"internalType": "bytes32",
|
105
|
+
"name": "dataKey",
|
106
|
+
"type": "bytes32"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"indexed": false,
|
110
|
+
"internalType": "bytes",
|
111
|
+
"name": "dataValue",
|
112
|
+
"type": "bytes"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"name": "TokenIdDataChanged",
|
116
|
+
"type": "event"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"anonymous": false,
|
120
|
+
"inputs": [
|
121
|
+
{
|
122
|
+
"indexed": false,
|
123
|
+
"internalType": "address",
|
124
|
+
"name": "operator",
|
125
|
+
"type": "address"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"indexed": true,
|
129
|
+
"internalType": "address",
|
130
|
+
"name": "from",
|
131
|
+
"type": "address"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"indexed": true,
|
135
|
+
"internalType": "address",
|
136
|
+
"name": "to",
|
137
|
+
"type": "address"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"indexed": true,
|
141
|
+
"internalType": "bytes32",
|
142
|
+
"name": "tokenId",
|
143
|
+
"type": "bytes32"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"indexed": false,
|
147
|
+
"internalType": "bool",
|
148
|
+
"name": "force",
|
149
|
+
"type": "bool"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"indexed": false,
|
153
|
+
"internalType": "bytes",
|
154
|
+
"name": "data",
|
155
|
+
"type": "bytes"
|
156
|
+
}
|
157
|
+
],
|
158
|
+
"name": "Transfer",
|
159
|
+
"type": "event"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"inputs": [
|
163
|
+
{
|
164
|
+
"internalType": "address",
|
165
|
+
"name": "operator",
|
166
|
+
"type": "address"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"internalType": "bytes32",
|
170
|
+
"name": "tokenId",
|
171
|
+
"type": "bytes32"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"internalType": "bytes",
|
175
|
+
"name": "operatorNotificationData",
|
176
|
+
"type": "bytes"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"name": "authorizeOperator",
|
180
|
+
"outputs": [],
|
181
|
+
"stateMutability": "nonpayable",
|
182
|
+
"type": "function"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"inputs": [
|
186
|
+
{
|
187
|
+
"internalType": "address",
|
188
|
+
"name": "tokenOwner",
|
189
|
+
"type": "address"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"name": "balanceOf",
|
193
|
+
"outputs": [
|
194
|
+
{
|
195
|
+
"internalType": "uint256",
|
196
|
+
"name": "",
|
197
|
+
"type": "uint256"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"stateMutability": "view",
|
201
|
+
"type": "function"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"inputs": [
|
205
|
+
{
|
206
|
+
"internalType": "bytes[]",
|
207
|
+
"name": "data",
|
208
|
+
"type": "bytes[]"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"name": "batchCalls",
|
212
|
+
"outputs": [
|
213
|
+
{
|
214
|
+
"internalType": "bytes[]",
|
215
|
+
"name": "results",
|
216
|
+
"type": "bytes[]"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
"stateMutability": "nonpayable",
|
220
|
+
"type": "function"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"inputs": [
|
224
|
+
{
|
225
|
+
"internalType": "bytes32",
|
226
|
+
"name": "dataKey",
|
227
|
+
"type": "bytes32"
|
228
|
+
}
|
229
|
+
],
|
230
|
+
"name": "getData",
|
231
|
+
"outputs": [
|
232
|
+
{
|
233
|
+
"internalType": "bytes",
|
234
|
+
"name": "dataValue",
|
235
|
+
"type": "bytes"
|
236
|
+
}
|
237
|
+
],
|
238
|
+
"stateMutability": "view",
|
239
|
+
"type": "function"
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"inputs": [
|
243
|
+
{
|
244
|
+
"internalType": "bytes32[]",
|
245
|
+
"name": "dataKeys",
|
246
|
+
"type": "bytes32[]"
|
247
|
+
}
|
248
|
+
],
|
249
|
+
"name": "getDataBatch",
|
250
|
+
"outputs": [
|
251
|
+
{
|
252
|
+
"internalType": "bytes[]",
|
253
|
+
"name": "dataValues",
|
254
|
+
"type": "bytes[]"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
"stateMutability": "view",
|
258
|
+
"type": "function"
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"inputs": [
|
262
|
+
{
|
263
|
+
"internalType": "bytes32[]",
|
264
|
+
"name": "tokenIds",
|
265
|
+
"type": "bytes32[]"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"internalType": "bytes32[]",
|
269
|
+
"name": "dataKeys",
|
270
|
+
"type": "bytes32[]"
|
271
|
+
}
|
272
|
+
],
|
273
|
+
"name": "getDataBatchForTokenIds",
|
274
|
+
"outputs": [
|
275
|
+
{
|
276
|
+
"internalType": "bytes[]",
|
277
|
+
"name": "dataValues",
|
278
|
+
"type": "bytes[]"
|
279
|
+
}
|
280
|
+
],
|
281
|
+
"stateMutability": "nonpayable",
|
282
|
+
"type": "function"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"inputs": [
|
286
|
+
{
|
287
|
+
"internalType": "bytes32",
|
288
|
+
"name": "tokenId",
|
289
|
+
"type": "bytes32"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"internalType": "bytes32",
|
293
|
+
"name": "dataKey",
|
294
|
+
"type": "bytes32"
|
295
|
+
}
|
296
|
+
],
|
297
|
+
"name": "getDataForTokenId",
|
298
|
+
"outputs": [
|
299
|
+
{
|
300
|
+
"internalType": "bytes",
|
301
|
+
"name": "dataValues",
|
302
|
+
"type": "bytes"
|
303
|
+
}
|
304
|
+
],
|
305
|
+
"stateMutability": "nonpayable",
|
306
|
+
"type": "function"
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"inputs": [
|
310
|
+
{
|
311
|
+
"internalType": "bytes32",
|
312
|
+
"name": "tokenId",
|
313
|
+
"type": "bytes32"
|
314
|
+
}
|
315
|
+
],
|
316
|
+
"name": "getOperatorsOf",
|
317
|
+
"outputs": [
|
318
|
+
{
|
319
|
+
"internalType": "address[]",
|
320
|
+
"name": "",
|
321
|
+
"type": "address[]"
|
322
|
+
}
|
323
|
+
],
|
324
|
+
"stateMutability": "view",
|
325
|
+
"type": "function"
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"inputs": [
|
329
|
+
{
|
330
|
+
"internalType": "address",
|
331
|
+
"name": "operator",
|
332
|
+
"type": "address"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"internalType": "bytes32",
|
336
|
+
"name": "tokenId",
|
337
|
+
"type": "bytes32"
|
338
|
+
}
|
339
|
+
],
|
340
|
+
"name": "isOperatorFor",
|
341
|
+
"outputs": [
|
342
|
+
{
|
343
|
+
"internalType": "bool",
|
344
|
+
"name": "",
|
345
|
+
"type": "bool"
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"stateMutability": "view",
|
349
|
+
"type": "function"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"inputs": [
|
353
|
+
{
|
354
|
+
"internalType": "address",
|
355
|
+
"name": "operator",
|
356
|
+
"type": "address"
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"internalType": "bytes32",
|
360
|
+
"name": "tokenId",
|
361
|
+
"type": "bytes32"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"internalType": "bool",
|
365
|
+
"name": "notify",
|
366
|
+
"type": "bool"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"internalType": "bytes",
|
370
|
+
"name": "operatorNotificationData",
|
371
|
+
"type": "bytes"
|
372
|
+
}
|
373
|
+
],
|
374
|
+
"name": "revokeOperator",
|
375
|
+
"outputs": [],
|
376
|
+
"stateMutability": "nonpayable",
|
377
|
+
"type": "function"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"inputs": [
|
381
|
+
{
|
382
|
+
"internalType": "bytes32",
|
383
|
+
"name": "dataKey",
|
384
|
+
"type": "bytes32"
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"internalType": "bytes",
|
388
|
+
"name": "dataValue",
|
389
|
+
"type": "bytes"
|
390
|
+
}
|
391
|
+
],
|
392
|
+
"name": "setData",
|
393
|
+
"outputs": [],
|
394
|
+
"stateMutability": "payable",
|
395
|
+
"type": "function"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"inputs": [
|
399
|
+
{
|
400
|
+
"internalType": "bytes32[]",
|
401
|
+
"name": "dataKeys",
|
402
|
+
"type": "bytes32[]"
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"internalType": "bytes[]",
|
406
|
+
"name": "dataValues",
|
407
|
+
"type": "bytes[]"
|
408
|
+
}
|
409
|
+
],
|
410
|
+
"name": "setDataBatch",
|
411
|
+
"outputs": [],
|
412
|
+
"stateMutability": "payable",
|
413
|
+
"type": "function"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"inputs": [
|
417
|
+
{
|
418
|
+
"internalType": "bytes32[]",
|
419
|
+
"name": "tokenIds",
|
420
|
+
"type": "bytes32[]"
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"internalType": "bytes32[]",
|
424
|
+
"name": "dataKeys",
|
425
|
+
"type": "bytes32[]"
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"internalType": "bytes[]",
|
429
|
+
"name": "dataValues",
|
430
|
+
"type": "bytes[]"
|
431
|
+
}
|
432
|
+
],
|
433
|
+
"name": "setDataBatchForTokenIds",
|
434
|
+
"outputs": [],
|
435
|
+
"stateMutability": "nonpayable",
|
436
|
+
"type": "function"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"inputs": [
|
440
|
+
{
|
441
|
+
"internalType": "bytes32",
|
442
|
+
"name": "tokenId",
|
443
|
+
"type": "bytes32"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"internalType": "bytes32",
|
447
|
+
"name": "dataKey",
|
448
|
+
"type": "bytes32"
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"internalType": "bytes",
|
452
|
+
"name": "dataValue",
|
453
|
+
"type": "bytes"
|
454
|
+
}
|
455
|
+
],
|
456
|
+
"name": "setDataForTokenId",
|
457
|
+
"outputs": [],
|
458
|
+
"stateMutability": "nonpayable",
|
459
|
+
"type": "function"
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"inputs": [
|
463
|
+
{
|
464
|
+
"internalType": "bytes4",
|
465
|
+
"name": "interfaceId",
|
466
|
+
"type": "bytes4"
|
467
|
+
}
|
468
|
+
],
|
469
|
+
"name": "supportsInterface",
|
470
|
+
"outputs": [
|
471
|
+
{
|
472
|
+
"internalType": "bool",
|
473
|
+
"name": "",
|
474
|
+
"type": "bool"
|
475
|
+
}
|
476
|
+
],
|
477
|
+
"stateMutability": "view",
|
478
|
+
"type": "function"
|
479
|
+
},
|
480
|
+
{
|
481
|
+
"inputs": [
|
482
|
+
{
|
483
|
+
"internalType": "address",
|
484
|
+
"name": "tokenOwner",
|
485
|
+
"type": "address"
|
486
|
+
}
|
487
|
+
],
|
488
|
+
"name": "tokenIdsOf",
|
489
|
+
"outputs": [
|
490
|
+
{
|
491
|
+
"internalType": "bytes32[]",
|
492
|
+
"name": "",
|
493
|
+
"type": "bytes32[]"
|
494
|
+
}
|
495
|
+
],
|
496
|
+
"stateMutability": "view",
|
497
|
+
"type": "function"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"inputs": [
|
501
|
+
{
|
502
|
+
"internalType": "bytes32",
|
503
|
+
"name": "tokenId",
|
504
|
+
"type": "bytes32"
|
505
|
+
}
|
506
|
+
],
|
507
|
+
"name": "tokenOwnerOf",
|
508
|
+
"outputs": [
|
509
|
+
{
|
510
|
+
"internalType": "address",
|
511
|
+
"name": "",
|
512
|
+
"type": "address"
|
513
|
+
}
|
514
|
+
],
|
515
|
+
"stateMutability": "view",
|
516
|
+
"type": "function"
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"inputs": [],
|
520
|
+
"name": "totalSupply",
|
521
|
+
"outputs": [
|
522
|
+
{
|
523
|
+
"internalType": "uint256",
|
524
|
+
"name": "",
|
525
|
+
"type": "uint256"
|
526
|
+
}
|
527
|
+
],
|
528
|
+
"stateMutability": "view",
|
529
|
+
"type": "function"
|
530
|
+
},
|
531
|
+
{
|
532
|
+
"inputs": [
|
533
|
+
{
|
534
|
+
"internalType": "address",
|
535
|
+
"name": "from",
|
536
|
+
"type": "address"
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"internalType": "address",
|
540
|
+
"name": "to",
|
541
|
+
"type": "address"
|
542
|
+
},
|
543
|
+
{
|
544
|
+
"internalType": "bytes32",
|
545
|
+
"name": "tokenId",
|
546
|
+
"type": "bytes32"
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"internalType": "bool",
|
550
|
+
"name": "force",
|
551
|
+
"type": "bool"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"internalType": "bytes",
|
555
|
+
"name": "data",
|
556
|
+
"type": "bytes"
|
557
|
+
}
|
558
|
+
],
|
559
|
+
"name": "transfer",
|
560
|
+
"outputs": [],
|
561
|
+
"stateMutability": "nonpayable",
|
562
|
+
"type": "function"
|
563
|
+
},
|
564
|
+
{
|
565
|
+
"inputs": [
|
566
|
+
{
|
567
|
+
"internalType": "address[]",
|
568
|
+
"name": "from",
|
569
|
+
"type": "address[]"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"internalType": "address[]",
|
573
|
+
"name": "to",
|
574
|
+
"type": "address[]"
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"internalType": "bytes32[]",
|
578
|
+
"name": "tokenId",
|
579
|
+
"type": "bytes32[]"
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"internalType": "bool[]",
|
583
|
+
"name": "force",
|
584
|
+
"type": "bool[]"
|
585
|
+
},
|
586
|
+
{
|
587
|
+
"internalType": "bytes[]",
|
588
|
+
"name": "data",
|
589
|
+
"type": "bytes[]"
|
590
|
+
}
|
591
|
+
],
|
592
|
+
"name": "transferBatch",
|
593
|
+
"outputs": [],
|
594
|
+
"stateMutability": "nonpayable",
|
595
|
+
"type": "function"
|
596
|
+
}
|
597
|
+
],
|
598
|
+
"bytecode": "0x",
|
599
|
+
"deployedBytecode": "0x",
|
600
|
+
"linkReferences": {},
|
601
|
+
"deployedLinkReferences": {}
|
602
|
+
}
|