@broxus/js-core
Version:
MobX-based JavaScript Core library
18 lines (17 loc) • 881 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getScanLink = getScanLink;
const types_1 = require("../types");
/* eslint-disable perfectionist/sort-objects */
const links = {
[types_1.TvmChains.VenomMainnet.toString()]: 'https://venomscan.com',
[types_1.TvmChains.EverscaleMainnet.toString()]: 'https://everscan.io',
[types_1.TvmChains.HumoMainnet.toString()]: 'https://humoscan.com',
[types_1.TvmChains.TychoTestnet.toString()]: 'https://testnet.tychoprotocol.com',
[types_1.TvmChains.VenomTestnet.toString()]: 'https://testnet.venomscan.com',
[types_1.TvmChains.MShariaMainnet.toString()]: 'https://https://mshariascan.io',
[types_1.TvmChains.VanLang.toString()]: 'https://vanlang.io',
};
function getScanLink(address, networkId) {
return !networkId ? undefined : `${links[networkId]}/accounts/${address}`;
}