||
contract AEX11Token { record meta_info = { name : string symbol : string decimals : int} entrypoint meta(): meta_info entrypoint total_supply() external : int entrypoint balance_of(holder: address) : option(int) external default_operators() : list(address) external is_operator_for(operator: address, holder: address) : bool stateful external authorize_operator(operator: address) stateful external revoke_operator(operator: address) entrypoint stateful transfer(to: address, amount: int, data: string) entrypoint stateful op_transfer(from: address, to: address, amount: int, data: string, op_data: string) entrypoint stateful burn(amount: int, data: string) entrypoint stateful op_burn(from: address, amount: int, data: string, op_data: string) datetype event = // operator, from, to, amount ,data, op_data Transfer(indexed address, // operator indexed address, // from address, // to int, // amount string, // data string) // op_data | Mint(indexed address, // operator indexed address, // to int, // amount string, // data string) // op_data | Burned(indexed address, // operator indexed address, // from int, // amount string, // data string) // op_data | AuthorizedOperator(indexed address, // operator indexed address) // holder | RevokedOperator(indexed address, // oprator indexed address) // holder }
The token contract MUST implement the above interface. The implementation MUST follow the specifications described below.
来源:https://github.com/aeternity/AEXs/blob/master/AEXS/aex-11.md
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-26 08:01
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社