@lukso/lsp-smart-contracts 0.11.0-rc.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/artifacts/LSP0ERC725Account.json +7 -2
- package/artifacts/LSP0ERC725AccountInit.json +7 -2
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -79
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -41
- package/artifacts/LSP23LinkedContractsFactory.json +544 -0
- package/artifacts/LSP6KeyManager.json +24 -19
- package/artifacts/LSP6KeyManagerInit.json +24 -19
- package/artifacts/LSP7CappedSupply.json +88 -0
- package/artifacts/LSP7CappedSupplyInitAbstract.json +88 -0
- package/artifacts/LSP7CompatibleERC20.json +88 -0
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +88 -0
- package/artifacts/LSP7CompatibleERC20Mintable.json +90 -2
- package/artifacts/LSP7CompatibleERC20MintableInit.json +90 -2
- package/artifacts/LSP7DigitalAsset.json +88 -0
- package/artifacts/LSP7DigitalAssetInitAbstract.json +88 -0
- package/artifacts/LSP7Mintable.json +90 -2
- package/artifacts/LSP7MintableInit.json +90 -2
- package/artifacts/LSP8CappedSupply.json +59 -0
- package/artifacts/LSP8CappedSupplyInitAbstract.json +59 -0
- package/artifacts/LSP8CompatibleERC721.json +60 -1
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +60 -1
- package/artifacts/LSP8CompatibleERC721Mintable.json +62 -3
- package/artifacts/LSP8CompatibleERC721MintableInit.json +62 -3
- package/artifacts/LSP8IdentifiableDigitalAsset.json +59 -0
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +59 -0
- package/artifacts/LSP8Mintable.json +61 -2
- package/artifacts/LSP8MintableInit.json +61 -2
- package/artifacts/LSP9Vault.json +7 -2
- package/artifacts/LSP9VaultInit.json +7 -2
- package/artifacts/UniversalProfile.json +7 -2
- package/artifacts/UniversalProfileInit.json +7 -2
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +8 -36
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +15 -30
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +122 -206
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +18 -36
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +8 -34
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +148 -177
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +21 -20
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +13 -2
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +50 -20
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +10 -0
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +16 -34
- package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -1
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +16 -11
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +5 -10
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +192 -177
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +150 -88
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +66 -48
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -1
- package/contracts/LSP23LinkedContractsDeployment/ILSP23LinkedContractsFactory.sol +192 -0
- package/contracts/LSP23LinkedContractsDeployment/IPostDeploymentModule.sol +18 -0
- package/contracts/LSP23LinkedContractsDeployment/LSP23Errors.sol +24 -0
- package/contracts/LSP23LinkedContractsDeployment/LSP23LinkedContractsFactory.sol +392 -0
- package/contracts/{LSP23MultiChainDeployment → LSP23LinkedContractsDeployment}/modules/UniversalProfileInitPostDeploymentModule.sol +5 -1
- package/contracts/LSP23LinkedContractsDeployment/modules/UniversalProfilePostDeploymentModule.sol +61 -0
- package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +68 -0
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +8 -0
- package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +17 -0
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +143 -0
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +256 -61
- package/contracts/{LSP3UniversalProfile → LSP3ProfileMetadata}/LSP3Constants.sol +3 -3
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +9 -8
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +13 -6
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +4 -4
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +148 -189
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +26 -54
- package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -3
- package/contracts/LSP6KeyManager/LSP6Errors.sol +142 -63
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +7 -4
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +125 -80
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +8 -4
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +52 -84
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +59 -10
- package/contracts/LSP6KeyManager/LSP6Utils.sol +67 -46
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +116 -78
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +4 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +128 -6
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +212 -80
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +126 -3
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +7 -5
- package/contracts/LSP7DigitalAsset/extensions/ILSP7CompatibleERC20.sol +27 -14
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -4
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +2 -4
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +29 -11
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +30 -9
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +46 -14
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +43 -12
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +14 -0
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +9 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +7 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +8 -8
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +7 -6
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +10 -2
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +120 -92
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +4 -1
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +135 -6
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +128 -38
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +134 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.sol +83 -41
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +13 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +24 -0
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +30 -12
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +31 -10
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +96 -31
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +98 -23
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +21 -4
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +12 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +21 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +9 -4
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +13 -0
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +15 -6
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +7 -5
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +17 -2
- package/contracts/LSP9Vault/ILSP9Vault.sol +10 -5
- package/contracts/LSP9Vault/LSP9Errors.sol +3 -2
- package/contracts/LSP9Vault/LSP9Vault.sol +12 -4
- package/contracts/LSP9Vault/LSP9VaultCore.sol +245 -182
- package/contracts/LSP9Vault/LSP9VaultInit.sol +10 -3
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -6
- package/contracts/UniversalProfile.sol +8 -6
- package/contracts/UniversalProfileInit.sol +6 -6
- package/contracts/UniversalProfileInitAbstract.sol +10 -3
- package/devdocs/LSP0ERC725Account.json +54 -37
- package/devdocs/LSP0ERC725AccountInit.json +56 -38
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +14 -55
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +9 -33
- package/devdocs/LSP23LinkedContractsFactory.json +81 -0
- package/devdocs/LSP4DigitalAssetMetadata.json +5 -5
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +4 -4
- package/devdocs/LSP6KeyManager.json +109 -70
- package/devdocs/LSP6KeyManagerInit.json +109 -70
- package/devdocs/LSP7CappedSupply.json +90 -42
- package/devdocs/LSP7CappedSupplyInitAbstract.json +86 -40
- package/devdocs/LSP7CompatibleERC20.json +79 -43
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +75 -39
- package/devdocs/LSP7CompatibleERC20Mintable.json +87 -40
- package/devdocs/LSP7CompatibleERC20MintableInit.json +82 -42
- package/devdocs/LSP7DigitalAsset.json +76 -40
- package/devdocs/LSP7DigitalAssetInitAbstract.json +73 -37
- package/devdocs/LSP7Mintable.json +79 -51
- package/devdocs/LSP7MintableInit.json +78 -49
- package/devdocs/LSP8CappedSupply.json +72 -43
- package/devdocs/LSP8CappedSupplyInitAbstract.json +68 -41
- package/devdocs/LSP8CompatibleERC721.json +85 -64
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +81 -60
- package/devdocs/LSP8CompatibleERC721Mintable.json +98 -60
- package/devdocs/LSP8CompatibleERC721MintableInit.json +93 -62
- package/devdocs/LSP8IdentifiableDigitalAsset.json +58 -41
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +57 -40
- package/devdocs/LSP8Mintable.json +65 -48
- package/devdocs/LSP8MintableInit.json +64 -47
- package/devdocs/LSP9Vault.json +61 -18
- package/devdocs/LSP9VaultInit.json +59 -17
- package/devdocs/UniversalProfile.json +53 -35
- package/devdocs/UniversalProfileInit.json +53 -35
- package/dist/constants.cjs.js +6236 -2587
- package/dist/constants.d.ts +3851 -1129
- package/dist/constants.es.js +6236 -2587
- package/package.json +6 -4
- package/userdocs/LSP0ERC725Account.json +40 -8
- package/userdocs/LSP0ERC725AccountInit.json +40 -8
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +18 -2
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +18 -2
- package/userdocs/LSP23LinkedContractsFactory.json +29 -0
- package/userdocs/LSP4DigitalAssetMetadata.json +1 -1
- package/userdocs/LSP6KeyManager.json +144 -6
- package/userdocs/LSP6KeyManagerInit.json +147 -6
- package/userdocs/LSP7CappedSupply.json +18 -3
- package/userdocs/LSP7CappedSupplyInitAbstract.json +17 -2
- package/userdocs/LSP7CompatibleERC20.json +3 -9
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +2 -8
- package/userdocs/LSP7CompatibleERC20Mintable.json +5 -8
- package/userdocs/LSP7CompatibleERC20MintableInit.json +3 -9
- package/userdocs/LSP7DigitalAsset.json +2 -2
- package/userdocs/LSP7DigitalAssetInitAbstract.json +2 -2
- package/userdocs/LSP7Mintable.json +3 -3
- package/userdocs/LSP7MintableInit.json +3 -3
- package/userdocs/LSP8CappedSupply.json +16 -1
- package/userdocs/LSP8CappedSupplyInitAbstract.json +15 -0
- package/userdocs/LSP8CompatibleERC721.json +24 -3
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +23 -2
- package/userdocs/LSP8CompatibleERC721Mintable.json +29 -2
- package/userdocs/LSP8CompatibleERC721MintableInit.json +27 -3
- package/userdocs/LSP8Mintable.json +4 -1
- package/userdocs/LSP8MintableInit.json +4 -1
- package/userdocs/LSP9Vault.json +50 -4
- package/userdocs/LSP9VaultInit.json +50 -4
- package/userdocs/UniversalProfile.json +40 -8
- package/userdocs/UniversalProfileInit.json +40 -8
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -47
- package/contracts/LSP23MultiChainDeployment/IOwnerControlledContractDeployer.sol +0 -174
- package/contracts/LSP23MultiChainDeployment/IPostDeploymentModule.sol +0 -10
- package/contracts/LSP23MultiChainDeployment/LSP23Errors.sol +0 -24
- package/contracts/LSP23MultiChainDeployment/OwnerControlledContractDeployer.sol +0 -388
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"details": "LSP8 extension
|
|
2
|
+
"details": "LSP8 token extension to add a max token supply cap.",
|
|
3
3
|
"errors": {
|
|
4
4
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
5
|
{
|
|
@@ -16,14 +16,24 @@
|
|
|
16
16
|
"details": "reverts when sending value to the `setData(..)` functions"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
+
"InvalidExtensionAddress(bytes)": [
|
|
20
|
+
{
|
|
21
|
+
"details": "reverts when the bytes retrieved from the LSP17 data key is not a valid address (not 20 bytes)"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"InvalidFunctionSelector(bytes)": [
|
|
25
|
+
{
|
|
26
|
+
"details": "reverts when the contract is called with a function selector not valid (less than 4 bytes of data)"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
19
29
|
"LSP4TokenNameNotEditable()": [
|
|
20
30
|
{
|
|
21
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed.
|
|
31
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed. The `LSP4TokenName` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
22
32
|
}
|
|
23
33
|
],
|
|
24
34
|
"LSP4TokenSymbolNotEditable()": [
|
|
25
35
|
{
|
|
26
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed.
|
|
36
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed. The `LSP4TokenSymbol` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
27
37
|
}
|
|
28
38
|
],
|
|
29
39
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -41,6 +51,16 @@
|
|
|
41
51
|
"details": "reverts when trying to set the zero address as an operator."
|
|
42
52
|
}
|
|
43
53
|
],
|
|
54
|
+
"LSP8CappedSupplyCannotMintOverCap()": [
|
|
55
|
+
{
|
|
56
|
+
"details": "Reverts when trying to mint tokens but the {totalSupply} has reached the maximum {tokenSupplyCap}."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"LSP8CappedSupplyRequired()": [
|
|
60
|
+
{
|
|
61
|
+
"details": "Reverts when setting `0` for the {tokenSupplyCap}. The max token supply MUST be set to a number greater than 0."
|
|
62
|
+
}
|
|
63
|
+
],
|
|
44
64
|
"LSP8InvalidTransferBatch()": [
|
|
45
65
|
{
|
|
46
66
|
"details": "reverts when the parameters used for `transferBatch` have different lengths."
|
|
@@ -85,24 +105,30 @@
|
|
|
85
105
|
{
|
|
86
106
|
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
87
107
|
}
|
|
108
|
+
],
|
|
109
|
+
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
110
|
+
{
|
|
111
|
+
"details": "reverts when there is no extension for the function selector being called with"
|
|
112
|
+
}
|
|
88
113
|
]
|
|
89
114
|
},
|
|
90
115
|
"kind": "dev",
|
|
91
116
|
"methods": {
|
|
92
|
-
"authorizeOperator(address,bytes32)": {
|
|
93
|
-
"details": "
|
|
117
|
+
"authorizeOperator(address,bytes32,bytes)": {
|
|
118
|
+
"details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
|
|
94
119
|
"params": {
|
|
95
120
|
"operator": "The address to authorize as an operator.",
|
|
96
|
-
"
|
|
121
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
122
|
+
"tokenId": "The token ID operator has access to."
|
|
97
123
|
}
|
|
98
124
|
},
|
|
99
125
|
"balanceOf(address)": {
|
|
100
|
-
"details": "
|
|
126
|
+
"details": "Get the number of token IDs owned by `tokenOwner`.",
|
|
101
127
|
"params": {
|
|
102
|
-
"tokenOwner": "The address to query"
|
|
128
|
+
"tokenOwner": "The address to query *"
|
|
103
129
|
},
|
|
104
130
|
"returns": {
|
|
105
|
-
"_0": "The number of
|
|
131
|
+
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
106
132
|
}
|
|
107
133
|
},
|
|
108
134
|
"getData(bytes32)": {
|
|
@@ -122,22 +148,22 @@
|
|
|
122
148
|
}
|
|
123
149
|
},
|
|
124
150
|
"getOperatorsOf(bytes32)": {
|
|
125
|
-
"details": "Returns all `operator` addresses
|
|
151
|
+
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
126
152
|
"params": {
|
|
127
|
-
"tokenId": "The
|
|
153
|
+
"tokenId": "The token ID to get the operators for."
|
|
128
154
|
},
|
|
129
155
|
"returns": {
|
|
130
|
-
"_0": "
|
|
156
|
+
"_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
|
|
131
157
|
}
|
|
132
158
|
},
|
|
133
159
|
"isOperatorFor(address,bytes32)": {
|
|
134
|
-
"details": "Returns whether `operator` address is an operator
|
|
160
|
+
"details": "Returns whether `operator` address is an operator for a given `tokenId`.",
|
|
135
161
|
"params": {
|
|
136
|
-
"operator": "The address to query",
|
|
137
|
-
"tokenId": "The
|
|
162
|
+
"operator": "The address to query operator status for.",
|
|
163
|
+
"tokenId": "The token ID to check if `operator` is allowed to operate on."
|
|
138
164
|
},
|
|
139
165
|
"returns": {
|
|
140
|
-
"_0": "
|
|
166
|
+
"_0": "`true` if `operator` is an operator for `tokenId`, `false` otherwise."
|
|
141
167
|
}
|
|
142
168
|
},
|
|
143
169
|
"owner()": {
|
|
@@ -146,11 +172,12 @@
|
|
|
146
172
|
"renounceOwnership()": {
|
|
147
173
|
"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."
|
|
148
174
|
},
|
|
149
|
-
"revokeOperator(address,bytes32)": {
|
|
150
|
-
"details": "
|
|
175
|
+
"revokeOperator(address,bytes32,bytes)": {
|
|
176
|
+
"details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
|
|
151
177
|
"params": {
|
|
152
178
|
"operator": "The address to revoke as an operator.",
|
|
153
|
-
"
|
|
179
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
180
|
+
"tokenId": "The tokenId `operator` is revoked from operating on."
|
|
154
181
|
}
|
|
155
182
|
},
|
|
156
183
|
"setData(bytes32,bytes)": {
|
|
@@ -170,53 +197,53 @@
|
|
|
170
197
|
"details": "See {IERC165-supportsInterface}."
|
|
171
198
|
},
|
|
172
199
|
"tokenIdsOf(address)": {
|
|
173
|
-
"details": "Returns the list of
|
|
200
|
+
"details": "Returns the list of token IDs that the `tokenOwner` address owns.",
|
|
174
201
|
"params": {
|
|
175
|
-
"tokenOwner": "The address to
|
|
202
|
+
"tokenOwner": "The address that we want to get the list of token IDs for."
|
|
176
203
|
},
|
|
177
204
|
"returns": {
|
|
178
|
-
"_0": "
|
|
205
|
+
"_0": "An array of `bytes32[] tokenIds` owned by `tokenOwner`."
|
|
179
206
|
}
|
|
180
207
|
},
|
|
181
208
|
"tokenOwnerOf(bytes32)": {
|
|
182
|
-
"details": "Returns the
|
|
209
|
+
"details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
|
|
183
210
|
"params": {
|
|
184
|
-
"tokenId": "The
|
|
211
|
+
"tokenId": "tokenOwner The address to query owned tokens"
|
|
185
212
|
},
|
|
186
213
|
"returns": {
|
|
187
|
-
"_0": "The address
|
|
214
|
+
"_0": "The owner address of the given `tokenId`."
|
|
188
215
|
}
|
|
189
216
|
},
|
|
190
217
|
"tokenSupplyCap()": {
|
|
191
|
-
"details": "
|
|
218
|
+
"details": "Get the maximum number of tokens that can exist to circulate. Once {totalSupply} reaches reaches {totalSuuplyCap}, it is not possible to mint more tokens.",
|
|
192
219
|
"returns": {
|
|
193
|
-
"_0": "The
|
|
220
|
+
"_0": "The maximum number of tokens that can exist in the contract."
|
|
194
221
|
}
|
|
195
222
|
},
|
|
196
223
|
"totalSupply()": {
|
|
197
|
-
"details": "Returns the number of existing tokens.",
|
|
224
|
+
"details": "Returns the number of existing tokens that have been minted in this contract.",
|
|
198
225
|
"returns": {
|
|
199
|
-
"_0": "The number of existing tokens"
|
|
226
|
+
"_0": "The number of existing tokens."
|
|
200
227
|
}
|
|
201
228
|
},
|
|
202
229
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
203
|
-
"details": "
|
|
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 `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
|
|
204
231
|
"params": {
|
|
205
|
-
"allowNonLSP1Recipient": "When set to
|
|
206
|
-
"data": "
|
|
207
|
-
"from": "The
|
|
208
|
-
"to": "The
|
|
209
|
-
"tokenId": "The
|
|
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
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
234
|
+
"from": "The address that owns the given `tokenId`.",
|
|
235
|
+
"to": "The address that will receive the `tokenId`.",
|
|
236
|
+
"tokenId": "The token ID to transfer."
|
|
210
237
|
}
|
|
211
238
|
},
|
|
212
239
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
213
|
-
"details": "Transfers
|
|
240
|
+
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
214
241
|
"params": {
|
|
215
|
-
"allowNonLSP1Recipient": "When set to
|
|
216
|
-
"data": "
|
|
217
|
-
"from": "
|
|
218
|
-
"to": "
|
|
219
|
-
"tokenId": "
|
|
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
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
244
|
+
"from": "An array of sending addresses.",
|
|
245
|
+
"to": "An array of recipient addresses.",
|
|
246
|
+
"tokenId": "An array of token IDs to transfer."
|
|
220
247
|
}
|
|
221
248
|
},
|
|
222
249
|
"transferOwnership(address)": {
|
|
@@ -16,14 +16,24 @@
|
|
|
16
16
|
"details": "reverts when sending value to the `setData(..)` functions"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
+
"InvalidExtensionAddress(bytes)": [
|
|
20
|
+
{
|
|
21
|
+
"details": "reverts when the bytes retrieved from the LSP17 data key is not a valid address (not 20 bytes)"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"InvalidFunctionSelector(bytes)": [
|
|
25
|
+
{
|
|
26
|
+
"details": "reverts when the contract is called with a function selector not valid (less than 4 bytes of data)"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
19
29
|
"LSP4TokenNameNotEditable()": [
|
|
20
30
|
{
|
|
21
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed.
|
|
31
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed. The `LSP4TokenName` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
22
32
|
}
|
|
23
33
|
],
|
|
24
34
|
"LSP4TokenSymbolNotEditable()": [
|
|
25
35
|
{
|
|
26
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed.
|
|
36
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed. The `LSP4TokenSymbol` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
27
37
|
}
|
|
28
38
|
],
|
|
29
39
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -85,47 +95,54 @@
|
|
|
85
95
|
{
|
|
86
96
|
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
87
97
|
}
|
|
98
|
+
],
|
|
99
|
+
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
100
|
+
{
|
|
101
|
+
"details": "reverts when there is no extension for the function selector being called with"
|
|
102
|
+
}
|
|
88
103
|
]
|
|
89
104
|
},
|
|
90
105
|
"kind": "dev",
|
|
91
106
|
"methods": {
|
|
92
107
|
"approve(address,uint256)": {
|
|
93
|
-
"details": "
|
|
108
|
+
"details": "Approval function compatible with ERC721 `approve(address,uint256)`.",
|
|
94
109
|
"params": {
|
|
95
|
-
"operator": "The address to approve for `tokenId
|
|
96
|
-
"tokenId": "The tokenId to approve"
|
|
110
|
+
"operator": "The address to approve for `tokenId`.",
|
|
111
|
+
"tokenId": "The tokenId to approve."
|
|
97
112
|
}
|
|
98
113
|
},
|
|
99
|
-
"authorizeOperator(address,bytes32)": {
|
|
100
|
-
"
|
|
114
|
+
"authorizeOperator(address,bytes32,bytes)": {
|
|
115
|
+
"custom:events": "- LSP7 {AuthorizedOperator} event. - ERC721 {Approval} event.",
|
|
116
|
+
"details": "Allow an `operator` address to transfer or burn a specific `tokenId` on behalf of its token owner. See {isOperatorFor}.",
|
|
101
117
|
"params": {
|
|
102
118
|
"operator": "The address to authorize as an operator.",
|
|
103
|
-
"
|
|
119
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
120
|
+
"tokenId": "The token ID operator has access to."
|
|
104
121
|
}
|
|
105
122
|
},
|
|
106
123
|
"balanceOf(address)": {
|
|
107
|
-
"details": "
|
|
124
|
+
"details": "Get the number of token IDs owned by `tokenOwner`.",
|
|
108
125
|
"params": {
|
|
109
|
-
"tokenOwner": "The address to query"
|
|
126
|
+
"tokenOwner": "The address to query *"
|
|
110
127
|
},
|
|
111
128
|
"returns": {
|
|
112
|
-
"_0": "The number of
|
|
129
|
+
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
113
130
|
}
|
|
114
131
|
},
|
|
115
132
|
"constructor": {
|
|
116
133
|
"params": {
|
|
117
|
-
"name_": "The name of the token",
|
|
118
|
-
"newOwner_": "The owner of the token",
|
|
119
|
-
"symbol_": "The symbol of the token"
|
|
134
|
+
"name_": "The name of the token.",
|
|
135
|
+
"newOwner_": "The owner of the token contract.",
|
|
136
|
+
"symbol_": "The symbol of the token."
|
|
120
137
|
}
|
|
121
138
|
},
|
|
122
139
|
"getApproved(uint256)": {
|
|
123
140
|
"details": "Compatible with ERC721 getApproved.",
|
|
124
141
|
"params": {
|
|
125
|
-
"tokenId": "The tokenId to query"
|
|
142
|
+
"tokenId": "The tokenId to query."
|
|
126
143
|
},
|
|
127
144
|
"returns": {
|
|
128
|
-
"_0": "The address of the operator for `tokenId
|
|
145
|
+
"_0": "The address of the operator for `tokenId`."
|
|
129
146
|
}
|
|
130
147
|
},
|
|
131
148
|
"getData(bytes32)": {
|
|
@@ -145,22 +162,22 @@
|
|
|
145
162
|
}
|
|
146
163
|
},
|
|
147
164
|
"getOperatorsOf(bytes32)": {
|
|
148
|
-
"details": "Returns all `operator` addresses
|
|
165
|
+
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
149
166
|
"params": {
|
|
150
|
-
"tokenId": "The
|
|
167
|
+
"tokenId": "The token ID to get the operators for."
|
|
151
168
|
},
|
|
152
169
|
"returns": {
|
|
153
|
-
"_0": "
|
|
170
|
+
"_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
|
|
154
171
|
}
|
|
155
172
|
},
|
|
156
173
|
"isOperatorFor(address,bytes32)": {
|
|
157
|
-
"details": "Returns whether `operator` address is an operator
|
|
174
|
+
"details": "Returns whether `operator` address is an operator for a given `tokenId`.",
|
|
158
175
|
"params": {
|
|
159
|
-
"operator": "The address to query",
|
|
160
|
-
"tokenId": "The
|
|
176
|
+
"operator": "The address to query operator status for.",
|
|
177
|
+
"tokenId": "The token ID to check if `operator` is allowed to operate on."
|
|
161
178
|
},
|
|
162
179
|
"returns": {
|
|
163
|
-
"_0": "
|
|
180
|
+
"_0": "`true` if `operator` is an operator for `tokenId`, `false` otherwise."
|
|
164
181
|
}
|
|
165
182
|
},
|
|
166
183
|
"name()": {
|
|
@@ -175,41 +192,44 @@
|
|
|
175
192
|
"ownerOf(uint256)": {
|
|
176
193
|
"details": "Compatible with ERC721 ownerOf.",
|
|
177
194
|
"params": {
|
|
178
|
-
"tokenId": "The tokenId to query"
|
|
195
|
+
"tokenId": "The tokenId to query."
|
|
179
196
|
},
|
|
180
197
|
"returns": {
|
|
181
|
-
"_0": "The owner of the tokenId"
|
|
198
|
+
"_0": "The owner of the tokenId."
|
|
182
199
|
}
|
|
183
200
|
},
|
|
184
201
|
"renounceOwnership()": {
|
|
185
202
|
"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."
|
|
186
203
|
},
|
|
187
|
-
"revokeOperator(address,bytes32)": {
|
|
188
|
-
"details": "
|
|
204
|
+
"revokeOperator(address,bytes32,bytes)": {
|
|
205
|
+
"details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
|
|
189
206
|
"params": {
|
|
190
207
|
"operator": "The address to revoke as an operator.",
|
|
191
|
-
"
|
|
208
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
209
|
+
"tokenId": "The tokenId `operator` is revoked from operating on."
|
|
192
210
|
}
|
|
193
211
|
},
|
|
194
212
|
"safeTransferFrom(address,address,uint256)": {
|
|
195
|
-
"
|
|
213
|
+
"custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
214
|
+
"details": "Safe Transfer function without optional data from the ERC721 standard interface.",
|
|
196
215
|
"params": {
|
|
197
|
-
"from": "The sending address",
|
|
198
|
-
"to": "The receiving address",
|
|
199
|
-
"tokenId": "The tokenId to transfer"
|
|
216
|
+
"from": "The sending address.",
|
|
217
|
+
"to": "The receiving address.",
|
|
218
|
+
"tokenId": "The tokenId to transfer."
|
|
200
219
|
}
|
|
201
220
|
},
|
|
202
221
|
"safeTransferFrom(address,address,uint256,bytes)": {
|
|
203
|
-
"
|
|
222
|
+
"custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
223
|
+
"details": "Safe Transfer function with optional data from the ERC721 standard interface.",
|
|
204
224
|
"params": {
|
|
205
|
-
"data": "The data to be sent with the transfer",
|
|
206
|
-
"from": "The sending address",
|
|
207
|
-
"to": "The receiving address",
|
|
208
|
-
"tokenId": "The tokenId to transfer"
|
|
225
|
+
"data": "The data to be sent with the transfer.",
|
|
226
|
+
"from": "The sending address.",
|
|
227
|
+
"to": "The receiving address.",
|
|
228
|
+
"tokenId": "The tokenId to transfer."
|
|
209
229
|
}
|
|
210
230
|
},
|
|
211
231
|
"setApprovalForAll(address,bool)": {
|
|
212
|
-
"details": "See _setApprovalForAll"
|
|
232
|
+
"details": "See {_setApprovalForAll}"
|
|
213
233
|
},
|
|
214
234
|
"setData(bytes32,bytes)": {
|
|
215
235
|
"params": {
|
|
@@ -225,7 +245,7 @@
|
|
|
225
245
|
}
|
|
226
246
|
},
|
|
227
247
|
"supportsInterface(bytes4)": {
|
|
228
|
-
"details": "See
|
|
248
|
+
"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
|
|
229
249
|
},
|
|
230
250
|
"symbol()": {
|
|
231
251
|
"details": "Returns the symbol of the token, usually a shorter version of the name.",
|
|
@@ -234,55 +254,56 @@
|
|
|
234
254
|
}
|
|
235
255
|
},
|
|
236
256
|
"tokenIdsOf(address)": {
|
|
237
|
-
"details": "Returns the list of
|
|
257
|
+
"details": "Returns the list of token IDs that the `tokenOwner` address owns.",
|
|
238
258
|
"params": {
|
|
239
|
-
"tokenOwner": "The address to
|
|
259
|
+
"tokenOwner": "The address that we want to get the list of token IDs for."
|
|
240
260
|
},
|
|
241
261
|
"returns": {
|
|
242
|
-
"_0": "
|
|
262
|
+
"_0": "An array of `bytes32[] tokenIds` owned by `tokenOwner`."
|
|
243
263
|
}
|
|
244
264
|
},
|
|
245
265
|
"tokenOwnerOf(bytes32)": {
|
|
246
|
-
"details": "Returns the
|
|
266
|
+
"details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
|
|
247
267
|
"params": {
|
|
248
|
-
"tokenId": "The
|
|
268
|
+
"tokenId": "tokenOwner The address to query owned tokens"
|
|
249
269
|
},
|
|
250
270
|
"returns": {
|
|
251
|
-
"_0": "The address
|
|
271
|
+
"_0": "The owner address of the given `tokenId`."
|
|
252
272
|
}
|
|
253
273
|
},
|
|
254
274
|
"totalSupply()": {
|
|
255
|
-
"details": "Returns the number of existing tokens.",
|
|
275
|
+
"details": "Returns the number of existing tokens that have been minted in this contract.",
|
|
256
276
|
"returns": {
|
|
257
|
-
"_0": "The number of existing tokens"
|
|
277
|
+
"_0": "The number of existing tokens."
|
|
258
278
|
}
|
|
259
279
|
},
|
|
260
280
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
261
|
-
"details": "
|
|
281
|
+
"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 `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
|
|
262
282
|
"params": {
|
|
263
|
-
"allowNonLSP1Recipient": "When set to
|
|
264
|
-
"data": "
|
|
265
|
-
"from": "The
|
|
266
|
-
"to": "The
|
|
267
|
-
"tokenId": "The
|
|
283
|
+
"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.",
|
|
284
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
285
|
+
"from": "The address that owns the given `tokenId`.",
|
|
286
|
+
"to": "The address that will receive the `tokenId`.",
|
|
287
|
+
"tokenId": "The token ID to transfer."
|
|
268
288
|
}
|
|
269
289
|
},
|
|
270
290
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
271
|
-
"details": "Transfers
|
|
291
|
+
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
272
292
|
"params": {
|
|
273
|
-
"allowNonLSP1Recipient": "When set to
|
|
274
|
-
"data": "
|
|
275
|
-
"from": "
|
|
276
|
-
"to": "
|
|
277
|
-
"tokenId": "
|
|
293
|
+
"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.",
|
|
294
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
295
|
+
"from": "An array of sending addresses.",
|
|
296
|
+
"to": "An array of recipient addresses.",
|
|
297
|
+
"tokenId": "An array of token IDs to transfer."
|
|
278
298
|
}
|
|
279
299
|
},
|
|
280
300
|
"transferFrom(address,address,uint256)": {
|
|
281
|
-
"
|
|
301
|
+
"custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
302
|
+
"details": "Transfer functions from the ERC721 standard interface.",
|
|
282
303
|
"params": {
|
|
283
|
-
"from": "The sending address",
|
|
284
|
-
"to": "The receiving address",
|
|
285
|
-
"tokenId": "The tokenId to transfer"
|
|
304
|
+
"from": "The sending address.",
|
|
305
|
+
"to": "The receiving address.",
|
|
306
|
+
"tokenId": "The tokenId to transfer."
|
|
286
307
|
}
|
|
287
308
|
},
|
|
288
309
|
"transferOwnership(address)": {
|
|
@@ -291,7 +312,7 @@
|
|
|
291
312
|
},
|
|
292
313
|
"stateVariables": {
|
|
293
314
|
"_operatorApprovals": {
|
|
294
|
-
"details": "for backward compatibility with ERC721"
|
|
315
|
+
"details": "Mapping from owner to operator approvals for backward compatibility with ERC721"
|
|
295
316
|
}
|
|
296
317
|
},
|
|
297
318
|
"version": 1
|