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

feat: support blast #128

Closed
wants to merge 1 commit 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
13 changes: 12 additions & 1 deletion src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@ const ROOTSTOCK_ADDRESSES: ChainAddresses = {
swapRouter02Address: '0x0B14ff67f0014046b4b99057Aec4509640b3947A'
}

const BLAST_ADDRESSES: ChainAddresses = {
v3CoreFactoryAddress: '0x792edAdE80af5fC680d96a2eD80A44247D2Cf6Fd',
multicallAddress: '0xc228c0343ee4d4b3eadf701154f1f1bd9e29d833',
quoterAddress: '0x6Cdcd65e03c1CEc3730AeeCd45bc140D57A25C77',
v3MigratorAddress: '0x15CA7043CD84C5D21Ae76Ba0A1A967d42c40ecE0',
nonfungiblePositionManagerAddress: '0xB218e4f7cF0533d4696fDfC419A0023D33345F28',
tickLensAddress: '0x2E95185bCdD928a3e984B7e2D6560Ab1b17d7274',
swapRouter02Address: '0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66'
}

export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses> = {
[ChainId.MAINNET]: MAINNET_ADDRESSES,
[ChainId.OPTIMISM]: OPTIMISM_ADDRESSES,
Expand All @@ -243,7 +253,8 @@ export const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>
[ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES,
[ChainId.ZORA]: ZORA_ADDRESSES,
[ChainId.ZORA_SEPOLIA]: ZORA_SEPOLIA_ADDRESSES,
[ChainId.ROOTSTOCK]: ROOTSTOCK_ADDRESSES
[ChainId.ROOTSTOCK]: ROOTSTOCK_ADDRESSES,
[ChainId.BLAST]: BLAST_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 @@ -20,7 +20,8 @@ export enum ChainId {
BASE = 8453,
ZORA = 7777777,
ZORA_SEPOLIA = 999999999,
ROOTSTOCK = 30
ROOTSTOCK = 30,
BLAST = 81457
}

export const SUPPORTED_CHAINS = [
Expand All @@ -43,7 +44,8 @@ export const SUPPORTED_CHAINS = [
ChainId.BASE_GOERLI,
ChainId.ZORA,
ChainId.ZORA_SEPOLIA,
ChainId.ROOTSTOCK
ChainId.ROOTSTOCK,
ChainId.BLAST
] as const
export type SupportedChainsType = typeof SUPPORTED_CHAINS[number]

Expand All @@ -56,5 +58,6 @@ export enum NativeCurrencyName {
MOONBEAM = 'GLMR',
BNB = 'BNB',
AVAX = 'AVAX',
ROOTSTOCK = 'RBTC'
ROOTSTOCK = 'RBTC',
BLAST = 'BLAST'
}
Loading