11import { NETWORK } from './networks'
22
3- const isDev = import . meta. env . MODE === 'development'
4- const VITE_ETHERSCAN_KEY = import . meta. env . VITE_ETHERSCAN_KEY
5- if ( ! VITE_ETHERSCAN_KEY ) {
6- throw new Error ( 'VITE_ETHERSCAN_KEY is not set' )
7- }
8-
9- const VITE_GNOSISSCAN_KEY = import . meta. env . VITE_GNOSISSCAN_KEY
10- if ( ! isDev && ! VITE_GNOSISSCAN_KEY ) {
11- throw new Error ( 'VITE_GNOSISSCAN_KEY is not set' )
12- }
13-
14- const VITE_POLYGONSCAN_KEY = import . meta. env . VITE_POLYGONSCAN_KEY
15- if ( ! isDev && ! VITE_POLYGONSCAN_KEY ) {
16- throw new Error ( 'VITE_POLYGONSCAN_KEY is not set' )
17- }
18-
19- const VITE_BSCSCAN_KEY = import . meta. env . VITE_BSCSCAN_KEY
20- if ( ! isDev && ! VITE_BSCSCAN_KEY ) {
21- throw new Error ( 'VITE_BSCSCAN_KEY is not set' )
22- }
23-
24- const VITE_OPTIMISTIC_ETHERSCAN_KEY = import . meta. env . VITE_OPTIMISTIC_ETHERSCAN_KEY
25- if ( ! isDev && ! VITE_OPTIMISTIC_ETHERSCAN_KEY ) {
26- throw new Error ( 'VITE_OPTIMISTIC_ETHERSCAN_KEY is not set' )
27- }
28-
29- const VITE_ARBISCAN_KEY = import . meta. env . VITE_ARBISCAN_KEY
30- if ( ! isDev && ! VITE_ARBISCAN_KEY ) {
31- throw new Error ( 'VITE_ARBISCAN_KEY is not set' )
32- }
33-
34- const VITE_SNOWTRACE_KEY = import . meta. env . VITE_SNOWTRACE_KEY
35- if ( ! isDev && ! VITE_SNOWTRACE_KEY ) {
36- throw new Error ( 'VITE_SNOWTRACE_KEY is not set' )
37- }
38-
39- const VITE_BASESCAN_KEY = import . meta. env . VITE_BASESCAN_KEY
40- if ( ! isDev && ! VITE_BASESCAN_KEY ) {
41- throw new Error ( 'VITE_BASESCAN_KEY is not set' )
42- }
43-
443interface ExplorerData {
454 networkExplorerName : string
465 networkExplorerUrl : string
@@ -59,7 +18,7 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
5918 safeTransactionApi : 'https://safe-transaction-mainnet.safe.global/' ,
6019 safeUrl : 'https://app.safe.global/eth:' ,
6120 verifyContractUrl : 'https://etherscan.io/verifyContract' ,
62- explorerApiKey : VITE_ETHERSCAN_KEY ,
21+ explorerApiKey : '6RJ8KT4B1S9V7E3CIYECNY7HFW8IPWQ3C4' ,
6322 } ,
6423 [ NETWORK . GNOSIS_CHAIN ] : {
6524 networkExplorerName : 'GnosisScan' ,
@@ -68,7 +27,7 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
6827 safeUrl : 'https://app.safe.global/gno:' ,
6928 safeTransactionApi : 'https://safe-transaction-gnosis-chain.safe.global/' ,
7029 verifyContractUrl : 'https://gnosisscan.io/verifyContract' ,
71- explorerApiKey : VITE_GNOSISSCAN_KEY ,
30+ explorerApiKey : 'ZWZWSHX4X7K8G1ZFRETI4DERP2ZI5Y2QGF' ,
7231 } ,
7332 [ NETWORK . POLYGON ] : {
7433 networkExplorerName : 'Polygonscan' ,
@@ -77,16 +36,25 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
7736 safeUrl : 'https://app.safe.global/matic:' ,
7837 safeTransactionApi : 'https://safe-transaction-polygon.safe.global/' ,
7938 verifyContractUrl : 'https://polygonscan.com/verifyContract' ,
80- explorerApiKey : VITE_POLYGONSCAN_KEY ,
39+ explorerApiKey : 'NM937M1IZXVQ6QVDXS73XMF8JSAB677JWQ' ,
40+ } ,
41+ [ NETWORK . ZKEVM ] : {
42+ networkExplorerName : 'Polygonscan' ,
43+ networkExplorerUrl : 'https://zkevm.polygonscan.com' ,
44+ networkExplorerApiUrl : 'https://api-zkevm.polygonscan.com/api' ,
45+ safeTransactionApi : 'https://safe-transaction-zkevm.safe.global/' ,
46+ safeUrl : 'https://app.safe.global/zkevm:' ,
47+ verifyContractUrl : 'https://zkevm.polygonscan.com/verifyContract' ,
48+ explorerApiKey : 'NM937M1IZXVQ6QVDXS73XMF8JSAB677JWQ' ,
8149 } ,
8250 [ NETWORK . BSC ] : {
83- networkExplorerName : 'Bscscan ' ,
51+ networkExplorerName : 'BscScan ' ,
8452 networkExplorerUrl : 'https://bscscan.com/' ,
8553 networkExplorerApiUrl : 'https://api.bscscan.com/api' ,
8654 safeUrl : 'https://app.safe.global/bsc:' ,
8755 safeTransactionApi : 'https://safe-transaction-bsc.safe.global/' ,
8856 verifyContractUrl : 'https://bscscan.com/verifyContract' ,
89- explorerApiKey : VITE_BSCSCAN_KEY ,
57+ explorerApiKey : 'AMXEAU3N9P7RJHFSZ7KAJDRY5MFJ1N29D6' ,
9058 } ,
9159 [ NETWORK . OPTIMISM ] : {
9260 networkExplorerName : 'Optimism' ,
@@ -95,7 +63,7 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
9563 safeTransactionApi : 'https://safe-transaction-optimism.safe.global/' ,
9664 safeUrl : 'https://app.safe.global/oeth:' ,
9765 verifyContractUrl : 'https://optimistic.etherscan.io/verifyContract' ,
98- explorerApiKey : VITE_OPTIMISTIC_ETHERSCAN_KEY ,
66+ explorerApiKey : 'IG8IW3N3CKCZPV5U14HQ56K9TEPX9SWXX4' ,
9967 } ,
10068 [ NETWORK . ARBITRUM ] : {
10169 networkExplorerName : 'Arbiscan' ,
@@ -104,7 +72,7 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
10472 safeTransactionApi : 'https://safe-transaction-arbitrum.safe.global/' ,
10573 safeUrl : 'https://app.safe.global/arb1:' ,
10674 verifyContractUrl : 'https://arbiscan.io/verifyContract' ,
107- explorerApiKey : VITE_ARBISCAN_KEY ,
75+ explorerApiKey : 'CSITWCYI9UDAJ7QS92FNVJ2XQP5B23P4J9' ,
10876 } ,
10977 [ NETWORK . AVALANCHE ] : {
11078 networkExplorerName : 'Snowtrace' ,
@@ -113,7 +81,7 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
11381 safeTransactionApi : 'https://safe-transaction-avalanche.safe.global/' ,
11482 safeUrl : 'https://app.safe.global/avax:' ,
11583 verifyContractUrl : 'https://snowtrace.io/verifyContract' ,
116- explorerApiKey : VITE_SNOWTRACE_KEY ,
84+ explorerApiKey : 'IAST9REKWMIW1QSE2M7K2IKKAZVNQPHC1U' ,
11785 } ,
11886 [ NETWORK . SEPOLIA ] : {
11987 networkExplorerName : 'Etherscan' ,
@@ -122,7 +90,16 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
12290 safeTransactionApi : 'https://safe-transaction-sepolia.safe.global/' ,
12391 safeUrl : 'https://app.safe.global/sep:' ,
12492 verifyContractUrl : 'https://sepolia.etherscan.io/verifyContract' ,
125- explorerApiKey : VITE_ETHERSCAN_KEY ,
93+ explorerApiKey : '6RJ8KT4B1S9V7E3CIYECNY7HFW8IPWQ3C4' ,
94+ } ,
95+ [ NETWORK . BASE_SEPOLIA ] : {
96+ networkExplorerName : 'BaseScan' ,
97+ networkExplorerUrl : 'https://sepolia.basescan.org' ,
98+ networkExplorerApiUrl : 'https://api-sepolia.basescan.org/api' ,
99+ safeTransactionApi : 'https://safe-transaction-base-sepolia.safe.global/' ,
100+ safeUrl : 'https://app.safe.global/basesep:' ,
101+ verifyContractUrl : 'https://sepolia.basescan.org/verifyContract' ,
102+ explorerApiKey : 'ZSBW5JZVFZIB19V7YBG14KQFTUXFT8BDNS' ,
126103 } ,
127104 [ NETWORK . BASE ] : {
128105 networkExplorerName : 'Basescan' ,
@@ -131,7 +108,43 @@ export const EXPLORERS_CONFIG: Record<NETWORK, ExplorerData> = {
131108 safeTransactionApi : 'https://safe-transaction-base.safe.global' ,
132109 safeUrl : 'https://app.safe.global/base:' ,
133110 verifyContractUrl : 'https://basescan.org/verifyContract' ,
134- explorerApiKey : VITE_BASESCAN_KEY ,
111+ explorerApiKey : 'ZSBW5JZVFZIB19V7YBG14KQFTUXFT8BDNS' ,
112+ } ,
113+ // [NETWORK.MANTLE]: {
114+ // networkExplorerName: 'Mantlescan',
115+ // networkExplorerUrl: 'https://mantlescan.xyz',
116+ // networkExplorerApiUrl: 'https://api.mantlescan.xyz/api',
117+ // safeTransactionApi: 'https://safe-transaction-mantle.safe.global/',
118+ // safeUrl: 'https://app.safe.global/mantle:',
119+ // verifyContractUrl: 'https://mantlescan.xyz/verifyContract',
120+ // explorerApiKey: 'XGKTSFD523UP64KEFWD5EDA5W1N6BBXZFT',
121+ // },
122+ [ NETWORK . BERACHAIN ] : {
123+ networkExplorerName : 'Berascan' ,
124+ networkExplorerUrl : 'https://berascan.com' ,
125+ networkExplorerApiUrl : 'https://api.berascan.com/api' ,
126+ safeTransactionApi : 'https://safe-transaction-berachain.safe.global/' ,
127+ safeUrl : 'https://app.safe.global/berachain:' ,
128+ verifyContractUrl : 'https://berascan.com/verifyContract' ,
129+ explorerApiKey : 'X39RQV6MWGUB3W4NC4VI6YM4MTYMCFN8Y9' ,
130+ } ,
131+ [ NETWORK . SONIC ] : {
132+ networkExplorerName : 'Sonicscan' ,
133+ networkExplorerUrl : 'https://sonicscan.org' ,
134+ networkExplorerApiUrl : 'https://api.sonicscan.org/api' ,
135+ safeTransactionApi : 'https://safe-transaction-sonic.safe.global/' ,
136+ safeUrl : 'https://app.safe.global/sonic:' ,
137+ verifyContractUrl : 'https://sonicscan.org/verifyContract' ,
138+ explorerApiKey : '4PKXQYT2DGQXHSINRFY4UM8RUFJHR9V1TX' ,
139+ } ,
140+ [ NETWORK . CELO ] : {
141+ networkExplorerName : 'Celoscan' ,
142+ networkExplorerUrl : 'https://celoscan.io' ,
143+ networkExplorerApiUrl : 'https://api.celoscan.io/api' ,
144+ safeTransactionApi : 'https://safe-transaction-celo.safe.global/' ,
145+ safeUrl : 'https://app.safe.global/celo:' ,
146+ verifyContractUrl : 'https://celoscan.io/verifyContract' ,
147+ explorerApiKey : '8ME8R1XQAGXK15UXPAFI46JTPP5NQ7WEMC' ,
135148 } ,
136149}
137150
0 commit comments