Skip to content

Commit

Permalink
feat: mainnet deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed May 20, 2024
1 parent b4eac58 commit 5216c55
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SEND_LOST_GAS_TO=
SEND_LOST_GAS_TO="0x0000000099263f0735D03bB2787cE8FB84f6ED6E"
DEPLOYER_PK=

mumbai=
sepolia=
basesepolia=
Expand Down
26 changes: 21 additions & 5 deletions script/BaseMultiChainDeployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ contract BaseMultiChainDeployer is Script {
// ADD: Add the chain to the enum here. Please use a descriptive name, including if the chain is
// a testnet name in the name. This list contains both mainnets and testnets.
enum Chains {
// Mainnets
Base,
Blast,
Optimism,
// Testnets
Sepolia,
BaseSepolia,
ArbitrumSepolia,
Expand All @@ -29,24 +34,35 @@ contract BaseMultiChainDeployer is Script {

Chains[] chain_list;
Chains[] chain_list_legacy;
Chains[] chain_list_testnet;
Chains[] chain_list_testnet_legacy;

string currentChainKey;

constructor() {
chainKey[Chains.Base] = "base";
chain_list.push(Chains.Base);

chainKey[Chains.Blast] = "blast";
chain_list.push(Chains.Blast);

chainKey[Chains.Optimism] = "optimism";
chain_list.push(Chains.Optimism);

chainKey[Chains.Sepolia] = "sepolia";
chain_list.push(Chains.Sepolia);
chain_list_testnet.push(Chains.Sepolia);

chainKey[Chains.BaseSepolia] = "basesepolia";
chain_list.push(Chains.BaseSepolia);
chain_list_testnet.push(Chains.BaseSepolia);

chainKey[Chains.ArbitrumSepolia] = "arbitrumsepolia";
chain_list.push(Chains.ArbitrumSepolia);
chain_list_testnet.push(Chains.ArbitrumSepolia);

chainKey[Chains.OptimismSepolia] = "optimismsepolia";
chain_list.push(Chains.OptimismSepolia);
chain_list_testnet.push(Chains.OptimismSepolia);

chainKey[Chains.BlastTestnet] = "blasttestnet";
chain_list.push(Chains.BlastTestnet);
chain_list_testnet.push(Chains.BlastTestnet);

// ADD: To deploy Generalised Incentives to a new chain, add 2 lines above this comment:
// chainKey[Chains.OptimismSepolia] = "optimismsepolia"; // What is the external key used to identify this chain? Please add it to .env.example for an RPC key.
Expand Down
12 changes: 12 additions & 0 deletions script/bridge_contracts.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"Wormhole": {
"base": {
"bridge": "0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6",
"escrow": "0x3C5C5436BCa59042cBC835276E51428781366d85"
},
"blast": {
"bridge": "0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6",
"escrow": "0x3C5C5436BCa59042cBC835276E51428781366d85"
},
"optimism": {
"bridge": "0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722",
"escrow": "0x8C8727276725b7Da11fDA6e2646B2d2448E5B3c5"
},
"mumbai": {
"bridge": "0x0CBE91CF822c73C2315FB05100C2F714765d5c20",
"escrow": "0x950fB15FA83B76b739fd27BEa6DA34af0D60eb95"
Expand Down

0 comments on commit 5216c55

Please sign in to comment.