@lukso/lsp-smart-contracts 0.11.1 → 0.12.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/CONTRIBUTING.md +4 -0
- package/README.md +10 -2
- package/artifacts/Create2Factory.json +2 -2
- package/artifacts/LSP0ERC725Account.json +52 -25
- package/artifacts/LSP0ERC725AccountInit.json +52 -25
- package/artifacts/LSP11BasicSocialRecovery.json +18 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +18 -2
- package/artifacts/LSP16UniversalFactory.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +14 -46
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +14 -46
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +16 -0
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +16 -0
- package/artifacts/LSP6KeyManager.json +14 -9
- package/artifacts/LSP6KeyManagerInit.json +14 -9
- package/artifacts/LSP7CappedSupply.json +29 -4
- package/artifacts/LSP7CappedSupplyInitAbstract.json +29 -4
- package/artifacts/LSP7CompatibleERC20.json +48 -23
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +48 -23
- package/artifacts/LSP7CompatibleERC20Mintable.json +51 -26
- package/artifacts/LSP7CompatibleERC20MintableInit.json +51 -26
- package/artifacts/LSP7DigitalAsset.json +29 -4
- package/artifacts/LSP7DigitalAssetInitAbstract.json +29 -4
- package/artifacts/LSP7Mintable.json +32 -7
- package/artifacts/LSP7MintableInit.json +32 -7
- package/artifacts/LSP8CappedSupply.json +33 -3
- package/artifacts/LSP8CappedSupplyInitAbstract.json +33 -3
- package/artifacts/LSP8CompatibleERC721.json +55 -25
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +55 -25
- package/artifacts/LSP8CompatibleERC721Mintable.json +63 -28
- package/artifacts/LSP8CompatibleERC721MintableInit.json +63 -28
- package/artifacts/LSP8IdentifiableDigitalAsset.json +33 -3
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +33 -3
- package/artifacts/LSP8Mintable.json +41 -6
- package/artifacts/LSP8MintableInit.json +41 -6
- package/artifacts/LSP9Vault.json +38 -16
- package/artifacts/LSP9VaultInit.json +38 -16
- package/artifacts/UniversalProfile.json +52 -25
- package/artifacts/UniversalProfileInit.json +52 -25
- package/contracts/Factories/Create2Factory.sol +1 -1
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -14
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +122 -94
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +5 -3
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +54 -14
- package/contracts/LSP11BasicSocialRecovery/LSP11Constants.sol +1 -1
- package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +1 -1
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +2 -2
- package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -1
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +9 -3
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +16 -12
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +65 -96
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -1
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -7
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +4 -4
- package/contracts/LSP17Extensions/Extension4337.sol +101 -0
- package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +15 -0
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -2
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +24 -0
- package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -0
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +0 -6
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +20 -27
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +18 -21
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +2 -46
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +13 -9
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +39 -14
- package/contracts/LSP20CallVerification/LSP20Constants.sol +6 -6
- package/contracts/LSP20CallVerification/LSP20Errors.sol +9 -3
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/ILSP23LinkedContractsFactory.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/IPostDeploymentModule.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23Errors.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/LSP23LinkedContractsFactory.sol +5 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfileInitPostDeploymentModule.sol +1 -1
- package/contracts/{LSP23LinkedContractsDeployment → LSP23LinkedContractsFactory}/modules/UniversalProfilePostDeploymentModule.sol +1 -1
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -1
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +8 -3
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -97
- package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +8 -3
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +8 -3
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +4 -3
- package/contracts/LSP6KeyManager/LSP6Constants.sol +4 -3
- package/contracts/LSP6KeyManager/LSP6Errors.sol +2 -23
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +0 -1
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +134 -99
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -2
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +27 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +31 -25
- package/contracts/LSP6KeyManager/LSP6Utils.sol +29 -2
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +10 -10
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +22 -8
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +180 -118
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +21 -7
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +12 -3
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +5 -1
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +4 -1
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +7 -7
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +3 -3
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +120 -53
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +122 -53
- package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +3 -3
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +2 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +4 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +4 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -4
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +11 -11
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +12 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +32 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +61 -11
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +113 -74
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +63 -10
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +3 -3
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +162 -73
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +168 -84
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +7 -7
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +3 -3
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +8 -7
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +5 -3
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -7
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +9 -8
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +9 -3
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +10 -8
- package/contracts/LSP9Vault/ILSP9Vault.sol +0 -13
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -1
- package/contracts/LSP9Vault/LSP9VaultCore.sol +58 -41
- package/devdocs/LSP0ERC725Account.json +73 -45
- package/devdocs/LSP0ERC725AccountInit.json +73 -45
- package/devdocs/LSP11BasicSocialRecovery.json +13 -0
- package/devdocs/LSP11BasicSocialRecoveryInit.json +13 -0
- package/devdocs/LSP16UniversalFactory.json +9 -9
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +1 -6
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +1 -6
- package/devdocs/LSP4DigitalAssetMetadata.json +32 -10
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +32 -10
- package/devdocs/LSP6KeyManager.json +12 -14
- package/devdocs/LSP6KeyManagerInit.json +12 -14
- package/devdocs/LSP7CappedSupply.json +47 -20
- package/devdocs/LSP7CappedSupplyInitAbstract.json +47 -20
- package/devdocs/LSP7CompatibleERC20.json +88 -24
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +88 -24
- package/devdocs/LSP7CompatibleERC20Mintable.json +88 -24
- package/devdocs/LSP7CompatibleERC20MintableInit.json +88 -24
- package/devdocs/LSP7DigitalAsset.json +47 -20
- package/devdocs/LSP7DigitalAssetInitAbstract.json +47 -20
- package/devdocs/LSP7Mintable.json +47 -20
- package/devdocs/LSP7MintableInit.json +47 -20
- package/devdocs/LSP8CappedSupply.json +57 -25
- package/devdocs/LSP8CappedSupplyInitAbstract.json +57 -25
- package/devdocs/LSP8CompatibleERC721.json +84 -31
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +84 -31
- package/devdocs/LSP8CompatibleERC721Mintable.json +86 -33
- package/devdocs/LSP8CompatibleERC721MintableInit.json +87 -34
- package/devdocs/LSP8IdentifiableDigitalAsset.json +61 -26
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -25
- package/devdocs/LSP8Mintable.json +59 -27
- package/devdocs/LSP8MintableInit.json +60 -28
- package/devdocs/LSP9Vault.json +57 -35
- package/devdocs/LSP9VaultInit.json +57 -35
- package/devdocs/UniversalProfile.json +73 -45
- package/devdocs/UniversalProfileInit.json +73 -45
- package/dist/constants.cjs.js +4323 -2361
- package/dist/constants.d.ts +2933 -1022
- package/dist/constants.es.js +4322 -2361
- package/package.json +8 -6
- package/userdocs/LSP0ERC725Account.json +17 -8
- package/userdocs/LSP0ERC725AccountInit.json +17 -8
- package/userdocs/LSP16UniversalFactory.json +26 -1
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +1 -11
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +1 -11
- package/userdocs/LSP4DigitalAssetMetadata.json +7 -4
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -4
- package/userdocs/LSP6KeyManager.json +0 -5
- package/userdocs/LSP6KeyManagerInit.json +0 -5
- package/userdocs/LSP7CappedSupply.json +14 -6
- package/userdocs/LSP7CappedSupplyInitAbstract.json +13 -5
- package/userdocs/LSP7CompatibleERC20.json +15 -5
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +15 -5
- package/userdocs/LSP7CompatibleERC20Mintable.json +15 -5
- package/userdocs/LSP7CompatibleERC20MintableInit.json +15 -5
- package/userdocs/LSP7DigitalAsset.json +15 -5
- package/userdocs/LSP7DigitalAssetInitAbstract.json +15 -5
- package/userdocs/LSP7Mintable.json +15 -5
- package/userdocs/LSP7MintableInit.json +15 -5
- package/userdocs/LSP8CappedSupply.json +13 -5
- package/userdocs/LSP8CappedSupplyInitAbstract.json +12 -4
- package/userdocs/LSP8CompatibleERC721.json +27 -17
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +27 -17
- package/userdocs/LSP8CompatibleERC721Mintable.json +28 -18
- package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -19
- package/userdocs/LSP8IdentifiableDigitalAsset.json +15 -5
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +14 -4
- package/userdocs/LSP8Mintable.json +15 -5
- package/userdocs/LSP8MintableInit.json +16 -6
- package/userdocs/LSP9Vault.json +20 -11
- package/userdocs/LSP9VaultInit.json +20 -11
- package/userdocs/UniversalProfile.json +17 -8
- package/userdocs/UniversalProfileInit.json +17 -8
- package/artifacts/LSP4Compatibility.json +0 -216
- package/contracts/LSP4DigitalAssetMetadata/ILSP4Compatibility.sol +0 -25
- package/contracts/LSP4DigitalAssetMetadata/LSP4Compatibility.sol +0 -38
- package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +0 -83
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +0 -175
- package/devdocs/LSP4Compatibility.json +0 -79
- package/userdocs/LSP4Compatibility.json +0 -20
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"errors": {
|
|
4
4
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
5
|
{
|
|
6
|
-
"details": "
|
|
6
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
10
10
|
{
|
|
11
|
-
"details": "
|
|
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
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"ERC725Y_MsgValueDisallowed()": [
|
|
15
15
|
{
|
|
16
|
-
"details": "
|
|
16
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"InvalidExtensionAddress(bytes)": [
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
],
|
|
39
39
|
"LSP8CannotSendToAddressZero()": [
|
|
40
40
|
{
|
|
41
|
-
"details": "
|
|
41
|
+
"details": "Reverts when trying to send token to the zero address."
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"LSP8CannotSendToSelf()": [
|
|
45
45
|
{
|
|
46
|
-
"details": "
|
|
46
|
+
"details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"LSP8CannotUseAddressZeroAsOperator()": [
|
|
50
50
|
{
|
|
51
|
-
"details": "
|
|
51
|
+
"details": "Reverts when trying to set the zero address as an operator."
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"LSP8CappedSupplyCannotMintOverCap()": [
|
|
@@ -63,53 +63,76 @@
|
|
|
63
63
|
],
|
|
64
64
|
"LSP8InvalidTransferBatch()": [
|
|
65
65
|
{
|
|
66
|
-
"details": "
|
|
66
|
+
"details": "Reverts when the parameters used for `transferBatch` have different lengths."
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"LSP8NonExistentTokenId(bytes32)": [
|
|
70
70
|
{
|
|
71
|
-
"details": "
|
|
71
|
+
"details": "Reverts when `tokenId` has not been minted."
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"LSP8NonExistingOperator(address,bytes32)": [
|
|
75
75
|
{
|
|
76
|
-
"details": "
|
|
76
|
+
"details": "Reverts when `operator` is not an operator for the `tokenId`."
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"LSP8NotTokenOperator(bytes32,address)": [
|
|
80
80
|
{
|
|
81
|
-
"details": "
|
|
81
|
+
"details": "Reverts when `caller` is not an allowed operator for `tokenId`."
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
84
|
"LSP8NotTokenOwner(address,bytes32,address)": [
|
|
85
85
|
{
|
|
86
|
-
"details": "
|
|
86
|
+
"details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
"LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
90
90
|
{
|
|
91
|
-
"details": "
|
|
91
|
+
"details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
92
92
|
}
|
|
93
93
|
],
|
|
94
94
|
"LSP8NotifyTokenReceiverIsEOA(address)": [
|
|
95
95
|
{
|
|
96
|
-
"details": "
|
|
96
|
+
"details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
99
|
"LSP8OperatorAlreadyAuthorized(address,bytes32)": [
|
|
100
100
|
{
|
|
101
|
-
"details": "
|
|
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
|
+
"LSP8TokenIdTypeNotEditable()": [
|
|
110
|
+
{
|
|
111
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdType` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdType` 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."
|
|
102
112
|
}
|
|
103
113
|
],
|
|
104
114
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
105
115
|
{
|
|
106
|
-
"details": "
|
|
116
|
+
"details": "Reverts when trying to authorize or revoke the token's owner as an operator."
|
|
107
117
|
}
|
|
108
118
|
],
|
|
109
119
|
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
110
120
|
{
|
|
111
121
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
112
122
|
}
|
|
123
|
+
],
|
|
124
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
125
|
+
{
|
|
126
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
127
|
+
"params": {
|
|
128
|
+
"callerAddress": "The address that tried to make the call."
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
133
|
+
{
|
|
134
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
135
|
+
}
|
|
113
136
|
]
|
|
114
137
|
},
|
|
115
138
|
"kind": "dev",
|
|
@@ -139,14 +162,16 @@
|
|
|
139
162
|
}
|
|
140
163
|
},
|
|
141
164
|
"getData(bytes32)": {
|
|
165
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
142
166
|
"params": {
|
|
143
|
-
"dataKey": "The key which
|
|
167
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
144
168
|
},
|
|
145
169
|
"returns": {
|
|
146
|
-
"dataValue": "The
|
|
170
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
147
171
|
}
|
|
148
172
|
},
|
|
149
173
|
"getDataBatch(bytes32[])": {
|
|
174
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
150
175
|
"params": {
|
|
151
176
|
"dataKeys": "The array of keys which values to retrieve"
|
|
152
177
|
},
|
|
@@ -188,16 +213,23 @@
|
|
|
188
213
|
}
|
|
189
214
|
},
|
|
190
215
|
"setData(bytes32,bytes)": {
|
|
216
|
+
"custom:events": "{DataChanged} event.",
|
|
217
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
218
|
+
"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**.",
|
|
219
|
+
"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.",
|
|
191
220
|
"params": {
|
|
192
|
-
"dataKey": "The key to
|
|
193
|
-
"dataValue": "The
|
|
221
|
+
"dataKey": "The data key for which to set a new value.",
|
|
222
|
+
"dataValue": "The new bytes value to set."
|
|
194
223
|
}
|
|
195
224
|
},
|
|
196
225
|
"setDataBatch(bytes32[],bytes[])": {
|
|
197
|
-
"
|
|
226
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
227
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
228
|
+
"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**.",
|
|
229
|
+
"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.",
|
|
198
230
|
"params": {
|
|
199
|
-
"dataKeys": "
|
|
200
|
-
"dataValues": "
|
|
231
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
232
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
201
233
|
}
|
|
202
234
|
},
|
|
203
235
|
"supportsInterface(bytes4)": {
|
|
@@ -234,10 +266,10 @@
|
|
|
234
266
|
}
|
|
235
267
|
},
|
|
236
268
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
237
|
-
"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 `
|
|
269
|
+
"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.",
|
|
238
270
|
"params": {
|
|
239
|
-
"allowNonLSP1Recipient": "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.",
|
|
240
271
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
272
|
+
"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.",
|
|
241
273
|
"from": "The address that owns the given `tokenId`.",
|
|
242
274
|
"to": "The address that will receive the `tokenId`.",
|
|
243
275
|
"tokenId": "The token ID to transfer."
|
|
@@ -246,8 +278,8 @@
|
|
|
246
278
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
247
279
|
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
248
280
|
"params": {
|
|
249
|
-
"allowNonLSP1Recipient": "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.",
|
|
250
281
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
282
|
+
"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.",
|
|
251
283
|
"from": "An array of sending addresses.",
|
|
252
284
|
"to": "An array of recipient addresses.",
|
|
253
285
|
"tokenId": "An array of token IDs to transfer."
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"errors": {
|
|
4
4
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
5
|
{
|
|
6
|
-
"details": "
|
|
6
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
10
10
|
{
|
|
11
|
-
"details": "
|
|
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
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"ERC725Y_MsgValueDisallowed()": [
|
|
15
15
|
{
|
|
16
|
-
"details": "
|
|
16
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"InvalidExtensionAddress(bytes)": [
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
],
|
|
39
39
|
"LSP8CannotSendToAddressZero()": [
|
|
40
40
|
{
|
|
41
|
-
"details": "
|
|
41
|
+
"details": "Reverts when trying to send token to the zero address."
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"LSP8CannotSendToSelf()": [
|
|
45
45
|
{
|
|
46
|
-
"details": "
|
|
46
|
+
"details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
"LSP8CannotUseAddressZeroAsOperator()": [
|
|
50
50
|
{
|
|
51
|
-
"details": "
|
|
51
|
+
"details": "Reverts when trying to set the zero address as an operator."
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"LSP8CappedSupplyCannotMintOverCap()": [
|
|
@@ -63,53 +63,76 @@
|
|
|
63
63
|
],
|
|
64
64
|
"LSP8InvalidTransferBatch()": [
|
|
65
65
|
{
|
|
66
|
-
"details": "
|
|
66
|
+
"details": "Reverts when the parameters used for `transferBatch` have different lengths."
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"LSP8NonExistentTokenId(bytes32)": [
|
|
70
70
|
{
|
|
71
|
-
"details": "
|
|
71
|
+
"details": "Reverts when `tokenId` has not been minted."
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"LSP8NonExistingOperator(address,bytes32)": [
|
|
75
75
|
{
|
|
76
|
-
"details": "
|
|
76
|
+
"details": "Reverts when `operator` is not an operator for the `tokenId`."
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"LSP8NotTokenOperator(bytes32,address)": [
|
|
80
80
|
{
|
|
81
|
-
"details": "
|
|
81
|
+
"details": "Reverts when `caller` is not an allowed operator for `tokenId`."
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
84
|
"LSP8NotTokenOwner(address,bytes32,address)": [
|
|
85
85
|
{
|
|
86
|
-
"details": "
|
|
86
|
+
"details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
"LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
90
90
|
{
|
|
91
|
-
"details": "
|
|
91
|
+
"details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
92
92
|
}
|
|
93
93
|
],
|
|
94
94
|
"LSP8NotifyTokenReceiverIsEOA(address)": [
|
|
95
95
|
{
|
|
96
|
-
"details": "
|
|
96
|
+
"details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
99
|
"LSP8OperatorAlreadyAuthorized(address,bytes32)": [
|
|
100
100
|
{
|
|
101
|
-
"details": "
|
|
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
|
+
"LSP8TokenIdTypeNotEditable()": [
|
|
110
|
+
{
|
|
111
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdType` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdType` 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."
|
|
102
112
|
}
|
|
103
113
|
],
|
|
104
114
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
105
115
|
{
|
|
106
|
-
"details": "
|
|
116
|
+
"details": "Reverts when trying to authorize or revoke the token's owner as an operator."
|
|
107
117
|
}
|
|
108
118
|
],
|
|
109
119
|
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
110
120
|
{
|
|
111
121
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
112
122
|
}
|
|
123
|
+
],
|
|
124
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
125
|
+
{
|
|
126
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
127
|
+
"params": {
|
|
128
|
+
"callerAddress": "The address that tried to make the call."
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
133
|
+
{
|
|
134
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
135
|
+
}
|
|
113
136
|
]
|
|
114
137
|
},
|
|
115
138
|
"kind": "dev",
|
|
@@ -132,14 +155,16 @@
|
|
|
132
155
|
}
|
|
133
156
|
},
|
|
134
157
|
"getData(bytes32)": {
|
|
158
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
135
159
|
"params": {
|
|
136
|
-
"dataKey": "The key which
|
|
160
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
137
161
|
},
|
|
138
162
|
"returns": {
|
|
139
|
-
"dataValue": "The
|
|
163
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
140
164
|
}
|
|
141
165
|
},
|
|
142
166
|
"getDataBatch(bytes32[])": {
|
|
167
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
143
168
|
"params": {
|
|
144
169
|
"dataKeys": "The array of keys which values to retrieve"
|
|
145
170
|
},
|
|
@@ -181,16 +206,23 @@
|
|
|
181
206
|
}
|
|
182
207
|
},
|
|
183
208
|
"setData(bytes32,bytes)": {
|
|
209
|
+
"custom:events": "{DataChanged} event.",
|
|
210
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
211
|
+
"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**.",
|
|
212
|
+
"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.",
|
|
184
213
|
"params": {
|
|
185
|
-
"dataKey": "The key to
|
|
186
|
-
"dataValue": "The
|
|
214
|
+
"dataKey": "The data key for which to set a new value.",
|
|
215
|
+
"dataValue": "The new bytes value to set."
|
|
187
216
|
}
|
|
188
217
|
},
|
|
189
218
|
"setDataBatch(bytes32[],bytes[])": {
|
|
190
|
-
"
|
|
219
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
220
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
221
|
+
"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**.",
|
|
222
|
+
"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.",
|
|
191
223
|
"params": {
|
|
192
|
-
"dataKeys": "
|
|
193
|
-
"dataValues": "
|
|
224
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
225
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
194
226
|
}
|
|
195
227
|
},
|
|
196
228
|
"supportsInterface(bytes4)": {
|
|
@@ -227,10 +259,10 @@
|
|
|
227
259
|
}
|
|
228
260
|
},
|
|
229
261
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
230
|
-
"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 `
|
|
262
|
+
"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.",
|
|
231
263
|
"params": {
|
|
232
|
-
"allowNonLSP1Recipient": "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.",
|
|
233
264
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
265
|
+
"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.",
|
|
234
266
|
"from": "The address that owns the given `tokenId`.",
|
|
235
267
|
"to": "The address that will receive the `tokenId`.",
|
|
236
268
|
"tokenId": "The token ID to transfer."
|
|
@@ -239,8 +271,8 @@
|
|
|
239
271
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
240
272
|
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
241
273
|
"params": {
|
|
242
|
-
"allowNonLSP1Recipient": "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.",
|
|
243
274
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
275
|
+
"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.",
|
|
244
276
|
"from": "An array of sending addresses.",
|
|
245
277
|
"to": "An array of recipient addresses.",
|
|
246
278
|
"tokenId": "An array of token IDs to transfer."
|