@lukso/lsp-smart-contracts 0.8.0 → 0.9.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/CONTRIBUTING.md +8 -0
- package/README.md +34 -21
- package/artifacts/LSP0ERC725Account.json +51 -5
- package/artifacts/LSP0ERC725AccountInit.json +51 -5
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP16UniversalFactory.json +31 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +19 -35
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +13 -13
- package/artifacts/LSP4Compatibility.json +7 -2
- package/artifacts/LSP4DigitalAssetMetadata.json +7 -2
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +7 -2
- package/artifacts/LSP6KeyManager.json +91 -6
- package/artifacts/LSP6KeyManagerInit.json +103 -18
- package/artifacts/LSP7CappedSupply.json +12 -2
- package/artifacts/LSP7CappedSupplyInitAbstract.json +12 -2
- package/artifacts/LSP7CompatibleERC20.json +12 -2
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +12 -2
- package/artifacts/LSP7CompatibleERC20Mintable.json +14 -4
- package/artifacts/LSP7CompatibleERC20MintableInit.json +14 -4
- package/artifacts/LSP7DigitalAsset.json +12 -2
- package/artifacts/LSP7DigitalAssetInitAbstract.json +12 -2
- package/artifacts/LSP7Mintable.json +14 -4
- package/artifacts/LSP7MintableInit.json +14 -4
- package/artifacts/LSP8CappedSupply.json +12 -2
- package/artifacts/LSP8CappedSupplyInitAbstract.json +12 -2
- package/artifacts/LSP8CompatibleERC721.json +12 -2
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +12 -2
- package/artifacts/LSP8CompatibleERC721Mintable.json +14 -4
- package/artifacts/LSP8CompatibleERC721MintableInit.json +14 -4
- package/artifacts/LSP8IdentifiableDigitalAsset.json +12 -2
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +12 -2
- package/artifacts/LSP8Mintable.json +14 -4
- package/artifacts/LSP8MintableInit.json +14 -4
- package/artifacts/LSP9Vault.json +29 -5
- package/artifacts/LSP9VaultInit.json +29 -5
- package/artifacts/UniversalProfile.json +51 -5
- package/artifacts/UniversalProfileInit.json +51 -5
- package/common/constants.d.ts +461 -0
- package/common/constants.js +789 -0
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +27 -0
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +353 -145
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -1
- package/contracts/LSP0ERC725Account/LSP0Utils.sol +50 -0
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +48 -54
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +5 -6
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +27 -4
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +36 -77
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +8 -8
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +50 -57
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +18 -8
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +12 -0
- package/contracts/LSP20CallVerification/ILSP20CallVerification.sol +30 -0
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +74 -0
- package/contracts/LSP20CallVerification/LSP20Errors.sol +15 -0
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +7 -7
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +50 -56
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +1 -1
- package/contracts/LSP6KeyManager/LSP6Constants.sol +8 -2
- package/contracts/LSP6KeyManager/LSP6Errors.sol +18 -1
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +126 -745
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +407 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +25 -0
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +633 -0
- package/contracts/LSP6KeyManager/LSP6Utils.sol +60 -15
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +14 -23
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +5 -0
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +19 -30
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +1 -3
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +1 -3
- package/contracts/LSP9Vault/ILSP9Vault.sol +19 -0
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -1
- package/contracts/LSP9Vault/LSP9Vault.sol +11 -2
- package/contracts/LSP9Vault/LSP9VaultCore.sol +166 -83
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +11 -2
- package/module/constants.d.ts +461 -0
- package/module/constants.js +786 -0
- package/package.json +30 -6
- package/constants.js +0 -856
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Set of constants values as defined in each LUKSO Standards Proposals (LSPs).
|
|
3
|
+
* @see https://github.com/lukso-network/LIPs/tree/main/LSPs
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @dev ERC165 interface IDs for the LSP interface standards + some backward compatible ERC token standards.
|
|
7
|
+
* These `bytes4` values can be used to detect if a contract implements a specific interface
|
|
8
|
+
* with `supportsInterface(interfaceId)`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const INTERFACE_IDS: {
|
|
11
|
+
ERC165: string;
|
|
12
|
+
ERC1271: string;
|
|
13
|
+
ERC20: string;
|
|
14
|
+
ERC223: string;
|
|
15
|
+
ERC721: string;
|
|
16
|
+
ERC721Metadata: string;
|
|
17
|
+
ERC777: string;
|
|
18
|
+
ERC1155: string;
|
|
19
|
+
ERC725X: string;
|
|
20
|
+
ERC725Y: string;
|
|
21
|
+
LSP0ERC725Account: string;
|
|
22
|
+
LSP1UniversalReceiver: string;
|
|
23
|
+
LSP6KeyManager: string;
|
|
24
|
+
LSP7DigitalAsset: string;
|
|
25
|
+
LSP8IdentifiableDigitalAsset: string;
|
|
26
|
+
LSP9Vault: string;
|
|
27
|
+
LSP11BasicSocialRecovery: string;
|
|
28
|
+
LSP14Ownable2Step: string;
|
|
29
|
+
LSP17Extendable: string;
|
|
30
|
+
LSP17Extension: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @dev values returned by the `isValidSignature` function of the ERC1271 standard.
|
|
34
|
+
* Can be used to check if a signature is valid or not.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ERC1271_VALUES: {
|
|
37
|
+
MAGIC_VALUE: string;
|
|
38
|
+
FAIL_VALUE: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @dev list of ERC725X operation types.
|
|
42
|
+
* @see https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md#execute
|
|
43
|
+
*/
|
|
44
|
+
export declare const OPERATION_TYPES: {
|
|
45
|
+
CALL: number;
|
|
46
|
+
CREATE: number;
|
|
47
|
+
CREATE2: number;
|
|
48
|
+
STATICCALL: number;
|
|
49
|
+
DELEGATECALL: number;
|
|
50
|
+
};
|
|
51
|
+
export type LSP2ArrayKey = {
|
|
52
|
+
length: string;
|
|
53
|
+
index: string;
|
|
54
|
+
};
|
|
55
|
+
export type LSPSupportedStandard = {
|
|
56
|
+
key: string;
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @dev list of ERC725Y keys from the LSP standards.
|
|
61
|
+
* Can be used to detect if a contract implements a specific LSP Metadata standard
|
|
62
|
+
* and contain a set of pre-defined ERC725Y Data Keys.
|
|
63
|
+
*/
|
|
64
|
+
export declare const SupportedStandards: {
|
|
65
|
+
LSP3UniversalProfile: LSPSupportedStandard;
|
|
66
|
+
LSP4DigitalAsset: LSPSupportedStandard;
|
|
67
|
+
LSP9Vault: LSPSupportedStandard;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @dev list of ERC725Y Metadata keys from the LSP standards.
|
|
71
|
+
* @see https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md
|
|
72
|
+
*/
|
|
73
|
+
export declare const ERC725YDataKeys: {
|
|
74
|
+
LSP1: {
|
|
75
|
+
LSP1UniversalReceiverDelegatePrefix: string;
|
|
76
|
+
LSP1UniversalReceiverDelegate: string;
|
|
77
|
+
};
|
|
78
|
+
LSP3: {
|
|
79
|
+
SupportedStandards_LSP3: string;
|
|
80
|
+
LSP3Profile: string;
|
|
81
|
+
};
|
|
82
|
+
LSP4: {
|
|
83
|
+
SupportedStandards_LSP4: string;
|
|
84
|
+
LSP4TokenName: string;
|
|
85
|
+
LSP4TokenSymbol: string;
|
|
86
|
+
LSP4Metadata: string;
|
|
87
|
+
LSP4CreatorsMap: string;
|
|
88
|
+
"LSP4Creators[]": LSP2ArrayKey;
|
|
89
|
+
};
|
|
90
|
+
LSP5: {
|
|
91
|
+
LSP5ReceivedAssetsMap: string;
|
|
92
|
+
"LSP5ReceivedAssets[]": LSP2ArrayKey;
|
|
93
|
+
};
|
|
94
|
+
LSP6: {
|
|
95
|
+
"AddressPermissions[]": LSP2ArrayKey;
|
|
96
|
+
AddressPermissionsPrefix: string;
|
|
97
|
+
"AddressPermissions:Permissions": string;
|
|
98
|
+
"AddressPermissions:AllowedERC725YDataKeys": string;
|
|
99
|
+
"AddressPermissions:AllowedCalls": string;
|
|
100
|
+
};
|
|
101
|
+
LSP9: {
|
|
102
|
+
SupportedStandards_LSP9: string;
|
|
103
|
+
};
|
|
104
|
+
LSP10: {
|
|
105
|
+
LSP10VaultsMap: string;
|
|
106
|
+
"LSP10Vaults[]": LSP2ArrayKey;
|
|
107
|
+
};
|
|
108
|
+
LSP12: {
|
|
109
|
+
LSP12IssuedAssetsMap: string;
|
|
110
|
+
"LSP12IssuedAssets[]": LSP2ArrayKey;
|
|
111
|
+
};
|
|
112
|
+
LSP17: {
|
|
113
|
+
LSP17ExtensionPrefix: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @dev LSP6 version number for signing `executeRelayCall(...)` transaction using EIP191
|
|
118
|
+
* @see for details see: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-6-KeyManager.md#executerelaycall
|
|
119
|
+
*/
|
|
120
|
+
export declare const LSP6_VERSION: number;
|
|
121
|
+
/**
|
|
122
|
+
* @dev The types of calls for AllowedCalls
|
|
123
|
+
*/
|
|
124
|
+
export declare const CALLTYPE: {
|
|
125
|
+
VALUE: string;
|
|
126
|
+
WRITE: string;
|
|
127
|
+
READ: string;
|
|
128
|
+
EXECUTE: string;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* @dev `bytes32` hex value for all the LSP6 permissions excluding REENTRANCY, DELEGATECALL and SUPER_DELEGATECALL for security (these should be set manually)
|
|
132
|
+
*/
|
|
133
|
+
export declare const ALL_PERMISSIONS: string;
|
|
134
|
+
export type LSP6PermissionName = keyof typeof PERMISSIONS;
|
|
135
|
+
/**
|
|
136
|
+
* @dev List of `bytes32` permissions from LSP6 Key Manager Standard
|
|
137
|
+
*/
|
|
138
|
+
export declare const PERMISSIONS: {
|
|
139
|
+
CHANGEOWNER: string;
|
|
140
|
+
ADDCONTROLLER: string;
|
|
141
|
+
EDITPERMISSIONS: string;
|
|
142
|
+
ADDEXTENSIONS: string;
|
|
143
|
+
CHANGEEXTENSIONS: string;
|
|
144
|
+
ADDUNIVERSALRECEIVERDELEGATE: string;
|
|
145
|
+
CHANGEUNIVERSALRECEIVERDELEGATE: string;
|
|
146
|
+
REENTRANCY: string;
|
|
147
|
+
SUPER_TRANSFERVALUE: string;
|
|
148
|
+
TRANSFERVALUE: string;
|
|
149
|
+
SUPER_CALL: string;
|
|
150
|
+
CALL: string;
|
|
151
|
+
SUPER_STATICCALL: string;
|
|
152
|
+
STATICCALL: string;
|
|
153
|
+
SUPER_DELEGATECALL: string;
|
|
154
|
+
DELEGATECALL: string;
|
|
155
|
+
DEPLOY: string;
|
|
156
|
+
SUPER_SETDATA: string;
|
|
157
|
+
SETDATA: string;
|
|
158
|
+
ENCRYPT: string;
|
|
159
|
+
DECRYPT: string;
|
|
160
|
+
SIGN: string;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* @dev list of standard type IDs ("hooks") defined in the LSPs that can be used to notify
|
|
164
|
+
* a LSP1 compliant contract about certain type of transactions or information
|
|
165
|
+
* (e.g: token transfer, vault transfer, ownership transfer, etc...)
|
|
166
|
+
*/
|
|
167
|
+
export declare const LSP1_TYPE_IDS: {
|
|
168
|
+
LSP0OwnershipTransferStarted: string;
|
|
169
|
+
LSP0OwnershipTransferred_SenderNotification: string;
|
|
170
|
+
LSP0OwnershipTransferred_RecipientNotification: string;
|
|
171
|
+
LSP7Tokens_SenderNotification: string;
|
|
172
|
+
LSP7Tokens_RecipientNotification: string;
|
|
173
|
+
LSP8Tokens_SenderNotification: string;
|
|
174
|
+
LSP8Tokens_RecipientNotification: string;
|
|
175
|
+
LSP9OwnershipTransferStarted: string;
|
|
176
|
+
LSP9OwnershipTransferred_SenderNotification: string;
|
|
177
|
+
LSP9OwnershipTransferred_RecipientNotification: string;
|
|
178
|
+
LSP14OwnershipTransferStarted: string;
|
|
179
|
+
LSP14OwnershipTransferred_SenderNotification: string;
|
|
180
|
+
LSP14OwnershipTransferred_RecipientNotification: string;
|
|
181
|
+
};
|
|
182
|
+
export type LSPErrorInfo = {
|
|
183
|
+
error: string;
|
|
184
|
+
message: string;
|
|
185
|
+
};
|
|
186
|
+
export declare const Errors: {
|
|
187
|
+
LSP1: Record<string, LSPErrorInfo>;
|
|
188
|
+
LSP4: Record<string, LSPErrorInfo>;
|
|
189
|
+
LSP5: Record<string, LSPErrorInfo>;
|
|
190
|
+
LSP6: Record<string, LSPErrorInfo>;
|
|
191
|
+
LSP7: Record<string, LSPErrorInfo>;
|
|
192
|
+
LSP7CappedSupply: Record<string, LSPErrorInfo>;
|
|
193
|
+
LSP8: Record<string, LSPErrorInfo>;
|
|
194
|
+
LSP8CappedSupply: Record<string, LSPErrorInfo>;
|
|
195
|
+
LSP9: Record<string, LSPErrorInfo>;
|
|
196
|
+
LSP11: Record<string, LSPErrorInfo>;
|
|
197
|
+
LSP14Ownable2Step: Record<string, LSPErrorInfo>;
|
|
198
|
+
LSP17ContractExtension: Record<string, LSPErrorInfo>;
|
|
199
|
+
};
|
|
200
|
+
export declare const EventSignatures: {
|
|
201
|
+
ERC173: {
|
|
202
|
+
/**
|
|
203
|
+
* event OwnershipTransferred(
|
|
204
|
+
* address indexed previousOwner,
|
|
205
|
+
* address indexed newOwner,
|
|
206
|
+
* );
|
|
207
|
+
*
|
|
208
|
+
* signature = keccak256('OwnershipTransferred(address,address)')
|
|
209
|
+
*/
|
|
210
|
+
OwnershipTransfered: string;
|
|
211
|
+
};
|
|
212
|
+
ERC725X: {
|
|
213
|
+
/**
|
|
214
|
+
* event ContractCreated(
|
|
215
|
+
* uint256 indexed _operation,
|
|
216
|
+
* address indexed _contractAddress,
|
|
217
|
+
* uint256 indexed _value
|
|
218
|
+
* bytes32 _salt
|
|
219
|
+
* );
|
|
220
|
+
*
|
|
221
|
+
* signature = keccak256('ContractCreated(uint256,address,uint256,bytes32)')
|
|
222
|
+
*/
|
|
223
|
+
ContractCreated: string;
|
|
224
|
+
/**
|
|
225
|
+
* event Executed(
|
|
226
|
+
* uint256 indexed _operation,
|
|
227
|
+
* address indexed _to,
|
|
228
|
+
* uint256 indexed _value,
|
|
229
|
+
* bytes4 _data
|
|
230
|
+
* );
|
|
231
|
+
*
|
|
232
|
+
* signature = keccak256('Executed(uint256,address,uint256,bytes4)')
|
|
233
|
+
*/
|
|
234
|
+
Executed: string;
|
|
235
|
+
};
|
|
236
|
+
ERC725Y: {
|
|
237
|
+
/**
|
|
238
|
+
* event DataChanged(
|
|
239
|
+
* bytes32 indexed dataKey,
|
|
240
|
+
* bytes dataValue
|
|
241
|
+
* );
|
|
242
|
+
*
|
|
243
|
+
* signature = keccak256('DataChanged(bytes32,bytes)')
|
|
244
|
+
*/
|
|
245
|
+
DataChanged: string;
|
|
246
|
+
};
|
|
247
|
+
LSP0: {
|
|
248
|
+
/**
|
|
249
|
+
* event ValueReceived(
|
|
250
|
+
* address indexed sender,
|
|
251
|
+
* uint256 indexed value
|
|
252
|
+
* );
|
|
253
|
+
*
|
|
254
|
+
* signature = keccak256('ValueReceived(address,uint256)')
|
|
255
|
+
*/
|
|
256
|
+
ValueReceived: string;
|
|
257
|
+
};
|
|
258
|
+
LSP1: {
|
|
259
|
+
/**
|
|
260
|
+
* event UniversalReceiver(
|
|
261
|
+
* address indexed from,
|
|
262
|
+
* uint256 indexed value,
|
|
263
|
+
* bytes32 indexed typeId,
|
|
264
|
+
* bytes receivedData,
|
|
265
|
+
* bytes returnedValue
|
|
266
|
+
* );
|
|
267
|
+
*
|
|
268
|
+
* signature = keccak256('UniversalReceiver(address,uint256,bytes32,bytes,bytes)')
|
|
269
|
+
*/
|
|
270
|
+
UniversalReceiver: string;
|
|
271
|
+
};
|
|
272
|
+
LSP6: {
|
|
273
|
+
/**
|
|
274
|
+
* event VerifiedCall(
|
|
275
|
+
* address indexed signer,
|
|
276
|
+
* uint256 indexed value,
|
|
277
|
+
* bytes4 indexed selector,
|
|
278
|
+
* );
|
|
279
|
+
*
|
|
280
|
+
* signature = keccak256('VerifiedCall(address,uint256,bytes4)')
|
|
281
|
+
*/
|
|
282
|
+
VerifiedCall: string;
|
|
283
|
+
};
|
|
284
|
+
LSP7: {
|
|
285
|
+
/**
|
|
286
|
+
* event Transfer(
|
|
287
|
+
* address indexed operator,
|
|
288
|
+
* address indexed from,
|
|
289
|
+
* address indexed to,
|
|
290
|
+
* uint256 amount,
|
|
291
|
+
* bool allowNonLSP1Recipient,
|
|
292
|
+
* bytes data
|
|
293
|
+
* );
|
|
294
|
+
*
|
|
295
|
+
* signature = keccak256('Transfer(address,address,address,uint256,bool,bytes)')
|
|
296
|
+
*/
|
|
297
|
+
Transfer: string;
|
|
298
|
+
/**
|
|
299
|
+
* event AuthorizedOperator(
|
|
300
|
+
* address indexed operator,
|
|
301
|
+
* address indexed tokenOwner,
|
|
302
|
+
* uint256 indexed amount
|
|
303
|
+
* );
|
|
304
|
+
*
|
|
305
|
+
* signature = keccak256('AuthorizedOperator(address,address,uint256)')
|
|
306
|
+
*/
|
|
307
|
+
AuthorizedOperator: string;
|
|
308
|
+
/**
|
|
309
|
+
* event RevokedOperator(
|
|
310
|
+
* address indexed operator,
|
|
311
|
+
* address indexed tokenOwner
|
|
312
|
+
* );
|
|
313
|
+
*
|
|
314
|
+
* signature = keccak256('RevokedOperator(address,address)')
|
|
315
|
+
*/
|
|
316
|
+
RevokedOperator: string;
|
|
317
|
+
};
|
|
318
|
+
LSP8: {
|
|
319
|
+
/**
|
|
320
|
+
* event Transfer(
|
|
321
|
+
* address operator,
|
|
322
|
+
* address indexed from,
|
|
323
|
+
* address indexed to,
|
|
324
|
+
* bytes32 indexed tokenId,
|
|
325
|
+
* bool allowNonLSP1Recipient,
|
|
326
|
+
* bytes data
|
|
327
|
+
* );
|
|
328
|
+
*
|
|
329
|
+
* signature = keccak256('Transfer(address,address,address,bytes32,bool,bytes)')
|
|
330
|
+
*/
|
|
331
|
+
Transfer: string;
|
|
332
|
+
/**
|
|
333
|
+
* event AuthorizedOperator(
|
|
334
|
+
* address indexed operator,
|
|
335
|
+
* address indexed tokenOwner,
|
|
336
|
+
* bytes32 indexed tokenId
|
|
337
|
+
* );
|
|
338
|
+
*
|
|
339
|
+
* signature = keccak256('AuthorizedOperator(address,address,bytes32)')
|
|
340
|
+
*/
|
|
341
|
+
AuthorizedOperator: string;
|
|
342
|
+
/**
|
|
343
|
+
* event RevokedOperator(
|
|
344
|
+
* address indexed operator,
|
|
345
|
+
* address indexed tokenOwner,
|
|
346
|
+
* bytes32 indexed tokenId
|
|
347
|
+
* );
|
|
348
|
+
*
|
|
349
|
+
* signature = keccak256('RevokedOperator(address,address,bytes32)')
|
|
350
|
+
*/
|
|
351
|
+
RevokedOperator: string;
|
|
352
|
+
};
|
|
353
|
+
LSP9: {
|
|
354
|
+
/**
|
|
355
|
+
* event ValueReceived(
|
|
356
|
+
* address indexed sender,
|
|
357
|
+
* uint256 indexed value
|
|
358
|
+
* );
|
|
359
|
+
*
|
|
360
|
+
* signature = keccak256('ValueReceived(address,uint256)')
|
|
361
|
+
*/
|
|
362
|
+
ValueReceived: string;
|
|
363
|
+
};
|
|
364
|
+
LSP11: {
|
|
365
|
+
/**
|
|
366
|
+
* event GuardianAdded(address indexed newGuardian);
|
|
367
|
+
*
|
|
368
|
+
* signature = keccak256('GuardianAdded(address)')
|
|
369
|
+
*/
|
|
370
|
+
GuardianAdded: string;
|
|
371
|
+
/**
|
|
372
|
+
* event GuardianRemoved(address indexed removedGuardian);
|
|
373
|
+
*
|
|
374
|
+
* signature = keccak256('GuardianRemoved(address)')
|
|
375
|
+
*/
|
|
376
|
+
GuardianRemoved: string;
|
|
377
|
+
/**
|
|
378
|
+
* event GuardiansThresholdChanged(uint256 indexed guardianThreshold);
|
|
379
|
+
*
|
|
380
|
+
* signature = keccak256('GuardiansThresholdChanged(uint256)')
|
|
381
|
+
*/
|
|
382
|
+
GuardiansThresholdChanged: string;
|
|
383
|
+
/**
|
|
384
|
+
* event SecretHashChanged(bytes32 indexed secretHash);
|
|
385
|
+
*
|
|
386
|
+
* signature = keccak256('SecretHashChanged(bytes32)')
|
|
387
|
+
*/
|
|
388
|
+
SecretHashChanged: string;
|
|
389
|
+
/**
|
|
390
|
+
* event SelectedNewController(
|
|
391
|
+
* uint256 indexed recoveryCounter,
|
|
392
|
+
* address indexed guardian,
|
|
393
|
+
* address indexed addressSelected
|
|
394
|
+
* );
|
|
395
|
+
*
|
|
396
|
+
* signature = keccak256('SelectedNewController(uint256,address,address)')
|
|
397
|
+
*/
|
|
398
|
+
SelectedNewController: string;
|
|
399
|
+
/**
|
|
400
|
+
* event RecoveryProcessSuccessful(
|
|
401
|
+
* uint256 indexed recoveryCounter,
|
|
402
|
+
* address indexed newController,
|
|
403
|
+
* bytes32 indexed newSecretHash,
|
|
404
|
+
* address[] guardians
|
|
405
|
+
* );
|
|
406
|
+
*
|
|
407
|
+
* signature = keccak256('RecoveryProcessSuccessful(uint256,address,bytes32,address[])')
|
|
408
|
+
*/
|
|
409
|
+
RecoveryProcessSuccessful: string;
|
|
410
|
+
};
|
|
411
|
+
Helpers: {
|
|
412
|
+
/**
|
|
413
|
+
* event ReceivedERC777(
|
|
414
|
+
* address indexed token,
|
|
415
|
+
* address indexed _operator,
|
|
416
|
+
* address indexed _from,
|
|
417
|
+
* address _to,
|
|
418
|
+
* uint256 _amount
|
|
419
|
+
* );
|
|
420
|
+
*
|
|
421
|
+
* signature = keccak256('ReceivedERC777(address,address,address,address,uint256)')
|
|
422
|
+
*/
|
|
423
|
+
ReceivedERC777: string;
|
|
424
|
+
};
|
|
425
|
+
LSP14Ownable2Step: {
|
|
426
|
+
/**
|
|
427
|
+
* event OwnershipTransferStarted(
|
|
428
|
+
* address indexed previousOwner,
|
|
429
|
+
* address indexed newOwner
|
|
430
|
+
* );
|
|
431
|
+
*
|
|
432
|
+
* signature = keccak256('OwnershipTransferStarted(address,address)')
|
|
433
|
+
*/
|
|
434
|
+
OwnershipTransferStarted: string;
|
|
435
|
+
/**
|
|
436
|
+
* event RenounceOwnershipStarted();
|
|
437
|
+
*
|
|
438
|
+
* signature = keccak256('RenounceOwnershipStarted()')
|
|
439
|
+
*/
|
|
440
|
+
RenounceOwnershipStarted: string;
|
|
441
|
+
/**
|
|
442
|
+
* event OwnershipRenounced();
|
|
443
|
+
*
|
|
444
|
+
* signature = keccak256('OwnershipRenounced()')
|
|
445
|
+
*/
|
|
446
|
+
OwnershipRenounced: string;
|
|
447
|
+
};
|
|
448
|
+
LSP16UniversalFactory: {
|
|
449
|
+
/**
|
|
450
|
+
* event ContractCreated(
|
|
451
|
+
* address indexed contractCreated,
|
|
452
|
+
* bytes32 indexed providedSalt,
|
|
453
|
+
* bool indexed initializable,
|
|
454
|
+
* bytes initializeCalldata
|
|
455
|
+
* );
|
|
456
|
+
*
|
|
457
|
+
* signature = keccak256('ContractCreated(address,bytes32,bool,bytes)')
|
|
458
|
+
*/
|
|
459
|
+
ContractCreated: string;
|
|
460
|
+
};
|
|
461
|
+
};
|