@lukso/lsp-smart-contracts 0.12.1 → 0.13.0

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 (121) hide show
  1. package/README.md +2 -2
  2. package/artifacts/LSP0ERC725Account.json +6 -6
  3. package/artifacts/LSP0ERC725AccountInit.json +6 -6
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
  7. package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
  8. package/artifacts/LSP4DigitalAssetMetadata.json +5 -0
  9. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +5 -0
  10. package/artifacts/LSP6KeyManager.json +2 -2
  11. package/artifacts/LSP6KeyManagerInit.json +2 -2
  12. package/artifacts/LSP7CappedSupply.json +71 -36
  13. package/artifacts/LSP7CappedSupplyInitAbstract.json +71 -36
  14. package/artifacts/LSP7CompatibleERC20.json +71 -36
  15. package/artifacts/LSP7CompatibleERC20InitAbstract.json +71 -36
  16. package/artifacts/LSP7CompatibleERC20Mintable.json +78 -38
  17. package/artifacts/LSP7CompatibleERC20MintableInit.json +78 -38
  18. package/artifacts/LSP7DigitalAsset.json +71 -36
  19. package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -36
  20. package/artifacts/LSP7Mintable.json +78 -38
  21. package/artifacts/LSP7MintableInit.json +78 -38
  22. package/artifacts/LSP8CappedSupply.json +187 -23
  23. package/artifacts/LSP8CappedSupplyInitAbstract.json +200 -36
  24. package/artifacts/LSP8CompatibleERC721.json +187 -23
  25. package/artifacts/LSP8CompatibleERC721InitAbstract.json +200 -36
  26. package/artifacts/LSP8CompatibleERC721Mintable.json +195 -26
  27. package/artifacts/LSP8CompatibleERC721MintableInit.json +208 -39
  28. package/artifacts/LSP8IdentifiableDigitalAsset.json +187 -23
  29. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +200 -36
  30. package/artifacts/LSP8Mintable.json +195 -26
  31. package/artifacts/LSP8MintableInit.json +208 -39
  32. package/artifacts/LSP9Vault.json +6 -6
  33. package/artifacts/LSP9VaultInit.json +6 -6
  34. package/artifacts/UniversalProfile.json +6 -6
  35. package/artifacts/UniversalProfileInit.json +6 -6
  36. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -22
  37. package/contracts/LSP17Extensions/Extension4337.sol +26 -1
  38. package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +9 -0
  39. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +20 -34
  40. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +47 -0
  41. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +19 -31
  42. package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +13 -6
  43. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -1
  44. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +20 -9
  45. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
  46. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
  47. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +128 -25
  48. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +5 -2
  49. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +6 -0
  50. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +4 -2
  51. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -4
  52. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -2
  53. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +5 -2
  54. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +8 -2
  55. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +12 -1
  56. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +4 -0
  57. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -0
  58. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +77 -4
  59. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +15 -12
  60. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +19 -3
  61. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +25 -16
  62. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +223 -19
  63. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +28 -15
  64. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +15 -4
  65. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +8 -4
  66. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +13 -2
  67. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +6 -2
  68. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +4 -2
  69. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +13 -2
  70. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +6 -2
  71. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +6 -2
  72. package/contracts/LSP9Vault/LSP9VaultCore.sol +0 -22
  73. package/contracts/Version.sol +1 -1
  74. package/devdocs/LSP4DigitalAssetMetadata.json +11 -5
  75. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -2
  76. package/devdocs/LSP6KeyManager.json +1 -1
  77. package/devdocs/LSP6KeyManagerInit.json +1 -1
  78. package/devdocs/LSP7CappedSupply.json +22 -2
  79. package/devdocs/LSP7CappedSupplyInitAbstract.json +22 -2
  80. package/devdocs/LSP7CompatibleERC20.json +23 -2
  81. package/devdocs/LSP7CompatibleERC20InitAbstract.json +22 -2
  82. package/devdocs/LSP7CompatibleERC20Mintable.json +23 -2
  83. package/devdocs/LSP7CompatibleERC20MintableInit.json +24 -3
  84. package/devdocs/LSP7DigitalAsset.json +27 -6
  85. package/devdocs/LSP7DigitalAssetInitAbstract.json +22 -2
  86. package/devdocs/LSP7Mintable.json +24 -2
  87. package/devdocs/LSP7MintableInit.json +25 -3
  88. package/devdocs/LSP8CappedSupply.json +66 -4
  89. package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -4
  90. package/devdocs/LSP8CompatibleERC721.json +69 -5
  91. package/devdocs/LSP8CompatibleERC721InitAbstract.json +67 -5
  92. package/devdocs/LSP8CompatibleERC721Mintable.json +69 -5
  93. package/devdocs/LSP8CompatibleERC721MintableInit.json +70 -6
  94. package/devdocs/LSP8IdentifiableDigitalAsset.json +71 -8
  95. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -4
  96. package/devdocs/LSP8Mintable.json +68 -4
  97. package/devdocs/LSP8MintableInit.json +69 -5
  98. package/dist/constants.cjs.js +4406 -1319
  99. package/dist/constants.d.ts +4184 -844
  100. package/dist/constants.es.js +4405 -1319
  101. package/package.json +2 -2
  102. package/userdocs/LSP7CappedSupply.json +8 -0
  103. package/userdocs/LSP7CappedSupplyInitAbstract.json +8 -0
  104. package/userdocs/LSP7CompatibleERC20.json +8 -0
  105. package/userdocs/LSP7CompatibleERC20InitAbstract.json +8 -0
  106. package/userdocs/LSP7CompatibleERC20Mintable.json +8 -0
  107. package/userdocs/LSP7CompatibleERC20MintableInit.json +9 -1
  108. package/userdocs/LSP7DigitalAsset.json +8 -0
  109. package/userdocs/LSP7DigitalAssetInitAbstract.json +8 -0
  110. package/userdocs/LSP7Mintable.json +8 -0
  111. package/userdocs/LSP7MintableInit.json +9 -1
  112. package/userdocs/LSP8CappedSupply.json +20 -0
  113. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
  114. package/userdocs/LSP8CompatibleERC721.json +20 -0
  115. package/userdocs/LSP8CompatibleERC721InitAbstract.json +20 -0
  116. package/userdocs/LSP8CompatibleERC721Mintable.json +20 -0
  117. package/userdocs/LSP8CompatibleERC721MintableInit.json +21 -1
  118. package/userdocs/LSP8IdentifiableDigitalAsset.json +21 -1
  119. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
  120. package/userdocs/LSP8Mintable.json +20 -0
  121. package/userdocs/LSP8MintableInit.json +21 -1
@@ -50,6 +50,11 @@
50
50
  "name": "LSP4TokenSymbolNotEditable",
51
51
  "type": "error"
52
52
  },
53
+ {
54
+ "inputs": [],
55
+ "name": "LSP4TokenTypeNotEditable",
56
+ "type": "error"
57
+ },
53
58
  {
54
59
  "inputs": [
55
60
  {
@@ -97,6 +102,17 @@
97
102
  "name": "LSP7AmountExceedsBalance",
98
103
  "type": "error"
99
104
  },
105
+ {
106
+ "inputs": [
107
+ {
108
+ "internalType": "uint256",
109
+ "name": "callIndex",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "LSP7BatchCallFailed",
114
+ "type": "error"
115
+ },
100
116
  {
101
117
  "inputs": [],
102
118
  "name": "LSP7CannotSendToSelf",
@@ -202,37 +218,6 @@
202
218
  "name": "OwnableCannotSetZeroAddressAsOwner",
203
219
  "type": "error"
204
220
  },
205
- {
206
- "anonymous": false,
207
- "inputs": [
208
- {
209
- "indexed": true,
210
- "internalType": "address",
211
- "name": "operator",
212
- "type": "address"
213
- },
214
- {
215
- "indexed": true,
216
- "internalType": "address",
217
- "name": "tokenOwner",
218
- "type": "address"
219
- },
220
- {
221
- "indexed": true,
222
- "internalType": "uint256",
223
- "name": "amount",
224
- "type": "uint256"
225
- },
226
- {
227
- "indexed": false,
228
- "internalType": "bytes",
229
- "name": "operatorNotificationData",
230
- "type": "bytes"
231
- }
232
- ],
233
- "name": "AuthorizedOperator",
234
- "type": "event"
235
- },
236
221
  {
237
222
  "anonymous": false,
238
223
  "inputs": [
@@ -271,17 +256,29 @@
271
256
  {
272
257
  "indexed": true,
273
258
  "internalType": "address",
274
- "name": "previousOwner",
259
+ "name": "operator",
275
260
  "type": "address"
276
261
  },
277
262
  {
278
263
  "indexed": true,
279
264
  "internalType": "address",
280
- "name": "newOwner",
265
+ "name": "tokenOwner",
281
266
  "type": "address"
267
+ },
268
+ {
269
+ "indexed": true,
270
+ "internalType": "uint256",
271
+ "name": "amount",
272
+ "type": "uint256"
273
+ },
274
+ {
275
+ "indexed": false,
276
+ "internalType": "bytes",
277
+ "name": "operatorNotificationData",
278
+ "type": "bytes"
282
279
  }
283
280
  ],
284
- "name": "OwnershipTransferred",
281
+ "name": "OperatorAuthorizationChanged",
285
282
  "type": "event"
286
283
  },
287
284
  {
@@ -300,7 +297,7 @@
300
297
  "type": "address"
301
298
  },
302
299
  {
303
- "indexed": false,
300
+ "indexed": true,
304
301
  "internalType": "bool",
305
302
  "name": "notified",
306
303
  "type": "bool"
@@ -312,7 +309,26 @@
312
309
  "type": "bytes"
313
310
  }
314
311
  ],
315
- "name": "RevokedOperator",
312
+ "name": "OperatorRevoked",
313
+ "type": "event"
314
+ },
315
+ {
316
+ "anonymous": false,
317
+ "inputs": [
318
+ {
319
+ "indexed": true,
320
+ "internalType": "address",
321
+ "name": "previousOwner",
322
+ "type": "address"
323
+ },
324
+ {
325
+ "indexed": true,
326
+ "internalType": "address",
327
+ "name": "newOwner",
328
+ "type": "address"
329
+ }
330
+ ],
331
+ "name": "OwnershipTransferred",
316
332
  "type": "event"
317
333
  },
318
334
  {
@@ -428,6 +444,25 @@
428
444
  "stateMutability": "view",
429
445
  "type": "function"
430
446
  },
447
+ {
448
+ "inputs": [
449
+ {
450
+ "internalType": "bytes[]",
451
+ "name": "data",
452
+ "type": "bytes[]"
453
+ }
454
+ ],
455
+ "name": "batchCalls",
456
+ "outputs": [
457
+ {
458
+ "internalType": "bytes[]",
459
+ "name": "results",
460
+ "type": "bytes[]"
461
+ }
462
+ ],
463
+ "stateMutability": "nonpayable",
464
+ "type": "function"
465
+ },
431
466
  {
432
467
  "inputs": [],
433
468
  "name": "decimals",
@@ -50,6 +50,11 @@
50
50
  "name": "LSP4TokenSymbolNotEditable",
51
51
  "type": "error"
52
52
  },
53
+ {
54
+ "inputs": [],
55
+ "name": "LSP4TokenTypeNotEditable",
56
+ "type": "error"
57
+ },
53
58
  {
54
59
  "inputs": [
55
60
  {
@@ -97,6 +102,17 @@
97
102
  "name": "LSP7AmountExceedsBalance",
98
103
  "type": "error"
99
104
  },
105
+ {
106
+ "inputs": [
107
+ {
108
+ "internalType": "uint256",
109
+ "name": "callIndex",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "LSP7BatchCallFailed",
114
+ "type": "error"
115
+ },
100
116
  {
101
117
  "inputs": [],
102
118
  "name": "LSP7CannotSendToSelf",
@@ -217,37 +233,6 @@
217
233
  "name": "Approval",
218
234
  "type": "event"
219
235
  },
220
- {
221
- "anonymous": false,
222
- "inputs": [
223
- {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "operator",
227
- "type": "address"
228
- },
229
- {
230
- "indexed": true,
231
- "internalType": "address",
232
- "name": "tokenOwner",
233
- "type": "address"
234
- },
235
- {
236
- "indexed": true,
237
- "internalType": "uint256",
238
- "name": "amount",
239
- "type": "uint256"
240
- },
241
- {
242
- "indexed": false,
243
- "internalType": "bytes",
244
- "name": "operatorNotificationData",
245
- "type": "bytes"
246
- }
247
- ],
248
- "name": "AuthorizedOperator",
249
- "type": "event"
250
- },
251
236
  {
252
237
  "anonymous": false,
253
238
  "inputs": [
@@ -273,17 +258,29 @@
273
258
  {
274
259
  "indexed": true,
275
260
  "internalType": "address",
276
- "name": "previousOwner",
261
+ "name": "operator",
277
262
  "type": "address"
278
263
  },
279
264
  {
280
265
  "indexed": true,
281
266
  "internalType": "address",
282
- "name": "newOwner",
267
+ "name": "tokenOwner",
283
268
  "type": "address"
269
+ },
270
+ {
271
+ "indexed": true,
272
+ "internalType": "uint256",
273
+ "name": "amount",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "internalType": "bytes",
279
+ "name": "operatorNotificationData",
280
+ "type": "bytes"
284
281
  }
285
282
  ],
286
- "name": "OwnershipTransferred",
283
+ "name": "OperatorAuthorizationChanged",
287
284
  "type": "event"
288
285
  },
289
286
  {
@@ -302,7 +299,7 @@
302
299
  "type": "address"
303
300
  },
304
301
  {
305
- "indexed": false,
302
+ "indexed": true,
306
303
  "internalType": "bool",
307
304
  "name": "notified",
308
305
  "type": "bool"
@@ -314,7 +311,26 @@
314
311
  "type": "bytes"
315
312
  }
316
313
  ],
317
- "name": "RevokedOperator",
314
+ "name": "OperatorRevoked",
315
+ "type": "event"
316
+ },
317
+ {
318
+ "anonymous": false,
319
+ "inputs": [
320
+ {
321
+ "indexed": true,
322
+ "internalType": "address",
323
+ "name": "previousOwner",
324
+ "type": "address"
325
+ },
326
+ {
327
+ "indexed": true,
328
+ "internalType": "address",
329
+ "name": "newOwner",
330
+ "type": "address"
331
+ }
332
+ ],
333
+ "name": "OwnershipTransferred",
318
334
  "type": "event"
319
335
  },
320
336
  {
@@ -503,6 +519,25 @@
503
519
  "stateMutability": "view",
504
520
  "type": "function"
505
521
  },
522
+ {
523
+ "inputs": [
524
+ {
525
+ "internalType": "bytes[]",
526
+ "name": "data",
527
+ "type": "bytes[]"
528
+ }
529
+ ],
530
+ "name": "batchCalls",
531
+ "outputs": [
532
+ {
533
+ "internalType": "bytes[]",
534
+ "name": "results",
535
+ "type": "bytes[]"
536
+ }
537
+ ],
538
+ "stateMutability": "nonpayable",
539
+ "type": "function"
540
+ },
506
541
  {
507
542
  "inputs": [],
508
543
  "name": "decimals",
@@ -50,6 +50,11 @@
50
50
  "name": "LSP4TokenSymbolNotEditable",
51
51
  "type": "error"
52
52
  },
53
+ {
54
+ "inputs": [],
55
+ "name": "LSP4TokenTypeNotEditable",
56
+ "type": "error"
57
+ },
53
58
  {
54
59
  "inputs": [
55
60
  {
@@ -97,6 +102,17 @@
97
102
  "name": "LSP7AmountExceedsBalance",
98
103
  "type": "error"
99
104
  },
105
+ {
106
+ "inputs": [
107
+ {
108
+ "internalType": "uint256",
109
+ "name": "callIndex",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "LSP7BatchCallFailed",
114
+ "type": "error"
115
+ },
100
116
  {
101
117
  "inputs": [],
102
118
  "name": "LSP7CannotSendToSelf",
@@ -217,37 +233,6 @@
217
233
  "name": "Approval",
218
234
  "type": "event"
219
235
  },
220
- {
221
- "anonymous": false,
222
- "inputs": [
223
- {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "operator",
227
- "type": "address"
228
- },
229
- {
230
- "indexed": true,
231
- "internalType": "address",
232
- "name": "tokenOwner",
233
- "type": "address"
234
- },
235
- {
236
- "indexed": true,
237
- "internalType": "uint256",
238
- "name": "amount",
239
- "type": "uint256"
240
- },
241
- {
242
- "indexed": false,
243
- "internalType": "bytes",
244
- "name": "operatorNotificationData",
245
- "type": "bytes"
246
- }
247
- ],
248
- "name": "AuthorizedOperator",
249
- "type": "event"
250
- },
251
236
  {
252
237
  "anonymous": false,
253
238
  "inputs": [
@@ -286,17 +271,29 @@
286
271
  {
287
272
  "indexed": true,
288
273
  "internalType": "address",
289
- "name": "previousOwner",
274
+ "name": "operator",
290
275
  "type": "address"
291
276
  },
292
277
  {
293
278
  "indexed": true,
294
279
  "internalType": "address",
295
- "name": "newOwner",
280
+ "name": "tokenOwner",
296
281
  "type": "address"
282
+ },
283
+ {
284
+ "indexed": true,
285
+ "internalType": "uint256",
286
+ "name": "amount",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "indexed": false,
291
+ "internalType": "bytes",
292
+ "name": "operatorNotificationData",
293
+ "type": "bytes"
297
294
  }
298
295
  ],
299
- "name": "OwnershipTransferred",
296
+ "name": "OperatorAuthorizationChanged",
300
297
  "type": "event"
301
298
  },
302
299
  {
@@ -315,7 +312,7 @@
315
312
  "type": "address"
316
313
  },
317
314
  {
318
- "indexed": false,
315
+ "indexed": true,
319
316
  "internalType": "bool",
320
317
  "name": "notified",
321
318
  "type": "bool"
@@ -327,7 +324,26 @@
327
324
  "type": "bytes"
328
325
  }
329
326
  ],
330
- "name": "RevokedOperator",
327
+ "name": "OperatorRevoked",
328
+ "type": "event"
329
+ },
330
+ {
331
+ "anonymous": false,
332
+ "inputs": [
333
+ {
334
+ "indexed": true,
335
+ "internalType": "address",
336
+ "name": "previousOwner",
337
+ "type": "address"
338
+ },
339
+ {
340
+ "indexed": true,
341
+ "internalType": "address",
342
+ "name": "newOwner",
343
+ "type": "address"
344
+ }
345
+ ],
346
+ "name": "OwnershipTransferred",
331
347
  "type": "event"
332
348
  },
333
349
  {
@@ -516,6 +532,25 @@
516
532
  "stateMutability": "view",
517
533
  "type": "function"
518
534
  },
535
+ {
536
+ "inputs": [
537
+ {
538
+ "internalType": "bytes[]",
539
+ "name": "data",
540
+ "type": "bytes[]"
541
+ }
542
+ ],
543
+ "name": "batchCalls",
544
+ "outputs": [
545
+ {
546
+ "internalType": "bytes[]",
547
+ "name": "results",
548
+ "type": "bytes[]"
549
+ }
550
+ ],
551
+ "stateMutability": "nonpayable",
552
+ "type": "function"
553
+ },
519
554
  {
520
555
  "inputs": [],
521
556
  "name": "decimals",