Skip to content

Commit

Permalink
feat: 🎸 added support of opBNB
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggrib committed Nov 28, 2024
1 parent 4564c9f commit 07bdc69
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions javascript/tokenscript-viewer/src/integration/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export enum ChainID {
CELO = 42220,
CELO_ALFAJORES = 44787,
RISE_SEPOLIA = 11155931,
OP_BNB = 204,
OP_BNB_TESTNET = 5611,
}

export const CHAIN_MAP: ChainMapInterface = {
Expand All @@ -43,6 +45,7 @@ export const CHAIN_MAP: ChainMapInterface = {
[ChainID.HOLESKY]: 'holesky',
//[ChainID.KOVAN]: "kovan",
[ChainID.BSC]: "bsc",
[ChainID.BSC_TESTNET]: "bsct",
[ChainID.AMOY]: "amoy",
[ChainID.AVALANCH]: "avalanche",
[ChainID.FANTOM]: "fantom",
Expand All @@ -60,6 +63,8 @@ export const CHAIN_MAP: ChainMapInterface = {
[ChainID.CELO]: 'celo',
[ChainID.CELO_ALFAJORES]: 'celo-alfajores',
[ChainID.RISE_SEPOLIA]: 'rise-sepolia',
[ChainID.OP_BNB]: "obnb",
[ChainID.OP_BNB_TESTNET]: "obnbt",
};

export const CHAIN_NAME_MAP: ChainMapInterface = {
Expand All @@ -71,6 +76,7 @@ export const CHAIN_NAME_MAP: ChainMapInterface = {
[ChainID.ARBITRUM]: "Arbitrum",
[ChainID.OPTIMISM]: "Optimism",
[ChainID.BSC]: "Binance Smart Chain",
[ChainID.BSC_TESTNET]: "Binance Smart Chain Testnet",
[ChainID.AVALANCH]: "Avalanche",
[ChainID.FANTOM]: "Fantom",
[ChainID.KAIA]: "Kaia",
Expand All @@ -87,6 +93,8 @@ export const CHAIN_NAME_MAP: ChainMapInterface = {
[ChainID.CELO]: 'Celo',
[ChainID.CELO_ALFAJORES]: 'Celo (Alfajores Testnet)',
[ChainID.RISE_SEPOLIA]: 'Rise (Sepolia Testnet)',
[ChainID.OP_BNB]: "opBNB Mainnet",
[ChainID.OP_BNB_TESTNET]: "opBNB Testnet",
};

const INFURA_API_KEY = Env.INFURA_API_KEY ?? "9f79b2f9274344af90b8d4e244b580ef"
Expand Down Expand Up @@ -234,6 +242,14 @@ export const CHAIN_CONFIG: {[chain: number]: IChainConfig} = {
rpc: 'https://testnet.riselabs.xyz',
explorer: 'https://testnet-explorer.riselabs.xyz/tx/',
},
[ChainID.OP_BNB]: {
rpc: 'https://opbnb-mainnet-rpc.bnbchain.org',
explorer: 'https://opbnb.bscscan.com/tx/'
},
[ChainID.OP_BNB_TESTNET]: {
rpc: 'https://opbnb-testnet-rpc.bnbchain.org',
explorer: 'https://opbnb-testnet.bscscan.com/tx/'
},
}

export const ERC721_ABI_JSON = [
Expand Down

0 comments on commit 07bdc69

Please # to comment.