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