UNPKG

@broxus/tvm-connect

Version:

TypeScript SDK for connecting to Nekoton-compatible wallets using a unified interface.

182 lines (181 loc) 5.98 kB
import { DEFAULT_NATIVE_CURRENCY_DECIMALS, TvmChains, ZeroAddress } from '@broxus/js-core'; import { AddressLiteral } from 'everscale-inpage-provider'; import { everAssetIcon, everscaleMainnetIcon, humoAssetIcon, humoMainnetIcon, mShariaAssetIcon, mShariaMainnetIcon, tomMainnetIcon, tonAssetIcon, tychoAssetIcon, tychoTestnetIcon, vanLangAssetIcon, vanLangIcon, venomAssetIcon, venomMainnetIcon, } from '../misc/assets'; export const everscaleMainnet = { chainId: TvmChains.EverscaleMainnet.toString(), currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: everAssetIcon, name: 'EVER', symbol: 'EVER', wrappedCurrencyAddress: new AddressLiteral('0:a49cd4e158a9a15555e624759e2e4e766d22600b7800d891e46f9291f044a93d'), }, explorer: { accountsSubPath: 'accounts', baseUrl: 'https://everscan.io', title: 'EVERScan', transactionsSubPath: 'transactions', }, icon: everscaleMainnetIcon, id: `tvm:${TvmChains.EverscaleMainnet}`, name: 'Everscale', rpcUrl: 'https://jrpc.everwallet.net', shortName: 'Everscale', type: 'tvm', }; export const venomMainnet = { chainId: TvmChains.VenomMainnet.toString(), currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: venomAssetIcon, name: 'VENOM', symbol: 'VENOM', wrappedCurrencyAddress: new AddressLiteral('0:77d36848bb159fa485628bc38dc37eadb74befa514395e09910f601b841f749e'), }, explorer: { accountsSubPath: 'accounts', baseUrl: 'https://venomscan.com', title: 'VenomScan', transactionsSubPath: 'transactions', }, icon: venomMainnetIcon, id: `tvm:${TvmChains.VenomMainnet}`, name: 'Venom Mainnet', rpcUrl: 'https://jrpc.venom.foundation', shortName: 'Venom', type: 'tvm', }; export const tychoTestnet = { chainId: TvmChains.TychoTestnet.toString(), currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: tychoAssetIcon, name: 'TYCHO', symbol: 'TYCHO', wrappedCurrencyAddress: new AddressLiteral('0:06e75c5e280c25fc96470891476937df6c3c575b43c2d8d8af8c612a6d3dc146'), }, explorer: { accountsSubPath: 'accounts', baseUrl: 'https://testnet.tychoprotocol.com', title: 'Tycho Testnet Explorer', transactionsSubPath: 'transactions', }, icon: tychoTestnetIcon, id: `tvm:${TvmChains.TychoTestnet}`, name: 'Tycho Testnet', rpcUrl: 'https://rpc-testnet.tychoprotocol.com/', shortName: 'Tycho Testnet', type: 'tvm', }; export const tonMainnet = { chainId: '-239', currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: tonAssetIcon, name: 'TON', symbol: 'TON', wrappedCurrencyAddress: new AddressLiteral('0:cacda65ac0ea5953338c90dcc7af28e3a81a35f83497a28f31eb8f27ed420611'), }, explorer: { accountsSubPath: null, baseUrl: 'https://tonviewer.com', title: 'TonViewer', tokensSubPath: null, transactionsSubPath: 'transaction', }, icon: tomMainnetIcon, id: 'tvm:-239', name: 'TON Mainnet', rpcUrl: 'https://jrpc-ton.broxus.com', shortName: 'TON', type: 'tvm', }; export const humoMainnet = { chainId: TvmChains.HumoMainnet.toString(), currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: humoAssetIcon, name: 'HUMO', symbol: 'HUMO', wrappedCurrencyAddress: new AddressLiteral('0:ee49dd4c3a7754ace683612e5f9d06508ff13acb4055168fada912af25919271'), }, explorer: { accountsSubPath: 'accounts', baseUrl: 'https://humoscan.com', title: 'Humo Scan', transactionsSubPath: 'transactions', }, icon: humoMainnetIcon, id: `tvm:${TvmChains.HumoMainnet}`, name: 'Humo', rpcUrl: 'https://rpc.humonetwork.com/', shortName: 'Humo', type: 'tvm', }; export const tonTestnet = { chainId: '-3', currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: tonAssetIcon, name: 'TON', symbol: 'TON', wrappedCurrencyAddress: new AddressLiteral('0:cacda65ac0ea5953338c90dcc7af28e3a81a35f83497a28f31eb8f27ed420611'), }, explorer: { accountsSubPath: null, baseUrl: 'https://testnet.tonviewer.com', title: 'TonViewer', tokensSubPath: null, transactionsSubPath: 'transaction', }, icon: tomMainnetIcon, id: 'tvm:-3', name: 'TON Mainnet', rpcUrl: 'https://jrpc-ton-testnet.broxus.com', shortName: 'TON', type: 'tvm', }; export const mShariaMainnet = { chainId: TvmChains.MShariaMainnet.toString(), currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: mShariaAssetIcon, name: 'MSHA', symbol: 'MSHA', wrappedCurrencyAddress: new AddressLiteral('0:dc85db3b3cab2c54dd728e882084b2c03086018ed0ce5928cc510d8756ed49c9'), }, explorer: { accountsSubPath: 'accounts', baseUrl: 'https://mshariascan.io', title: 'M.Sharia Scan', transactionsSubPath: 'transactions', }, icon: mShariaMainnetIcon, id: `tvm:${TvmChains.MShariaMainnet}`, name: 'M.Sharia', rpcUrl: 'https://rpc.msharia.io', shortName: 'M.Sharia', type: 'tvm', }; export const vanLang = { chainId: TvmChains.VanLang.toString(), currency: { decimals: DEFAULT_NATIVE_CURRENCY_DECIMALS, icon: vanLangAssetIcon, name: 'VLP', symbol: 'VLP', wrappedCurrencyAddress: ZeroAddress, }, explorer: { accountsSubPath: 'accounts', baseUrl: 'https://vanlang.io/', title: 'Van Lang Scan', transactionsSubPath: 'transactions', }, icon: vanLangIcon, id: `tvm:${TvmChains.VanLang}`, name: 'Van Lang', rpcUrl: 'https://rpc.vanlang.io', shortName: 'Van Lang', type: 'tvm', };