From 0698bb5a95779af2bce75ee557d901d4b7a93795 Mon Sep 17 00:00:00 2001 From: Rodolphe Marques Date: Thu, 5 Oct 2023 12:25:54 +0200 Subject: [PATCH] feat: added arbitrum network --- scripts/download-artifacts.sh | 1 + scripts/update-network.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/download-artifacts.sh b/scripts/download-artifacts.sh index 9775b76..2c2cf12 100755 --- a/scripts/download-artifacts.sh +++ b/scripts/download-artifacts.sh @@ -33,6 +33,7 @@ NETWORKS_MAP=( ["goerli"]="5" ["arbitrum-goerli"]="421613" ["gnosis"]="100" + ["arbitrum"]="42161" ) SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) diff --git a/scripts/update-network.sh b/scripts/update-network.sh index dae7005..9f6cca5 100755 --- a/scripts/update-network.sh +++ b/scripts/update-network.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash shopt -s extglob -set -ue +set -u # This script requires the jq and yq clis NETWORK=$1 @@ -13,6 +13,7 @@ declare -A SCAN_URLS=( \ ["matic"]=https://api.polygonscan.com/api \ ["gnosis"]=https://api.gnosisscan.io/api \ ["arbitrum-goerli"]=https://api-goerli.arbiscan.io/api \ + ["arbitrum-one"]=https://api.arbiscan.io/api \ ) @@ -50,7 +51,7 @@ update_start_block() { ) # try not to trigger any rate-limits - sleep 0.5 + sleep 5 else block_number=0 fi