UNPKG

hive-keychain-commons

Version:

Platform-agnostic functions used in Hive Keychain mobile and extensions

51 lines (50 loc) 1.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExchangesUtils = void 0; const getExchanges = () => { return [ { name: 'Binance', image: 'binance', link: 'https://www.binance.com/en/trade/HIVE_BTC', username: 'bdhivesteem', acceptedCoins: ['HIVE'], }, { name: 'Upbit', image: 'upbit', link: 'https://id.upbit.com/exchange?code=CRIX.UPBIT.BTC-HIVE', username: 'user.dunamu', acceptedCoins: ['HIVE', 'HBD'], }, { name: 'Gateio', image: 'gateio', link: 'https://www.gate.io/trade/HIVE_USDT', username: 'gateiodeposit', acceptedCoins: ['HIVE'], }, { name: 'Huobi', image: 'huobi', link: 'https://www.huobi.com/en-us/exchange/hive_usdt/', username: 'huobi-pro', acceptedCoins: ['HIVE'], }, // { // name: 'Mexc', // image: 'mexc', // link: 'https://www.mexc.com/exchange/HIVE_USDT', // username: 'mxchive', // acceptedCoins: ['HIVE'], // }, ]; }; const isExchange = (username) => { const exchanges = getExchanges(); return !!exchanges.find((e) => e.username === username); }; exports.ExchangesUtils = { getExchanges, isExchange, };