forked from swiss-knife-xyz/swiss-knife
-
Notifications
You must be signed in to change notification settings - Fork 0
/
txExplorers.ts
233 lines (232 loc) · 7.13 KB
/
txExplorers.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
import { ExplorersData } from "@/types";
import { CHAINLABEL_KEY, TX_KEY, c } from "./common";
export const txExplorers: ExplorersData = {
Arbitrum: {
urlLayout: `https://${CHAINLABEL_KEY}arbiscan.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.arbitrum.id]: "",
[c.arbitrumNova.id]: "nova.",
[c.arbitrumSepolia.id]: "sepolia.",
},
},
Basescan: {
urlLayout: `https://${CHAINLABEL_KEY}basescan.org/tx/${TX_KEY}`,
chainIdToLabel: {
[c.base.id]: "",
[c.baseSepolia.id]: "sepolia.",
},
},
Bloxy: {
urlLayout: `https://bloxy.info/tx/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "",
},
},
Celoscan: {
urlLayout: `https://${CHAINLABEL_KEY}celoscan.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.celo.id]: "",
[c.celoAlfajores.id]: "alfajores.",
},
},
// Cruise: {
// urlLayout: `https://cruise.supremacy.team/detail/?tx=${TX_KEY}`,
// chainIdToLabel: {
// [c.mainnet.id]: "",
// },
// },
EigenPhi: {
urlLayout: `https://tx.eigenphi.io/analyseTransaction?chain=ALL&tx=${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "",
[c.arbitrum.id]: "",
[c.avalanche.id]: "",
[c.bsc.id]: "",
[c.cronos.id]: "",
[c.fantom.id]: "",
[c.optimism.id]: "",
[c.polygon.id]: "",
},
},
Ethernow: {
// "www" is required here, unless doesn't load
urlLayout: `https://www.ethernow.xyz/tx/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "",
},
},
Etherscan: {
urlLayout: `https://etherscan.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "",
},
},
"Etherscan (Testnet)": {
urlLayout: `https://${CHAINLABEL_KEY}.etherscan.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.goerli.id]: "goerli",
[c.sepolia.id]: "sepolia",
},
},
"Ethtx.info": {
urlLayout: `https://ethtx.info/${CHAINLABEL_KEY}/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "mainnet",
[c.goerli.id]: "goerli",
},
},
FTMscan: {
urlLayout: `https://${CHAINLABEL_KEY}ftmscan.com/tx/${TX_KEY}`,
chainIdToLabel: {
[c.fantom.id]: "",
[c.fantomTestnet.id]: "testnet.",
},
faviconUrl: "https://ftmscan.com/assets/generic/html/favicon-light.ico",
faviconWhite: true,
},
Openchain: {
urlLayout: `https://openchain.xyz/trace/${CHAINLABEL_KEY}/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "ethereum",
[c.arbitrum.id]: "arbitrum",
[c.avalanche.id]: "avalanche",
[c.bsc.id]: "binance",
[c.cronos.id]: "cronos",
[c.fantom.id]: "fantom",
[c.optimism.id]: "optimism",
[c.polygon.id]: "polygon",
},
},
OptimismScan: {
urlLayout: `https://${CHAINLABEL_KEY}etherscan.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.optimism.id]: "optimistic.",
[c.optimismSepolia.id]: "sepolia-optimism.",
},
},
Otterscan: {
urlLayout: `https://sepolia.otterscan.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.sepolia.id]: "",
},
},
Phalcon: {
urlLayout: `https://explorer.phalcon.xyz/tx/${CHAINLABEL_KEY}/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "eth",
[c.arbitrum.id]: "arbitrum",
[c.avalanche.id]: "avax",
[c.bsc.id]: "bsc",
[c.cronos.id]: "cro",
[c.fantom.id]: "ftm",
[c.goerli.id]: "goerli",
[c.optimism.id]: "optimism",
[c.polygon.id]: "polygon",
[c.sepolia.id]: "sepolia",
},
},
PolygonScan: {
urlLayout: `https://${CHAINLABEL_KEY}polygonscan.com/tx/${TX_KEY}`,
chainIdToLabel: {
[c.polygon.id]: "",
[c.polygonMumbai.id]: "mumbai.",
[c.polygonZkEvm.id]: "zkevm.",
[c.polygonZkEvmTestnet.id]: "testnet-zkevm.",
},
faviconUrl: "https://polygonscan.com/assets/generic/html/favicon-light.ico",
},
Sentio: {
urlLayout: `https://app.sentio.xyz/tx/${CHAINLABEL_KEY}/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: c.mainnet.id.toString(),
[c.arbitrum.id]: c.arbitrum.id.toString(),
[c.avalanche.id]: c.avalanche.id.toString(),
[c.aurora.id]: c.aurora.id.toString(),
[c.bsc.id]: c.bsc.id.toString(),
[c.cronos.id]: c.cronos.id.toString(),
[c.fantom.id]: c.fantom.id.toString(),
[c.moonbeam.id]: c.moonbeam.id.toString(),
[c.okc.id]: c.okc.id.toString(),
[c.optimism.id]: c.optimism.id.toString(),
[c.polygon.id]: c.polygon.id.toString(),
[c.polygonZkEvm.id]: c.polygonZkEvm.id.toString(),
[c.zkSync.id]: c.zkSync.id.toString(),
},
faviconUrl: "https://app.sentio.xyz/favicon.ico",
},
Snowtrace: {
urlLayout: `https://${CHAINLABEL_KEY}snowtrace.io/tx/${TX_KEY}`,
chainIdToLabel: {
[c.avalanche.id]: "",
[c.avalancheFuji.id]: "testnet.",
},
},
Tenderly: {
urlLayout: `https://dashboard.tenderly.co/tx/${CHAINLABEL_KEY}/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "mainnet",
[c.arbitrum.id]: "arbitrum",
[c.avalanche.id]: "avalanche-mainnet",
[c.bsc.id]: "bsc-mainnet",
[c.cronos.id]: "cronos",
[c.fantom.id]: "fantom",
[c.gnosis.id]: "gnosis-chain",
[c.goerli.id]: "goerli",
[c.optimism.id]: "optimistic",
[c.polygon.id]: "polygon",
[c.sepolia.id]: "sepolia",
},
},
TokenFlow: {
urlLayout: `https://app.tokenflow.live/anytx/mainnet/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "",
},
},
VFatScan: {
urlLayout: `https://scan.vf.at/tx/${CHAINLABEL_KEY}/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: c.mainnet.id.toString(),
[c.arbitrum.id]: c.arbitrum.id.toString(),
[c.arbitrumNova.id]: c.arbitrumNova.id.toString(),
[c.aurora.id]: c.aurora.id.toString(),
[c.avalanche.id]: c.avalanche.id.toString(),
[c.base.id]: c.base.id.toString(),
[c.boba.id]: c.boba.id.toString(),
[c.bsc.id]: c.bsc.id.toString(),
[c.canto.id]: c.canto.id.toString(),
[c.celo.id]: c.celo.id.toString(),
[c.cronos.id]: c.cronos.id.toString(),
[c.dfk.id]: c.dfk.id.toString(),
[c.dogechain.id]: c.dogechain.id.toString(),
[c.evmos.id]: c.evmos.id.toString(),
[c.fantom.id]: c.fantom.id.toString(),
[c.fuse.id]: c.fuse.id.toString(),
[c.gnosis.id]: c.gnosis.id.toString(),
[c.harmonyOne.id]: c.harmonyOne.id.toString(),
[c.iotex.id]: c.iotex.id.toString(),
[c.klaytn.id]: c.klaytn.id.toString(),
[c.linea.id]: c.linea.id.toString(),
[c.mantle.id]: c.mantle.id.toString(),
[c.metis.id]: c.metis.id.toString(),
[c.moonbeam.id]: c.moonbeam.id.toString(),
[c.moonriver.id]: c.moonriver.id.toString(),
[c.okc.id]: c.okc.id.toString(),
[c.optimism.id]: c.optimism.id.toString(),
[c.polygon.id]: c.polygon.id.toString(),
[c.polygonZkEvm.id]: c.polygonZkEvm.id.toString(),
[c.ronin.id]: c.ronin.id.toString(),
[c.scroll.id]: c.scroll.id.toString(),
[c.telos.id]: c.telos.id.toString(),
[c.wanchain.id]: c.wanchain.id.toString(),
[c.zkSync.id]: c.zkSync.id.toString(),
},
faviconUrl: "https://scan.vf.at/favicon.ico",
},
Viewblock: {
urlLayout: `https://viewblock.io/starknet/tx/${TX_KEY}`,
chainIdToLabel: {
[c.mainnet.id]: "",
},
},
};