forked from ethereum-optimism/superchain-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check-security-configs.sh
22 lines (19 loc) · 750 Bytes
/
check-security-configs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set -e
if [ "$CI" = "true" ]
then
MAINNET_RPC_URL=https://ci-mainnet-l1.optimism.io
SEPOLIA_RPC_URL=https://ci-sepolia-l1.optimism.io
COMPUTE_UNITS_PER_SECOND=320
else
MAINNET_RPC_URL=https://ethereum-mainnet-rpc.allthatnode.com
SEPOLIA_RPC_URL=https://ethereum-sepolia-rpc.allthatnode.com
COMPUTE_UNITS_PER_SECOND=320
fi
forge build
# Note: If RPC is being rate-limited, consider reducing
# --compute-units-per-second or using --fork-retries and
# --fork-retry-backoff to stay under the limit.
forge script CheckSecurityConfigs \
--fork-url=$MAINNET_RPC_URL --compute-units-per-second=$COMPUTE_UNITS_PER_SECOND
forge script CheckSecurityConfigs \
--fork-url=$SEPOLIA_RPC_URL --compute-units-per-second=$COMPUTE_UNITS_PER_SECOND