@lukso/lsp-smart-contracts 0.12.1 → 0.13.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 +2 -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/LSP4DigitalAssetMetadata/LSP4Constants.sol +9 -0
- 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/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 -4
- 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/LSP8CompatibleERC721.sol +15 -4
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +8 -4
- 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 +13 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +6 -2
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +6 -2
- 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 +4184 -844
- 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
|
@@ -28,12 +28,22 @@
|
|
|
28
28
|
],
|
|
29
29
|
"LSP4TokenNameNotEditable()": [
|
|
30
30
|
{
|
|
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
|
|
31
|
+
"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."
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
34
|
"LSP4TokenSymbolNotEditable()": [
|
|
35
35
|
{
|
|
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
|
|
36
|
+
"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."
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"LSP4TokenTypeNotEditable()": [
|
|
40
|
+
{
|
|
41
|
+
"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."
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"LSP8BatchCallFailed(uint256)": [
|
|
45
|
+
{
|
|
46
|
+
"details": "Reverts when a batch call failed."
|
|
37
47
|
}
|
|
38
48
|
],
|
|
39
49
|
"LSP8CannotSendToAddressZero()": [
|
|
@@ -101,9 +111,19 @@
|
|
|
101
111
|
"details": "Reverts when `tokenId` has already been minted."
|
|
102
112
|
}
|
|
103
113
|
],
|
|
104
|
-
"
|
|
114
|
+
"LSP8TokenIdSchemaNotEditable()": [
|
|
115
|
+
{
|
|
116
|
+
"details": "Reverts when trying to edit the data key `LSP8TokenIdSchema` after the identifiable digital asset contract has been deployed. The `LSP8TokenIdSchema` 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."
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"LSP8TokenIdsDataEmptyArray()": [
|
|
105
120
|
{
|
|
106
|
-
"details": "Reverts when
|
|
121
|
+
"details": "Reverts when empty arrays is passed to the function"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"LSP8TokenIdsDataLengthMismatch()": [
|
|
125
|
+
{
|
|
126
|
+
"details": "Reverts when the length of the token IDs data arrays is not equal"
|
|
107
127
|
}
|
|
108
128
|
],
|
|
109
129
|
"LSP8TokenOwnerCannotBeOperator()": [
|
|
@@ -149,6 +169,16 @@
|
|
|
149
169
|
"_0": "The total number of token IDs that `tokenOwner` owns."
|
|
150
170
|
}
|
|
151
171
|
},
|
|
172
|
+
"batchCalls(bytes[])": {
|
|
173
|
+
"custom:info": "It's not possible to send value along the functions call due to the use of `delegatecall`.",
|
|
174
|
+
"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.",
|
|
175
|
+
"params": {
|
|
176
|
+
"data": "An array of ABI encoded function calls to be called on the contract."
|
|
177
|
+
},
|
|
178
|
+
"returns": {
|
|
179
|
+
"results": "An array of abi-encoded data returned by the functions executed."
|
|
180
|
+
}
|
|
181
|
+
},
|
|
152
182
|
"constructor": {
|
|
153
183
|
"details": "initialize (= lock) base implementation contract on deployment"
|
|
154
184
|
},
|
|
@@ -179,8 +209,28 @@
|
|
|
179
209
|
"_0": "An array of operators allowed to transfer or burn a specific `tokenId`. Requirements - `tokenId` must exist."
|
|
180
210
|
}
|
|
181
211
|
},
|
|
182
|
-
"
|
|
212
|
+
"getTokenIdData(bytes32,bytes32)": {
|
|
183
213
|
"params": {
|
|
214
|
+
"dataKey": "The key for the data to retrieve.",
|
|
215
|
+
"tokenId": "The unique identifier for a token."
|
|
216
|
+
},
|
|
217
|
+
"returns": {
|
|
218
|
+
"dataValues": "The data value associated with the given `tokenId` and `dataKey`."
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"getTokenIdDataBatch(bytes32[],bytes32[])": {
|
|
222
|
+
"params": {
|
|
223
|
+
"dataKey": "An array of data keys corresponding to the token IDs.",
|
|
224
|
+
"tokenId": "An array of token IDs."
|
|
225
|
+
},
|
|
226
|
+
"returns": {
|
|
227
|
+
"dataValues": "An array of data values for each pair of `tokenId` and `dataKey`."
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"initialize(string,string,address,uint256,uint256)": {
|
|
231
|
+
"params": {
|
|
232
|
+
"lsp4TokenType_": "The type of token this digital asset contract represents (`1` = Token, `2` = NFT, `3` = Collection).",
|
|
233
|
+
"lsp8TokenIdSchema_": "The schema of tokenIds (= NFTs) that this contract will create.",
|
|
184
234
|
"name_": "The name of the token.",
|
|
185
235
|
"newOwner_": "The owner of the token contract.",
|
|
186
236
|
"symbol_": "The symbol of the token."
|
|
@@ -240,6 +290,20 @@
|
|
|
240
290
|
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
241
291
|
}
|
|
242
292
|
},
|
|
293
|
+
"setTokenIdData(bytes32,bytes32,bytes)": {
|
|
294
|
+
"params": {
|
|
295
|
+
"dataKey": "The key for the data to set.",
|
|
296
|
+
"dataValue": "The value to set for the given data key.",
|
|
297
|
+
"tokenId": "The unique identifier for a token."
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"setTokenIdDataBatch(bytes32[],bytes32[],bytes[])": {
|
|
301
|
+
"params": {
|
|
302
|
+
"dataKey": "An array of data keys corresponding to the token IDs.",
|
|
303
|
+
"dataValue": "An array of values to set for the given data keys.",
|
|
304
|
+
"tokenId": "An array of token IDs."
|
|
305
|
+
}
|
|
306
|
+
},
|
|
243
307
|
"supportsInterface(bytes4)": {
|
|
244
308
|
"details": "See {IERC165-supportsInterface}."
|
|
245
309
|
},
|