UNPKG

@metamask/keyring-utils

Version:
23 lines 1.05 kB
import type { CaipChainId } from "@metamask/utils"; export declare const ETH_SCOPE_EOA = "eip155:0"; /** * Check if scope matches another scope. It also supports the special * case of `eip155:0` for EVM EOA chain ID which is compatible with any EVM chain * ID (`eip155:*`). * * @param scope - The scope (CAIP-2 chain ID) to check. * @param other - Another scope to compare to. * @returns True if both scope are compatible, false otherwise. */ export declare function isScopeEqual(scope: CaipChainId, other: CaipChainId): boolean; /** * Check if `scope` matches any scope from `scopes`. It also supports the special * case of `eip155:0` for EVM EOA chain ID which is compatible with any EVM chain * ID (`eip155:*`). * * @param scope - The scope (CAIP-2 chain ID) to check. * @param scopes - The list of scopes to check against. * @returns True if `scope` matches any scope from `scopes`, false otherwise. */ export declare function isScopeEqualToAny(scope: CaipChainId, scopes: CaipChainId[]): boolean; //# sourceMappingURL=scopes.d.cts.map