- Create an entry for the token in
wormhole-connect/config/<mainnet/testnet>.ts
. - Ensure the
key
value is equal to the object key for easy lookup. - Add decimal values for default, Ethereum, Solana and Sui if applicable (i.e. if they vary from the default value)
- If it's a native gas token, ensure that the wrapped version is also present and linked under
wrappedAsset
- Create a file under
icons/Tokens
labeled<symbol>.tsx
. - Create a React component and paste the svg in the return.
- Modify the svg to comply with react (mostly this is renaming attribute names with hyphens e.g.
view-box
toviewBox
) - Ensure the width and height attributes are present on the root
<svg>
element and max height and width are set (style={{ maxHeight: '100%', maxWidth: '100%' }}
)
Set up your pre-commit hook:
echo "./pre-commit.sh" > .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
chmod +x ./pre-commit.sh
From time to time, the CI may fail with the following error:
New addresses found, please update `SANCTIONED_WALLETS` in `src/consts/wallet.ts`.
This means that the list of sanctioned wallets has changed. To update the list, run the following command, which grabs the updated list of addresses:
$ ts-node wormhole-connect/scripts/ofac/getSdnList.ts
Copy the outputted list and paste it into src/consts/wallet.ts
as the value of SANCTIONED_WALLETS
.
- Make a GitHub pre-release
- Tag it
development@0.1.3-beta.0
- Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
- Make a GitHub release
- Tag it
production@0.1.3
- Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM