UNPKG

@tezwell/michelson-sdk

Version:

Michelson SDK is a framework for generating Michelson values and types from Javascript.

22 lines (21 loc) 968 B
import type { PairsOfKeys } from '../typings'; import { Prim } from '../enums/prim'; export declare const parenthesis: (str: string) => string; export declare const curlyBrackets: (str: string) => string; export declare const capitalizeBoolean: (bool: boolean) => Prim.True | Prim.False; export declare const compressHexString: (str: string) => string; /** * @description Build right aligned nested binary pairs * @see https://tezos.gitlab.io/active/michelson.html#operations-on-pairs-and-right-combs * @param fields A sequence of strings * @returns {PairsOfKeys<K>} */ export declare const composeRightCombLayout: <K>(fields: K[]) => PairsOfKeys<K>; declare const Utils: { parenthesis: (str: string) => string; curlyBrackets: (str: string) => string; capitalizeBoolean: (bool: boolean) => Prim.True | Prim.False; compressHexString: (str: string) => string; composeRightCombLayout: <K>(fields: K[]) => PairsOfKeys<K>; }; export default Utils;