Creating a New Wrapped CAT
Make your CAT available on Base
Last updated
Make your CAT available on Base
Last updated
As a result of many requests from the Chia community, the team has decided to create a process for making new memecoins available for bridging. The CAT creator is expected to cover the contract deployment fee on Base. Note that following the steps outlined here does NOT guarantee the token will be listed on the official bridge interface - the warp.green team reserves the right to approve/reject pull requests on a case-by-case basis. As such, it's highly recommended to before starting the process.
Note: Before beginning, make sure your token details are consistent and up-to-date on Dexie, SpaceScan, and TibetSwap.
Note 2: An example PR can be found .
The first step in the process required you to deploy a special ERC-20 contract for the future warped CAT. This contract uses the bridge portal contract as an 'oracle' to parse messages from Chia and mint equivalent warped CATs. Moreover, the contract allows users to burn their warped CATs in order to send an 'unlock' message to Chia, where they get the same amount (minus a fee) of real CATs.
To do this, please use the following page:
Note that the CAT symbol needs to match the 'code' on Dexie/SpaceScan (it's not the CAT's full name). On Base, the ERC-20 will have a symbol of 'w[SYMBOL]' and a name of 'Chia Warped [SYMBOL]'.
After deploying the contract, store the contract address, as it will be used in future steps.
The page maintains an up-to-date list of all currently deployed WrappedCAT contracts. Make a PR to add your new contract address in this file:
New entries must be added at the end of the table under 'Base Mainnet.' No special description is needed for the PR, as context will be provided in a future PR. Please name your PR request "Add [SYMBOL]".
The follows sent messages on-chain and tries to parse their contents. Its API is used in the explorer page, which shows pending and finished transfers.
Make a PR to add your token symbol, asset id, and WrappedCAT contract address to this file:
The new entry should be added in the 'tokens' array for the xch-bse CAT bridge, near the end of the JSON file. No special description is needed for the PR, as context will be provided in a future PR. Please name your PR request "Add [SYMBOL]".
Use the definition of BEPE_MEMECOIN_TOKEN_BASE_ONLY
as a template. Make sure the memecoin
attribute of your token is set to true
and that there is an additionalWarning
if the team indicated one is required.
A test transfer is required to add the token to the UI. Before running 'npm run dev', make sure your '.env.local' file contains NEXT_PUBLIC_TESTNET=false
. With the local UI running, do a test bridge to Base (token amount can be small), and then bridge a small amount back. Keep track of the transaction ids as they'll need to be included in the final PR.
It's now time to add your CAT to the . More specifically, you will need to modify the following file:
To make the final PR, please follow this template: . All the fields of the table should be completed with values from previous steps. Please name your PR request "Add [SYMBOL]".
After making the final PR, please , making sure to include a link to the final PR. A lot of checks have to be made before a token can be added to the UI - response times may vary.