Skip to content

Commit 92ca835

Browse files
committed
add linea
1 parent abc951f commit 92ca835

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

contracts/addresses/59144/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from "./coreAddresses"
22
export * from "./lensAddresses"
33
export * from "./peripheryAddresses"
4-
export * from "./tokenAddresses"
54
export * from "./swapAddresses"
5+
export * from "./tokenAddresses"

contracts/addresses/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export * as avalancheAddresses from "./43114"
1515
export * as inkAddresses from "./57073"
1616
export * as bobAddresses from "./60808"
1717
export * as berachainAddresses from "./80094"
18+
export * as lineaAddresses from "./59144"
1819

1920
// TESTNETS
2021
export * as tacTurinAddresses from "./2390"

deployments.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,10 @@
8383
"network": "tac",
8484
"url": "https://api.goldsky.com/api/public/project_cm4iagnemt1wp01xn4gh1agft/subgraphs/euler-v2-tac/1.0.2/gn",
8585
"version": "1.0.2"
86+
},
87+
{
88+
"network": "linea",
89+
"url": "https://api.goldsky.com/api/public/project_cm4iagnemt1wp01xn4gh1agft/subgraphs/euler-v2-linea/1.0.1/gn",
90+
"version": "1.0.1"
8691
}
8792
]

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"prepare:gnosis": "bun scripts/prepare.ts gnosis",
3333
"prepare:tacturin": "bun scripts/prepare.ts tacturin",
3434
"prepare:tac": "bun scripts/prepare.ts tac",
35+
"prepare:linea": "bun scripts/prepare.ts linea",
3536
"build:mainnet": "pnpm prepare:mainnet && graph build",
3637
"build:base": "pnpm prepare:base && graph build",
3738
"build:arbitrum": "pnpm prepare:arbitrum && graph build",
@@ -50,6 +51,7 @@
5051
"build:gnosis": "pnpm prepare:gnosis && graph build",
5152
"build:tacturin": "pnpm prepare:tacturin && graph build",
5253
"build:tac": "pnpm prepare:tac && graph build",
54+
"build:linea": "pnpm prepare:linea && graph build",
5355
"deploy:mainnet": "pnpm build:mainnet && bun scripts/deploy.ts mainnet && pnpm generate:deployments",
5456
"deploy:mainnet:test": "pnpm build:mainnet && bun scripts/deploy.ts mainnet test && pnpm generate:deployments",
5557
"deploy:mainnet:swap": "pnpm build:mainnet && bun scripts/deploy.ts mainnet swap && pnpm generate:deployments",
@@ -69,7 +71,8 @@
6971
"deploy:optimism": "pnpm build:optimism && bun scripts/deploy.ts optimism && pnpm generate:deployments",
7072
"deploy:gnosis": "pnpm build:gnosis && bun scripts/deploy.ts gnosis && pnpm generate:deployments",
7173
"deploy:tacturin": "pnpm build:tacturin && bun scripts/deploy.ts tacturin && pnpm generate:deployments",
72-
"deploy:tac": "pnpm build:tac && bun scripts/deploy.ts tac && pnpm generate:deployments"
74+
"deploy:tac": "pnpm build:tac && bun scripts/deploy.ts tac && pnpm generate:deployments",
75+
"deploy:linea": "pnpm build:linea && bun scripts/deploy.ts linea && pnpm generate:deployments"
7376
},
7477
"dependencies": {
7578
"@graphprotocol/graph-cli": "0.87.0",

scripts/config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import {
1515
tacAddresses,
1616
tacTurinAddresses,
1717
unichainAddresses,
18-
worldchainAddresses
18+
worldchainAddresses,
19+
lineaAddresses
1920
} from '../contracts/addresses'
2021

2122
export type Network = typeof NETWORKS[number]
@@ -124,6 +125,12 @@ export const networks = {
124125
...tacAddresses.coreAddresses,
125126
...tacAddresses.swapAddresses,
126127
startBlock: 860000
128+
},
129+
linea: {
130+
network: 'linea',
131+
...lineaAddresses.coreAddresses,
132+
...lineaAddresses.swapAddresses,
133+
startBlock: 17900000
127134
}
128135
}
129136

0 commit comments

Comments
 (0)