mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
token: Move JSON files into contrib directory.
This commit is contained in:
23
contrib/token/Makefile
Normal file
23
contrib/token/Makefile
Normal 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)
|
||||
12
contrib/token/bitcoin_token_list.json
Normal file
12
contrib/token/bitcoin_token_list.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "Bitcoin Token List",
|
||||
"tokens": [
|
||||
{
|
||||
"chainId": 1,
|
||||
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
|
||||
"symbol": "BTC",
|
||||
"name": "Bitcoin",
|
||||
"decimals": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
1
contrib/token/erc20_token_list.json
Normal file
1
contrib/token/erc20_token_list.json
Normal file
File diff suppressed because one or more lines are too long
19412
contrib/token/solana_token_list.json
Normal file
19412
contrib/token/solana_token_list.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user