@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,359 +0,0 @@
1
- {
2
- "details": "LSP8IdentifiableDigitalAsset deployable preset contract (proxy version) with a public {mint} function callable only by the contract {owner}.",
3
- "errors": {
4
- "ERC725Y_DataKeysValuesEmptyArray()": [
5
- {
6
- "details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
7
- }
8
- ],
9
- "ERC725Y_DataKeysValuesLengthMismatch()": [
10
- {
11
- "details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
12
- }
13
- ],
14
- "ERC725Y_MsgValueDisallowed()": [
15
- {
16
- "details": "Reverts when sending value to the {setData} or {setDataBatch} function."
17
- }
18
- ],
19
- "InvalidExtensionAddress(bytes)": [
20
- {
21
- "details": "reverts when the bytes retrieved from the LSP17 data key is not a valid address (not 20 bytes)"
22
- }
23
- ],
24
- "InvalidFunctionSelector(bytes)": [
25
- {
26
- "details": "reverts when the contract is called with a function selector not valid (less than 4 bytes of data)"
27
- }
28
- ],
29
- "LSP4TokenNameNotEditable()": [
30
- {
31
- "details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. The `LSP4TokenName` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
32
- }
33
- ],
34
- "LSP4TokenSymbolNotEditable()": [
35
- {
36
- "details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. The `LSP4TokenSymbol` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
37
- }
38
- ],
39
- "LSP4TokenTypeNotEditable()": [
40
- {
41
- "details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor / initializer when the digital asset contract is being deployed / initialized."
42
- }
43
- ],
44
- "LSP8BatchCallFailed(uint256)": [
45
- {
46
- "details": "Reverts when a batch call failed."
47
- }
48
- ],
49
- "LSP8CannotSendToAddressZero()": [
50
- {
51
- "details": "Reverts when trying to send token to the zero address."
52
- }
53
- ],
54
- "LSP8CannotSendToSelf()": [
55
- {
56
- "details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
57
- }
58
- ],
59
- "LSP8CannotUseAddressZeroAsOperator()": [
60
- {
61
- "details": "Reverts when trying to set the zero address as an operator."
62
- }
63
- ],
64
- "LSP8InvalidTransferBatch()": [
65
- {
66
- "details": "Reverts when the parameters used for `transferBatch` have different lengths."
67
- }
68
- ],
69
- "LSP8NonExistentTokenId(bytes32)": [
70
- {
71
- "details": "Reverts when `tokenId` has not been minted."
72
- }
73
- ],
74
- "LSP8NonExistingOperator(address,bytes32)": [
75
- {
76
- "details": "Reverts when `operator` is not an operator for the `tokenId`."
77
- }
78
- ],
79
- "LSP8NotTokenOperator(bytes32,address)": [
80
- {
81
- "details": "Reverts when `caller` is not an allowed operator for `tokenId`."
82
- }
83
- ],
84
- "LSP8NotTokenOwner(address,bytes32,address)": [
85
- {
86
- "details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
87
- }
88
- ],
89
- "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
90
- {
91
- "details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
92
- }
93
- ],
94
- "LSP8NotifyTokenReceiverIsEOA(address)": [
95
- {
96
- "details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
97
- }
98
- ],
99
- "LSP8OperatorAlreadyAuthorized(address,bytes32)": [
100
- {
101
- "details": "Reverts when `operator` is already authorized for the `tokenId`."
102
- }
103
- ],
104
- "LSP8TokenContractCannotHoldValue()": [
105
- {
106
- "details": "Error occurs when sending native tokens to the LSP8 contract without sending any data. E.g. Sending value without passing a bytes4 function selector to call a LSP17 Extension."
107
- }
108
- ],
109
- "LSP8TokenIdAlreadyMinted(bytes32)": [
110
- {
111
- "details": "Reverts when `tokenId` has already been minted."
112
- }
113
- ],
114
- "LSP8TokenIdFormatNotEditable()": [
115
- {
116
- "details": "Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdFormat` data key is located inside the ERC725Y Data key-value store of the identifiable digital asset contract. It can be set only once inside the constructor/initializer when the identifiable digital asset contract is being deployed."
117
- }
118
- ],
119
- "LSP8TokenIdsDataEmptyArray()": [
120
- {
121
- "details": "Reverts when empty arrays is passed to the function"
122
- }
123
- ],
124
- "LSP8TokenIdsDataLengthMismatch()": [
125
- {
126
- "details": "Reverts when the length of the token IDs data arrays is not equal"
127
- }
128
- ],
129
- "LSP8TokenOwnerCannotBeOperator()": [
130
- {
131
- "details": "Reverts when trying to authorize or revoke the token's owner as an operator."
132
- }
133
- ],
134
- "NoExtensionFoundForFunctionSelector(bytes4)": [
135
- {
136
- "details": "reverts when there is no extension for the function selector being called with"
137
- }
138
- ],
139
- "OwnableCallerNotTheOwner(address)": [
140
- {
141
- "details": "Reverts when only the owner is allowed to call the function.",
142
- "params": {
143
- "callerAddress": "The address that tried to make the call."
144
- }
145
- }
146
- ],
147
- "OwnableCannotSetZeroAddressAsOwner()": [
148
- {
149
- "details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
150
- }
151
- ]
152
- },
153
- "kind": "dev",
154
- "methods": {
155
- "authorizeOperator(address,bytes32,bytes)": {
156
- "details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}. Notify the operator based on the LSP1-UniversalReceiver standard",
157
- "params": {
158
- "operator": "The address to authorize as an operator.",
159
- "operatorNotificationData": "The data to notify the operator about via LSP1.",
160
- "tokenId": "The token ID operator has access to."
161
- }
162
- },
163
- "balanceOf(address)": {
164
- "details": "Get the number of token IDs owned by `tokenOwner`.",
165
- "params": {
166
- "tokenOwner": "The address to query *"
167
- },
168
- "returns": {
169
- "_0": "The total number of token IDs that `tokenOwner` owns."
170
- }
171
- },
172
- "batchCalls(bytes[])": {
173
- "custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
174
- "details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
175
- "params": {
176
- "data": "An array of ABI encoded function calls to be called on the contract."
177
- },
178
- "returns": {
179
- "results": "An array of abi-encoded data returned by the functions executed."
180
- }
181
- },
182
- "constructor": {
183
- "details": "initialize (= lock) base implementation contract on deployment"
184
- },
185
- "getData(bytes32)": {
186
- "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
187
- "params": {
188
- "dataKey": "The data key for which to retrieve the value."
189
- },
190
- "returns": {
191
- "dataValue": "The bytes value stored under the specified data key."
192
- }
193
- },
194
- "getDataBatch(bytes32[])": {
195
- "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
196
- "params": {
197
- "dataKeys": "The array of keys which values to retrieve"
198
- },
199
- "returns": {
200
- "dataValues": "The array of data stored at multiple keys"
201
- }
202
- },
203
- "getDataBatchForTokenIds(bytes32[],bytes32[])": {
204
- "params": {
205
- "dataKeys": "An array of data keys corresponding to the token IDs.",
206
- "tokenIds": "An array of token IDs."
207
- },
208
- "returns": {
209
- "dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
210
- }
211
- },
212
- "getDataForTokenId(bytes32,bytes32)": {
213
- "params": {
214
- "dataKey": "The key for the data to retrieve.",
215
- "tokenId": "The unique identifier for a token."
216
- },
217
- "returns": {
218
- "dataValue": "The data value associated with the given `tokenId` and `dataKey`."
219
- }
220
- },
221
- "getOperatorsOf(bytes32)": {
222
- "details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
223
- "params": {
224
- "tokenId": "The token ID to get the operators for."
225
- },
226
- "returns": {
227
- "_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
228
- }
229
- },
230
- "initialize(string,string,address,uint256,uint256)": {
231
- "params": {
232
- "lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
233
- "lsp8TokenIdFormat_": "The format of tokenIds (= NFTs) that this contract will create.",
234
- "name_": "The name of the token.",
235
- "newOwner_": "The owner of the token contract.",
236
- "symbol_": "The symbol of the token."
237
- }
238
- },
239
- "isOperatorFor(address,bytes32)": {
240
- "details": "Returns whether `operator` address is an operator for a given `tokenId`.",
241
- "params": {
242
- "operator": "The address to query operator status for.",
243
- "tokenId": "The token ID to check if `operator` is allowed to operate on."
244
- },
245
- "returns": {
246
- "_0": "`true` if `operator` is an operator for `tokenId`, `false` otherwise."
247
- }
248
- },
249
- "mint(address,bytes32,bool,bytes)": {
250
- "details": "Public {_mint} function only callable by the {owner}.",
251
- "params": {
252
- "data": "Any addition data to be sent alongside the minting.",
253
- "force": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
254
- "to": "The address that will receive the minted `tokenId`.",
255
- "tokenId": "The tokenId to mint."
256
- }
257
- },
258
- "owner()": {
259
- "details": "Returns the address of the current owner."
260
- },
261
- "renounceOwnership()": {
262
- "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
263
- },
264
- "revokeOperator(address,bytes32,bool,bytes)": {
265
- "details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
266
- "params": {
267
- "notify": "Boolean indicating whether to notify the operator or not",
268
- "operator": "The address to revoke as an operator.",
269
- "operatorNotificationData": "The data to notify the operator about via LSP1.",
270
- "tokenId": "The tokenId `operator` is revoked from operating on."
271
- }
272
- },
273
- "setData(bytes32,bytes)": {
274
- "custom:events": "{DataChanged} event.",
275
- "custom:requirements": "- SHOULD only be callable by the {owner}.",
276
- "custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
277
- "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
278
- "params": {
279
- "dataKey": "The data key for which to set a new value.",
280
- "dataValue": "The new bytes value to set."
281
- }
282
- },
283
- "setDataBatch(bytes32[],bytes[])": {
284
- "custom:events": "{DataChanged} event **for each data key/value pair set**.",
285
- "custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
286
- "custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
287
- "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
288
- "params": {
289
- "dataKeys": "An array of data keys to set bytes values for.",
290
- "dataValues": "An array of bytes values to set for each `dataKeys`."
291
- }
292
- },
293
- "setDataBatchForTokenIds(bytes32[],bytes32[],bytes[])": {
294
- "params": {
295
- "dataKeys": "An array of data keys corresponding to the token IDs.",
296
- "dataValues": "An array of values to set for the given data keys.",
297
- "tokenIds": "An array of token IDs."
298
- }
299
- },
300
- "setDataForTokenId(bytes32,bytes32,bytes)": {
301
- "params": {
302
- "dataKey": "The key for the data to set.",
303
- "dataValue": "The value to set for the given data key.",
304
- "tokenId": "The unique identifier for a token."
305
- }
306
- },
307
- "supportsInterface(bytes4)": {
308
- "details": "See {IERC165-supportsInterface}."
309
- },
310
- "tokenIdsOf(address)": {
311
- "details": "Returns the list of token IDs that the `tokenOwner` address owns.",
312
- "params": {
313
- "tokenOwner": "The address that we want to get the list of token IDs for."
314
- },
315
- "returns": {
316
- "_0": "An array of `bytes32[] tokenIds` owned by `tokenOwner`."
317
- }
318
- },
319
- "tokenOwnerOf(bytes32)": {
320
- "details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
321
- "params": {
322
- "tokenId": "tokenOwner The address to query owned tokens"
323
- },
324
- "returns": {
325
- "_0": "The owner address of the given `tokenId`."
326
- }
327
- },
328
- "totalSupply()": {
329
- "details": "Returns the number of existing tokens that have been minted in this contract.",
330
- "returns": {
331
- "_0": "The number of existing tokens."
332
- }
333
- },
334
- "transfer(address,address,bytes32,bool,bytes)": {
335
- "details": "Transfer a given `tokenId` token from the `from` address to the `to` address. If operators are set for a specific `tokenId`, all the operators are revoked after the tokenId have been transferred. The `force` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
336
- "params": {
337
- "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
338
- "force": "When set to `true`, the `to` address CAN be any addres. When set to `false`, the `to` address MUST be a contract that supports the LSP1 UniversalReceiver standard.",
339
- "from": "The address that owns the given `tokenId`.",
340
- "to": "The address that will receive the `tokenId`.",
341
- "tokenId": "The token ID to transfer."
342
- }
343
- },
344
- "transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
345
- "details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
346
- "params": {
347
- "data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
348
- "force": "When set to `true`, `to` may be any address. When set to `false`, `to` must be a contract that supports the LSP1 standard and not revert.",
349
- "from": "An array of sending addresses.",
350
- "to": "An array of recipient addresses.",
351
- "tokenId": "An array of token IDs to transfer."
352
- }
353
- },
354
- "transferOwnership(address)": {
355
- "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
356
- }
357
- },
358
- "version": 1
359
- }
@@ -1,236 +0,0 @@
1
- {
2
- "author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
3
- "details": "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.",
4
- "errors": {
5
- "ERC725X_ContractDeploymentFailed()": [
6
- {
7
- "details": "Reverts when contract deployment failed via {execute} or {executeBatch} functions, This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
8
- }
9
- ],
10
- "ERC725X_CreateOperationsRequireEmptyRecipientAddress()": [
11
- {
12
- "details": "Reverts when passing a `to` address that is not `address(0)` (= address zero) while deploying a contract via {execute} or {executeBatch} functions. This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
13
- }
14
- ],
15
- "ERC725X_ExecuteParametersEmptyArray()": [
16
- {
17
- "details": "Reverts when one of the array parameter provided to the {executeBatch} function is an empty array."
18
- }
19
- ],
20
- "ERC725X_ExecuteParametersLengthMismatch()": [
21
- {
22
- "details": "Reverts when there is not the same number of elements in the `operationTypes`, `targets` addresses, `values`, and `datas` array parameters provided when calling the {executeBatch} function."
23
- }
24
- ],
25
- "ERC725X_InsufficientBalance(uint256,uint256)": [
26
- {
27
- "details": "Reverts when trying to send more native tokens `value` than available in current `balance`.",
28
- "params": {
29
- "balance": "The balance of native tokens of the ERC725X smart contract.",
30
- "value": "The amount of native tokens sent via `ERC725X.execute(...)`/`ERC725X.executeBatch(...)` that is greater than the contract's `balance`."
31
- }
32
- }
33
- ],
34
- "ERC725X_MsgValueDisallowedInStaticCall()": [
35
- {
36
- "details": "Reverts when trying to send native tokens (`value` / `values[]` parameter of {execute} or {executeBatch} functions) while making a `staticcall` (`operationType == 3`). Sending native tokens via `staticcall` is not allowed because it is a state changing operation."
37
- }
38
- ],
39
- "ERC725X_NoContractBytecodeProvided()": [
40
- {
41
- "details": "Reverts when no contract bytecode was provided as parameter when trying to deploy a contract via {execute} or {executeBatch}. This error can occur using either operation type 1 (`CREATE`) or 2 (`CREATE2`)."
42
- }
43
- ],
44
- "ERC725X_UnknownOperationType(uint256)": [
45
- {
46
- "details": "Reverts when the `operationTypeProvided` is none of the default operation types available. (CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4)",
47
- "params": {
48
- "operationTypeProvided": "The unrecognised operation type number provided to `ERC725X.execute(...)`/`ERC725X.executeBatch(...)`."
49
- }
50
- }
51
- ],
52
- "ERC725Y_DataKeysValuesLengthMismatch()": [
53
- {
54
- "details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
55
- }
56
- ],
57
- "ERC725Y_MsgValueDisallowed()": [
58
- {
59
- "details": "Reverts when sending value to the {setData} or {setDataBatch} function."
60
- }
61
- ],
62
- "LSP14CallerNotPendingOwner(address)": [
63
- {
64
- "details": "Reverts when the `caller` that is trying to accept ownership of the contract is not the pending owner.",
65
- "params": {
66
- "caller": "The address that tried to accept ownership."
67
- }
68
- }
69
- ],
70
- "LSP14CannotTransferOwnershipToSelf()": [
71
- {
72
- "details": "Reverts when trying to transfer ownership to the `address(this)`."
73
- }
74
- ],
75
- "LSP14MustAcceptOwnershipInSeparateTransaction()": [
76
- {
77
- "details": "Reverts when pending owner accept ownership in the same transaction of transferring ownership."
78
- }
79
- ],
80
- "LSP14NotInRenounceOwnershipInterval(uint256,uint256)": [
81
- {
82
- "details": "Reverts when trying to renounce ownership before the initial confirmation delay.",
83
- "params": {
84
- "renounceOwnershipEnd": "The end timestamp when one can confirm the renouncement of ownership.",
85
- "renounceOwnershipStart": "The start timestamp when one can confirm the renouncement of ownership."
86
- }
87
- }
88
- ],
89
- "LSP1DelegateNotAllowedToSetDataKey(bytes32)": [
90
- {
91
- "details": "Reverts when the Vault version of [LSP1UniversalReceiverDelegate] sets LSP1/6/17 Data Keys.",
92
- "params": {
93
- "dataKey": "The data key that the Vault version of [LSP1UniversalReceiverDelegate] is not allowed to set."
94
- }
95
- }
96
- ],
97
- "NoExtensionFoundForFunctionSelector(bytes4)": [
98
- {
99
- "details": "reverts when there is no extension for the function selector being called with"
100
- }
101
- ],
102
- "OwnableCallerNotTheOwner(address)": [
103
- {
104
- "details": "Reverts when only the owner is allowed to call the function.",
105
- "params": {
106
- "callerAddress": "The address that tried to make the call."
107
- }
108
- }
109
- ]
110
- },
111
- "kind": "dev",
112
- "methods": {
113
- "acceptOwnership()": {
114
- "custom:requirements": "- Only the {pendingOwner} can call this function. - When notifying the previous owner via LSP1, the typeId used must be the `keccak256(...)` hash of [LSP0OwnershipTransferred_SenderNotification]. - When notifying the new owner via LSP1, the typeId used must be the `keccak256(...)` hash of [LSP0OwnershipTransferred_RecipientNotification].",
115
- "details": "Transfer ownership of the contract from the current {owner()} to the {pendingOwner()}. Once this function is called: - The current {owner()} will lose access to the functions restricted to the {owner()} only. - The {pendingOwner()} will gain access to the functions restricted to the {owner()} only."
116
- },
117
- "batchCalls(bytes[])": {
118
- "custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
119
- "details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
120
- "params": {
121
- "data": "An array of ABI encoded function calls to be called on the contract."
122
- },
123
- "returns": {
124
- "results": "An array of abi-encoded data returned by the functions executed."
125
- }
126
- },
127
- "constructor": {
128
- "custom:events": "- {UniversalReceiver} event when funding the contract on deployment. - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. - {DataChanged} event when setting the {_LSP9_SUPPORTED_STANDARDS_KEY}. - {UniversalReceiver} event when notifying the `initialOwner`.",
129
- "details": "Sets `initialOwner` as the contract owner and the `SupportedStandards:LSP9Vault` Data Key. The `constructor` also allows funding the contract on deployment.",
130
- "params": {
131
- "newOwner": "The new owner of the contract."
132
- }
133
- },
134
- "execute(uint256,address,uint256,bytes)": {
135
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). - {UniversalReceiver} event when receiving native tokens.",
136
- "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
137
- "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
138
- "details": "Generic executor function to: - send native tokens to any address. - interact with any contract by passing an abi-encoded function call in the `data` parameter. - deploy a contract by providing its creation bytecode in the `data` parameter.",
139
- "params": {
140
- "data": "The call data, or the creation bytecode of the contract to deploy if `operationType` is `1` or `2`.",
141
- "operationType": "The operation type used: CALL = 0; CREATE = 1; CREATE2 = 2; STATICCALL = 3; DELEGATECALL = 4",
142
- "target": "The address of the EOA or smart contract. (unused if a contract is created via operation type 1 or 2)",
143
- "value": "The amount of native tokens to transfer (in Wei)"
144
- }
145
- },
146
- "executeBatch(uint256[],address[],uint256[],bytes[])": {
147
- "custom:events": "- {Executed} event for each call that uses under `operationType`: `CALL` (0) and `STATICCALL` (3). (each iteration) - {ContractCreated} event, when a contract is created under `operationType`: `CREATE` (1) and `CREATE2` (2). (each iteration) - {UniversalReceiver} event when receiving native tokens.",
148
- "custom:info": "The `operationType` 4 `DELEGATECALL` is disabled by default in the LSP9 Vault.",
149
- "custom:requirements": "- The length of the parameters provided must be equal. - Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - If a `value` is provided, the contract must have at least this amount in its balance to execute successfully. - If the operation type is `CREATE` (1) or `CREATE2` (2), `target` must be `address(0)`. - If the operation type is `STATICCALL` (3), `value` transfer is disallowed and must be 0.",
150
- "details": "Batch executor function that behaves the same as {execute} but allowing multiple operations in the same transaction.",
151
- "params": {
152
- "datas": "The list of calldata, or the creation bytecode of the contract to deploy if `operationType` is `1` or `2`.",
153
- "operationsType": "The list of operations type used: `CALL = 0`; `CREATE = 1`; `CREATE2 = 2`; `STATICCALL = 3`; `DELEGATECALL = 4`",
154
- "targets": "The list of addresses to call. `targets` will be unused if a contract is created (operation types 1 and 2).",
155
- "values": "The list of native token amounts to transfer (in Wei)."
156
- }
157
- },
158
- "getData(bytes32)": {
159
- "details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
160
- "params": {
161
- "dataKey": "The data key for which to retrieve the value."
162
- },
163
- "returns": {
164
- "dataValue": "The bytes value stored under the specified data key."
165
- }
166
- },
167
- "getDataBatch(bytes32[])": {
168
- "details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
169
- "params": {
170
- "dataKeys": "The array of keys which values to retrieve"
171
- },
172
- "returns": {
173
- "dataValues": "The array of data stored at multiple keys"
174
- }
175
- },
176
- "owner()": {
177
- "details": "Returns the address of the current owner."
178
- },
179
- "pendingOwner()": {
180
- "custom:info": "If no ownership transfer is in progress, the pendingOwner will be `address(0).`.",
181
- "details": "The address that ownership of the contract is transferred to. This address may use {acceptOwnership()} to gain ownership of the contract."
182
- },
183
- "renounceOwnership()": {
184
- "custom:danger": "Leaves the contract without an owner. Once ownership of the contract has been renounced, any functions that are restricted to be called by the owner will be permanently inaccessible, making these functions not callable anymore and unusable.",
185
- "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
186
- "details": "Renounce ownership of the contract in a 2-step process. 1. The first call will initiate the process of renouncing ownership. 2. The second call is used as a confirmation and will leave the contract without an owner."
187
- },
188
- "setData(bytes32,bytes)": {
189
- "custom:events": "- {DataChanged} event.",
190
- "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
191
- "details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
192
- "params": {
193
- "dataKey": "The data key for which to set a new value.",
194
- "dataValue": "The new bytes value to set."
195
- }
196
- },
197
- "setDataBatch(bytes32[],bytes[])": {
198
- "custom:events": "- {DataChanged} event. (on each iteration of setting data)",
199
- "custom:requirements": "Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner.",
200
- "details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
201
- "params": {
202
- "dataKeys": "An array of data keys to set bytes values for.",
203
- "dataValues": "An array of bytes values to set for each `dataKeys`."
204
- }
205
- },
206
- "supportsInterface(bytes4)": {
207
- "details": "Achieves the goal of [ERC-165] to detect supported interfaces and [LSP-17-ContractExtension] by checking if the interfaceId being queried is supported on another linked extension. If the contract doesn't support the `interfaceId`, it forwards the call to the `supportsInterface` extension according to [LSP-17-ContractExtension], and checks if the extension implements the interface defined by `interfaceId`.",
208
- "params": {
209
- "interfaceId": "The interface ID to check if the contract supports it."
210
- },
211
- "returns": {
212
- "_0": "`true` if this contract implements the interface defined by `interfaceId`, `false` otherwise."
213
- }
214
- },
215
- "transferOwnership(address)": {
216
- "custom:requirements": "- Can be only called by the {owner} or by an authorised address that pass the verification check performed on the owner. - When notifying the new owner via LSP1, the `typeId` used must be the `keccak256(...)` hash of [LSP0OwnershipTransferStarted]. - Pending owner cannot accept ownership in the same tx via the LSP1 hook.",
217
- "details": "Initiate the process of transferring ownership of the contract by setting the new owner as the pending owner. If the new owner is a contract that supports + implements LSP1, this will also attempt to notify the new owner that ownership has been transferred to them by calling the {universalReceiver()} function on the `newOwner` contract.",
218
- "params": {
219
- "newOwner": "The address of the new owner."
220
- }
221
- },
222
- "universalReceiver(bytes32,bytes)": {
223
- "custom:events": "- {UniversalReceiver} event with the function parameters, call options, and the response of the UniversalReceiverDelegates (URD) contract that was called.",
224
- "details": "Achieves the goal of [LSP-1-UniversalReceiver] by allowing the account to be notified about incoming/outgoing transactions and enabling reactions to these actions. The reaction is achieved by having two external contracts ([LSP1UniversalReceiverDelegate]) that react on the whole transaction and on the specific typeId, respectively. The function performs the following steps: 1. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY]. - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function. 2. Query the [ERC-725Y] storage with the data key [_LSP1_UNIVERSAL_RECEIVER_DELEGATE_PREFIX] + `bytes32(typeId)`. (Check [LSP-2-ERC725YJSONSchema] for encoding the data key) - If there is an address stored under the data key, check if this address supports the LSP1 interfaceId. - If yes, call this address with the typeId and data (params), along with additional calldata consisting of 20 bytes of `msg.sender` and 32 bytes of `msg.value`. If not, continue the execution of the function.",
225
- "params": {
226
- "receivedData": "The data received.",
227
- "typeId": "The type of call received."
228
- },
229
- "returns": {
230
- "returnedValues": "The ABI encoded return value of the LSP1UniversalReceiverDelegate call and the LSP1TypeIdDelegate call."
231
- }
232
- }
233
- },
234
- "title": "Implementation of LSP9Vault built on top of [ERC725], [LSP-1-UniversalReceiver]",
235
- "version": 1
236
- }