@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,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"details": "Sets permission for a controller address after a recovery process to interact with an ERC725 contract via the LSP6KeyManager",
|
|
3
|
+
"errors": {
|
|
4
|
+
"AddressZeroNotAllowed()": [
|
|
5
|
+
{
|
|
6
|
+
"details": "reverts when the address zero calls `recoverOwnership(..)` function"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"CallerIsNotGuardian(address)": [
|
|
10
|
+
{
|
|
11
|
+
"details": "reverts when the caller is not a guardian"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"GuardianAlreadyExist(address)": [
|
|
15
|
+
{
|
|
16
|
+
"details": "reverts when adding an already existing guardian"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"GuardianDoNotExist(address)": [
|
|
20
|
+
{
|
|
21
|
+
"details": "reverts when removing a non-existing guardian"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"GuardiansNumberCannotGoBelowThreshold(uint256)": [
|
|
25
|
+
{
|
|
26
|
+
"details": "reverts when removing a guardian and the threshold is equal to the number of guardians"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"SecretHashCannotBeZero()": [
|
|
30
|
+
{
|
|
31
|
+
"details": "reverts when the secret hash provided is equal to bytes32(0)"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"ThresholdCannotBeHigherThanGuardiansNumber(uint256,uint256)": [
|
|
35
|
+
{
|
|
36
|
+
"details": "reverts when setting the guardians threshold to a number higher than the guardians number"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"ThresholdNotReachedForRecoverer(address,uint256,uint256)": [
|
|
40
|
+
{
|
|
41
|
+
"details": "reverts when `recoverOwnership(..)` is called with a recoverer that didn't reach the guardians threshold",
|
|
42
|
+
"params": {
|
|
43
|
+
"guardiansThreshold": "The minimum number of selection needed",
|
|
44
|
+
"recoverer": "The address of the recoverer",
|
|
45
|
+
"selections": "The number of selections that the recoverer have"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"WrongPlainSecret()": [
|
|
50
|
+
{
|
|
51
|
+
"details": "reverts when the plain secret produce a different hash than the secret hash originally set"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"kind": "dev",
|
|
56
|
+
"methods": {
|
|
57
|
+
"addGuardian(address)": {
|
|
58
|
+
"details": "Adds a guardian of the targetCan be called only by the owner",
|
|
59
|
+
"params": {
|
|
60
|
+
"newGuardian": "The address to add as a guardian"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"getGuardianChoice(address)": {
|
|
64
|
+
"details": "Returns the address of a controller that a `guardian` selected for in order to recover the target",
|
|
65
|
+
"params": {
|
|
66
|
+
"guardian": "the address of a guardian to query his selection"
|
|
67
|
+
},
|
|
68
|
+
"returns": {
|
|
69
|
+
"_0": "the address that `guardian` selected"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"getGuardians()": {
|
|
73
|
+
"details": "Returns the addresses of all guardians The guardians will select an address to be added as a controller key for the linked `target` if he reaches the guardian threshold and provide the correct string that produce the secretHash"
|
|
74
|
+
},
|
|
75
|
+
"getGuardiansThreshold()": {
|
|
76
|
+
"details": "Returns the guardian threshold The guardian threshold represents the minimum number of selection by guardians required for an address to start a recovery process"
|
|
77
|
+
},
|
|
78
|
+
"getRecoveryCounter()": {
|
|
79
|
+
"details": "Returns the current recovery counter When a recovery process is successfully finished the recovery counter is incremented"
|
|
80
|
+
},
|
|
81
|
+
"getRecoverySecretHash()": {
|
|
82
|
+
"details": "Returns the recovery secret hash"
|
|
83
|
+
},
|
|
84
|
+
"initialize(address,address)": {
|
|
85
|
+
"params": {
|
|
86
|
+
"_owner": "The owner of the LSP11 contract",
|
|
87
|
+
"target_": "The address of the ER725 contract to recover"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"isGuardian(address)": {
|
|
91
|
+
"details": "Returns TRUE if the address provided is a guardian, FALSE otherwise",
|
|
92
|
+
"params": {
|
|
93
|
+
"_address": "The address to query"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"owner()": {
|
|
97
|
+
"details": "Returns the address of the current owner."
|
|
98
|
+
},
|
|
99
|
+
"recoverOwnership(address,string,bytes32)": {
|
|
100
|
+
"details": "Recovers the ownership permissions of an address in the linked target and increment the recover counter Requirements - the address of the recoverer must have a selection equal or higher than the threshold defined in `getGuardiansThreshold(...)` - must have provided the right `plainSecret` that produces the secret Hash",
|
|
101
|
+
"params": {
|
|
102
|
+
"newHash": "The new secret Hash to be used in the next recovery process",
|
|
103
|
+
"plainSecret": "The secret word that produce the secret Hash",
|
|
104
|
+
"recoverer": "The address of the recoverer"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"removeGuardian(address)": {
|
|
108
|
+
"details": "Removes a guardian of the targetCan be called only by the owner",
|
|
109
|
+
"params": {
|
|
110
|
+
"currentGuardian": "The address of the existing guardian to remove Requirements: - The guardians count should be higher or equal to the guardain threshold"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"renounceOwnership()": {
|
|
114
|
+
"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."
|
|
115
|
+
},
|
|
116
|
+
"selectNewController(address)": {
|
|
117
|
+
"details": "select an address to be a potentiel controller address if he reaches the guardian threshold and provide the correct secret string Requirements: - only guardians can select an address",
|
|
118
|
+
"params": {
|
|
119
|
+
"addressSelected": "The address selected by the guardian"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"setGuardiansThreshold(uint256)": {
|
|
123
|
+
"details": "Sets the minimum number of selection by the guardians required so that an address can recover ownershipCan be called only by the owner",
|
|
124
|
+
"params": {
|
|
125
|
+
"guardiansThreshold": "The threshold to set Requirements: - `guardiansThreshold` cannot be more than the guardians count."
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"setRecoverySecretHash(bytes32)": {
|
|
129
|
+
"details": "Throws if hash provided is bytes32(0)",
|
|
130
|
+
"params": {
|
|
131
|
+
"newRecoverSecretHash": "The hash of the secret string Requirements: - `secretHash` cannot be bytes32(0)"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"supportsInterface(bytes4)": {
|
|
135
|
+
"details": "See {IERC165-supportsInterface}."
|
|
136
|
+
},
|
|
137
|
+
"target()": {
|
|
138
|
+
"details": "The address of an ERC725 contract where we want to recover and set permissions for a controller address"
|
|
139
|
+
},
|
|
140
|
+
"transferOwnership(address)": {
|
|
141
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"title": "Deployable Proxy Implementation of LSP11 - Basic Social Recovery standard",
|
|
145
|
+
"version": 1
|
|
146
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"details": "UniversalFactory contract can be used to deploy normal or minimal proxy contracts (EIP-1167) using CREATE2. This gives the ability to deploy the same contract at the same address on different chains. If the contract has a constructor, the arguments will be part of the bytecode If the contract has an `initialize` function, the parameters of this function will be included in the salt to ensure that the parameters of the contract should be the same on each chain. When initializeCallData or the constructor includes non-crosschain parameters, the deployed contract will not be recreated at the same address on another network, thus defeating the purpose of LSP16UniversalFactory. Therefore, the initializeCallData and the constructor must not include any network-specific parameters, such as a local non-crosschain token contract address, chain-id, etc .. One way to solve this problem is to set an EOA owner in the initializeCallData/constructor that can later call functions that set these parameters as variables in the contract. This contract should be deployed using Nick's Method. More information: https://weka.medium.com/how-to-send-ether-to-11-440-people-187e332566b7",
|
|
3
|
+
"errors": {
|
|
4
|
+
"CannotInitializeContract()": [
|
|
5
|
+
{
|
|
6
|
+
"details": "reverts with this error when there is no revert reason bubbled up by the target contract when initializing"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"InvalidMsgValueDistribution()": [
|
|
10
|
+
{
|
|
11
|
+
"details": "reverts when msg.value sent to {deployCreate2Init} function is not equal to the sum of the `initializeCalldataMsgValue` and `constructorMsgValue`"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"events": {
|
|
16
|
+
"ContractCreated(address,bytes32,bool,bytes)": {
|
|
17
|
+
"details": "Emitted whenever a contract is created",
|
|
18
|
+
"params": {
|
|
19
|
+
"contractCreated": "The address of the contract created",
|
|
20
|
+
"initializable": "The Boolean that specifies if the contract is a initializable or not",
|
|
21
|
+
"initializeCalldata": "The bytes provided as initializeCalldata",
|
|
22
|
+
"providedSalt": "The bytes32 salt provided by the deployer"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"kind": "dev",
|
|
27
|
+
"methods": {
|
|
28
|
+
"calculateAddress(bytes32,bytes32,bool,bytes)": {
|
|
29
|
+
"details": "Returns the address where a contract will be stored if deployed via `CREATE2`. The address is constructed using the parameters below. Any change in one of them will result in a new destination address."
|
|
30
|
+
},
|
|
31
|
+
"calculateProxyAddress(address,bytes32,bool,bytes)": {
|
|
32
|
+
"details": "Returns the address of an EIP1167 proxy contract. The address is constructed using the parameters below. Any change in one of them will result in a new destination address."
|
|
33
|
+
},
|
|
34
|
+
"deployCreate2(bytes,bytes32)": {
|
|
35
|
+
"details": "Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {calculateAddress}. The salt is a hash of the `providedSalt` together with an empty byte, to prevent mimicing the `deployCreate2Init()` and other functions. This method allow users to have the same contracts at the same address across different chains with the same parameters. Using the same `byteCode` and salt multiple time will revert, since the contract cannot be deployed twice at the same address."
|
|
36
|
+
},
|
|
37
|
+
"deployCreate2Init(bytes,bytes32,bytes,uint256,uint256)": {
|
|
38
|
+
"details": "Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {calculateAddress}. The salt is a hash of the `providedSalt` and and the `initializeCallData`. This method allow users to have the same contracts at the same address across different chains with the same parameters. The msg.value is split according to the parameters of the function The msg.value sent to this contract MUST be the sum of the two parameters: `constructorMsgValue` and `initializeCalldataMsgValue` Using the same `byteCode` and salt multiple time will revert, since the contract cannot be deployed twice at the same address."
|
|
39
|
+
},
|
|
40
|
+
"deployCreate2Proxy(address,bytes32)": {
|
|
41
|
+
"details": "Deploys and returns the address of a clone that mimics the behaviour of `baseContract`. The address where the contract will be deployed can be known in advance via {calculateProxyAddress}. This function uses the CREATE2 opcode and a salt to deterministically deploy the clone. The salt is a hash of the `providedSalt` toegther with an empty byte, to prevent mimicing the `deployCreate2ProxyInit()` and other functions. This method allow users to have the same contracts at the same address across different chains with the same parameters. Using the same `baseContract` and salt multiple time will revert, since the clones cannot be deployed twice at the same address."
|
|
42
|
+
},
|
|
43
|
+
"deployCreate2ProxyInit(address,bytes32,bytes)": {
|
|
44
|
+
"details": "Deploys and returns the address of a clone that mimics the behaviour of `baseContract`. The address where the contract will be deployed can be known in advance via {calculateProxyAddress}. This function uses the CREATE2 opcode and a salt to deterministically deploy the clone. The salt is a hash of the `providedSalt` and and the `initializeCallData`. This method allow users to have the same contracts at the same address across different chains with the same parameters. Using the same `baseContract` and salt multiple time will revert, since the clones cannot be deployed twice at the same address."
|
|
45
|
+
},
|
|
46
|
+
"generateSalt(bool,bytes,bytes32)": {
|
|
47
|
+
"details": "Calculates the salt used to deploy the contract by hashing (Keccak256) the following parameters as packed encoded respectively: an initializable boolean, the initializeCallData if and only if the contract is initializable, and the salt provided by the deployer. The initializable boolean was added before the provided arguments as if it was not used, and we are deploying proxies on another chain, people can use the `deployCreate2(..)` function to deploy the same bytecode + the same salt to get the same address of the contract on another chain without applying the effect of initializing."
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"version": 1
|
|
51
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
|
|
3
|
+
"details": "This UniversalReceiverDelegate follows the {LSP1-UniversalReceiver} standards and is designed for LSP0ERC725Account contracts.Handles two cases: - Registers the address of received assets (exclusively LSP7 and LSP8) and vaults (exclusively LSP9) according to {LSP5-ReceivedAssets} and {LSP10-ReceivedVaults} respectively https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-5-ReceivedAssets.md https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-10-ReceivedVaults.md - Removes the address of registered assets and vaults when the full balance is sent from the LSP0ERC725Account contract Requirements: - The contract should be able to setData the LSP5 and LSP10 data Keys according to the logic of the owner of the LSP0ERC725Account. For example, for contracts that are owned by an LSP6KeyManager, this contract should be granted the SUPER/SETDATA and REENTRANCY Permission. Assets and Vaults that are compliant with this version of the UniversalReceiverDelegate are: - LSP7-DigitalAsset: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-7-DigitalAsset.md - LSP8-IdentifiableDigitalAsset: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-8-IdentifiableDigitalAsset.md - LSP9-Vault: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-9-Vault.md",
|
|
4
|
+
"errors": {
|
|
5
|
+
"CannotRegisterEOAsAsAssets(address)": [
|
|
6
|
+
{
|
|
7
|
+
"details": "reverts when EOA calls the `universalReceiver(..)` function with an asset/vault typeId",
|
|
8
|
+
"params": {
|
|
9
|
+
"caller": "The address of the EOA"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"InvalidLSP10ReceivedVaultsArrayLength(bytes,uint256)": [
|
|
14
|
+
{
|
|
15
|
+
"details": "reverts when the value stored under the 'LSP10ReceivedVaults[]' data key is not valid. The value stored under this data key should be exactly 16 bytes long. Only possible valid values are: - any valid uint128 values i.e. 0x00000000000000000000000000000000 (zero), meaning empty array, no vaults received. i.e. 0x00000000000000000000000000000005 (non-zero), meaning 5 array elements, 5 vaults received. - 0x (nothing stored under this data key, equivalent to empty array)",
|
|
16
|
+
"params": {
|
|
17
|
+
"invalidValueLength": "the invalid number of bytes stored under the LSP10ReceivedVaults[] data key (MUST be 16 bytes long)",
|
|
18
|
+
"invalidValueStored": "the invalid value stored under the LSP10ReceivedVaults[] data key"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"InvalidLSP5ReceivedAssetsArrayLength(bytes,uint256)": [
|
|
23
|
+
{
|
|
24
|
+
"details": "reverts when the value stored under the 'LSP5ReceivedAssets[]' data key is not valid. The value stored under this data key should be exactly 16 bytes long. Only possible valid values are: - any valid uint128 values i.e. 0x00000000000000000000000000000000 (zero), empty array, no assets received. i.e. 0x00000000000000000000000000000005 (non-zero), 5 array elements, 5 assets received. - 0x (nothing stored under this data key, equivalent to empty array)",
|
|
25
|
+
"params": {
|
|
26
|
+
"invalidValueLength": "the invalid number of bytes stored under the LSP5ReceivedAssets[] data key (MUST be exactly 16 bytes long)",
|
|
27
|
+
"invalidValueStored": "the invalid value stored under the LSP5ReceivedAssets[] data key"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"MaxLSP10VaultsCountReached(address)": [
|
|
32
|
+
{
|
|
33
|
+
"details": "reverts when the `LSP10Vaults[]` array reaches its maximum limit (max(uint128))",
|
|
34
|
+
"params": {
|
|
35
|
+
"notRegisteredVault": "the address of the vault that could not be registered"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"MaxLSP5ReceivedAssetsCountReached(address)": [
|
|
40
|
+
{
|
|
41
|
+
"details": "reverts when the `LSP5ReceivedAssets[]` array reaches its maximum limit (max(uint128))",
|
|
42
|
+
"params": {
|
|
43
|
+
"notRegisteredAsset": "the address of the asset that could not be registered"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"NativeTokensNotAccepted()": [
|
|
48
|
+
{
|
|
49
|
+
"details": "reverts when `universalReceiver(...)` is called with a value different than 0"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"ReceivedAssetsIndexSuperiorToUint128(uint256)": [
|
|
53
|
+
{
|
|
54
|
+
"details": "reverts when the received assets index is superior to uint128",
|
|
55
|
+
"params": {
|
|
56
|
+
"index": "the received assets index"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"VaultIndexSuperiorToUint128(uint256)": [
|
|
61
|
+
{
|
|
62
|
+
"details": "reverts when the vault index is superior to uint128",
|
|
63
|
+
"params": {
|
|
64
|
+
"index": "the vault index"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"kind": "dev",
|
|
70
|
+
"methods": {
|
|
71
|
+
"supportsInterface(bytes4)": {
|
|
72
|
+
"details": "See {IERC165-supportsInterface}."
|
|
73
|
+
},
|
|
74
|
+
"universalReceiver(bytes32,bytes)": {
|
|
75
|
+
"details": "Handles two cases: - Registers the address of received assets (exclusively LSP7 and LSP8) and vaults (exclusively LSP9) according to {LSP5-ReceivedAssets} and {LSP10-ReceivedVaults} respectively - Removes the address of registered assets and vaults when the full balance is sent from the LSP0ERC725Account contract Requirements: - The contract should be able to setData the LSP5 and LSP10 data Keys according to the logic of the owner of the LSP0ERC725Account. - Cannot accept native tokens"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"title": "Implementation of a UniversalReceiverDelegate for LSP0ERC725Account",
|
|
79
|
+
"version": 1
|
|
80
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
|
|
3
|
+
"details": "Delegate contract of the initial universal receiver",
|
|
4
|
+
"errors": {
|
|
5
|
+
"CannotRegisterEOAsAsAssets(address)": [
|
|
6
|
+
{
|
|
7
|
+
"details": "reverts when EOA calls the `universalReceiver(..)` function with an asset/vault typeId",
|
|
8
|
+
"params": {
|
|
9
|
+
"caller": "The address of the EOA"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"InvalidLSP5ReceivedAssetsArrayLength(bytes,uint256)": [
|
|
14
|
+
{
|
|
15
|
+
"details": "reverts when the value stored under the 'LSP5ReceivedAssets[]' data key is not valid. The value stored under this data key should be exactly 16 bytes long. Only possible valid values are: - any valid uint128 values i.e. 0x00000000000000000000000000000000 (zero), empty array, no assets received. i.e. 0x00000000000000000000000000000005 (non-zero), 5 array elements, 5 assets received. - 0x (nothing stored under this data key, equivalent to empty array)",
|
|
16
|
+
"params": {
|
|
17
|
+
"invalidValueLength": "the invalid number of bytes stored under the LSP5ReceivedAssets[] data key (MUST be exactly 16 bytes long)",
|
|
18
|
+
"invalidValueStored": "the invalid value stored under the LSP5ReceivedAssets[] data key"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"MaxLSP5ReceivedAssetsCountReached(address)": [
|
|
23
|
+
{
|
|
24
|
+
"details": "reverts when the `LSP5ReceivedAssets[]` array reaches its maximum limit (max(uint128))",
|
|
25
|
+
"params": {
|
|
26
|
+
"notRegisteredAsset": "the address of the asset that could not be registered"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"NativeTokensNotAccepted()": [
|
|
31
|
+
{
|
|
32
|
+
"details": "reverts when `universalReceiver(...)` is called with a value different than 0"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"ReceivedAssetsIndexSuperiorToUint128(uint256)": [
|
|
36
|
+
{
|
|
37
|
+
"details": "reverts when the received assets index is superior to uint128",
|
|
38
|
+
"params": {
|
|
39
|
+
"index": "the received assets index"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"kind": "dev",
|
|
45
|
+
"methods": {
|
|
46
|
+
"supportsInterface(bytes4)": {
|
|
47
|
+
"details": "See {IERC165-supportsInterface}."
|
|
48
|
+
},
|
|
49
|
+
"universalReceiver(bytes32,bytes)": {
|
|
50
|
+
"details": "allows to register arrayKeys and Map of incoming assets and remove after being sent",
|
|
51
|
+
"params": {
|
|
52
|
+
"data": "The arbitrary data received with the call",
|
|
53
|
+
"typeId": "The hash of a specific standard or a hook"
|
|
54
|
+
},
|
|
55
|
+
"returns": {
|
|
56
|
+
"result": "The return value"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"title": "Core Implementation of contract writing the received LSP7 and LSP8 assets into your Vault using the LSP5-ReceivedAsset standard and removing the sent assets.",
|
|
61
|
+
"version": 1
|
|
62
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Matthew Stevens",
|
|
3
|
+
"details": "LSP4 extension, for compatibility with clients & tools that expect ERC20/721.",
|
|
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
|
+
},
|
|
21
|
+
"kind": "dev",
|
|
22
|
+
"methods": {
|
|
23
|
+
"getData(bytes32)": {
|
|
24
|
+
"params": {
|
|
25
|
+
"dataKey": "The key which value to retrieve"
|
|
26
|
+
},
|
|
27
|
+
"returns": {
|
|
28
|
+
"dataValue": "The data stored at the key"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"getDataBatch(bytes32[])": {
|
|
32
|
+
"params": {
|
|
33
|
+
"dataKeys": "The array of keys which values to retrieve"
|
|
34
|
+
},
|
|
35
|
+
"returns": {
|
|
36
|
+
"dataValues": "The array of data stored at multiple keys"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"name()": {
|
|
40
|
+
"details": "Returns the name of the token.",
|
|
41
|
+
"returns": {
|
|
42
|
+
"_0": "The name of the token"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"owner()": {
|
|
46
|
+
"details": "Returns the address of the current owner."
|
|
47
|
+
},
|
|
48
|
+
"renounceOwnership()": {
|
|
49
|
+
"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."
|
|
50
|
+
},
|
|
51
|
+
"setData(bytes32,bytes)": {
|
|
52
|
+
"params": {
|
|
53
|
+
"dataKey": "The key to retrieve stored value",
|
|
54
|
+
"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."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"setDataBatch(bytes32[],bytes[])": {
|
|
58
|
+
"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.",
|
|
59
|
+
"params": {
|
|
60
|
+
"dataKeys": "The array of data keys for values to set",
|
|
61
|
+
"dataValues": "The array of values to set"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"supportsInterface(bytes4)": {
|
|
65
|
+
"details": "See {IERC165-supportsInterface}."
|
|
66
|
+
},
|
|
67
|
+
"symbol()": {
|
|
68
|
+
"details": "Returns the symbol of the token, usually a shorter version of the name.",
|
|
69
|
+
"returns": {
|
|
70
|
+
"_0": "The symbol of the token"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"transferOwnership(address)": {
|
|
74
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"title": "LSP4Compatibility",
|
|
78
|
+
"version": 1
|
|
79
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Matthew Stevens",
|
|
3
|
+
"details": "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
|
+
},
|
|
31
|
+
"kind": "dev",
|
|
32
|
+
"methods": {
|
|
33
|
+
"constructor": {
|
|
34
|
+
"params": {
|
|
35
|
+
"name_": "The name of the token",
|
|
36
|
+
"newOwner_": "The owner of the token contract",
|
|
37
|
+
"symbol_": "The symbol of the token"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"getData(bytes32)": {
|
|
41
|
+
"params": {
|
|
42
|
+
"dataKey": "The key which value to retrieve"
|
|
43
|
+
},
|
|
44
|
+
"returns": {
|
|
45
|
+
"dataValue": "The data stored at the key"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"getDataBatch(bytes32[])": {
|
|
49
|
+
"params": {
|
|
50
|
+
"dataKeys": "The array of keys which values to retrieve"
|
|
51
|
+
},
|
|
52
|
+
"returns": {
|
|
53
|
+
"dataValues": "The array of data stored at multiple keys"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"owner()": {
|
|
57
|
+
"details": "Returns the address of the current owner."
|
|
58
|
+
},
|
|
59
|
+
"renounceOwnership()": {
|
|
60
|
+
"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."
|
|
61
|
+
},
|
|
62
|
+
"setData(bytes32,bytes)": {
|
|
63
|
+
"params": {
|
|
64
|
+
"dataKey": "The key to retrieve stored value",
|
|
65
|
+
"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."
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"setDataBatch(bytes32[],bytes[])": {
|
|
69
|
+
"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.",
|
|
70
|
+
"params": {
|
|
71
|
+
"dataKeys": "The array of data keys for values to set",
|
|
72
|
+
"dataValues": "The array of values to set"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"supportsInterface(bytes4)": {
|
|
76
|
+
"details": "See {IERC165-supportsInterface}."
|
|
77
|
+
},
|
|
78
|
+
"transferOwnership(address)": {
|
|
79
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"title": "LSP4DigitalAssetMetadata",
|
|
83
|
+
"version": 1
|
|
84
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Matthew Stevens",
|
|
3
|
+
"details": "Inheritable 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
|
+
},
|
|
31
|
+
"kind": "dev",
|
|
32
|
+
"methods": {
|
|
33
|
+
"getData(bytes32)": {
|
|
34
|
+
"params": {
|
|
35
|
+
"dataKey": "The key which value to retrieve"
|
|
36
|
+
},
|
|
37
|
+
"returns": {
|
|
38
|
+
"dataValue": "The data stored at the key"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"getDataBatch(bytes32[])": {
|
|
42
|
+
"params": {
|
|
43
|
+
"dataKeys": "The array of keys which values to retrieve"
|
|
44
|
+
},
|
|
45
|
+
"returns": {
|
|
46
|
+
"dataValues": "The array of data stored at multiple keys"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"owner()": {
|
|
50
|
+
"details": "Returns the address of the current owner."
|
|
51
|
+
},
|
|
52
|
+
"renounceOwnership()": {
|
|
53
|
+
"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."
|
|
54
|
+
},
|
|
55
|
+
"setData(bytes32,bytes)": {
|
|
56
|
+
"params": {
|
|
57
|
+
"dataKey": "The key to retrieve stored value",
|
|
58
|
+
"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."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"setDataBatch(bytes32[],bytes[])": {
|
|
62
|
+
"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.",
|
|
63
|
+
"params": {
|
|
64
|
+
"dataKeys": "The array of data keys for values to set",
|
|
65
|
+
"dataValues": "The array of values to set"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"supportsInterface(bytes4)": {
|
|
69
|
+
"details": "See {IERC165-supportsInterface}."
|
|
70
|
+
},
|
|
71
|
+
"transferOwnership(address)": {
|
|
72
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"title": "LSP4DigitalAssetMetadata",
|
|
76
|
+
"version": 1
|
|
77
|
+
}
|