From b2d88609bfde2b35da60a7ac3c123a58fb79ed3c Mon Sep 17 00:00:00 2001 From: zth Date: Mon, 20 Nov 2023 21:55:00 +0800 Subject: [PATCH] Added support for OpBNB (#209) --- README.md | 2 ++ src/constants.ts | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d423a9c..10ae60a 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ module.exports = { arbiscan: 'MY_API_KEY', nova_arbiscan: 'MY_API_KEY', bscscan: 'MY_API_KEY', + opbnbscan: 'MY_API_KEY', snowtrace: 'MY_API_KEY', polygonscan: 'MY_API_KEY', zkevm_polygonscan: 'MY_API_KEY', @@ -161,6 +162,7 @@ module.exports = { - [Arbiscan](https://arbiscan.io) (Arbitrum Mainnet & Goerli Testnet) - [Arbiscan Nova](https://nova.arbiscan.io) (Arbitrum Nova) - [BscScan](https://bscscan.com) (BSC Mainnet & Testnet) +- [OpbnbScan](https://opbnb.bscscan.com) (opBNB Mainnet & opBNB Testnet) - [Snowtrace](https://snowtrace.io/) (Avalanche Mainnet & Fuji Testnet) - [PolygonScan](https://polygonscan.com) (Polygon PoS & Mumbai Testnet) - [FtmScan](https://ftmscan.com) (Fantom Mainnet & Testnet) diff --git a/src/constants.ts b/src/constants.ts index 1c966ee..ee01d2a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,4 +1,4 @@ -export const VERSION = '0.6.6'; +export const VERSION = '0.6.7'; export const SUPPORTED_VERIFIERS = ['etherscan', 'sourcify']; @@ -15,6 +15,7 @@ export const API_URLS: { [chainId: number]: string | undefined } = { 128: 'https://api.hecoinfo.com/api', 137: 'https://api.polygonscan.com/api', 199: 'https://api.bttcscan.com/api', + 204: 'https://api-opbnb.bscscan.com/api', 250: 'https://api.ftmscan.com/api', 256: 'https://api-testnet.hecoinfo.com/api', 338: 'https://api-testnet.cronoscan.com/api', @@ -27,6 +28,7 @@ export const API_URLS: { [chainId: number]: string | undefined } = { 1287: 'https://api-moonbase.moonscan.io/api', 1442: 'https://api-testnet-zkevm.polygonscan.com/api', 4002: 'https://api-testnet.ftmscan.com/api', + 5611: 'https://api-opbnb-testnet.bscscan.com/api', 8453: 'https://api.basescan.org/api', 42161: 'https://api.arbiscan.io/api', 42170: 'https://api-nova.arbiscan.io/api', @@ -54,6 +56,7 @@ export const EXPLORER_URLS: { [chainId: number]: string | undefined } = { 128: 'https://hecoinfo.com/address', 137: 'https://polygonscan.com/address', 199: 'https://bttcscan.com/address', + 204: 'https://opbnb.bscscan.com/address', 250: 'https://ftmscan.com/address', 256: 'https://testnet.hecoinfo.com/address', 338: 'https://testnet.cronoscan.com/address', @@ -66,6 +69,7 @@ export const EXPLORER_URLS: { [chainId: number]: string | undefined } = { 1287: 'https://moonbase.moonscan.io/address', 1442: 'https://testnet-zkevm.polygonscan.com/address', 4002: 'https://testnet.ftmscan.com/address', + 5611: 'https://opbnb-testnet.bscscan.com/address', 8453: 'https://basescan.org/address', 42161: 'https://arbiscan.io/address', 42170: 'https://nova.arbiscan.io/address',