Skip to content

Commit

Permalink
Merge pull request #163 from clemsos/linea
Browse files Browse the repository at this point in the history
Add support for Linea
  • Loading branch information
jfschwarz authored Sep 18, 2024
2 parents 1b16aca + c746c88 commit 2de7d32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 13 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export default {
...sharedNetworkConfig,
url: `https://linea-goerli.infura.io/v3/${INFURA_KEY}`,
},
linea: {
...sharedNetworkConfig,
url: `https://linea.infura.io/v3/${INFURA_KEY}`,
},
core: {
...sharedNetworkConfig,
url: "https://rpc.coredao.org",
Expand All @@ -121,7 +125,7 @@ export default {
base: {
...sharedNetworkConfig,
url: "https://mainnet.base.org",
}
},
},
namedAccounts: {
deployer: 0,
Expand Down Expand Up @@ -156,6 +160,14 @@ export default {
browserURL: "https://basescan.org/",
},
},
{
network: "linea",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build/",
},
},
],
},
};
2 changes: 2 additions & 0 deletions sdk/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export enum SupportedNetworks {
Avalanche = 43114,
BinanceSmartChain = 56,
HardhatNetwork = 31337,
Linea = 59144,
LineaGoerli = 59140,
Sepolia = 11155111,
CoreTestnet = 1115,
Expand Down Expand Up @@ -216,6 +217,7 @@ export const ContractVersions: Record<
"1.2.0": "0xEF8b46765ae805537053C59f826C3aD61924Db45",
},
},
[SupportedNetworks.Linea]: CanonicalAddresses,
[SupportedNetworks.LineaGoerli]: CanonicalAddresses,
[SupportedNetworks.Sepolia]: {
...CanonicalAddresses,
Expand Down

1 comment on commit 2de7d32

@clemsos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jfschwarz for the merge and the new release !

Please sign in to comment.