Skip to content

Commit cfb8982

Browse files
committed
feat: add blast chain support
1 parent c4ec43a commit cfb8982

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

javascript/tokenscript-viewer/src/integration/constants.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export enum ChainID {
2424
MANTLE = 5000,
2525
MANTLE_SEPOLIA = 5003,
2626
BASE = 8453,
27-
BASE_SEPOLIA= 84532
27+
BASE_SEPOLIA= 84532,
28+
BLAST = 81457,
29+
BLAST_SEPOLIA = 168587773,
2830
}
2931

3032
export const CHAIN_MAP: ChainMapInterface = {
@@ -46,6 +48,8 @@ export const CHAIN_MAP: ChainMapInterface = {
4648
[ChainID.MANTLE_SEPOLIA]: "mantle-sepolia",
4749
[ChainID.BASE]: "base",
4850
[ChainID.BASE_SEPOLIA]: "base-sepolia",
51+
[ChainID.BLAST]: 'blast',
52+
[ChainID.BLAST_SEPOLIA]: 'blast-sepolia',
4953
};
5054

5155
export const CHAIN_NAME_MAP: ChainMapInterface = {
@@ -65,7 +69,9 @@ export const CHAIN_NAME_MAP: ChainMapInterface = {
6569
[ChainID.MANTLE]: "Mantle",
6670
[ChainID.MANTLE_SEPOLIA]: "Mantle (Sepolia Testnet)",
6771
[ChainID.BASE]: "Base",
68-
[ChainID.BASE_SEPOLIA]: "Base (Sepolia Testnet)"
72+
[ChainID.BASE_SEPOLIA]: "Base (Sepolia Testnet)",
73+
[ChainID.BLAST]: 'Blast',
74+
[ChainID.BLAST_SEPOLIA]: 'Blast (Sepolia Testnet)',
6975
};
7076

7177
const INFURA_API_KEY = Env.INFURA_API_KEY ?? "9f79b2f9274344af90b8d4e244b580ef"
@@ -152,7 +158,15 @@ export const CHAIN_CONFIG: {[chain: number]: IChainConfig} = {
152158
[ChainID.BASE_SEPOLIA]: {
153159
rpc: `https://base-sepolia.infura.io/v3/${INFURA_API_KEY}`,
154160
explorer: 'https://sepolia.basescan.org/tx/'
155-
}
161+
},
162+
[ChainID.BLAST]: {
163+
rpc: `https://blast-mainnet.infura.io/v3/${INFURA_API_KEY}`,
164+
explorer: 'https://basescan.org/tx/',
165+
},
166+
[ChainID.BLAST_SEPOLIA]: {
167+
rpc: `https://blast-sepolia.infura.io/v3/${INFURA_API_KEY}`,
168+
explorer: 'https://sepolia.basescan.org/tx/',
169+
},
156170
}
157171

158172
export const ERC721_ABI_JSON = [

0 commit comments

Comments
 (0)