@lukso/lsp-smart-contracts 0.13.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 -191
  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 +85 -48
  20. package/artifacts/LSP8CappedSupplyInitAbstract.json +85 -48
  21. package/artifacts/LSP8IdentifiableDigitalAsset.json +85 -48
  22. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +85 -48
  23. package/artifacts/LSP8Mintable.json +88 -51
  24. package/artifacts/LSP8MintableInit.json +88 -51
  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 -31
  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 -326
  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 +2 -28
  115. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +2 -22
  116. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +2 -84
  117. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +2 -87
  118. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -68
  119. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -63
  120. package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +1 -31
  121. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +2 -59
  122. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +2 -42
  123. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +2 -61
  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,514 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.12;
3
-
4
- // interfaces
5
- import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
6
- import {
7
- IERC721Receiver
8
- } from "@openzeppelin/contracts/interfaces/IERC721Receiver.sol";
9
- import {
10
- IERC721Metadata,
11
- IERC721
12
- } from "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
13
-
14
- // libraries
15
- import {BytesLib} from "solidity-bytes-utils/contracts/BytesLib.sol";
16
- import {
17
- EnumerableSet
18
- } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
19
- import {LSP1Utils} from "../../LSP1UniversalReceiver/LSP1Utils.sol";
20
-
21
- // modules
22
- import {
23
- LSP8IdentifiableDigitalAssetCore,
24
- LSP8IdentifiableDigitalAssetInitAbstract
25
- } from "../LSP8IdentifiableDigitalAssetInitAbstract.sol";
26
-
27
- // errors
28
- import {
29
- LSP8NotTokenOwner,
30
- LSP8CannotUseAddressZeroAsOperator,
31
- LSP8TokenOwnerCannotBeOperator,
32
- LSP8OperatorAlreadyAuthorized,
33
- LSP8NotTokenOperator
34
- } from "../LSP8Errors.sol";
35
-
36
- // constants
37
- import {
38
- _LSP4_METADATA_KEY,
39
- _LSP4_TOKEN_NAME_KEY,
40
- _LSP4_TOKEN_SYMBOL_KEY
41
- } from "../../LSP4DigitalAssetMetadata/LSP4Constants.sol";
42
- import {_TYPEID_LSP8_TOKENOPERATOR} from "../LSP8Constants.sol";
43
-
44
- /**
45
- * @dev LSP8 extension, for compatibility for clients / tools that expect ERC721.
46
- */
47
- abstract contract LSP8CompatibleERC721InitAbstract is
48
- IERC721Metadata,
49
- LSP8IdentifiableDigitalAssetInitAbstract
50
- {
51
- using BytesLib for bytes;
52
- using EnumerableSet for EnumerableSet.AddressSet;
53
- using LSP1Utils for address;
54
-
55
- /**
56
- * @dev Mapping from owner to operator approvals for backward compatibility with ERC721
57
- */
58
- mapping(address => mapping(address => bool)) private _operatorApprovals;
59
-
60
- /**
61
- * @notice Initialize a `LSP8CompatibleERC721InitAbstract` token contract with: token name = `name_`, token symbol = `symbol_`, and
62
- * address `newOwner_` as the token contract owner.
63
- *
64
- * @param name_ The name of the token.
65
- * @param symbol_ The symbol of the token.
66
- * @param newOwner_ The owner of the token contract.
67
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).
68
- * @param lsp8TokenIdSchema_ The schema of tokenIds (= NFTs) that this contract will create.
69
- */
70
-
71
- function _initialize(
72
- string memory name_,
73
- string memory symbol_,
74
- address newOwner_,
75
- uint256 lsp4TokenType_,
76
- uint256 lsp8TokenIdSchema_
77
- ) internal virtual override onlyInitializing {
78
- LSP8IdentifiableDigitalAssetInitAbstract._initialize(
79
- name_,
80
- symbol_,
81
- newOwner_,
82
- lsp4TokenType_,
83
- lsp8TokenIdSchema_
84
- );
85
- }
86
-
87
- /**
88
- * @inheritdoc IERC721Metadata
89
- * @dev Returns the name of the token.
90
- * For compatibility with clients & tools that expect ERC721.
91
- *
92
- * @return The name of the token
93
- */
94
- function name() public view virtual override returns (string memory) {
95
- bytes memory data = _getData(_LSP4_TOKEN_NAME_KEY);
96
- return string(data);
97
- }
98
-
99
- /**
100
- * @inheritdoc IERC721Metadata
101
- * @dev Returns the symbol of the token, usually a shorter version of the name.
102
- * For compatibility with clients & tools that expect ERC721.
103
- *
104
- * @return The symbol of the token
105
- */
106
- function symbol() public view virtual override returns (string memory) {
107
- bytes memory data = _getData(_LSP4_TOKEN_SYMBOL_KEY);
108
- return string(data);
109
- }
110
-
111
- /**
112
- * @inheritdoc LSP8IdentifiableDigitalAssetCore
113
- */
114
- function balanceOf(
115
- address tokenOwner
116
- )
117
- public
118
- view
119
- virtual
120
- override(IERC721, LSP8IdentifiableDigitalAssetCore)
121
- returns (uint256)
122
- {
123
- return super.balanceOf(tokenOwner);
124
- }
125
-
126
- /**
127
- * @inheritdoc LSP8IdentifiableDigitalAssetInitAbstract
128
- */
129
- function supportsInterface(
130
- bytes4 interfaceId
131
- )
132
- public
133
- view
134
- virtual
135
- override(IERC165, LSP8IdentifiableDigitalAssetInitAbstract)
136
- returns (bool)
137
- {
138
- return
139
- interfaceId == type(IERC721).interfaceId ||
140
- interfaceId == type(IERC721Metadata).interfaceId ||
141
- super.supportsInterface(interfaceId);
142
- }
143
-
144
- /**
145
- * @inheritdoc IERC721Metadata
146
- * @notice Retrieving the token URI of tokenId `tokenId`.
147
- *
148
- * @dev Compatible with ERC721Metadata tokenURI. Retrieve the tokenURI for a specific `tokenId`.
149
- *
150
- * @return The token URI.
151
- */
152
- function tokenURI(
153
- uint256 /* tokenId */
154
- ) public view virtual override returns (string memory) {
155
- bytes memory data = _getData(_LSP4_METADATA_KEY);
156
-
157
- // offset = bytes4(hashSig) + bytes32(contentHash) -> 4 + 32 = 36
158
- uint256 offset = 36;
159
-
160
- bytes memory uriBytes = data.slice(offset, data.length - offset);
161
- return string(uriBytes);
162
- }
163
-
164
- /**
165
- * @inheritdoc IERC721
166
- * @notice Retrieving the address that own tokenId `tokenId`.
167
- *
168
- * @dev Compatible with ERC721 ownerOf.
169
- *
170
- * @param tokenId The tokenId to query.
171
- * @return The owner of the tokenId.
172
- */
173
- function ownerOf(
174
- uint256 tokenId
175
- ) public view virtual override returns (address) {
176
- return tokenOwnerOf(bytes32(tokenId));
177
- }
178
-
179
- /**
180
- * @inheritdoc IERC721
181
- * @notice Retrieving the address other than the token owner that is approved to transfer tokenId `tokenId` on behalf of its owner.
182
- *
183
- * @dev Compatible with ERC721 getApproved.
184
- *
185
- * @param tokenId The tokenId to query.
186
- * @return The address of the operator for `tokenId`.
187
- */
188
- function getApproved(
189
- uint256 tokenId
190
- ) public view virtual override returns (address) {
191
- bytes32 tokenIdAsBytes32 = bytes32(tokenId);
192
- _existsOrError(tokenIdAsBytes32);
193
-
194
- address[] memory operatorsForTokenId = getOperatorsOf(tokenIdAsBytes32);
195
- uint256 operatorListLength = operatorsForTokenId.length;
196
-
197
- if (operatorListLength == 0) {
198
- return address(0);
199
- } else {
200
- // Read the last added operator authorized to provide "best" compatibility.
201
- // In ERC721 there is one operator address at a time for a tokenId, so multiple calls to
202
- // `approve` would cause `getApproved` to return the last added operator. In this
203
- // compatibility version the same is true, when the authorized operators were not previously
204
- // authorized. If addresses are removed, then `getApproved` returned address can change due
205
- // to implementation of `EnumberableSet._remove`.
206
- return operatorsForTokenId[operatorListLength - 1];
207
- }
208
- }
209
-
210
- /**
211
- * @inheritdoc IERC721
212
- * @notice Checking if address `operator` is approved to transfer any tokenId owned by address `owner`.
213
- *
214
- * @dev Compatible with ERC721 isApprovedForAll.
215
- *
216
- * @param tokenOwner The tokenOwner address to query.
217
- * @param operator The operator address to query.
218
- *
219
- * @return Returns if the `operator` is allowed to manage all of the assets of `owner`
220
- */
221
- function isApprovedForAll(
222
- address tokenOwner,
223
- address operator
224
- ) public view virtual override returns (bool) {
225
- return _operatorApprovals[tokenOwner][operator];
226
- }
227
-
228
- /**
229
- * @inheritdoc IERC721
230
- * @notice Calling `approve` function to approve operator at address `operator` to transfer tokenId `tokenId` on behalf of its owner.
231
- *
232
- * @dev Approval function compatible with ERC721 `approve(address,uint256)`.
233
- *
234
- * @param operator The address to approve for `tokenId`.
235
- * @param tokenId The tokenId to approve.
236
- */
237
- function approve(
238
- address operator,
239
- uint256 tokenId
240
- ) public virtual override {
241
- authorizeOperator(operator, bytes32(tokenId), "");
242
- emit Approval(tokenOwnerOf(bytes32(tokenId)), operator, tokenId);
243
- }
244
-
245
- /**
246
- * @inheritdoc IERC721
247
- * @notice Setting the "approval for all" status of operator `_operator` to `_approved` to allow it to transfer any tokenIds on behalf of `msg.sender`.
248
- *
249
- * @dev Enable or disable approval for a third party ("operator") to manage all of `msg.sender`'s assets. The contract MUST allow multiple operators per owner.
250
- * See {_setApprovalForAll}
251
- *
252
- * @param operator Address to add to the set of authorized operators.
253
- * @param approved True if the operator is approved, false to revoke approval.
254
- *
255
- * @custom:events {ApprovalForAll} event
256
- */
257
- function setApprovalForAll(
258
- address operator,
259
- bool approved
260
- ) public virtual override {
261
- _setApprovalForAll(msg.sender, operator, approved);
262
- }
263
-
264
- /**
265
- * @inheritdoc IERC721
266
- * @notice Calling `transferFrom` function to transfer tokenId `tokenId` from address `from` to address `to`.
267
- *
268
- * @dev Transfer functions from the ERC721 standard interface.
269
- *
270
- * @param from The sending address.
271
- * @param to The receiving address.
272
- * @param tokenId The tokenId to transfer.
273
- *
274
- * @custom:info This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.
275
- */
276
- function transferFrom(
277
- address from,
278
- address to,
279
- uint256 tokenId
280
- ) public virtual override {
281
- _transfer(from, to, bytes32(tokenId), true, "");
282
- }
283
-
284
- /**
285
- * @inheritdoc IERC721
286
- * @notice Calling `safeTransferFrom` function to transfer tokenId `tokenId` from address `from` to address `to`.
287
- *
288
- * @dev Safe Transfer function without optional data from the ERC721 standard interface.
289
- *
290
- * @param from The sending address.
291
- * @param to The receiving address.
292
- * @param tokenId The tokenId to transfer.
293
- *
294
- * @custom:info This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.
295
- */
296
- function safeTransferFrom(
297
- address from,
298
- address to,
299
- uint256 tokenId
300
- ) public virtual override {
301
- _safeTransfer(from, to, tokenId, "");
302
- }
303
-
304
- /**
305
- * @inheritdoc IERC721
306
- * @notice Calling `safeTransferFrom` function with `data` to transfer tokenId `tokenId` from address `from` to address `to`.
307
- *
308
- * @dev Safe Transfer function with optional data from the ERC721 standard interface.
309
- *
310
- * @param from The sending address.
311
- * @param to The receiving address.
312
- * @param tokenId The tokenId to transfer.
313
- * @param data The data to be sent with the transfer.
314
- *
315
- * @custom:info This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.
316
- */
317
- function safeTransferFrom(
318
- address from,
319
- address to,
320
- uint256 tokenId,
321
- bytes memory data
322
- ) public virtual override {
323
- _safeTransfer(from, to, tokenId, data);
324
- }
325
-
326
- // --- Overrides
327
-
328
- /**
329
- * @inheritdoc LSP8IdentifiableDigitalAssetCore
330
- *
331
- * @custom:events
332
- * - LSP7 {OperatorAuthorizationChanged} event.
333
- * - ERC721 {Approval} event.
334
- */
335
- function authorizeOperator(
336
- address operator,
337
- bytes32 tokenId,
338
- bytes memory operatorNotificationData
339
- ) public virtual override {
340
- address tokenOwner = tokenOwnerOf(tokenId);
341
-
342
- if (
343
- tokenOwner != msg.sender &&
344
- !isApprovedForAll(tokenOwner, msg.sender)
345
- ) {
346
- revert LSP8NotTokenOwner(tokenOwner, tokenId, msg.sender);
347
- }
348
-
349
- if (operator == address(0)) {
350
- revert LSP8CannotUseAddressZeroAsOperator();
351
- }
352
-
353
- if (tokenOwner == operator) {
354
- revert LSP8TokenOwnerCannotBeOperator();
355
- }
356
-
357
- bool isAdded = _operators[tokenId].add(operator);
358
- if (!isAdded) revert LSP8OperatorAlreadyAuthorized(operator, tokenId);
359
-
360
- emit OperatorAuthorizationChanged(
361
- operator,
362
- tokenOwner,
363
- tokenId,
364
- operatorNotificationData
365
- );
366
- emit Approval(tokenOwnerOf(tokenId), operator, uint256(tokenId));
367
-
368
- bytes memory lsp1Data = abi.encode(
369
- msg.sender,
370
- tokenId,
371
- operatorNotificationData
372
- );
373
- operator.notifyUniversalReceiver(_TYPEID_LSP8_TOKENOPERATOR, lsp1Data);
374
- }
375
-
376
- /**
377
- * @inheritdoc LSP8IdentifiableDigitalAssetCore
378
- *
379
- * @custom:events
380
- * - LSP8 {Transfer} event.
381
- * - ERC721 {Transfer} event.
382
- */
383
- function _transfer(
384
- address from,
385
- address to,
386
- bytes32 tokenId,
387
- bool force,
388
- bytes memory data
389
- ) internal virtual override {
390
- if (
391
- !isApprovedForAll(from, msg.sender) &&
392
- !_isOperatorOrOwner(msg.sender, tokenId)
393
- ) {
394
- revert LSP8NotTokenOperator(tokenId, msg.sender);
395
- }
396
-
397
- emit Transfer(from, to, uint256(tokenId));
398
- super._transfer(from, to, tokenId, force, data);
399
- }
400
-
401
- /**
402
- * @dev Transfer the `tokenId` from `from` to `to` and check if the `to` recipient address is
403
- * a contract that implements the `IERC721Received` interface and return the right magic value.
404
- * See {_checkOnERC721Received} for more infos.
405
- */
406
- function _safeTransfer(
407
- address from,
408
- address to,
409
- uint256 tokenId,
410
- bytes memory data
411
- ) internal virtual {
412
- _transfer(from, to, bytes32(tokenId), true, data);
413
- require(
414
- _checkOnERC721Received(from, to, tokenId, data),
415
- "LSP8CompatibleERC721: transfer to non ERC721Receiver implementer"
416
- );
417
- }
418
-
419
- /**
420
- * @inheritdoc LSP8IdentifiableDigitalAssetCore
421
- *
422
- * @custom:events
423
- * - LSP8 {Transfer} event with `address(0)` as `from`.
424
- * - ERC721 {Transfer} event with `address(0)` as `from`.
425
- */
426
- function _mint(
427
- address to,
428
- bytes32 tokenId,
429
- bool force,
430
- bytes memory data
431
- ) internal virtual override {
432
- emit Transfer(address(0), to, uint256(tokenId));
433
- super._mint(to, tokenId, force, data);
434
- }
435
-
436
- /**
437
- * @inheritdoc LSP8IdentifiableDigitalAssetCore
438
- *
439
- * @custom:events
440
- * - LSP8 {Transfer} event with `address(0)` as the `to` address.
441
- * - ERC721 {Transfer} event with `address(0)` as the `to` address.
442
- */
443
- function _burn(
444
- bytes32 tokenId,
445
- bytes memory data
446
- ) internal virtual override {
447
- address tokenOwner = tokenOwnerOf(tokenId);
448
-
449
- emit Transfer(tokenOwner, address(0), uint256(tokenId));
450
- super._burn(tokenId, data);
451
- }
452
-
453
- /**
454
- * @dev Approve `operator` to operate on all tokens of `tokensOwner`.
455
- *
456
- * @custom:events {ApprovalForAll} event.
457
- */
458
- function _setApprovalForAll(
459
- address tokensOwner,
460
- address operator,
461
- bool approved
462
- ) internal virtual {
463
- require(
464
- tokensOwner != operator,
465
- "LSP8CompatibleERC721: approve to caller"
466
- );
467
- _operatorApprovals[tokensOwner][operator] = approved;
468
- emit ApprovalForAll(tokensOwner, operator, approved);
469
- }
470
-
471
- /**
472
- * @dev Internal function to invoke `IERC721Receiver.onERC721Received(...)` function on a target address.
473
- * The call is not executed if the target address is not a contract.
474
- *
475
- * @param from address representing the previous owner of the given `tokenId`.
476
- * @param to target address that will receive the token.
477
- * @param tokenId uint256 ID of the token to be transferred.
478
- * @param data bytes optional data to send along with the call.
479
- * @return bool whether the call correctly returned the expected magic value.
480
- */
481
- function _checkOnERC721Received(
482
- address from,
483
- address to,
484
- uint256 tokenId,
485
- bytes memory data
486
- ) private returns (bool) {
487
- if (to.code.length == 0) {
488
- return true;
489
- }
490
-
491
- try
492
- IERC721Receiver(to).onERC721Received(
493
- msg.sender,
494
- from,
495
- tokenId,
496
- data
497
- )
498
- returns (bytes4 retval) {
499
- return retval == IERC721Receiver.onERC721Received.selector;
500
- } catch (bytes memory reason) {
501
- if (reason.length == 0) {
502
- revert(
503
- "LSP8CompatibleERC721: transfer to non ERC721Receiver implementer"
504
- );
505
- } else {
506
- // solhint-disable no-inline-assembly
507
- /// @solidity memory-safe-assembly
508
- assembly {
509
- revert(add(32, reason), mload(reason))
510
- }
511
- }
512
- }
513
- }
514
- }
@@ -1,54 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.12;
3
-
4
- import {LSP8CompatibleERC721} from "../extensions/LSP8CompatibleERC721.sol";
5
-
6
- /**
7
- * @title LSP8CompatibleERC721Mintable deployable preset contract with a public {mint} function callable only by the contract {owner}.
8
- */
9
- contract LSP8CompatibleERC721Mintable is LSP8CompatibleERC721 {
10
- /**
11
- * @notice Deploying a `LSP8CompatibleERC721Mintable` token contract with: token name = `name_`, token symbol = `symbol_`, and
12
- * address `newOwner_` as the token contract owner.
13
- *
14
- * @param name_ The name of the token.
15
- * @param symbol_ The symbol of the token.
16
- * @param newOwner_ The owner of the token contract.
17
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).
18
- * @param lsp8TokenIdSchema_ The schema of tokenIds (= NFTs) that this contract will create.
19
- */
20
- constructor(
21
- string memory name_,
22
- string memory symbol_,
23
- address newOwner_,
24
- uint256 lsp4TokenType_,
25
- uint256 lsp8TokenIdSchema_
26
- )
27
- LSP8CompatibleERC721(
28
- name_,
29
- symbol_,
30
- newOwner_,
31
- lsp4TokenType_,
32
- lsp8TokenIdSchema_
33
- )
34
- {}
35
-
36
- /**
37
- * @notice Minting tokenId `tokenId` for address `to` with the additional data `data` (Note: allow non-LSP1 recipient is set to `force`).
38
- *
39
- * @dev Public {_mint} function only callable by the {owner}.
40
- *
41
- * @param to The address that will receive the minted `tokenId`.
42
- * @param tokenId The tokenId to mint.
43
- * @param force Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.
44
- * @param data Any addition data to be sent alongside the minting.
45
- */
46
- function mint(
47
- address to,
48
- bytes32 tokenId,
49
- bool force,
50
- bytes memory data
51
- ) public virtual onlyOwner {
52
- _mint(to, tokenId, force, data);
53
- }
54
- }
@@ -1,47 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.12;
3
-
4
- // modules
5
- import {
6
- LSP8CompatibleERC721MintableInitAbstract
7
- } from "./LSP8CompatibleERC721MintableInitAbstract.sol";
8
-
9
- /**
10
- * @title LSP8CompatibleERC721MintableInit deployable preset contract (proxy version) with a public mint function callable only by the contract {owner}
11
- */
12
- contract LSP8CompatibleERC721MintableInit is
13
- LSP8CompatibleERC721MintableInitAbstract
14
- {
15
- /**
16
- * @dev initialize (= lock) base implementation contract on deployment
17
- */
18
- constructor() {
19
- _disableInitializers();
20
- }
21
-
22
- /**
23
- * @notice Initializing a `LSP8CompatibleERC721MintableInit` token contract with: token name = `name_`, token symbol = `symbol_`, and
24
- * address `newOwner_` as the token contract owner.
25
- *
26
- * @param name_ The name of the token.
27
- * @param symbol_ The symbol of the token.
28
- * @param newOwner_ The owner of the token contract.
29
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).
30
- * @param lsp8TokenIdSchema_ The schema of tokenIds (= NFTs) that this contract will create.
31
- */
32
- function initialize(
33
- string memory name_,
34
- string memory symbol_,
35
- address newOwner_,
36
- uint256 lsp4TokenType_,
37
- uint256 lsp8TokenIdSchema_
38
- ) external virtual initializer {
39
- LSP8CompatibleERC721MintableInitAbstract._initialize(
40
- name_,
41
- symbol_,
42
- newOwner_,
43
- lsp4TokenType_,
44
- lsp8TokenIdSchema_
45
- );
46
- }
47
- }
@@ -1,52 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- pragma solidity ^0.8.12;
3
-
4
- // modules
5
- import {
6
- LSP8CompatibleERC721InitAbstract
7
- } from "../extensions/LSP8CompatibleERC721InitAbstract.sol";
8
-
9
- /**
10
- * @title LSP8CompatibleERC721MintableInitAbstract preset contract (inheritable proxy version) with a public mint function callable only by the contract {owner}
11
- */
12
- contract LSP8CompatibleERC721MintableInitAbstract is
13
- LSP8CompatibleERC721InitAbstract
14
- {
15
- /**
16
- * @inheritdoc LSP8CompatibleERC721InitAbstract
17
- */
18
- function _initialize(
19
- string memory name_,
20
- string memory symbol_,
21
- address newOwner_,
22
- uint256 lsp4TokenType_,
23
- uint256 lsp8TokenIdSchema_
24
- ) internal virtual override onlyInitializing {
25
- LSP8CompatibleERC721InitAbstract._initialize(
26
- name_,
27
- symbol_,
28
- newOwner_,
29
- lsp4TokenType_,
30
- lsp8TokenIdSchema_
31
- );
32
- }
33
-
34
- /**
35
- * @notice Minting tokenId `tokenId` for address `to` with the additional data `data` (Note: allow non-LSP1 recipient is set to `force`).
36
- *
37
- * @dev Public {_mint} function only callable by the {owner}.
38
- *
39
- * @param to The address that will receive the minted `tokenId`.
40
- * @param tokenId The tokenId to mint.
41
- * @param force Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.
42
- * @param data Any addition data to be sent alongside the minting.
43
- */
44
- function mint(
45
- address to,
46
- bytes32 tokenId,
47
- bool force,
48
- bytes memory data
49
- ) public virtual onlyOwner {
50
- _mint(to, tokenId, force, data);
51
- }
52
- }