The Tergo Token is a fungible token implemented on the Internet Computer, adhering to the ICRC-1 standard. This repository provides the necessary components to deploy and interact with the Tergo Token ledger canister.
- local/: Configuration and deployment files for local development and testing.
- mainnet/: Deployment scripts and configurations for deploying the token on the Internet Computer mainnet.
- template/: Template files and examples to assist in setting up the token canister.
- .gitignore: Specifies files and directories to be ignored by Git.
- README.md: This documentation file.
- canister_ids.json: Records the canister IDs for deployed canisters.
- dfx.json: Configuration file for the DFINITY SDK (dfx).
This token utilizes the "ICP Ledger Suite Release 2025-01-21" from the Forge-3 fork of IC (Original release).
This release was made at commit hash 83c1bbf752b879cc5669bc6e66f0c1b529c234e2.
The ledger canister used in this deployment is the ICRC-1 ledger canister, which utilizes a u64 supply size.
Before deploying the Tergo Token, ensure you have the following installed:
- DFINITY SDK (dfx): Installation Guide
- Node.js and npm: Download and Install
To deploy the Tergo Token locally for development and testing:
-
Start the local Internet Computer replica:
dfx start --background
-
Deploy the ICRC-1 ledger canister with the Tergo Token initialization:
./local/deploy.sh
Ensure that the
local/tergo_ledger_canister-init.didfile contains the correct initialization arguments as per the ICRC-1 standard.
To deploy the Tergo Token on the Internet Computer mainnet:
-
Authenticate with the Internet Computer network:
dfx identity use <your-identity>
-
Deploy the ICRC-1 ledger canister:
./mainnet/deploy.sh
Replace
<your-identity>with your dfx identity, and ensure themainnet/tergo_ledger_canister-init.didfile is properly configured for mainnet deployment.
After deployment, you can interact with the Tergo Token ledger canister using the following methods:
DFX provides a straightforward way to call canister methods. For example, to check the token's symbol:
dfx canister call tergo_ledger_canister icrc1_symbolReplace tergo_ledger_canister with the actual canister name or ID if different.
- ICRC-1 Standard Documentation: Detailed specifications of the ICRC-1 token standard. Read More
- Creating a Token on the Internet Computer: Guide to creating and deploying custom tokens. Read More
- ICRC-1 Ledger Setup: Instructions for setting up an ICRC-1 ledger locally. Read More
- Add to wallet: Instructions how to add TERGO token to wallet. Read More
For further assistance, refer to the official Internet Computer documentation or seek support from the developer community.