Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ ethereum_sepolia ="${RPC_ETHEREUM_SEPOLIA}"
optimism_sepolia = "${RPC_OPTIMISM_SEPOLIA}"
polygon_mumbai = "${RPC_POLYGON_MUMBAI}"
base_sepolia = "${RPC_BASE_SEPOLIA}"
celo = "${RPC_CELO_MAINNET}"
celo_sepolia = "${RPC_CELO_SEPOLIA}"

[profile.ci_sizes]
optimizer_runs = 550
Expand Down
13 changes: 11 additions & 2 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ contract DeployScript is Script, Sphinx {
function configureSphinx() public override {
// TODO: Update to contain revnet devs.
sphinxConfig.projectName = "revnet-core-v5";
sphinxConfig.mainnets = ["ethereum", "optimism", "base", "arbitrum"];
sphinxConfig.testnets = ["ethereum_sepolia", "optimism_sepolia", "base_sepolia", "arbitrum_sepolia"];
sphinxConfig.mainnets = ["ethereum", "optimism", "base", "arbitrum", "celo"];
sphinxConfig.testnets = ["ethereum_sepolia", "optimism_sepolia", "base_sepolia", "arbitrum_sepolia", "celo_sepolia"];
}

function run() public {
Expand Down Expand Up @@ -263,6 +263,15 @@ contract DeployScript is Script, Sphinx {

suckerDeployerConfigurations[2] =
JBSuckerDeployerConfig({deployer: suckers.arbitrumDeployer, mappings: tokenMappings});
} else if (block.chainid == 42_220) {
// Celo Mainnet -> L1 (via CCIP). CCIP not available on Celo Sepolia.
suckerDeployerConfigurations = new JBSuckerDeployerConfig[](1);
suckerDeployerConfigurations[0] =
JBSuckerDeployerConfig({deployer: suckers.celoDeployer, mappings: tokenMappings});

if (address(suckerDeployerConfigurations[0].deployer) == address(0)) {
revert("Celo > L1 CCIP Sucker is not configured");
}
} else {
suckerDeployerConfigurations = new JBSuckerDeployerConfig[](1);
// L2 -> Mainnet
Expand Down