cosmjs/types/caip5.d.ts
2020-01-22 09:41:48 +01:00

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;
}