From c89f91fb07adf1f1685efe7ed36b1b5103b0453c Mon Sep 17 00:00:00 2001 From: sendra Date: Fri, 27 Oct 2023 10:06:51 +0200 Subject: [PATCH] fix: add protocol guardian --- scripts/configs/networks/arbitrum.ts | 1 + scripts/configs/networks/avalanche.ts | 1 + scripts/configs/networks/base.ts | 1 + scripts/configs/networks/ethereum.ts | 1 + scripts/configs/networks/gnosis.ts | 1 + scripts/configs/networks/metis.ts | 1 + scripts/configs/networks/optimism.ts | 1 + scripts/configs/networks/polygon.ts | 1 + scripts/configs/types.ts | 1 + src/MiscArbitrum.sol | 3 +++ src/MiscAvalanche.sol | 3 +++ src/MiscBase.sol | 3 +++ src/MiscEthereum.sol | 3 +++ src/MiscGnosis.sol | 3 +++ src/MiscMetis.sol | 3 +++ src/MiscOptimism.sol | 3 +++ src/MiscPolygon.sol | 3 +++ src/ts/MiscArbitrum.ts | 3 +++ src/ts/MiscAvalanche.ts | 3 +++ src/ts/MiscBase.ts | 3 +++ src/ts/MiscEthereum.ts | 3 +++ src/ts/MiscGnosis.ts | 3 +++ src/ts/MiscMetis.ts | 3 +++ src/ts/MiscOptimism.ts | 3 +++ src/ts/MiscPolygon.ts | 3 +++ 25 files changed, 57 insertions(+) diff --git a/scripts/configs/networks/arbitrum.ts b/scripts/configs/networks/arbitrum.ts index dc68d3d1..f0f00278 100644 --- a/scripts/configs/networks/arbitrum.ts +++ b/scripts/configs/networks/arbitrum.ts @@ -9,5 +9,6 @@ export const arbitrumAddresses: NetworkAddresses = { TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29', PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476', CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32', + PROTOCOL_GUARDIAN: '0xbbd9f90699c1fa0d7a65870d241dd1f1217c96eb', }, }; diff --git a/scripts/configs/networks/avalanche.ts b/scripts/configs/networks/avalanche.ts index e7e30c41..6b84c0a6 100644 --- a/scripts/configs/networks/avalanche.ts +++ b/scripts/configs/networks/avalanche.ts @@ -9,5 +9,6 @@ export const avalancheAddresses: NetworkAddresses = { TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29', PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476', CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32', + PROTOCOL_GUARDIAN: '0xa35b76E4935449E33C56aB24b23fcd3246f13470', }, }; diff --git a/scripts/configs/networks/base.ts b/scripts/configs/networks/base.ts index 01365222..3fa3b3e0 100644 --- a/scripts/configs/networks/base.ts +++ b/scripts/configs/networks/base.ts @@ -9,5 +9,6 @@ export const baseAddresses: NetworkAddresses = { TRANSPARENT_PROXY_FACTORY: '0x05225Cd708bCa9253789C1374e4337a019e99D56', PROXY_ADMIN: '0xc85b1E333aecc99340b2320493Fe2d22b8734795', CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32', + PROTOCOL_GUARDIAN: '0x9e10C0A1Eb8FF6a0AaA53a62C7a338f35D7D9a2A', }, }; diff --git a/scripts/configs/networks/ethereum.ts b/scripts/configs/networks/ethereum.ts index fe9d0427..f043221f 100644 --- a/scripts/configs/networks/ethereum.ts +++ b/scripts/configs/networks/ethereum.ts @@ -24,5 +24,6 @@ export const ethereumAddresses: NetworkAddresses<{ TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29', PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476', CREATE_3_FACTORY: '0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7', + PROTOCOL_GUARDIAN: '0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633', }, }; diff --git a/scripts/configs/networks/gnosis.ts b/scripts/configs/networks/gnosis.ts index c3ab7da7..3216db0e 100644 --- a/scripts/configs/networks/gnosis.ts +++ b/scripts/configs/networks/gnosis.ts @@ -8,5 +8,6 @@ export const gnosisAddresses: NetworkAddresses = { TRANSPARENT_PROXY_FACTORY: '0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A', PROXY_ADMIN: '0xe892E40C92c2E4D281Be59b2E6300F271d824E75', CREATE_3_FACTORY: '0x2cC41488f4494c5e11cB6cbA82199442B9f495B6', + PROTOCOL_GUARDIAN: '0xF163b8698821cefbD33Cf449764d69Ea445cE23D', }, }; diff --git a/scripts/configs/networks/metis.ts b/scripts/configs/networks/metis.ts index 725135ac..69b54ce2 100644 --- a/scripts/configs/networks/metis.ts +++ b/scripts/configs/networks/metis.ts @@ -8,5 +8,6 @@ export const metisAddresses: NetworkAddresses = { TRANSPARENT_PROXY_FACTORY: '0x1dad86dC5990BCE5bFe3A150A4E0ece990d6EBcB', PROXY_ADMIN: '0x1CabD986cBAbDf12E00128DFf03C80ee62C4fd97', CREATE_3_FACTORY: '0x2e649f6b54B07E210b31c9cC2eB8a0d5997c3D4A', + PROTOCOL_GUARDIAN: '0xF6Db48C5968A9eBCB935786435530f28e32Cc501', }, }; diff --git a/scripts/configs/networks/optimism.ts b/scripts/configs/networks/optimism.ts index fc72835f..70494221 100644 --- a/scripts/configs/networks/optimism.ts +++ b/scripts/configs/networks/optimism.ts @@ -9,5 +9,6 @@ export const optimismAddresses: NetworkAddresses = { TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29', PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476', CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32', + PROTOCOL_GUARDIAN: '0xe50c8c619d05ff98b22adf991f17602c774f785c', }, }; diff --git a/scripts/configs/networks/polygon.ts b/scripts/configs/networks/polygon.ts index ac735bdc..cb4a355a 100644 --- a/scripts/configs/networks/polygon.ts +++ b/scripts/configs/networks/polygon.ts @@ -11,5 +11,6 @@ export const polygonAddresses: NetworkAddresses<{AAVE_POL_ETH_BRIDGE: Hex}> = { TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29', PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476', CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32', + PROTOCOL_GUARDIAN: '0x1450F2898D6bA2710C98BE9CAF3041330eD5ae58', }, }; diff --git a/scripts/configs/types.ts b/scripts/configs/types.ts index 5697099a..d808ee6b 100644 --- a/scripts/configs/types.ts +++ b/scripts/configs/types.ts @@ -95,5 +95,6 @@ export interface NetworkAddresses = {}> { TRANSPARENT_PROXY_FACTORY?: Hex; PROXY_ADMIN?: Hex; CREATE_3_FACTORY?: Hex; + PROTOCOL_GUARDIAN?: Hex; } & T; } diff --git a/src/MiscArbitrum.sol b/src/MiscArbitrum.sol index 3b69a899..3e9d6108 100644 --- a/src/MiscArbitrum.sol +++ b/src/MiscArbitrum.sol @@ -14,4 +14,7 @@ library MiscArbitrum { // https://arbiscan.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 address internal constant CREATE_3_FACTORY = 0x3b56998Ec06477704622ca8e2eA1b4db134cec32; + + // https://arbiscan.io/address/0xbbd9f90699c1FA0D7A65870D241DD1f1217c96Eb + address internal constant PROTOCOL_GUARDIAN = 0xbbd9f90699c1FA0D7A65870D241DD1f1217c96Eb; } diff --git a/src/MiscAvalanche.sol b/src/MiscAvalanche.sol index 7e82ed02..11ee83e9 100644 --- a/src/MiscAvalanche.sol +++ b/src/MiscAvalanche.sol @@ -14,4 +14,7 @@ library MiscAvalanche { // https://snowtrace.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 address internal constant CREATE_3_FACTORY = 0x3b56998Ec06477704622ca8e2eA1b4db134cec32; + + // https://snowtrace.io/address/0xa35b76E4935449E33C56aB24b23fcd3246f13470 + address internal constant PROTOCOL_GUARDIAN = 0xa35b76E4935449E33C56aB24b23fcd3246f13470; } diff --git a/src/MiscBase.sol b/src/MiscBase.sol index e6bd3edc..9c19520c 100644 --- a/src/MiscBase.sol +++ b/src/MiscBase.sol @@ -14,4 +14,7 @@ library MiscBase { // https://basescan.org/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 address internal constant CREATE_3_FACTORY = 0x3b56998Ec06477704622ca8e2eA1b4db134cec32; + + // https://basescan.org/address/0x9e10C0A1Eb8FF6a0AaA53a62C7a338f35D7D9a2A + address internal constant PROTOCOL_GUARDIAN = 0x9e10C0A1Eb8FF6a0AaA53a62C7a338f35D7D9a2A; } diff --git a/src/MiscEthereum.sol b/src/MiscEthereum.sol index ab59af25..74954845 100644 --- a/src/MiscEthereum.sol +++ b/src/MiscEthereum.sol @@ -33,4 +33,7 @@ library MiscEthereum { // https://etherscan.io/address/0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7 address internal constant CREATE_3_FACTORY = 0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7; + + // https://etherscan.io/address/0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633 + address internal constant PROTOCOL_GUARDIAN = 0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633; } diff --git a/src/MiscGnosis.sol b/src/MiscGnosis.sol index fdce462c..ff5c3c69 100644 --- a/src/MiscGnosis.sol +++ b/src/MiscGnosis.sol @@ -11,4 +11,7 @@ library MiscGnosis { // https://blockscout.com/xdai/mainnet/address/0x2cC41488f4494c5e11cB6cbA82199442B9f495B6 address internal constant CREATE_3_FACTORY = 0x2cC41488f4494c5e11cB6cbA82199442B9f495B6; + + // https://blockscout.com/xdai/mainnet/address/0xF163b8698821cefbD33Cf449764d69Ea445cE23D + address internal constant PROTOCOL_GUARDIAN = 0xF163b8698821cefbD33Cf449764d69Ea445cE23D; } diff --git a/src/MiscMetis.sol b/src/MiscMetis.sol index 2bda9ce9..80e7d8de 100644 --- a/src/MiscMetis.sol +++ b/src/MiscMetis.sol @@ -11,4 +11,7 @@ library MiscMetis { // https://andromeda-explorer.metis.io/address/0x2e649f6b54B07E210b31c9cC2eB8a0d5997c3D4A address internal constant CREATE_3_FACTORY = 0x2e649f6b54B07E210b31c9cC2eB8a0d5997c3D4A; + + // https://andromeda-explorer.metis.io/address/0xF6Db48C5968A9eBCB935786435530f28e32Cc501 + address internal constant PROTOCOL_GUARDIAN = 0xF6Db48C5968A9eBCB935786435530f28e32Cc501; } diff --git a/src/MiscOptimism.sol b/src/MiscOptimism.sol index fa059de4..afcedee2 100644 --- a/src/MiscOptimism.sol +++ b/src/MiscOptimism.sol @@ -14,4 +14,7 @@ library MiscOptimism { // https://explorer.optimism.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 address internal constant CREATE_3_FACTORY = 0x3b56998Ec06477704622ca8e2eA1b4db134cec32; + + // https://explorer.optimism.io/address/0xE50c8C619d05ff98b22Adf991F17602C774F785c + address internal constant PROTOCOL_GUARDIAN = 0xE50c8C619d05ff98b22Adf991F17602C774F785c; } diff --git a/src/MiscPolygon.sol b/src/MiscPolygon.sol index 11ef271e..84dceb5f 100644 --- a/src/MiscPolygon.sol +++ b/src/MiscPolygon.sol @@ -17,4 +17,7 @@ library MiscPolygon { // https://polygonscan.com/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 address internal constant CREATE_3_FACTORY = 0x3b56998Ec06477704622ca8e2eA1b4db134cec32; + + // https://polygonscan.com/address/0x1450F2898D6bA2710C98BE9CAF3041330eD5ae58 + address internal constant PROTOCOL_GUARDIAN = 0x1450F2898D6bA2710C98BE9CAF3041330eD5ae58; } diff --git a/src/ts/MiscArbitrum.ts b/src/ts/MiscArbitrum.ts index c5b2d90a..2c5b0f34 100644 --- a/src/ts/MiscArbitrum.ts +++ b/src/ts/MiscArbitrum.ts @@ -10,3 +10,6 @@ export const PROXY_ADMIN = '0xD3cF979e676265e4f6379749DECe4708B9A22476'; // https://arbiscan.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 export const CREATE_3_FACTORY = '0x3b56998Ec06477704622ca8e2eA1b4db134cec32'; + +// https://arbiscan.io/address/0xbbd9f90699c1FA0D7A65870D241DD1f1217c96Eb +export const PROTOCOL_GUARDIAN = '0xbbd9f90699c1FA0D7A65870D241DD1f1217c96Eb'; diff --git a/src/ts/MiscAvalanche.ts b/src/ts/MiscAvalanche.ts index 1a15d1e0..ef89e0f9 100644 --- a/src/ts/MiscAvalanche.ts +++ b/src/ts/MiscAvalanche.ts @@ -10,3 +10,6 @@ export const PROXY_ADMIN = '0xD3cF979e676265e4f6379749DECe4708B9A22476'; // https://snowtrace.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 export const CREATE_3_FACTORY = '0x3b56998Ec06477704622ca8e2eA1b4db134cec32'; + +// https://snowtrace.io/address/0xa35b76E4935449E33C56aB24b23fcd3246f13470 +export const PROTOCOL_GUARDIAN = '0xa35b76E4935449E33C56aB24b23fcd3246f13470'; diff --git a/src/ts/MiscBase.ts b/src/ts/MiscBase.ts index 90576824..91974448 100644 --- a/src/ts/MiscBase.ts +++ b/src/ts/MiscBase.ts @@ -10,3 +10,6 @@ export const PROXY_ADMIN = '0xc85b1E333aecc99340b2320493Fe2d22b8734795'; // https://basescan.org/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 export const CREATE_3_FACTORY = '0x3b56998Ec06477704622ca8e2eA1b4db134cec32'; + +// https://basescan.org/address/0x9e10C0A1Eb8FF6a0AaA53a62C7a338f35D7D9a2A +export const PROTOCOL_GUARDIAN = '0x9e10C0A1Eb8FF6a0AaA53a62C7a338f35D7D9a2A'; diff --git a/src/ts/MiscEthereum.ts b/src/ts/MiscEthereum.ts index 795fb64e..f58bfff9 100644 --- a/src/ts/MiscEthereum.ts +++ b/src/ts/MiscEthereum.ts @@ -25,3 +25,6 @@ export const PROXY_ADMIN = '0xD3cF979e676265e4f6379749DECe4708B9A22476'; // https://etherscan.io/address/0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7 export const CREATE_3_FACTORY = '0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7'; + +// https://etherscan.io/address/0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633 +export const PROTOCOL_GUARDIAN = '0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633'; diff --git a/src/ts/MiscGnosis.ts b/src/ts/MiscGnosis.ts index 7bf906ba..0804c363 100644 --- a/src/ts/MiscGnosis.ts +++ b/src/ts/MiscGnosis.ts @@ -7,3 +7,6 @@ export const PROXY_ADMIN = '0xe892E40C92c2E4D281Be59b2E6300F271d824E75'; // https://blockscout.com/xdai/mainnet/address/0x2cC41488f4494c5e11cB6cbA82199442B9f495B6 export const CREATE_3_FACTORY = '0x2cC41488f4494c5e11cB6cbA82199442B9f495B6'; + +// https://blockscout.com/xdai/mainnet/address/0xF163b8698821cefbD33Cf449764d69Ea445cE23D +export const PROTOCOL_GUARDIAN = '0xF163b8698821cefbD33Cf449764d69Ea445cE23D'; diff --git a/src/ts/MiscMetis.ts b/src/ts/MiscMetis.ts index 2e9ea5a6..b5a63966 100644 --- a/src/ts/MiscMetis.ts +++ b/src/ts/MiscMetis.ts @@ -7,3 +7,6 @@ export const PROXY_ADMIN = '0x1CabD986cBAbDf12E00128DFf03C80ee62C4fd97'; // https://andromeda-explorer.metis.io/address/0x2e649f6b54B07E210b31c9cC2eB8a0d5997c3D4A export const CREATE_3_FACTORY = '0x2e649f6b54B07E210b31c9cC2eB8a0d5997c3D4A'; + +// https://andromeda-explorer.metis.io/address/0xF6Db48C5968A9eBCB935786435530f28e32Cc501 +export const PROTOCOL_GUARDIAN = '0xF6Db48C5968A9eBCB935786435530f28e32Cc501'; diff --git a/src/ts/MiscOptimism.ts b/src/ts/MiscOptimism.ts index 5f8b8aa2..1ba4758d 100644 --- a/src/ts/MiscOptimism.ts +++ b/src/ts/MiscOptimism.ts @@ -10,3 +10,6 @@ export const PROXY_ADMIN = '0xD3cF979e676265e4f6379749DECe4708B9A22476'; // https://explorer.optimism.io/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 export const CREATE_3_FACTORY = '0x3b56998Ec06477704622ca8e2eA1b4db134cec32'; + +// https://explorer.optimism.io/address/0xE50c8C619d05ff98b22Adf991F17602C774F785c +export const PROTOCOL_GUARDIAN = '0xE50c8C619d05ff98b22Adf991F17602C774F785c'; diff --git a/src/ts/MiscPolygon.ts b/src/ts/MiscPolygon.ts index b431baf2..bd5e361d 100644 --- a/src/ts/MiscPolygon.ts +++ b/src/ts/MiscPolygon.ts @@ -13,3 +13,6 @@ export const PROXY_ADMIN = '0xD3cF979e676265e4f6379749DECe4708B9A22476'; // https://polygonscan.com/address/0x3b56998Ec06477704622ca8e2eA1b4db134cec32 export const CREATE_3_FACTORY = '0x3b56998Ec06477704622ca8e2eA1b4db134cec32'; + +// https://polygonscan.com/address/0x1450F2898D6bA2710C98BE9CAF3041330eD5ae58 +export const PROTOCOL_GUARDIAN = '0x1450F2898D6bA2710C98BE9CAF3041330eD5ae58';