This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
Adding new custom tokens #510
Labels
0x feedback
0x team feedback
docs
enhancement
New feature or request
help wanted
Extra attention is needed
high priority
Currently a launch-kit backend can support
WHITELIST_ALL_TOKENS='*'
this means all orders for any token will be stored.Querying the SRA endpoint for supported tokens won't list, all tokens in existence as the backend doesn't know of them, it only knows of the tokens it has orders for.
The front end contains a list of tokens it supports, which is currently limited. The ability to add new tokens requires changing 2 files and rebuilding.
Let's try and get these steps down to as little as possible and document the way to change this behaviour. ENV vars are hard to configure this with but when using containers it is also hard to modify a file (for the non advanced users).
Easy mode
Can we mount a config file in?
Can we supply via ENV vars:
Where the symbol is looked up via the contract addresses supplied.
Advanced mode
Document the files that need to be changes and the way to re-build with those changes given the wizard or some other option. Can we mount a config file in?
src/common/markets.ts
src/common/tokens_meta_data.ts
Adding a new token
For example, let's say we wish to add a new token called
DEKZ
.Firstly add the token symbol to the
types.ts
file:Add to the list of KNOWN TOKENS in the
tokens_meta_data.ts
file:Add it to the available markets file
markets.ts
:The text was updated successfully, but these errors were encountered: