{"id":13685196,"url":"https://github.com/rocklabs-io/ic-token","last_synced_at":"2025-05-01T01:30:59.523Z","repository":{"id":39800719,"uuid":"351715422","full_name":"rocklabs-io/ic-token","owner":"rocklabs-io","description":"DIP20: A fungible token standard for the DFINITY Internet Computer. ","archived":false,"fork":false,"pushed_at":"2022-05-25T10:18:19.000Z","size":283,"stargazers_count":88,"open_issues_count":1,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-12T06:34:25.564Z","etag":null,"topics":["dfinity","ic","internet-computer","token"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rocklabs-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-26T08:40:37.000Z","updated_at":"2024-06-26T15:42:39.000Z","dependencies_parsed_at":"2022-08-31T16:21:03.234Z","dependency_job_id":null,"html_url":"https://github.com/rocklabs-io/ic-token","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocklabs-io%2Fic-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocklabs-io%2Fic-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocklabs-io%2Fic-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocklabs-io%2Fic-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocklabs-io","download_url":"https://codeload.github.com/rocklabs-io/ic-token/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251808392,"owners_count":21647283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dfinity","ic","internet-computer","token"],"created_at":"2024-08-02T14:00:45.994Z","updated_at":"2025-05-01T01:30:59.256Z","avatar_url":"https://github.com/rocklabs-io.png","language":"Rust","funding_links":[],"categories":["Lib","Applications"],"sub_categories":["Cryptocurrencies"],"readme":"## Introduction\n\nToken standard is essential for the Internet Computer ecosystem, especially for the decentralized finance(DeFi) system. We implemented an ERC-20 style token standard in both Motoko and Rust, the standard is named DIP20.\n\nYou can find the interface descriptions in the [specification file](./spec.md).\n\n[This branch](https://github.com/dfinance-tech/ic-token/tree/templates) contains code of several other token canister templates.\n\n\n## Development\n\nYou need the latest DFINITY Canister SDK to be able to build and deploy a token canister:\n\n```shell\nsh -ci \"$(curl -fsSL https://sdk.dfinity.org/install.sh)\"\n```\n\nNavigate to a the sub directory and start a local development network:\n\n```shell\ncd motoko\ndfx start --background\n```\n\nCreate canisters:\n\n```shell\ndfx canister create --all\n```\n\nInstall code for token canister:\n\n```\ndfx build\n\ndfx canister install token --argument=\"(\\\"\u003cLOGO\u003e\\\", \\\"\u003cNAME\u003e\\\", \\\"\u003cSYMBOL\u003e\\\", \u003cDECIMALS\u003e, \u003cTOTAL_SUPPLY\u003e, \u003cYOUR_PRINCIPAL_ID\u003e, \u003cFEE\u003e)\"\n```\ne.g.:\n```\ndfx canister install token --argument=\"(\\\"data:image/jpeg;base64,...\\\", \\\"DFinance Coin\\\", \\\"DFC\\\", 8, 10000000000000000, principal \\\"4qehi-lqyo6-afz4c-hwqwo-lubfi-4evgk-5vrn5-rldx2-lheha-xs7a4-gae\\\", 10000)\"\n```\n\nRefer to `demo.sh` in the corresponding sub directory for more details.\n\n\n\n## Contributing\n\nWe'd like to collaborate with the community to provide better token standard implementation for the developers on the IC, if you have some ideas you'd like to discuss, submit an issue, if you want to improve the code or you made a different implementation, make a pull request!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocklabs-io%2Fic-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocklabs-io%2Fic-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocklabs-io%2Fic-token/lists"}