Skip to content

Commit 5c054c3

Browse files
Joafaiefecarranza
andauthored
feat: Add GHO Gnosis addresses (#1035)
* add GHO gnosis addresses * test cache file * chore: add snapshot --------- Co-authored-by: efecarranza <[email protected]>
1 parent 583efae commit 5c054c3

File tree

8 files changed

+80
-2
lines changed

8 files changed

+80
-2
lines changed

foundry.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"lib/aave-v3-origin": {
33
"branch": {
44
"name": "main",
5-
"rev": "6138e1fda45884b6547d094a1ddeef43dcab4977"
5+
"rev": "7fd19d51f47a0dd5a31da4ec34bc02414f6b03e4"
66
}
77
}
88
}

safe.csv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,12 @@ address,name,chainId
18901890
0xFDF9EB5fafc11Efa65f6FD144898da39a7920Ae8,ChainlinkGnosis _1INCH_USD,100
18911891
0xc5f7665e7FdC5059B93Db8bEAB83F5ffA05Eb18e,ChainlinkGnosis osETH_ETH_Exchange_Rate,100
18921892
0x0064AC007fF665CF8D0D3Af5E0AD1c26a3f853eA,ChainlinkGnosis wstETH_ETH_Exchange_Rate,100
1893+
0x6e637e1E48025E51315d50ab96d5b3be1971A715,GhoGnosis GHO_AAVE_CORE_STEWARD,100
1894+
0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee,GhoGnosis GHO_BUCKET_STEWARD,100
1895+
0x06179f7C1be40863405f374E7f5F8806c728660A,GhoGnosis GHO_CCIP_STEWARD,100
1896+
0xDe6539018B095353A40753Dc54C91C68c9487D4E,GhoGnosis GHO_CCIP_TOKEN_POOL,100
1897+
0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12,GhoGnosis GHO_ORACLE,100
1898+
0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73,GhoGnosis GHO_TOKEN,100
18931899
0xF937ffAeA1363e4Fa260760bDFA2aA8Fc911F84D,GovernanceV3Gnosis CL_EMERGENCY_ORACLE,100
18941900
0x8Dc5310fc9D3D7D1Bb3D1F686899c8F082316c9F,GovernanceV3Gnosis CROSS_CHAIN_CONTROLLER,100
18951901
0x1dF462e2712496373A347f8ad10802a5E95f053D,GovernanceV3Gnosis EXECUTOR_LVL_1,100

scripts/configs/gho/gnosis.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import {ChainId} from '@bgd-labs/toolbox';
2+
import {GhoAddresses} from '../types';
3+
4+
export const ghoGnosis: GhoAddresses = {
5+
name: 'Gnosis',
6+
chainId: ChainId.gnosis,
7+
addresses: {
8+
GHO_TOKEN: '0xfc421ad3c883bf9e7c4f42de845c4e4405799e73',
9+
GHO_CCIP_TOKEN_POOL: '0xDe6539018B095353A40753Dc54C91C68c9487D4E',
10+
GHO_ORACLE: '0x360d8aa8f6b09b7bc57af34db2eb84dd87bf4d12',
11+
GHO_AAVE_CORE_STEWARD: '0x6e637e1e48025e51315d50ab96d5b3be1971a715',
12+
GHO_BUCKET_STEWARD: '0x6bb7a212910682dcfdbd5bcbb3e28fb4e8da10ee',
13+
GHO_CCIP_STEWARD: '0x06179f7c1be40863405f374e7f5f8806c728660a',
14+
},
15+
};

scripts/generateAddresses.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import { ghoArbitrum } from './configs/gho/arbitrum';
7272
import { ghoAvalanche } from './configs/gho/avalanche';
7373
import { ghoBase } from './configs/gho/base';
7474
import { ghoEthereum } from './configs/gho/ethereum';
75+
import { ghoGnosis } from './configs/gho/gnosis';
7576
import { generateGho } from './generator/ghoGenerator';
7677
import { governanceConfigLinea } from './configs/governance/linea';
7778
import { mantleAddresses } from './configs/networks/mantle';
@@ -167,7 +168,7 @@ async function main() {
167168
inkProtoV3,
168169
].map((config) => generateProtocolV3Library(config)),
169170
);
170-
const ghoAddresses = [ghoEthereum, ghoArbitrum, ghoBase, ghoAvalanche].map((config) =>
171+
const ghoAddresses = [ghoEthereum, ghoArbitrum, ghoBase, ghoAvalanche, ghoGnosis].map((config) =>
171172
generateGho(config),
172173
);
173174
const umbrellaAddresses = await Promise.all(

src/GhoGnosis.sol

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
2+
// SPDX-License-Identifier: MIT
3+
pragma solidity >=0.6.0;
4+
5+
library GhoGnosis {
6+
// https://gnosisscan.io/address/0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73
7+
address internal constant GHO_TOKEN = 0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73;
8+
9+
// https://gnosisscan.io/address/0xDe6539018B095353A40753Dc54C91C68c9487D4E
10+
address internal constant GHO_CCIP_TOKEN_POOL = 0xDe6539018B095353A40753Dc54C91C68c9487D4E;
11+
12+
// https://gnosisscan.io/address/0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12
13+
address internal constant GHO_ORACLE = 0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12;
14+
15+
// https://gnosisscan.io/address/0x6e637e1E48025E51315d50ab96d5b3be1971A715
16+
address internal constant GHO_AAVE_CORE_STEWARD = 0x6e637e1E48025E51315d50ab96d5b3be1971A715;
17+
18+
// https://gnosisscan.io/address/0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee
19+
address internal constant GHO_BUCKET_STEWARD = 0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee;
20+
21+
// https://gnosisscan.io/address/0x06179f7C1be40863405f374E7f5F8806c728660A
22+
address internal constant GHO_CCIP_STEWARD = 0x06179f7C1be40863405f374E7f5F8806c728660A;
23+
}

src/ts/AaveAddressBook.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export * as GhoEthereum from './GhoEthereum';
8080
export * as GhoArbitrum from './GhoArbitrum';
8181
export * as GhoBase from './GhoBase';
8282
export * as GhoAvalanche from './GhoAvalanche';
83+
export * as GhoGnosis from './GhoGnosis';
8384
export * as UmbrellaEthereum from './UmbrellaEthereum';
8485
export * as UmbrellaBaseSepolia from './UmbrellaBaseSepolia';
8586
export * as ChainlinkEthereum from './ChainlinkEthereum';

src/ts/GhoGnosis.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
2+
// https://gnosisscan.io/address/0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73
3+
export const GHO_TOKEN = '0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73';
4+
5+
// https://gnosisscan.io/address/0xDe6539018B095353A40753Dc54C91C68c9487D4E
6+
export const GHO_CCIP_TOKEN_POOL = '0xDe6539018B095353A40753Dc54C91C68c9487D4E';
7+
8+
// https://gnosisscan.io/address/0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12
9+
export const GHO_ORACLE = '0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12';
10+
11+
// https://gnosisscan.io/address/0x6e637e1E48025E51315d50ab96d5b3be1971A715
12+
export const GHO_AAVE_CORE_STEWARD = '0x6e637e1E48025E51315d50ab96d5b3be1971A715';
13+
14+
// https://gnosisscan.io/address/0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee
15+
export const GHO_BUCKET_STEWARD = '0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee';
16+
17+
// https://gnosisscan.io/address/0x06179f7C1be40863405f374E7f5F8806c728660A
18+
export const GHO_CCIP_STEWARD = '0x06179f7C1be40863405f374E7f5F8806c728660A';
19+
20+
export const CHAIN_ID = 100;

tests/cache/verified.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6116,6 +6116,18 @@
61166116
},
61176117
"0x394aDC8772DDD076BD3c5C545c4Edd3617C7d5e6": {
61186118
"name": "GelatoAaveStewardInjectorCaps"
6119+
},
6120+
"0xDe6539018B095353A40753Dc54C91C68c9487D4E": {
6121+
"name": "TransparentUpgradeableProxy"
6122+
},
6123+
"0x6e637e1E48025E51315d50ab96d5b3be1971A715": {
6124+
"name": "GhoAaveSteward"
6125+
},
6126+
"0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee": {
6127+
"name": "GhoBucketSteward"
6128+
},
6129+
"0x06179f7C1be40863405f374E7f5F8806c728660A": {
6130+
"name": "GhoCcipSteward"
61196131
}
61206132
},
61216133
"137": {

0 commit comments

Comments
 (0)