Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rocklabs-io/ic-token
DIP20: A fungible token standard for the DFINITY Internet Computer.
https://github.com/rocklabs-io/ic-token
dfinity ic internet-computer token
Last synced: 3 months ago
JSON representation
DIP20: A fungible token standard for the DFINITY Internet Computer.
- Host: GitHub
- URL: https://github.com/rocklabs-io/ic-token
- Owner: rocklabs-io
- License: apache-2.0
- Created: 2021-03-26T08:40:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-25T10:18:19.000Z (over 2 years ago)
- Last Synced: 2024-04-19T01:32:37.789Z (7 months ago)
- Topics: dfinity, ic, internet-computer, token
- Language: Rust
- Homepage:
- Size: 276 KB
- Stars: 86
- Watchers: 5
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-icp - rocklabs-io/ic-token
- awesome-motoko - ic-token - An ERC-20 style token standard implements for Motoko. (Applications / Cryptocurrencies)
README
## Introduction
Token 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.
You can find the interface descriptions in the [specification file](./spec.md).
[This branch](https://github.com/dfinance-tech/ic-token/tree/templates) contains code of several other token canister templates.
## Development
You need the latest DFINITY Canister SDK to be able to build and deploy a token canister:
```shell
sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
```Navigate to a the sub directory and start a local development network:
```shell
cd motoko
dfx start --background
```Create canisters:
```shell
dfx canister create --all
```Install code for token canister:
```
dfx builddfx canister install token --argument="(\"\", \"\", \"\", , , , )"
```
e.g.:
```
dfx 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)"
```Refer to `demo.sh` in the corresponding sub directory for more details.
## Contributing
We'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!