Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iclighthouse/DRC_standards
Dfinity Request for Comments
https://github.com/iclighthouse/DRC_standards
Last synced: about 2 months ago
JSON representation
Dfinity Request for Comments
- Host: GitHub
- URL: https://github.com/iclighthouse/DRC_standards
- Owner: iclighthouse
- License: apache-2.0
- Created: 2021-11-03T08:17:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T15:55:04.000Z (7 months ago)
- Last Synced: 2024-06-21T18:10:11.534Z (3 months ago)
- Language: Motoko
- Size: 677 KB
- Stars: 14
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-icp - iclighthouse/DRC_standards
README
# DRC_standards
Dfinity Request for CommentsIt is recommended to upgrade Tokens or Dexs that use DRC20, DRC202, DRC205 codes to the latest version.
Note: Check the data structure before upgrading to prevent data loss.
## Compatibility Token Standard Namespace Convention
2022-3-2: Drafted.
2022-12-5: Stable standard.
Specification: https://github.com/iclighthouse/DRC_standards/tree/main/CTSNC
## DRC20: Fungible Token Standard
2021-11-13: Drafted standard.
2021-11-23: Implemented the example with motoko.
2022-3-2: Improved compatibility, implemented DIP20 compatible example; added upgrade function.
2022-3-25: Refactoring example code; Using Trie instead of HashMap; Implementing DRC202. (Notes: This version is not compatible with the previous version and upgrading will result in data loss.)
2022-8-11: Examples are compatible with [ICRC-1 standard](https://github.com/dfinity/ICRC-1).
2022-8-17: Method fee() replaces gas(); Upgraded examples.
2022-8-21: Use the "drc20_" prefix as the standard method name.
2022-11-20: Add drc20_transferBatch() method; Modify the length of _data to a maximum of 2KB; Modified Example.
2022-12-5: Modified Example.
2022-12-6: Stable standard.
2023-3-20: Modified Example.
2023-5-17: Modify Example (support ICRC2).
2023-5-31: Fix DRC202.
2023-6-1: Fix Example.
2023-10-20: Upgrade DRC202.
2023-11-2: Fix ICRC2.
2023-11-18: Fix allowance.
2024-02-11: Upgrade DRC20 Example.Standard: [https://github.com/iclighthouse/DRC_standards/tree/main/DRC20](https://github.com/iclighthouse/DRC_standards/tree/main/DRC20)
Example: [https://github.com/iclighthouse/DRC_standards/tree/main/DRC20/examples/ICLighthouse](https://github.com/iclighthouse/DRC_standards/tree/main/DRC20/examples/ICLighthouse)
Comments: [https://github.com/iclighthouse/DRC_standards/issues/1](https://github.com/iclighthouse/DRC_standards/issues/1);## DRC201: Governable Token Standard
TODO: Standard drafting and motoko example implementation
## DRC202: Token Transaction Records Storage Standard
2022-1-3: Drafted standard.
2022-1-17: Implemented the example with motoko.
2022-3-25: Improved some features; provided Motoko module; wrote sample code; improved documentation.
2022-8-11: Upgrade examples.
2022-11-3: Add txnHistory() and txnBytesHistory().
2022-11-20: Upgrade store() for batch storage of records into Bucket of DRC202.
2022-11-28: Add txnHash().
2022-12-5: Add txnBytesHash(); Modify Example.
2023-2-2: Fix type description; Modify Example.
2023-5-17: Add bucketList(); del bucketInfo(); modify Example.
2023-5-17: Completed stable version.
2023-5-22: Add location(); modify Example.
2023-5-31: Fix txnByAccountId().
2023-6-1: del txnBytesHash().
2023-10-20: add ICRC1 record syncing; modify DRC202 Module; support composite queries (moc 0.9.4).
2024-02-11: fix Bloom issue and getArchivedTokenTxns().Standard: [https://github.com/iclighthouse/DRC_standards/tree/main/DRC202](https://github.com/iclighthouse/DRC_standards/tree/main/DRC202)
Example: [https://github.com/iclighthouse/DRC_standards/tree/main/DRC202/examples/ICLighthouse](https://github.com/iclighthouse/DRC_standards/tree/main/DRC202/examples/ICLighthouse)
Comments: [https://github.com/iclighthouse/DRC_standards/issues/4](https://github.com/iclighthouse/DRC_standards/issues/4);## DRC205: Swap Transaction Records Storage Standard
2022-3-10: Drafted standard.
2022-3-25: Implemented the example with motoko.
2022-8-11: Upgrade examples.
2022-9-20: Update the data structure TxnRecord.
2022-11-3: Add txnHistory() and txnBytesHistory().
2022-11-20: Upgrade store() for batch storage of records into Bucket of DRC205.
2022-11-28: Add txnHash(); fix bugs.
2022-12-5: Add txnBytesHash(); Modify Example.
2023-2-2: Fix type description; Modify Example.
2023-5-17: Add bucketList(); del bucketInfo(); modify Example.
2023-5-22: Add location(); modify Example.
2023-5-31: Fix txnByAccountId().
2023-6-1: del txnBytesHash().
2023-10-20: modify DRC202 Module; support composite queries (moc 0.9.4).
2024-02-11: fix Bloom issue and getArchivedDexTxns().Standard: [https://github.com/iclighthouse/DRC_standards/tree/main/DRC205](https://github.com/iclighthouse/DRC_standards/tree/main/DRC205)
Example: [https://github.com/iclighthouse/DRC_standards/tree/main/DRC205/examples/ICLighthouse](https://github.com/iclighthouse/DRC_standards/tree/main/DRC205/examples/ICLighthouse)## DRC207: Monitorable Canister standards
2022-9-20: Implemented the example with motoko.
2023-10-20: Drafted standard.## Community
Twitter: [@ICLighthouse](https://twitter.com/ICLighthouse)
Medium: [https://medium.com/@ICLighthouse](https://medium.com/@ICLighthouse)
Discord: [https://discord.gg/FQZFGGq7zv](https://discord.gg/FQZFGGq7zv)