Skip to content

Commit

Permalink
💫 Andromeda base goerli release
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredBorders authored Nov 14, 2023
2 parents 788e263 + df0166a commit 36c78b4
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 8 deletions.
14 changes: 12 additions & 2 deletions deployments/Base.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"Engine": "",
"TrustedMulticallForwarder": ""
"Synthetix": {
"Engine": "",
"TrustedMulticallForwarder": ""
},
"Andromeda": {
"Engine": "",
"TrustedMulticallForwarder": ""
},
"Kwenta": {
"Engine": "",
"TrustedMulticallForwarder": ""
}
}
14 changes: 12 additions & 2 deletions deployments/BaseGoerli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"Engine": "0x13eBcd3aD7B4Aa0595Fe57085C62c4f9CaDdB000",
"TrustedMulticallForwarder": "0x5c8bAfBEA063D2E99325bD3FEdb678a1bEf42FDb"
"Synthetix": {
"Engine": "0x13eBcd3aD7B4Aa0595Fe57085C62c4f9CaDdB000",
"TrustedMulticallForwarder": "0x5c8bAfBEA063D2E99325bD3FEdb678a1bEf42FDb"
},
"Andromeda": {
"Engine": "0x95fc22cd9Fe16C0c04DA36aB227b0CC00d56b61f",
"TrustedMulticallForwarder": "0xB502070B4EC27d6809A32fd15D0F635b2F20d595"
},
"Kwenta": {
"Engine": "",
"TrustedMulticallForwarder": ""
}
}
14 changes: 12 additions & 2 deletions deployments/Optimism.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"Engine": "",
"TrustedMulticallForwarder": ""
"Synthetix": {
"Engine": "",
"TrustedMulticallForwarder": ""
},
"Andromeda": {
"Engine": "",
"TrustedMulticallForwarder": ""
},
"Kwenta": {
"Engine": "",
"TrustedMulticallForwarder": ""
}
}
14 changes: 12 additions & 2 deletions deployments/OptimismGoerli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"Engine": "0x3F380f09c14614982637C1d502C6f26F244eC6c3",
"TrustedMulticallForwarder": "0x0C15CB4880684d8E35e97FbFf1630889e4501859"
"Synthetix": {
"Engine": "0x3F380f09c14614982637C1d502C6f26F244eC6c3",
"TrustedMulticallForwarder": "0x0C15CB4880684d8E35e97FbFf1630889e4501859"
},
"Andromeda": {
"Engine": "",
"TrustedMulticallForwarder": ""
},
"Kwenta": {
"Engine": "",
"TrustedMulticallForwarder": ""
}
}
19 changes: 19 additions & 0 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,25 @@ contract DeployBaseGoerli is Setup, BaseGoerliParameters {
}
}

/// @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/Deploy.s.sol:DeployBaseGoerli_Andromeda --rpc-url $BASE_GOERLI_RPC_URL --etherscan-api-key $BASESCAN_API_KEY --broadcast --verify -vvvv`
contract DeployBaseGoerli_Andromeda is Setup, BaseGoerliParameters {
function run() public {
uint256 privateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(privateKey);

Setup.deploySystem({
perpsMarketProxy: PERPS_MARKET_PROXY_ANDROMEDA,
spotMarketProxy: SPOT_MARKET_PROXY_ANDROMEDA,
sUSDProxy: USD_PROXY_ANDROMEDA,
oracle: PYTH
});

vm.stopBroadcast();
}
}

/// @dev steps to deploy and verify on Optimism:
/// (1) load the variables in the .env file via `source .env`
/// (2) run `forge script script/Deploy.s.sol:DeployOptimism --rpc-url $OPTIMISM_RPC_URL --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --broadcast --verify -vvvv`
Expand Down
9 changes: 9 additions & 0 deletions script/utils/parameters/BaseGoerliParameters.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@ contract BaseGoerliParameters {
0x579c612E4Bf390f5504DB9f76b6F5759A3172279;

address public constant PYTH = 0x5955C1478F0dAD753C7E2B4dD1b4bC530C64749f;

address public constant PERPS_MARKET_PROXY_ANDROMEDA =
0xEED61f0CB02f3B38923b1b6EAa939D5f04f431b6;

address public constant SPOT_MARKET_PROXY_ANDROMEDA =
0x41A883a85b1AdE59F41d459Fa550b40fa56429DB;

address public constant USD_PROXY_ANDROMEDA =
0xC9ee9628f23b14483EA413C28712690E8D2dC6a3;
}

0 comments on commit 36c78b4

Please sign in to comment.