Created
May 4, 2019 20:50
-
-
Save Mrtenz/b05be4c439b2efed7928a5553d195d3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.7; | |
interface ERC777 { | |
function name() external view returns (string memory); | |
function symbol() external view returns (string memory); | |
function totalSupply() external view returns (uint256); | |
function granularity() external view returns (uint256); | |
function balanceOf(address owner) external view returns (uint256); | |
function send(address to, uint256 amount, bytes calldata data) external; | |
function defaultOperators() external view returns (address[] memory); | |
function isOperatorFor(address operator, address tokenHolder) external view returns (bool); | |
function authorizeOperator(address operator) external; | |
function revokeOperator(address operator) external; | |
function operatorSend( | |
address from, | |
address to, | |
uint256 amount, | |
bytes calldata data, | |
bytes calldata operatorData | |
) external; | |
function burn(uint256 amount, bytes calldata data) external; | |
function operatorBurn(address from, uint256 amount, bytes calldata data, bytes calldata operatorData) external; | |
event Sent( | |
address indexed operator, | |
address indexed from, | |
address indexed to, | |
uint256 amount, | |
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment