mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
- Gas tracker FAQ: Blockscout → Lux Explorer - Chain config web3/chains.ts: explorer name → Lux Explorer - Auth screens: Blockscout account → Lux account - Contract verification: Blockscout supports → Lux Explorer supports - API docs: Blockscout core API → Lux Explorer Core API - Rewards/merits: Blockscout Merits → Lux Explorer Rewards - Marketplace disclaimer and integration icons - Address verification: [email protected] → [email protected] - Chart export filenames: Blockscout chart/stats → Lux Explorer - OTEL service name: blockscout_frontend → lux_explorer_frontend - Dev container: blockscout dev → lux explorer dev
14 lines
332 B
TypeScript
14 lines
332 B
TypeScript
export default function getApiVersionUrl(version: string | undefined): string | undefined {
|
|
if (!version) {
|
|
return;
|
|
}
|
|
|
|
const [ tag, commit ] = version.split('.+commit.');
|
|
|
|
if (commit) {
|
|
return `https://github.com/luxfi/explorer/commit/${ commit }`;
|
|
}
|
|
|
|
return `https://github.com/luxfi/explorer/tree/${ tag }`;
|
|
}
|