mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
14 lines
357 B
TypeScript
14 lines
357 B
TypeScript
import { ChainId } from "@iov/bcp";
|
|
/**
|
|
* Conversion between native chain IDs and CAIP-5 format
|
|
*
|
|
* @see https://github.com/ChainAgnostic/CAIPs/pull/9
|
|
*/
|
|
export declare class Caip5 {
|
|
/**
|
|
* @param native The `chain_id` field from Tendermint's genesis file
|
|
*/
|
|
static encode(native: string): ChainId;
|
|
static decode(chainId: ChainId): string;
|
|
}
|