From 04de0d82d6dd122d1e7194432dbd8fb925a78be5 Mon Sep 17 00:00:00 2001 From: Patrick Gallagher Date: Tue, 23 Jul 2024 21:23:10 -0700 Subject: [PATCH] Deploy pt oracles (#82) * Update registry with new wsteth and reth oracles * cleanup registry * fix coverage action --- .github/workflows/coverage.yml | 5 +++++ script/Registry.s.sol | 31 +++++++++++++++++-------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f6c8bcf..f46f8d5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,6 +6,11 @@ concurrency: group: ${{github.workflow}}-${{github.ref}} cancel-in-progress: true +env: + FOUNDRY_PROFILE: ci + ARB_SEPOLIA_RPC: ${{ secrets.ARB_SEPOLIA_RPC }} + ARB_MAINNET_RPC: ${{ secrets.ARB_MAINNET_RPC }} + jobs: build: runs-on: ubuntu-latest diff --git a/script/Registry.s.sol b/script/Registry.s.sol index 73641cc..cb5fdf9 100644 --- a/script/Registry.s.sol +++ b/script/Registry.s.sol @@ -60,6 +60,16 @@ address constant SEPOLIA_ALGEBRA_FARM_CENTER = 0x04e4A5A4E4D2A5a0fb48ECde0bbD555 // -- Mainnet -- +////////// CONSTANTS ////////// +address constant MAINNET_DEPLOYER = 0xF78dA2A37049627636546E0cFAaB2aD664950917; +uint256 constant MAINNET_ORACLE_DELAY = 1 hours; +uint256 constant MAINNET_CHAINLINK_L2VALIDITY_GRACE_PERIOD = 1 hours; +address constant MAINNET_PROTOCOL_TOKEN = 0x000D636bD52BFc1B3a699165Ef5aa340BEA8939c; +address constant MAINNET_WETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1; +address constant ETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1; +address constant ARB = 0x912CE59144191C1204E64559FE8253a0e49E6548; +address constant ETH_ARB_POOL = 0xe51635ae8136aBAc44906A8f230C2D235E9c195F; + ////////// FACTORIES ////////// address constant MAINNET_CAMELOT_RELAYER_FACTORY = 0x36645830479170265A154Acb726780fdaE41A28F; address constant MAINNET_CHAINLINK_RELAYER_FACTORY = 0x06C32500489C28Bd57c551afd8311Fef20bFaBB5; @@ -75,14 +85,20 @@ address constant MAINNET_CHAINLINK_ETH_USD_RELAYER = 0x3e6C1621f674da311E5764600 address constant MAINNET_CHAINLINK_L2VALIDITY_ETH_USD_RELAYER = 0x4617Feb8B72167c3b8253a1327CddE44e54670Ce; address constant MAINNET_CHAINLINK_RETH_ETH_RELAYER = 0x2b98972Ee61e8928F9dFa6504301296f0e7645Ca; address constant MAINNET_CHAINLINK_WSTETH_ETH_RELAYER = 0x48D3B7605B8dc3Ae231Bd59e40513C9e9Ac6D33a; +address constant MAINNET_CHAINLINK_L2VALIDITY_RETH_ETH_RELAYER = 0x77A15A5b9b7e1DE3EDf797662ADf1e74AF88f8Bd; +address constant MAINNET_CHAINLINK_L2VALIDITY_WSTETH_ETH_RELAYER = 0x4dF7048DC8696832A146ac4Ba8f7a791f258916c; address constant MAINNET_CHAINLINK_ARB_USD_RELAYER = 0x2635f731BB6981E72F92A781578952450759F762; // Denominated address constant MAINNET_DENOMINATED_ODG_USD_ORACLE = 0xE90E52eb676bc00DD85FAE83D2FAC22062F7f470; address constant MAINNET_DENOMINATED_RETH_USD_ORACLE = 0xE0ac4511A617cBee55ECb62667B08DB6864B9d8e; address constant MAINNET_DENOMINATED_WSTETH_USD_ORACLE = 0x8746664d1E0F0e61275EF3B52A8a3b3dFC11CcAb; +address constant MAINNET_DENOMINATED_L2VALIDITY_RETH_USD_ORACLE = 0x35843B3B7838eA15D0cAf2E61AD52C72b95b3Ca7; +address constant MAINNET_DENOMINATED_L2VALIDITY_WSTETH_USD_ORACLE = 0x9C9D6E07b58d1808d29d9dB118dd32b97DBba26A; // Delayed address constant MAINNET_DELAYED_RETH_USD_ORACLE = 0x0859c0B3EF150fAb129E43B74a63da13F5d2Dd35; address constant MAINNET_DELAYED_WSTETH_USD_ORACLE = 0xa8dEa011Ed90C53BA4601868Ccc9a36A6F442499; +address constant MAINNET_DELAYED_L2VALIDITY_RETH_USD_ORACLE = 0xCe962D4Ac9d70776e17C031192Fac64540F1a5D9; +address constant MAINNET_DELAYED_L2VALIDITY_WSTETH_USD_ORACLE = 0xb0ecE3904d69CCC4B7A7EcFEedf96298448B2CB9; address constant MAINNET_DELAYED_ARB_USD_ORACLE = 0xa4e0410E7eb9a02aa9C0505F629d01890c816A77; address constant MAINNET_DELAYED_ETH_USD_ORACLE = 0x562CCE2F4dc383862dC6A926AF10DeFf5fCd172F; @@ -96,19 +112,6 @@ address constant MAINNET_CHAINLINK_WSTETH_ETH_FEED = 0xb523AE262D20A936BC152e602 address constant MAINNET_CHAINLINK_CBETH_ETH_FEED = 0xa668682974E3f121185a3cD94f00322beC674275; address constant MAINNET_CHAINLINK_LINK_USD_FEED = 0x86E53CF1B870786351Da77A57575e79CB55812CB; address constant MAINNET_CHAINLINK_GRT_USD_FEED = 0x0F38D86FceF4955B705F35c9e41d1A16e0637c73; - +address constant MAINNET_CHAINLINK_EZETH_ETH_FEED = 0x11E1836bFF2ce9d6A5bec9cA79dc998210f3886d; // Sequencer for Arbitrum One address constant MAINNET_CHAINLINK_SEQUENCER_FEED = 0xFdB631F5EE196F0ed6FAa767959853A9F217697D; - -////////// PARAMS ////////// -address constant MAINNET_DEPLOYER = 0xF78dA2A37049627636546E0cFAaB2aD664950917; -uint256 constant MAINNET_ORACLE_DELAY = 1 hours; -uint256 constant MAINNET_CHAINLINK_L2VALIDITY_GRACE_PERIOD = 1 hours; -address constant MAINNET_PROTOCOL_TOKEN = 0x000D636bD52BFc1B3a699165Ef5aa340BEA8939c; -address constant MAINNET_WETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1; -address constant ETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1; -address constant ARB = 0x912CE59144191C1204E64559FE8253a0e49E6548; -address constant ETH_ARB_POOL = 0xe51635ae8136aBAc44906A8f230C2D235E9c195F; - -//////RENZO -address constant MAINNET_CHAINLINK_EZETH_ETH_FEED = 0x11E1836bFF2ce9d6A5bec9cA79dc998210f3886d;