@lukso/lsp-smart-contracts 0.9.0 → 0.10.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 +15 -7
- package/artifacts/LSP0ERC725Account.json +62 -68
- package/artifacts/LSP0ERC725AccountInit.json +62 -68
- 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/LSP4Compatibility.json +32 -38
- package/artifacts/LSP4DigitalAssetMetadata.json +32 -38
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +32 -38
- package/artifacts/LSP6KeyManager.json +29 -15
- package/artifacts/LSP6KeyManagerInit.json +29 -15
- 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 +73 -38
- package/artifacts/LSP7CompatibleERC20MintableInit.json +73 -38
- package/artifacts/LSP7DigitalAsset.json +71 -36
- package/artifacts/LSP7DigitalAssetInitAbstract.json +71 -36
- package/artifacts/LSP7Mintable.json +73 -38
- package/artifacts/LSP7MintableInit.json +73 -38
- package/artifacts/LSP8CappedSupply.json +32 -38
- package/artifacts/LSP8CappedSupplyInitAbstract.json +32 -38
- package/artifacts/LSP8CompatibleERC721.json +35 -41
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +35 -41
- package/artifacts/LSP8CompatibleERC721Mintable.json +37 -43
- package/artifacts/LSP8CompatibleERC721MintableInit.json +37 -43
- package/artifacts/LSP8IdentifiableDigitalAsset.json +32 -38
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +32 -38
- package/artifacts/LSP8Mintable.json +34 -40
- package/artifacts/LSP8MintableInit.json +34 -40
- package/artifacts/LSP9Vault.json +61 -67
- package/artifacts/LSP9VaultInit.json +61 -67
- package/artifacts/UniversalProfile.json +62 -68
- package/artifacts/UniversalProfileInit.json +62 -68
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +45 -10
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +36 -6
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +361 -124
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +30 -4
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +37 -3
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +0 -1
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +30 -15
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +0 -1
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +0 -1
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +5 -7
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +10 -5
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +0 -4
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +91 -34
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +27 -8
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +18 -9
- package/contracts/LSP20CallVerification/LSP20Constants.sol +17 -0
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +26 -12
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +0 -1
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +32 -16
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +11 -2
- package/contracts/LSP6KeyManager/LSP6Constants.sol +5 -5
- package/contracts/LSP6KeyManager/LSP6Errors.sol +10 -6
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +140 -68
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +0 -1
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +30 -38
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +153 -60
- package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -5
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +67 -13
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +2 -2
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +24 -0
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -2
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -2
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +3 -5
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +3 -5
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +15 -12
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/ILSP8CompatibleERC721.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 +5 -5
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +6 -6
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +2 -2
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +2 -2
- package/contracts/LSP9Vault/ILSP9Vault.sol +9 -1
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +0 -6
- package/contracts/LSP9Vault/LSP9VaultCore.sol +17 -15
- package/contracts/LSP9Vault/LSP9VaultInit.sol +2 -1
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +8 -5
- package/contracts/UniversalProfileInitAbstract.sol +5 -0
- package/devdocs/Create2Factory.json +16 -0
- package/devdocs/LSP0ERC725Account.json +200 -0
- package/devdocs/LSP0ERC725AccountInit.json +203 -0
- package/devdocs/LSP11BasicSocialRecovery.json +146 -0
- package/devdocs/LSP11BasicSocialRecoveryInit.json +146 -0
- package/devdocs/LSP16UniversalFactory.json +51 -0
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +80 -0
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +62 -0
- package/devdocs/LSP4Compatibility.json +79 -0
- package/devdocs/LSP4DigitalAssetMetadata.json +84 -0
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +77 -0
- package/devdocs/LSP6KeyManager.json +257 -0
- package/devdocs/LSP6KeyManagerInit.json +260 -0
- package/devdocs/LSP7CappedSupply.json +211 -0
- package/devdocs/LSP7CappedSupplyInitAbstract.json +206 -0
- package/devdocs/LSP7CompatibleERC20.json +225 -0
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +218 -0
- package/devdocs/LSP7CompatibleERC20Mintable.json +217 -0
- package/devdocs/LSP7CompatibleERC20MintableInit.json +227 -0
- package/devdocs/LSP7DigitalAsset.json +210 -0
- package/devdocs/LSP7DigitalAssetInitAbstract.json +202 -0
- package/devdocs/LSP7Mintable.json +219 -0
- package/devdocs/LSP7MintableInit.json +220 -0
- package/devdocs/LSP8CappedSupply.json +232 -0
- package/devdocs/LSP8CappedSupplyInitAbstract.json +227 -0
- package/devdocs/LSP8CompatibleERC721.json +298 -0
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +291 -0
- package/devdocs/LSP8CompatibleERC721Mintable.json +290 -0
- package/devdocs/LSP8CompatibleERC721MintableInit.json +300 -0
- package/devdocs/LSP8IdentifiableDigitalAsset.json +230 -0
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +223 -0
- package/devdocs/LSP8Mintable.json +242 -0
- package/devdocs/LSP8MintableInit.json +245 -0
- package/devdocs/LSP9Vault.json +171 -0
- package/devdocs/LSP9VaultInit.json +175 -0
- package/devdocs/UniversalProfile.json +199 -0
- package/devdocs/UniversalProfileInit.json +202 -0
- package/devdocs/UniversalReceiverAddressStore.json +9 -0
- package/dist/constants.cjs.js +31569 -0
- package/dist/constants.d.ts +31681 -0
- package/dist/constants.es.js +31550 -0
- package/package.json +69 -52
- package/userdocs/Create2Factory.json +5 -0
- package/userdocs/LSP0ERC725Account.json +47 -0
- package/userdocs/LSP0ERC725AccountInit.json +47 -0
- package/userdocs/LSP11BasicSocialRecovery.json +29 -0
- package/userdocs/LSP11BasicSocialRecoveryInit.json +29 -0
- package/userdocs/LSP16UniversalFactory.json +5 -0
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +10 -0
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +10 -0
- package/userdocs/LSP4Compatibility.json +20 -0
- package/userdocs/LSP4DigitalAssetMetadata.json +23 -0
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +20 -0
- package/userdocs/LSP6KeyManager.json +18 -0
- package/userdocs/LSP6KeyManagerInit.json +18 -0
- package/userdocs/LSP7CappedSupply.json +29 -0
- package/userdocs/LSP7CappedSupplyInitAbstract.json +26 -0
- package/userdocs/LSP7CompatibleERC20.json +35 -0
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +32 -0
- package/userdocs/LSP7CompatibleERC20Mintable.json +32 -0
- package/userdocs/LSP7CompatibleERC20MintableInit.json +35 -0
- package/userdocs/LSP7DigitalAsset.json +29 -0
- package/userdocs/LSP7DigitalAssetInitAbstract.json +26 -0
- package/userdocs/LSP7Mintable.json +29 -0
- package/userdocs/LSP7MintableInit.json +29 -0
- package/userdocs/LSP8CappedSupply.json +23 -0
- package/userdocs/LSP8CappedSupplyInitAbstract.json +20 -0
- package/userdocs/LSP8CompatibleERC721.json +29 -0
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +26 -0
- package/userdocs/LSP8CompatibleERC721Mintable.json +26 -0
- package/userdocs/LSP8CompatibleERC721MintableInit.json +29 -0
- package/userdocs/LSP8IdentifiableDigitalAsset.json +23 -0
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +20 -0
- package/userdocs/LSP8Mintable.json +23 -0
- package/userdocs/LSP8MintableInit.json +23 -0
- package/userdocs/LSP9Vault.json +38 -0
- package/userdocs/LSP9VaultInit.json +38 -0
- package/userdocs/UniversalProfile.json +50 -0
- package/userdocs/UniversalProfileInit.json +50 -0
- package/userdocs/UniversalReceiverAddressStore.json +5 -0
- package/CONTRIBUTING.md +0 -57
- package/common/constants.d.ts +0 -461
- package/common/constants.js +0 -789
- package/contracts/Utils/GasLib.sol +0 -17
- package/module/constants.d.ts +0 -461
- package/module/constants.js +0 -786
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Matthew Stevens",
|
|
3
|
+
"details": "Proxy Implementation of a LSP8 compliant contract.",
|
|
4
|
+
"errors": {
|
|
5
|
+
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
6
|
+
{
|
|
7
|
+
"details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
11
|
+
{
|
|
12
|
+
"details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"ERC725Y_MsgValueDisallowed()": [
|
|
16
|
+
{
|
|
17
|
+
"details": "reverts when sending value to the `setData(..)` functions"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"LSP4TokenNameNotEditable()": [
|
|
21
|
+
{
|
|
22
|
+
"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
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"LSP4TokenSymbolNotEditable()": [
|
|
26
|
+
{
|
|
27
|
+
"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
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"LSP8CannotSendToAddressZero()": [
|
|
31
|
+
{
|
|
32
|
+
"details": "reverts when trying to send token to the zero address."
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"LSP8CannotSendToSelf()": [
|
|
36
|
+
{
|
|
37
|
+
"details": "reverts when specifying the same address for `from` and `to` in a token transfer."
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"LSP8CannotUseAddressZeroAsOperator()": [
|
|
41
|
+
{
|
|
42
|
+
"details": "reverts when trying to set the zero address as an operator."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"LSP8InvalidTransferBatch()": [
|
|
46
|
+
{
|
|
47
|
+
"details": "reverts when the parameters used for `transferBatch` have different lengths."
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"LSP8NonExistentTokenId(bytes32)": [
|
|
51
|
+
{
|
|
52
|
+
"details": "reverts when `tokenId` has not been minted."
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"LSP8NonExistingOperator(address,bytes32)": [
|
|
56
|
+
{
|
|
57
|
+
"details": "reverts when `operator` is not an operator for the `tokenId`."
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"LSP8NotTokenOperator(bytes32,address)": [
|
|
61
|
+
{
|
|
62
|
+
"details": "reverts when `caller` is not an allowed operator for `tokenId`."
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"LSP8NotTokenOwner(address,bytes32,address)": [
|
|
66
|
+
{
|
|
67
|
+
"details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
71
|
+
{
|
|
72
|
+
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"LSP8NotifyTokenReceiverIsEOA(address)": [
|
|
76
|
+
{
|
|
77
|
+
"details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"LSP8OperatorAlreadyAuthorized(address,bytes32)": [
|
|
81
|
+
{
|
|
82
|
+
"details": "reverts when `operator` is already authorized for the `tokenId`."
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"LSP8TokenOwnerCannotBeOperator()": [
|
|
86
|
+
{
|
|
87
|
+
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"kind": "dev",
|
|
92
|
+
"methods": {
|
|
93
|
+
"authorizeOperator(address,bytes32)": {
|
|
94
|
+
"details": "Makes `operator` address an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits an {AuthorizedOperator} event.",
|
|
95
|
+
"params": {
|
|
96
|
+
"operator": "The address to authorize as an operator.",
|
|
97
|
+
"tokenId": "The tokenId operator has access to."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"balanceOf(address)": {
|
|
101
|
+
"details": "Returns the number of tokens owned by `tokenOwner`.",
|
|
102
|
+
"params": {
|
|
103
|
+
"tokenOwner": "The address to query"
|
|
104
|
+
},
|
|
105
|
+
"returns": {
|
|
106
|
+
"_0": "The number of tokens owned by this address"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"getData(bytes32)": {
|
|
110
|
+
"params": {
|
|
111
|
+
"dataKey": "The key which value to retrieve"
|
|
112
|
+
},
|
|
113
|
+
"returns": {
|
|
114
|
+
"dataValue": "The data stored at the key"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"getDataBatch(bytes32[])": {
|
|
118
|
+
"params": {
|
|
119
|
+
"dataKeys": "The array of keys which values to retrieve"
|
|
120
|
+
},
|
|
121
|
+
"returns": {
|
|
122
|
+
"dataValues": "The array of data stored at multiple keys"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"getOperatorsOf(bytes32)": {
|
|
126
|
+
"details": "Returns all `operator` addresses of `tokenId`. Requirements - `tokenId` must exist.",
|
|
127
|
+
"params": {
|
|
128
|
+
"tokenId": "The tokenId to query"
|
|
129
|
+
},
|
|
130
|
+
"returns": {
|
|
131
|
+
"_0": "The list of operators for the `tokenId`"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"isOperatorFor(address,bytes32)": {
|
|
135
|
+
"details": "Returns whether `operator` address is an operator of `tokenId`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator. Requirements - `tokenId` must exist.",
|
|
136
|
+
"params": {
|
|
137
|
+
"operator": "The address to query",
|
|
138
|
+
"tokenId": "The tokenId to query"
|
|
139
|
+
},
|
|
140
|
+
"returns": {
|
|
141
|
+
"_0": "True if the owner of `tokenId` is `operator` address, false otherwise"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"owner()": {
|
|
145
|
+
"details": "Returns the address of the current owner."
|
|
146
|
+
},
|
|
147
|
+
"renounceOwnership()": {
|
|
148
|
+
"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."
|
|
149
|
+
},
|
|
150
|
+
"revokeOperator(address,bytes32)": {
|
|
151
|
+
"details": "Removes `operator` address as an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
|
|
152
|
+
"params": {
|
|
153
|
+
"operator": "The address to revoke as an operator.",
|
|
154
|
+
"tokenId": "The tokenId `operator` is revoked from operating"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"setData(bytes32,bytes)": {
|
|
158
|
+
"params": {
|
|
159
|
+
"dataKey": "The key to retrieve stored value",
|
|
160
|
+
"dataValue": "The value to set SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"setDataBatch(bytes32[],bytes[])": {
|
|
164
|
+
"details": "Sets array of data for multiple given `dataKeys` SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event.",
|
|
165
|
+
"params": {
|
|
166
|
+
"dataKeys": "The array of data keys for values to set",
|
|
167
|
+
"dataValues": "The array of values to set"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"supportsInterface(bytes4)": {
|
|
171
|
+
"details": "See {IERC165-supportsInterface}."
|
|
172
|
+
},
|
|
173
|
+
"tokenIdsOf(address)": {
|
|
174
|
+
"details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
|
|
175
|
+
"params": {
|
|
176
|
+
"tokenOwner": "The address to query owned tokens"
|
|
177
|
+
},
|
|
178
|
+
"returns": {
|
|
179
|
+
"_0": "List of owned tokens by `tokenOwner` address"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"tokenOwnerOf(bytes32)": {
|
|
183
|
+
"details": "Returns the `tokenOwner` address of the `tokenId` token. Requirements: - `tokenId` must exist.",
|
|
184
|
+
"params": {
|
|
185
|
+
"tokenId": "The tokenId to query"
|
|
186
|
+
},
|
|
187
|
+
"returns": {
|
|
188
|
+
"_0": "The address owning the `tokenId`"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"totalSupply()": {
|
|
192
|
+
"details": "Returns the number of existing tokens.",
|
|
193
|
+
"returns": {
|
|
194
|
+
"_0": "The number of existing tokens"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"transfer(address,address,bytes32,bool,bytes)": {
|
|
198
|
+
"details": "Transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `from` and `to` cannot be the same address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of `tokenId`. Emits a {Transfer} event.",
|
|
199
|
+
"params": {
|
|
200
|
+
"allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
|
|
201
|
+
"data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
202
|
+
"from": "The sending address.",
|
|
203
|
+
"to": "The receiving address.",
|
|
204
|
+
"tokenId": "The tokenId to transfer."
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
208
|
+
"details": "Transfers many tokens based on the list `from`, `to`, `tokenId`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `tokenId` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - `from` and `to` cannot be the same address at the same index of each lists. - each `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of each `tokenId`. Emits {Transfer} events.",
|
|
209
|
+
"params": {
|
|
210
|
+
"allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
|
|
211
|
+
"data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
212
|
+
"from": "The list of sending addresses.",
|
|
213
|
+
"to": "The list of receiving addresses.",
|
|
214
|
+
"tokenId": "The list of tokenId to transfer."
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"transferOwnership(address)": {
|
|
218
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"title": "LSP8IdentifiableDigitalAsset contract",
|
|
222
|
+
"version": 1
|
|
223
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
{
|
|
2
|
+
"details": "LSP8 extension.",
|
|
3
|
+
"errors": {
|
|
4
|
+
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
5
|
+
{
|
|
6
|
+
"details": "reverts when one of the array parameter provided to `setDataBatch` is an empty array"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
10
|
+
{
|
|
11
|
+
"details": "reverts when there is not the same number of elements in the lists of data keys and data values when calling setDataBatch."
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"ERC725Y_MsgValueDisallowed()": [
|
|
15
|
+
{
|
|
16
|
+
"details": "reverts when sending value to the `setData(..)` functions"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"LSP4TokenNameNotEditable()": [
|
|
20
|
+
{
|
|
21
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed. The `LSP4TokenName` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"LSP4TokenSymbolNotEditable()": [
|
|
25
|
+
{
|
|
26
|
+
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed. The `LSP4TokenSymbol` data key is located inside the ERC725Y Data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed."
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"LSP8CannotSendToAddressZero()": [
|
|
30
|
+
{
|
|
31
|
+
"details": "reverts when trying to send token to the zero address."
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"LSP8CannotSendToSelf()": [
|
|
35
|
+
{
|
|
36
|
+
"details": "reverts when specifying the same address for `from` and `to` in a token transfer."
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"LSP8CannotUseAddressZeroAsOperator()": [
|
|
40
|
+
{
|
|
41
|
+
"details": "reverts when trying to set the zero address as an operator."
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"LSP8InvalidTransferBatch()": [
|
|
45
|
+
{
|
|
46
|
+
"details": "reverts when the parameters used for `transferBatch` have different lengths."
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"LSP8NonExistentTokenId(bytes32)": [
|
|
50
|
+
{
|
|
51
|
+
"details": "reverts when `tokenId` has not been minted."
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"LSP8NonExistingOperator(address,bytes32)": [
|
|
55
|
+
{
|
|
56
|
+
"details": "reverts when `operator` is not an operator for the `tokenId`."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"LSP8NotTokenOperator(bytes32,address)": [
|
|
60
|
+
{
|
|
61
|
+
"details": "reverts when `caller` is not an allowed operator for `tokenId`."
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"LSP8NotTokenOwner(address,bytes32,address)": [
|
|
65
|
+
{
|
|
66
|
+
"details": "reverts when `caller` is not the `tokenOwner` of the `tokenId`."
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)": [
|
|
70
|
+
{
|
|
71
|
+
"details": "reverts if the `tokenReceiver` does not implement LSP1 when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"LSP8NotifyTokenReceiverIsEOA(address)": [
|
|
75
|
+
{
|
|
76
|
+
"details": "reverts if the `tokenReceiver` is an EOA when minting or transferring tokens with `bool allowNonLSP1Recipient` set as `false`."
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"LSP8OperatorAlreadyAuthorized(address,bytes32)": [
|
|
80
|
+
{
|
|
81
|
+
"details": "reverts when `operator` is already authorized for the `tokenId`."
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"LSP8TokenIdAlreadyMinted(bytes32)": [
|
|
85
|
+
{
|
|
86
|
+
"details": "reverts when `tokenId` has already been minted."
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"LSP8TokenOwnerCannotBeOperator()": [
|
|
90
|
+
{
|
|
91
|
+
"details": "reverts when trying to authorize or revoke the token's owner as an operator."
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"kind": "dev",
|
|
96
|
+
"methods": {
|
|
97
|
+
"authorizeOperator(address,bytes32)": {
|
|
98
|
+
"details": "Makes `operator` address an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits an {AuthorizedOperator} event.",
|
|
99
|
+
"params": {
|
|
100
|
+
"operator": "The address to authorize as an operator.",
|
|
101
|
+
"tokenId": "The tokenId operator has access to."
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"balanceOf(address)": {
|
|
105
|
+
"details": "Returns the number of tokens owned by `tokenOwner`.",
|
|
106
|
+
"params": {
|
|
107
|
+
"tokenOwner": "The address to query"
|
|
108
|
+
},
|
|
109
|
+
"returns": {
|
|
110
|
+
"_0": "The number of tokens owned by this address"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"constructor": {
|
|
114
|
+
"params": {
|
|
115
|
+
"name_": "The name of the token",
|
|
116
|
+
"newOwner_": "The owner of the the token-Metadata",
|
|
117
|
+
"symbol_": "The symbol of the token"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"getData(bytes32)": {
|
|
121
|
+
"params": {
|
|
122
|
+
"dataKey": "The key which value to retrieve"
|
|
123
|
+
},
|
|
124
|
+
"returns": {
|
|
125
|
+
"dataValue": "The data stored at the key"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"getDataBatch(bytes32[])": {
|
|
129
|
+
"params": {
|
|
130
|
+
"dataKeys": "The array of keys which values to retrieve"
|
|
131
|
+
},
|
|
132
|
+
"returns": {
|
|
133
|
+
"dataValues": "The array of data stored at multiple keys"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"getOperatorsOf(bytes32)": {
|
|
137
|
+
"details": "Returns all `operator` addresses of `tokenId`. Requirements - `tokenId` must exist.",
|
|
138
|
+
"params": {
|
|
139
|
+
"tokenId": "The tokenId to query"
|
|
140
|
+
},
|
|
141
|
+
"returns": {
|
|
142
|
+
"_0": "The list of operators for the `tokenId`"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"isOperatorFor(address,bytes32)": {
|
|
146
|
+
"details": "Returns whether `operator` address is an operator of `tokenId`. Operators can send and burn tokens on behalf of their owners. The tokenOwner is their own operator. Requirements - `tokenId` must exist.",
|
|
147
|
+
"params": {
|
|
148
|
+
"operator": "The address to query",
|
|
149
|
+
"tokenId": "The tokenId to query"
|
|
150
|
+
},
|
|
151
|
+
"returns": {
|
|
152
|
+
"_0": "True if the owner of `tokenId` is `operator` address, false otherwise"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"mint(address,bytes32,bool,bytes)": {
|
|
156
|
+
"details": "Mints `amount` tokens and transfers it to `to`. Requirements: - `to` cannot be the zero address. Emits a {Transfer} event.",
|
|
157
|
+
"params": {
|
|
158
|
+
"allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
|
|
159
|
+
"data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
160
|
+
"to": "The address to mint tokens",
|
|
161
|
+
"tokenId": "The tokenId to mint"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"owner()": {
|
|
165
|
+
"details": "Returns the address of the current owner."
|
|
166
|
+
},
|
|
167
|
+
"renounceOwnership()": {
|
|
168
|
+
"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."
|
|
169
|
+
},
|
|
170
|
+
"revokeOperator(address,bytes32)": {
|
|
171
|
+
"details": "Removes `operator` address as an operator of `tokenId`. See {isOperatorFor}. Requirements - `tokenId` must exist. - caller must be current `tokenOwner` of `tokenId`. - `operator` cannot be the zero address. Emits a {RevokedOperator} event.",
|
|
172
|
+
"params": {
|
|
173
|
+
"operator": "The address to revoke as an operator.",
|
|
174
|
+
"tokenId": "The tokenId `operator` is revoked from operating"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"setData(bytes32,bytes)": {
|
|
178
|
+
"params": {
|
|
179
|
+
"dataKey": "The key to retrieve stored value",
|
|
180
|
+
"dataValue": "The value to set SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event."
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"setDataBatch(bytes32[],bytes[])": {
|
|
184
|
+
"details": "Sets array of data for multiple given `dataKeys` SHOULD only be callable by the owner of the contract set via ERC173 The function is marked as payable to enable flexibility on child contracts If the function is not intended to receive value, an additional check should be implemented to check that value equal 0. Emits a {DataChanged} event.",
|
|
185
|
+
"params": {
|
|
186
|
+
"dataKeys": "The array of data keys for values to set",
|
|
187
|
+
"dataValues": "The array of values to set"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"supportsInterface(bytes4)": {
|
|
191
|
+
"details": "See {IERC165-supportsInterface}."
|
|
192
|
+
},
|
|
193
|
+
"tokenIdsOf(address)": {
|
|
194
|
+
"details": "Returns the list of `tokenIds` for the `tokenOwner` address.",
|
|
195
|
+
"params": {
|
|
196
|
+
"tokenOwner": "The address to query owned tokens"
|
|
197
|
+
},
|
|
198
|
+
"returns": {
|
|
199
|
+
"_0": "List of owned tokens by `tokenOwner` address"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"tokenOwnerOf(bytes32)": {
|
|
203
|
+
"details": "Returns the `tokenOwner` address of the `tokenId` token. Requirements: - `tokenId` must exist.",
|
|
204
|
+
"params": {
|
|
205
|
+
"tokenId": "The tokenId to query"
|
|
206
|
+
},
|
|
207
|
+
"returns": {
|
|
208
|
+
"_0": "The address owning the `tokenId`"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"totalSupply()": {
|
|
212
|
+
"details": "Returns the number of existing tokens.",
|
|
213
|
+
"returns": {
|
|
214
|
+
"_0": "The number of existing tokens"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"transfer(address,address,bytes32,bool,bytes)": {
|
|
218
|
+
"details": "Transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `from` and `to` cannot be the same address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of `tokenId`. Emits a {Transfer} event.",
|
|
219
|
+
"params": {
|
|
220
|
+
"allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
|
|
221
|
+
"data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
222
|
+
"from": "The sending address.",
|
|
223
|
+
"to": "The receiving address.",
|
|
224
|
+
"tokenId": "The tokenId to transfer."
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"transferBatch(address[],address[],bytes32[],bool[],bytes[])": {
|
|
228
|
+
"details": "Transfers many tokens based on the list `from`, `to`, `tokenId`. If any transfer fails the call will revert. Requirements: - `from`, `to`, `tokenId` lists are the same length. - no values in `from` can be the zero address. - no values in `to` can be the zero address. - `from` and `to` cannot be the same address at the same index of each lists. - each `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be an operator of each `tokenId`. Emits {Transfer} events.",
|
|
229
|
+
"params": {
|
|
230
|
+
"allowNonLSP1Recipient": "When set to TRUE, to may be any address but when set to FALSE to must be a contract that supports LSP1 UniversalReceiver",
|
|
231
|
+
"data": "Additional data the caller wants included in the emitted event, and sent in the hooks to `from` and `to` addresses.",
|
|
232
|
+
"from": "The list of sending addresses.",
|
|
233
|
+
"to": "The list of receiving addresses.",
|
|
234
|
+
"tokenId": "The list of tokenId to transfer."
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"transferOwnership(address)": {
|
|
238
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"version": 1
|
|
242
|
+
}
|