diff --git a/hardhat.config.ts b/hardhat.config.ts index a834250..b24e118 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -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", @@ -121,7 +125,7 @@ export default { base: { ...sharedNetworkConfig, url: "https://mainnet.base.org", - } + }, }, namedAccounts: { deployer: 0, @@ -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/", + }, + }, ], }, }; diff --git a/sdk/contracts.ts b/sdk/contracts.ts index d927222..c86103a 100644 --- a/sdk/contracts.ts +++ b/sdk/contracts.ts @@ -51,6 +51,7 @@ export enum SupportedNetworks { Avalanche = 43114, BinanceSmartChain = 56, HardhatNetwork = 31337, + Linea = 59144, LineaGoerli = 59140, Sepolia = 11155111, CoreTestnet = 1115, @@ -216,6 +217,7 @@ export const ContractVersions: Record< "1.2.0": "0xEF8b46765ae805537053C59f826C3aD61924Db45", }, }, + [SupportedNetworks.Linea]: CanonicalAddresses, [SupportedNetworks.LineaGoerli]: CanonicalAddresses, [SupportedNetworks.Sepolia]: { ...CanonicalAddresses,