UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

16 lines (15 loc) 790 B
import { TvmChains } from '../types'; /* eslint-disable perfectionist/sort-objects */ const links = { [TvmChains.VenomMainnet.toString()]: 'https://venomscan.com', [TvmChains.HamsterMainnet.toString()]: 'https://hamsterscan.io', [TvmChains.EverscaleMainnet.toString()]: 'https://everscan.io', [TvmChains.HumoMainnet.toString()]: 'https://humoscan.com', [TvmChains.TychoTestnet.toString()]: 'https://testnet.tychoprotocol.com', [TvmChains.VenomTestnet.toString()]: 'https://testnet.venomscan.com', [TvmChains.MShariaMainnet.toString()]: 'https://https://mshariascan.io', [TvmChains.VanLang.toString()]: 'https://vanlang.io', }; export function getScanLink(address, networkId) { return !networkId ? undefined : `${links[networkId]}/accounts/${address}`; }