@f5i23q999d/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
19 lines (18 loc) • 839 B
TypeScript
import { AdditionalTargetChainId, ChainId, ChainInfo, SupportedChainId, TargetChainId } from './types.js';
/**
* Return the chain info for a given chain id or undefined if the chain is not known (not supported by CoW Protocol or the bridge providers).
* @param chainId
*/
export declare function getChainInfo(chainId: ChainId): ChainInfo | undefined;
/**
* Check if the chain is supported by CoW Protocol.
*/
export declare function isSupportedChain(chainId: ChainId): chainId is SupportedChainId;
/**
* Check if the chain is supported by the bridge providers.
*/
export declare function isAdditionalTargetChain(chainId: ChainId): chainId is AdditionalTargetChainId;
/**
* Check if the chain is supported by CoW Swap or the bridge providers.
*/
export declare function isTargetChainId(chainId: ChainId): chainId is TargetChainId;