Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reecepbcups/cw20-to-native
Scripts to convert a Cosmos CW20 token to a native token factory denomination
https://github.com/reecepbcups/cw20-to-native
Last synced: 2 months ago
JSON representation
Scripts to convert a Cosmos CW20 token to a native token factory denomination
- Host: GitHub
- URL: https://github.com/reecepbcups/cw20-to-native
- Owner: Reecepbcups
- Created: 2022-09-19T03:54:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T19:18:22.000Z (over 1 year ago)
- Last Synced: 2024-04-14T22:51:04.015Z (9 months ago)
- Language: Python
- Size: 453 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CW20 -> Native Denom
This tool will allow you to take a CW20 snapshot AND/OR convert a CW20 -> a chain's native denomination via an x/tokenfactory module.
**UPDATE** There is now a tokenfactory contract to handle this automatically for you -> https://github.com/CosmosContracts/tokenfactory-contracts
YOu can leverage this with https://juno.reece.sh as well for the Dev & User migrations.## Usage
```bash
cp .env.example .env
# edit .env with the data you want for your CW20 convert.sh script1.sh
# wait for it to save all to CW20s/ folder
# For now only standard CW20s are supported.
# For forked support, contact
#- Discord: Reece#3307 / Twitter: @Reecepbcups_pip install -r requirements/requirements.txt
python3 script2.py# Done! Double check balance.json looks right and then finally mint the tokens to their addresses
sh factory_mint.sh
```## Note
You could also update the TOKEN_FACTORY_MINT_COMMAND (.env.example) to be a `simd add-genesis-account` command as well (If you want to move your CW20 to its own chain).