Skip to content

Commit 9ebe874

Browse files
authored
feat: add linea network for governance [skip cypress] (#2326)
1 parent 82e5eaf commit 9ebe874

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@aave/contract-helpers": "1.30.5",
3535
"@aave/math-utils": "1.30.5",
36-
"@bgd-labs/aave-address-book": "4.7.3",
36+
"@bgd-labs/aave-address-book": "4.8.1",
3737
"@emotion/cache": "11.10.3",
3838
"@emotion/react": "11.10.4",
3939
"@emotion/server": "latest",

public/icons/networks/linea.svg

Lines changed: 1 addition & 0 deletions
Loading

src/ui-config/governanceConfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
GovernanceV3BNB,
99
GovernanceV3Ethereum,
1010
GovernanceV3Gnosis,
11+
GovernanceV3Linea,
1112
GovernanceV3Metis,
1213
GovernanceV3Optimism,
1314
GovernanceV3Polygon,
@@ -136,6 +137,7 @@ export const governanceChainConfig: GovernanceChainConfig = {
136137
[ChainId.bnb]: GovernanceV3BNB.PC_DATA_HELPER,
137138
[ChainId.scroll]: GovernanceV3Scroll.PC_DATA_HELPER,
138139
[ChainId.zksync]: GovernanceV3ZkSync.PC_DATA_HELPER,
140+
[59144]: GovernanceV3Linea.PC_DATA_HELPER,
139141
},
140142
votingAssets: {
141143
aaveTokenAddress: AaveV3Ethereum.ASSETS.AAVE.UNDERLYING,

src/ui-config/networksConfig.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,19 @@ export const networkConfigs: Record<string, BaseNetworkConfig> = {
396396
},
397397
ratesHistoryApiUrl,
398398
},
399+
[59144]: {
400+
name: 'Linea',
401+
privateJsonRPCUrl: 'https://linea-mainnet.g.alchemy.com/v2/6uk5qBl8QvjpEbgF3TgZBbxWkKlmWZR-',
402+
publicJsonRPCUrl: ['https://1rpc.io/linea'],
403+
baseAssetSymbol: 'ETH',
404+
wrappedBaseAssetSymbol: 'WETH',
405+
baseAssetDecimals: 18,
406+
explorerLink: 'https://lineascan.build',
407+
networkLogoPath: '/icons/networks/linea.svg',
408+
bridge: {
409+
icon: '/icons/networks/linea.svg',
410+
name: 'Linea Bridge',
411+
url: 'https://bridge.linea.build/',
412+
},
413+
},
399414
} as const;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@
10661066
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
10671067
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10681068

1069-
"@bgd-labs/aave-address-book@4.7.3":
1070-
version "4.7.3"
1071-
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.7.3.tgz#8a2ca1ca3b2e67474c0b07ea8e681a1400f3bc5b"
1072-
integrity sha512-4/QS5hLcjKuHAfdOAgaxSWVvi6RKu/U5ZHyndptvvKcNmzcC60tczN3NALCqWNXCBmzFY5e6cg82KsZJqVEjOQ==
1069+
"@bgd-labs/aave-address-book@4.8.1":
1070+
version "4.8.1"
1071+
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.8.1.tgz#3c8b97c24770df3e3e965e58932b7f0a40e3b706"
1072+
integrity sha512-t0Qz6lycoxVgoa9Jhx3t80CpZfQJD9yIH1tY22eGeN0Li2nFG9Y+XX3i3UQrzqZH613RymtyLHS4WXqVpZu4LA==
10731073

10741074
"@coinbase/[email protected]":
10751075
version "4.2.3"

0 commit comments

Comments
 (0)