Skip to content

Commit cd61caf

Browse files
authored
Revert "Revert "feat: linea [skip cypress] (#2339)"" [skip cypress] (#2343)
1 parent effd810 commit cd61caf

File tree

8 files changed

+48
-19
lines changed

8 files changed

+48
-19
lines changed

.github/workflows/build-test-deploy-dev.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
(github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name &&
1717
!contains(github.head_ref, 'dependabot'))
1818
strategy:
19-
matrix:
20-
build:
21-
- name: 'out'
22-
cypress_enabled: 'false'
23-
- name: 'out_cypress'
24-
cypress_enabled: 'true'
19+
matrix:
20+
build:
21+
- name: 'out'
22+
cypress_enabled: 'false'
23+
- name: 'out_cypress'
24+
cypress_enabled: 'true'
2525
steps:
2626
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
2727
with:

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: 'Dependency Review'
2020
uses: actions/dependency-review-action@v2
2121
with:
22-
fail-on-severity: critical
22+
fail-on-severity: critical

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"test:coverage": "jest --coverage"
3232
},
3333
"dependencies": {
34-
"@aave/contract-helpers": "1.30.5",
35-
"@aave/math-utils": "1.30.5",
34+
"@aave/contract-helpers": "1.31.1",
35+
"@aave/math-utils": "1.31.1",
3636
"@bgd-labs/aave-address-book": "4.10.0",
3737
"@emotion/cache": "11.10.3",
3838
"@emotion/react": "11.10.4",

src/ui-config/marketsConfig.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
AaveV3EthereumEtherFi,
1414
AaveV3EthereumLido,
1515
AaveV3Gnosis,
16+
AaveV3Linea,
1617
AaveV3Metis,
1718
AaveV3Optimism,
1819
AaveV3OptimismSepolia,
@@ -92,6 +93,7 @@ export enum CustomMarket {
9293
proto_lido_v3 = 'proto_lido_v3',
9394
proto_zksync_v3 = 'proto_zksync_v3',
9495
proto_etherfi_v3 = 'proto_etherfi_v3',
96+
proto_linea_v3 = 'proto_linea_v3',
9597
// v2
9698
proto_mainnet = 'proto_mainnet',
9799
proto_avalanche = 'proto_avalanche',
@@ -681,4 +683,20 @@ export const marketsData: {
681683
COLLECTOR: AaveV3ZkSync.COLLECTOR,
682684
},
683685
},
686+
[CustomMarket.proto_linea_v3]: {
687+
marketTitle: 'Linea',
688+
market: CustomMarket.proto_linea_v3,
689+
chainId: ChainId.linea,
690+
v3: true,
691+
subgraphUrl: `https://gateway.thegraph.com/api/${apiKey}/subgraphs/id/Gz2kjnmRV1fQj3R8cssoZa5y9VTanhrDo4Mh7nWW1wHa`,
692+
addresses: {
693+
LENDING_POOL_ADDRESS_PROVIDER: AaveV3Linea.POOL_ADDRESSES_PROVIDER,
694+
LENDING_POOL: AaveV3Linea.POOL,
695+
WETH_GATEWAY: AaveV3Linea.WETH_GATEWAY,
696+
WALLET_BALANCE_PROVIDER: AaveV3Linea.WALLET_BALANCE_PROVIDER,
697+
UI_POOL_DATA_PROVIDER: AaveV3Linea.UI_POOL_DATA_PROVIDER,
698+
UI_INCENTIVE_DATA_PROVIDER: AaveV3Linea.UI_INCENTIVE_DATA_PROVIDER,
699+
COLLECTOR: AaveV3Linea.COLLECTOR,
700+
},
701+
},
684702
} as const;

src/ui-config/networksConfig.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,14 @@ export const networkConfigs: Record<string, BaseNetworkConfig> = {
396396
},
397397
ratesHistoryApiUrl,
398398
},
399-
[59144]: {
399+
[ChainId.linea]: {
400400
name: 'Linea',
401401
privateJsonRPCUrl: 'https://linea-mainnet.g.alchemy.com/v2/6uk5qBl8QvjpEbgF3TgZBbxWkKlmWZR-',
402-
publicJsonRPCUrl: ['https://1rpc.io/linea'],
402+
publicJsonRPCUrl: [
403+
'https://1rpc.io/linea',
404+
'https://linea.drpc.org',
405+
'https://linea-rpc.publicnode.com',
406+
],
403407
baseAssetSymbol: 'ETH',
404408
wrappedBaseAssetSymbol: 'WETH',
405409
baseAssetDecimals: 18,

src/ui-config/permitConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ export const permitByChainAndToken: {
4141
'0x493257fd37edb34451f62edf8d2a0c418852ba4c': true,
4242
'0x5aea5775959fbc2557cc8789bc1bf90a239d9a91': true,
4343
},
44+
[ChainId.linea]: {
45+
'0xa219439258ca9da29e9cc4ce5596924745e12b93': true, // USDT
46+
'0x2416092f143378750bb29b79ed961ab195cceea5': true, // ezETH
47+
'0xb5bedd42000b71fdde22d3ee8a79bd49a568fc8f': true, // wstETH
48+
},
4449
};

src/ui-config/wagmiConfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
baseSepolia,
2020
bsc,
2121
gnosis,
22+
linea,
2223
mainnet,
2324
metis,
2425
optimism,
@@ -52,6 +53,7 @@ let prodChains: CreateConfigParameters['chains'] = [
5253
bsc,
5354
scroll,
5455
zksync,
56+
linea,
5557
];
5658

5759
const { name, baseAssetDecimals, baseAssetSymbol } = networkConfigs[FORK_BASE_CHAIN_ID];

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
# yarn lockfile v1
33

44

5-
"@aave/contract-helpers@1.30.5":
6-
version "1.30.5"
7-
resolved "https://registry.yarnpkg.com/@aave/contract-helpers/-/contract-helpers-1.30.5.tgz#2dca36c08701548eb7ad52551514215cfd4c3b6a"
8-
integrity sha512-4CCLROduGD6HG3/DYAWS9KPDe30Pbo+b2LNKblLCy+Y90lE8aB5/e0RVZ47+vHheV9qOCjEjLYXEyeUYo7NvFg==
5+
"@aave/contract-helpers@1.31.1":
6+
version "1.31.1"
7+
resolved "https://registry.yarnpkg.com/@aave/contract-helpers/-/contract-helpers-1.31.1.tgz#e0464847f18b7daa063cd5f1a1926c4b7ffce767"
8+
integrity sha512-68/RIxOSZXpAJ0CbzN25tPDGF0QUoVbJQ6c7UDtA1hT2aL5g06URqHKhdIg1+Jvnz4VU8Qu0YYC26F5K+lVUcQ==
99
dependencies:
1010
isomorphic-unfetch "^3.1.0"
1111

12-
"@aave/math-utils@1.30.5":
13-
version "1.30.5"
14-
resolved "https://registry.yarnpkg.com/@aave/math-utils/-/math-utils-1.30.5.tgz#6c6bbf46d8a422e00504e92cf8b3f6fcad626d04"
15-
integrity sha512-aBAHCK6p3sMuyD4mipxH0vF+kn22Ocu7TzotCPzvKgkifVvGWFY7XsM5CNWubvDksL1+uNSoUvX2v3LOr23UHA==
12+
"@aave/math-utils@1.31.1":
13+
version "1.31.1"
14+
resolved "https://registry.yarnpkg.com/@aave/math-utils/-/math-utils-1.31.1.tgz#f465a316c1b59b75b112b772236118541e14b716"
15+
integrity sha512-thdudjGLygOhvDlhhndhSZjVcwglWfYROv1z6qfx9c4LsyiVITAxfz1FLUXbjEOI3kirHitl060Ng4rNuYjT1Q==
1616

1717
"@adobe/css-tools@^4.0.1":
1818
version "4.4.1"

0 commit comments

Comments
 (0)