@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
|
@@ -15,14 +15,24 @@
|
|
|
15
15
|
"details": "reverts when sending value to the `setData(..)` functions"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
|
+
"InvalidExtensionAddress(bytes)": [
|
|
19
|
+
{
|
|
20
|
+
"details": "reverts when the bytes retrieved from the LSP17 data key is not a valid address (not 20 bytes)"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"InvalidFunctionSelector(bytes)": [
|
|
24
|
+
{
|
|
25
|
+
"details": "reverts when the contract is called with a function selector not valid (less than 4 bytes of data)"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
18
28
|
"LSP4TokenNameNotEditable()": [
|
|
19
29
|
{
|
|
20
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed.
|
|
30
|
+
"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."
|
|
21
31
|
}
|
|
22
32
|
],
|
|
23
33
|
"LSP4TokenSymbolNotEditable()": [
|
|
24
34
|
{
|
|
25
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed.
|
|
35
|
+
"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."
|
|
26
36
|
}
|
|
27
37
|
],
|
|
28
38
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -89,31 +99,38 @@
|
|
|
89
99
|
{
|
|
90
100
|
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
91
101
|
}
|
|
102
|
+
],
|
|
103
|
+
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
104
|
+
{
|
|
105
|
+
"details": "reverts when there is no extension for the function selector being called with"
|
|
106
|
+
}
|
|
92
107
|
]
|
|
93
108
|
},
|
|
94
109
|
"kind": "dev",
|
|
95
110
|
"methods": {
|
|
96
111
|
"approve(address,uint256)": {
|
|
97
|
-
"details": "
|
|
112
|
+
"details": "Approval function compatible with ERC721 `approve(address,uint256)`.",
|
|
98
113
|
"params": {
|
|
99
|
-
"operator": "The address to approve for `tokenId
|
|
100
|
-
"tokenId": "The tokenId to approve"
|
|
114
|
+
"operator": "The address to approve for `tokenId`.",
|
|
115
|
+
"tokenId": "The tokenId to approve."
|
|
101
116
|
}
|
|
102
117
|
},
|
|
103
|
-
"authorizeOperator(address,bytes32)": {
|
|
104
|
-
"
|
|
118
|
+
"authorizeOperator(address,bytes32,bytes)": {
|
|
119
|
+
"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}.",
|
|
105
121
|
"params": {
|
|
106
122
|
"operator": "The address to authorize as an operator.",
|
|
107
|
-
"
|
|
123
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
124
|
+
"tokenId": "The token ID operator has access to."
|
|
108
125
|
}
|
|
109
126
|
},
|
|
110
127
|
"balanceOf(address)": {
|
|
111
|
-
"details": "
|
|
128
|
+
"details": "Get the number of token IDs owned by `tokenOwner`.",
|
|
112
129
|
"params": {
|
|
113
|
-
"tokenOwner": "The address to query"
|
|
130
|
+
"tokenOwner": "The address to query *"
|
|
114
131
|
},
|
|
115
132
|
"returns": {
|
|
116
|
-
"_0": "The number of
|
|
133
|
+
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
117
134
|
}
|
|
118
135
|
},
|
|
119
136
|
"constructor": {
|
|
@@ -122,10 +139,10 @@
|
|
|
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,29 +162,38 @@
|
|
|
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
|
"initialize(string,string,address)": {
|
|
157
174
|
"params": {
|
|
158
|
-
"name_": "The name of the token",
|
|
159
|
-
"newOwner_": "The owner of the token",
|
|
160
|
-
"symbol_": "The symbol of the token"
|
|
175
|
+
"name_": "The name of the token.",
|
|
176
|
+
"newOwner_": "The owner of the token contract.",
|
|
177
|
+
"symbol_": "The symbol of the token."
|
|
161
178
|
}
|
|
162
179
|
},
|
|
163
180
|
"isOperatorFor(address,bytes32)": {
|
|
164
|
-
"details": "Returns whether `operator` address is an operator
|
|
181
|
+
"details": "Returns whether `operator` address is an operator for a given `tokenId`.",
|
|
165
182
|
"params": {
|
|
166
|
-
"operator": "The address to query",
|
|
167
|
-
"tokenId": "The
|
|
183
|
+
"operator": "The address to query operator status for.",
|
|
184
|
+
"tokenId": "The token ID to check if `operator` is allowed to operate on."
|
|
168
185
|
},
|
|
169
186
|
"returns": {
|
|
170
|
-
"_0": "
|
|
187
|
+
"_0": "`true` if `operator` is an operator for `tokenId`, `false` otherwise."
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"mint(address,bytes32,bool,bytes)": {
|
|
191
|
+
"details": "Public {_mint} function only callable by the {owner}.",
|
|
192
|
+
"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
|
+
"data": "Any addition data to be sent alongside the minting.",
|
|
195
|
+
"to": "The address that will receive the minted `tokenId`.",
|
|
196
|
+
"tokenId": "The tokenId to mint."
|
|
171
197
|
}
|
|
172
198
|
},
|
|
173
199
|
"name()": {
|
|
@@ -182,41 +208,44 @@
|
|
|
182
208
|
"ownerOf(uint256)": {
|
|
183
209
|
"details": "Compatible with ERC721 ownerOf.",
|
|
184
210
|
"params": {
|
|
185
|
-
"tokenId": "The tokenId to query"
|
|
211
|
+
"tokenId": "The tokenId to query."
|
|
186
212
|
},
|
|
187
213
|
"returns": {
|
|
188
|
-
"_0": "The owner of the tokenId"
|
|
214
|
+
"_0": "The owner of the tokenId."
|
|
189
215
|
}
|
|
190
216
|
},
|
|
191
217
|
"renounceOwnership()": {
|
|
192
218
|
"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."
|
|
193
219
|
},
|
|
194
|
-
"revokeOperator(address,bytes32)": {
|
|
195
|
-
"details": "
|
|
220
|
+
"revokeOperator(address,bytes32,bytes)": {
|
|
221
|
+
"details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
|
|
196
222
|
"params": {
|
|
197
223
|
"operator": "The address to revoke as an operator.",
|
|
198
|
-
"
|
|
224
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
225
|
+
"tokenId": "The tokenId `operator` is revoked from operating on."
|
|
199
226
|
}
|
|
200
227
|
},
|
|
201
228
|
"safeTransferFrom(address,address,uint256)": {
|
|
202
|
-
"
|
|
229
|
+
"custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
230
|
+
"details": "Safe Transfer function without optional data from the ERC721 standard interface.",
|
|
203
231
|
"params": {
|
|
204
|
-
"from": "The sending address",
|
|
205
|
-
"to": "The receiving address",
|
|
206
|
-
"tokenId": "The tokenId to transfer"
|
|
232
|
+
"from": "The sending address.",
|
|
233
|
+
"to": "The receiving address.",
|
|
234
|
+
"tokenId": "The tokenId to transfer."
|
|
207
235
|
}
|
|
208
236
|
},
|
|
209
237
|
"safeTransferFrom(address,address,uint256,bytes)": {
|
|
210
|
-
"
|
|
238
|
+
"custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
239
|
+
"details": "Safe Transfer function with optional data from the ERC721 standard interface.",
|
|
211
240
|
"params": {
|
|
212
|
-
"data": "The data to be sent with the transfer",
|
|
213
|
-
"from": "The sending address",
|
|
214
|
-
"to": "The receiving address",
|
|
215
|
-
"tokenId": "The tokenId to transfer"
|
|
241
|
+
"data": "The data to be sent with the transfer.",
|
|
242
|
+
"from": "The sending address.",
|
|
243
|
+
"to": "The receiving address.",
|
|
244
|
+
"tokenId": "The tokenId to transfer."
|
|
216
245
|
}
|
|
217
246
|
},
|
|
218
247
|
"setApprovalForAll(address,bool)": {
|
|
219
|
-
"details": "See _setApprovalForAll"
|
|
248
|
+
"details": "See {_setApprovalForAll}"
|
|
220
249
|
},
|
|
221
250
|
"setData(bytes32,bytes)": {
|
|
222
251
|
"params": {
|
|
@@ -241,60 +270,62 @@
|
|
|
241
270
|
}
|
|
242
271
|
},
|
|
243
272
|
"tokenIdsOf(address)": {
|
|
244
|
-
"details": "Returns the list of
|
|
273
|
+
"details": "Returns the list of token IDs that the `tokenOwner` address owns.",
|
|
245
274
|
"params": {
|
|
246
|
-
"tokenOwner": "The address to
|
|
275
|
+
"tokenOwner": "The address that we want to get the list of token IDs for."
|
|
247
276
|
},
|
|
248
277
|
"returns": {
|
|
249
|
-
"_0": "
|
|
278
|
+
"_0": "An array of `bytes32[] tokenIds` owned by `tokenOwner`."
|
|
250
279
|
}
|
|
251
280
|
},
|
|
252
281
|
"tokenOwnerOf(bytes32)": {
|
|
253
|
-
"details": "Returns the
|
|
282
|
+
"details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
|
|
254
283
|
"params": {
|
|
255
|
-
"tokenId": "The
|
|
284
|
+
"tokenId": "tokenOwner The address to query owned tokens"
|
|
256
285
|
},
|
|
257
286
|
"returns": {
|
|
258
|
-
"_0": "The address
|
|
287
|
+
"_0": "The owner address of the given `tokenId`."
|
|
259
288
|
}
|
|
260
289
|
},
|
|
261
290
|
"totalSupply()": {
|
|
262
|
-
"details": "Returns the number of existing tokens.",
|
|
291
|
+
"details": "Returns the number of existing tokens that have been minted in this contract.",
|
|
263
292
|
"returns": {
|
|
264
|
-
"_0": "The number of existing tokens"
|
|
293
|
+
"_0": "The number of existing tokens."
|
|
265
294
|
}
|
|
266
295
|
},
|
|
267
296
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
268
|
-
"details": "
|
|
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 `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
|
|
269
298
|
"params": {
|
|
270
|
-
"allowNonLSP1Recipient": "When set to
|
|
271
|
-
"data": "
|
|
272
|
-
"from": "The
|
|
273
|
-
"to": "The
|
|
274
|
-
"tokenId": "The
|
|
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
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
301
|
+
"from": "The address that owns the given `tokenId`.",
|
|
302
|
+
"to": "The address that will receive the `tokenId`.",
|
|
303
|
+
"tokenId": "The token ID to transfer."
|
|
275
304
|
}
|
|
276
305
|
},
|
|
277
306
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
278
|
-
"details": "Transfers
|
|
307
|
+
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
279
308
|
"params": {
|
|
280
|
-
"allowNonLSP1Recipient": "When set to
|
|
281
|
-
"data": "
|
|
282
|
-
"from": "
|
|
283
|
-
"to": "
|
|
284
|
-
"tokenId": "
|
|
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
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
311
|
+
"from": "An array of sending addresses.",
|
|
312
|
+
"to": "An array of recipient addresses.",
|
|
313
|
+
"tokenId": "An array of token IDs to transfer."
|
|
285
314
|
}
|
|
286
315
|
},
|
|
287
316
|
"transferFrom(address,address,uint256)": {
|
|
288
|
-
"
|
|
317
|
+
"custom:info": "This function sets the `allowNonLSP1Recipient` parameter to `true` so that EOAs and any contract can receive the `tokenId`.",
|
|
318
|
+
"details": "Transfer functions from the ERC721 standard interface.",
|
|
289
319
|
"params": {
|
|
290
|
-
"from": "The sending address",
|
|
291
|
-
"to": "The receiving address",
|
|
292
|
-
"tokenId": "The tokenId to transfer"
|
|
320
|
+
"from": "The sending address.",
|
|
321
|
+
"to": "The receiving address.",
|
|
322
|
+
"tokenId": "The tokenId to transfer."
|
|
293
323
|
}
|
|
294
324
|
},
|
|
295
325
|
"transferOwnership(address)": {
|
|
296
326
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
297
327
|
}
|
|
298
328
|
},
|
|
329
|
+
"title": "LSP8CompatibleERC721MintableInit deployable preset contract (proxy version) with a public mint function callable only by the contract {owner}",
|
|
299
330
|
"version": 1
|
|
300
331
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Matthew Stevens",
|
|
3
|
-
"details": "
|
|
3
|
+
"details": "Standard implementation contract of the LSP8 standard. Minting and transferring are done by providing a unique `tokenId`. This implementation is agnostic to the way tokens are created. A supply mechanism has to be added in a derived contract using {_mint} For a generic mechanism, see {LSP7Mintable}.",
|
|
4
4
|
"errors": {
|
|
5
5
|
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
6
6
|
{
|
|
@@ -17,14 +17,24 @@
|
|
|
17
17
|
"details": "reverts when sending value to the `setData(..)` functions"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
+
"InvalidExtensionAddress(bytes)": [
|
|
21
|
+
{
|
|
22
|
+
"details": "reverts when the bytes retrieved from the LSP17 data key is not a valid address (not 20 bytes)"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"InvalidFunctionSelector(bytes)": [
|
|
26
|
+
{
|
|
27
|
+
"details": "reverts when the contract is called with a function selector not valid (less than 4 bytes of data)"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
20
30
|
"LSP4TokenNameNotEditable()": [
|
|
21
31
|
{
|
|
22
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed.
|
|
32
|
+
"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."
|
|
23
33
|
}
|
|
24
34
|
],
|
|
25
35
|
"LSP4TokenSymbolNotEditable()": [
|
|
26
36
|
{
|
|
27
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed.
|
|
37
|
+
"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."
|
|
28
38
|
}
|
|
29
39
|
],
|
|
30
40
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -86,24 +96,30 @@
|
|
|
86
96
|
{
|
|
87
97
|
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
88
98
|
}
|
|
99
|
+
],
|
|
100
|
+
"NoExtensionFoundForFunctionSelector(bytes4)": [
|
|
101
|
+
{
|
|
102
|
+
"details": "reverts when there is no extension for the function selector being called with"
|
|
103
|
+
}
|
|
89
104
|
]
|
|
90
105
|
},
|
|
91
106
|
"kind": "dev",
|
|
92
107
|
"methods": {
|
|
93
|
-
"authorizeOperator(address,bytes32)": {
|
|
94
|
-
"details": "
|
|
108
|
+
"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}.",
|
|
95
110
|
"params": {
|
|
96
111
|
"operator": "The address to authorize as an operator.",
|
|
97
|
-
"
|
|
112
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
113
|
+
"tokenId": "The token ID operator has access to."
|
|
98
114
|
}
|
|
99
115
|
},
|
|
100
116
|
"balanceOf(address)": {
|
|
101
|
-
"details": "
|
|
117
|
+
"details": "Get the number of token IDs owned by `tokenOwner`.",
|
|
102
118
|
"params": {
|
|
103
|
-
"tokenOwner": "The address to query"
|
|
119
|
+
"tokenOwner": "The address to query *"
|
|
104
120
|
},
|
|
105
121
|
"returns": {
|
|
106
|
-
"_0": "The number of
|
|
122
|
+
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
107
123
|
}
|
|
108
124
|
},
|
|
109
125
|
"constructor": {
|
|
@@ -130,22 +146,22 @@
|
|
|
130
146
|
}
|
|
131
147
|
},
|
|
132
148
|
"getOperatorsOf(bytes32)": {
|
|
133
|
-
"details": "Returns all `operator` addresses
|
|
149
|
+
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
134
150
|
"params": {
|
|
135
|
-
"tokenId": "The
|
|
151
|
+
"tokenId": "The token ID to get the operators for."
|
|
136
152
|
},
|
|
137
153
|
"returns": {
|
|
138
|
-
"_0": "
|
|
154
|
+
"_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
|
|
139
155
|
}
|
|
140
156
|
},
|
|
141
157
|
"isOperatorFor(address,bytes32)": {
|
|
142
|
-
"details": "Returns whether `operator` address is an operator
|
|
158
|
+
"details": "Returns whether `operator` address is an operator for a given `tokenId`.",
|
|
143
159
|
"params": {
|
|
144
|
-
"operator": "The address to query",
|
|
145
|
-
"tokenId": "The
|
|
160
|
+
"operator": "The address to query operator status for.",
|
|
161
|
+
"tokenId": "The token ID to check if `operator` is allowed to operate on."
|
|
146
162
|
},
|
|
147
163
|
"returns": {
|
|
148
|
-
"_0": "
|
|
164
|
+
"_0": "`true` if `operator` is an operator for `tokenId`, `false` otherwise."
|
|
149
165
|
}
|
|
150
166
|
},
|
|
151
167
|
"owner()": {
|
|
@@ -154,11 +170,12 @@
|
|
|
154
170
|
"renounceOwnership()": {
|
|
155
171
|
"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."
|
|
156
172
|
},
|
|
157
|
-
"revokeOperator(address,bytes32)": {
|
|
158
|
-
"details": "
|
|
173
|
+
"revokeOperator(address,bytes32,bytes)": {
|
|
174
|
+
"details": "Remove access of `operator` for a given `tokenId`, disallowing it to transfer `tokenId` on behalf of its owner. See also {isOperatorFor}.",
|
|
159
175
|
"params": {
|
|
160
176
|
"operator": "The address to revoke as an operator.",
|
|
161
|
-
"
|
|
177
|
+
"operatorNotificationData": "The data to notify the operator about via LSP1.",
|
|
178
|
+
"tokenId": "The tokenId `operator` is revoked from operating on."
|
|
162
179
|
}
|
|
163
180
|
},
|
|
164
181
|
"setData(bytes32,bytes)": {
|
|
@@ -175,56 +192,56 @@
|
|
|
175
192
|
}
|
|
176
193
|
},
|
|
177
194
|
"supportsInterface(bytes4)": {
|
|
178
|
-
"details": "See
|
|
195
|
+
"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."
|
|
179
196
|
},
|
|
180
197
|
"tokenIdsOf(address)": {
|
|
181
|
-
"details": "Returns the list of
|
|
198
|
+
"details": "Returns the list of token IDs that the `tokenOwner` address owns.",
|
|
182
199
|
"params": {
|
|
183
|
-
"tokenOwner": "The address to
|
|
200
|
+
"tokenOwner": "The address that we want to get the list of token IDs for."
|
|
184
201
|
},
|
|
185
202
|
"returns": {
|
|
186
|
-
"_0": "
|
|
203
|
+
"_0": "An array of `bytes32[] tokenIds` owned by `tokenOwner`."
|
|
187
204
|
}
|
|
188
205
|
},
|
|
189
206
|
"tokenOwnerOf(bytes32)": {
|
|
190
|
-
"details": "Returns the
|
|
207
|
+
"details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
|
|
191
208
|
"params": {
|
|
192
|
-
"tokenId": "The
|
|
209
|
+
"tokenId": "tokenOwner The address to query owned tokens"
|
|
193
210
|
},
|
|
194
211
|
"returns": {
|
|
195
|
-
"_0": "The address
|
|
212
|
+
"_0": "The owner address of the given `tokenId`."
|
|
196
213
|
}
|
|
197
214
|
},
|
|
198
215
|
"totalSupply()": {
|
|
199
|
-
"details": "Returns the number of existing tokens.",
|
|
216
|
+
"details": "Returns the number of existing tokens that have been minted in this contract.",
|
|
200
217
|
"returns": {
|
|
201
|
-
"_0": "The number of existing tokens"
|
|
218
|
+
"_0": "The number of existing tokens."
|
|
202
219
|
}
|
|
203
220
|
},
|
|
204
221
|
"transfer(address,address,bytes32,bool,bytes)": {
|
|
205
|
-
"details": "
|
|
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 `allowNonLSP1Recipient` parameter MUST be set to `true` when transferring tokens to Externally Owned Accounts (EOAs) or contracts that do not implement the LSP1 standard.",
|
|
206
223
|
"params": {
|
|
207
|
-
"allowNonLSP1Recipient": "When set to
|
|
208
|
-
"data": "
|
|
209
|
-
"from": "The
|
|
210
|
-
"to": "The
|
|
211
|
-
"tokenId": "The
|
|
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
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks of the `from` and `to` addresses.",
|
|
226
|
+
"from": "The address that owns the given `tokenId`.",
|
|
227
|
+
"to": "The address that will receive the `tokenId`.",
|
|
228
|
+
"tokenId": "The token ID to transfer."
|
|
212
229
|
}
|
|
213
230
|
},
|
|
214
231
|
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
215
|
-
"details": "Transfers
|
|
232
|
+
"details": "Transfers multiple tokens at once based on the arrays of `from`, `to` and `tokenId`. If any transfer fails, the whole call will revert.",
|
|
216
233
|
"params": {
|
|
217
|
-
"allowNonLSP1Recipient": "When set to
|
|
218
|
-
"data": "
|
|
219
|
-
"from": "
|
|
220
|
-
"to": "
|
|
221
|
-
"tokenId": "
|
|
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
|
+
"data": "Any additional data the caller wants included in the emitted event, and sent in the hooks to the `from` and `to` addresses.",
|
|
236
|
+
"from": "An array of sending addresses.",
|
|
237
|
+
"to": "An array of recipient addresses.",
|
|
238
|
+
"tokenId": "An array of token IDs to transfer."
|
|
222
239
|
}
|
|
223
240
|
},
|
|
224
241
|
"transferOwnership(address)": {
|
|
225
242
|
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
226
243
|
}
|
|
227
244
|
},
|
|
228
|
-
"title": "
|
|
245
|
+
"title": "Implementation of a LSP8 Identifiable Digital Asset, a contract that represents a non-fungible token.",
|
|
229
246
|
"version": 1
|
|
230
247
|
}
|