From 47b2daa328bac022df78dbb9cbdd5fafa9676ec5 Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Wed, 1 Nov 2023 09:46:50 +0200 Subject: [PATCH] added devnet-old config --- src/config/config.devnet-old.ts | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/config/config.devnet-old.ts diff --git a/src/config/config.devnet-old.ts b/src/config/config.devnet-old.ts new file mode 100644 index 000000000..bef27cc01 --- /dev/null +++ b/src/config/config.devnet-old.ts @@ -0,0 +1,35 @@ +import { NetworkType } from 'types/network.types'; +import { allApps, schema } from './sharedConfig'; +export * from './sharedConfig'; + +export const networks: NetworkType[] = [ + { + default: true, + id: 'devnet-old', + name: 'Devnet Old', + chainId: 'D', + adapter: 'api', + theme: 'testnet', + egldLabel: 'xEGLD', + walletAddress: 'https://devnet-old-wallet.multiversx.com', + explorerAddress: 'https://devnet-old-explorer.multiversx.com', + apiAddress: 'https://devnet-old-api.multiversx.com' + } +]; + +export const multiversxApps = allApps([ + { + id: 'wallet', + url: 'https://devnet-old-wallet.multiversx.com' + }, + { + id: 'explorer', + url: 'http://devnet-old-explorer.multiversx.com' + } +]); + +networks.forEach((network) => { + schema.validate(network, { strict: true }).catch(({ errors }) => { + console.error(`Config invalid format for ${network.id}`, errors); + }); +});