Skip to content

Commit

Permalink
feat: op sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
ashitakah committed Mar 13, 2024
1 parent 955403c commit d95e2e7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ DEPLOYER_PK=

ETHEREUM_MAINNET_RPC=
ETHEREUM_SEPOLIA_RPC=
POLYGON_MAINNET_RPC=
OPTIMISM_MAINNET_RPC=
OPTIMISM_SEPOLIA_RPC=

ETHEREUM_ETHERSCAN_API_KEY=
POLYGON_ETHERSCAN_API_KEY=
OPTIMISM_ETHERSCAN_API_KEY=
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"deploy:ethereum-mainnet": "bash -c 'source .env && forge script DeployEthereumMainnet --broadcast --private-key $DEPLOYER_PK --verify --etherscan-api-key $ETHEREUM_ETHERSCAN_API_KEY'",
"deploy:ethereum-sepolia": "bash -c 'source .env && forge script DeployEthereumSepolia --broadcast --private-key $DEPLOYER_PK --verify --etherscan-api-key $ETHEREUM_ETHERSCAN_API_KEY'",
"deploy:optimism-mainnet": "bash -c 'source .env && forge script DeployOptimismMainnet --broadcast --private-key $DEPLOYER_PK --verify --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY'",
"deploy:optimism-sepolia": "bash -c 'source .env && forge script DeployOptimismSepolia --broadcast --private-key $DEPLOYER_PK --verify --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY'",
"deploy:polygon-mainnet": "bash -c 'source .env && forge script DeployPolygonMainnet --broadcast --private-key $DEPLOYER_PK --verify --etherscan-api-key $POLYGON_ETHERSCAN_API_KEY --legacy'",
"docs:build": "./build-docs.sh",
"docs:run": "mdbook serve docs",
Expand Down
13 changes: 13 additions & 0 deletions solidity/script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,16 @@ contract DeployOptimismMainnet is Deploy {
vm.createSelectFork(vm.envString('OPTIMISM_MAINNET_RPC'));
}
}

contract DeployOptimismSepolia is Deploy {
function setUp() public {
// Deployer setup
_deployerPk = vm.envUint('DEPLOYER_PK');
owner = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

// Chain specific setup
gelatoAutomate = IAutomate(0x2A6C106ae13B558BB9E2Ec64Bd2f1f7BEFF3A5E0);
keep3rV2 = IKeep3rV2(0xC3377b30feD174e65778e7E1DaFBb7686082B428);
vm.createSelectFork(vm.envString('OPTIMISM_SEPOLIA_RPC'));
}
}

0 comments on commit d95e2e7

Please sign in to comment.