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

Commit

Permalink
Added support for OpBNB (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtianhao authored Nov 20, 2023
1 parent bf6b950 commit b2d8860
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '0.6.6';
export const VERSION = '0.6.7';

export const SUPPORTED_VERIFIERS = ['etherscan', 'sourcify'];

Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit b2d8860

Please sign in to comment.