Skip to content

Commit

Permalink
add monerium tokenlist and fix update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTheOne authored Oct 13, 2023
1 parent 5368784 commit 7fcbb4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,13 @@ echo "validated kovan list with $(jq '.|length' testnets.json) elements"
########### NON-SPECIFIC NETWORK ############

nonSpecificSource1="https://raw.githubusercontent.com/superfluid-finance/tokenlist/main/superfluid.tokenlist.json"
nonSpecificSource2="https://monerium.app/tokens.json"

# here jq just validates the content
curl -f -s $nonSpecificSource1 | jq '.tokens' > nonspecific1.json || true
curl -f -s $nonSpecificSource2 | jq '.tokens' > nonspecific2.json || true
# concat into one file
jq -s '.|flatten' lab10_nonspecific_overlay.json nonspecific1.json > nonspecific0.json
jq -s '.|flatten' nonspecific1.json nonspecific2.json > nonspecific0.json
deduplicate nonspecific0.json nonspecific.json
# cleanup
rm -f nonspecific?.json
Expand Down

0 comments on commit 7fcbb4f

Please sign in to comment.