Skip to content

Commit

Permalink
doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger committed Oct 28, 2024
1 parent baa0ba7 commit 808740e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/config/chainConfigs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function toChainInfo(chain: IbcChainInfo): ChainInfo {
return chainInfo as ChainInfo;
}

// Map of environment labels to their chain configurations
// IbcChains type maps labels to IbcChainInfo objects
export type IbcChains = {
[label: string]: IbcChainInfo;
};
Expand Down Expand Up @@ -85,6 +85,9 @@ export type EvmCurrency = {
iconClass?: string;
};

/**
* Returns true if the given currency belongs to the given chain.
*/
export function evmCurrencyBelongsToChain(
currency: EvmCurrency,
chain: EvmChainInfo,
Expand All @@ -93,11 +96,12 @@ export function evmCurrencyBelongsToChain(
}

// Map of environment labels to their chain configurations
// EvmChains type maps labels to EvmChainInfo objects
export type EvmChains = {
[label: string]: EvmChainInfo;
};

// environment to chain config mapping
// Map of environment labels to their chain configurations
const ENV_CHAIN_CONFIGS = {
local: { evm: localEvmChains, ibc: localIbcChains },
dusk: { evm: duskEvmChains, ibc: duskIbcChains },
Expand Down

0 comments on commit 808740e

Please sign in to comment.