Skip to content

Commit

Permalink
add to common
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed May 3, 2024
1 parent b30ffab commit 882fcfa
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/common/src/chain-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export enum ChainId {
DEV2 = 313372,
SEPOLIA = 11155111,
SEI_DEVNET = 713715,
LUKSO = 42,
LUKSO_TESTNET = 4201,
}

export const RedstoneTokenIds = {
Expand All @@ -40,4 +42,5 @@ export const RedstoneTokenIds = {
USDGLO: "USDGLO",
SEI: "SEI",
OP: "OP",
LYX: "LYX",
} as const;
60 changes: 59 additions & 1 deletion packages/common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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<ChainId> {
Expand Down

0 comments on commit 882fcfa

Please sign in to comment.