export const getDefaultExplorerView = (currency) => {
    return currency.explorerViews ? currency.explorerViews[0] : undefined;
};
export const getTransactionExplorer = (explorerView, txHash) => {
    return explorerView?.tx?.replace("$hash", txHash);
};
export const getAddressExplorer = (explorerView, address) => {
    return explorerView?.address?.replace("$address", address);
};
export const getAccountContractExplorer = (explorerView, account, parentAccount) => {
    return explorerView?.token
        ?.replace("$contractAddress", account.token.contractAddress)
        .replace("$address", parentAccount.freshAddress);
};
export const getStakePoolExplorer = (explorerView, poolId) => {
    return explorerView?.stakePool?.replace("$poolId", poolId);
};
//# sourceMappingURL=explorers.js.map