UNPKG

@yoroi/explorers

Version:

The Explorers package of Yoroi SDK

76 lines (75 loc) 3.89 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.Sancho]: { [_types.Explorers.Explorer.CardanoScan]: { token: fingerprint => `https://sancho.cardanoscan.io/token/${fingerprint}`, address: address => `https://sancho.cardanoscan.io/address/${address}`, tx: txHash => `https://sancho.cardanoscan.io/transaction/${txHash}`, pool: poolId => `https://sancho.cardanoscan.io/pool/${poolId}`, stake: stakeAddress => `https://sancho.cardanoscan.io/stakeKey/${stakeAddress}` }, [_types.Explorers.Explorer.CExplorer]: { token: fingerprint => `https://sancho.cexplorer.io/asset/${fingerprint}`, address: address => `https://sancho.cexplorer.io/address/${address}`, tx: txHash => `https://sancho.cexplorer.io/tx/${txHash}`, pool: poolId => `https://sancho.cexplorer.io/pool/${poolId}`, stake: stakeAddress => `https://sancho.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