Skip to content

Commit

Permalink
chore: add deployment config for OP Sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-r4bbit committed Dec 1, 2023
1 parent b6f50cf commit e6a3532
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions script/DeploymentConfig.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ contract DeploymentConfig is Script {
// solhint-disable-next-line var-name-mixedcase
address internal SNT_ADDRESS_GOERLI = 0x3D6AFAA395C31FCd391fE3D562E75fe9E8ec7E6a;
// solhint-disable-next-line var-name-mixedcase
address internal SNT_ADDRESS_SEPOLIA = 0xE452027cdEF746c7Cd3DB31CB700428b16cD8E51;
// solhint-disable-next-line var-name-mixedcase
address internal STANDARD_BRIDGE_ADDRESS = 0x4200000000000000000000000000000000000010;

constructor(address _broadcaster) {
if (_broadcaster == address(0)) revert DeploymentConfig_InvalidDeployerAddress();
deployer = _broadcaster;
if (block.chainid == 31_337) {
activeNetworkConfig = getOrCreateAnvilEthConfig();
} else if (block.chainid == 11_155_420) {
activeNetworkConfig = getOptimismSepoliaConfig();
} else if (block.chainid == 420) {
activeNetworkConfig = getOptimismGoerliConfig();
} else if (block.chainid == 10) {
Expand Down Expand Up @@ -76,6 +80,20 @@ contract DeploymentConfig is Script {
});
}

function getOptimismSepoliaConfig() public view returns (NetworkConfig memory) {
return NetworkConfig({
deployer: deployer,
bridgeAddress: STANDARD_BRIDGE_ADDRESS,
remoteTokenAddress: SNT_ADDRESS_SEPOLIA,
parentTokenAddress: address(0),
parentSnapShotBlock: 0,
tokenName: "Status Test Token",
decimals: 18,
tokenSymbol: "STT",
transferEnabled: true
});
}

function getOptimismConfig() public view returns (NetworkConfig memory) {
return NetworkConfig({
deployer: deployer,
Expand Down

0 comments on commit e6a3532

Please sign in to comment.