Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Feature: Add full LUKSO support for chainID 42 for V3 #108

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ const BASE_GOERLI_ADDRESSES: ChainAddresses = {
swapRouter02Address: '0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d'
}

// LUKSO mainnet v3 addresses
const LUKSO_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: "0xB0884fB5b6d79124F4E6BD6A34f476A44106bBA2",
multicallAddress: "0x923601Dda4E62F01B0bE51F827Be85C37Dad9c86",
quoterAddress: "0x6899a2682b7434f3e2424d637767834664aCBe83",
v3MigratorAddress: "0x3673c1112b7BAc5703cCfF59dd93f4B359A93aE3",
nonfungiblePositionManagerAddress: "0xe1C3193221ABc205F26149b2aD86e7e692eB053e",
tickLensAddress: "0x24E5109575e70652E6b7B4F754bdc699afA2D420",
swapRouter02Address: "0x7b83F89a86C7bF2596C9d5AA77308c9F6F1B96Bb"
}

export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses> = {
[ChainId.MAINNET]: MAINNET_ADDRESSES,
[ChainId.OPTIMISM]: OPTIMISM_ADDRESSES,
Expand All @@ -190,7 +201,8 @@ export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>
[ChainId.SEPOLIA]: SEPOLIA_ADDRESSES,
[ChainId.AVALANCHE]: AVALANCHE_ADDRESSES,
[ChainId.BASE]: BASE_ADDRESSES,
[ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES
[ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES,
[ChainId.LUKSO]: LUKSO_ADDRESSES
}

/* V3 Contract Addresses */
Expand Down
9 changes: 6 additions & 3 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export enum ChainId {
BNB = 56,
AVALANCHE = 43114,
BASE_GOERLI = 84531,
BASE = 8453
BASE = 8453,
LUKSO = 42
}

export const SUPPORTED_CHAINS = [
Expand All @@ -37,7 +38,8 @@ export const SUPPORTED_CHAINS = [
ChainId.BNB,
ChainId.AVALANCHE,
ChainId.BASE,
ChainId.BASE_GOERLI
ChainId.BASE_GOERLI,
ChainId.LUKSO
] as const
export type SupportedChainsType = typeof SUPPORTED_CHAINS[number]

Expand All @@ -49,5 +51,6 @@ export enum NativeCurrencyName {
GNOSIS = 'XDAI',
MOONBEAM = 'GLMR',
BNB = 'BNB',
AVAX = 'AVAX'
AVAX = 'AVAX',
LUKSO = 'LYX'
}