token: Move JSON files into contrib directory.

This commit is contained in:
parazyd
2021-12-19 15:13:30 +01:00
parent ba18a15764
commit 21999eea4b
6 changed files with 8 additions and 5 deletions

23
contrib/token/Makefile Normal file
View File

@@ -0,0 +1,23 @@
.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)

View File

@@ -0,0 +1,12 @@
{
"name": "Bitcoin Token List",
"tokens": [
{
"chainId": 1,
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"symbol": "BTC",
"name": "Bitcoin",
"decimals": 8
}
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff