Skip to content
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

feat: Add Blast defs #54

Merged
merged 7 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@across-protocol/constants",
"version": "3.1.3",
"version": "3.1.4",
"description": "Export commonly re-used values for Across repositories",
"repository": "https://github.com/across-protocol/constants.git",
"author": "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const TESTNET_SEPOLIA_CHAIN_IDs = {
SCROLL_SEPOLIA: 534351,
SEPOLIA: 11155111,
OPTIMISM_SEPOLIA: 11155420,
BLAST_SEPOLIA: 168587773,
};

export const TESTNET_CHAIN_IDs = {
Expand All @@ -26,6 +27,7 @@ export const MAINNET_CHAIN_IDs = {
MODE: 34443,
ARBITRUM: 42161,
LINEA: 59144,
BLAST: 81457,
SCROLL: 534352
};

Expand All @@ -43,6 +45,7 @@ interface PublicNetwork {
export const PRODUCTION_NETWORKS: { [chainId: number]: PublicNetwork } = {
[CHAIN_IDs.ARBITRUM]: { name: "Arbitrum One", nativeToken: "ETH", blockExplorer: "https://arbiscan.io" },
[CHAIN_IDs.BASE]: { name: "Base", nativeToken: "ETH", blockExplorer: "https://basescan.org" },
[CHAIN_IDs.BLAST]: { name: "Blast", nativeToken: "ETH", blockExplorer: "https://blastscan.io" },
[CHAIN_IDs.BOBA]: { name: "Boba", nativeToken: "ETH", blockExplorer: "https://blockexplorer.boba.network" },
[CHAIN_IDs.LINEA]: { name: "Linea", nativeToken: "ETH", blockExplorer: "https://lineascan.build" },
[CHAIN_IDs.LISK]: { name: "Lisk", nativeToken: "ETH", blockExplorer: "https://blockscout.lisk.com" },
Expand All @@ -57,6 +60,7 @@ export const PRODUCTION_NETWORKS: { [chainId: number]: PublicNetwork } = {
export const TEST_NETWORKS: { [chainId: number]: PublicNetwork } = {
[CHAIN_IDs.ARBITRUM_SEPOLIA]: { name: "Arbitrum Sepolia", nativeToken: "ETH", blockExplorer: "https://sepolia.arbiscan.io" },
[CHAIN_IDs.BASE_SEPOLIA]: { name: "Base Sepolia", nativeToken: "ETH", blockExplorer: "https://sepolia.basescan.org" },
[CHAIN_IDs.BLAST_SEPOLIA]: { name: "Blast Sepolia", nativeToken: "ETH", blockExplorer: "https://sepolia.blastscan.io" },
[CHAIN_IDs.LISK_SEPOLIA]: { name: "Lisk Sepolia", nativeToken: "ETH", blockExplorer: "https://sepolia-blockscout.lisk.com" },
[CHAIN_IDs.MODE_SEPOLIA]: { name: "Mode Sepolia", nativeToken: "ETH", blockExplorer: "https://sepolia.explorer.mode.network" },
[CHAIN_IDs.OPTIMISM_SEPOLIA]: { name: "Optimism Sepolia", nativeToken: "ETH", blockExplorer: "https://sepolia-optimism.etherscan.io" },
Expand Down
13 changes: 13 additions & 0 deletions src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BOBA]: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000",
[CHAIN_IDs.BLAST]: "0x4300000000000000000000000000000000000004",
[CHAIN_IDs.BLAST_SEPOLIA]: "0x4300000000000000000000000000000000000004",
pxrl marked this conversation as resolved.
Show resolved Hide resolved
[CHAIN_IDs.LINEA]: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
[CHAIN_IDs.LISK]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.LISK_SEPOLIA]: "0x4200000000000000000000000000000000000006",
Expand Down Expand Up @@ -158,6 +160,14 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.POLYGON]: "0x3066818837c5e6eD6601bd5a91B0762877A6B731"
},
},
USDB: {
name: "USDB",
symbol: "USDB",
decimals: 18,
addresses: {
[CHAIN_IDs.BLAST]: "0x4300000000000000000000000000000000000003",
pxrl marked this conversation as resolved.
Show resolved Hide resolved
[CHAIN_IDs.MAINNET]: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
},
USDC: {
name: "USD Coin",
symbol: "USDC",
Expand Down Expand Up @@ -225,6 +235,7 @@ export const TOKEN_SYMBOLS_MAP = {
addresses: {
[CHAIN_IDs.ARBITRUM]: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
[CHAIN_IDs.BOBA]: "0xdc0486f8bf31DF57a952bcd3c1d3e166e3d9eC8b",
[CHAIN_IDs.BLAST]: "0xF7bc58b8D8f97ADC129cfC4c9f45Ce3C0E1D2692",
[CHAIN_IDs.LINEA]: "0x3aAB2285ddcDdaD8edf438C1bAB47e1a9D05a9b4",
[CHAIN_IDs.MAINNET]: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
[CHAIN_IDs.MODE]: "0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF",
Expand All @@ -243,6 +254,8 @@ export const TOKEN_SYMBOLS_MAP = {
[CHAIN_IDs.BASE]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BASE_SEPOLIA]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.BOBA]: "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000",
[CHAIN_IDs.BLAST]: "0x4300000000000000000000000000000000000004",
[CHAIN_IDs.BLAST_SEPOLIA]: "0x4200000000000000000000000000000000000023",
[CHAIN_IDs.LINEA]: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f",
[CHAIN_IDs.LISK]: "0x4200000000000000000000000000000000000006",
[CHAIN_IDs.LISK_SEPOLIA]: "0x4200000000000000000000000000000000000006",
Expand Down