const explorerUrls = new Map ( [ [ 'W' , 'wavesexplorer.com' ] , [ 'T' , 'testnet.wavesexplorer.com' ] , [ 'S' , 'stagenet.wavesexplorer.com' ] , [ 'custom' , 'wavesexplorer.com/custom' ] , ] ) ; export function getAccountLink ( networkCode , address ) { const explorer = explorerUrls . get ( explorerUrls . has ( networkCode ) ? networkCode : 'custom' ) ; return `https://${ explorer }/address/${ address }` ; } export function getTxHistoryLink ( networkCode , address ) { return `${ getAccountLink ( networkCode , address ) }/tx/` ; } export function getTxDetailLink ( networkCode , txId ) { const explorer = explorerUrls . get ( explorerUrls . has ( networkCode ) ? networkCode : 'custom' ) ; return `https://${ explorer }/tx/${ txId }` ; } export function getAssetDetailLink ( networkCode , assetId ) { const explorer = explorerUrls . get ( explorerUrls . has ( networkCode ) ? networkCode : 'custom' ) ; return `https://${ explorer }/assets/${ assetId }` ; }