Files
darkfi/contrib/token/Makefile
2021-12-19 16:45:03 +01:00

24 lines
486 B
Makefile

.POSIX:
DLTOOL = wget -nv --show-progress -O-
LISTS = \
erc20_token_list.json \
solana_token_list.json
ERC20 = https://tokens.coingecko.com/uniswap/all.json
SOL = https://github.com/solana-labs/token-list/raw/main/src/tokens/solana.tokenlist.json
all: $(LISTS)
erc20_token_list.json:
$(DLTOOL) $(ERC20) > $@
solana_token_list.json:
$(DLTOOL) $(SOL) | sed \
-e 's@"symbol": "BTC"@"symbol": "SBTC"@' \
-e 's@"symbol": "ETH"@"symbol": "SETH"@' \
> $@
.PHONY: all $(LISTS)