Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).