@lukso/lsp-smart-contracts 0.12.1 → 0.14.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 +3 -2
- package/artifacts/LSP0ERC725Account.json +6 -6
- package/artifacts/LSP0ERC725AccountInit.json +6 -6
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
- package/artifacts/LSP4DigitalAssetMetadata.json +5 -0
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +5 -0
- package/artifacts/LSP6KeyManager.json +2 -2
- package/artifacts/LSP6KeyManagerInit.json +2 -2
- package/artifacts/LSP7CappedSupply.json +71 -36
- package/artifacts/LSP7CappedSupplyInitAbstract.json +71 -36
- package/artifacts/LSP7CompatibleERC20.json +71 -36
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +71 -36
- package/artifacts/LSP7CompatibleERC20Mintable.json +78 -38
- package/artifacts/LSP7CompatibleERC20MintableInit.json +78 -38
- package/artifacts/LSP7DigitalAsset.json +71 -36
- package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -36
- package/artifacts/LSP7Mintable.json +78 -38
- package/artifacts/LSP7MintableInit.json +78 -38
- package/artifacts/LSP8CappedSupply.json +187 -23
- package/artifacts/LSP8CappedSupplyInitAbstract.json +200 -36
- package/artifacts/LSP8CompatibleERC721.json +187 -23
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +200 -36
- package/artifacts/LSP8CompatibleERC721Mintable.json +195 -26
- package/artifacts/LSP8CompatibleERC721MintableInit.json +208 -39
- package/artifacts/LSP8IdentifiableDigitalAsset.json +187 -23
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +200 -36
- package/artifacts/LSP8Mintable.json +195 -26
- package/artifacts/LSP8MintableInit.json +208 -39
- package/artifacts/LSP9Vault.json +6 -6
- package/artifacts/LSP9VaultInit.json +6 -6
- package/artifacts/UniversalProfile.json +6 -6
- package/artifacts/UniversalProfileInit.json +6 -6
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -22
- package/contracts/LSP17Extensions/Extension4337.sol +26 -1
- package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -1
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +10 -2
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +20 -34
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +47 -0
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +19 -31
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +13 -6
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +2 -2
- package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -1
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +20 -9
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -1
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +7 -5
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +128 -25
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +5 -2
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +6 -0
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +4 -2
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +7 -4
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +4 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +5 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +8 -2
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +12 -1
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +4 -0
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +4 -0
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +77 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +15 -12
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +19 -3
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +25 -16
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +223 -19
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +28 -15
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -1
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +15 -4
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +8 -4
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +1 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +1 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +0 -1
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +13 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +6 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +4 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +14 -4
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +7 -4
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +7 -4
- package/contracts/LSP9Vault/LSP9VaultCore.sol +0 -22
- package/contracts/Version.sol +1 -1
- package/devdocs/LSP4DigitalAssetMetadata.json +11 -5
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +7 -2
- package/devdocs/LSP6KeyManager.json +1 -1
- package/devdocs/LSP6KeyManagerInit.json +1 -1
- package/devdocs/LSP7CappedSupply.json +22 -2
- package/devdocs/LSP7CappedSupplyInitAbstract.json +22 -2
- package/devdocs/LSP7CompatibleERC20.json +23 -2
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +22 -2
- package/devdocs/LSP7CompatibleERC20Mintable.json +23 -2
- package/devdocs/LSP7CompatibleERC20MintableInit.json +24 -3
- package/devdocs/LSP7DigitalAsset.json +27 -6
- package/devdocs/LSP7DigitalAssetInitAbstract.json +22 -2
- package/devdocs/LSP7Mintable.json +24 -2
- package/devdocs/LSP7MintableInit.json +25 -3
- package/devdocs/LSP8CappedSupply.json +66 -4
- package/devdocs/LSP8CappedSupplyInitAbstract.json +66 -4
- package/devdocs/LSP8CompatibleERC721.json +69 -5
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +67 -5
- package/devdocs/LSP8CompatibleERC721Mintable.json +69 -5
- package/devdocs/LSP8CompatibleERC721MintableInit.json +70 -6
- package/devdocs/LSP8IdentifiableDigitalAsset.json +71 -8
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +66 -4
- package/devdocs/LSP8Mintable.json +68 -4
- package/devdocs/LSP8MintableInit.json +69 -5
- package/dist/constants.cjs.js +4406 -1319
- package/dist/constants.d.ts +4158 -818
- package/dist/constants.es.js +4405 -1319
- package/package.json +2 -2
- package/userdocs/LSP7CappedSupply.json +8 -0
- package/userdocs/LSP7CappedSupplyInitAbstract.json +8 -0
- package/userdocs/LSP7CompatibleERC20.json +8 -0
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +8 -0
- package/userdocs/LSP7CompatibleERC20Mintable.json +8 -0
- package/userdocs/LSP7CompatibleERC20MintableInit.json +9 -1
- package/userdocs/LSP7DigitalAsset.json +8 -0
- package/userdocs/LSP7DigitalAssetInitAbstract.json +8 -0
- package/userdocs/LSP7Mintable.json +8 -0
- package/userdocs/LSP7MintableInit.json +9 -1
- package/userdocs/LSP8CappedSupply.json +20 -0
- package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
- package/userdocs/LSP8CompatibleERC721.json +20 -0
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +20 -0
- package/userdocs/LSP8CompatibleERC721Mintable.json +20 -0
- package/userdocs/LSP8CompatibleERC721MintableInit.json +21 -1
- package/userdocs/LSP8IdentifiableDigitalAsset.json +21 -1
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
- package/userdocs/LSP8Mintable.json +20 -0
- package/userdocs/LSP8MintableInit.json +21 -1
|
@@ -27,12 +27,22 @@
|
|
|
27
27
|
],
|
|
28
28
|
"LSP4TokenNameNotEditable()": [
|
|
29
29
|
{
|
|
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
|
|
30
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
33
|
"LSP4TokenSymbolNotEditable()": [
|
|
34
34
|
{
|
|
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
|
|
35
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"LSP4TokenTypeNotEditable()": [
|
|
39
|
+
{
|
|
40
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` 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 / initialized."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"LSP8BatchCallFailed(uint256)": [
|
|
44
|
+
{
|
|
45
|
+
"details": "Reverts when a batch call failed."
|
|
36
46
|
}
|
|
37
47
|
],
|
|
38
48
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -100,9 +110,19 @@
|
|
|
100
110
|
"details": "Reverts when `tokenId` has already been minted."
|
|
101
111
|
}
|
|
102
112
|
],
|
|
103
|
-
"
|
|
113
|
+
"LSP8TokenIdFormatNotEditable()": [
|
|
114
|
+
{
|
|
115
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdFormat` 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."
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"LSP8TokenIdsDataEmptyArray()": [
|
|
104
119
|
{
|
|
105
|
-
"details": "Reverts when
|
|
120
|
+
"details": "Reverts when empty arrays is passed to the function"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"LSP8TokenIdsDataLengthMismatch()": [
|
|
124
|
+
{
|
|
125
|
+
"details": "Reverts when the length of the token IDs data arrays is not equal"
|
|
106
126
|
}
|
|
107
127
|
],
|
|
108
128
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
@@ -139,7 +159,7 @@
|
|
|
139
159
|
}
|
|
140
160
|
},
|
|
141
161
|
"authorizeOperator(address,bytes32,bytes)": {
|
|
142
|
-
"custom:events": "- LSP7 {
|
|
162
|
+
"custom:events": "- LSP7 {OperatorAuthorizationChanged} event. - ERC721 {Approval} event.",
|
|
143
163
|
"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",
|
|
144
164
|
"params": {
|
|
145
165
|
"operator": "The address to authorize as an operator.",
|
|
@@ -156,8 +176,20 @@
|
|
|
156
176
|
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
157
177
|
}
|
|
158
178
|
},
|
|
179
|
+
"batchCalls(bytes[])": {
|
|
180
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
181
|
+
"details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
|
|
182
|
+
"params": {
|
|
183
|
+
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
184
|
+
},
|
|
185
|
+
"returns": {
|
|
186
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
187
|
+
}
|
|
188
|
+
},
|
|
159
189
|
"constructor": {
|
|
160
190
|
"params": {
|
|
191
|
+
"lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
|
|
192
|
+
"lsp8TokenIdFormat_": "The format of tokenIds (= NFTs) that this contract will create.",
|
|
161
193
|
"name_": "The name of the token.",
|
|
162
194
|
"newOwner_": "The owner of the token contract.",
|
|
163
195
|
"symbol_": "The symbol of the token."
|
|
@@ -190,6 +222,24 @@
|
|
|
190
222
|
"dataValues": "The array of data stored at multiple keys"
|
|
191
223
|
}
|
|
192
224
|
},
|
|
225
|
+
"getDataBatchForTokenIds(bytes32[],bytes32[])": {
|
|
226
|
+
"params": {
|
|
227
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
228
|
+
"tokenIds": "An array of token IDs."
|
|
229
|
+
},
|
|
230
|
+
"returns": {
|
|
231
|
+
"dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"getDataForTokenId(bytes32,bytes32)": {
|
|
235
|
+
"params": {
|
|
236
|
+
"dataKey": "The key for the data to retrieve.",
|
|
237
|
+
"tokenId": "The unique identifier for a token."
|
|
238
|
+
},
|
|
239
|
+
"returns": {
|
|
240
|
+
"dataValue": "The data value associated with the given `tokenId` and `dataKey`."
|
|
241
|
+
}
|
|
242
|
+
},
|
|
193
243
|
"getOperatorsOf(bytes32)": {
|
|
194
244
|
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
195
245
|
"params": {
|
|
@@ -305,6 +355,20 @@
|
|
|
305
355
|
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
306
356
|
}
|
|
307
357
|
},
|
|
358
|
+
"setDataBatchForTokenIds(bytes32[],bytes32[],bytes[])": {
|
|
359
|
+
"params": {
|
|
360
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
361
|
+
"dataValues": "An array of values to set for the given data keys.",
|
|
362
|
+
"tokenIds": "An array of token IDs."
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"setDataForTokenId(bytes32,bytes32,bytes)": {
|
|
366
|
+
"params": {
|
|
367
|
+
"dataKey": "The key for the data to set.",
|
|
368
|
+
"dataValue": "The value to set for the given data key.",
|
|
369
|
+
"tokenId": "The unique identifier for a token."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
308
372
|
"supportsInterface(bytes4)": {
|
|
309
373
|
"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."
|
|
310
374
|
},
|
|
@@ -27,12 +27,22 @@
|
|
|
27
27
|
],
|
|
28
28
|
"LSP4TokenNameNotEditable()": [
|
|
29
29
|
{
|
|
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
|
|
30
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
33
|
"LSP4TokenSymbolNotEditable()": [
|
|
34
34
|
{
|
|
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
|
|
35
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"LSP4TokenTypeNotEditable()": [
|
|
39
|
+
{
|
|
40
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` 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 / initialized."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"LSP8BatchCallFailed(uint256)": [
|
|
44
|
+
{
|
|
45
|
+
"details": "Reverts when a batch call failed."
|
|
36
46
|
}
|
|
37
47
|
],
|
|
38
48
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -100,9 +110,19 @@
|
|
|
100
110
|
"details": "Reverts when `tokenId` has already been minted."
|
|
101
111
|
}
|
|
102
112
|
],
|
|
103
|
-
"
|
|
113
|
+
"LSP8TokenIdFormatNotEditable()": [
|
|
114
|
+
{
|
|
115
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdFormat` 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."
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"LSP8TokenIdsDataEmptyArray()": [
|
|
104
119
|
{
|
|
105
|
-
"details": "Reverts when
|
|
120
|
+
"details": "Reverts when empty arrays is passed to the function"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"LSP8TokenIdsDataLengthMismatch()": [
|
|
124
|
+
{
|
|
125
|
+
"details": "Reverts when the length of the token IDs data arrays is not equal"
|
|
106
126
|
}
|
|
107
127
|
],
|
|
108
128
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
@@ -139,7 +159,7 @@
|
|
|
139
159
|
}
|
|
140
160
|
},
|
|
141
161
|
"authorizeOperator(address,bytes32,bytes)": {
|
|
142
|
-
"custom:events": "- LSP7 {
|
|
162
|
+
"custom:events": "- LSP7 {OperatorAuthorizationChanged} event. - ERC721 {Approval} event.",
|
|
143
163
|
"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",
|
|
144
164
|
"params": {
|
|
145
165
|
"operator": "The address to authorize as an operator.",
|
|
@@ -156,6 +176,16 @@
|
|
|
156
176
|
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
157
177
|
}
|
|
158
178
|
},
|
|
179
|
+
"batchCalls(bytes[])": {
|
|
180
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
181
|
+
"details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
|
|
182
|
+
"params": {
|
|
183
|
+
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
184
|
+
},
|
|
185
|
+
"returns": {
|
|
186
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
187
|
+
}
|
|
188
|
+
},
|
|
159
189
|
"constructor": {
|
|
160
190
|
"details": "initialize (= lock) base implementation contract on deployment"
|
|
161
191
|
},
|
|
@@ -186,6 +216,24 @@
|
|
|
186
216
|
"dataValues": "The array of data stored at multiple keys"
|
|
187
217
|
}
|
|
188
218
|
},
|
|
219
|
+
"getDataBatchForTokenIds(bytes32[],bytes32[])": {
|
|
220
|
+
"params": {
|
|
221
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
222
|
+
"tokenIds": "An array of token IDs."
|
|
223
|
+
},
|
|
224
|
+
"returns": {
|
|
225
|
+
"dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"getDataForTokenId(bytes32,bytes32)": {
|
|
229
|
+
"params": {
|
|
230
|
+
"dataKey": "The key for the data to retrieve.",
|
|
231
|
+
"tokenId": "The unique identifier for a token."
|
|
232
|
+
},
|
|
233
|
+
"returns": {
|
|
234
|
+
"dataValue": "The data value associated with the given `tokenId` and `dataKey`."
|
|
235
|
+
}
|
|
236
|
+
},
|
|
189
237
|
"getOperatorsOf(bytes32)": {
|
|
190
238
|
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
191
239
|
"params": {
|
|
@@ -195,8 +243,10 @@
|
|
|
195
243
|
"_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
|
|
196
244
|
}
|
|
197
245
|
},
|
|
198
|
-
"initialize(string,string,address,uint256)": {
|
|
246
|
+
"initialize(string,string,address,uint256,uint256)": {
|
|
199
247
|
"params": {
|
|
248
|
+
"lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
|
|
249
|
+
"lsp8TokenIdFormat_": "The format of tokenIds (= NFTs) that this contract will create.",
|
|
200
250
|
"name_": "The name of the token.",
|
|
201
251
|
"newOwner_": "The owner of the token contract.",
|
|
202
252
|
"symbol_": "The symbol of the token."
|
|
@@ -308,6 +358,20 @@
|
|
|
308
358
|
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
309
359
|
}
|
|
310
360
|
},
|
|
361
|
+
"setDataBatchForTokenIds(bytes32[],bytes32[],bytes[])": {
|
|
362
|
+
"params": {
|
|
363
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
364
|
+
"dataValues": "An array of values to set for the given data keys.",
|
|
365
|
+
"tokenIds": "An array of token IDs."
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"setDataForTokenId(bytes32,bytes32,bytes)": {
|
|
369
|
+
"params": {
|
|
370
|
+
"dataKey": "The key for the data to set.",
|
|
371
|
+
"dataValue": "The value to set for the given data key.",
|
|
372
|
+
"tokenId": "The unique identifier for a token."
|
|
373
|
+
}
|
|
374
|
+
},
|
|
311
375
|
"supportsInterface(bytes4)": {
|
|
312
376
|
"details": "See {IERC165-supportsInterface}."
|
|
313
377
|
},
|
|
@@ -29,12 +29,22 @@
|
|
|
29
29
|
],
|
|
30
30
|
"LSP4TokenNameNotEditable()": [
|
|
31
31
|
{
|
|
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
|
|
32
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"LSP4TokenSymbolNotEditable()": [
|
|
36
36
|
{
|
|
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
|
|
37
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"LSP4TokenTypeNotEditable()": [
|
|
41
|
+
{
|
|
42
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` 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 / initialized."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"LSP8BatchCallFailed(uint256)": [
|
|
46
|
+
{
|
|
47
|
+
"details": "Reverts when a batch call failed."
|
|
38
48
|
}
|
|
39
49
|
],
|
|
40
50
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -97,9 +107,19 @@
|
|
|
97
107
|
"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
108
|
}
|
|
99
109
|
],
|
|
100
|
-
"
|
|
110
|
+
"LSP8TokenIdFormatNotEditable()": [
|
|
111
|
+
{
|
|
112
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdFormat` 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."
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"LSP8TokenIdsDataEmptyArray()": [
|
|
101
116
|
{
|
|
102
|
-
"details": "Reverts when
|
|
117
|
+
"details": "Reverts when empty arrays is passed to the function"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"LSP8TokenIdsDataLengthMismatch()": [
|
|
121
|
+
{
|
|
122
|
+
"details": "Reverts when the length of the token IDs data arrays is not equal"
|
|
103
123
|
}
|
|
104
124
|
],
|
|
105
125
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
@@ -145,14 +165,25 @@
|
|
|
145
165
|
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
146
166
|
}
|
|
147
167
|
},
|
|
168
|
+
"batchCalls(bytes[])": {
|
|
169
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
170
|
+
"details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
|
|
171
|
+
"params": {
|
|
172
|
+
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
173
|
+
},
|
|
174
|
+
"returns": {
|
|
175
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
176
|
+
}
|
|
177
|
+
},
|
|
148
178
|
"constructor": {
|
|
149
|
-
"custom:warning": "Make sure the tokenId
|
|
150
|
-
"details": "Deploy a `LSP8IdentifiableDigitalAsset` contract and set the tokenId
|
|
179
|
+
"custom:warning": "Make sure the tokenId format 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.",
|
|
180
|
+
"details": "Deploy a `LSP8IdentifiableDigitalAsset` contract and set the tokenId format inside the ERC725Y storage of the contract. This will also set the token `name_` and `symbol_` under the ERC725Y data keys `LSP4TokenName` and `LSP4TokenSymbol`.",
|
|
151
181
|
"params": {
|
|
182
|
+
"lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
|
|
183
|
+
"lsp8TokenIdFormat_": "The format of tokenIds (= NFTs) that this contract will create.",
|
|
152
184
|
"name_": "The name of the token",
|
|
153
185
|
"newOwner_": "The owner of the the token-Metadata",
|
|
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`."
|
|
186
|
+
"symbol_": "The symbol of the token"
|
|
156
187
|
}
|
|
157
188
|
},
|
|
158
189
|
"getData(bytes32)": {
|
|
@@ -173,6 +204,24 @@
|
|
|
173
204
|
"dataValues": "The array of data stored at multiple keys"
|
|
174
205
|
}
|
|
175
206
|
},
|
|
207
|
+
"getDataBatchForTokenIds(bytes32[],bytes32[])": {
|
|
208
|
+
"params": {
|
|
209
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
210
|
+
"tokenIds": "An array of token IDs."
|
|
211
|
+
},
|
|
212
|
+
"returns": {
|
|
213
|
+
"dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"getDataForTokenId(bytes32,bytes32)": {
|
|
217
|
+
"params": {
|
|
218
|
+
"dataKey": "The key for the data to retrieve.",
|
|
219
|
+
"tokenId": "The unique identifier for a token."
|
|
220
|
+
},
|
|
221
|
+
"returns": {
|
|
222
|
+
"dataValue": "The data value associated with the given `tokenId` and `dataKey`."
|
|
223
|
+
}
|
|
224
|
+
},
|
|
176
225
|
"getOperatorsOf(bytes32)": {
|
|
177
226
|
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
178
227
|
"params": {
|
|
@@ -227,6 +276,20 @@
|
|
|
227
276
|
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
228
277
|
}
|
|
229
278
|
},
|
|
279
|
+
"setDataBatchForTokenIds(bytes32[],bytes32[],bytes[])": {
|
|
280
|
+
"params": {
|
|
281
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
282
|
+
"dataValues": "An array of values to set for the given data keys.",
|
|
283
|
+
"tokenIds": "An array of token IDs."
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"setDataForTokenId(bytes32,bytes32,bytes)": {
|
|
287
|
+
"params": {
|
|
288
|
+
"dataKey": "The key for the data to set.",
|
|
289
|
+
"dataValue": "The value to set for the given data key.",
|
|
290
|
+
"tokenId": "The unique identifier for a token."
|
|
291
|
+
}
|
|
292
|
+
},
|
|
230
293
|
"supportsInterface(bytes4)": {
|
|
231
294
|
"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."
|
|
232
295
|
},
|
|
@@ -29,12 +29,22 @@
|
|
|
29
29
|
],
|
|
30
30
|
"LSP4TokenNameNotEditable()": [
|
|
31
31
|
{
|
|
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
|
|
32
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
35
|
"LSP4TokenSymbolNotEditable()": [
|
|
36
36
|
{
|
|
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
|
|
37
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"LSP4TokenTypeNotEditable()": [
|
|
41
|
+
{
|
|
42
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` 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 / initialized."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"LSP8BatchCallFailed(uint256)": [
|
|
46
|
+
{
|
|
47
|
+
"details": "Reverts when a batch call failed."
|
|
38
48
|
}
|
|
39
49
|
],
|
|
40
50
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -97,9 +107,19 @@
|
|
|
97
107
|
"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
108
|
}
|
|
99
109
|
],
|
|
100
|
-
"
|
|
110
|
+
"LSP8TokenIdFormatNotEditable()": [
|
|
111
|
+
{
|
|
112
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdFormat` 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."
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"LSP8TokenIdsDataEmptyArray()": [
|
|
101
116
|
{
|
|
102
|
-
"details": "Reverts when
|
|
117
|
+
"details": "Reverts when empty arrays is passed to the function"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"LSP8TokenIdsDataLengthMismatch()": [
|
|
121
|
+
{
|
|
122
|
+
"details": "Reverts when the length of the token IDs data arrays is not equal"
|
|
103
123
|
}
|
|
104
124
|
],
|
|
105
125
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
@@ -145,6 +165,16 @@
|
|
|
145
165
|
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
146
166
|
}
|
|
147
167
|
},
|
|
168
|
+
"batchCalls(bytes[])": {
|
|
169
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
170
|
+
"details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
|
|
171
|
+
"params": {
|
|
172
|
+
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
173
|
+
},
|
|
174
|
+
"returns": {
|
|
175
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
176
|
+
}
|
|
177
|
+
},
|
|
148
178
|
"getData(bytes32)": {
|
|
149
179
|
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
150
180
|
"params": {
|
|
@@ -163,6 +193,24 @@
|
|
|
163
193
|
"dataValues": "The array of data stored at multiple keys"
|
|
164
194
|
}
|
|
165
195
|
},
|
|
196
|
+
"getDataBatchForTokenIds(bytes32[],bytes32[])": {
|
|
197
|
+
"params": {
|
|
198
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
199
|
+
"tokenIds": "An array of token IDs."
|
|
200
|
+
},
|
|
201
|
+
"returns": {
|
|
202
|
+
"dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"getDataForTokenId(bytes32,bytes32)": {
|
|
206
|
+
"params": {
|
|
207
|
+
"dataKey": "The key for the data to retrieve.",
|
|
208
|
+
"tokenId": "The unique identifier for a token."
|
|
209
|
+
},
|
|
210
|
+
"returns": {
|
|
211
|
+
"dataValue": "The data value associated with the given `tokenId` and `dataKey`."
|
|
212
|
+
}
|
|
213
|
+
},
|
|
166
214
|
"getOperatorsOf(bytes32)": {
|
|
167
215
|
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
168
216
|
"params": {
|
|
@@ -217,6 +265,20 @@
|
|
|
217
265
|
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
218
266
|
}
|
|
219
267
|
},
|
|
268
|
+
"setDataBatchForTokenIds(bytes32[],bytes32[],bytes[])": {
|
|
269
|
+
"params": {
|
|
270
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
271
|
+
"dataValues": "An array of values to set for the given data keys.",
|
|
272
|
+
"tokenIds": "An array of token IDs."
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"setDataForTokenId(bytes32,bytes32,bytes)": {
|
|
276
|
+
"params": {
|
|
277
|
+
"dataKey": "The key for the data to set.",
|
|
278
|
+
"dataValue": "The value to set for the given data key.",
|
|
279
|
+
"tokenId": "The unique identifier for a token."
|
|
280
|
+
}
|
|
281
|
+
},
|
|
220
282
|
"supportsInterface(bytes4)": {
|
|
221
283
|
"details": "See {IERC165-supportsInterface}."
|
|
222
284
|
},
|
|
@@ -27,12 +27,22 @@
|
|
|
27
27
|
],
|
|
28
28
|
"LSP4TokenNameNotEditable()": [
|
|
29
29
|
{
|
|
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
|
|
30
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
33
|
"LSP4TokenSymbolNotEditable()": [
|
|
34
34
|
{
|
|
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
|
|
35
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. 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 / initialized."
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"LSP4TokenTypeNotEditable()": [
|
|
39
|
+
{
|
|
40
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` 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 / initialized."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"LSP8BatchCallFailed(uint256)": [
|
|
44
|
+
{
|
|
45
|
+
"details": "Reverts when a batch call failed."
|
|
36
46
|
}
|
|
37
47
|
],
|
|
38
48
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -100,9 +110,19 @@
|
|
|
100
110
|
"details": "Reverts when `tokenId` has already been minted."
|
|
101
111
|
}
|
|
102
112
|
],
|
|
103
|
-
"
|
|
113
|
+
"LSP8TokenIdFormatNotEditable()": [
|
|
114
|
+
{
|
|
115
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdFormat` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdFormat` 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."
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"LSP8TokenIdsDataEmptyArray()": [
|
|
104
119
|
{
|
|
105
|
-
"details": "Reverts when
|
|
120
|
+
"details": "Reverts when empty arrays is passed to the function"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"LSP8TokenIdsDataLengthMismatch()": [
|
|
124
|
+
{
|
|
125
|
+
"details": "Reverts when the length of the token IDs data arrays is not equal"
|
|
106
126
|
}
|
|
107
127
|
],
|
|
108
128
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
@@ -148,8 +168,20 @@
|
|
|
148
168
|
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
149
169
|
}
|
|
150
170
|
},
|
|
171
|
+
"batchCalls(bytes[])": {
|
|
172
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
173
|
+
"details": "Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context.",
|
|
174
|
+
"params": {
|
|
175
|
+
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
176
|
+
},
|
|
177
|
+
"returns": {
|
|
178
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
179
|
+
}
|
|
180
|
+
},
|
|
151
181
|
"constructor": {
|
|
152
182
|
"params": {
|
|
183
|
+
"lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
|
|
184
|
+
"lsp8TokenIdFormat_": "The format of tokenIds (= NFTs) that this contract will create.",
|
|
153
185
|
"name_": "The name of the token.",
|
|
154
186
|
"newOwner_": "The owner of the token contract.",
|
|
155
187
|
"symbol_": "The symbol of the token."
|
|
@@ -173,6 +205,24 @@
|
|
|
173
205
|
"dataValues": "The array of data stored at multiple keys"
|
|
174
206
|
}
|
|
175
207
|
},
|
|
208
|
+
"getDataBatchForTokenIds(bytes32[],bytes32[])": {
|
|
209
|
+
"params": {
|
|
210
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
211
|
+
"tokenIds": "An array of token IDs."
|
|
212
|
+
},
|
|
213
|
+
"returns": {
|
|
214
|
+
"dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"getDataForTokenId(bytes32,bytes32)": {
|
|
218
|
+
"params": {
|
|
219
|
+
"dataKey": "The key for the data to retrieve.",
|
|
220
|
+
"tokenId": "The unique identifier for a token."
|
|
221
|
+
},
|
|
222
|
+
"returns": {
|
|
223
|
+
"dataValue": "The data value associated with the given `tokenId` and `dataKey`."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
176
226
|
"getOperatorsOf(bytes32)": {
|
|
177
227
|
"details": "Returns all `operator` addresses that are allowed to transfer or burn a specific `tokenId` on behalf of its owner.",
|
|
178
228
|
"params": {
|
|
@@ -236,6 +286,20 @@
|
|
|
236
286
|
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
237
287
|
}
|
|
238
288
|
},
|
|
289
|
+
"setDataBatchForTokenIds(bytes32[],bytes32[],bytes[])": {
|
|
290
|
+
"params": {
|
|
291
|
+
"dataKeys": "An array of data keys corresponding to the token IDs.",
|
|
292
|
+
"dataValues": "An array of values to set for the given data keys.",
|
|
293
|
+
"tokenIds": "An array of token IDs."
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"setDataForTokenId(bytes32,bytes32,bytes)": {
|
|
297
|
+
"params": {
|
|
298
|
+
"dataKey": "The key for the data to set.",
|
|
299
|
+
"dataValue": "The value to set for the given data key.",
|
|
300
|
+
"tokenId": "The unique identifier for a token."
|
|
301
|
+
}
|
|
302
|
+
},
|
|
239
303
|
"supportsInterface(bytes4)": {
|
|
240
304
|
"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."
|
|
241
305
|
},
|