Skip to content

feat(sdk-core): support lens #349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
11 changes: 11 additions & 0 deletions sdks/sdk-core/src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,16 @@ const SONEIUM_ADDRESSES: ChainAddresses = {
v4QuoterAddress: '0x3972c00f7ed4885e145823eb7c655375d275a1c5',
}

const LENS_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: '0xe0704DB90bcAA1eAFc00E958FF815Ab7aa11Ef47',
multicallAddress: '0x5900c97b683e69CD752aF7DC7003d69315E2a288',
quoterAddress: '0x1eEA2B790Dc527c5a4cd3d4f3ae8A2DDB65B2af1',
v3MigratorAddress: '0xeD70F1DE4397e8Db23ec1cF3D91c63bb7b15022F',
nonfungiblePositionManagerAddress: '0xC5d0CAaE8aa00032F6DA993A69Ffa6ff80b5F031',
tickLensAddress: '0x5499510c2e95F59b1Df0eC7C1bd2Fa76347df5Be',
swapRouter02Address: '0x6ddD32cd941041D8b61df213B9f515A7D288Dc13',
}

export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses> = {
[ChainId.MAINNET]: MAINNET_ADDRESSES,
[ChainId.OPTIMISM]: OPTIMISM_ADDRESSES,
Expand Down Expand Up @@ -446,6 +456,7 @@ export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>
[ChainId.UNICHAIN]: UNICHAIN_ADDRESSES,
[ChainId.MONAD_TESTNET]: MONAD_TESTNET_ADDRESSES,
[ChainId.SONEIUM]: SONEIUM_ADDRESSES,
[ChainId.LENS]: LENS_ADDRESSES,
}

/* V3 Contract Addresses */
Expand Down
3 changes: 3 additions & 0 deletions sdks/sdk-core/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export enum ChainId {
UNICHAIN = 130,
MONAD_TESTNET = 10143,
SONEIUM = 1868,
LENS = 232,
}

export const SUPPORTED_CHAINS = [
Expand Down Expand Up @@ -60,6 +61,7 @@ export const SUPPORTED_CHAINS = [
ChainId.UNICHAIN,
ChainId.MONAD_TESTNET,
ChainId.SONEIUM,
ChainId.LENS,
] as const
export type SupportedChainsType = (typeof SUPPORTED_CHAINS)[number]

Expand All @@ -73,4 +75,5 @@ export enum NativeCurrencyName {
BNB = 'BNB',
AVAX = 'AVAX',
ROOTSTOCK = 'RBTC',
GHO = 'GHO',
}
1 change: 1 addition & 0 deletions sdks/sdk-core/src/entities/weth9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ export const WETH9: { [chainId: number]: Token } = {
130: new Token(130, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'),
10143: new Token(10143, '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701', 18, 'WMON', 'Wrapped Monad'),
1868: new Token(1868, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'),
232: new Token(232, '0xE5ecd226b3032910CEaa43ba92EE8232f8237553', 18, 'WETH', 'Wrapped Ether'),
}