Skip to content

Commit

Permalink
add superfluid.tokenlist.json
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTheOne authored Oct 13, 2023
1 parent 6f09a2e commit 5368784
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,23 @@ echo "validated sigma1 list with $(jq '.|length' sigma1.json) elements"
# the testnets list is static for now
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"

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

echo "built non-specific network list with $(jq '.|length' nonspecific.json) elements"

########### merge all ###########

# compile a multi-network list
jq -s '.|flatten' eth.json xdai.json sigma1.json matic.json bsc.json okex.json arbitrum.json optimism.json celo.json avalanche.json zksync.json testnets.json > all.json
jq -s '.|flatten' eth.json xdai.json sigma1.json matic.json bsc.json okex.json arbitrum.json optimism.json celo.json avalanche.json zksync.json testnets.json nonspecific.json > all.json

echo "built all list with $(jq '.|length' all.json) elements"

0 comments on commit 5368784

Please sign in to comment.