Skip to content

Commit

Permalink
🚀 Add BaseSepolia upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Apr 5, 2024
1 parent c5a94a4 commit 56e3c05
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions script/Upgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {BaseGoerliParameters} from
import {BaseParameters} from "script/utils/parameters/BaseParameters.sol";
import {OptimismGoerliParameters} from
"script/utils/parameters/OptimismGoerliParameters.sol";
import {BaseSepoliaParameters} from
"script/utils/parameters/BaseSepoliaParameters.sol";
import {BaseGoerliKwentaForkParameters} from
"script/utils/parameters/BaseGoerliKwentaForkParameters.sol";
import {OptimismParameters} from
Expand Down Expand Up @@ -62,6 +64,28 @@ contract DeployBase_Synthetix is Setup, BaseParameters {
}
}

/// @dev steps to deploy and verify on Base Goerli:
/// (1) load the variables in the .env file via `source .env`
/// (2) run `forge script script/Upgrade.s.sol:DeployBaseSepolia_Andromeda --rpc-url $BASE_SEPOLIA_RPC_URL --etherscan-api-key $BASESCAN_API_KEY --broadcast --verify -vvvv`
contract DeployBaseSepolia_Andromeda is Setup, BaseSepoliaParameters {
function run() public {
uint256 privateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(privateKey);

Setup.deployImplementation({
perpsMarketProxy: PERPS_MARKET_PROXY_ANDROMEDA,
spotMarketProxy: SPOT_MARKET_PROXY_ANDROMEDA,
sUSDProxy: USD_PROXY_ANDROMEDA,
pDAO: PDAO,
usdc: USDC,
sUSDCId: SUSDC_SPOT_MARKET_ID
});

vm.stopBroadcast();
}
}


/// @dev steps to deploy and verify on Base Goerli:
/// (1) load the variables in the .env file via `source .env`
/// (2) run `forge script script/Upgrade.s.sol:DeployBaseGoerli_Synthetix --rpc-url $BASE_GOERLI_RPC_URL --etherscan-api-key $BASESCAN_API_KEY --broadcast --verify -vvvv`
Expand Down

0 comments on commit 56e3c05

Please sign in to comment.