Skip to content

Commit

Permalink
feat(sdk-core): support astrochain sepolia on v2 and v3 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 authored Oct 1, 2024
1 parent e94ee67 commit 65c77a1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdks/sdk-core/src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,16 @@ const WORLDCHAIN_ADDRESSES: ChainAddresses = {
swapRouter02Address: '0x091AD9e2e6e5eD44c1c66dB50e49A601F9f36cF6',
}

const ASTROCHAIN_SEPOLIA_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: '0x1F98431c8aD98523631AE4a59f267346ea31F984',
multicallAddress: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
quoterAddress: '0x8C41f1696360ca987803a4c24B8b7c36dFd61c4d',
v3MigratorAddress: '0x0e4b7B0d0125eCF02D6bBFd21Cf4559D9C9AcE42',
nonfungiblePositionManagerAddress: '0x05701915588BB4Dd144216d2f5Af70cdc7A8BFE4',
tickLensAddress: '0x5f739c790a48E97eec0efb81bab5D152c0A0ecA0',
swapRouter02Address: '0xa8b0be287acB850952DE4287b84B7222cc654C09',
}

export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses> = {
[ChainId.MAINNET]: MAINNET_ADDRESSES,
[ChainId.OPTIMISM]: OPTIMISM_ADDRESSES,
Expand All @@ -291,6 +301,7 @@ export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>
[ChainId.BLAST]: BLAST_ADDRESSES,
[ChainId.ZKSYNC]: ZKSYNC_ADDRESSES,
[ChainId.WORLDCHAIN]: WORLDCHAIN_ADDRESSES,
[ChainId.ASTROCHAIN_SEPOLIA]: ASTROCHAIN_SEPOLIA_ADDRESSES,
}

/* V3 Contract Addresses */
Expand Down
2 changes: 2 additions & 0 deletions sdks/sdk-core/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export enum ChainId {
BLAST = 81457,
ZKSYNC = 324,
WORLDCHAIN = 480,
ASTROCHAIN_SEPOLIA = 1301,
}

export const SUPPORTED_CHAINS = [
Expand All @@ -50,6 +51,7 @@ export const SUPPORTED_CHAINS = [
ChainId.BLAST,
ChainId.ZKSYNC,
ChainId.WORLDCHAIN,
ChainId.ASTROCHAIN_SEPOLIA,
] as const
export type SupportedChainsType = (typeof SUPPORTED_CHAINS)[number]

Expand Down
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 @@ -27,4 +27,5 @@ export const WETH9: { [chainId: number]: Token } = {
81457: new Token(81457, '0x4300000000000000000000000000000000000004', 18, 'WETH', 'Wrapped Ether'),
324: new Token(324, '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', 18, 'WETH', 'Wrapped Ether'),
480: new Token(480, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'),
1301: new Token(1301, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'),
}

0 comments on commit 65c77a1

Please sign in to comment.