Browse Source

update explorers list

v0.25
pbca26 7 years ago
parent
commit
de253eb60d
  1. 3
      react/src/components/dashboard/sendCoin/sendCoin.js
  2. 4
      react/src/components/dashboard/sendCoin/sendCoin.render.js
  3. 3
      react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js
  4. 4
      react/src/components/dashboard/walletsTxInfo/walletsTxInfo.render.js
  5. 50
      react/src/util/explorerList.js

3
react/src/components/dashboard/sendCoin/sendCoin.js

@ -22,6 +22,7 @@ import {
} from './sendCoin.render';
import { isPositiveNumber } from '../../../util/number';
import mainWindow from '../../../util/mainWindow';
import explorerList from '../../../util/explorerList';
import Slider, { Range } from 'rc-slider';
import ReactTooltip from 'react-tooltip';
@ -103,7 +104,7 @@ class SendCoin extends React.Component {
}
openExplorerWindow(txid) {
const url = `http://${this.props.ActiveCoin.coin}.explorer.supernet.org/tx/${txid}`;
const url = explorerList[this.props.ActiveCoin.coin].split('/').length - 1 > 2 ? `${explorerList[this.props.ActiveCoin.coin]}${txid}` : `${explorerList[this.props.ActiveCoin.coin]}/tx/${txid}`;
const remote = window.require('electron').remote;
const BrowserWindow = remote.BrowserWindow;

4
react/src/components/dashboard/sendCoin/sendCoin.render.js

@ -1,8 +1,8 @@
import React from 'react';
import { translate } from '../../../translate/translate';
import QRModal from '../qrModal/qrModal';
import { isKomodoCoin } from '../../../util/coinHelper';
import { formatValue } from '../../../util/formatValue';
import explorerList from '../../../util/explorerList';
import ReactTooltip from 'react-tooltip';
export const AddressListRender = function() {
@ -373,7 +373,7 @@ export const SendRender = function() {
this.state.lastSendToResponse &&
this.state.lastSendToResponse.txid) ||
(this.props.ActiveCoin.mode === 'native' && this.state.lastSendToResponse && this.state.lastSendToResponse.length === 64)) &&
isKomodoCoin(this.props.ActiveCoin.coin) &&
explorerList[this.props.ActiveCoin.coin] &&
<div className="margin-top-10">
<button
type="button"

3
react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js

@ -8,6 +8,7 @@ import {
} from '../../../actions/actionCreators';
import Store from '../../../store';
import WalletsTxInfoRender from './walletsTxInfo.render';
import explorerList from '../../../util/explorerList';
class WalletsTxInfo extends React.Component {
constructor() {
@ -91,7 +92,7 @@ class WalletsTxInfo extends React.Component {
}
openExplorerWindow(txid) {
const url = `http://${this.props.ActiveCoin.coin}.explorer.supernet.org/tx/${txid}`;
const url = explorerList[this.props.ActiveCoin.coin].split('/').length - 1 > 2 ? `${explorerList[this.props.ActiveCoin.coin]}${txid}` : `${explorerList[this.props.ActiveCoin.coin]}/tx/${txid}`;
const remote = window.require('electron').remote;
const BrowserWindow = remote.BrowserWindow;

4
react/src/components/dashboard/walletsTxInfo/walletsTxInfo.render.js

@ -2,7 +2,7 @@ import React from 'react';
import { translate } from '../../../translate/translate';
import { secondsToString } from '../../../util/time';
import Config from '../../../config';
import { isKomodoCoin } from '../../../util/coinHelper';
import explorerList from '../../../util/explorerList';
const WalletsTxInfoRender = function(txInfo) {
return (
@ -191,7 +191,7 @@ const WalletsTxInfoRender = function(txInfo) {
<div className="modal-footer">
{ this.state.txDetails &&
this.props.ActiveCoin.coin !== 'CHIPS' &&
isKomodoCoin(this.props.ActiveCoin.coin) &&
explorerList[this.props.ActiveCoin.coin] &&
<button
type="button"
className="btn btn-sm white btn-dark waves-effect waves-light pull-left"

50
react/src/util/explorerList.js

@ -0,0 +1,50 @@
// TODO: add at least 2 explorers per coin
const explorerList = {
KMD: 'http://www.kmdexplorer.ru',
MSHARK: 'http://MSHARK.explorer.supernet.org',
REVS: 'http://revs.explorer.supernet.org',
SUPERNET: 'http://SUPERNET.explorer.supernet.org',
DEX: 'http://DEX.explorer.supernet.org',
PANGEA: 'http://PANGEA.explorer.supernet.org',
JUMBLR: 'http://JUMBLR.explorer.supernet.org',
BET: 'http://BET.explorer.supernet.org',
CRYPTO: 'http://CRYPTO.explorer.supernet.org',
HODL: 'http://HODL.explorer.supernet.org',
SHARK: 'http://SHARK.explorer.supernet.org',
BOTS: 'http://BOTS.explorer.supernet.org',
MGW: 'http://MGW.explorer.supernet.org',
WLC: 'http://WIRELESS.explorer.supernet.org',
CHIPS: 'http://CHIPS1.explorer.supernet.org',
COQUI: 'https://explorer.coqui.cash',
MNZ: 'https://www.mnzexplorer.com',
BTCH: 'http://www.btch.host',
BTC: 'https://blockchain.info',
HUSH: 'https://explorer.myhush.org',
PIZZA: 'http://pizza.komodochainz.info',
BEER: 'http://beer.komodochainz.info',
QTUM: 'https://explorer.qtum.org',
LTC: 'https://live.blockcypher.com/ltc',
DOGE: 'https://live.blockcypher.com/doge',
DASH: 'https://live.blockcypher.com/dash',
MONA: 'https://bchain.info/MONA',
VIA: 'https://explorer.viacoin.org',
VTC: 'http://explorer.vertcoin.info',
NMC: 'https://namecha.in',
DGB: 'https://digiexplorer.info',
CRW: 'http://ex.crownlab.eu',
BTG: 'https://btgexplorer.com',
BCH: 'https://bitcoincash.blockexplorer.com',
ZCL: 'http://explorer.zclmine.pro',
ZMY: 'https://myriadexplorer.com',
BTX: 'http://explorer.bitcore.cc',
BTCZ: 'https://explorer.bitcoinz.site',
HODLC: 'http://www.fuzzbawls.pw/explore/HOdlcoin/tx.php?tx=',
SIB: 'https://chain.sibcoin.net/en/tx/',
ZEC: 'https://explorer.zcha.in/transactions/',
BLK: 'https://explorer.coinpayments.net/transaction.php?chain=4&hash=',
ARG: 'https://prohashing.com/explorer/Argentum/',
FAIR: 'https://chain.fair.to/transaction?transaction=',
};
export default explorerList;
Loading…
Cancel
Save