-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added deploy oracle script and a add oracle to registry script (#6)
- Loading branch information
1 parent
3e79e12
commit 302febb
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity 0.8.20; | ||
|
||
import '@script/Registry.s.sol'; | ||
import {CommonMainnet} from '@script/Common.s.sol'; | ||
import {IBaseOracle} from '@interfaces/oracles/IBaseOracle.sol'; | ||
import 'forge-std/console2.sol'; | ||
|
||
// BROADCAST | ||
// source .env && forge script DeployGmxWethMarketRelayerMainnet --with-gas-price 2000000000 -vvvvv --rpc-url $ARB_MAINNET_RPC --broadcast --verify --etherscan-api-key $ARB_ETHERSCAN_API_KEY --account defaultKey --sender $DEFAULT_KEY_PUBLIC_ADDRESS | ||
// SIMULATE | ||
// source .env && forge script DeployGmxWethMarketRelayerMainnet --with-gas-price 2000000000 -vvvvv --rpc-url $ARB_MAINNET_RPC --account defaultKey --sender $DEFAULT_KEY_PUBLIC | ||
contract DeployGmxWethMarketRelayerMainnet is CommonMainnet { | ||
function run() public { | ||
vm.startBroadcast(); | ||
IBaseOracle _gmWethPerpMarketOracle = gmxRelayerFactory.deployGmxGmRelayerWithRegistry( | ||
MAINNET_GMX_WETH_PERP_MARKET_TOKEN, MAINNET_GMX_READER, MAINNET_GMX_DATA_STORE, MAINNET_ORACLE_REGISTRY | ||
); | ||
|
||
console2.log('GM WEth perp market oracle deployed at: ', address(_gmWethPerpMarketOracle)); | ||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters