Skip to content

Commit

Permalink
chore: change snapshots API on contrib/localnet/scripts to consume st…
Browse files Browse the repository at this point in the history
…ate exports (#2819)

* Refactor contrib/rpc and contrib/docker-scripts to use snapshots API

* Replace Snapshot API on localnet scripts for consuming state exports

---------

Co-authored-by: Julian Rubino <[email protected]>
  • Loading branch information
julianrubino and Julian Rubino authored Sep 4, 2024
1 parent 7981fb0 commit ebeedfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/localnet/scripts/import-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ echo "NETWORK: ${NETWORK}"
rm -rf ~/.zetacored/genesis_data
mkdir -p ~/.zetacored/genesis_data
echo "Download Latest State Export"
LATEST_EXPORT_URL=$(curl https://snapshots.zetachain.com/latest-state-export | jq -r ."${NETWORK}")
LATEST_EXPORT_URL=$(curl https://snapshots.rpc.zetachain.com/${NETWORK}/state/latest.json | jq -r '.snapshots[0].link')
echo "LATEST EXPORT URL: ${LATEST_EXPORT_URL}"
wget -q ${LATEST_EXPORT_URL} -O ~/.zetacored/genesis_data/exported-genesis.json

0 comments on commit ebeedfc

Please sign in to comment.