File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd) "
4
+
5
+ declare -A rpcUrls
6
+ rpcUrls[" arbitrum" ]=$( mesc url arbitrum_alchemy)
7
+ rpcUrls[" arbitrumSepolia" ]=$( mesc url arbitrumSepolia_alchemy)
8
+ rpcUrls[" arbitrumSepoliaDevnet" ]=$( mesc url arbitrumSepolia_alchemy)
9
+
10
+ for c in arbitrum arbitrumSepolia arbitrumSepoliaDevnet; do
11
+ echo " $c "
12
+ for f in " $SCRIPT_DIR " /../deployments/" $c " /* _Proxy.json; do
13
+ address=$( jq -r .address " $f " )
14
+ block=$( jq -r .receipt.blockNumber " $f " )
15
+ basename " $f "
16
+ results=$( cast logs --from-block " $block " --to-block latest 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2 --address " $address " --rpc-url " ${rpcUrls[$c]} " --json | jq -r .[].data)
17
+ for result in $results ; do
18
+ cast --to-dec " $result "
19
+ done
20
+ echo
21
+ done
22
+ echo " --------------------------------"
23
+ done
You can’t perform that action at this time.
0 commit comments