Skip to content

Commit

Permalink
hidden darwinia and crab
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Sep 20, 2023
1 parent f860c96 commit 48a97fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apps/utils/network/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const chainConfigs = (() => {
return config;
});

return sortBy(data, (item) => item.name);
return sortBy(data, (item) => item.name).filter(({ hidden }) => !hidden);
})();

function getConfig(name: Network | null | undefined, source = chainConfigs): ChainConfig {
Expand Down
1 change: 1 addition & 0 deletions packages/shared/config/network/crab-dvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,5 @@ export const crabDVMConfig: DVMChainConfig = {
ss58Prefix: 42,
specVersion: 6400,
wallets: ['metamask', 'mathwallet-ethereum'],
hidden: true,
};
1 change: 1 addition & 0 deletions packages/shared/config/network/darwinia-dvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,5 @@ export const darwiniaDVMConfig: DVMChainConfig = {
ss58Prefix: 18,
specVersion: 6400,
wallets: ['metamask', 'mathwallet-ethereum'],
hidden: true,
};
1 change: 1 addition & 0 deletions packages/shared/model/network/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export interface ChainConfig {
tokens: TokenWithBridgesInfo[];
wallets: SupportedWallet[];
fullName?: string;
hidden?: boolean;
}

export interface EthereumChainConfig extends ChainConfig {
Expand Down

0 comments on commit 48a97fc

Please sign in to comment.