@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.
- package/README.md +2 -191
- package/artifacts/LSP0ERC725Account.json +3 -3
- package/artifacts/LSP0ERC725AccountInit.json +3 -3
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -3
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +1 -1
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +1 -1
- package/artifacts/LSP6KeyManager.json +3 -3
- package/artifacts/LSP6KeyManagerInit.json +3 -3
- package/artifacts/LSP7CappedSupply.json +53 -6
- package/artifacts/LSP7CappedSupplyInitAbstract.json +53 -6
- package/artifacts/LSP7DigitalAsset.json +52 -5
- package/artifacts/LSP7DigitalAssetInitAbstract.json +52 -5
- package/artifacts/LSP7Mintable.json +54 -7
- package/artifacts/LSP7MintableInit.json +54 -7
- package/artifacts/LSP8CappedSupply.json +85 -48
- package/artifacts/LSP8CappedSupplyInitAbstract.json +85 -48
- package/artifacts/LSP8IdentifiableDigitalAsset.json +85 -48
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +85 -48
- package/artifacts/LSP8Mintable.json +88 -51
- package/artifacts/LSP8MintableInit.json +88 -51
- package/artifacts/LSP9Vault.json +3 -3
- package/artifacts/LSP9VaultInit.json +3 -3
- package/artifacts/UniversalProfile.json +3 -3
- package/artifacts/UniversalProfileInit.json +3 -3
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +1 -17
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -23
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +1 -53
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -873
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -47
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +1 -49
- package/contracts/LSP10ReceivedVaults/LSP10Constants.sol +1 -7
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +1 -208
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +4 -2
- package/contracts/LSP12IssuedAssets/LSP12Constants.sol +4 -0
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +1 -75
- package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -12
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +1 -29
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +1 -212
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +1 -417
- package/contracts/LSP17ContractExtension/LSP17Constants.sol +1 -14
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -14
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +1 -117
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +1 -55
- package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -16
- package/contracts/LSP17Extensions/Extension4337.sol +1 -123
- package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +1 -13
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -37
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +1 -21
- package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -11
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +1 -7
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +1 -292
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +1 -217
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +1 -84
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +1 -36
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -117
- package/contracts/LSP20CallVerification/LSP20Constants.sol +1 -14
- package/contracts/LSP20CallVerification/LSP20Errors.sol +1 -18
- package/contracts/LSP23LinkedContractsFactory/ILSP23LinkedContractsFactory.sol +1 -189
- package/contracts/LSP23LinkedContractsFactory/IPostDeploymentModule.sol +1 -15
- package/contracts/LSP23LinkedContractsFactory/LSP23Errors.sol +1 -21
- package/contracts/LSP23LinkedContractsFactory/LSP23LinkedContractsFactory.sol +1 -393
- package/contracts/LSP23LinkedContractsFactory/modules/README.md +23 -0
- package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfileInitPostDeploymentModule.sol +1 -60
- package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfilePostDeploymentModule.sol +1 -58
- package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +1 -65
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -5
- package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +1 -14
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -141
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -445
- package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -8
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -31
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +1 -59
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +1 -44
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +1 -65
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +1 -20
- package/contracts/LSP5ReceivedAssets/LSP5Constants.sol +1 -7
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +1 -206
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +1 -60
- package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -61
- package/contracts/LSP6KeyManager/LSP6Errors.sol +1 -222
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +1 -23
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -694
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +1 -29
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -21
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -411
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +1 -24
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +1 -27
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +1 -848
- package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -293
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +1 -302
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -13
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +1 -193
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +1 -728
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +1 -189
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +1 -87
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +1 -23
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +1 -24
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -80
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -83
- package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +1 -29
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +1 -50
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -41
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +1 -54
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +1 -326
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +1 -38
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +1 -102
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +1 -236
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +1 -787
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +1 -243
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +2 -28
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +2 -22
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +2 -84
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +2 -87
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -68
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -63
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +1 -31
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +2 -59
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +2 -42
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +2 -61
- package/contracts/LSP9Vault/ILSP9Vault.sol +1 -16
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -26
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -6
- package/contracts/LSP9Vault/LSP9Vault.sol +1 -63
- package/contracts/LSP9Vault/LSP9VaultCore.sol +1 -684
- package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -33
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +1 -65
- package/contracts/UniversalProfile.sol +1 -37
- package/contracts/UniversalProfileInit.sol +1 -39
- package/contracts/UniversalProfileInitAbstract.sol +1 -44
- package/dist/constants.cjs +75 -0
- package/dist/constants.d.cts +121 -0
- package/dist/constants.d.mts +121 -0
- package/dist/constants.d.ts +107 -40105
- package/dist/constants.mjs +70 -0
- package/package.json +58 -116
- package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725Account.ts +694 -0
- package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInit.ts +740 -0
- package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateUP.ts +139 -0
- package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateVault.ts +139 -0
- package/types/@lukso/lsp23-contracts/contracts/LSP23LinkedContractsFactory.ts +448 -0
- package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadata.ts +274 -0
- package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
- package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManager.ts +355 -0
- package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManagerInit.ts +398 -0
- package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAsset.ts +698 -0
- package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAssetInitAbstract.ts +729 -0
- package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupply.ts +712 -0
- package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +743 -0
- package/types/@lukso/lsp7-contracts/contracts/presets/LSP7Mintable.ts +717 -0
- package/types/@lukso/lsp7-contracts/contracts/presets/LSP7MintableInit.ts +779 -0
- package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAsset.ts +778 -0
- package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
- package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupply.ts +792 -0
- package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupplyInitAbstract.ts +824 -0
- package/types/@lukso/lsp8-contracts/contracts/presets/LSP8Mintable.ts +797 -0
- package/types/@lukso/lsp8-contracts/contracts/presets/LSP8MintableInit.ts +860 -0
- package/types/@lukso/lsp9-contracts/contracts/LSP9Vault.ts +672 -0
- package/types/@lukso/lsp9-contracts/contracts/LSP9VaultInit.ts +714 -0
- package/types/@lukso/universalprofile-contracts/contracts/UniversalProfile.ts +694 -0
- package/types/@lukso/universalprofile-contracts/contracts/UniversalProfileInit.ts +740 -0
- package/types/LSP0ERC725Account.ts +694 -0
- package/types/LSP0ERC725AccountInit.ts +740 -0
- package/types/LSP11BasicSocialRecovery.ts +596 -0
- package/types/LSP11BasicSocialRecoveryInit.ts +646 -0
- package/types/LSP1UniversalReceiverDelegateUP.ts +139 -0
- package/types/LSP1UniversalReceiverDelegateVault.ts +139 -0
- package/types/LSP23LinkedContractsFactory.ts +448 -0
- package/types/LSP4DigitalAssetMetadata.ts +274 -0
- package/types/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
- package/types/LSP6KeyManager.ts +355 -0
- package/types/LSP6KeyManagerInit.ts +398 -0
- package/types/LSP7CappedSupply.ts +712 -0
- package/types/LSP7CappedSupplyInitAbstract.ts +743 -0
- package/types/LSP7DigitalAsset.ts +698 -0
- package/types/LSP7DigitalAssetInitAbstract.ts +729 -0
- package/types/LSP7Mintable.ts +717 -0
- package/types/LSP7MintableInit.ts +779 -0
- package/types/LSP8CappedSupply.ts +792 -0
- package/types/LSP8CappedSupplyInitAbstract.ts +824 -0
- package/types/LSP8IdentifiableDigitalAsset.ts +778 -0
- package/types/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
- package/types/LSP8Mintable.ts +797 -0
- package/types/LSP8MintableInit.ts +860 -0
- package/types/LSP9Vault.ts +672 -0
- package/types/LSP9VaultInit.ts +714 -0
- package/types/UniversalProfile.ts +694 -0
- package/types/UniversalProfileInit.ts +740 -0
- package/types/common.ts +131 -0
- package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.ts +596 -0
- package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.ts +646 -0
- package/types/index.ts +58 -0
- package/LICENSE +0 -201
- package/artifacts/Create2Factory.json +0 -107
- package/artifacts/LSP16UniversalFactory.json +0 -271
- package/artifacts/LSP7CompatibleERC20.json +0 -935
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +0 -948
- package/artifacts/LSP7CompatibleERC20Mintable.json +0 -989
- package/artifacts/LSP7CompatibleERC20MintableInit.json +0 -1009
- package/artifacts/LSP8CompatibleERC721.json +0 -1191
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +0 -1204
- package/artifacts/LSP8CompatibleERC721Mintable.json +0 -1261
- package/artifacts/LSP8CompatibleERC721MintableInit.json +0 -1281
- package/artifacts/UniversalReceiverAddressStore.json +0 -209
- package/contracts/Factories/Create2Factory.sol +0 -88
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +0 -260
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +0 -273
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +0 -37
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +0 -44
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +0 -43
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +0 -512
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +0 -514
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +0 -54
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +0 -47
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +0 -52
- package/contracts/Legacy/Registries/AddressRegistry.sol +0 -52
- package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +0 -37
- package/contracts/Legacy/UniversalReceiverAddressStore.sol +0 -64
- package/contracts/Version.sol +0 -17
- package/devdocs/Create2Factory.json +0 -16
- package/devdocs/LSP0ERC725Account.json +0 -260
- package/devdocs/LSP0ERC725AccountInit.json +0 -263
- package/devdocs/LSP11BasicSocialRecovery.json +0 -159
- package/devdocs/LSP11BasicSocialRecoveryInit.json +0 -159
- package/devdocs/LSP16UniversalFactory.json +0 -116
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +0 -34
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +0 -33
- package/devdocs/LSP23LinkedContractsFactory.json +0 -81
- package/devdocs/LSP4DigitalAssetMetadata.json +0 -112
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -104
- package/devdocs/LSP6KeyManager.json +0 -305
- package/devdocs/LSP6KeyManagerInit.json +0 -308
- package/devdocs/LSP7CappedSupply.json +0 -306
- package/devdocs/LSP7CappedSupplyInitAbstract.json +0 -299
- package/devdocs/LSP7CompatibleERC20.json +0 -346
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +0 -338
- package/devdocs/LSP7CompatibleERC20Mintable.json +0 -349
- package/devdocs/LSP7CompatibleERC20MintableInit.json +0 -352
- package/devdocs/LSP7DigitalAsset.json +0 -294
- package/devdocs/LSP7DigitalAssetInitAbstract.json +0 -285
- package/devdocs/LSP7Mintable.json +0 -296
- package/devdocs/LSP7MintableInit.json +0 -298
- package/devdocs/LSP8CappedSupply.json +0 -356
- package/devdocs/LSP8CappedSupplyInitAbstract.json +0 -349
- package/devdocs/LSP8CompatibleERC721.json +0 -437
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +0 -428
- package/devdocs/LSP8CompatibleERC721Mintable.json +0 -446
- package/devdocs/LSP8CompatibleERC721MintableInit.json +0 -449
- package/devdocs/LSP8IdentifiableDigitalAsset.json +0 -346
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -335
- package/devdocs/LSP8Mintable.json +0 -356
- package/devdocs/LSP8MintableInit.json +0 -359
- package/devdocs/LSP9Vault.json +0 -236
- package/devdocs/LSP9VaultInit.json +0 -239
- package/devdocs/UniversalProfile.json +0 -260
- package/devdocs/UniversalProfileInit.json +0 -263
- package/devdocs/UniversalReceiverAddressStore.json +0 -9
- package/dist/constants.cjs.js +0 -40758
- package/dist/constants.es.js +0 -40737
- package/userdocs/Create2Factory.json +0 -5
- package/userdocs/LSP0ERC725Account.json +0 -91
- package/userdocs/LSP0ERC725AccountInit.json +0 -94
- package/userdocs/LSP11BasicSocialRecovery.json +0 -29
- package/userdocs/LSP11BasicSocialRecoveryInit.json +0 -29
- package/userdocs/LSP16UniversalFactory.json +0 -30
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +0 -19
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +0 -19
- package/userdocs/LSP23LinkedContractsFactory.json +0 -29
- package/userdocs/LSP4DigitalAssetMetadata.json +0 -26
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -23
- package/userdocs/LSP6KeyManager.json +0 -154
- package/userdocs/LSP6KeyManagerInit.json +0 -157
- package/userdocs/LSP7CappedSupply.json +0 -60
- package/userdocs/LSP7CappedSupplyInitAbstract.json +0 -57
- package/userdocs/LSP7CompatibleERC20.json +0 -47
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +0 -44
- package/userdocs/LSP7CompatibleERC20Mintable.json +0 -47
- package/userdocs/LSP7CompatibleERC20MintableInit.json +0 -47
- package/userdocs/LSP7DigitalAsset.json +0 -47
- package/userdocs/LSP7DigitalAssetInitAbstract.json +0 -44
- package/userdocs/LSP7Mintable.json +0 -47
- package/userdocs/LSP7MintableInit.json +0 -47
- package/userdocs/LSP8CappedSupply.json +0 -66
- package/userdocs/LSP8CappedSupplyInitAbstract.json +0 -63
- package/userdocs/LSP8CompatibleERC721.json +0 -80
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +0 -77
- package/userdocs/LSP8CompatibleERC721Mintable.json +0 -83
- package/userdocs/LSP8CompatibleERC721MintableInit.json +0 -83
- package/userdocs/LSP8IdentifiableDigitalAsset.json +0 -53
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -50
- package/userdocs/LSP8Mintable.json +0 -56
- package/userdocs/LSP8MintableInit.json +0 -56
- package/userdocs/LSP9Vault.json +0 -93
- package/userdocs/LSP9VaultInit.json +0 -93
- package/userdocs/UniversalProfile.json +0 -91
- package/userdocs/UniversalProfileInit.json +0 -94
- package/userdocs/UniversalReceiverAddressStore.json +0 -5
|
@@ -1,225 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.4;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
* @notice The address `from` does not have any permission set on the contract linked to the Key Manager.
|
|
6
|
-
* @dev Reverts when address `from` does not have any permissions set on the account linked to this Key Manager
|
|
7
|
-
*
|
|
8
|
-
* @param from the address that does not have permissions
|
|
9
|
-
*/
|
|
10
|
-
error NoPermissionsSet(address from);
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @notice The address `from` is not authorised to `permission` on the contract linked to the Key Manager.
|
|
14
|
-
* @dev Reverts when address `from` is not authorised and does not have `permission` on the linked {target}
|
|
15
|
-
*
|
|
16
|
-
* @param from address The address that was not authorised.
|
|
17
|
-
* @param permission permission The permission required (_e.g: `SETDATA`, `CALL`, `TRANSFERVALUE`)
|
|
18
|
-
*/
|
|
19
|
-
error NotAuthorised(address from, string permission);
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @notice The address `from` is not authorised to call the function `selector` on the `to` address.
|
|
23
|
-
* @dev Reverts when `from` is not authorised to call the `execute(uint256,address,uint256,bytes)` function because of
|
|
24
|
-
* a not allowed callType, address, standard or function.
|
|
25
|
-
*
|
|
26
|
-
* @param from The controller that tried to call the `execute(uint256,address,uint256,bytes)` function.
|
|
27
|
-
* @param to The address of an EOA or contract that `from` tried to call using the linked {target}
|
|
28
|
-
* @param selector If `to` is a contract, the bytes4 selector of the function that `from` is trying to call.
|
|
29
|
-
* If no function is called (_e.g: a native token transfer_), selector = `0x00000000`
|
|
30
|
-
*/
|
|
31
|
-
error NotAllowedCall(address from, address to, bytes4 selector);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @notice The address `from` is not authorised to set the data key `disallowedKey` on the contract linked to the Key Manager.
|
|
35
|
-
* @dev Reverts when address `from` is not authorised to set the key `disallowedKey` on the linked {target}.
|
|
36
|
-
*
|
|
37
|
-
* @param from address The controller that tried to `setData` on the linked {target}.
|
|
38
|
-
* @param disallowedKey A bytes32 data key that `from` is not authorised to set on the ERC725Y storage of the linked {target}.
|
|
39
|
-
*/
|
|
40
|
-
error NotAllowedERC725YDataKey(address from, bytes32 disallowedKey);
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @notice The data key `dataKey` starts with `AddressPermissions` prefix but is none of the permission data keys defined in LSP6.
|
|
44
|
-
* @dev Reverts when `dataKey` is a `bytes32` value that does not adhere to any of the permission data keys defined by the LSP6 standard
|
|
45
|
-
*
|
|
46
|
-
* @param dataKey The dataKey that does not match any of the standard LSP6 permission data keys.
|
|
47
|
-
*/
|
|
48
|
-
error NotRecognisedPermissionKey(bytes32 dataKey);
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @notice Invalid address supplied to link this Key Manager to (`address(0)`).
|
|
52
|
-
* @dev Reverts when the address provided to set as the {target} linked to this KeyManager is invalid (_e.g. `address(0)`_).
|
|
53
|
-
*/
|
|
54
|
-
error InvalidLSP6Target();
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @notice The relay call failed because an invalid nonce was provided for the address `signer` that signed the execute relay call.
|
|
58
|
-
* Invalid nonce: `invalidNonce`, signature of signer: `signature`.
|
|
59
|
-
*
|
|
60
|
-
* @dev Reverts when the `signer` address retrieved from the `signature` has an invalid nonce: `invalidNonce`.
|
|
61
|
-
*
|
|
62
|
-
* @param signer The address of the signer.
|
|
63
|
-
* @param invalidNonce The nonce retrieved for the `signer` address.
|
|
64
|
-
* @param signature The signature used to retrieve the `signer` address.
|
|
65
|
-
*/
|
|
66
|
-
error InvalidRelayNonce(address signer, uint256 invalidNonce, bytes signature);
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @notice The Key Manager could not verify the calldata of the transaction because it could not recognise
|
|
70
|
-
* the function being called. Invalid function selector: `invalidFunction`.
|
|
71
|
-
*
|
|
72
|
-
* @dev Reverts when trying to call a function on the linked {target}, that is not any of the following:
|
|
73
|
-
* - `setData(bytes32,bytes)` (ERC725Y)
|
|
74
|
-
* - `setDataBatch(bytes32[],bytes[])` (ERC725Y)
|
|
75
|
-
* - `execute(uint256,address,uint256,bytes)` (ERC725X)
|
|
76
|
-
* - `transferOwnership(address)` (LSP14)
|
|
77
|
-
* - `acceptOwnership()` (LSP14)
|
|
78
|
-
* - `renounceOwnership()` (LSP14)
|
|
79
|
-
*
|
|
80
|
-
* @param invalidFunction The `bytes4` selector of the function that was attempted
|
|
81
|
-
* to be called on the linked {target} but not recognised.
|
|
82
|
-
*/
|
|
83
|
-
error InvalidERC725Function(bytes4 invalidFunction);
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @notice Could not decode the Allowed Calls. Value = `allowedCallsValue`.
|
|
87
|
-
*
|
|
88
|
-
* @dev Reverts when `allowedCallsValue` is not properly encoded as a `(bytes4,address,bytes4,bytes4)[CompactBytesArray]`
|
|
89
|
-
* (CompactBytesArray made of tuples that are 32 bytes long each). See LSP2 value type `CompactBytesArray` for more infos.
|
|
90
|
-
*
|
|
91
|
-
* @param allowedCallsValue The list of allowedCalls that are not encoded correctly as a `(bytes4,address,bytes4,bytes4)[CompactBytesArray]`.
|
|
92
|
-
*/
|
|
93
|
-
error InvalidEncodedAllowedCalls(bytes allowedCallsValue);
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @notice The address `from` is not authorised to set data, because it has no ERC725Y Data Key allowed.
|
|
97
|
-
*
|
|
98
|
-
* @dev Reverts when the `from` address has no AllowedERC725YDataKeys set and cannot set
|
|
99
|
-
* any ERC725Y data key on the ERC725Y storage of the linked {target}.
|
|
100
|
-
*
|
|
101
|
-
* @param from The address that has no `AllowedERC725YDataKeys` set.
|
|
102
|
-
*/
|
|
103
|
-
error NoERC725YDataKeysAllowed(address from);
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @notice The address `from` is not authorised to use the linked account contract to make external calls, because it has no Allowed Calls set.
|
|
107
|
-
*
|
|
108
|
-
* @dev Reverts when the `from` address has no `AllowedCalls` set and cannot interact with any address using the linked {target}.
|
|
109
|
-
*
|
|
110
|
-
* @param from The address that has no AllowedCalls.
|
|
111
|
-
*/
|
|
112
|
-
error NoCallsAllowed(address from);
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @notice Error when reading the Allowed ERC725Y Data Keys. Reason: `context`, Allowed ERC725Y Data Keys value read: `value`.
|
|
116
|
-
*
|
|
117
|
-
* @dev Reverts when `value` is not encoded properly as a `bytes32[CompactBytesArray]`. The `context` string provides context
|
|
118
|
-
* on when this error occurred (_e.g: when fetching the `AllowedERC725YDataKeys` to verify the permissions of a controller,
|
|
119
|
-
* or when validating the `AllowedERC725YDataKeys` when setting them for a controller).
|
|
120
|
-
*
|
|
121
|
-
* @param value The value that is not a valid `bytes32[CompactBytesArray]`
|
|
122
|
-
* @param context A brief description of where the error occurred.
|
|
123
|
-
*/
|
|
124
|
-
error InvalidEncodedAllowedERC725YDataKeys(bytes value, string context);
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @notice Invalid allowed calls (`0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff`) set for address `from`.
|
|
128
|
-
* Could not perform external call.
|
|
129
|
-
*
|
|
130
|
-
* @dev Reverts when a `from` address has _"any whitelisted call"_ as allowed call set.
|
|
131
|
-
* This revert happens during the verification of the permissions of the address for its allowed calls.
|
|
132
|
-
*
|
|
133
|
-
* A `from` address is not allowed to have 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
|
134
|
-
* in its list of `AddressPermissions:AllowedCalls:<address>`, as this allows any STANDARD:ADDRESS:FUNCTION.
|
|
135
|
-
* This is equivalent to granting the SUPER permission and should never be valid.
|
|
136
|
-
*
|
|
137
|
-
* @param from The controller address that has _"any allowed calls"_ whitelisted set.
|
|
138
|
-
*/
|
|
139
|
-
error InvalidWhitelistedCall(address from);
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @notice The array parameters provided to the function `executeRelayCallBatch(...)` do not have the same number of elements.
|
|
143
|
-
* (Different array param's length).
|
|
144
|
-
*
|
|
145
|
-
* @dev Reverts when providing array parameters of different sizes to `executeRelayCallBatch(bytes[],uint256[],bytes[])`
|
|
146
|
-
*/
|
|
147
|
-
error BatchExecuteRelayCallParamsLengthMismatch();
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @notice The array parameters provided to the function `executeBatch(...)` do not have the same number of elements.
|
|
151
|
-
* (Different array param's length).
|
|
152
|
-
*
|
|
153
|
-
* @dev Reverts when the array parameters `uint256[] value` and `bytes[] payload` have different sizes.
|
|
154
|
-
* There should be the same number of elements for each array parameters.
|
|
155
|
-
*/
|
|
156
|
-
error BatchExecuteParamsLengthMismatch();
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @notice Not enough funds sent to forward each amount in the batch.
|
|
160
|
-
*
|
|
161
|
-
* @dev This error occurs when there was not enough funds sent to the batch functions `execute(uint256[],bytes[])` or
|
|
162
|
-
* `executeRelayCall(bytes[],uint256[],uint256[],bytes[])` to cover the sum of all the values forwarded on
|
|
163
|
-
* each payloads (`values[]` parameter from the batch functions above).
|
|
164
|
-
*
|
|
165
|
-
* This mean that `msg.value` is less than the sum of all the values being forwarded on each payloads (`values[]` parameters).
|
|
166
|
-
*
|
|
167
|
-
* @param totalValues The sum of all the values forwarded on each payloads (`values[]` parameter from the batch functions above).
|
|
168
|
-
* @param msgValue The amount of native tokens sent to the batch functions `execute(uint256[],bytes[])` or `executeRelayCall(bytes[],uint256[],uint256[],bytes[])`.
|
|
169
|
-
*/
|
|
170
|
-
error LSP6BatchInsufficientValueSent(uint256 totalValues, uint256 msgValue);
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @notice Too much funds sent to forward each amount in the batch. No amount of native tokens should stay in the Key Manager.
|
|
174
|
-
*
|
|
175
|
-
* @dev This error occurs when there was too much funds sent to the batch functions `execute(uint256[],bytes[])` or
|
|
176
|
-
* `executeRelayCall(bytes[],uint256[],uint256[],bytes[])` to cover the sum of all the values forwarded on
|
|
177
|
-
*
|
|
178
|
-
* Reverts to avoid the KeyManager to holds some remaining funds sent
|
|
179
|
-
* to the following batch functions:
|
|
180
|
-
* - execute(uint256[],bytes[])
|
|
181
|
-
* - executeRelayCall(bytes[],uint256[],uint256[],bytes[])
|
|
182
|
-
*
|
|
183
|
-
* This error occurs when `msg.value` is more than the sum of all the values being
|
|
184
|
-
* forwarded on each payloads (`values[]` parameter from the batch functions above).
|
|
185
|
-
*/
|
|
186
|
-
error LSP6BatchExcessiveValueSent(uint256 totalValues, uint256 msgValue);
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @notice Performing DELEGATE CALLS via the Key Manager is currently disallowed.
|
|
190
|
-
*
|
|
191
|
-
* @dev Reverts when trying to do a `delegatecall` via the ERC725X.execute(uint256,address,uint256,bytes) (operation type 4)
|
|
192
|
-
* function of the linked {target}.
|
|
193
|
-
* `DELEGATECALL` is disallowed by default on the LSP6KeyManager.
|
|
194
|
-
*/
|
|
195
|
-
error DelegateCallDisallowedViaKeyManager();
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @notice Invalid calldata payload sent.
|
|
199
|
-
* @dev Reverts when the payload is invalid.
|
|
200
|
-
*/
|
|
201
|
-
error InvalidPayload(bytes payload);
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* @notice Calling the Key Manager address for this transaction is disallowed.
|
|
205
|
-
*
|
|
206
|
-
* @dev Reverts when calling the KeyManager through `execute(uint256,address,uint256,bytes)`.
|
|
207
|
-
*/
|
|
208
|
-
error CallingKeyManagerNotAllowed();
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @notice Key Manager cannot be used as an LSP17 extension for LSP20 functions.
|
|
212
|
-
*
|
|
213
|
-
* @dev Reverts when the address of the Key Manager is being set as extensions for lsp20 functions
|
|
214
|
-
*/
|
|
215
|
-
error KeyManagerCannotBeSetAsExtensionForLSP20Functions();
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* @notice Data value: `dataValue` length is different from the required length for the data key which is set.
|
|
219
|
-
*
|
|
220
|
-
* @dev Reverts when the data value length is not one of the required lengths for the specific data key.
|
|
221
|
-
*
|
|
222
|
-
* @param dataKey The data key that has a required length for the data value.
|
|
223
|
-
* @param dataValue The data value that has an invalid length.
|
|
224
|
-
*/
|
|
225
|
-
error InvalidDataValuesForDataKeys(bytes32 dataKey, bytes dataValue);
|
|
4
|
+
import "@lukso/lsp6-contracts/contracts/LSP6Errors.sol";
|
|
@@ -1,26 +1,4 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
pragma solidity ^0.8.5;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import {Version} from "../Version.sol";
|
|
6
|
-
import {LSP6KeyManagerCore} from "./LSP6KeyManagerCore.sol";
|
|
7
|
-
import {InvalidLSP6Target} from "./LSP6Errors.sol";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @title Implementation of a contract acting as a controller of an ERC725 Account, using permissions stored in the ERC725Y storage.
|
|
11
|
-
* @author Fabian Vogelsteller <frozeman>, Jean Cavallera (CJ42), Yamen Merhi (YamenMerhi)
|
|
12
|
-
* @dev All the permissions can be set on the ERC725 Account using `setData(bytes32,bytes)` or `setData(bytes32[],bytes[])`.
|
|
13
|
-
*/
|
|
14
|
-
contract LSP6KeyManager is LSP6KeyManagerCore, Version {
|
|
15
|
-
/**
|
|
16
|
-
* @notice Deploying a LSP6KeyManager linked to the contract at address `target_`.
|
|
17
|
-
* @dev Deploy a Key Manager and set the `target_` address in the contract storage,
|
|
18
|
-
* making this Key Manager linked to this `target_` contract.
|
|
19
|
-
*
|
|
20
|
-
* @param target_ The address of the contract to control and forward calldata payloads to.
|
|
21
|
-
*/
|
|
22
|
-
constructor(address target_) {
|
|
23
|
-
if (target_ == address(0)) revert InvalidLSP6Target();
|
|
24
|
-
_target = target_;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
4
|
+
import "@lukso/lsp6-contracts/contracts/LSP6KeyManager.sol";
|