-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c038fe
commit 0436ed5
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { NetworkType } from 'types/network.types'; | ||
|
||
import { getStorageCustomNetworks } from './helpers'; | ||
import { allApps, schema } from './sharedConfig'; | ||
export * from './sharedConfig'; | ||
|
||
export const hasExtraNetworks = false; | ||
export const links: NetworkUrlType[] = []; | ||
export const networks: NetworkType[] = [ | ||
{ | ||
default: true, | ||
id: 'START_NAME_STOP', | ||
name: 'START_NAME_STOP', | ||
chainId: 'START_CHAIN_ID_STOP', | ||
adapter: 'api', | ||
theme: 'testnet', | ||
egldLabel: 'START_EGLD_LABEL_STOP', | ||
walletAddress: 'START_WALLET_ADDRESS_STOP', | ||
explorerAddress: 'START_EXPLORER_ADDRESS_STOP', | ||
nftExplorerAddress: 'START_NFT_EXPLORER_ADDRESS_STOP', | ||
apiAddress: 'START_API_ADDRESS_STOP' | ||
}, | ||
|
||
// Saved Custom Network Configs | ||
...getStorageCustomNetworks() | ||
]; | ||
|
||
export const multiversxApps = allApps([ | ||
{ | ||
id: 'wallet', | ||
url: 'START_WALLET_ADDRESS_STOP' | ||
}, | ||
{ | ||
id: 'explorer', | ||
url: 'START_EXPLORER_ADDRESS_STOP' | ||
}, | ||
{ | ||
id: 'xexchange', | ||
url: 'https://devnet.xexchange.com' | ||
}, | ||
{ | ||
id: 'xspotlight', | ||
url: 'START_NFT_EXPLORER_ADDRESS_STOP' | ||
} | ||
]); | ||
|
||
networks.forEach((network) => { | ||
schema.validate(network, { strict: true }).catch(({ errors }) => { | ||
console.error(`Config invalid format for ${network.id}`, errors); | ||
}); | ||
}); |