@lukso/lsp-smart-contracts 0.11.1 → 0.12.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 +10 -2
- package/artifacts/Create2Factory.json +2 -2
- package/artifacts/LSP0ERC725Account.json +68 -47
- package/artifacts/LSP0ERC725AccountInit.json +68 -47
- package/artifacts/LSP11BasicSocialRecovery.json +18 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +18 -2
- package/artifacts/LSP16UniversalFactory.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +27 -46
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +27 -46
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +16 -0
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +16 -0
- package/artifacts/LSP6KeyManager.json +34 -6
- package/artifacts/LSP6KeyManagerInit.json +34 -6
- package/artifacts/LSP7CappedSupply.json +64 -4
- package/artifacts/LSP7CappedSupplyInitAbstract.json +64 -4
- package/artifacts/LSP7CompatibleERC20.json +83 -23
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +83 -23
- package/artifacts/LSP7CompatibleERC20Mintable.json +86 -26
- package/artifacts/LSP7CompatibleERC20MintableInit.json +86 -26
- package/artifacts/LSP7DigitalAsset.json +64 -4
- package/artifacts/LSP7DigitalAssetInitAbstract.json +64 -4
- package/artifacts/LSP7Mintable.json +67 -7
- package/artifacts/LSP7MintableInit.json +67 -7
- package/artifacts/LSP8CappedSupply.json +57 -3
- package/artifacts/LSP8CappedSupplyInitAbstract.json +57 -3
- package/artifacts/LSP8CompatibleERC721.json +79 -25
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +79 -25
- package/artifacts/LSP8CompatibleERC721Mintable.json +87 -28
- package/artifacts/LSP8CompatibleERC721MintableInit.json +87 -28
- package/artifacts/LSP8IdentifiableDigitalAsset.json +57 -3
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -3
- package/artifacts/LSP8Mintable.json +65 -6
- package/artifacts/LSP8MintableInit.json +65 -6
- package/artifacts/LSP9Vault.json +51 -35
- package/artifacts/LSP9VaultInit.json +51 -35
- package/artifacts/UniversalProfile.json +68 -47
- package/artifacts/UniversalProfileInit.json +68 -47
- package/contracts/Factories/Create2Factory.sol +1 -1
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +0 -22
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +6 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +12 -2
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +196 -123
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +11 -2
- 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 +22 -15
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +6 -5
- 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 +49 -33
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +33 -27
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +5 -48
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +13 -9
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +64 -45
- package/contracts/LSP20CallVerification/LSP20Constants.sol +6 -6
- package/contracts/LSP20CallVerification/LSP20Errors.sol +10 -4
- 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 +176 -101
- 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 +34 -28
- package/contracts/LSP6KeyManager/LSP6Utils.sol +29 -2
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +70 -10
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +2 -2
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +29 -13
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +273 -265
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +28 -12
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +17 -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 +128 -54
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +129 -54
- 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 +16 -11
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +20 -6
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +32 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +67 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +143 -137
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +69 -15
- 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 +172 -80
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +178 -91
- 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 -21
- package/contracts/LSP9Vault/LSP9Constants.sol +6 -1
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
- package/contracts/LSP9Vault/LSP9VaultCore.sol +119 -66
- package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -1
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
- package/contracts/UniversalProfile.sol +1 -1
- package/contracts/UniversalProfileInit.sol +1 -1
- package/contracts/UniversalProfileInitAbstract.sol +1 -1
- package/contracts/Version.sol +16 -0
- package/devdocs/LSP0ERC725Account.json +86 -52
- package/devdocs/LSP0ERC725AccountInit.json +86 -52
- package/devdocs/LSP11BasicSocialRecovery.json +13 -0
- package/devdocs/LSP11BasicSocialRecoveryInit.json +13 -0
- package/devdocs/LSP16UniversalFactory.json +9 -9
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +7 -6
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +7 -6
- package/devdocs/LSP4DigitalAssetMetadata.json +32 -10
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +32 -10
- package/devdocs/LSP6KeyManager.json +27 -13
- package/devdocs/LSP6KeyManagerInit.json +27 -13
- package/devdocs/LSP7CappedSupply.json +61 -28
- package/devdocs/LSP7CappedSupplyInitAbstract.json +61 -28
- package/devdocs/LSP7CompatibleERC20.json +102 -32
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +102 -32
- package/devdocs/LSP7CompatibleERC20Mintable.json +102 -32
- package/devdocs/LSP7CompatibleERC20MintableInit.json +102 -32
- package/devdocs/LSP7DigitalAsset.json +61 -28
- package/devdocs/LSP7DigitalAssetInitAbstract.json +61 -28
- package/devdocs/LSP7Mintable.json +61 -28
- package/devdocs/LSP7MintableInit.json +61 -28
- package/devdocs/LSP8CappedSupply.json +66 -27
- package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -27
- package/devdocs/LSP8CompatibleERC721.json +93 -33
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +93 -33
- package/devdocs/LSP8CompatibleERC721Mintable.json +95 -35
- package/devdocs/LSP8CompatibleERC721MintableInit.json +96 -36
- package/devdocs/LSP8IdentifiableDigitalAsset.json +70 -28
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -27
- package/devdocs/LSP8Mintable.json +68 -29
- package/devdocs/LSP8MintableInit.json +69 -30
- package/devdocs/LSP9Vault.json +69 -41
- package/devdocs/LSP9VaultInit.json +69 -41
- package/devdocs/UniversalProfile.json +86 -52
- package/devdocs/UniversalProfileInit.json +86 -52
- package/dist/constants.cjs.js +5565 -2846
- package/dist/constants.d.ts +3996 -1182
- package/dist/constants.es.js +5564 -2846
- package/package.json +8 -8
- package/userdocs/LSP0ERC725Account.json +20 -11
- package/userdocs/LSP0ERC725AccountInit.json +20 -11
- package/userdocs/LSP16UniversalFactory.json +26 -1
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +4 -11
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +4 -11
- package/userdocs/LSP4DigitalAssetMetadata.json +7 -4
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -4
- package/userdocs/LSP6KeyManager.json +3 -5
- package/userdocs/LSP6KeyManagerInit.json +3 -5
- package/userdocs/LSP7CappedSupply.json +17 -6
- package/userdocs/LSP7CappedSupplyInitAbstract.json +16 -5
- package/userdocs/LSP7CompatibleERC20.json +18 -5
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +18 -5
- package/userdocs/LSP7CompatibleERC20Mintable.json +18 -5
- package/userdocs/LSP7CompatibleERC20MintableInit.json +18 -5
- package/userdocs/LSP7DigitalAsset.json +18 -5
- package/userdocs/LSP7DigitalAssetInitAbstract.json +18 -5
- package/userdocs/LSP7Mintable.json +18 -5
- package/userdocs/LSP7MintableInit.json +18 -5
- package/userdocs/LSP8CappedSupply.json +16 -5
- package/userdocs/LSP8CappedSupplyInitAbstract.json +15 -4
- package/userdocs/LSP8CompatibleERC721.json +30 -17
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +30 -17
- package/userdocs/LSP8CompatibleERC721Mintable.json +31 -18
- package/userdocs/LSP8CompatibleERC721MintableInit.json +32 -19
- package/userdocs/LSP8IdentifiableDigitalAsset.json +18 -5
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +17 -4
- package/userdocs/LSP8Mintable.json +18 -5
- package/userdocs/LSP8MintableInit.json +19 -6
- package/userdocs/LSP9Vault.json +23 -14
- package/userdocs/LSP9VaultInit.json +23 -14
- package/userdocs/UniversalProfile.json +20 -11
- package/userdocs/UniversalProfileInit.json +20 -11
- package/CONTRIBUTING.md +0 -184
- 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
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"errors": {
|
|
3
3
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
4
4
|
{
|
|
5
|
-
"details": "
|
|
5
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
6
6
|
}
|
|
7
7
|
],
|
|
8
8
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
9
9
|
{
|
|
10
|
-
"details": "
|
|
10
|
+
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"ERC725Y_MsgValueDisallowed()": [
|
|
14
14
|
{
|
|
15
|
-
"details": "
|
|
15
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"InvalidExtensionAddress(bytes)": [
|
|
@@ -37,73 +37,96 @@
|
|
|
37
37
|
],
|
|
38
38
|
"LSP8CannotSendToAddressZero()": [
|
|
39
39
|
{
|
|
40
|
-
"details": "
|
|
40
|
+
"details": "Reverts when trying to send token to the zero address."
|
|
41
41
|
}
|
|
42
42
|
],
|
|
43
43
|
"LSP8CannotSendToSelf()": [
|
|
44
44
|
{
|
|
45
|
-
"details": "
|
|
45
|
+
"details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
|
|
46
46
|
}
|
|
47
47
|
],
|
|
48
48
|
"LSP8CannotUseAddressZeroAsOperator()": [
|
|
49
49
|
{
|
|
50
|
-
"details": "
|
|
50
|
+
"details": "Reverts when trying to set the zero address as an operator."
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
"LSP8InvalidTransferBatch()": [
|
|
54
54
|
{
|
|
55
|
-
"details": "
|
|
55
|
+
"details": "Reverts when the parameters used for `transferBatch` have different lengths."
|
|
56
56
|
}
|
|
57
57
|
],
|
|
58
58
|
"LSP8NonExistentTokenId(bytes32)": [
|
|
59
59
|
{
|
|
60
|
-
"details": "
|
|
60
|
+
"details": "Reverts when `tokenId` has not been minted."
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
63
|
"LSP8NonExistingOperator(address,bytes32)": [
|
|
64
64
|
{
|
|
65
|
-
"details": "
|
|
65
|
+
"details": "Reverts when `operator` is not an operator for the `tokenId`."
|
|
66
66
|
}
|
|
67
67
|
],
|
|
68
68
|
"LSP8NotTokenOperator(bytes32,address)": [
|
|
69
69
|
{
|
|
70
|
-
"details": "
|
|
70
|
+
"details": "Reverts when `caller` is not an allowed operator for `tokenId`."
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"LSP8NotTokenOwner(address,bytes32,address)": [
|
|
74
74
|
{
|
|
75
|
-
"details": "
|
|
75
|
+
"details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
"LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
79
79
|
{
|
|
80
|
-
"details": "
|
|
80
|
+
"details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
81
81
|
}
|
|
82
82
|
],
|
|
83
83
|
"LSP8NotifyTokenReceiverIsEOA(address)": [
|
|
84
84
|
{
|
|
85
|
-
"details": "
|
|
85
|
+
"details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
"LSP8OperatorAlreadyAuthorized(address,bytes32)": [
|
|
89
89
|
{
|
|
90
|
-
"details": "
|
|
90
|
+
"details": "Reverts when `operator` is already authorized for the `tokenId`."
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"LSP8TokenContractCannotHoldValue()": [
|
|
94
|
+
{
|
|
95
|
+
"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."
|
|
91
96
|
}
|
|
92
97
|
],
|
|
93
98
|
"LSP8TokenIdAlreadyMinted(bytes32)": [
|
|
94
99
|
{
|
|
95
|
-
"details": "
|
|
100
|
+
"details": "Reverts when `tokenId` has already been minted."
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"LSP8TokenIdTypeNotEditable()": [
|
|
104
|
+
{
|
|
105
|
+
"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."
|
|
96
106
|
}
|
|
97
107
|
],
|
|
98
108
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
99
109
|
{
|
|
100
|
-
"details": "
|
|
110
|
+
"details": "Reverts when trying to authorize or revoke the token's owner as an operator."
|
|
101
111
|
}
|
|
102
112
|
],
|
|
103
113
|
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
104
114
|
{
|
|
105
115
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
106
116
|
}
|
|
117
|
+
],
|
|
118
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
119
|
+
{
|
|
120
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
121
|
+
"params": {
|
|
122
|
+
"callerAddress": "The address that tried to make the call."
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
127
|
+
{
|
|
128
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
129
|
+
}
|
|
107
130
|
]
|
|
108
131
|
},
|
|
109
132
|
"kind": "dev",
|
|
@@ -117,7 +140,7 @@
|
|
|
117
140
|
},
|
|
118
141
|
"authorizeOperator(address,bytes32,bytes)": {
|
|
119
142
|
"custom:events": "- LSP7 {AuthorizedOperator} event. - ERC721 {Approval} event.",
|
|
120
|
-
"details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
|
|
143
|
+
"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",
|
|
121
144
|
"params": {
|
|
122
145
|
"operator": "The address to authorize as an operator.",
|
|
123
146
|
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
@@ -146,14 +169,16 @@
|
|
|
146
169
|
}
|
|
147
170
|
},
|
|
148
171
|
"getData(bytes32)": {
|
|
172
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
149
173
|
"params": {
|
|
150
|
-
"dataKey": "The key which
|
|
174
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
151
175
|
},
|
|
152
176
|
"returns": {
|
|
153
|
-
"dataValue": "The
|
|
177
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
154
178
|
}
|
|
155
179
|
},
|
|
156
180
|
"getDataBatch(bytes32[])": {
|
|
181
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
157
182
|
"params": {
|
|
158
183
|
"dataKeys": "The array of keys which values to retrieve"
|
|
159
184
|
},
|
|
@@ -170,13 +195,23 @@
|
|
|
170
195
|
"_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
|
|
171
196
|
}
|
|
172
197
|
},
|
|
173
|
-
"initialize(string,string,address)": {
|
|
198
|
+
"initialize(string,string,address,uint256)": {
|
|
174
199
|
"params": {
|
|
175
200
|
"name_": "The name of the token.",
|
|
176
201
|
"newOwner_": "The owner of the token contract.",
|
|
177
202
|
"symbol_": "The symbol of the token."
|
|
178
203
|
}
|
|
179
204
|
},
|
|
205
|
+
"isApprovedForAll(address,address)": {
|
|
206
|
+
"details": "Compatible with ERC721 isApprovedForAll.",
|
|
207
|
+
"params": {
|
|
208
|
+
"operator": "The operator address to query.",
|
|
209
|
+
"tokenOwner": "The tokenOwner address to query."
|
|
210
|
+
},
|
|
211
|
+
"returns": {
|
|
212
|
+
"_0": "Returns if the `operator` is allowed to manage all of the assets of `owner`"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
180
215
|
"isOperatorFor(address,bytes32)": {
|
|
181
216
|
"details": "Returns whether `operator` address is an operator for a given `tokenId`.",
|
|
182
217
|
"params": {
|
|
@@ -190,14 +225,14 @@
|
|
|
190
225
|
"mint(address,bytes32,bool,bytes)": {
|
|
191
226
|
"details": "Public {_mint} function only callable by the {owner}.",
|
|
192
227
|
"params": {
|
|
193
|
-
"allowNonLSP1Recipient": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
|
|
194
228
|
"data": "Any addition data to be sent alongside the minting.",
|
|
229
|
+
"force": "Set to `false` to ensure that you are minting for a recipient that implements LSP1, `false` otherwise for forcing the minting.",
|
|
195
230
|
"to": "The address that will receive the minted `tokenId`.",
|
|
196
231
|
"tokenId": "The tokenId to mint."
|
|
197
232
|
}
|
|
198
233
|
},
|
|
199
234
|
"name()": {
|
|
200
|
-
"details": "Returns the name of the token.",
|
|
235
|
+
"details": "Returns the name of the token. For compatibility with clients & tools that expect ERC721.",
|
|
201
236
|
"returns": {
|
|
202
237
|
"_0": "The name of the token"
|
|
203
238
|
}
|
|
@@ -217,16 +252,17 @@
|
|
|
217
252
|
"renounceOwnership()": {
|
|
218
253
|
"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."
|
|
219
254
|
},
|
|
220
|
-
"revokeOperator(address,bytes32,bytes)": {
|
|
255
|
+
"revokeOperator(address,bytes32,bool,bytes)": {
|
|
221
256
|
"details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
|
|
222
257
|
"params": {
|
|
258
|
+
"notify": "Boolean indicating whether to notify the operator or not",
|
|
223
259
|
"operator": "The address to revoke as an operator.",
|
|
224
260
|
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
225
261
|
"tokenId": "The tokenId `operator` is revoked from operating on."
|
|
226
262
|
}
|
|
227
263
|
},
|
|
228
264
|
"safeTransferFrom(address,address,uint256)": {
|
|
229
|
-
"custom:info": "This function sets the `
|
|
265
|
+
"custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
230
266
|
"details": "Safe Transfer function without optional data from the ERC721 standard interface.",
|
|
231
267
|
"params": {
|
|
232
268
|
"from": "The sending address.",
|
|
@@ -235,7 +271,7 @@
|
|
|
235
271
|
}
|
|
236
272
|
},
|
|
237
273
|
"safeTransferFrom(address,address,uint256,bytes)": {
|
|
238
|
-
"custom:info": "This function sets the `
|
|
274
|
+
"custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
239
275
|
"details": "Safe Transfer function with optional data from the ERC721 standard interface.",
|
|
240
276
|
"params": {
|
|
241
277
|
"data": "The data to be sent with the transfer.",
|
|
@@ -245,26 +281,38 @@
|
|
|
245
281
|
}
|
|
246
282
|
},
|
|
247
283
|
"setApprovalForAll(address,bool)": {
|
|
248
|
-
"
|
|
284
|
+
"custom:events": "{ApprovalForAll} event",
|
|
285
|
+
"details": "Enable or disable approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. The contract MUST allow multiple operators per owner. See {_setApprovalForAll}",
|
|
286
|
+
"params": {
|
|
287
|
+
"approved": "True if the operator is approved, false to revoke approval.",
|
|
288
|
+
"operator": "Address to add to the set of authorized operators."
|
|
289
|
+
}
|
|
249
290
|
},
|
|
250
291
|
"setData(bytes32,bytes)": {
|
|
292
|
+
"custom:events": "{DataChanged} event.",
|
|
293
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
294
|
+
"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**.",
|
|
295
|
+
"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.",
|
|
251
296
|
"params": {
|
|
252
|
-
"dataKey": "The key to
|
|
253
|
-
"dataValue": "The
|
|
297
|
+
"dataKey": "The data key for which to set a new value.",
|
|
298
|
+
"dataValue": "The new bytes value to set."
|
|
254
299
|
}
|
|
255
300
|
},
|
|
256
301
|
"setDataBatch(bytes32[],bytes[])": {
|
|
257
|
-
"
|
|
302
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
303
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
304
|
+
"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**.",
|
|
305
|
+
"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.",
|
|
258
306
|
"params": {
|
|
259
|
-
"dataKeys": "
|
|
260
|
-
"dataValues": "
|
|
307
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
308
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
261
309
|
}
|
|
262
310
|
},
|
|
263
311
|
"supportsInterface(bytes4)": {
|
|
264
312
|
"details": "See {IERC165-supportsInterface}."
|
|
265
313
|
},
|
|
266
314
|
"symbol()": {
|
|
267
|
-
"details": "Returns the symbol of the token, usually a shorter version of the name.",
|
|
315
|
+
"details": "Returns the symbol of the token, usually a shorter version of the name. For compatibility with clients & tools that expect ERC721.",
|
|
268
316
|
"returns": {
|
|
269
317
|
"_0": "The symbol of the token"
|
|
270
318
|
}
|
|
@@ -287,6 +335,12 @@
|
|
|
287
335
|
"_0": "The owner address of the given `tokenId`."
|
|
288
336
|
}
|
|
289
337
|
},
|
|
338
|
+
"tokenURI(uint256)": {
|
|
339
|
+
"details": "Compatible with ERC721Metadata tokenURI. Retrieve the tokenURI for a specific `tokenId`.",
|
|
340
|
+
"returns": {
|
|
341
|
+
"_0": "The token URI."
|
|
342
|
+
}
|
|
343
|
+
},
|
|
290
344
|
"totalSupply()": {
|
|
291
345
|
"details": "Returns the number of existing tokens that have been minted in this contract.",
|
|
292
346
|
"returns": {
|
|
@@ -294,10 +348,10 @@
|
|
|
294
348
|
}
|
|
295
349
|
},
|
|
296
350
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
297
|
-
"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 `
|
|
351
|
+
"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.",
|
|
298
352
|
"params": {
|
|
299
|
-
"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.",
|
|
300
353
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
354
|
+
"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.",
|
|
301
355
|
"from": "The address that owns the given `tokenId`.",
|
|
302
356
|
"to": "The address that will receive the `tokenId`.",
|
|
303
357
|
"tokenId": "The token ID to transfer."
|
|
@@ -306,15 +360,15 @@
|
|
|
306
360
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
307
361
|
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
308
362
|
"params": {
|
|
309
|
-
"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.",
|
|
310
363
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
364
|
+
"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.",
|
|
311
365
|
"from": "An array of sending addresses.",
|
|
312
366
|
"to": "An array of recipient addresses.",
|
|
313
367
|
"tokenId": "An array of token IDs to transfer."
|
|
314
368
|
}
|
|
315
369
|
},
|
|
316
370
|
"transferFrom(address,address,uint256)": {
|
|
317
|
-
"custom:info": "This function sets the `
|
|
371
|
+
"custom:info": "This function sets the `force` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
318
372
|
"details": "Transfer functions from the ERC721 standard interface.",
|
|
319
373
|
"params": {
|
|
320
374
|
"from": "The sending address.",
|
|
@@ -324,6 +378,12 @@
|
|
|
324
378
|
},
|
|
325
379
|
"transferOwnership(address)": {
|
|
326
380
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
381
|
+
},
|
|
382
|
+
"version()": {
|
|
383
|
+
"details": "Get the version of the contract.",
|
|
384
|
+
"returns": {
|
|
385
|
+
"_0": "The version of the the contract."
|
|
386
|
+
}
|
|
327
387
|
}
|
|
328
388
|
},
|
|
329
389
|
"title": "LSP8CompatibleERC721MintableInit deployable preset contract (proxy version) with a public mint function callable only by the contract {owner}",
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
"errors": {
|
|
5
5
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
6
6
|
{
|
|
7
|
-
"details": "
|
|
7
|
+
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
11
11
|
{
|
|
12
|
-
"details": "
|
|
12
|
+
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"ERC725Y_MsgValueDisallowed()": [
|
|
16
16
|
{
|
|
17
|
-
"details": "
|
|
17
|
+
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"InvalidExtensionAddress(bytes)": [
|
|
@@ -39,74 +39,97 @@
|
|
|
39
39
|
],
|
|
40
40
|
"LSP8CannotSendToAddressZero()": [
|
|
41
41
|
{
|
|
42
|
-
"details": "
|
|
42
|
+
"details": "Reverts when trying to send token to the zero address."
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"LSP8CannotSendToSelf()": [
|
|
46
46
|
{
|
|
47
|
-
"details": "
|
|
47
|
+
"details": "Reverts when specifying the same address for `from` and `to` in a token transfer."
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"LSP8CannotUseAddressZeroAsOperator()": [
|
|
51
51
|
{
|
|
52
|
-
"details": "
|
|
52
|
+
"details": "Reverts when trying to set the zero address as an operator."
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
55
|
"LSP8InvalidTransferBatch()": [
|
|
56
56
|
{
|
|
57
|
-
"details": "
|
|
57
|
+
"details": "Reverts when the parameters used for `transferBatch` have different lengths."
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
"LSP8NonExistentTokenId(bytes32)": [
|
|
61
61
|
{
|
|
62
|
-
"details": "
|
|
62
|
+
"details": "Reverts when `tokenId` has not been minted."
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"LSP8NonExistingOperator(address,bytes32)": [
|
|
66
66
|
{
|
|
67
|
-
"details": "
|
|
67
|
+
"details": "Reverts when `operator` is not an operator for the `tokenId`."
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
"LSP8NotTokenOperator(bytes32,address)": [
|
|
71
71
|
{
|
|
72
|
-
"details": "
|
|
72
|
+
"details": "Reverts when `caller` is not an allowed operator for `tokenId`."
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
"LSP8NotTokenOwner(address,bytes32,address)": [
|
|
76
76
|
{
|
|
77
|
-
"details": "
|
|
77
|
+
"details": "Reverts when `caller` is not the `tokenOwner` of the `tokenId`."
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
80
|
"LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
81
81
|
{
|
|
82
|
-
"details": "
|
|
82
|
+
"details": "Reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool force` set as `false`."
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
85
|
"LSP8NotifyTokenReceiverIsEOA(address)": [
|
|
86
86
|
{
|
|
87
|
-
"details": "
|
|
87
|
+
"details": "Reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool force` set as `false`."
|
|
88
88
|
}
|
|
89
89
|
],
|
|
90
90
|
"LSP8OperatorAlreadyAuthorized(address,bytes32)": [
|
|
91
91
|
{
|
|
92
|
-
"details": "
|
|
92
|
+
"details": "Reverts when `operator` is already authorized for the `tokenId`."
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"LSP8TokenContractCannotHoldValue()": [
|
|
96
|
+
{
|
|
97
|
+
"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."
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"LSP8TokenIdTypeNotEditable()": [
|
|
101
|
+
{
|
|
102
|
+
"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."
|
|
93
103
|
}
|
|
94
104
|
],
|
|
95
105
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
96
106
|
{
|
|
97
|
-
"details": "
|
|
107
|
+
"details": "Reverts when trying to authorize or revoke the token's owner as an operator."
|
|
98
108
|
}
|
|
99
109
|
],
|
|
100
110
|
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
101
111
|
{
|
|
102
112
|
"details": "reverts when there is no extension for the function selector being called with"
|
|
103
113
|
}
|
|
114
|
+
],
|
|
115
|
+
"OwnableCallerNotTheOwner(address)": [
|
|
116
|
+
{
|
|
117
|
+
"details": "Reverts when only the owner is allowed to call the function.",
|
|
118
|
+
"params": {
|
|
119
|
+
"callerAddress": "The address that tried to make the call."
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
124
|
+
{
|
|
125
|
+
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
126
|
+
}
|
|
104
127
|
]
|
|
105
128
|
},
|
|
106
129
|
"kind": "dev",
|
|
107
130
|
"methods": {
|
|
108
131
|
"authorizeOperator(address,bytes32,bytes)": {
|
|
109
|
-
"details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
|
|
132
|
+
"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",
|
|
110
133
|
"params": {
|
|
111
134
|
"operator": "The address to authorize as an operator.",
|
|
112
135
|
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
@@ -123,21 +146,26 @@
|
|
|
123
146
|
}
|
|
124
147
|
},
|
|
125
148
|
"constructor": {
|
|
149
|
+
"custom:warning": "Make sure the tokenId type provided on deployment is correct, as it can only be set once and cannot be changed in the ERC725Y storage after the contract has been deployed.",
|
|
150
|
+
"details": "Deploy a `LSP8IdentifiableDigitalAsset` contract and set the tokenId type inside the ERC725Y storage of the contract. This will also set the token `name_` and `symbol_` under the ERC725Y data keys `LSP4TokenName` and `LSP4TokenSymbol`.",
|
|
126
151
|
"params": {
|
|
127
152
|
"name_": "The name of the token",
|
|
128
153
|
"newOwner_": "The owner of the the token-Metadata",
|
|
129
|
-
"symbol_": "The symbol of the token"
|
|
154
|
+
"symbol_": "The symbol of the token",
|
|
155
|
+
"tokenIdType_": "The type of tokenIds (= NFTs) that this contract will create. Available options are: NUMBER = `0`; STRING = `1`; UNIQUE_ID = `2`; HASH = `3`; ADDRESS = `4`."
|
|
130
156
|
}
|
|
131
157
|
},
|
|
132
158
|
"getData(bytes32)": {
|
|
159
|
+
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
133
160
|
"params": {
|
|
134
|
-
"dataKey": "The key which
|
|
161
|
+
"dataKey": "The data key for which to retrieve the value."
|
|
135
162
|
},
|
|
136
163
|
"returns": {
|
|
137
|
-
"dataValue": "The
|
|
164
|
+
"dataValue": "The bytes value stored under the specified data key."
|
|
138
165
|
}
|
|
139
166
|
},
|
|
140
167
|
"getDataBatch(bytes32[])": {
|
|
168
|
+
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
141
169
|
"params": {
|
|
142
170
|
"dataKeys": "The array of keys which values to retrieve"
|
|
143
171
|
},
|
|
@@ -170,25 +198,33 @@
|
|
|
170
198
|
"renounceOwnership()": {
|
|
171
199
|
"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."
|
|
172
200
|
},
|
|
173
|
-
"revokeOperator(address,bytes32,bytes)": {
|
|
201
|
+
"revokeOperator(address,bytes32,bool,bytes)": {
|
|
174
202
|
"details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
|
|
175
203
|
"params": {
|
|
204
|
+
"notify": "Boolean indicating whether to notify the operator or not",
|
|
176
205
|
"operator": "The address to revoke as an operator.",
|
|
177
206
|
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
178
207
|
"tokenId": "The tokenId `operator` is revoked from operating on."
|
|
179
208
|
}
|
|
180
209
|
},
|
|
181
210
|
"setData(bytes32,bytes)": {
|
|
211
|
+
"custom:events": "{DataChanged} event.",
|
|
212
|
+
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
213
|
+
"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**.",
|
|
214
|
+
"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.",
|
|
182
215
|
"params": {
|
|
183
|
-
"dataKey": "The key to
|
|
184
|
-
"dataValue": "The
|
|
216
|
+
"dataKey": "The data key for which to set a new value.",
|
|
217
|
+
"dataValue": "The new bytes value to set."
|
|
185
218
|
}
|
|
186
219
|
},
|
|
187
220
|
"setDataBatch(bytes32[],bytes[])": {
|
|
188
|
-
"
|
|
221
|
+
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
222
|
+
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
223
|
+
"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**.",
|
|
224
|
+
"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.",
|
|
189
225
|
"params": {
|
|
190
|
-
"dataKeys": "
|
|
191
|
-
"dataValues": "
|
|
226
|
+
"dataKeys": "An array of data keys to set bytes values for.",
|
|
227
|
+
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
192
228
|
}
|
|
193
229
|
},
|
|
194
230
|
"supportsInterface(bytes4)": {
|
|
@@ -219,10 +255,10 @@
|
|
|
219
255
|
}
|
|
220
256
|
},
|
|
221
257
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
222
|
-
"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 `
|
|
258
|
+
"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.",
|
|
223
259
|
"params": {
|
|
224
|
-
"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.",
|
|
225
260
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
261
|
+
"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.",
|
|
226
262
|
"from": "The address that owns the given `tokenId`.",
|
|
227
263
|
"to": "The address that will receive the `tokenId`.",
|
|
228
264
|
"tokenId": "The token ID to transfer."
|
|
@@ -231,8 +267,8 @@
|
|
|
231
267
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
232
268
|
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
233
269
|
"params": {
|
|
234
|
-
"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.",
|
|
235
270
|
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
271
|
+
"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.",
|
|
236
272
|
"from": "An array of sending addresses.",
|
|
237
273
|
"to": "An array of recipient addresses.",
|
|
238
274
|
"tokenId": "An array of token IDs to transfer."
|
|
@@ -240,6 +276,12 @@
|
|
|
240
276
|
},
|
|
241
277
|
"transferOwnership(address)": {
|
|
242
278
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
279
|
+
},
|
|
280
|
+
"version()": {
|
|
281
|
+
"details": "Get the version of the contract.",
|
|
282
|
+
"returns": {
|
|
283
|
+
"_0": "The version of the the contract."
|
|
284
|
+
}
|
|
243
285
|
}
|
|
244
286
|
},
|
|
245
287
|
"title": "Implementation of a LSP8 Identifiable Digital Asset, a contract that represents a non-fungible token.",
|