From 0436ed5b7fa29c339809f118a8d573676d94c673 Mon Sep 17 00:00:00 2001 From: Liviu Ancas <83750585+liviuf-ancas@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:07:23 +0300 Subject: [PATCH] Create config.placeholder.ts --- src/config/config.placeholder.ts | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/config/config.placeholder.ts diff --git a/src/config/config.placeholder.ts b/src/config/config.placeholder.ts new file mode 100644 index 00000000..868a610e --- /dev/null +++ b/src/config/config.placeholder.ts @@ -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); + }); +});