Skip to content

Commit

Permalink
feat: add lyra configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Nov 16, 2023
1 parent 9da878a commit 3bb35b6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ if (isProduction) {
[HardhatChainName.AEVO_TESTNET]: getChainConfig(ChainId.AEVO_TESTNET),
[HardhatChainName.AEVO]: getChainConfig(ChainId.AEVO),
[HardhatChainName.LYRA_TESTNET]: getChainConfig(ChainId.LYRA_TESTNET),
[HardhatChainName.LYRA]: getChainConfig(ChainId.LYRA),
[HardhatChainName.XAI_TESTNET]: getChainConfig(ChainId.XAI_TESTNET),
[HardhatChainName.SX_NETWORK_TESTNET]: getChainConfig(
ChainId.SX_NETWORK_TESTNET
Expand Down Expand Up @@ -91,6 +92,7 @@ const config: HardhatUserConfig = {
polygonMumbai: process.env.POLYGONSCAN_API_KEY || "",
aevoTestnet: process.env.AEVO_API_KEY || "",
lyraTestnet: process.env.LYRA_API_KEY || "",
lyra: process.env.LYRA_API_KEY || "",
xaiTestnet: process.env.XAI_API_KEY || "",
sxnTestnet: process.env.SX_NETWORK_API_KEY || "",
},
Expand Down
4 changes: 4 additions & 0 deletions scripts/constants/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ export const bridgeConsts = {
[ChainSlug.SEPOLIA]: "0x28976A1DF6e6689Bfe555780CD46dcFcF5552979",
[ChainSlug.LYRA_TESTNET]: "0x4200000000000000000000000000000000000007",
},
[ChainSlug.LYRA]: {
[ChainSlug.MAINNET]: "0x5456f02c08e9A018E42C39b351328E5AA864174A",
[ChainSlug.LYRA]: "0x4200000000000000000000000000000000000007",
},
},
};
8 changes: 8 additions & 0 deletions scripts/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export const switchboards = {
switchboard: NativeSwitchboard.OPTIMISM,
},
},
[ChainSlug.LYRA]: {
[ChainSlug.MAINNET]: {
switchboard: NativeSwitchboard.OPTIMISM,
},
},
[ChainSlug.POLYGON_MAINNET]: {
[ChainSlug.MAINNET]: {
switchboard: NativeSwitchboard.POLYGON_L2,
Expand Down Expand Up @@ -83,5 +88,8 @@ export const switchboards = {
[ChainSlug.POLYGON_MAINNET]: {
switchboard: NativeSwitchboard.POLYGON_L1,
},
[ChainSlug.LYRA]: {
switchboard: NativeSwitchboard.OPTIMISM,
},
},
};
2 changes: 1 addition & 1 deletion src/chain-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export enum ChainId {
HARDHAT = 31337,
AVALANCHE = 43114,
LYRA_TESTNET = 901,
LYRA = 0, // update this
LYRA = 957,
XAI_TESTNET = 47279324479,
CDK_TESTNET = 686669576,
SX_NETWORK_TESTNET = 647,
Expand Down

0 comments on commit 3bb35b6

Please sign in to comment.