Skip to content

Commit

Permalink
Add metis support to generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
reem committed Aug 31, 2023
1 parent 4e5f6cd commit f75159d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ export type RateStrategyUpdate = {
params: RateStrategyParams;
};

export type Networks = 'Ethereum' | 'Polygon' | 'Arbitrum' | 'Optimism' | 'Avalanche';
export type Networks = 'Ethereum' | 'Polygon' | 'Arbitrum' | 'Optimism' | 'Avalanche' | 'Metis';

export const govHelperNetworkNames: Record<Networks, string> = {
Ethereum: 'Mainnet',
Polygon: 'Polygon',
Arbitrum: 'Arbitrum',
Optimism: 'Optimism',
Avalanche: 'Avalanche',
Metis: 'Metis'
};

export const foundryNetworkNamePerNetwork: Record<Networks, string> = {
Expand All @@ -91,6 +92,7 @@ export const foundryNetworkNamePerNetwork: Record<Networks, string> = {
Arbitrum: 'arbitrum',
Optimism: 'optimism',
Avalanche: 'avalanche',
Metis: 'metis'
};

export interface NetworkUpdate {
Expand Down
1 change: 1 addition & 0 deletions generator/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const executorPerNetwork: Record<Networks, string> = {
Polygon: 'AaveGovernanceV2.POLYGON_BRIDGE_EXECUTOR',
Arbitrum: 'AaveGovernanceV2.ARBITRUM_BRIDGE_EXECUTOR',
Optimism: 'AaveGovernanceV2.OPTIMISM_BRIDGE_EXECUTOR',
Metis: 'AaveGovernanceV2.METIS_BRIDGE_EXECUTOR',
// Avalanche guardian address
Avalanche: '0xa35b76E4935449E33C56aB24b23fcd3246f13470',
};
Expand Down

0 comments on commit f75159d

Please sign in to comment.