UNPKG

@broxus/tvm-connect

Version:

Nekoton-compatible wallets connector.

20 lines (19 loc) 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertNetworkToChainParams = convertNetworkToChainParams; function convertNetworkToChainParams(network) { return { config: { explorerBaseUrl: network.explorer.baseUrl, symbol: network.currency.symbol, }, connection: { data: { endpoint: network.rpcUrl, }, type: 'proto', }, name: network.name, networkId: Number(network.chainId), }; }