@@ -17,27 +17,20 @@ import {
1717 AccountNameSearchRuntimeMatch ,
1818} from './named-accounts'
1919import { hasTextMatch } from '../components/HighlightedText/text-matching'
20+ import * as externalLinks from '../utils/externalLinks'
2021
2122const dataSources : Record < Network , Partial < Record < Layer , string > > > = {
2223 [ Network . mainnet ] : {
23- [ Layer . consensus ] :
24- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/mainnet_consensus.json' ,
25- [ Layer . emerald ] :
26- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/mainnet_emerald.json' ,
27- [ Layer . sapphire ] :
28- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/mainnet_sapphire.json' ,
24+ [ Layer . consensus ] : externalLinks . api . oasis_named_addresses_mainnet_consensus ,
25+ [ Layer . emerald ] : externalLinks . api . oasis_named_addresses_mainnet_emerald ,
26+ [ Layer . sapphire ] : externalLinks . api . oasis_named_addresses_mainnet_sapphire ,
2927 } ,
3028 [ Network . testnet ] : {
31- [ Layer . consensus ] :
32- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/testnet_consensus.json' ,
33- [ Layer . emerald ] :
34- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/testnet_emerald.json' ,
35- [ Layer . sapphire ] :
36- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/testnet_sapphire.json' ,
37- [ Layer . pontusxdev ] :
38- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/testnet_pontusxdev.json' ,
39- [ Layer . pontusxtest ] :
40- 'https://raw.githubusercontent.com/oasisprotocol/nexus/main/named-addresses/testnet_pontusxtest.json' ,
29+ [ Layer . consensus ] : externalLinks . api . oasis_named_addresses_testnet_consensus ,
30+ [ Layer . emerald ] : externalLinks . api . oasis_named_addresses_testnet_emerald ,
31+ [ Layer . sapphire ] : externalLinks . api . oasis_named_addresses_testnet_sapphire ,
32+ [ Layer . pontusxdev ] : externalLinks . api . oasis_named_addresses_testnet_pontusxdev ,
33+ [ Layer . pontusxtest ] : externalLinks . api . oasis_named_addresses_testnet_pontusxtest ,
4134 } ,
4235 [ Network . localnet ] : {
4336 [ Layer . consensus ] : undefined ,
0 commit comments