@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
package/common/constants.js
DELETED
|
@@ -1,789 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Set of constants values as defined in each LUKSO Standards Proposals (LSPs).
|
|
4
|
-
* @see https://github.com/lukso-network/LIPs/tree/main/LSPs
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.EventSignatures = exports.Errors = exports.LSP1_TYPE_IDS = exports.PERMISSIONS = exports.ALL_PERMISSIONS = exports.CALLTYPE = exports.LSP6_VERSION = exports.ERC725YDataKeys = exports.SupportedStandards = exports.OPERATION_TYPES = exports.ERC1271_VALUES = exports.INTERFACE_IDS = void 0;
|
|
8
|
-
// ERC165
|
|
9
|
-
// ---------
|
|
10
|
-
/**
|
|
11
|
-
* @dev ERC165 interface IDs for the LSP interface standards + some backward compatible ERC token standards.
|
|
12
|
-
* These `bytes4` values can be used to detect if a contract implements a specific interface
|
|
13
|
-
* with `supportsInterface(interfaceId)`.
|
|
14
|
-
*/
|
|
15
|
-
exports.INTERFACE_IDS = {
|
|
16
|
-
ERC165: "0x01ffc9a7",
|
|
17
|
-
ERC1271: "0x1626ba7e",
|
|
18
|
-
ERC20: "0x36372b07",
|
|
19
|
-
ERC223: "0x87d43052",
|
|
20
|
-
ERC721: "0x80ac58cd",
|
|
21
|
-
ERC721Metadata: "0x5b5e139f",
|
|
22
|
-
ERC777: "0xe58e113c",
|
|
23
|
-
ERC1155: "0xd9b67a26",
|
|
24
|
-
ERC725X: "0x570ef073",
|
|
25
|
-
ERC725Y: "0x714df77c",
|
|
26
|
-
LSP0ERC725Account: "0x0f15a0af",
|
|
27
|
-
LSP1UniversalReceiver: "0x6bb56a14",
|
|
28
|
-
LSP6KeyManager: "0xfb437414",
|
|
29
|
-
LSP7DigitalAsset: "0xda1f85e4",
|
|
30
|
-
LSP8IdentifiableDigitalAsset: "0x622e7a01",
|
|
31
|
-
LSP9Vault: "0x19331ad1",
|
|
32
|
-
LSP11BasicSocialRecovery: "0x049a28f1",
|
|
33
|
-
LSP14Ownable2Step: "0x94be5999",
|
|
34
|
-
LSP17Extendable: "0xa918fa6b",
|
|
35
|
-
LSP17Extension: "0xcee78b40",
|
|
36
|
-
};
|
|
37
|
-
// ERC1271
|
|
38
|
-
// ----------
|
|
39
|
-
/**
|
|
40
|
-
* @dev values returned by the `isValidSignature` function of the ERC1271 standard.
|
|
41
|
-
* Can be used to check if a signature is valid or not.
|
|
42
|
-
*/
|
|
43
|
-
exports.ERC1271_VALUES = {
|
|
44
|
-
MAGIC_VALUE: "0x1626ba7e",
|
|
45
|
-
FAIL_VALUE: "0xffffffff",
|
|
46
|
-
};
|
|
47
|
-
// ERC725X
|
|
48
|
-
// ----------
|
|
49
|
-
/**
|
|
50
|
-
* @dev list of ERC725X operation types.
|
|
51
|
-
* @see https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md#execute
|
|
52
|
-
*/
|
|
53
|
-
exports.OPERATION_TYPES = {
|
|
54
|
-
CALL: 0,
|
|
55
|
-
CREATE: 1,
|
|
56
|
-
CREATE2: 2,
|
|
57
|
-
STATICCALL: 3,
|
|
58
|
-
DELEGATECALL: 4,
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* @dev list of ERC725Y keys from the LSP standards.
|
|
62
|
-
* Can be used to detect if a contract implements a specific LSP Metadata standard
|
|
63
|
-
* and contain a set of pre-defined ERC725Y Data Keys.
|
|
64
|
-
*/
|
|
65
|
-
exports.SupportedStandards = {
|
|
66
|
-
LSP3UniversalProfile: {
|
|
67
|
-
key: "0xeafec4d89fa9619884b60000abe425d64acd861a49b8ddf5c0b6962110481f38",
|
|
68
|
-
value: "0xabe425d6",
|
|
69
|
-
},
|
|
70
|
-
LSP4DigitalAsset: {
|
|
71
|
-
key: "0xeafec4d89fa9619884b60000a4d96624a38f7ac2d8d9a604ecf07c12c77e480c",
|
|
72
|
-
value: "0xa4d96624",
|
|
73
|
-
},
|
|
74
|
-
LSP9Vault: {
|
|
75
|
-
key: "0xeafec4d89fa9619884b600007c0334a14085fefa8b51ae5a40895018882bdb90",
|
|
76
|
-
value: "0x7c0334a1",
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* @dev list of ERC725Y Metadata keys from the LSP standards.
|
|
81
|
-
* @see https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md
|
|
82
|
-
*/
|
|
83
|
-
exports.ERC725YDataKeys = {
|
|
84
|
-
LSP1: {
|
|
85
|
-
// bytes10(keccak256('LSP1UniversalReceiverDelegate')) + bytes2(0)
|
|
86
|
-
LSP1UniversalReceiverDelegatePrefix: "0x0cfc51aec37c55a4d0b10000",
|
|
87
|
-
// keccak256('LSP1UniversalReceiverDelegate')
|
|
88
|
-
LSP1UniversalReceiverDelegate: "0x0cfc51aec37c55a4d0b1a65c6255c4bf2fbdf6277f3cc0730c45b828b6db8b47",
|
|
89
|
-
},
|
|
90
|
-
LSP3: {
|
|
91
|
-
SupportedStandards_LSP3: exports.SupportedStandards.LSP3UniversalProfile.key,
|
|
92
|
-
// keccak256('LSP3Profile')
|
|
93
|
-
LSP3Profile: "0x5ef83ad9559033e6e941db7d7c495acdce616347d28e90c7ce47cbfcfcad3bc5",
|
|
94
|
-
},
|
|
95
|
-
LSP4: {
|
|
96
|
-
SupportedStandards_LSP4: exports.SupportedStandards.LSP4DigitalAsset.key,
|
|
97
|
-
// keccak256('LSP4TokenName')
|
|
98
|
-
LSP4TokenName: "0xdeba1e292f8ba88238e10ab3c7f88bd4be4fac56cad5194b6ecceaf653468af1",
|
|
99
|
-
// keccak256('LSP4TokenSymbol')
|
|
100
|
-
LSP4TokenSymbol: "0x2f0a68ab07768e01943a599e73362a0e17a63a72e94dd2e384d2c1d4db932756",
|
|
101
|
-
// keccak256('LSP4Metadata')
|
|
102
|
-
LSP4Metadata: "0x9afb95cacc9f95858ec44aa8c3b685511002e30ae54415823f406128b85b238e",
|
|
103
|
-
// LSP4CreatorsMap:<address> + bytes2(0)
|
|
104
|
-
LSP4CreatorsMap: "0x6de85eaf5d982b4e5da00000",
|
|
105
|
-
// keccak256('"LSP4Creators[]')
|
|
106
|
-
"LSP4Creators[]": {
|
|
107
|
-
length: "0x114bd03b3a46d48759680d81ebb2b414fda7d030a7105a851867accf1c2352e7",
|
|
108
|
-
index: "0x114bd03b3a46d48759680d81ebb2b414",
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
LSP5: {
|
|
112
|
-
// LSP5ReceivedAssetsMap:<address> + bytes2(0)
|
|
113
|
-
LSP5ReceivedAssetsMap: "0x812c4334633eb816c80d0000",
|
|
114
|
-
// keccak256('LSP5ReceivedAssets[]')
|
|
115
|
-
"LSP5ReceivedAssets[]": {
|
|
116
|
-
length: "0x6460ee3c0aac563ccbf76d6e1d07bada78e3a9514e6382b736ed3f478ab7b90b",
|
|
117
|
-
index: "0x6460ee3c0aac563ccbf76d6e1d07bada",
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
LSP6: {
|
|
121
|
-
// keccak256('AddressPermissions[]')
|
|
122
|
-
"AddressPermissions[]": {
|
|
123
|
-
length: "0xdf30dba06db6a30e65354d9a64c609861f089545ca58c6b4dbe31a5f338cb0e3",
|
|
124
|
-
index: "0xdf30dba06db6a30e65354d9a64c60986",
|
|
125
|
-
},
|
|
126
|
-
AddressPermissionsPrefix: "0x4b80742de2bf",
|
|
127
|
-
// AddressPermissions:Permissions:<address> + bytes2(0)
|
|
128
|
-
"AddressPermissions:Permissions": "0x4b80742de2bf82acb3630000",
|
|
129
|
-
// AddressPermissions:AllowedERC725YDataKeys:<address> + bytes2(0)
|
|
130
|
-
"AddressPermissions:AllowedERC725YDataKeys": "0x4b80742de2bf866c29110000",
|
|
131
|
-
// AddressPermissions:AllowedCalls:<address> + bytes2(0)
|
|
132
|
-
"AddressPermissions:AllowedCalls": "0x4b80742de2bf393a64c70000",
|
|
133
|
-
},
|
|
134
|
-
LSP9: {
|
|
135
|
-
SupportedStandards_LSP9: exports.SupportedStandards.LSP9Vault.key,
|
|
136
|
-
},
|
|
137
|
-
LSP10: {
|
|
138
|
-
// keccak256('LSP10VaultsMap') + bytes2(0)
|
|
139
|
-
LSP10VaultsMap: "0x192448c3c0f88c7f238c0000",
|
|
140
|
-
// keccak256('LSP10Vaults[]')
|
|
141
|
-
"LSP10Vaults[]": {
|
|
142
|
-
length: "0x55482936e01da86729a45d2b87a6b1d3bc582bea0ec00e38bdb340e3af6f9f06",
|
|
143
|
-
index: "0x55482936e01da86729a45d2b87a6b1d3",
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
LSP12: {
|
|
147
|
-
// LSP12IssuedAssetsMap:<address> + bytes2(0)
|
|
148
|
-
LSP12IssuedAssetsMap: "0x74ac2555c10b9349e78f0000",
|
|
149
|
-
// keccak256('LSP12IssuedAssets[]')
|
|
150
|
-
"LSP12IssuedAssets[]": {
|
|
151
|
-
length: "0x7c8c3416d6cda87cd42c71ea1843df28ac4850354f988d55ee2eaa47b6dc05cd",
|
|
152
|
-
index: "0x7c8c3416d6cda87cd42c71ea1843df28",
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
LSP17: {
|
|
156
|
-
// bytes10(keccak256('LSP17Extension')) + bytes2(0)
|
|
157
|
-
LSP17ExtensionPrefix: "0xcee78b4094da860110960000",
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
// LSP6
|
|
161
|
-
// ----------
|
|
162
|
-
/**
|
|
163
|
-
* @dev LSP6 version number for signing `executeRelayCall(...)` transaction using EIP191
|
|
164
|
-
* @see for details see: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-6-KeyManager.md#executerelaycall
|
|
165
|
-
*/
|
|
166
|
-
exports.LSP6_VERSION = 6;
|
|
167
|
-
/**
|
|
168
|
-
* @dev The types of calls for AllowedCalls
|
|
169
|
-
*/
|
|
170
|
-
exports.CALLTYPE = {
|
|
171
|
-
VALUE: "0x00000001",
|
|
172
|
-
WRITE: "0x00000002",
|
|
173
|
-
READ: "0x00000004",
|
|
174
|
-
EXECUTE: "0x00000008", // DELEGATE CALL
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* @dev `bytes32` hex value for all the LSP6 permissions excluding REENTRANCY, DELEGATECALL and SUPER_DELEGATECALL for security (these should be set manually)
|
|
178
|
-
*/
|
|
179
|
-
exports.ALL_PERMISSIONS = "0x00000000000000000000000000000000000000000000000000000000003f3f7f";
|
|
180
|
-
/**
|
|
181
|
-
* @dev List of `bytes32` permissions from LSP6 Key Manager Standard
|
|
182
|
-
*/
|
|
183
|
-
// prettier-ignore
|
|
184
|
-
exports.PERMISSIONS = {
|
|
185
|
-
CHANGEOWNER: "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
186
|
-
ADDCONTROLLER: "0x0000000000000000000000000000000000000000000000000000000000000002",
|
|
187
|
-
EDITPERMISSIONS: "0x0000000000000000000000000000000000000000000000000000000000000004",
|
|
188
|
-
ADDEXTENSIONS: "0x0000000000000000000000000000000000000000000000000000000000000008",
|
|
189
|
-
CHANGEEXTENSIONS: "0x0000000000000000000000000000000000000000000000000000000000000010",
|
|
190
|
-
ADDUNIVERSALRECEIVERDELEGATE: "0x0000000000000000000000000000000000000000000000000000000000000020",
|
|
191
|
-
CHANGEUNIVERSALRECEIVERDELEGATE: "0x0000000000000000000000000000000000000000000000000000000000000040",
|
|
192
|
-
REENTRANCY: "0x0000000000000000000000000000000000000000000000000000000000000080",
|
|
193
|
-
SUPER_TRANSFERVALUE: "0x0000000000000000000000000000000000000000000000000000000000000100",
|
|
194
|
-
TRANSFERVALUE: "0x0000000000000000000000000000000000000000000000000000000000000200",
|
|
195
|
-
SUPER_CALL: "0x0000000000000000000000000000000000000000000000000000000000000400",
|
|
196
|
-
CALL: "0x0000000000000000000000000000000000000000000000000000000000000800",
|
|
197
|
-
SUPER_STATICCALL: "0x0000000000000000000000000000000000000000000000000000000000001000",
|
|
198
|
-
STATICCALL: "0x0000000000000000000000000000000000000000000000000000000000002000",
|
|
199
|
-
SUPER_DELEGATECALL: "0x0000000000000000000000000000000000000000000000000000000000004000",
|
|
200
|
-
DELEGATECALL: "0x0000000000000000000000000000000000000000000000000000000000008000",
|
|
201
|
-
DEPLOY: "0x0000000000000000000000000000000000000000000000000000000000010000",
|
|
202
|
-
SUPER_SETDATA: "0x0000000000000000000000000000000000000000000000000000000000020000",
|
|
203
|
-
SETDATA: "0x0000000000000000000000000000000000000000000000000000000000040000",
|
|
204
|
-
ENCRYPT: "0x0000000000000000000000000000000000000000000000000000000000080000",
|
|
205
|
-
DECRYPT: "0x0000000000000000000000000000000000000000000000000000000000100000",
|
|
206
|
-
SIGN: "0x0000000000000000000000000000000000000000000000000000000000200000",
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* @dev list of standard type IDs ("hooks") defined in the LSPs that can be used to notify
|
|
210
|
-
* a LSP1 compliant contract about certain type of transactions or information
|
|
211
|
-
* (e.g: token transfer, vault transfer, ownership transfer, etc...)
|
|
212
|
-
*/
|
|
213
|
-
exports.LSP1_TYPE_IDS = {
|
|
214
|
-
// keccak256('LSP0OwnershipTransferStarted')
|
|
215
|
-
LSP0OwnershipTransferStarted: "0xe17117c9d2665d1dbeb479ed8058bbebde3c50ac50e2e65619f60006caac6926",
|
|
216
|
-
// keccak256('LSP0OwnershipTransferred_SenderNotification')
|
|
217
|
-
LSP0OwnershipTransferred_SenderNotification: "0xa4e59c931d14f7c8a7a35027f92ee40b5f2886b9fdcdb78f30bc5ecce5a2f814",
|
|
218
|
-
// keccak256('LSP0OwnershipTransferred_RecipientNotification')
|
|
219
|
-
LSP0OwnershipTransferred_RecipientNotification: "0xceca317f109c43507871523e82dc2a3cc64dfa18f12da0b6db14f6e23f995538",
|
|
220
|
-
// keccak256('LSP7Tokens_SenderNotification')
|
|
221
|
-
LSP7Tokens_SenderNotification: "0x429ac7a06903dbc9c13dfcb3c9d11df8194581fa047c96d7a4171fc7402958ea",
|
|
222
|
-
// keccak256('LSP7Tokens_RecipientNotification')
|
|
223
|
-
LSP7Tokens_RecipientNotification: "0x20804611b3e2ea21c480dc465142210acf4a2485947541770ec1fb87dee4a55c",
|
|
224
|
-
// keccak256('LSP8Tokens_SenderNotification')
|
|
225
|
-
LSP8Tokens_SenderNotification: "0xb23eae7e6d1564b295b4c3e3be402d9a2f0776c57bdf365903496f6fa481ab00",
|
|
226
|
-
// keccak256('LSP8Tokens_RecipientNotification')
|
|
227
|
-
LSP8Tokens_RecipientNotification: "0x0b084a55ebf70fd3c06fd755269dac2212c4d3f0f4d09079780bfa50c1b2984d",
|
|
228
|
-
// keccak256('LSP9OwnershipTransferStarted')
|
|
229
|
-
LSP9OwnershipTransferStarted: "0xaefd43f45fed1bcd8992f23c803b6f4ec45cf6b62b0d404d565f290a471e763f",
|
|
230
|
-
// keccak256('LSP9OwnershipTransferred_SenderNotification')
|
|
231
|
-
LSP9OwnershipTransferred_SenderNotification: "0x0c622e58e6b7089ae35f1af1c86d997be92fcdd8c9509652022d41aa65169471",
|
|
232
|
-
// keccak256('LSP9OwnershipTransferred_RecipientNotification')
|
|
233
|
-
LSP9OwnershipTransferred_RecipientNotification: "0x79855c97dbc259ce395421d933d7bc0699b0f1561f988f09a9e8633fd542fe5c",
|
|
234
|
-
// keccak256('LSP14OwnershipTransferStarted')
|
|
235
|
-
LSP14OwnershipTransferStarted: "0xee9a7c0924f740a2ca33d59b7f0c2929821ea9837ce043ce91c1823e9c4e52c0",
|
|
236
|
-
// keccak256('LSP14OwnershipTransferred_SenderNotification')
|
|
237
|
-
LSP14OwnershipTransferred_SenderNotification: "0xa124442e1cc7b52d8e2ede2787d43527dc1f3ae0de87f50dd03e27a71834f74c",
|
|
238
|
-
// keccak256('LSP14OwnershipTransferred_RecipientNotification')
|
|
239
|
-
LSP14OwnershipTransferred_RecipientNotification: "0xe32c7debcb817925ba4883fdbfc52797187f28f73f860641dab1a68d9b32902c",
|
|
240
|
-
};
|
|
241
|
-
exports.Errors = {
|
|
242
|
-
LSP1: {
|
|
243
|
-
"0xa5295345": {
|
|
244
|
-
error: "CannotRegisterEOAsAsAssets(address)",
|
|
245
|
-
message: "LSP1: EOAs cannot call the UniversalReceiverDelegate with asset/vault typeIds",
|
|
246
|
-
},
|
|
247
|
-
"0x4c5e815a": {
|
|
248
|
-
error: "CallerNotLSP6LinkedTarget(address,address)",
|
|
249
|
-
message: "LSP1: Cannot write received vaults/assets on address other than the caller",
|
|
250
|
-
},
|
|
251
|
-
"0x114b721a": {
|
|
252
|
-
error: "NativeTokensNotAccepted()",
|
|
253
|
-
message: "LSP1: Cannot send native tokens to the UniversalReceiverDelegate",
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
LSP4: {
|
|
257
|
-
"0x85c169bd": {
|
|
258
|
-
error: "LSP4TokenNameNotEditable()",
|
|
259
|
-
message: "LSP4: Token name cannot be edited",
|
|
260
|
-
},
|
|
261
|
-
"0x76755b38": {
|
|
262
|
-
error: "LSP4TokenSymbolNotEditable()",
|
|
263
|
-
message: "LSP4: Token symbol cannot be edited",
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
LSP5: {
|
|
267
|
-
"0xecba7af8": {
|
|
268
|
-
error: "InvalidLSP5ReceivedAssetsArrayLength(bytes,uint256)",
|
|
269
|
-
message: "LSP5: Invalid value for `LSP5ReceivedAssets[]` (array length)",
|
|
270
|
-
},
|
|
271
|
-
"0xe8a4fba": {
|
|
272
|
-
error: "ReceivedAssetsIndexSuperiorToUint128(uint256)",
|
|
273
|
-
message: "LSP5: The index of the received assets cannot be registered if superior to uint128",
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
LSP6: {
|
|
277
|
-
"0xf292052a": {
|
|
278
|
-
error: "NoPermissionsSet(address)",
|
|
279
|
-
message: "LSP6: No permissions are set for this address.",
|
|
280
|
-
},
|
|
281
|
-
"0x3bdad6e6": {
|
|
282
|
-
error: "NotAuthorised(address,string)",
|
|
283
|
-
message: "LSP6: Not authorized (missing permission).",
|
|
284
|
-
},
|
|
285
|
-
"0x45147bce": {
|
|
286
|
-
error: "NotAllowedCall(address,address,bytes4)",
|
|
287
|
-
message: "LSP6: not authorised to interact with `to` with the provided data payload (standard, address or function of `to` not authorised).",
|
|
288
|
-
},
|
|
289
|
-
"0x557ae079": {
|
|
290
|
-
error: "NotAllowedERC725YDataKey(address,bytes32)",
|
|
291
|
-
message: "LSP6: not allowed to set the ERC725Y data key.",
|
|
292
|
-
},
|
|
293
|
-
"0x0f7d735b": {
|
|
294
|
-
error: "NotRecognisedPermissionKey(bytes32)",
|
|
295
|
-
message: "LSP6: could not recognise the permission data key being set.",
|
|
296
|
-
},
|
|
297
|
-
"0xfc854579": {
|
|
298
|
-
error: "InvalidLSP6Target()",
|
|
299
|
-
message: "LSP6: cannot linked the Key Manager to address(0).",
|
|
300
|
-
},
|
|
301
|
-
"0xc9bd9eb9": {
|
|
302
|
-
error: "InvalidRelayNonce(address,uint256,bytes)",
|
|
303
|
-
message: "LSP6: invalid nonce provided for signer address",
|
|
304
|
-
},
|
|
305
|
-
"0x2ba8851c": {
|
|
306
|
-
error: "InvalidERC725Function(bytes4)",
|
|
307
|
-
message: "LSP6: unknown or invalid ERC725 function selector",
|
|
308
|
-
},
|
|
309
|
-
"0xed7fa509": {
|
|
310
|
-
error: "NoERC725YDataKeysAllowed(address)",
|
|
311
|
-
message: "LSP6: caller has no AllowedERC725YDataKeys",
|
|
312
|
-
},
|
|
313
|
-
"0xae6cbd37": {
|
|
314
|
-
error: "InvalidEncodedAllowedERC725YDataKeys(bytes,string)",
|
|
315
|
-
message: "LSP6: Invalid Encoding for the Compact Bytes Array of Allowed ERC725Y Data Keys.",
|
|
316
|
-
},
|
|
317
|
-
"0x8f4afa38": {
|
|
318
|
-
error: "AddressPermissionArrayIndexValueNotAnAddress(bytes32,bytes)",
|
|
319
|
-
message: "LSP6: value provided for AddressPermission[index] is not an address.",
|
|
320
|
-
},
|
|
321
|
-
"0x55a187db": {
|
|
322
|
-
error: "BatchExecuteParamsLengthMismatch()",
|
|
323
|
-
message: "LSP6: different number of elements for each array parameters in batch `execute(uint256[],bytes[])`",
|
|
324
|
-
},
|
|
325
|
-
"0xb4d50d21": {
|
|
326
|
-
error: "BatchExecuteRelayCallParamsLengthMismatch()",
|
|
327
|
-
message: "LSP6: different number of elements for each array parameters in batch `executeRelayCall(bytes[],uint256[],bytes[])`",
|
|
328
|
-
},
|
|
329
|
-
"0x30a324ac": {
|
|
330
|
-
error: "LSP6BatchInsufficientValueSent(uint256,uint256)",
|
|
331
|
-
message: "LSP6: `msg.value` sent is not enough to cover all the combined `values[]`.",
|
|
332
|
-
},
|
|
333
|
-
"0xa51868b6": {
|
|
334
|
-
error: "LSP6BatchExcessiveValueSent(uint256,uint256)",
|
|
335
|
-
message: "LSP6: cannot send more `msg.value` than all the combined `values[]`.",
|
|
336
|
-
},
|
|
337
|
-
"0x6cb60587": {
|
|
338
|
-
error: "NoCallsAllowed(address)",
|
|
339
|
-
message: "LSP6: No calls allowed for the provided address",
|
|
340
|
-
},
|
|
341
|
-
"0x6fd203c5": {
|
|
342
|
-
error: "InvalidWhitelistedCall(address)",
|
|
343
|
-
message: "LSP6: LSP6: Not allowed to whitelist all calls in AllowedCalls.",
|
|
344
|
-
},
|
|
345
|
-
"0x80d6ebae": {
|
|
346
|
-
error: "DelegateCallDisallowedViaKeyManager()",
|
|
347
|
-
message: "LSP6: DelegateCall is disallowed via the Key Manager",
|
|
348
|
-
},
|
|
349
|
-
"0x3621bbcc": {
|
|
350
|
-
error: "InvalidPayload(bytes)",
|
|
351
|
-
message: "LSP6: Invalid Payload",
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
LSP7: {
|
|
355
|
-
"0x08d47949": {
|
|
356
|
-
error: "LSP7AmountExceedsBalance(uint256,address,uint256)",
|
|
357
|
-
message: "LSP7: token amount exceeds sender's balance.",
|
|
358
|
-
},
|
|
359
|
-
"0xf3a6b691": {
|
|
360
|
-
error: "LSP7AmountExceedsAuthorizedAmount(address,uint256,address,uint256)",
|
|
361
|
-
message: "LSP7: token amount exceeds operator's allowance.",
|
|
362
|
-
},
|
|
363
|
-
"0x6355e766": {
|
|
364
|
-
error: "LSP7CannotUseAddressZeroAsOperator()",
|
|
365
|
-
message: "LSP7: cannot authorize address(0) as operator for LSP7 token.",
|
|
366
|
-
},
|
|
367
|
-
"0xd2d5ec30": {
|
|
368
|
-
error: "LSP7CannotSendWithAddressZero()",
|
|
369
|
-
message: "LSP7: cannot send token with address(0).",
|
|
370
|
-
},
|
|
371
|
-
"0xb9afb000": {
|
|
372
|
-
error: "LSP7CannotSendToSelf()",
|
|
373
|
-
message: "LSP7: `from` and `to` address cannot be the same",
|
|
374
|
-
},
|
|
375
|
-
"0x263eee8d": {
|
|
376
|
-
error: "LSP7InvalidTransferBatch()",
|
|
377
|
-
message: "LSP7: invalid transfer batch.",
|
|
378
|
-
},
|
|
379
|
-
"0xa608fbb6": {
|
|
380
|
-
error: "LSP7NotifyTokenReceiverContractMissingLSP1Interface(address)",
|
|
381
|
-
message: "LSP7: token recipient does not implement LSP1 standard.",
|
|
382
|
-
},
|
|
383
|
-
"0x26c247f4": {
|
|
384
|
-
error: "LSP7NotifyTokenReceiverIsEOA(address)",
|
|
385
|
-
message: "LSP7: token recipient is an Externally Owned Account.",
|
|
386
|
-
},
|
|
387
|
-
dab75047: {
|
|
388
|
-
error: "LSP7TokenOwnerCannotBeOperator()",
|
|
389
|
-
message: "LSP7: token owner cannot be an operator.",
|
|
390
|
-
},
|
|
391
|
-
},
|
|
392
|
-
LSP7CappedSupply: {
|
|
393
|
-
"0xacf1d8c5": {
|
|
394
|
-
error: "LSP7CappedSupplyRequired()",
|
|
395
|
-
message: "LSP7CappedSupply: cap supply number required",
|
|
396
|
-
},
|
|
397
|
-
"0xeacbf0d1": {
|
|
398
|
-
error: "LSP7CappedSupplyCannotMintOverCap()",
|
|
399
|
-
message: "LSP7CappedSupply: cannot mint over the max cap supply",
|
|
400
|
-
},
|
|
401
|
-
},
|
|
402
|
-
LSP8: {
|
|
403
|
-
"0xae8f9a36": {
|
|
404
|
-
error: "LSP8NonExistentTokenId(bytes32)",
|
|
405
|
-
message: "LSP8: token id does not exist.",
|
|
406
|
-
},
|
|
407
|
-
"0x5b271ea2": {
|
|
408
|
-
error: "LSP8NotTokenOwner(address,bytes32,address)",
|
|
409
|
-
message: "LSP8: tokenOwner given as parameter does not own this token id.",
|
|
410
|
-
},
|
|
411
|
-
"0x1294d2a9": {
|
|
412
|
-
error: "LSP8NotTokenOperator(bytes32,address)",
|
|
413
|
-
message: "LSP8: caller is not an operator for this token id.",
|
|
414
|
-
},
|
|
415
|
-
"0x9577b8b3": {
|
|
416
|
-
error: "LSP8CannotUseAddressZeroAsOperator()",
|
|
417
|
-
message: "LSP8: cannot use address(0) as an operator for token id.",
|
|
418
|
-
},
|
|
419
|
-
"0x24ecef4d": {
|
|
420
|
-
error: "LSP8CannotSendToAddressZero()",
|
|
421
|
-
message: "LSP8: cannot send to address(0).",
|
|
422
|
-
},
|
|
423
|
-
"0x5d67d6c1": {
|
|
424
|
-
error: "LSP8CannotSendToSelf()",
|
|
425
|
-
message: "LSP8: the `from` and `to` address cannot be the same on transfer.",
|
|
426
|
-
},
|
|
427
|
-
"0x34c7b511": {
|
|
428
|
-
error: "LSP8TokenIdAlreadyMinted(bytes32)",
|
|
429
|
-
message: "LSP8: tokenId already exist (= already minted).",
|
|
430
|
-
},
|
|
431
|
-
"0x93a83119": {
|
|
432
|
-
error: "LSP8InvalidTransferBatch()",
|
|
433
|
-
message: "LSP8: invalid transfer batch.",
|
|
434
|
-
},
|
|
435
|
-
"0x4349776d": {
|
|
436
|
-
error: "LSP8NotifyTokenReceiverContractMissingLSP1Interface(address)",
|
|
437
|
-
message: "LSP8: token recipient does not implement LSP1 standard.",
|
|
438
|
-
},
|
|
439
|
-
"0x03173137": {
|
|
440
|
-
error: "LSP8NotifyTokenReceiverIsEOA(address)",
|
|
441
|
-
message: "LSP8: token recipient is an Externally Owned Account.",
|
|
442
|
-
},
|
|
443
|
-
"0x4aa31a8c": {
|
|
444
|
-
error: "LSP8NonExistingOperator(address,bytes32)",
|
|
445
|
-
message: "LSP8: Cannot remove a non existing operator.",
|
|
446
|
-
},
|
|
447
|
-
"0xa7626b68": {
|
|
448
|
-
error: "LSP8OperatorAlreadyAuthorized(address,bytes32)",
|
|
449
|
-
message: "LSP8: Cannot authorize an existing operator twice for the same tokenId.",
|
|
450
|
-
},
|
|
451
|
-
"0x89fdad62": {
|
|
452
|
-
error: "LSP8TokenOwnerCannotBeOperator()",
|
|
453
|
-
message: "LSP8: Cannot authorize the token owner as an operator.",
|
|
454
|
-
},
|
|
455
|
-
},
|
|
456
|
-
LSP8CappedSupply: {
|
|
457
|
-
"0x38d9fc30": {
|
|
458
|
-
error: "LSP8CappedSupplyRequired()",
|
|
459
|
-
message: "LSP8CappedSupply: cap supply number required",
|
|
460
|
-
},
|
|
461
|
-
"0xe8ba2291": {
|
|
462
|
-
error: "LSP8CappedSupplyCannotMintOverCap()",
|
|
463
|
-
message: "LSP8CappedSupply: cannot mint over the max cap supply",
|
|
464
|
-
},
|
|
465
|
-
},
|
|
466
|
-
LSP9: {
|
|
467
|
-
"0x199611f": {
|
|
468
|
-
error: "LSP1DelegateNotAllowedToSetDataKey(bytes32)",
|
|
469
|
-
message: "The UniversalReceiverDelegate is not allowed to set this data key",
|
|
470
|
-
},
|
|
471
|
-
},
|
|
472
|
-
LSP11: {
|
|
473
|
-
"0x5560e16d": {
|
|
474
|
-
error: "CallerIsNotGuardian(address)",
|
|
475
|
-
message: "LSP11: The caller is not a guardian",
|
|
476
|
-
},
|
|
477
|
-
"0xd52858db": {
|
|
478
|
-
error: "GuardianAlreadyExist(address)",
|
|
479
|
-
message: "LSP11: The address provided is already a guardian",
|
|
480
|
-
},
|
|
481
|
-
"0x3d8e524e": {
|
|
482
|
-
error: "GuardianDoNotExist(address)",
|
|
483
|
-
message: "LSP11: The address provided is not an existing guardian",
|
|
484
|
-
},
|
|
485
|
-
"0x27113777": {
|
|
486
|
-
error: "GuardiansNumberCannotGoBelowThreshold(uint256)",
|
|
487
|
-
message: "LSP11: The guardian number cannot go below the guardians threshold",
|
|
488
|
-
},
|
|
489
|
-
"0xe3db80bd": {
|
|
490
|
-
error: "ThresholdCannotBeHigherThanGuardiansNumber(uint256,uint256)",
|
|
491
|
-
message: "LSP11: The guardian threshold cannot be higher than the guardians number",
|
|
492
|
-
},
|
|
493
|
-
"0x7f617002": {
|
|
494
|
-
error: "SecretHashCannotBeZero()",
|
|
495
|
-
message: "LSP11: The secret hash cannot be bytes32(0)",
|
|
496
|
-
},
|
|
497
|
-
"0xf78f0507": {
|
|
498
|
-
error: "ThresholdNotReachedForRecoverer(address,uint256,uint256)",
|
|
499
|
-
message: "LSP11: The caller cannot recover as he didn't reach the guardians threshold",
|
|
500
|
-
},
|
|
501
|
-
"0x6fa723c3": {
|
|
502
|
-
error: "WrongPlainSecret()",
|
|
503
|
-
message: "LSP11: The plain secret provided do not produce the secret hash set by the owner",
|
|
504
|
-
},
|
|
505
|
-
"0x0855380c": {
|
|
506
|
-
error: "AddressZeroNotAllowed()",
|
|
507
|
-
message: "LSP11: The address zero is not allowed to call recoverOwnership function",
|
|
508
|
-
},
|
|
509
|
-
},
|
|
510
|
-
LSP14Ownable2Step: {
|
|
511
|
-
"0x8b9bf507": {
|
|
512
|
-
error: "NotInRenounceOwnershipInterval(uint256,uint256)",
|
|
513
|
-
message: "LSP14: Second renounce ownership call available after 100 block delay from the first call",
|
|
514
|
-
},
|
|
515
|
-
"0x43b248cd": {
|
|
516
|
-
error: "CannotTransferOwnershipToSelf()",
|
|
517
|
-
message: "LSP14: Cannot transfer ownership to address(this)",
|
|
518
|
-
},
|
|
519
|
-
},
|
|
520
|
-
LSP17ContractExtension: {
|
|
521
|
-
"0xbb370b2b": {
|
|
522
|
-
error: "NoExtensionFoundForFunctionSelector(bytes4)",
|
|
523
|
-
message: "The function being called on the contract is not supported and there is no extension for it",
|
|
524
|
-
},
|
|
525
|
-
},
|
|
526
|
-
};
|
|
527
|
-
exports.EventSignatures = {
|
|
528
|
-
ERC173: {
|
|
529
|
-
/**
|
|
530
|
-
* event OwnershipTransferred(
|
|
531
|
-
* address indexed previousOwner,
|
|
532
|
-
* address indexed newOwner,
|
|
533
|
-
* );
|
|
534
|
-
*
|
|
535
|
-
* signature = keccak256('OwnershipTransferred(address,address)')
|
|
536
|
-
*/
|
|
537
|
-
OwnershipTransfered: "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
538
|
-
},
|
|
539
|
-
ERC725X: {
|
|
540
|
-
/**
|
|
541
|
-
* event ContractCreated(
|
|
542
|
-
* uint256 indexed _operation,
|
|
543
|
-
* address indexed _contractAddress,
|
|
544
|
-
* uint256 indexed _value
|
|
545
|
-
* bytes32 _salt
|
|
546
|
-
* );
|
|
547
|
-
*
|
|
548
|
-
* signature = keccak256('ContractCreated(uint256,address,uint256,bytes32)')
|
|
549
|
-
*/
|
|
550
|
-
ContractCreated: "0xa1fb700aaee2ae4a2ff6f91ce7eba292f89c2f5488b8ec4c5c5c8150692595c3",
|
|
551
|
-
/**
|
|
552
|
-
* event Executed(
|
|
553
|
-
* uint256 indexed _operation,
|
|
554
|
-
* address indexed _to,
|
|
555
|
-
* uint256 indexed _value,
|
|
556
|
-
* bytes4 _data
|
|
557
|
-
* );
|
|
558
|
-
*
|
|
559
|
-
* signature = keccak256('Executed(uint256,address,uint256,bytes4)')
|
|
560
|
-
*/
|
|
561
|
-
Executed: "0x4810874456b8e6487bd861375cf6abd8e1c8bb5858c8ce36a86a04dabfac199e",
|
|
562
|
-
},
|
|
563
|
-
ERC725Y: {
|
|
564
|
-
/**
|
|
565
|
-
* event DataChanged(
|
|
566
|
-
* bytes32 indexed dataKey,
|
|
567
|
-
* bytes dataValue
|
|
568
|
-
* );
|
|
569
|
-
*
|
|
570
|
-
* signature = keccak256('DataChanged(bytes32,bytes)')
|
|
571
|
-
*/
|
|
572
|
-
DataChanged: "0xece574603820d07bc9b91f2a932baadf4628aabcb8afba49776529c14a6104b2",
|
|
573
|
-
},
|
|
574
|
-
// ERC725Account
|
|
575
|
-
LSP0: {
|
|
576
|
-
/**
|
|
577
|
-
* event ValueReceived(
|
|
578
|
-
* address indexed sender,
|
|
579
|
-
* uint256 indexed value
|
|
580
|
-
* );
|
|
581
|
-
*
|
|
582
|
-
* signature = keccak256('ValueReceived(address,uint256)')
|
|
583
|
-
*/
|
|
584
|
-
ValueReceived: "0x7e71433ddf847725166244795048ecf3e3f9f35628254ecbf736056664233493",
|
|
585
|
-
},
|
|
586
|
-
LSP1: {
|
|
587
|
-
/**
|
|
588
|
-
* event UniversalReceiver(
|
|
589
|
-
* address indexed from,
|
|
590
|
-
* uint256 indexed value,
|
|
591
|
-
* bytes32 indexed typeId,
|
|
592
|
-
* bytes receivedData,
|
|
593
|
-
* bytes returnedValue
|
|
594
|
-
* );
|
|
595
|
-
*
|
|
596
|
-
* signature = keccak256('UniversalReceiver(address,uint256,bytes32,bytes,bytes)')
|
|
597
|
-
*/
|
|
598
|
-
UniversalReceiver: "0x9c3ba68eb5742b8e3961aea0afc7371a71bf433c8a67a831803b64c064a178c2",
|
|
599
|
-
},
|
|
600
|
-
LSP6: {
|
|
601
|
-
/**
|
|
602
|
-
* event VerifiedCall(
|
|
603
|
-
* address indexed signer,
|
|
604
|
-
* uint256 indexed value,
|
|
605
|
-
* bytes4 indexed selector,
|
|
606
|
-
* );
|
|
607
|
-
*
|
|
608
|
-
* signature = keccak256('VerifiedCall(address,uint256,bytes4)')
|
|
609
|
-
*/
|
|
610
|
-
VerifiedCall: "0xa54458b75709e42f79700ffb6cfc57c7e224d8a77a52c457ee7ecb8e22636280",
|
|
611
|
-
},
|
|
612
|
-
LSP7: {
|
|
613
|
-
/**
|
|
614
|
-
* event Transfer(
|
|
615
|
-
* address indexed operator,
|
|
616
|
-
* address indexed from,
|
|
617
|
-
* address indexed to,
|
|
618
|
-
* uint256 amount,
|
|
619
|
-
* bool allowNonLSP1Recipient,
|
|
620
|
-
* bytes data
|
|
621
|
-
* );
|
|
622
|
-
*
|
|
623
|
-
* signature = keccak256('Transfer(address,address,address,uint256,bool,bytes)')
|
|
624
|
-
*/
|
|
625
|
-
Transfer: "0x3997e418d2cef0b3b0e907b1e39605c3f7d32dbd061e82ea5b4a770d46a160a6",
|
|
626
|
-
/**
|
|
627
|
-
* event AuthorizedOperator(
|
|
628
|
-
* address indexed operator,
|
|
629
|
-
* address indexed tokenOwner,
|
|
630
|
-
* uint256 indexed amount
|
|
631
|
-
* );
|
|
632
|
-
*
|
|
633
|
-
* signature = keccak256('AuthorizedOperator(address,address,uint256)')
|
|
634
|
-
*/
|
|
635
|
-
AuthorizedOperator: "0xd66aff874162a96578e919097b6f6d153dfd89a5cec41bb331fdb0c4aec16e2c",
|
|
636
|
-
/**
|
|
637
|
-
* event RevokedOperator(
|
|
638
|
-
* address indexed operator,
|
|
639
|
-
* address indexed tokenOwner
|
|
640
|
-
* );
|
|
641
|
-
*
|
|
642
|
-
* signature = keccak256('RevokedOperator(address,address)')
|
|
643
|
-
*/
|
|
644
|
-
RevokedOperator: "0x50546e66e5f44d728365dc3908c63bc5cfeeab470722c1677e3073a6ac294aa1",
|
|
645
|
-
},
|
|
646
|
-
LSP8: {
|
|
647
|
-
/**
|
|
648
|
-
* event Transfer(
|
|
649
|
-
* address operator,
|
|
650
|
-
* address indexed from,
|
|
651
|
-
* address indexed to,
|
|
652
|
-
* bytes32 indexed tokenId,
|
|
653
|
-
* bool allowNonLSP1Recipient,
|
|
654
|
-
* bytes data
|
|
655
|
-
* );
|
|
656
|
-
*
|
|
657
|
-
* signature = keccak256('Transfer(address,address,address,bytes32,bool,bytes)')
|
|
658
|
-
*/
|
|
659
|
-
Transfer: "b333c813a7426a7a11e2b190cad52c44119421594b47f6f32ace6d8c7207b2bf",
|
|
660
|
-
/**
|
|
661
|
-
* event AuthorizedOperator(
|
|
662
|
-
* address indexed operator,
|
|
663
|
-
* address indexed tokenOwner,
|
|
664
|
-
* bytes32 indexed tokenId
|
|
665
|
-
* );
|
|
666
|
-
*
|
|
667
|
-
* signature = keccak256('AuthorizedOperator(address,address,bytes32)')
|
|
668
|
-
*/
|
|
669
|
-
AuthorizedOperator: "34b797fc5a526f7bf1d2b5de25f6564fd85ae364e3ee939aee7c1ac27871a988",
|
|
670
|
-
/**
|
|
671
|
-
* event RevokedOperator(
|
|
672
|
-
* address indexed operator,
|
|
673
|
-
* address indexed tokenOwner,
|
|
674
|
-
* bytes32 indexed tokenId
|
|
675
|
-
* );
|
|
676
|
-
*
|
|
677
|
-
* signature = keccak256('RevokedOperator(address,address,bytes32)')
|
|
678
|
-
*/
|
|
679
|
-
RevokedOperator: "17d5389f6ab6adb2647dfa0aa365c323d37adacc30b33a65310b6158ce1373d5",
|
|
680
|
-
},
|
|
681
|
-
LSP9: {
|
|
682
|
-
/**
|
|
683
|
-
* event ValueReceived(
|
|
684
|
-
* address indexed sender,
|
|
685
|
-
* uint256 indexed value
|
|
686
|
-
* );
|
|
687
|
-
*
|
|
688
|
-
* signature = keccak256('ValueReceived(address,uint256)')
|
|
689
|
-
*/
|
|
690
|
-
ValueReceived: "0x7e71433ddf847725166244795048ecf3e3f9f35628254ecbf736056664233493",
|
|
691
|
-
},
|
|
692
|
-
LSP11: {
|
|
693
|
-
/**
|
|
694
|
-
* event GuardianAdded(address indexed newGuardian);
|
|
695
|
-
*
|
|
696
|
-
* signature = keccak256('GuardianAdded(address)')
|
|
697
|
-
*/
|
|
698
|
-
GuardianAdded: "0x038596bb31e2e7d3d9f184d4c98b310103f6d7f5830e5eec32bffe6f1728f969",
|
|
699
|
-
/**
|
|
700
|
-
* event GuardianRemoved(address indexed removedGuardian);
|
|
701
|
-
*
|
|
702
|
-
* signature = keccak256('GuardianRemoved(address)')
|
|
703
|
-
*/
|
|
704
|
-
GuardianRemoved: "0xb8107d0c6b40be480ce3172ee66ba6d64b71f6b1685a851340036e6e2e3e3c52",
|
|
705
|
-
/**
|
|
706
|
-
* event GuardiansThresholdChanged(uint256 indexed guardianThreshold);
|
|
707
|
-
*
|
|
708
|
-
* signature = keccak256('GuardiansThresholdChanged(uint256)')
|
|
709
|
-
*/
|
|
710
|
-
GuardiansThresholdChanged: "0x7146d20a2c7b7c75c203774c9f241b61698fac43a4a81ccd828f0d8162392790",
|
|
711
|
-
/**
|
|
712
|
-
* event SecretHashChanged(bytes32 indexed secretHash);
|
|
713
|
-
*
|
|
714
|
-
* signature = keccak256('SecretHashChanged(bytes32)')
|
|
715
|
-
*/
|
|
716
|
-
SecretHashChanged: "0x2e8c5419a62207ade549fe0b66c1c85c16f5e1ed654815dee3a3f3ac41770df3",
|
|
717
|
-
/**
|
|
718
|
-
* event SelectedNewController(
|
|
719
|
-
* uint256 indexed recoveryCounter,
|
|
720
|
-
* address indexed guardian,
|
|
721
|
-
* address indexed addressSelected
|
|
722
|
-
* );
|
|
723
|
-
*
|
|
724
|
-
* signature = keccak256('SelectedNewController(uint256,address,address)')
|
|
725
|
-
*/
|
|
726
|
-
SelectedNewController: "0xe43f3c1093c69ab76b2cf6246090acb2f8eab7f19ba9942dfc8b8ec446e3a3de",
|
|
727
|
-
/**
|
|
728
|
-
* event RecoveryProcessSuccessful(
|
|
729
|
-
* uint256 indexed recoveryCounter,
|
|
730
|
-
* address indexed newController,
|
|
731
|
-
* bytes32 indexed newSecretHash,
|
|
732
|
-
* address[] guardians
|
|
733
|
-
* );
|
|
734
|
-
*
|
|
735
|
-
* signature = keccak256('RecoveryProcessSuccessful(uint256,address,bytes32,address[])')
|
|
736
|
-
*/
|
|
737
|
-
RecoveryProcessSuccessful: "0xf4ff8803d6b43af46d48c200977209829c2f42f19f27eda1c89dbf26a28009cd",
|
|
738
|
-
},
|
|
739
|
-
Helpers: {
|
|
740
|
-
/**
|
|
741
|
-
* event ReceivedERC777(
|
|
742
|
-
* address indexed token,
|
|
743
|
-
* address indexed _operator,
|
|
744
|
-
* address indexed _from,
|
|
745
|
-
* address _to,
|
|
746
|
-
* uint256 _amount
|
|
747
|
-
* );
|
|
748
|
-
*
|
|
749
|
-
* signature = keccak256('ReceivedERC777(address,address,address,address,uint256)')
|
|
750
|
-
*/
|
|
751
|
-
ReceivedERC777: "0xdc38539587ea4d67f9f649ad9269646bab26927bad175bdcdfdab5dd297d5e1c",
|
|
752
|
-
},
|
|
753
|
-
LSP14Ownable2Step: {
|
|
754
|
-
/**
|
|
755
|
-
* event OwnershipTransferStarted(
|
|
756
|
-
* address indexed previousOwner,
|
|
757
|
-
* address indexed newOwner
|
|
758
|
-
* );
|
|
759
|
-
*
|
|
760
|
-
* signature = keccak256('OwnershipTransferStarted(address,address)')
|
|
761
|
-
*/
|
|
762
|
-
OwnershipTransferStarted: "0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700",
|
|
763
|
-
/**
|
|
764
|
-
* event RenounceOwnershipStarted();
|
|
765
|
-
*
|
|
766
|
-
* signature = keccak256('RenounceOwnershipStarted()')
|
|
767
|
-
*/
|
|
768
|
-
RenounceOwnershipStarted: "0x81b7f830f1f0084db6497c486cbe6974c86488dcc4e3738eab94ab6d6b1653e7",
|
|
769
|
-
/**
|
|
770
|
-
* event OwnershipRenounced();
|
|
771
|
-
*
|
|
772
|
-
* signature = keccak256('OwnershipRenounced()')
|
|
773
|
-
*/
|
|
774
|
-
OwnershipRenounced: "0xd1f66c3d2bc1993a86be5e3d33709d98f0442381befcedd29f578b9b2506b1ce",
|
|
775
|
-
},
|
|
776
|
-
LSP16UniversalFactory: {
|
|
777
|
-
/**
|
|
778
|
-
* event ContractCreated(
|
|
779
|
-
* address indexed contractCreated,
|
|
780
|
-
* bytes32 indexed providedSalt,
|
|
781
|
-
* bool indexed initializable,
|
|
782
|
-
* bytes initializeCalldata
|
|
783
|
-
* );
|
|
784
|
-
*
|
|
785
|
-
* signature = keccak256('ContractCreated(address,bytes32,bool,bytes)')
|
|
786
|
-
*/
|
|
787
|
-
ContractCreated: "0xc587425c92859c27d4383bf2eb0ab8ea1670c48039f8d6375b9947b82a20f746",
|
|
788
|
-
},
|
|
789
|
-
};
|