|
|
|
@ -13,6 +13,30 @@ pragma solidity ^0.8.0; |
|
|
|
|
* {ERC1820Implementer}. |
|
|
|
|
*/ |
|
|
|
|
interface IERC777 { |
|
|
|
|
/** |
|
|
|
|
* @dev Emitted when `amount` tokens are created by `operator` and assigned to `to`. |
|
|
|
|
* |
|
|
|
|
* Note that some additional user `data` and `operatorData` can be logged in the event. |
|
|
|
|
*/ |
|
|
|
|
event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Emitted when `operator` destroys `amount` tokens from `account`. |
|
|
|
|
* |
|
|
|
|
* Note that some additional user `data` and `operatorData` can be logged in the event. |
|
|
|
|
*/ |
|
|
|
|
event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Emitted when `operator` is made operator for `tokenHolder` |
|
|
|
|
*/ |
|
|
|
|
event AuthorizedOperator(address indexed operator, address indexed tokenHolder); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Emitted when `operator` is revoked its operator status for `tokenHolder` |
|
|
|
|
*/ |
|
|
|
|
event RevokedOperator(address indexed operator, address indexed tokenHolder); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Returns the name of the token. |
|
|
|
|
*/ |
|
|
|
@ -182,12 +206,4 @@ interface IERC777 { |
|
|
|
|
bytes data, |
|
|
|
|
bytes operatorData |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData); |
|
|
|
|
|
|
|
|
|
event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData); |
|
|
|
|
|
|
|
|
|
event AuthorizedOperator(address indexed operator, address indexed tokenHolder); |
|
|
|
|
|
|
|
|
|
event RevokedOperator(address indexed operator, address indexed tokenHolder); |
|
|
|
|
} |
|
|
|
|