@broxus/tvm-connect
Version:
TypeScript SDK for connecting to Nekoton-compatible wallets using a unified interface.
185 lines (184 loc) • 6.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.vanLang = exports.mShariaMainnet = exports.tonTestnet = exports.humoMainnet = exports.tonMainnet = exports.tychoTestnet = exports.venomMainnet = exports.everscaleMainnet = void 0;
const js_core_1 = require("@broxus/js-core");
const everscale_inpage_provider_1 = require("everscale-inpage-provider");
const assets_1 = require("../misc/assets");
exports.everscaleMainnet = {
chainId: js_core_1.TvmChains.EverscaleMainnet.toString(),
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.everAssetIcon,
name: 'EVER',
symbol: 'EVER',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:a49cd4e158a9a15555e624759e2e4e766d22600b7800d891e46f9291f044a93d'),
},
explorer: {
accountsSubPath: 'accounts',
baseUrl: 'https://everscan.io',
title: 'EVERScan',
transactionsSubPath: 'transactions',
},
icon: assets_1.everscaleMainnetIcon,
id: `tvm:${js_core_1.TvmChains.EverscaleMainnet}`,
name: 'Everscale',
rpcUrl: 'https://jrpc.everwallet.net',
shortName: 'Everscale',
type: 'tvm',
};
exports.venomMainnet = {
chainId: js_core_1.TvmChains.VenomMainnet.toString(),
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.venomAssetIcon,
name: 'VENOM',
symbol: 'VENOM',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:77d36848bb159fa485628bc38dc37eadb74befa514395e09910f601b841f749e'),
},
explorer: {
accountsSubPath: 'accounts',
baseUrl: 'https://venomscan.com',
title: 'VenomScan',
transactionsSubPath: 'transactions',
},
icon: assets_1.venomMainnetIcon,
id: `tvm:${js_core_1.TvmChains.VenomMainnet}`,
name: 'Venom Mainnet',
rpcUrl: 'https://jrpc.venom.foundation',
shortName: 'Venom',
type: 'tvm',
};
exports.tychoTestnet = {
chainId: js_core_1.TvmChains.TychoTestnet.toString(),
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.tychoAssetIcon,
name: 'TYCHO',
symbol: 'TYCHO',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:06e75c5e280c25fc96470891476937df6c3c575b43c2d8d8af8c612a6d3dc146'),
},
explorer: {
accountsSubPath: 'accounts',
baseUrl: 'https://testnet.tychoprotocol.com',
title: 'Tycho Testnet Explorer',
transactionsSubPath: 'transactions',
},
icon: assets_1.tychoTestnetIcon,
id: `tvm:${js_core_1.TvmChains.TychoTestnet}`,
name: 'Tycho Testnet',
rpcUrl: 'https://rpc-testnet.tychoprotocol.com/',
shortName: 'Tycho Testnet',
type: 'tvm',
};
exports.tonMainnet = {
chainId: '-239',
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.tonAssetIcon,
name: 'TON',
symbol: 'TON',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:cacda65ac0ea5953338c90dcc7af28e3a81a35f83497a28f31eb8f27ed420611'),
},
explorer: {
accountsSubPath: null,
baseUrl: 'https://tonviewer.com',
title: 'TonViewer',
tokensSubPath: null,
transactionsSubPath: 'transaction',
},
icon: assets_1.tomMainnetIcon,
id: 'tvm:-239',
name: 'TON Mainnet',
rpcUrl: 'https://jrpc-ton.broxus.com',
shortName: 'TON',
type: 'tvm',
};
exports.humoMainnet = {
chainId: js_core_1.TvmChains.HumoMainnet.toString(),
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.humoAssetIcon,
name: 'HUMO',
symbol: 'HUMO',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:ee49dd4c3a7754ace683612e5f9d06508ff13acb4055168fada912af25919271'),
},
explorer: {
accountsSubPath: 'accounts',
baseUrl: 'https://humoscan.com',
title: 'Humo Scan',
transactionsSubPath: 'transactions',
},
icon: assets_1.humoMainnetIcon,
id: `tvm:${js_core_1.TvmChains.HumoMainnet}`,
name: 'Humo',
rpcUrl: 'https://rpc.humonetwork.com/',
shortName: 'Humo',
type: 'tvm',
};
exports.tonTestnet = {
chainId: '-3',
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.tonAssetIcon,
name: 'TON',
symbol: 'TON',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:cacda65ac0ea5953338c90dcc7af28e3a81a35f83497a28f31eb8f27ed420611'),
},
explorer: {
accountsSubPath: null,
baseUrl: 'https://testnet.tonviewer.com',
title: 'TonViewer',
tokensSubPath: null,
transactionsSubPath: 'transaction',
},
icon: assets_1.tomMainnetIcon,
id: 'tvm:-3',
name: 'TON Mainnet',
rpcUrl: 'https://jrpc-ton-testnet.broxus.com',
shortName: 'TON',
type: 'tvm',
};
exports.mShariaMainnet = {
chainId: js_core_1.TvmChains.MShariaMainnet.toString(),
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.mShariaAssetIcon,
name: 'MSHA',
symbol: 'MSHA',
wrappedCurrencyAddress: new everscale_inpage_provider_1.AddressLiteral('0:dc85db3b3cab2c54dd728e882084b2c03086018ed0ce5928cc510d8756ed49c9'),
},
explorer: {
accountsSubPath: 'accounts',
baseUrl: 'https://mshariascan.io',
title: 'M.Sharia Scan',
transactionsSubPath: 'transactions',
},
icon: assets_1.mShariaMainnetIcon,
id: `tvm:${js_core_1.TvmChains.MShariaMainnet}`,
name: 'M.Sharia',
rpcUrl: 'https://rpc.msharia.io',
shortName: 'M.Sharia',
type: 'tvm',
};
exports.vanLang = {
chainId: js_core_1.TvmChains.VanLang.toString(),
currency: {
decimals: js_core_1.DEFAULT_NATIVE_CURRENCY_DECIMALS,
icon: assets_1.vanLangAssetIcon,
name: 'VLP',
symbol: 'VLP',
wrappedCurrencyAddress: js_core_1.ZeroAddress,
},
explorer: {
accountsSubPath: 'accounts',
baseUrl: 'https://vanlang.io/',
title: 'Van Lang Scan',
transactionsSubPath: 'transactions',
},
icon: assets_1.vanLangIcon,
id: `tvm:${js_core_1.TvmChains.VanLang}`,
name: 'Van Lang',
rpcUrl: 'https://rpc.vanlang.io',
shortName: 'Van Lang',
type: 'tvm',
};