From 3cf11a64f4333fad9b1abcd9df001aeb15a35620 Mon Sep 17 00:00:00 2001 From: Maximilian Langenfeld <15726643+ezdac@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:00:37 +0200 Subject: [PATCH] Include CustomGasToken config in getting-started --- .envrc.example | 8 ++++++++ .../scripts/getting-started/config-vars-celo.sh | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.envrc.example b/.envrc.example index d917ad07ab18c..bd1473b503ce7 100644 --- a/.envrc.example +++ b/.envrc.example @@ -73,3 +73,11 @@ export FUNDS_DEV_ACCOUNTS=false export USE_PLASMA=false # Set to false if migrating state from a Celo L1. True for new testnets export DEPLOY_CELO_CONTRACTS=false + +export USE_CUSTOM_GAS_TOKEN=true +# Set to "0x0000000000000000000000000000000000000000" when the contract +# should get deployed (via create2) on L1 as part of the deploy script. +# Set to the deployed contract address when already deployed on L1 +# This only works when USE_CUSTOM_GAS_TOKEN=true +export CUSTOM_GAS_TOKEN_ADDRESS=0x0000000000000000000000000000000000000000 + diff --git a/packages/contracts-bedrock/scripts/getting-started/config-vars-celo.sh b/packages/contracts-bedrock/scripts/getting-started/config-vars-celo.sh index d7b3923ead6ab..b525ba9b51238 100755 --- a/packages/contracts-bedrock/scripts/getting-started/config-vars-celo.sh +++ b/packages/contracts-bedrock/scripts/getting-started/config-vars-celo.sh @@ -26,6 +26,8 @@ reqenv "L2_BLOCK_TIME" reqenv "FUNDS_DEV_ACCOUNTS" reqenv "USE_PLASMA" reqenv "DEPLOY_CELO_CONTRACTS" +reqenv "USE_CUSTOM_GAS_TOKEN" +reqenv "CUSTOM_GAS_TOKEN_ADDRESS" # Get the finalized block timestamp and hash block=$(cast block finalized --rpc-url "$L1_RPC_URL") @@ -126,7 +128,10 @@ config=$(cat << EOL "daChallengeWindow": 3600, "daResolveWindow": 3600, "daBondSize": 1000000, - "daResolverRefundPercentage": 0 + "daResolverRefundPercentage": 0, + + "useCustomGasToken": $USE_CUSTOM_GAS_TOKEN, + "customGasTokenAddress": $CUSTOM_GAS_TOKEN_ADDRESS } EOL )