Skip to content

Commit c146a2d

Browse files
authored
feat: gho on plasma (#1119)
* feat: gho on plasma * fix: add risk council * chore: revert transport fix
1 parent 79e2a33 commit c146a2d

File tree

14 files changed

+109
-8
lines changed

14 files changed

+109
-8
lines changed

safe.csv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,7 @@ address,name,chainId
19691969
0xDe6539018B095353A40753Dc54C91C68c9487D4E,GhoGnosis GHO_CCIP_TOKEN_POOL,100
19701970
0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12,GhoGnosis GHO_ORACLE,100
19711971
0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73,GhoGnosis GHO_TOKEN,100
1972+
0x8513e6F37dBc52De87b166980Fa3F50639694B60,GhoGnosis RISK_COUNCIL,100
19721973
0xF937ffAeA1363e4Fa260760bDFA2aA8Fc911F84D,GovernanceV3Gnosis CL_EMERGENCY_ORACLE,100
19731974
0x8Dc5310fc9D3D7D1Bb3D1F686899c8F082316c9F,GovernanceV3Gnosis CROSS_CHAIN_CONTROLLER,100
19741975
0x1dF462e2712496373A347f8ad10802a5E95f053D,GovernanceV3Gnosis EXECUTOR_LVL_1,100
@@ -3235,6 +3236,12 @@ address,name,chainId
32353236
0x7B9c12915c594a68dE96201Cbdc79147F09da278,AaveV3Plasma UI_POOL_DATA_PROVIDER,9745
32363237
0x91FC11136d5615575a0fC5981Ab5C0C54418E2C6,AaveV3Plasma WALLET_BALANCE_PROVIDER,9745
32373238
0x54BDcc37c4143f944A3EE51C892a6cBDF305E7a0,AaveV3Plasma WETH_GATEWAY,9745
3239+
0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B,GhoPlasma GHO_BUCKET_STEWARD,9745
3240+
0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6,GhoPlasma GHO_CCIP_STEWARD,9745
3241+
0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12,GhoPlasma GHO_CCIP_TOKEN_POOL,9745
3242+
0xb0e1c7830aA781362f79225559Aa068E6bDaF1d1,GhoPlasma GHO_ORACLE,9745
3243+
0xb77E872A68C62CfC0dFb02C067Ecc3DA23B4bbf3,GhoPlasma GHO_TOKEN,9745
3244+
0x8513e6F37dBc52De87b166980Fa3F50639694B60,GhoPlasma RISK_COUNCIL,9745
32383245
0xF61FE74Ec1cFbd9Ee8Bd27592D2EDEe0E2aA85Cf,GovernanceV3Plasma CL_EMERGENCY_ORACLE,9745
32393246
0x643441742f73e270e565619be6DE5f4D55E08cd6,GovernanceV3Plasma CROSS_CHAIN_CONTROLLER,9745
32403247
0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A,GovernanceV3Plasma EXECUTOR_LVL_1,9745
@@ -4168,6 +4175,7 @@ address,name,chainId
41684175
0xDe6539018B095353A40753Dc54C91C68c9487D4E,GhoInk GHO_CCIP_TOKEN_POOL,57073
41694176
0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6,GhoInk GHO_ORACLE,57073
41704177
0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73,GhoInk GHO_TOKEN,57073
4178+
0x8513e6F37dBc52De87b166980Fa3F50639694B60,GhoInk RISK_COUNCIL,57073
41714179
0x990B75fD1a2345D905a385dBC6e17BEe0Cb2f505,GovernanceV3Ink CROSS_CHAIN_CONTROLLER,57073
41724180
0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A,GovernanceV3Ink EXECUTOR_LVL_1,57073
41734181
0x1bBcC6F0BB563067Ca45450023a13E34fa963Fa9,GovernanceV3Ink GOVERNANCE_GUARDIAN,57073

scripts/configs/gho/gnosis.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export const ghoGnosis: GhoAddresses = {
1111
GHO_AAVE_CORE_STEWARD: '0x6e637e1e48025e51315d50ab96d5b3be1971a715',
1212
GHO_BUCKET_STEWARD: '0x6bb7a212910682dcfdbd5bcbb3e28fb4e8da10ee',
1313
GHO_CCIP_STEWARD: '0x06179f7c1be40863405f374e7f5f8806c728660a',
14+
RISK_COUNCIL: '0x8513e6F37dBc52De87b166980Fa3F50639694B60',
1415
},
1516
};

scripts/configs/gho/ink.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export const ghoInk: GhoAddresses = {
1010
GHO_ORACLE: '0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6',
1111
GHO_BUCKET_STEWARD: '0xA5Ba213867E175A182a5dd6A9193C6158738105A',
1212
GHO_CCIP_STEWARD: '0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B',
13+
RISK_COUNCIL: '0x8513e6F37dBc52De87b166980Fa3F50639694B60',
1314
},
1415
};

scripts/configs/gho/plasma.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 ghoPlasma: GhoAddresses = {
5+
name: 'Plasma',
6+
chainId: ChainId.plasma,
7+
addresses: {
8+
GHO_TOKEN: '0xb77E872A68C62CfC0dFb02C067Ecc3DA23B4bbf3',
9+
GHO_CCIP_TOKEN_POOL: '0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12',
10+
GHO_ORACLE: '0xb0e1c7830aA781362f79225559Aa068E6bDaF1d1',
11+
GHO_BUCKET_STEWARD: '0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B',
12+
GHO_CCIP_STEWARD: '0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6',
13+
RISK_COUNCIL: '0x8513e6F37dBc52De87b166980Fa3F50639694B60',
14+
},
15+
};

scripts/generateAddresses.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ import { ghoBase } from './configs/gho/base';
7575
import { ghoEthereum } from './configs/gho/ethereum';
7676
import { ghoGnosis } from './configs/gho/gnosis';
7777
import { ghoInk } from './configs/gho/ink';
78+
import { ghoPlasma } from './configs/gho/plasma';
7879
import { generateGho } from './generator/ghoGenerator';
7980
import { governanceConfigLinea } from './configs/governance/linea';
8081
import { mantleAddresses } from './configs/networks/mantle';
@@ -177,7 +178,7 @@ async function main() {
177178
plasmaProtoV3,
178179
].map((config) => generateProtocolV3Library(config)),
179180
);
180-
const ghoAddresses = [ghoEthereum, ghoArbitrum, ghoBase, ghoAvalanche, ghoGnosis, ghoInk].map((config) =>
181+
const ghoAddresses = [ghoEthereum, ghoArbitrum, ghoBase, ghoAvalanche, ghoGnosis, ghoInk, ghoPlasma].map((config) =>
181182
generateGho(config),
182183
);
183184
const umbrellaAddresses = await Promise.all(

src/GhoGnosis.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ library GhoGnosis {
2020

2121
// https://gnosisscan.io/address/0x06179f7C1be40863405f374E7f5F8806c728660A
2222
address internal constant GHO_CCIP_STEWARD = 0x06179f7C1be40863405f374E7f5F8806c728660A;
23+
24+
// https://gnosisscan.io/address/0x8513e6F37dBc52De87b166980Fa3F50639694B60
25+
address internal constant RISK_COUNCIL = 0x8513e6F37dBc52De87b166980Fa3F50639694B60;
2326
}

src/GhoInk.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ library GhoInk {
1717

1818
// https://explorer.inkonchain.com/address/0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B
1919
address internal constant GHO_CCIP_STEWARD = 0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B;
20+
21+
// https://explorer.inkonchain.com/address/0x8513e6F37dBc52De87b166980Fa3F50639694B60
22+
address internal constant RISK_COUNCIL = 0x8513e6F37dBc52De87b166980Fa3F50639694B60;
2023
}

src/GhoPlasma.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 GhoPlasma {
6+
// https://plasmascan.to/address/0xb77E872A68C62CfC0dFb02C067Ecc3DA23B4bbf3
7+
address internal constant GHO_TOKEN = 0xb77E872A68C62CfC0dFb02C067Ecc3DA23B4bbf3;
8+
9+
// https://plasmascan.to/address/0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12
10+
address internal constant GHO_CCIP_TOKEN_POOL = 0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12;
11+
12+
// https://plasmascan.to/address/0xb0e1c7830aA781362f79225559Aa068E6bDaF1d1
13+
address internal constant GHO_ORACLE = 0xb0e1c7830aA781362f79225559Aa068E6bDaF1d1;
14+
15+
// https://plasmascan.to/address/0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B
16+
address internal constant GHO_BUCKET_STEWARD = 0x2Ce400703dAcc37b7edFA99D228b8E70a4d3831B;
17+
18+
// https://plasmascan.to/address/0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6
19+
address internal constant GHO_CCIP_STEWARD = 0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6;
20+
21+
// https://plasmascan.to/address/0x8513e6F37dBc52De87b166980Fa3F50639694B60
22+
address internal constant RISK_COUNCIL = 0x8513e6F37dBc52De87b166980Fa3F50639694B60;
23+
}

src/ts/AaveAddressBook.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export * as GhoBase from './GhoBase';
8787
export * as GhoAvalanche from './GhoAvalanche';
8888
export * as GhoGnosis from './GhoGnosis';
8989
export * as GhoInk from './GhoInk';
90+
export * as GhoPlasma from './GhoPlasma';
9091
export * as UmbrellaEthereum from './UmbrellaEthereum';
9192
export * as UmbrellaBaseSepolia from './UmbrellaBaseSepolia';
9293
export * as ChainlinkEthereum from './ChainlinkEthereum';

src/ts/GhoGnosis.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ export const GHO_BUCKET_STEWARD = '0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee';
1717
// https://gnosisscan.io/address/0x06179f7C1be40863405f374E7f5F8806c728660A
1818
export const GHO_CCIP_STEWARD = '0x06179f7C1be40863405f374E7f5F8806c728660A';
1919

20+
// https://gnosisscan.io/address/0x8513e6F37dBc52De87b166980Fa3F50639694B60
21+
export const RISK_COUNCIL = '0x8513e6F37dBc52De87b166980Fa3F50639694B60';
22+
2023
export const CHAIN_ID = 100;

0 commit comments

Comments
 (0)