This repository contains a standalone version of the tokenfactory module, forked from the Osmosis blockchain.
The tokenfactory module provides a flexible and powerful way for any account on a Cosmos SDK-based blockchain to create new, native tokens. These tokens are identified by a unique denomination format: factory/{creator address}/{subdenom}.
This module is designed to be easily integrated into other Cosmos SDK applications, providing a core piece of functionality for projects that require dynamic token creation.
- Permissionless Token Creation: Any user can create a new token by paying a creation fee.
- Full Control for Creators: The original creator of a token is designated as its "admin" and has exclusive rights to:
- Mint new tokens of that denomination.
- Burn existing tokens of that denomination.
- Transfer Admin Rights: Change the designated admin to another account, allowing for DAOs or multisigs to manage a token.
- Bank Module Integration: All tokens created by this module are native assets, fully compatible with the standard
x/bankmodule for transfers and balance management.
To integrate this module into your own Cosmos SDK application, you will need to:
- Add this repository to your application's
go.modfile. - Include the
TokenFactorymodule in your application's module manager (app.go). - Configure the necessary keepers and genesis state.
- Run migrations if you are adding this to an existing chain.
This module has been extracted from a live, production blockchain. However, the process of isolating it into a standalone repository may introduce issues. Thorough testing is highly recommended before using this in a production environment.