@lukso/lsp-smart-contracts 0.14.0 → 0.15.0-rc.1

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 (273) 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/common.ts +131 -0
  166. package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.ts +596 -0
  167. package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.ts +646 -0
  168. package/types/index.ts +18446 -0
  169. package/LICENSE +0 -201
  170. package/artifacts/Create2Factory.json +0 -107
  171. package/artifacts/LSP16UniversalFactory.json +0 -271
  172. package/artifacts/LSP7CompatibleERC20.json +0 -935
  173. package/artifacts/LSP7CompatibleERC20InitAbstract.json +0 -948
  174. package/artifacts/LSP7CompatibleERC20Mintable.json +0 -989
  175. package/artifacts/LSP7CompatibleERC20MintableInit.json +0 -1009
  176. package/artifacts/LSP8CompatibleERC721.json +0 -1191
  177. package/artifacts/LSP8CompatibleERC721InitAbstract.json +0 -1204
  178. package/artifacts/LSP8CompatibleERC721Mintable.json +0 -1261
  179. package/artifacts/LSP8CompatibleERC721MintableInit.json +0 -1281
  180. package/artifacts/UniversalReceiverAddressStore.json +0 -209
  181. package/contracts/Factories/Create2Factory.sol +0 -88
  182. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +0 -260
  183. package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +0 -273
  184. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +0 -37
  185. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +0 -44
  186. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +0 -43
  187. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +0 -512
  188. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +0 -514
  189. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +0 -54
  190. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +0 -47
  191. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +0 -52
  192. package/contracts/Legacy/Registries/AddressRegistry.sol +0 -52
  193. package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +0 -37
  194. package/contracts/Legacy/UniversalReceiverAddressStore.sol +0 -64
  195. package/contracts/Version.sol +0 -17
  196. package/devdocs/Create2Factory.json +0 -16
  197. package/devdocs/LSP0ERC725Account.json +0 -260
  198. package/devdocs/LSP0ERC725AccountInit.json +0 -263
  199. package/devdocs/LSP11BasicSocialRecovery.json +0 -159
  200. package/devdocs/LSP11BasicSocialRecoveryInit.json +0 -159
  201. package/devdocs/LSP16UniversalFactory.json +0 -116
  202. package/devdocs/LSP1UniversalReceiverDelegateUP.json +0 -34
  203. package/devdocs/LSP1UniversalReceiverDelegateVault.json +0 -33
  204. package/devdocs/LSP23LinkedContractsFactory.json +0 -81
  205. package/devdocs/LSP4DigitalAssetMetadata.json +0 -112
  206. package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -104
  207. package/devdocs/LSP6KeyManager.json +0 -305
  208. package/devdocs/LSP6KeyManagerInit.json +0 -308
  209. package/devdocs/LSP7CappedSupply.json +0 -306
  210. package/devdocs/LSP7CappedSupplyInitAbstract.json +0 -299
  211. package/devdocs/LSP7CompatibleERC20.json +0 -346
  212. package/devdocs/LSP7CompatibleERC20InitAbstract.json +0 -338
  213. package/devdocs/LSP7CompatibleERC20Mintable.json +0 -349
  214. package/devdocs/LSP7CompatibleERC20MintableInit.json +0 -352
  215. package/devdocs/LSP7DigitalAsset.json +0 -294
  216. package/devdocs/LSP7DigitalAssetInitAbstract.json +0 -285
  217. package/devdocs/LSP7Mintable.json +0 -296
  218. package/devdocs/LSP7MintableInit.json +0 -298
  219. package/devdocs/LSP8CappedSupply.json +0 -356
  220. package/devdocs/LSP8CappedSupplyInitAbstract.json +0 -349
  221. package/devdocs/LSP8CompatibleERC721.json +0 -437
  222. package/devdocs/LSP8CompatibleERC721InitAbstract.json +0 -428
  223. package/devdocs/LSP8CompatibleERC721Mintable.json +0 -446
  224. package/devdocs/LSP8CompatibleERC721MintableInit.json +0 -449
  225. package/devdocs/LSP8IdentifiableDigitalAsset.json +0 -346
  226. package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -335
  227. package/devdocs/LSP8Mintable.json +0 -356
  228. package/devdocs/LSP8MintableInit.json +0 -359
  229. package/devdocs/LSP9Vault.json +0 -236
  230. package/devdocs/LSP9VaultInit.json +0 -239
  231. package/devdocs/UniversalProfile.json +0 -260
  232. package/devdocs/UniversalProfileInit.json +0 -263
  233. package/devdocs/UniversalReceiverAddressStore.json +0 -9
  234. package/dist/constants.cjs.js +0 -40758
  235. package/dist/constants.es.js +0 -40737
  236. package/userdocs/Create2Factory.json +0 -5
  237. package/userdocs/LSP0ERC725Account.json +0 -91
  238. package/userdocs/LSP0ERC725AccountInit.json +0 -94
  239. package/userdocs/LSP11BasicSocialRecovery.json +0 -29
  240. package/userdocs/LSP11BasicSocialRecoveryInit.json +0 -29
  241. package/userdocs/LSP16UniversalFactory.json +0 -30
  242. package/userdocs/LSP1UniversalReceiverDelegateUP.json +0 -19
  243. package/userdocs/LSP1UniversalReceiverDelegateVault.json +0 -19
  244. package/userdocs/LSP23LinkedContractsFactory.json +0 -29
  245. package/userdocs/LSP4DigitalAssetMetadata.json +0 -26
  246. package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -23
  247. package/userdocs/LSP6KeyManager.json +0 -154
  248. package/userdocs/LSP6KeyManagerInit.json +0 -157
  249. package/userdocs/LSP7CappedSupply.json +0 -60
  250. package/userdocs/LSP7CappedSupplyInitAbstract.json +0 -57
  251. package/userdocs/LSP7CompatibleERC20.json +0 -47
  252. package/userdocs/LSP7CompatibleERC20InitAbstract.json +0 -44
  253. package/userdocs/LSP7CompatibleERC20Mintable.json +0 -47
  254. package/userdocs/LSP7CompatibleERC20MintableInit.json +0 -47
  255. package/userdocs/LSP7DigitalAsset.json +0 -47
  256. package/userdocs/LSP7DigitalAssetInitAbstract.json +0 -44
  257. package/userdocs/LSP7Mintable.json +0 -47
  258. package/userdocs/LSP7MintableInit.json +0 -47
  259. package/userdocs/LSP8CappedSupply.json +0 -66
  260. package/userdocs/LSP8CappedSupplyInitAbstract.json +0 -63
  261. package/userdocs/LSP8CompatibleERC721.json +0 -80
  262. package/userdocs/LSP8CompatibleERC721InitAbstract.json +0 -77
  263. package/userdocs/LSP8CompatibleERC721Mintable.json +0 -83
  264. package/userdocs/LSP8CompatibleERC721MintableInit.json +0 -83
  265. package/userdocs/LSP8IdentifiableDigitalAsset.json +0 -53
  266. package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -50
  267. package/userdocs/LSP8Mintable.json +0 -56
  268. package/userdocs/LSP8MintableInit.json +0 -56
  269. package/userdocs/LSP9Vault.json +0 -93
  270. package/userdocs/LSP9VaultInit.json +0 -93
  271. package/userdocs/UniversalProfile.json +0 -91
  272. package/userdocs/UniversalProfileInit.json +0 -94
  273. package/userdocs/UniversalReceiverAddressStore.json +0 -5
@@ -1,60 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.12;
3
3
 
4
- // interfaces
5
- import {ILSP8Mintable} from "./ILSP8Mintable.sol";
6
-
7
- // modules
8
- import {
9
- LSP8IdentifiableDigitalAsset
10
- } from "../LSP8IdentifiableDigitalAsset.sol";
11
-
12
- /**
13
- * @title LSP8IdentifiableDigitalAsset deployable preset contract with a public {mint} function callable only by the contract {owner}.
14
- */
15
- contract LSP8Mintable is LSP8IdentifiableDigitalAsset, ILSP8Mintable {
16
- /**
17
- * @notice Deploying a `LSP8Mintable` token contract with: token name = `name_`, token symbol = `symbol_`, and
18
- * address `newOwner_` as the token contract owner.
19
- *
20
- * @param name_ The name of the token.
21
- * @param symbol_ The symbol of the token.
22
- * @param newOwner_ The owner of the token contract.
23
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).
24
- * @param lsp8TokenIdFormat_ The format of tokenIds (= NFTs) that this contract will create.
25
- */
26
- constructor(
27
- string memory name_,
28
- string memory symbol_,
29
- address newOwner_,
30
- uint256 lsp4TokenType_,
31
- uint256 lsp8TokenIdFormat_
32
- )
33
- LSP8IdentifiableDigitalAsset(
34
- name_,
35
- symbol_,
36
- newOwner_,
37
- lsp4TokenType_,
38
- lsp8TokenIdFormat_
39
- )
40
- {}
41
-
42
- /**
43
- * @notice Minting tokenId `tokenId` for address `to` with the additional data `data` (Note: allow non-LSP1 recipient is set to `force`).
44
- *
45
- * @dev Public {_mint} function only callable by the {owner}.
46
- *
47
- * @param to The address that will receive the minted `tokenId`.
48
- * @param tokenId The tokenId to mint.
49
- * @param force Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.
50
- * @param data Any addition data to be sent alongside the minting.
51
- */
52
- function mint(
53
- address to,
54
- bytes32 tokenId,
55
- bool force,
56
- bytes memory data
57
- ) public virtual override onlyOwner {
58
- _mint(to, tokenId, force, data);
59
- }
60
- }
4
+ import "@lukso/lsp8-contracts/contracts/presets/LSP8Mintable.sol";
@@ -1,43 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.12;
3
3
 
4
- // modules
5
- import {LSP8MintableInitAbstract} from "./LSP8MintableInitAbstract.sol";
6
-
7
- /**
8
- * @dev LSP8IdentifiableDigitalAsset deployable preset contract (proxy version) with a public {mint} function callable only by the contract {owner}.
9
- */
10
- contract LSP8MintableInit is LSP8MintableInitAbstract {
11
- /**
12
- * @dev initialize (= lock) base implementation contract on deployment
13
- */
14
- constructor() {
15
- _disableInitializers();
16
- }
17
-
18
- /**
19
- * @notice Initializing a `LSP8MintableInit` token contract with: token name = `name_`, token symbol = `symbol_`, and
20
- * address `newOwner_` as the token contract owner.
21
- *
22
- * @param name_ The name of the token.
23
- * @param symbol_ The symbol of the token.
24
- * @param newOwner_ The owner of the token contract.
25
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).
26
- * @param lsp8TokenIdFormat_ The format of tokenIds (= NFTs) that this contract will create.
27
- */
28
- function initialize(
29
- string memory name_,
30
- string memory symbol_,
31
- address newOwner_,
32
- uint256 lsp4TokenType_,
33
- uint256 lsp8TokenIdFormat_
34
- ) external virtual initializer {
35
- LSP8MintableInitAbstract._initialize(
36
- name_,
37
- symbol_,
38
- newOwner_,
39
- lsp4TokenType_,
40
- lsp8TokenIdFormat_
41
- );
42
- }
43
- }
4
+ import "@lukso/lsp8-contracts/contracts/presets/LSP8MintableInit.sol";
@@ -1,62 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.12;
3
3
 
4
- // interfaces
5
- import {ILSP8Mintable} from "./ILSP8Mintable.sol";
6
- // modules
7
- import {
8
- LSP8IdentifiableDigitalAssetInitAbstract
9
- } from "../LSP8IdentifiableDigitalAssetInitAbstract.sol";
10
-
11
- /**
12
- * @dev LSP8IdentifiableDigitalAsset deployable preset contract (inheritable proxy version) with a public {mint} function callable only by the contract {owner}.
13
- */
14
- abstract contract LSP8MintableInitAbstract is
15
- LSP8IdentifiableDigitalAssetInitAbstract,
16
- ILSP8Mintable
17
- {
18
- /**
19
- * @notice Initialize a `LSP7MintableInitAbstract` token contract with: token name = `name_`, token symbol = `symbol_`, and
20
- * address `newOwner_` as the token contract owner.
21
- *
22
- * @param name_ The name of the token.
23
- * @param symbol_ The symbol of the token.
24
- * @param newOwner_ The owner of the token contract.
25
- * @param lsp4TokenType_ The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).
26
- * @param lsp8TokenIdFormat_ The format of tokenIds (= NFTs) that this contract will create.
27
- */
28
- function _initialize(
29
- string memory name_,
30
- string memory symbol_,
31
- address newOwner_,
32
- uint256 lsp4TokenType_,
33
- uint256 lsp8TokenIdFormat_
34
- ) internal virtual override onlyInitializing {
35
- LSP8IdentifiableDigitalAssetInitAbstract._initialize(
36
- name_,
37
- symbol_,
38
- newOwner_,
39
- lsp4TokenType_,
40
- lsp8TokenIdFormat_
41
- );
42
- }
43
-
44
- /**
45
- * @notice Minting tokenId `tokenId` for address `to` with the additional data `data` (Note: allow non-LSP1 recipient is set to `force`).
46
- *
47
- * @dev Public {_mint} function only callable by the {owner}.
48
- *
49
- * @param to The address that will receive the minted `tokenId`.
50
- * @param tokenId The tokenId to mint.
51
- * @param force Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.
52
- * @param data Any addition data to be sent alongside the minting.
53
- */
54
- function mint(
55
- address to,
56
- bytes32 tokenId,
57
- bool force,
58
- bytes memory data
59
- ) public virtual override onlyOwner {
60
- _mint(to, tokenId, force, data);
61
- }
62
- }
4
+ import "@lukso/lsp8-contracts/contracts/presets/LSP8MintableInitAbstract.sol";
@@ -1,19 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.4;
3
3
 
4
- /**
5
- * @title Interface of LSP9 - Vault standard, a blockchain vault that can hold assets and interact with other smart contracts.
6
- * @dev Could be owned by an EOA or by a contract and is able to receive and send assets. Also allows for registering received assets by leveraging the key-value storage.
7
- */
8
- interface ILSP9Vault {
9
- /**
10
- * @notice Executing the following batch of abi-encoded function calls on the contract: `data`.
11
- *
12
- * @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.
13
- * @param data An array of ABI encoded function calls to be called on the contract.
14
- * @return results An array of abi-encoded data returned by the functions executed.
15
- */
16
- function batchCalls(
17
- bytes[] calldata data
18
- ) external returns (bytes[] memory results);
19
- }
4
+ import "@lukso/lsp9-contracts/contracts/ILSP9Vault.sol";
@@ -1,29 +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_LSP9 = 0x28af17e6;
6
-
7
- // --- ERC725Y Data Keys
8
-
9
- // bytes10(keccak256('SupportedStandards')) + bytes2(0) + bytes20(keccak256('LSP9Vault'))
10
- bytes32 constant _LSP9_SUPPORTED_STANDARDS_KEY = 0xeafec4d89fa9619884b600007c0334a14085fefa8b51ae5a40895018882bdb90;
11
-
12
- // bytes4(keccak256('LSP9Vault'))
13
- bytes constant _LSP9_SUPPORTED_STANDARDS_VALUE = hex"7c0334a1";
14
-
15
- // --- Native Token Type Id
16
-
17
- // keccak256('LSP9ValueReceived')
18
- bytes32 constant _TYPEID_LSP9_VALUE_RECEIVED = 0x468cd1581d7bc001c3b685513d2b929b55437be34700410383d58f3aa1ea0abc;
19
-
20
- // Ownership Transfer Type IDs
21
-
22
- // keccak256('LSP9OwnershipTransferStarted')
23
- bytes32 constant _TYPEID_LSP9_OwnershipTransferStarted = 0xaefd43f45fed1bcd8992f23c803b6f4ec45cf6b62b0d404d565f290a471e763f;
24
-
25
- // keccak256('LSP9OwnershipTransferred_SenderNotification')
26
- bytes32 constant _TYPEID_LSP9_OwnershipTransferred_SenderNotification = 0x0c622e58e6b7089ae35f1af1c86d997be92fcdd8c9509652022d41aa65169471;
27
-
28
- // keccak256('LSP9OwnershipTransferred_RecipientNotification')
29
- bytes32 constant _TYPEID_LSP9_OwnershipTransferred_RecipientNotification = 0x79855c97dbc259ce395421d933d7bc0699b0f1561f988f09a9e8633fd542fe5c;
4
+ import "@lukso/lsp9-contracts/contracts/LSP9Constants.sol";
@@ -1,9 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.4;
3
3
 
4
- /**
5
- * @notice The `LSP1UniversalReceiverDelegate` is not allowed to set the following data key: `dataKey`.
6
- * @dev Reverts when the Vault version of [LSP1UniversalReceiverDelegate] sets LSP1/6/17 Data Keys.
7
- * @param dataKey The data key that the Vault version of [LSP1UniversalReceiverDelegate] is not allowed to set.
8
- */
9
- error LSP1DelegateNotAllowedToSetDataKey(bytes32 dataKey);
4
+ import "@lukso/lsp9-contracts/contracts/LSP9Errors.sol";
@@ -1,66 +1,4 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  pragma solidity ^0.8.4;
3
3
 
4
- // modules
5
- import {
6
- OwnableUnset
7
- } from "@erc725/smart-contracts/contracts/custom/OwnableUnset.sol";
8
- import {Version} from "../Version.sol";
9
- import {LSP9VaultCore} from "./LSP9VaultCore.sol";
10
-
11
- // libraries
12
- import {LSP1Utils} from "../LSP1UniversalReceiver/LSP1Utils.sol";
13
-
14
- // constants
15
- import {
16
- _LSP9_SUPPORTED_STANDARDS_KEY,
17
- _LSP9_SUPPORTED_STANDARDS_VALUE,
18
- _TYPEID_LSP9_VALUE_RECEIVED,
19
- _TYPEID_LSP9_OwnershipTransferred_RecipientNotification
20
- } from "../LSP9Vault/LSP9Constants.sol";
21
-
22
- /**
23
- * @title Implementation of LSP9Vault built on top of [ERC725], [LSP-1-UniversalReceiver]
24
- * @author Fabian Vogelsteller, Yamen Merhi, Jean Cavallera
25
- * @dev Could be owned by an EOA or by a contract and is able to receive and send assets. Also allows for registering received assets by leveraging the key-value storage.
26
- */
27
- contract LSP9Vault is LSP9VaultCore, Version {
28
- using LSP1Utils for address;
29
-
30
- /**
31
- * @notice Deploying a LSP9Vault contract with owner set to address `initialOwner`.
32
- * @dev Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `constructor` also allows funding the contract on deployment.
33
- *
34
- * @param newOwner The new owner of the contract.
35
- *
36
- * @custom:events
37
- * - {UniversalReceiver} event when funding the contract on deployment.
38
- * - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}.
39
- * - {DataChanged} event when setting the {_LSP9_SUPPORTED_STANDARDS_KEY}.
40
- * - {UniversalReceiver} event when notifying the `initialOwner`.
41
- */
42
- constructor(address newOwner) payable {
43
- if (msg.value != 0) {
44
- emit UniversalReceiver(
45
- msg.sender,
46
- msg.value,
47
- _TYPEID_LSP9_VALUE_RECEIVED,
48
- "",
49
- ""
50
- );
51
- }
52
-
53
- OwnableUnset._setOwner(newOwner);
54
-
55
- // set key SupportedStandards:LSP9Vault
56
- _setData(
57
- _LSP9_SUPPORTED_STANDARDS_KEY,
58
- _LSP9_SUPPORTED_STANDARDS_VALUE
59
- );
60
-
61
- newOwner.notifyUniversalReceiver(
62
- _TYPEID_LSP9_OwnershipTransferred_RecipientNotification,
63
- ""
64
- );
65
- }
66
- }
4
+ import "@lukso/lsp9-contracts/contracts/LSP9Vault.sol";