Skip to content

Commit

Permalink
Create config.placeholder.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuf-ancas authored Oct 25, 2024
1 parent 6c038fe commit 0436ed5
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/config/config.placeholder.ts
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);
});
});

0 comments on commit 0436ed5

Please sign in to comment.