Commit fabf7cba authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

getting-started: modernize (#11436)

Make the getting started script modern by adding recent hardfork config
and also make the script runnable from any directory.
parent 9bfd2b86
......@@ -5,6 +5,9 @@
# need to have the getting-started.json committed to the repo since it's an
# invalid JSON file when not filled in, which is annoying.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
CONTRACTS_BASE=$(dirname "$(dirname "$SCRIPT_DIR")")
reqenv() {
if [ -z "${!1}" ]; then
echo "Error: environment variable '$1' is undefined"
......@@ -80,6 +83,9 @@ config=$(cat << EOL
"l2GenesisBlockGasLimit": "0x1c9c380",
"l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
"l2GenesisRegolithTimeOffset": "0x0",
"l2GenesisCanyonTimeOffset": "0x0",
"l2GenesisDeltaTimeOffset": "0x0",
"l2GenesisEcotoneTimeOffset": "0x0",
"eip1559Denominator": 50,
"eip1559DenominatorCanyon": 250,
......@@ -110,4 +116,4 @@ EOL
)
# Write the config file
echo "$config" > deploy-config/getting-started.json
echo "$config" > "$CONTRACTS_BASE/deploy-config/getting-started.json"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment