@lukso/lsp-smart-contracts 0.8.2 → 0.10.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 (179) hide show
  1. package/README.md +29 -8
  2. package/artifacts/LSP0ERC725Account.json +90 -50
  3. package/artifacts/LSP0ERC725AccountInit.json +90 -50
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP16UniversalFactory.json +31 -2
  7. package/artifacts/LSP1UniversalReceiverDelegateUP.json +19 -35
  8. package/artifacts/LSP1UniversalReceiverDelegateVault.json +13 -13
  9. package/artifacts/LSP4Compatibility.json +39 -40
  10. package/artifacts/LSP4DigitalAssetMetadata.json +39 -40
  11. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +39 -40
  12. package/artifacts/LSP6KeyManager.json +107 -8
  13. package/artifacts/LSP6KeyManagerInit.json +119 -20
  14. package/artifacts/LSP7CappedSupply.json +78 -38
  15. package/artifacts/LSP7CappedSupplyInitAbstract.json +78 -38
  16. package/artifacts/LSP7CompatibleERC20.json +78 -38
  17. package/artifacts/LSP7CompatibleERC20InitAbstract.json +78 -38
  18. package/artifacts/LSP7CompatibleERC20Mintable.json +80 -40
  19. package/artifacts/LSP7CompatibleERC20MintableInit.json +80 -40
  20. package/artifacts/LSP7DigitalAsset.json +78 -38
  21. package/artifacts/LSP7DigitalAssetInitAbstract.json +78 -38
  22. package/artifacts/LSP7Mintable.json +80 -40
  23. package/artifacts/LSP7MintableInit.json +80 -40
  24. package/artifacts/LSP8CappedSupply.json +39 -40
  25. package/artifacts/LSP8CappedSupplyInitAbstract.json +39 -40
  26. package/artifacts/LSP8CompatibleERC721.json +42 -43
  27. package/artifacts/LSP8CompatibleERC721InitAbstract.json +42 -43
  28. package/artifacts/LSP8CompatibleERC721Mintable.json +44 -45
  29. package/artifacts/LSP8CompatibleERC721MintableInit.json +44 -45
  30. package/artifacts/LSP8IdentifiableDigitalAsset.json +39 -40
  31. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +39 -40
  32. package/artifacts/LSP8Mintable.json +41 -42
  33. package/artifacts/LSP8MintableInit.json +41 -42
  34. package/artifacts/LSP9Vault.json +73 -55
  35. package/artifacts/LSP9VaultInit.json +73 -55
  36. package/artifacts/UniversalProfile.json +90 -50
  37. package/artifacts/UniversalProfileInit.json +90 -50
  38. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +62 -0
  39. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
  40. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +36 -6
  41. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +605 -219
  42. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +31 -5
  43. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +37 -3
  44. package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -1
  45. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +71 -60
  46. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +5 -7
  47. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +0 -1
  48. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +27 -4
  49. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +41 -84
  50. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +8 -8
  51. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -5
  52. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +0 -4
  53. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +129 -77
  54. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +45 -16
  55. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +12 -0
  56. package/contracts/LSP20CallVerification/ILSP20CallVerification.sol +30 -0
  57. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +83 -0
  58. package/contracts/LSP20CallVerification/LSP20Constants.sol +17 -0
  59. package/contracts/LSP20CallVerification/LSP20Errors.sol +15 -0
  60. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +26 -12
  61. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +0 -1
  62. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +76 -66
  63. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +12 -3
  64. package/contracts/LSP6KeyManager/LSP6Constants.sol +9 -3
  65. package/contracts/LSP6KeyManager/LSP6Errors.sol +22 -1
  66. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +172 -29
  67. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
  68. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +270 -100
  69. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +187 -67
  70. package/contracts/LSP6KeyManager/LSP6Utils.sol +31 -20
  71. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +79 -30
  72. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
  73. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -2
  74. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +24 -0
  75. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -2
  76. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -2
  77. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +3 -5
  78. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +3 -5
  79. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +27 -29
  80. package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +1 -1
  81. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -2
  82. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -2
  83. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +5 -5
  84. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +6 -6
  85. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -2
  86. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -2
  87. package/contracts/LSP9Vault/ILSP9Vault.sol +27 -0
  88. package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
  89. package/contracts/LSP9Vault/LSP9Vault.sol +11 -8
  90. package/contracts/LSP9Vault/LSP9VaultCore.sol +96 -71
  91. package/contracts/LSP9Vault/LSP9VaultInit.sol +2 -1
  92. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +19 -7
  93. package/contracts/UniversalProfileInitAbstract.sol +5 -0
  94. package/devdocs/Create2Factory.json +16 -0
  95. package/devdocs/LSP0ERC725Account.json +200 -0
  96. package/devdocs/LSP0ERC725AccountInit.json +203 -0
  97. package/devdocs/LSP11BasicSocialRecovery.json +146 -0
  98. package/devdocs/LSP11BasicSocialRecoveryInit.json +146 -0
  99. package/devdocs/LSP16UniversalFactory.json +51 -0
  100. package/devdocs/LSP1UniversalReceiverDelegateUP.json +80 -0
  101. package/devdocs/LSP1UniversalReceiverDelegateVault.json +62 -0
  102. package/devdocs/LSP4Compatibility.json +79 -0
  103. package/devdocs/LSP4DigitalAssetMetadata.json +84 -0
  104. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +77 -0
  105. package/devdocs/LSP6KeyManager.json +257 -0
  106. package/devdocs/LSP6KeyManagerInit.json +260 -0
  107. package/devdocs/LSP7CappedSupply.json +211 -0
  108. package/devdocs/LSP7CappedSupplyInitAbstract.json +206 -0
  109. package/devdocs/LSP7CompatibleERC20.json +225 -0
  110. package/devdocs/LSP7CompatibleERC20InitAbstract.json +218 -0
  111. package/devdocs/LSP7CompatibleERC20Mintable.json +217 -0
  112. package/devdocs/LSP7CompatibleERC20MintableInit.json +227 -0
  113. package/devdocs/LSP7DigitalAsset.json +210 -0
  114. package/devdocs/LSP7DigitalAssetInitAbstract.json +202 -0
  115. package/devdocs/LSP7Mintable.json +219 -0
  116. package/devdocs/LSP7MintableInit.json +220 -0
  117. package/devdocs/LSP8CappedSupply.json +232 -0
  118. package/devdocs/LSP8CappedSupplyInitAbstract.json +227 -0
  119. package/devdocs/LSP8CompatibleERC721.json +298 -0
  120. package/devdocs/LSP8CompatibleERC721InitAbstract.json +291 -0
  121. package/devdocs/LSP8CompatibleERC721Mintable.json +290 -0
  122. package/devdocs/LSP8CompatibleERC721MintableInit.json +300 -0
  123. package/devdocs/LSP8IdentifiableDigitalAsset.json +230 -0
  124. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +223 -0
  125. package/devdocs/LSP8Mintable.json +242 -0
  126. package/devdocs/LSP8MintableInit.json +245 -0
  127. package/devdocs/LSP9Vault.json +171 -0
  128. package/devdocs/LSP9VaultInit.json +175 -0
  129. package/devdocs/UniversalProfile.json +199 -0
  130. package/devdocs/UniversalProfileInit.json +202 -0
  131. package/devdocs/UniversalReceiverAddressStore.json +9 -0
  132. package/dist/constants.cjs.js +31569 -0
  133. package/dist/constants.d.ts +31681 -0
  134. package/dist/constants.es.js +31550 -0
  135. package/package.json +70 -52
  136. package/userdocs/Create2Factory.json +5 -0
  137. package/userdocs/LSP0ERC725Account.json +47 -0
  138. package/userdocs/LSP0ERC725AccountInit.json +47 -0
  139. package/userdocs/LSP11BasicSocialRecovery.json +29 -0
  140. package/userdocs/LSP11BasicSocialRecoveryInit.json +29 -0
  141. package/userdocs/LSP16UniversalFactory.json +5 -0
  142. package/userdocs/LSP1UniversalReceiverDelegateUP.json +10 -0
  143. package/userdocs/LSP1UniversalReceiverDelegateVault.json +10 -0
  144. package/userdocs/LSP4Compatibility.json +20 -0
  145. package/userdocs/LSP4DigitalAssetMetadata.json +23 -0
  146. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +20 -0
  147. package/userdocs/LSP6KeyManager.json +18 -0
  148. package/userdocs/LSP6KeyManagerInit.json +18 -0
  149. package/userdocs/LSP7CappedSupply.json +29 -0
  150. package/userdocs/LSP7CappedSupplyInitAbstract.json +26 -0
  151. package/userdocs/LSP7CompatibleERC20.json +35 -0
  152. package/userdocs/LSP7CompatibleERC20InitAbstract.json +32 -0
  153. package/userdocs/LSP7CompatibleERC20Mintable.json +32 -0
  154. package/userdocs/LSP7CompatibleERC20MintableInit.json +35 -0
  155. package/userdocs/LSP7DigitalAsset.json +29 -0
  156. package/userdocs/LSP7DigitalAssetInitAbstract.json +26 -0
  157. package/userdocs/LSP7Mintable.json +29 -0
  158. package/userdocs/LSP7MintableInit.json +29 -0
  159. package/userdocs/LSP8CappedSupply.json +23 -0
  160. package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
  161. package/userdocs/LSP8CompatibleERC721.json +29 -0
  162. package/userdocs/LSP8CompatibleERC721InitAbstract.json +26 -0
  163. package/userdocs/LSP8CompatibleERC721Mintable.json +26 -0
  164. package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -0
  165. package/userdocs/LSP8IdentifiableDigitalAsset.json +23 -0
  166. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
  167. package/userdocs/LSP8Mintable.json +23 -0
  168. package/userdocs/LSP8MintableInit.json +23 -0
  169. package/userdocs/LSP9Vault.json +38 -0
  170. package/userdocs/LSP9VaultInit.json +38 -0
  171. package/userdocs/UniversalProfile.json +50 -0
  172. package/userdocs/UniversalProfileInit.json +50 -0
  173. package/userdocs/UniversalReceiverAddressStore.json +5 -0
  174. package/CONTRIBUTING.md +0 -57
  175. package/common/constants.d.ts +0 -738
  176. package/common/constants.js +0 -785
  177. package/contracts/Utils/GasLib.sol +0 -17
  178. package/module/constants.d.ts +0 -738
  179. package/module/constants.js +0 -782
@@ -4,21 +4,20 @@
4
4
  "sourceName": "contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol",
5
5
  "abi": [
6
6
  {
7
- "inputs": [
8
- {
9
- "internalType": "uint256",
10
- "name": "dataKeysLength",
11
- "type": "uint256"
12
- },
13
- {
14
- "internalType": "uint256",
15
- "name": "dataValuesLength",
16
- "type": "uint256"
17
- }
18
- ],
7
+ "inputs": [],
8
+ "name": "ERC725Y_DataKeysValuesEmptyArray",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
19
13
  "name": "ERC725Y_DataKeysValuesLengthMismatch",
20
14
  "type": "error"
21
15
  },
16
+ {
17
+ "inputs": [],
18
+ "name": "ERC725Y_MsgValueDisallowed",
19
+ "type": "error"
20
+ },
22
21
  {
23
22
  "inputs": [],
24
23
  "name": "LSP4TokenNameNotEditable",
@@ -101,6 +100,11 @@
101
100
  "name": "LSP7CappedSupplyRequired",
102
101
  "type": "error"
103
102
  },
103
+ {
104
+ "inputs": [],
105
+ "name": "LSP7DecreasedAllowanceBelowZero",
106
+ "type": "error"
107
+ },
104
108
  {
105
109
  "inputs": [],
106
110
  "name": "LSP7InvalidTransferBatch",
@@ -335,20 +339,19 @@
335
339
  {
336
340
  "inputs": [
337
341
  {
338
- "internalType": "bytes32[]",
339
- "name": "dataKeys",
340
- "type": "bytes32[]"
341
- }
342
- ],
343
- "name": "getData",
344
- "outputs": [
342
+ "internalType": "address",
343
+ "name": "operator",
344
+ "type": "address"
345
+ },
345
346
  {
346
- "internalType": "bytes[]",
347
- "name": "dataValues",
348
- "type": "bytes[]"
347
+ "internalType": "uint256",
348
+ "name": "substractedAmount",
349
+ "type": "uint256"
349
350
  }
350
351
  ],
351
- "stateMutability": "view",
352
+ "name": "decreaseAllowance",
353
+ "outputs": [],
354
+ "stateMutability": "nonpayable",
352
355
  "type": "function"
353
356
  },
354
357
  {
@@ -370,6 +373,43 @@
370
373
  "stateMutability": "view",
371
374
  "type": "function"
372
375
  },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "bytes32[]",
380
+ "name": "dataKeys",
381
+ "type": "bytes32[]"
382
+ }
383
+ ],
384
+ "name": "getDataBatch",
385
+ "outputs": [
386
+ {
387
+ "internalType": "bytes[]",
388
+ "name": "dataValues",
389
+ "type": "bytes[]"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "address",
399
+ "name": "operator",
400
+ "type": "address"
401
+ },
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "addedAmount",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "name": "increaseAllowance",
409
+ "outputs": [],
410
+ "stateMutability": "nonpayable",
411
+ "type": "function"
412
+ },
373
413
  {
374
414
  "inputs": [],
375
415
  "name": "owner",
@@ -406,37 +446,37 @@
406
446
  {
407
447
  "inputs": [
408
448
  {
409
- "internalType": "bytes32[]",
410
- "name": "dataKeys",
411
- "type": "bytes32[]"
449
+ "internalType": "bytes32",
450
+ "name": "dataKey",
451
+ "type": "bytes32"
412
452
  },
413
453
  {
414
- "internalType": "bytes[]",
415
- "name": "dataValues",
416
- "type": "bytes[]"
454
+ "internalType": "bytes",
455
+ "name": "dataValue",
456
+ "type": "bytes"
417
457
  }
418
458
  ],
419
459
  "name": "setData",
420
460
  "outputs": [],
421
- "stateMutability": "nonpayable",
461
+ "stateMutability": "payable",
422
462
  "type": "function"
423
463
  },
424
464
  {
425
465
  "inputs": [
426
466
  {
427
- "internalType": "bytes32",
428
- "name": "dataKey",
429
- "type": "bytes32"
467
+ "internalType": "bytes32[]",
468
+ "name": "dataKeys",
469
+ "type": "bytes32[]"
430
470
  },
431
471
  {
432
- "internalType": "bytes",
433
- "name": "dataValue",
434
- "type": "bytes"
472
+ "internalType": "bytes[]",
473
+ "name": "dataValues",
474
+ "type": "bytes[]"
435
475
  }
436
476
  ],
437
- "name": "setData",
477
+ "name": "setDataBatch",
438
478
  "outputs": [],
439
- "stateMutability": "nonpayable",
479
+ "stateMutability": "payable",
440
480
  "type": "function"
441
481
  },
442
482
  {
@@ -4,21 +4,20 @@
4
4
  "sourceName": "contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol",
5
5
  "abi": [
6
6
  {
7
- "inputs": [
8
- {
9
- "internalType": "uint256",
10
- "name": "dataKeysLength",
11
- "type": "uint256"
12
- },
13
- {
14
- "internalType": "uint256",
15
- "name": "dataValuesLength",
16
- "type": "uint256"
17
- }
18
- ],
7
+ "inputs": [],
8
+ "name": "ERC725Y_DataKeysValuesEmptyArray",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
19
13
  "name": "ERC725Y_DataKeysValuesLengthMismatch",
20
14
  "type": "error"
21
15
  },
16
+ {
17
+ "inputs": [],
18
+ "name": "ERC725Y_MsgValueDisallowed",
19
+ "type": "error"
20
+ },
22
21
  {
23
22
  "inputs": [],
24
23
  "name": "LSP4TokenNameNotEditable",
@@ -101,6 +100,11 @@
101
100
  "name": "LSP7CappedSupplyRequired",
102
101
  "type": "error"
103
102
  },
103
+ {
104
+ "inputs": [],
105
+ "name": "LSP7DecreasedAllowanceBelowZero",
106
+ "type": "error"
107
+ },
104
108
  {
105
109
  "inputs": [],
106
110
  "name": "LSP7InvalidTransferBatch",
@@ -348,20 +352,19 @@
348
352
  {
349
353
  "inputs": [
350
354
  {
351
- "internalType": "bytes32[]",
352
- "name": "dataKeys",
353
- "type": "bytes32[]"
354
- }
355
- ],
356
- "name": "getData",
357
- "outputs": [
355
+ "internalType": "address",
356
+ "name": "operator",
357
+ "type": "address"
358
+ },
358
359
  {
359
- "internalType": "bytes[]",
360
- "name": "dataValues",
361
- "type": "bytes[]"
360
+ "internalType": "uint256",
361
+ "name": "substractedAmount",
362
+ "type": "uint256"
362
363
  }
363
364
  ],
364
- "stateMutability": "view",
365
+ "name": "decreaseAllowance",
366
+ "outputs": [],
367
+ "stateMutability": "nonpayable",
365
368
  "type": "function"
366
369
  },
367
370
  {
@@ -383,6 +386,43 @@
383
386
  "stateMutability": "view",
384
387
  "type": "function"
385
388
  },
389
+ {
390
+ "inputs": [
391
+ {
392
+ "internalType": "bytes32[]",
393
+ "name": "dataKeys",
394
+ "type": "bytes32[]"
395
+ }
396
+ ],
397
+ "name": "getDataBatch",
398
+ "outputs": [
399
+ {
400
+ "internalType": "bytes[]",
401
+ "name": "dataValues",
402
+ "type": "bytes[]"
403
+ }
404
+ ],
405
+ "stateMutability": "view",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "address",
412
+ "name": "operator",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "addedAmount",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "name": "increaseAllowance",
422
+ "outputs": [],
423
+ "stateMutability": "nonpayable",
424
+ "type": "function"
425
+ },
386
426
  {
387
427
  "inputs": [],
388
428
  "name": "owner",
@@ -419,37 +459,37 @@
419
459
  {
420
460
  "inputs": [
421
461
  {
422
- "internalType": "bytes32[]",
423
- "name": "dataKeys",
424
- "type": "bytes32[]"
462
+ "internalType": "bytes32",
463
+ "name": "dataKey",
464
+ "type": "bytes32"
425
465
  },
426
466
  {
427
- "internalType": "bytes[]",
428
- "name": "dataValues",
429
- "type": "bytes[]"
467
+ "internalType": "bytes",
468
+ "name": "dataValue",
469
+ "type": "bytes"
430
470
  }
431
471
  ],
432
472
  "name": "setData",
433
473
  "outputs": [],
434
- "stateMutability": "nonpayable",
474
+ "stateMutability": "payable",
435
475
  "type": "function"
436
476
  },
437
477
  {
438
478
  "inputs": [
439
479
  {
440
- "internalType": "bytes32",
441
- "name": "dataKey",
442
- "type": "bytes32"
480
+ "internalType": "bytes32[]",
481
+ "name": "dataKeys",
482
+ "type": "bytes32[]"
443
483
  },
444
484
  {
445
- "internalType": "bytes",
446
- "name": "dataValue",
447
- "type": "bytes"
485
+ "internalType": "bytes[]",
486
+ "name": "dataValues",
487
+ "type": "bytes[]"
448
488
  }
449
489
  ],
450
- "name": "setData",
490
+ "name": "setDataBatch",
451
491
  "outputs": [],
452
- "stateMutability": "nonpayable",
492
+ "stateMutability": "payable",
453
493
  "type": "function"
454
494
  },
455
495
  {
@@ -4,21 +4,20 @@
4
4
  "sourceName": "contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol",
5
5
  "abi": [
6
6
  {
7
- "inputs": [
8
- {
9
- "internalType": "uint256",
10
- "name": "dataKeysLength",
11
- "type": "uint256"
12
- },
13
- {
14
- "internalType": "uint256",
15
- "name": "dataValuesLength",
16
- "type": "uint256"
17
- }
18
- ],
7
+ "inputs": [],
8
+ "name": "ERC725Y_DataKeysValuesEmptyArray",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
19
13
  "name": "ERC725Y_DataKeysValuesLengthMismatch",
20
14
  "type": "error"
21
15
  },
16
+ {
17
+ "inputs": [],
18
+ "name": "ERC725Y_MsgValueDisallowed",
19
+ "type": "error"
20
+ },
22
21
  {
23
22
  "inputs": [],
24
23
  "name": "LSP4TokenNameNotEditable",
@@ -91,6 +90,11 @@
91
90
  "name": "LSP7CannotUseAddressZeroAsOperator",
92
91
  "type": "error"
93
92
  },
93
+ {
94
+ "inputs": [],
95
+ "name": "LSP7DecreasedAllowanceBelowZero",
96
+ "type": "error"
97
+ },
94
98
  {
95
99
  "inputs": [],
96
100
  "name": "LSP7InvalidTransferBatch",
@@ -423,20 +427,19 @@
423
427
  {
424
428
  "inputs": [
425
429
  {
426
- "internalType": "bytes32[]",
427
- "name": "dataKeys",
428
- "type": "bytes32[]"
429
- }
430
- ],
431
- "name": "getData",
432
- "outputs": [
430
+ "internalType": "address",
431
+ "name": "operator",
432
+ "type": "address"
433
+ },
433
434
  {
434
- "internalType": "bytes[]",
435
- "name": "dataValues",
436
- "type": "bytes[]"
435
+ "internalType": "uint256",
436
+ "name": "substractedAmount",
437
+ "type": "uint256"
437
438
  }
438
439
  ],
439
- "stateMutability": "view",
440
+ "name": "decreaseAllowance",
441
+ "outputs": [],
442
+ "stateMutability": "nonpayable",
440
443
  "type": "function"
441
444
  },
442
445
  {
@@ -458,6 +461,43 @@
458
461
  "stateMutability": "view",
459
462
  "type": "function"
460
463
  },
464
+ {
465
+ "inputs": [
466
+ {
467
+ "internalType": "bytes32[]",
468
+ "name": "dataKeys",
469
+ "type": "bytes32[]"
470
+ }
471
+ ],
472
+ "name": "getDataBatch",
473
+ "outputs": [
474
+ {
475
+ "internalType": "bytes[]",
476
+ "name": "dataValues",
477
+ "type": "bytes[]"
478
+ }
479
+ ],
480
+ "stateMutability": "view",
481
+ "type": "function"
482
+ },
483
+ {
484
+ "inputs": [
485
+ {
486
+ "internalType": "address",
487
+ "name": "operator",
488
+ "type": "address"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "addedAmount",
493
+ "type": "uint256"
494
+ }
495
+ ],
496
+ "name": "increaseAllowance",
497
+ "outputs": [],
498
+ "stateMutability": "nonpayable",
499
+ "type": "function"
500
+ },
461
501
  {
462
502
  "inputs": [],
463
503
  "name": "name",
@@ -507,37 +547,37 @@
507
547
  {
508
548
  "inputs": [
509
549
  {
510
- "internalType": "bytes32[]",
511
- "name": "dataKeys",
512
- "type": "bytes32[]"
550
+ "internalType": "bytes32",
551
+ "name": "dataKey",
552
+ "type": "bytes32"
513
553
  },
514
554
  {
515
- "internalType": "bytes[]",
516
- "name": "dataValues",
517
- "type": "bytes[]"
555
+ "internalType": "bytes",
556
+ "name": "dataValue",
557
+ "type": "bytes"
518
558
  }
519
559
  ],
520
560
  "name": "setData",
521
561
  "outputs": [],
522
- "stateMutability": "nonpayable",
562
+ "stateMutability": "payable",
523
563
  "type": "function"
524
564
  },
525
565
  {
526
566
  "inputs": [
527
567
  {
528
- "internalType": "bytes32",
529
- "name": "dataKey",
530
- "type": "bytes32"
568
+ "internalType": "bytes32[]",
569
+ "name": "dataKeys",
570
+ "type": "bytes32[]"
531
571
  },
532
572
  {
533
- "internalType": "bytes",
534
- "name": "dataValue",
535
- "type": "bytes"
573
+ "internalType": "bytes[]",
574
+ "name": "dataValues",
575
+ "type": "bytes[]"
536
576
  }
537
577
  ],
538
- "name": "setData",
578
+ "name": "setDataBatch",
539
579
  "outputs": [],
540
- "stateMutability": "nonpayable",
580
+ "stateMutability": "payable",
541
581
  "type": "function"
542
582
  },
543
583
  {
@@ -4,21 +4,20 @@
4
4
  "sourceName": "contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol",
5
5
  "abi": [
6
6
  {
7
- "inputs": [
8
- {
9
- "internalType": "uint256",
10
- "name": "dataKeysLength",
11
- "type": "uint256"
12
- },
13
- {
14
- "internalType": "uint256",
15
- "name": "dataValuesLength",
16
- "type": "uint256"
17
- }
18
- ],
7
+ "inputs": [],
8
+ "name": "ERC725Y_DataKeysValuesEmptyArray",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
19
13
  "name": "ERC725Y_DataKeysValuesLengthMismatch",
20
14
  "type": "error"
21
15
  },
16
+ {
17
+ "inputs": [],
18
+ "name": "ERC725Y_MsgValueDisallowed",
19
+ "type": "error"
20
+ },
22
21
  {
23
22
  "inputs": [],
24
23
  "name": "LSP4TokenNameNotEditable",
@@ -91,6 +90,11 @@
91
90
  "name": "LSP7CannotUseAddressZeroAsOperator",
92
91
  "type": "error"
93
92
  },
93
+ {
94
+ "inputs": [],
95
+ "name": "LSP7DecreasedAllowanceBelowZero",
96
+ "type": "error"
97
+ },
94
98
  {
95
99
  "inputs": [],
96
100
  "name": "LSP7InvalidTransferBatch",
@@ -436,20 +440,19 @@
436
440
  {
437
441
  "inputs": [
438
442
  {
439
- "internalType": "bytes32[]",
440
- "name": "dataKeys",
441
- "type": "bytes32[]"
442
- }
443
- ],
444
- "name": "getData",
445
- "outputs": [
443
+ "internalType": "address",
444
+ "name": "operator",
445
+ "type": "address"
446
+ },
446
447
  {
447
- "internalType": "bytes[]",
448
- "name": "dataValues",
449
- "type": "bytes[]"
448
+ "internalType": "uint256",
449
+ "name": "substractedAmount",
450
+ "type": "uint256"
450
451
  }
451
452
  ],
452
- "stateMutability": "view",
453
+ "name": "decreaseAllowance",
454
+ "outputs": [],
455
+ "stateMutability": "nonpayable",
453
456
  "type": "function"
454
457
  },
455
458
  {
@@ -471,6 +474,43 @@
471
474
  "stateMutability": "view",
472
475
  "type": "function"
473
476
  },
477
+ {
478
+ "inputs": [
479
+ {
480
+ "internalType": "bytes32[]",
481
+ "name": "dataKeys",
482
+ "type": "bytes32[]"
483
+ }
484
+ ],
485
+ "name": "getDataBatch",
486
+ "outputs": [
487
+ {
488
+ "internalType": "bytes[]",
489
+ "name": "dataValues",
490
+ "type": "bytes[]"
491
+ }
492
+ ],
493
+ "stateMutability": "view",
494
+ "type": "function"
495
+ },
496
+ {
497
+ "inputs": [
498
+ {
499
+ "internalType": "address",
500
+ "name": "operator",
501
+ "type": "address"
502
+ },
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "addedAmount",
506
+ "type": "uint256"
507
+ }
508
+ ],
509
+ "name": "increaseAllowance",
510
+ "outputs": [],
511
+ "stateMutability": "nonpayable",
512
+ "type": "function"
513
+ },
474
514
  {
475
515
  "inputs": [],
476
516
  "name": "name",
@@ -520,37 +560,37 @@
520
560
  {
521
561
  "inputs": [
522
562
  {
523
- "internalType": "bytes32[]",
524
- "name": "dataKeys",
525
- "type": "bytes32[]"
563
+ "internalType": "bytes32",
564
+ "name": "dataKey",
565
+ "type": "bytes32"
526
566
  },
527
567
  {
528
- "internalType": "bytes[]",
529
- "name": "dataValues",
530
- "type": "bytes[]"
568
+ "internalType": "bytes",
569
+ "name": "dataValue",
570
+ "type": "bytes"
531
571
  }
532
572
  ],
533
573
  "name": "setData",
534
574
  "outputs": [],
535
- "stateMutability": "nonpayable",
575
+ "stateMutability": "payable",
536
576
  "type": "function"
537
577
  },
538
578
  {
539
579
  "inputs": [
540
580
  {
541
- "internalType": "bytes32",
542
- "name": "dataKey",
543
- "type": "bytes32"
581
+ "internalType": "bytes32[]",
582
+ "name": "dataKeys",
583
+ "type": "bytes32[]"
544
584
  },
545
585
  {
546
- "internalType": "bytes",
547
- "name": "dataValue",
548
- "type": "bytes"
586
+ "internalType": "bytes[]",
587
+ "name": "dataValues",
588
+ "type": "bytes[]"
549
589
  }
550
590
  ],
551
- "name": "setData",
591
+ "name": "setDataBatch",
552
592
  "outputs": [],
553
- "stateMutability": "nonpayable",
593
+ "stateMutability": "payable",
554
594
  "type": "function"
555
595
  },
556
596
  {