UNPKG

@dcspark/cip34-js

Version:

A Javascript library reference implementation for CIP34

16 lines (15 loc) 620 B
export { default as registry } from "./registry.js"; export type * from "./registryTypes.js"; export type IdPair = { networkId: number; networkMagic: number; }; export declare function toChainId(data: IdPair): string; export declare function fromChainId(chainId: string): IdPair; export declare const Errors: { NetworkIdRange: (networkId: number) => string; NetworkMagicRange: (networkMagic: number) => string; NoMatch: (chainId: string) => string; }; export declare function validateNetworkId(networkId: number): boolean; export declare function validateNetworkMagic(networkMagic: number): boolean;