Skip to content

Commit

Permalink
Add GHO addresses for Fuji, OP Sepolia and Base Sepolia (#425)
Browse files Browse the repository at this point in the history
* chore: add gho token on other test nets

* Update scripts/configs/networks/avalanche.ts

Co-authored-by: miguelmtz <[email protected]>

* feat: Add GHO for OP Sepolia

* fix: Revert fuji change

---------

Co-authored-by: Mark Hinschberger <[email protected]>
  • Loading branch information
miguelmtzinf and foodaka authored Apr 15, 2024
1 parent 15bc0a8 commit 2844c2a
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 1 deletion.
8 changes: 8 additions & 0 deletions scripts/configs/networks/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ export const avalancheAddresses: NetworkAddresses = {
AAVE_MERKLE_DISTRIBUTOR: '0xA065d5A299E618CD84a87641d5eEbC7916Fdf32E',
},
};

export const avalancheFujiAddresses: NetworkAddresses = {
name: 'Fuji',
chainId: ChainId.fuji,
addresses: {
GHO_TOKEN: '0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723',
},
};
1 change: 1 addition & 0 deletions scripts/configs/networks/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ export const baseSepoliaAddresses: NetworkAddresses = {
addresses: {
TRANSPARENT_PROXY_FACTORY: '0xd90f09ea5ee893b8c0564719e855f1cf0455d894',
PROXY_ADMIN: '0xF9e48edc704BDF494309cA457BCea4c0696f591d',
GHO_TOKEN:'0x7CFa3f3d1cded0Da930881c609D4Dbf0012c14Bb'
},
};
1 change: 1 addition & 0 deletions scripts/configs/networks/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const optimismSepoliaAddresses: NetworkAddresses = {
name: 'OptimismSepolia',
chainId: ChainId.optimism_sepolia,
addresses: {
GHO_TOKEN: '0xb13Cfa6f8B2Eed2C37fB00fF0c1A59807C585810',
TRANSPARENT_PROXY_FACTORY: '0xb172a90A7C238969CE9B27cc19D13b60A91e7F00',
PROXY_ADMIN: '0xe892E40C92c2E4D281Be59b2E6300F271d824E75'
},
Expand Down
3 changes: 2 additions & 1 deletion scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {governanceConfigGnosis} from './configs/governance/gnosis';
import {baseAddresses, baseSepoliaAddresses} from './configs/networks/base';
import {generateNetworkAddresses} from './generator/networkGenerator';
import {arbitrumAddresses, arbitrumSepoliaAddresses} from './configs/networks/arbitrum';
import {avalancheAddresses} from './configs/networks/avalanche';
import {avalancheAddresses, avalancheFujiAddresses} from './configs/networks/avalanche';
import {ethereumAddresses, sepoliaAddresses} from './configs/networks/ethereum';
import {mumbaiAddresses, polygonAddresses} from './configs/networks/polygon';
import {fantomAddresses} from './configs/networks/fantom';
Expand Down Expand Up @@ -136,6 +136,7 @@ async function main() {
arbitrumAddresses,
arbitrumSepoliaAddresses,
avalancheAddresses,
avalancheFujiAddresses,
baseAddresses,
baseSepoliaAddresses,
ethereumAddresses,
Expand Down
1 change: 1 addition & 0 deletions src/AaveAddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {AaveV3Fantom} from './AaveV3Fantom.sol';
import {MiscArbitrum} from './MiscArbitrum.sol';
import {MiscArbitrumSepolia} from './MiscArbitrumSepolia.sol';
import {MiscAvalanche} from './MiscAvalanche.sol';
import {MiscFuji} from './MiscFuji.sol';
import {MiscBase} from './MiscBase.sol';
import {MiscBaseSepolia} from './MiscBaseSepolia.sol';
import {MiscEthereum} from './MiscEthereum.sol';
Expand Down
8 changes: 8 additions & 0 deletions src/MiscAvaxFuji.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

library MiscAvaxFuji {
// https://testnet.snowscan.xyz/address/0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723
address internal constant GHO_TOKEN = 0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723;
}
3 changes: 3 additions & 0 deletions src/MiscBaseSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ library MiscBaseSepolia {

// https://sepolia.basescan.org/address/0xF9e48edc704BDF494309cA457BCea4c0696f591d
address internal constant PROXY_ADMIN = 0xF9e48edc704BDF494309cA457BCea4c0696f591d;

// https://sepolia.basescan.org/address/0x7CFa3f3d1cded0Da930881c609D4Dbf0012c14Bb
address internal constant GHO_TOKEN = 0x7CFa3f3d1cded0Da930881c609D4Dbf0012c14Bb;
}
8 changes: 8 additions & 0 deletions src/MiscFuji.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

library MiscFuji {
// https://testnet.snowscan.xyz/address/0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723
address internal constant GHO_TOKEN = 0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723;
}
3 changes: 3 additions & 0 deletions src/MiscOptimismSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
pragma solidity >=0.6.0;

library MiscOptimismSepolia {
// https://optimism-sepolia.blockscout.com/address/0xb13Cfa6f8B2Eed2C37fB00fF0c1A59807C585810
address internal constant GHO_TOKEN = 0xb13Cfa6f8B2Eed2C37fB00fF0c1A59807C585810;

// https://optimism-sepolia.blockscout.com/address/0xb172a90A7C238969CE9B27cc19D13b60A91e7F00
address internal constant TRANSPARENT_PROXY_FACTORY = 0xb172a90A7C238969CE9B27cc19D13b60A91e7F00;

Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export * as AaveV3Fantom from './AaveV3Fantom';
export * as MiscArbitrum from './MiscArbitrum';
export * as MiscArbitrumSepolia from './MiscArbitrumSepolia';
export * as MiscAvalanche from './MiscAvalanche';
export * as MiscFuji from './MiscFuji';
export * as MiscBase from './MiscBase';
export * as MiscBaseSepolia from './MiscBaseSepolia';
export * as MiscEthereum from './MiscEthereum';
Expand Down
3 changes: 3 additions & 0 deletions src/ts/MiscBaseSepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ export const TRANSPARENT_PROXY_FACTORY = '0xD90f09Ea5eE893b8c0564719E855f1CF0455
// https://sepolia.basescan.org/address/0xF9e48edc704BDF494309cA457BCea4c0696f591d
export const PROXY_ADMIN = '0xF9e48edc704BDF494309cA457BCea4c0696f591d';

// https://sepolia.basescan.org/address/0x7CFa3f3d1cded0Da930881c609D4Dbf0012c14Bb
export const GHO_TOKEN = '0x7CFa3f3d1cded0Da930881c609D4Dbf0012c14Bb';

export const CHAIN_ID = 84532;
5 changes: 5 additions & 0 deletions src/ts/MiscFuji.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// https://testnet.snowscan.xyz/address/0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723
export const GHO_TOKEN = '0x9c04928Cc678776eC1C1C0E46ecC03a5F47A7723';

export const CHAIN_ID = 43113;
3 changes: 3 additions & 0 deletions src/ts/MiscOptimismSepolia.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// https://optimism-sepolia.blockscout.com/address/0xb13Cfa6f8B2Eed2C37fB00fF0c1A59807C585810
export const GHO_TOKEN = '0xb13Cfa6f8B2Eed2C37fB00fF0c1A59807C585810';

// https://optimism-sepolia.blockscout.com/address/0xb172a90A7C238969CE9B27cc19D13b60A91e7F00
export const TRANSPARENT_PROXY_FACTORY = '0xb172a90A7C238969CE9B27cc19D13b60A91e7F00';

Expand Down

0 comments on commit 2844c2a

Please sign in to comment.