-
Notifications
You must be signed in to change notification settings - Fork 8
/
Events.sol
36 lines (30 loc) · 1.5 KB
/
Events.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
import {RegistryTypes} from 'contracts/namespaces/constants/Types.sol';
library HandlesEvents {
event HandleMinted(string handle, string namespace, uint256 handleId, address to, uint256 timestamp);
/**
* @dev Emitted when an address' Token Guardian state change is triggered.
*
* @param wallet The address whose Token Guardian state change is being triggered.
* @param enabled True if the Token Guardian is being enabled, false if it is being disabled.
* @param tokenGuardianDisablingTimestamp The UNIX timestamp when disabling the Token Guardian will take effect,
* if disabling it. Zero if the protection is being enabled.
* @param timestamp The UNIX timestamp of the change being triggered.
*/
event TokenGuardianStateChanged(
address indexed wallet,
bool indexed enabled,
uint256 tokenGuardianDisablingTimestamp,
uint256 timestamp
);
}
library RegistryEvents {
event HandleLinked(RegistryTypes.Handle handle, RegistryTypes.Token token, uint256 timestamp);
/**
* WARNING: If a linked handle or token is burnt, this event will not be emitted.
* Indexers should also take into account token burns through ERC-721 Transfer events to track all unlink actions.
* The `resolveHandle` and `resolveToken` functions will properly reflect the unlink in any case.
*/
event HandleUnlinked(RegistryTypes.Handle handle, RegistryTypes.Token token, uint256 timestamp);
}