Created
January 24, 2019 18:52
-
-
Save stupeters187/3d699ef777c2758fb46ea1177f17fa32 to your computer and use it in GitHub Desktop.
ERC777 Example
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
interface ERC777Token { | |
function name() public view returns (string); | |
function symbol() public view returns (string); | |
function totalSupply() public view returns (uint256); | |
function balanceOf(address owner) public view returns (uint256); | |
function granularity() public view returns (uint256); | |
function defaultOperators() public view returns (address[]); | |
function authorizeOperator(address operator) public; | |
function revokeOperator(address operator) public; | |
function isOperatorFor(address operator, address tokenHolder) public view returns (bool); | |
function send(address to, uint256 amount, bytes data) public; | |
function operatorSend(address from, address to, uint256 amount, bytes data, bytes operatorData) public; | |
function burn(uint256 amount, bytes data) public; | |
function operatorBurn(address from, uint256 amount, bytes data, bytes operatorData) public; | |
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 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