Move event definition at the top of IERC20, IERC777 and IERC1820 (#3228)

This commit is contained in:
Jean Cvllr
2022-03-30 16:36:37 +01:00
committed by GitHub
parent e7719ded56
commit 3f49408fb6
3 changed files with 42 additions and 26 deletions

View File

@ -18,6 +18,10 @@ pragma solidity ^0.8.0;
* For an in-depth explanation and source code analysis, see the EIP text.
*/
interface IERC1820Registry {
event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);
event ManagerChanged(address indexed account, address indexed newManager);
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
@ -109,8 +113,4 @@ interface IERC1820Registry {
* @return True if `account` implements `interfaceId`, false otherwise.
*/
function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);
event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);
event ManagerChanged(address indexed account, address indexed newManager);
}