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