diff --git a/packages/common/src/chain-ids.ts b/packages/common/src/chain-ids.ts index 2bc3bd4500..a3965d1d28 100644 --- a/packages/common/src/chain-ids.ts +++ b/packages/common/src/chain-ids.ts @@ -19,6 +19,8 @@ export enum ChainId { DEV2 = 313372, SEPOLIA = 11155111, SEI_DEVNET = 713715, + LUKSO = 42, + LUKSO_TESTNET = 4201, } export const RedstoneTokenIds = { @@ -40,4 +42,5 @@ export const RedstoneTokenIds = { USDGLO: "USDGLO", SEI: "SEI", OP: "OP", + LYX: "LYX", } as const; diff --git a/packages/common/src/chains.ts b/packages/common/src/chains.ts index 5c6d761a01..c8affeec1b 100644 --- a/packages/common/src/chains.ts +++ b/packages/common/src/chains.ts @@ -21,9 +21,10 @@ export const BaseLogo = export const FantomFTMLogo = "https://ipfs.io/ipfs/QmRJgxRqXUpHeskg48qeehUK97FzCAY7espZhTAVdrh9B9"; export const ScrollIcon = - "https://ipfs.io/ipfs/QmYRA5tXMmGxhw7HUNdr9DYN2GRX3MnLoJVweeWKgfxBZX"; + "https://ipfs.io/ipfs/QmYRA5tXMmGxhw7HUNdr9DYN2GRX3MnLoJVweeWKgfxBZX"; export const SeiIcon = "https://ipfs.io/ipfs/QmUvNaLwzNf1bHjqTMW1aBjRgd5FrsTDqjSnyypLwxv8x5"; +export const LuksoIcon = ""; const config = getConfig(); @@ -369,6 +370,63 @@ export const sepolia: Chain = { }, }; +// { +// network: 'lukso-testnet', +// chainId: chainIds["lukso-testnet"], +// urls: { +// apiURL: 'https://explorer.execution.testnet.lukso.network/api', +// browserURL: 'https://explorer.execution.testnet.lukso.network/', +// }, +// }, +// { +// network: 'lukso-mainnet', +// chainId: chainIds["lukso-mainnet"], +// urls: { +// apiURL: 'https://explorer.execution.mainnet.lukso.network/api', +// browserURL: 'https://explorer.execution.mainnet.lukso.network/', +// }, +// }, + +export const luksoMainnet: Chain = { + id: 42, + name: "LUKSO", + network: "lukso-mainnet", + iconUrl: LuksoIcon, + nativeCurrency: { + name: "LYX", + symbol: "LYX", + decimals: 18, + }, + rpcUrls: { + default: { + http: [`https://42.rpc.thirdweb.com`], + }, + public: { + http: [`https://42.rpc.thirdweb.com`], + }, + }, +}; + +export const luksoTestnet: Chain = { + id: 4201, + name: "LUKSO Testnet", + network: "lukso-testnet", + iconUrl: LuksoIcon, + nativeCurrency: { + name: "LYXt", + symbol: "LYXt", + decimals: 18, + }, + rpcUrls: { + default: { + http: [`https://4201.rpc.thirdweb.com`], + }, + public: { + http: [`https://4201.rpc.thirdweb.com`], + }, + }, +}; + export function parseChainIdIntoResult( input: string | number ): Result {