UNPKG

@yoroi/explorers

Version:

The Explorers package of Yoroi SDK

60 lines (59 loc) 2.99 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.explorerManager = void 0; var _types = require("@yoroi/types"); var _immer = require("immer"); const explorerManager = (0, _immer.freeze)({ [_types.Chain.Network.Mainnet]: { [_types.Explorers.Explorer.Cardanoscan]: { token: fingerprint => `https://cardanoscan.io/token/${fingerprint}`, address: address => `https://cardanoscan.io/address/${address}`, tx: txHash => `https://cardanoscan.io/transaction/${txHash}`, pool: poolId => `https://cardanoscan.io/pool/${poolId}`, stake: stakeAddress => `https://cardanoscan.io/stakeKey/${stakeAddress}` }, [_types.Explorers.Explorer.Cexplorer]: { token: fingerprint => `https://cexplorer.io/asset/${fingerprint}`, address: address => `https://cexplorer.io/address/${address}`, tx: txHash => `https://cexplorer.io/tx/${txHash}`, pool: poolId => `https://cexplorer.io/pool/${poolId}`, stake: stakeAddress => `https://cexplorer.io/stake/${stakeAddress}` } }, [_types.Chain.Network.Preprod]: { [_types.Explorers.Explorer.Cardanoscan]: { token: fingerprint => `https://preprod.cardanoscan.io/token/${fingerprint}`, address: address => `https://preprod.cardanoscan.io/address/${address}`, tx: txHash => `https://preprod.cardanoscan.io/transaction/${txHash}`, pool: poolId => `https://preprod.cardanoscan.io/pool/${poolId}`, stake: stakeAddress => `https://preprod.cardanoscan.io/stakeKey/${stakeAddress}` }, [_types.Explorers.Explorer.Cexplorer]: { token: fingerprint => `https://preprod.cexplorer.io/asset/${fingerprint}`, address: address => `https://preprod.cexplorer.io/address/${address}`, tx: txHash => `https://preprod.cexplorer.io/tx/${txHash}`, pool: poolId => `https://preprod.cexplorer.io/pool/${poolId}`, stake: stakeAddress => `https://preprod.cexplorer.io/stake/${stakeAddress}` } }, [_types.Chain.Network.Preview]: { [_types.Explorers.Explorer.Cardanoscan]: { token: fingerprint => `https://preview.cardanoscan.io/token/${fingerprint}`, address: address => `https://preview.cardanoscan.io/address/${address}`, tx: txHash => `https://preview.cardanoscan.io/transaction/${txHash}`, pool: poolId => `https://preview.cardanoscan.io/pool/${poolId}`, stake: stakeAddress => `https://preview.cardanoscan.io/stakeKey/${stakeAddress}` }, [_types.Explorers.Explorer.Cexplorer]: { token: fingerprint => `https://preview.cexplorer.io/asset/${fingerprint}`, address: address => `https://preview.cexplorer.io/address/${address}`, tx: txHash => `https://preview.cexplorer.io/tx/${txHash}`, pool: poolId => `https://preview.cexplorer.io/pool/${poolId}`, stake: stakeAddress => `https://preview.cexplorer.io/stake/${stakeAddress}` } } }); exports.explorerManager = explorerManager; //# sourceMappingURL=explorer-manager.js.map