Skip to content

Commit

Permalink
chore: add more chains to the deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAustrian committed Sep 12, 2024
1 parent eb15f10 commit af7f6a4
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,51 @@ REPORT_GAS=true
DEPLOYER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000001

INFURA_RPC_ID=

# Testnet RPC URL
SEPOLIA_RPC_URL=https://rpc.sepolia.dev
OPGOERLI_RPC_URL=https://optimism-goerli.gateway.tenderly.co
CELO_TESTNET_RPC_URL=
OPTIMISM_SEPOLIA_RPC_URL=
ARBITRUM_SEPOLIA_RPC_URL=
FTM_TESTNET_RPC_URL=
FILECOIN_CALIBRATION_RPC_URL=
SEI_DEVNET_RPC_URL=
LUKSO_TESTNET_RPC_URL=
ZK_SYNC_TESTNET_RPC_URL=

# Mainnet RPC URL
MAINNET_RPC_URL=https://rpc.ankr.com/eth
OPGOERLI_RPC_URL=https://optimism-goerli.gateway.tenderly.co
FUJI_RPC_URL=
CELO_RPC_URL=
ARBITRUM_RPC_URL=
OPTIMISM_RPC_URL=
BASE_RPC_URL=
POLYGON_RPC_URL=
AVALANCHE_RPC_URL=
SCROLL_RPC_URL=
FTM_RPC_URL=
SEI_RPC_URL=
FILECOIN_RPC_URL=
LUKSO_RPC_URL=
ZK_SYNC_RPC_URL=

# Contract Verification
ETHERSCAN_API_KEY=
OPTIMISTIC_ETHERSCAN_API_KEY=
FTMSCAN_API_KEY=
PGNSCAN_API_KEY=
CELOSCAN_API_KEY=
BASESCAN_API_KEY=
POLYGONSCAN_API_KEY=
ARBITRUMSCAN_API_KEY=
AVASCAN_API_KEY=
SEITRACE_API_KEY=
FUJI_API_KEY=
CELO_API_KEY=
SCROLL_API_KEY=
FILECOIN_API_KEY=
SEI_API_KEY=
LUKSO_API_KEY=
ZKSYNC_API_KEY=

# Defender API keys
DEFENDER_TEAM_API_KEY=
Expand Down
84 changes: 84 additions & 0 deletions script/strategies/deployStrategy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,90 @@ deploy() {
RPC_URL="$MAINNET_RPC_URL"
API_KEY="$ETHERSCAN_API_KEY"
;;
"fuji")
RPC_URL="$FUJI_RPC_URL"
API_KEY="$FUJI_API_KEY"
;;
"celo-testnet")
RPC_URL="$CELO_TESTNET_RPC_URL"
API_KEY="$CELO_API_KEY"
;;
"celo")
RPC_URL="$CELO_RPC_URL"
API_KEY="$CELO_API_KEY"
;;
"arbitrum")
RPC_URL="$ARBITRUM_RPC_URL"
API_KEY="$ARBITRUMSCAN_API_KEY"
;;
"optimism-sepolia")
RPC_URL="$OPTIMISM_SEPOLIA_RPC_URL"
API_KEY="$OPTIMISTIC_ETHERSCAN_API_KEY"
;;
"optimism")
RPC_URL="$OPTIMISM_RPC_URL"
API_KEY="$OPTIMISTIC_ETHERSCAN_API_KEY"
;;
"arbitrum-sepolia")
RPC_URL="$ARBITRUM_SEPOLIA_RPC_URL"
API_KEY="$ARBITRUMSCAN_API_KEY"
;;
"base")
RPC_URL="$BASE_RPC_URL"
API_KEY="$BASESCAN_API_KEY"
;;
"polygon")
RPC_URL="$POLYGON_RPC_URL"
API_KEY="$POLYGONSCAN_API_KEY"
;;
"avalanche")
RPC_URL="$AVALANCHE_RPC_URL"
API_KEY="$AVASCAN_API_KEY"
;;
"scroll")
RPC_URL="$SCROLL_RPC_URL"
API_KEY="$SCROLL_API_KEY"
;;
"ftm-testnet")
RPC_URL="$FTM_TESTNET_RPC_URL"
API_KEY="$FTMSCAN_API_KEY"
;;
"ftm")
RPC_URL="$FTM_RPC_URL"
API_KEY="$FTMSCAN_API_KEY"
;;
"filecoin")
RPC_URL="$FILECOIN_RPC_URL"
API_KEY="$FILECOIN_API_KEY"
;;
"filecoin-calibration")
RPC_URL="$FILECOIN_CALIBRATION_RPC_URL"
API_KEY="$FILECOIN_API_KEY"
;;
"sei-devnet")
RPC_URL="$SEI_DEVNET_RPC_URL"
API_KEY="$SEI_API_KEY"
;;
"sei")
RPC_URL="$SEI_RPC_URL"
API_KEY="$SEI_API_KEY"
;;
"lukso-testnet")
RPC_URL="$LUKSO_TESTNET_RPC_URL"
API_KEY="$LUKSO_API_KEY"
;;
"lukso")
RPC_URL="$LUKSO_RPC_URL"
API_KEY="$LUKSO_API_KEY"
;;
"zkSyncTestnet")
RPC_URL="$ZK_SYNC_TESTNET_RPC_URL"
API_KEY="$ZKSYNC_API_KEY"
;;
"zkSyncMainnet")
RPC_URL="$ZK_SYNC_RPC_URL"
API_KEY="$ZKSYNC_API_KEY"
;;
*)
echo "Error: Unknown chain '$chain'"
exit 1
Expand Down

0 comments on commit af7f6a4

Please sign in to comment.