A standard interface for Dfinity tokens. The standard complies with ERC20 interface specification, and has some improvements to match IC network features.
Improvements
- Compatible with Principal and Account-id as Address, sub-account supported
- Using the pub/sub model for message notifications
- Improving transaction atomicity with a lock/execute two-phase transfer structure
- Scalability of transaction records storage, temporary storage in token canister and permanent storage in external canisters
- Gas mechanism to preventing DDos attack (Supports Cycles and tokens charge mode)
Contents
-
Standard: DRC_standards/DRC20.md at main · iclighthouse/DRC_standards · GitHub
-
Standard(中文): DRC_standards/DRC20-CN.md at main · iclighthouse/DRC_standards · GitHub
-
Comments: DRC20 - A standard interface for Dfinity tokens · Issue #1 · iclighthouse/DRC_standards · GitHub
-
Example: DRC_standards/DRC20/examples/ICLighthouse at main · iclighthouse/DRC_standards · GitHub