Skip to content

Commit

Permalink
doc: add instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig committed Apr 15, 2024
1 parent 64937c4 commit 2cb3842
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,32 @@ This is a list of on-chain deployments for this contract:
| `v1.1.0` | 8551 |
| `v1.1.0+taxed001` | 8654 |

## Instructions to Migrate from Terraport/Terraswap Tokens

Terraport and Terraswap offer token factories in order to create and manage tokens in a user-friendly manner. These are stock cw20 contracts. Some might want to migrate from these tokens to this contract. Please follow these instructions:

1. Head to [Galaxy Station](https://station.terraclassic.community/contract) OR [TC Wallet](https://wallet.terra-classic.io/contracts)
2. Make sure Galaxy Extension or Keplr is connected to your tokens admin wallet
3. In the search field type your token contract address address
4. When your token contract appears, click on "Migrate"
5. In the migration dialog use code id 8654
6. Type the migration message (see below these instructions)
7. Hit "Confirm" or "Ok" to sign your transaction

The migration message depends on what tax type your token shall have. Refer to the [instantiation examples] below to find the tax map that suits you. The general structure of the migration message will be:

```
{
"tax_map": {
"admin": " ... ",
"on_transfer": { ... },
"on_send": { ... },
"on_transfer_from": { ... },
"on_send_from": { ... },
}
}
```

## Instantiation Examples

In order to get a feeling for the tax configuration please refer to these configuration examples that cover some of the common use cases. The aim is to have a configuration that is as flexible and extensible as possible. This goes at a certain cost in terms of configuration verbosity.
Expand Down

0 comments on commit 2cb3842

Please sign in to comment.