@lukso/lsp-smart-contracts 0.14.0 → 0.15.0-rc.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 (300) hide show
  1. package/README.md +2 -192
  2. package/artifacts/LSP0ERC725Account.json +3 -3
  3. package/artifacts/LSP0ERC725AccountInit.json +3 -3
  4. package/artifacts/LSP11BasicSocialRecovery.json +2 -2
  5. package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
  6. package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -3
  7. package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -3
  8. package/artifacts/LSP23LinkedContractsFactory.json +3 -3
  9. package/artifacts/LSP4DigitalAssetMetadata.json +1 -1
  10. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +1 -1
  11. package/artifacts/LSP6KeyManager.json +3 -3
  12. package/artifacts/LSP6KeyManagerInit.json +3 -3
  13. package/artifacts/LSP7CappedSupply.json +53 -6
  14. package/artifacts/LSP7CappedSupplyInitAbstract.json +53 -6
  15. package/artifacts/LSP7DigitalAsset.json +52 -5
  16. package/artifacts/LSP7DigitalAssetInitAbstract.json +52 -5
  17. package/artifacts/LSP7Mintable.json +54 -7
  18. package/artifacts/LSP7MintableInit.json +54 -7
  19. package/artifacts/LSP8CappedSupply.json +43 -6
  20. package/artifacts/LSP8CappedSupplyInitAbstract.json +43 -6
  21. package/artifacts/LSP8IdentifiableDigitalAsset.json +43 -6
  22. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +43 -6
  23. package/artifacts/LSP8Mintable.json +45 -8
  24. package/artifacts/LSP8MintableInit.json +45 -8
  25. package/artifacts/LSP9Vault.json +3 -3
  26. package/artifacts/LSP9VaultInit.json +3 -3
  27. package/artifacts/UniversalProfile.json +3 -3
  28. package/artifacts/UniversalProfileInit.json +3 -3
  29. package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +1 -17
  30. package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -23
  31. package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +1 -53
  32. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -873
  33. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -47
  34. package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +1 -49
  35. package/contracts/LSP10ReceivedVaults/LSP10Constants.sol +1 -7
  36. package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +1 -208
  37. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +4 -2
  38. package/contracts/LSP12IssuedAssets/LSP12Constants.sol +4 -0
  39. package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +1 -75
  40. package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -12
  41. package/contracts/LSP14Ownable2Step/LSP14Errors.sol +1 -29
  42. package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +1 -212
  43. package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +1 -417
  44. package/contracts/LSP17ContractExtension/LSP17Constants.sol +1 -14
  45. package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -14
  46. package/contracts/LSP17ContractExtension/LSP17Extendable.sol +1 -117
  47. package/contracts/LSP17ContractExtension/LSP17Extension.sol +1 -55
  48. package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -16
  49. package/contracts/LSP17Extensions/Extension4337.sol +1 -123
  50. package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +1 -13
  51. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -37
  52. package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +1 -21
  53. package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -11
  54. package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +1 -7
  55. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +1 -292
  56. package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +1 -217
  57. package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +1 -84
  58. package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +1 -36
  59. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -117
  60. package/contracts/LSP20CallVerification/LSP20Constants.sol +1 -14
  61. package/contracts/LSP20CallVerification/LSP20Errors.sol +1 -18
  62. package/contracts/LSP23LinkedContractsFactory/ILSP23LinkedContractsFactory.sol +1 -189
  63. package/contracts/LSP23LinkedContractsFactory/IPostDeploymentModule.sol +1 -15
  64. package/contracts/LSP23LinkedContractsFactory/LSP23Errors.sol +1 -21
  65. package/contracts/LSP23LinkedContractsFactory/LSP23LinkedContractsFactory.sol +1 -393
  66. package/contracts/LSP23LinkedContractsFactory/modules/README.md +23 -0
  67. package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfileInitPostDeploymentModule.sol +1 -60
  68. package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfilePostDeploymentModule.sol +1 -58
  69. package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +1 -65
  70. package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -5
  71. package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +1 -14
  72. package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -141
  73. package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -445
  74. package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -8
  75. package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -30
  76. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +1 -59
  77. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +1 -44
  78. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +1 -65
  79. package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +1 -20
  80. package/contracts/LSP5ReceivedAssets/LSP5Constants.sol +1 -7
  81. package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +1 -206
  82. package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +1 -60
  83. package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -61
  84. package/contracts/LSP6KeyManager/LSP6Errors.sol +1 -222
  85. package/contracts/LSP6KeyManager/LSP6KeyManager.sol +1 -23
  86. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -694
  87. package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +1 -29
  88. package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -21
  89. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -411
  90. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +1 -24
  91. package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +1 -27
  92. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +1 -848
  93. package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -293
  94. package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +1 -302
  95. package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -13
  96. package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +1 -193
  97. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +1 -728
  98. package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +1 -189
  99. package/contracts/LSP7DigitalAsset/LSP7Errors.sol +1 -87
  100. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +1 -23
  101. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +1 -24
  102. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -80
  103. package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -83
  104. package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +1 -29
  105. package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +1 -50
  106. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -41
  107. package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +1 -54
  108. package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +1 -325
  109. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +1 -38
  110. package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +1 -102
  111. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +1 -236
  112. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +1 -787
  113. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +1 -243
  114. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -27
  115. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -21
  116. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -82
  117. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -85
  118. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +1 -66
  119. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +1 -61
  120. package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +1 -30
  121. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +1 -57
  122. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +1 -40
  123. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +1 -59
  124. package/contracts/LSP9Vault/ILSP9Vault.sol +1 -16
  125. package/contracts/LSP9Vault/LSP9Constants.sol +1 -26
  126. package/contracts/LSP9Vault/LSP9Errors.sol +1 -6
  127. package/contracts/LSP9Vault/LSP9Vault.sol +1 -63
  128. package/contracts/LSP9Vault/LSP9VaultCore.sol +1 -684
  129. package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -33
  130. package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +1 -65
  131. package/contracts/UniversalProfile.sol +1 -37
  132. package/contracts/UniversalProfileInit.sol +1 -39
  133. package/contracts/UniversalProfileInitAbstract.sol +1 -44
  134. package/dist/constants.cjs +75 -0
  135. package/dist/constants.d.cts +121 -0
  136. package/dist/constants.d.mts +121 -0
  137. package/dist/constants.d.ts +107 -40105
  138. package/dist/constants.mjs +70 -0
  139. package/package.json +58 -116
  140. package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725Account.ts +694 -0
  141. package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInit.ts +740 -0
  142. package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateUP.ts +139 -0
  143. package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateVault.ts +139 -0
  144. package/types/@lukso/lsp23-contracts/contracts/LSP23LinkedContractsFactory.ts +448 -0
  145. package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadata.ts +274 -0
  146. package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
  147. package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManager.ts +355 -0
  148. package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManagerInit.ts +398 -0
  149. package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAsset.ts +698 -0
  150. package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAssetInitAbstract.ts +729 -0
  151. package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupply.ts +712 -0
  152. package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +743 -0
  153. package/types/@lukso/lsp7-contracts/contracts/presets/LSP7Mintable.ts +717 -0
  154. package/types/@lukso/lsp7-contracts/contracts/presets/LSP7MintableInit.ts +779 -0
  155. package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAsset.ts +778 -0
  156. package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
  157. package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupply.ts +792 -0
  158. package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupplyInitAbstract.ts +824 -0
  159. package/types/@lukso/lsp8-contracts/contracts/presets/LSP8Mintable.ts +797 -0
  160. package/types/@lukso/lsp8-contracts/contracts/presets/LSP8MintableInit.ts +860 -0
  161. package/types/@lukso/lsp9-contracts/contracts/LSP9Vault.ts +672 -0
  162. package/types/@lukso/lsp9-contracts/contracts/LSP9VaultInit.ts +714 -0
  163. package/types/@lukso/universalprofile-contracts/contracts/UniversalProfile.ts +694 -0
  164. package/types/@lukso/universalprofile-contracts/contracts/UniversalProfileInit.ts +740 -0
  165. package/types/LSP0ERC725Account.ts +694 -0
  166. package/types/LSP0ERC725AccountInit.ts +740 -0
  167. package/types/LSP11BasicSocialRecovery.ts +596 -0
  168. package/types/LSP11BasicSocialRecoveryInit.ts +646 -0
  169. package/types/LSP1UniversalReceiverDelegateUP.ts +139 -0
  170. package/types/LSP1UniversalReceiverDelegateVault.ts +139 -0
  171. package/types/LSP23LinkedContractsFactory.ts +448 -0
  172. package/types/LSP4DigitalAssetMetadata.ts +274 -0
  173. package/types/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
  174. package/types/LSP6KeyManager.ts +355 -0
  175. package/types/LSP6KeyManagerInit.ts +398 -0
  176. package/types/LSP7CappedSupply.ts +712 -0
  177. package/types/LSP7CappedSupplyInitAbstract.ts +743 -0
  178. package/types/LSP7DigitalAsset.ts +698 -0
  179. package/types/LSP7DigitalAssetInitAbstract.ts +729 -0
  180. package/types/LSP7Mintable.ts +717 -0
  181. package/types/LSP7MintableInit.ts +779 -0
  182. package/types/LSP8CappedSupply.ts +792 -0
  183. package/types/LSP8CappedSupplyInitAbstract.ts +824 -0
  184. package/types/LSP8IdentifiableDigitalAsset.ts +778 -0
  185. package/types/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
  186. package/types/LSP8Mintable.ts +797 -0
  187. package/types/LSP8MintableInit.ts +860 -0
  188. package/types/LSP9Vault.ts +672 -0
  189. package/types/LSP9VaultInit.ts +714 -0
  190. package/types/UniversalProfile.ts +694 -0
  191. package/types/UniversalProfileInit.ts +740 -0
  192. package/types/common.ts +131 -0
  193. package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.ts +596 -0
  194. package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.ts +646 -0
  195. package/types/index.ts +58 -0
  196. package/LICENSE +0 -201
  197. package/artifacts/Create2Factory.json +0 -107
  198. package/artifacts/LSP16UniversalFactory.json +0 -271
  199. package/artifacts/LSP7CompatibleERC20.json +0 -935
  200. package/artifacts/LSP7CompatibleERC20InitAbstract.json +0 -948
  201. package/artifacts/LSP7CompatibleERC20Mintable.json +0 -989
  202. package/artifacts/LSP7CompatibleERC20MintableInit.json +0 -1009
  203. package/artifacts/LSP8CompatibleERC721.json +0 -1191
  204. package/artifacts/LSP8CompatibleERC721InitAbstract.json +0 -1204
  205. package/artifacts/LSP8CompatibleERC721Mintable.json +0 -1261
  206. package/artifacts/LSP8CompatibleERC721MintableInit.json +0 -1281
  207. package/artifacts/UniversalReceiverAddressStore.json +0 -209
  208. package/contracts/Factories/Create2Factory.sol +0 -88
  209. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +0 -260
  210. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +0 -273
  211. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +0 -37
  212. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +0 -44
  213. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +0 -43
  214. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +0 -512
  215. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +0 -514
  216. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +0 -54
  217. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +0 -47
  218. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +0 -52
  219. package/contracts/Legacy/Registries/AddressRegistry.sol +0 -52
  220. package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +0 -37
  221. package/contracts/Legacy/UniversalReceiverAddressStore.sol +0 -64
  222. package/contracts/Version.sol +0 -17
  223. package/devdocs/Create2Factory.json +0 -16
  224. package/devdocs/LSP0ERC725Account.json +0 -260
  225. package/devdocs/LSP0ERC725AccountInit.json +0 -263
  226. package/devdocs/LSP11BasicSocialRecovery.json +0 -159
  227. package/devdocs/LSP11BasicSocialRecoveryInit.json +0 -159
  228. package/devdocs/LSP16UniversalFactory.json +0 -116
  229. package/devdocs/LSP1UniversalReceiverDelegateUP.json +0 -34
  230. package/devdocs/LSP1UniversalReceiverDelegateVault.json +0 -33
  231. package/devdocs/LSP23LinkedContractsFactory.json +0 -81
  232. package/devdocs/LSP4DigitalAssetMetadata.json +0 -112
  233. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -104
  234. package/devdocs/LSP6KeyManager.json +0 -305
  235. package/devdocs/LSP6KeyManagerInit.json +0 -308
  236. package/devdocs/LSP7CappedSupply.json +0 -306
  237. package/devdocs/LSP7CappedSupplyInitAbstract.json +0 -299
  238. package/devdocs/LSP7CompatibleERC20.json +0 -346
  239. package/devdocs/LSP7CompatibleERC20InitAbstract.json +0 -338
  240. package/devdocs/LSP7CompatibleERC20Mintable.json +0 -349
  241. package/devdocs/LSP7CompatibleERC20MintableInit.json +0 -352
  242. package/devdocs/LSP7DigitalAsset.json +0 -294
  243. package/devdocs/LSP7DigitalAssetInitAbstract.json +0 -285
  244. package/devdocs/LSP7Mintable.json +0 -296
  245. package/devdocs/LSP7MintableInit.json +0 -298
  246. package/devdocs/LSP8CappedSupply.json +0 -356
  247. package/devdocs/LSP8CappedSupplyInitAbstract.json +0 -349
  248. package/devdocs/LSP8CompatibleERC721.json +0 -437
  249. package/devdocs/LSP8CompatibleERC721InitAbstract.json +0 -428
  250. package/devdocs/LSP8CompatibleERC721Mintable.json +0 -446
  251. package/devdocs/LSP8CompatibleERC721MintableInit.json +0 -449
  252. package/devdocs/LSP8IdentifiableDigitalAsset.json +0 -346
  253. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -335
  254. package/devdocs/LSP8Mintable.json +0 -356
  255. package/devdocs/LSP8MintableInit.json +0 -359
  256. package/devdocs/LSP9Vault.json +0 -236
  257. package/devdocs/LSP9VaultInit.json +0 -239
  258. package/devdocs/UniversalProfile.json +0 -260
  259. package/devdocs/UniversalProfileInit.json +0 -263
  260. package/devdocs/UniversalReceiverAddressStore.json +0 -9
  261. package/dist/constants.cjs.js +0 -40758
  262. package/dist/constants.es.js +0 -40737
  263. package/userdocs/Create2Factory.json +0 -5
  264. package/userdocs/LSP0ERC725Account.json +0 -91
  265. package/userdocs/LSP0ERC725AccountInit.json +0 -94
  266. package/userdocs/LSP11BasicSocialRecovery.json +0 -29
  267. package/userdocs/LSP11BasicSocialRecoveryInit.json +0 -29
  268. package/userdocs/LSP16UniversalFactory.json +0 -30
  269. package/userdocs/LSP1UniversalReceiverDelegateUP.json +0 -19
  270. package/userdocs/LSP1UniversalReceiverDelegateVault.json +0 -19
  271. package/userdocs/LSP23LinkedContractsFactory.json +0 -29
  272. package/userdocs/LSP4DigitalAssetMetadata.json +0 -26
  273. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -23
  274. package/userdocs/LSP6KeyManager.json +0 -154
  275. package/userdocs/LSP6KeyManagerInit.json +0 -157
  276. package/userdocs/LSP7CappedSupply.json +0 -60
  277. package/userdocs/LSP7CappedSupplyInitAbstract.json +0 -57
  278. package/userdocs/LSP7CompatibleERC20.json +0 -47
  279. package/userdocs/LSP7CompatibleERC20InitAbstract.json +0 -44
  280. package/userdocs/LSP7CompatibleERC20Mintable.json +0 -47
  281. package/userdocs/LSP7CompatibleERC20MintableInit.json +0 -47
  282. package/userdocs/LSP7DigitalAsset.json +0 -47
  283. package/userdocs/LSP7DigitalAssetInitAbstract.json +0 -44
  284. package/userdocs/LSP7Mintable.json +0 -47
  285. package/userdocs/LSP7MintableInit.json +0 -47
  286. package/userdocs/LSP8CappedSupply.json +0 -66
  287. package/userdocs/LSP8CappedSupplyInitAbstract.json +0 -63
  288. package/userdocs/LSP8CompatibleERC721.json +0 -80
  289. package/userdocs/LSP8CompatibleERC721InitAbstract.json +0 -77
  290. package/userdocs/LSP8CompatibleERC721Mintable.json +0 -83
  291. package/userdocs/LSP8CompatibleERC721MintableInit.json +0 -83
  292. package/userdocs/LSP8IdentifiableDigitalAsset.json +0 -53
  293. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -50
  294. package/userdocs/LSP8Mintable.json +0 -56
  295. package/userdocs/LSP8MintableInit.json +0 -56
  296. package/userdocs/LSP9Vault.json +0 -93
  297. package/userdocs/LSP9VaultInit.json +0 -93
  298. package/userdocs/UniversalProfile.json +0 -91
  299. package/userdocs/UniversalProfileInit.json +0 -94
  300. package/userdocs/UniversalReceiverAddressStore.json +0 -5
@@ -1,57 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
-
3
2
  pragma solidity ^0.8.4;
4
3
 
5
- // interfaces
6
- import {ILSP7Mintable} from "./ILSP7Mintable.sol";
7
-
8
- // modules
9
- import {
10
- LSP7DigitalAssetInitAbstract
11
- } from "../LSP7DigitalAssetInitAbstract.sol";
12
-
13
- /**
14
- * @dev LSP7DigitalAsset deployable preset contract (inheritable proxy version) with a public {mint} function callable only by the contract {owner}.
15
- */
16
- abstract contract LSP7MintableInitAbstract is
17
- LSP7DigitalAssetInitAbstract,
18
- ILSP7Mintable
19
- {
20
- /**
21
- * @notice Initialize a `LSP7MintableInitAbstract` token contract with: token name = `name_`, token symbol = `symbol_`, and
22
- * address `newOwner_` as the token contract owner.
23
- *
24
- * @param name_ The name of the token.
25
- * @param symbol_ The symbol of the token.
26
- * @param newOwner_ The owner of the token contract.
27
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).
28
- * @param isNonDivisible_ Specify if the LSP7 token is a fungible or non-fungible token.
29
- */
30
- function _initialize(
31
- string memory name_,
32
- string memory symbol_,
33
- address newOwner_,
34
- uint256 lsp4TokenType_,
35
- bool isNonDivisible_
36
- ) internal virtual override onlyInitializing {
37
- LSP7DigitalAssetInitAbstract._initialize(
38
- name_,
39
- symbol_,
40
- newOwner_,
41
- lsp4TokenType_,
42
- isNonDivisible_
43
- );
44
- }
45
-
46
- /**
47
- * @dev Public {_mint} function only callable by the {owner}.
48
- */
49
- function mint(
50
- address to,
51
- uint256 amount,
52
- bool force,
53
- bytes memory data
54
- ) public virtual override onlyOwner {
55
- _mint(to, amount, force, data);
56
- }
57
- }
4
+ import "@lukso/lsp7-contracts/contracts/presets/LSP7MintableInitAbstract.sol";
@@ -1,328 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.4;
3
3
 
4
- // interfaces
5
- import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
6
- import {
7
- IERC725Y
8
- } from "@erc725/smart-contracts/contracts/interfaces/IERC725Y.sol";
9
-
10
- /**
11
- * @title Interface of the LSP8 - Identifiable Digital Asset standard, a non-fungible digital asset.
12
- */
13
- interface ILSP8IdentifiableDigitalAsset is IERC165, IERC725Y {
14
- // --- Events
15
-
16
- /**
17
- * @dev Emitted when `tokenId` token is transferred from the `from` to the `to` address.
18
- * @param operator The address of operator that sent the `tokenId`
19
- * @param from The previous owner of the `tokenId`
20
- * @param to The new owner of `tokenId`
21
- * @param tokenId The tokenId that was transferred
22
- * @param force If the token transfer enforces the `to` recipient address to be a contract that implements the LSP1 standard or not.
23
- * @param data Any additional data the caller included by the caller during the transfer, and sent in the hooks to the `from` and `to` addresses.
24
- */
25
- event Transfer(
26
- address operator,
27
- address indexed from,
28
- address indexed to,
29
- bytes32 indexed tokenId,
30
- bool force,
31
- bytes data
32
- );
33
-
34
- /**
35
- * @dev Emitted when `tokenOwner` enables `operator` to transfer or burn the `tokenId`.
36
- * @param operator The address authorized as an operator.
37
- * @param tokenOwner The owner of the `tokenId`.
38
- * @param tokenId The tokenId `operator` address has access on behalf of `tokenOwner`.
39
- * @param operatorNotificationData The data to notify the operator about via LSP1.
40
- */
41
- event OperatorAuthorizationChanged(
42
- address indexed operator,
43
- address indexed tokenOwner,
44
- bytes32 indexed tokenId,
45
- bytes operatorNotificationData
46
- );
47
-
48
- /**
49
- * @dev Emitted when `tokenOwner` disables `operator` to transfer or burn `tokenId` on its behalf.
50
- * @param operator The address revoked from the operator array ({getOperatorsOf}).
51
- * @param tokenOwner The owner of the `tokenId`.
52
- * @param tokenId The tokenId `operator` is revoked from operating on.
53
- * @param notified Bool indicating whether the operator has been notified or not
54
- * @param operatorNotificationData The data to notify the operator about via LSP1.
55
- */
56
- event OperatorRevoked(
57
- address indexed operator,
58
- address indexed tokenOwner,
59
- bytes32 indexed tokenId,
60
- bool notified,
61
- bytes operatorNotificationData
62
- );
63
-
64
- /**
65
- * @dev Emitted when setting data for `tokenId`.
66
- * @param tokenId The tokenId which data is set for.
67
- * @param dataKey The data key for which a bytes value is set.
68
- * @param dataValue The value to set for the given data key.
69
- */
70
- event TokenIdDataChanged(
71
- bytes32 indexed tokenId,
72
- bytes32 indexed dataKey,
73
- bytes dataValue
74
- );
75
-
76
- // --- Token queries
77
-
78
- /**
79
- * @dev Returns the number of existing tokens that have been minted in this contract.
80
- * @return The number of existing tokens.
81
- */
82
- function totalSupply() external view returns (uint256);
83
-
84
- // --- Token owner queries
85
-
86
- /**
87
- * @dev Get the number of token IDs owned by `tokenOwner`.
88
-
89
- * @param tokenOwner The address to query *
90
- * @return The total number of token IDs that `tokenOwner` owns.
91
- */
92
- function balanceOf(address tokenOwner) external view returns (uint256);
93
-
94
- /**
95
- * @dev Returns the list of `tokenIds` for the `tokenOwner` address.
96
- *
97
- * @param tokenId tokenOwner The address to query owned tokens
98
- * @return The owner address of the given `tokenId`.
99
- *
100
- * @custom:requirements `tokenId` must exist.
101
- * @custom:info if the `tokenId` is not owned by any address, the returned address will be `address(0)`
102
- */
103
- function tokenOwnerOf(bytes32 tokenId) external view returns (address);
104
-
105
- /**
106
- * @dev Returns the list of token IDs that the `tokenOwner` address owns.
107
- * @param tokenOwner The address that we want to get the list of token IDs for.
108
- * @return An array of `bytes32[] tokenIds` owned by `tokenOwner`.
109
- */
110
- function tokenIdsOf(
111
- address tokenOwner
112
- ) external view returns (bytes32[] memory);
113
-
114
- // --- TokenId Metadata functionality
115
-
116
- /**
117
- * @notice Retrieves data for a specific `tokenId` and `dataKey`.
118
- * @param tokenId The unique identifier for a token.
119
- * @param dataKey The key for the data to retrieve.
120
- * @return dataValues The data value associated with the given `tokenId` and `dataKey`.
121
- */
122
- function getDataForTokenId(
123
- bytes32 tokenId,
124
- bytes32 dataKey
125
- ) external returns (bytes memory dataValues);
126
-
127
- /**
128
- * @notice Retrieves data in batch for multiple `tokenId` and `dataKey` pairs.
129
- * @param tokenIds An array of token IDs.
130
- * @param dataKeys An array of data keys corresponding to the token IDs.
131
- * @return dataValues An array of data values for each pair of `tokenId` and `dataKey`.
132
- */
133
- function getDataBatchForTokenIds(
134
- bytes32[] memory tokenIds,
135
- bytes32[] memory dataKeys
136
- ) external returns (bytes[] memory dataValues);
137
-
138
- /**
139
- * @notice Sets data for a specific `tokenId` and `dataKey`.
140
- * @param tokenId The unique identifier for a token.
141
- * @param dataKey The key for the data to set.
142
- * @param dataValue The value to set for the given data key.
143
- * @custom:events {TokenIdDataChanged} event.
144
- */
145
- function setDataForTokenId(
146
- bytes32 tokenId,
147
- bytes32 dataKey,
148
- bytes memory dataValue
149
- ) external;
150
-
151
- /**
152
- * @notice Sets data in batch for multiple `tokenId` and `dataKey` pairs.
153
- * @param tokenIds An array of token IDs.
154
- * @param dataKeys An array of data keys corresponding to the token IDs.
155
- * @param dataValues An array of values to set for the given data keys.
156
- * @custom:events {TokenIdDataChanged} event for each pair.
157
- */
158
- function setDataBatchForTokenIds(
159
- bytes32[] memory tokenIds,
160
- bytes32[] memory dataKeys,
161
- bytes[] memory dataValues
162
- ) external;
163
-
164
- // --- Operator functionality
165
-
166
- /**
167
- * @dev Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.
168
- * Notify the operator based on the LSP1-UniversalReceiver standard
169
- *
170
- * @param operator The address to authorize as an operator.
171
- * @param tokenId The token ID operator has access to.
172
- * @param operatorNotificationData The data to notify the operator about via LSP1.
173
- *
174
- * @custom:requirements
175
- * - `tokenId` must exist.
176
- * - caller MUST be the {tokenOwnerOf} `tokenId`.
177
- * - the owner of a `tokenId` cannot grant itself as an `operator` (`operator` cannot be the calling address).
178
- * - `operator` cannot be the zero address.
179
- *
180
- * @custom:events {OperatorAuthorizationChanged} event.
181
- */
182
- function authorizeOperator(
183
- address operator,
184
- bytes32 tokenId,
185
- bytes memory operatorNotificationData
186
- ) external;
187
-
188
- /**
189
- * @dev Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner.
190
- * See also {isOperatorFor}.
191
- *
192
- * @param operator The address to revoke as an operator.
193
- * @param tokenId The tokenId `operator` is revoked from operating on.
194
- * @param notify Boolean indicating whether to notify the operator or not
195
- * @param operatorNotificationData The data to notify the operator about via LSP1.
196
- *
197
- * @custom:requirements
198
- * - `tokenId` must exist.
199
- * - caller must be the {tokenOwnerOf} `tokenId`.
200
- * - the owner of a `tokenId` cannot grant revoke itself as an `operator` (`operator` cannot be the calling address).
201
- * - `operator` cannot be the zero address.
202
- *
203
- * @custom:events {OperatorRevoked} event with address of the operator being revoked for the caller (token owner)..
204
- */
205
- function revokeOperator(
206
- address operator,
207
- bytes32 tokenId,
208
- bool notify,
209
- bytes memory operatorNotificationData
210
- ) external;
211
-
212
- /**
213
- * @dev Returns whether `operator` address is an operator for a given `tokenId`.
214
- *
215
- * @param operator The address to query operator status for.
216
- * @param tokenId The token ID to check if `operator` is allowed to operate on.
217
- *
218
- * @return `true` if `operator` is an operator for `tokenId`, `false` otherwise.
219
- *
220
- * @custom:requirements
221
- * - `tokenId` must exist.
222
- * - caller must be the current {tokenOwnerOf} `tokenId`.
223
- *
224
- * @custom:info The tokenOwner is its own operator.
225
- */
226
- function isOperatorFor(
227
- address operator,
228
- bytes32 tokenId
229
- ) external view returns (bool);
230
-
231
- /**
232
- * @dev Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.
233
- *
234
- * @param tokenId The token ID to get the operators for.
235
- * @return An array of operators allowed to transfer or burn a specific `tokenId`.
236
- *
237
- * Requirements
238
- * - `tokenId` must exist.
239
- */
240
- function getOperatorsOf(
241
- bytes32 tokenId
242
- ) external view returns (address[] memory);
243
-
244
- // --- Transfer functionality
245
-
246
- /**
247
- * @dev Transfer a given `tokenId` token from the `from` address to the `to` address.
248
- *
249
- * If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred.
250
- *
251
- * The `force` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs)
252
- * or contracts that do not implement the LSP1 standard.
253
- *
254
- * @param from The address that owns the given `tokenId`.
255
- * @param to The address that will receive the `tokenId`.
256
- * @param tokenId The token ID to transfer.
257
- * @param force When set to `true`, the `to` address CAN be any addres.
258
- * When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.
259
- * @param data Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.
260
- *
261
- * @custom:requirements
262
- * - `from` cannot be the zero address.
263
- * - `to` cannot be the zero address.
264
- * - `from` and `to` cannot be the same address (`from` cannot send the `tokenId` to itself).
265
- * - `from` must own the given `tokenId`.
266
- * - If the caller is not `from`, it must be an operator for the `tokenId`.
267
- *
268
- * @custom:events
269
- * - {Transfer} event when the `tokenId` is successfully transferred.
270
- *
271
- * @custom:hint The `force` parameter **MUST be set to `true`** to transfer tokens to Externally Owned Accounts (EOAs)
272
- * or contracts that do not implement the LSP1 Universal Receiver Standard. Otherwise the function will revert making the transfer fail.
273
- *
274
- * @custom:info if the `to` address is a contract that implements LSP1, it will always be notified via its `universalReceiver(...)` function, regardless if `force` is set to `true` or `false`.
275
- *
276
- * @custom:warning Be aware that when either the sender or the recipient can have logic that revert in their `universalReceiver(...)` function when being notified.
277
- * This even if the `force` was set to `true`.
278
- */
279
- function transfer(
280
- address from,
281
- address to,
282
- bytes32 tokenId,
283
- bool force,
284
- bytes memory data
285
- ) external;
286
-
287
- /**
288
- * @dev Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`.
289
- * If any transfer fails, the whole call will revert.
290
- *
291
- * @param from An array of sending addresses.
292
- * @param to An array of recipient addresses.
293
- * @param tokenId An array of token IDs to transfer.
294
- * @param force When set to `true`, `to` may be any address.
295
- * When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.
296
- * @param data Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.
297
- *
298
- *
299
- * @custom:requirements
300
- * - The arrays of `from`, `to` and `tokenId` must have the same length.
301
- * - no values in the `from` array can be the zero address.
302
- * - no values in the `to` array can be the zero address.
303
- * - `from` and `to` cannot be the same address at the same index on each arrays.
304
- * - each `tokenId` must be owned by `from`.
305
- * - If the caller is not `from`, it must be an operator of each `tokenId`.
306
- *
307
- * @custom:events
308
- * - {Transfer} events on each successful token transfer.
309
- */
310
- function transferBatch(
311
- address[] memory from,
312
- address[] memory to,
313
- bytes32[] memory tokenId,
314
- bool[] memory force,
315
- bytes[] memory data
316
- ) external;
317
-
318
- /**
319
- * @notice Executing the following batch of abi-encoded function calls on the contract: `data`.
320
- *
321
- * @dev Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.
322
- * @param data An array of ABI encoded function calls to be called on the contract.
323
- * @return results An array of abi-encoded data returned by the functions executed.
324
- */
325
- function batchCalls(
326
- bytes[] calldata data
327
- ) external returns (bytes[] memory results);
328
- }
4
+ import "@lukso/lsp8-contracts/contracts/ILSP8IdentifiableDigitalAsset.sol";
@@ -1,41 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.4;
3
3
 
4
- // --- ERC165 interface ids
5
- bytes4 constant _INTERFACEID_LSP8 = 0x3a271706;
6
-
7
- // --- ERC725Y Data Keys
8
-
9
- // keccak256('LSP8TokenIdFormat')
10
- bytes32 constant _LSP8_TOKENID_FORMAT_KEY = 0xf675e9361af1c1664c1868cfa3eb97672d6b1a513aa5b81dec34c9ee330e818d;
11
-
12
- // keccak256('LSP8TokenMetadataBaseURI')
13
- bytes32 constant _LSP8_TOKEN_METADATA_BASE_URI = 0x1a7628600c3bac7101f53697f48df381ddc36b9015e7d7c9c5633d1252aa2843;
14
-
15
- // keccak256('LSP8ReferenceContract')
16
- bytes32 constant _LSP8_REFERENCE_CONTRACT = 0x708e7b881795f2e6b6c2752108c177ec89248458de3bf69d0d43480b3e5034e6;
17
-
18
- // --- Token Hooks
19
-
20
- // keccak256('LSP8Tokens_SenderNotification')
21
- bytes32 constant _TYPEID_LSP8_TOKENSSENDER = 0xb23eae7e6d1564b295b4c3e3be402d9a2f0776c57bdf365903496f6fa481ab00;
22
-
23
- // keccak256('LSP8Tokens_RecipientNotification')
24
- bytes32 constant _TYPEID_LSP8_TOKENSRECIPIENT = 0x0b084a55ebf70fd3c06fd755269dac2212c4d3f0f4d09079780bfa50c1b2984d;
25
-
26
- // keccak256('LSP8Tokens_OperatorNotification')
27
- bytes32 constant _TYPEID_LSP8_TOKENOPERATOR = 0x8a1c15a8799f71b547e08e2bcb2e85257e81b0a07eee2ce6712549eef1f00970;
28
-
29
- // --- Token IDs Format
30
-
31
- uint256 constant _LSP8_TOKENID_FORMAT_NUMBER = 0;
32
- uint256 constant _LSP8_TOKENID_FORMAT_STRING = 1;
33
- uint256 constant _LSP8_TOKENID_FORMAT_ADDRESS = 2;
34
- uint256 constant _LSP8_TOKENID_FORMAT_UNIQUE_ID = 3;
35
- uint256 constant _LSP8_TOKENID_FORMAT_HASH = 4;
36
-
37
- uint256 constant _LSP8_TOKENID_FORMAT_MIXED_DEFAULT_NUMBER = 100;
38
- uint256 constant _LSP8_TOKENID_FORMAT_MIXED_DEFAULT_STRING = 101;
39
- uint256 constant _LSP8_TOKENID_FORMAT_MIXED_DEFAULT_ADDRESS = 102;
40
- uint256 constant _LSP8_TOKENID_FORMAT_MIXED_DEFAULT_UNIQUE_ID = 103;
41
- uint256 constant _LSP8_TOKENID_FORMAT_MIXED_DEFAULT_HASH = 104;
4
+ import "@lukso/lsp8-contracts/contracts/LSP8Constants.sol";
@@ -1,105 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.4;
3
3
 
4
- // --- Errors
5
-
6
- /**
7
- * @dev Reverts when `tokenId` has not been minted.
8
- */
9
- error LSP8NonExistentTokenId(bytes32 tokenId);
10
-
11
- /**
12
- * @dev Reverts when `caller` is not the `tokenOwner` of the `tokenId`.
13
- */
14
- error LSP8NotTokenOwner(address tokenOwner, bytes32 tokenId, address caller);
15
-
16
- /**
17
- * @dev Reverts when `caller` is not an allowed operator for `tokenId`.
18
- */
19
- error LSP8NotTokenOperator(bytes32 tokenId, address caller);
20
-
21
- /**
22
- * @dev Reverts when `operator` is already authorized for the `tokenId`.
23
- */
24
- error LSP8OperatorAlreadyAuthorized(address operator, bytes32 tokenId);
25
-
26
- /**
27
- * @dev Reverts when trying to set the zero address as an operator.
28
- */
29
- error LSP8CannotUseAddressZeroAsOperator();
30
-
31
- /**
32
- * @dev Reverts when trying to send token to the zero address.
33
- */
34
- error LSP8CannotSendToAddressZero();
35
-
36
- /**
37
- * @dev Reverts when specifying the same address for `from` and `to` in a token transfer.
38
- */
39
- error LSP8CannotSendToSelf();
40
-
41
- /**
42
- * @dev Reverts when `operator` is not an operator for the `tokenId`.
43
- */
44
- error LSP8NonExistingOperator(address operator, bytes32 tokenId);
45
-
46
- /**
47
- * @dev Reverts when `tokenId` has already been minted.
48
- */
49
- error LSP8TokenIdAlreadyMinted(bytes32 tokenId);
50
-
51
- /**
52
- * @dev Reverts when the parameters used for `transferBatch` have different lengths.
53
- */
54
- error LSP8InvalidTransferBatch();
55
-
56
- /**
57
- * @dev Reverts if the `tokenReceiver` does not implement LSP1
58
- * when minting or transferring tokens with `bool force` set as `false`.
59
- */
60
- error LSP8NotifyTokenReceiverContractMissingLSP1Interface(
61
- address tokenReceiver
62
- );
63
-
64
- /**
65
- * @dev Reverts if the `tokenReceiver` is an EOA
66
- * when minting or transferring tokens with `bool force` set as `false`.
67
- */
68
- error LSP8NotifyTokenReceiverIsEOA(address tokenReceiver);
69
-
70
- /**
71
- * @dev Reverts when trying to authorize or revoke the token's owner as an operator.
72
- */
73
- error LSP8TokenOwnerCannotBeOperator();
74
-
75
- /**
76
- * @dev Error occurs when sending native tokens to the LSP8 contract without sending any data.
77
- *
78
- * E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension.
79
- *
80
- * @notice LSP8 contract cannot receive native tokens.
81
- */
82
- error LSP8TokenContractCannotHoldValue();
83
-
84
- /**
85
- * @dev Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed.
86
- * The `LSP8TokenIdFormat` data key is located inside the ERC725Y Data key-value store of the identifiable digital asset contract.
87
- * It can be set only once inside the constructor/initializer when the identifiable digital asset contract is being deployed.
88
- */
89
- error LSP8TokenIdFormatNotEditable();
90
-
91
- /**
92
- * @dev Reverts when the length of the token IDs data arrays is not equal
93
- */
94
- error LSP8TokenIdsDataLengthMismatch();
95
-
96
- /**
97
- * @dev Reverts when empty arrays is passed to the function
98
- */
99
- error LSP8TokenIdsDataEmptyArray();
100
-
101
- /**
102
- * @dev Reverts when a batch call failed.
103
- * @notice Batch call failed.
104
- */
105
- error LSP8BatchCallFailed(uint256 callIndex);
4
+ import "@lukso/lsp8-contracts/contracts/LSP8Errors.sol";