Variable default

default: { b582int: ((v: string) => string); b58cdecode: ((enc: string, prefixArg: Uint8Array) => Uint8Array); b58cencode: ((payload: Uint8Array, prefixArg: Uint8Array) => string); buf2hex: ((buffer: Uint8Array) => string); encodeExpr: ((value: string) => string); hex2buf: ((hex: string) => Uint8Array); hexNonce: ((length: number) => string); mergebuf: ((b1: Uint8Array, b2: Uint8Array) => Uint8Array); mic2arr: ((s: any) => any); mintotz: ((mutez: number) => number); ml2mic: ((mi: string) => <internal>.Micheline); ml2tzjson: ((mi: string) => <internal>.Micheline); mlraw2json: ((mi: string) => <internal>.Micheline); mutez: ((tez: string | number) => string); sexp2mic: ((mi: string) => <internal>.Micheline); textDecode: ((buffer: Uint8Array) => string); textEncode: ((value: string) => Uint8Array); totez: ((mutez: number) => number); tzjson2arr: ((s: any) => any); tztomin: ((tez: string | number) => string) }

Type declaration

  • b582int: ((v: string) => string)
      • (v: string): string
      • Description

        Convert from base58 to integer

        Returns

        The converted b58 value

        Parameters

        • v: string

          The b58 value

        Returns string

  • b58cdecode: ((enc: string, prefixArg: Uint8Array) => Uint8Array)
      • (enc: string, prefixArg: Uint8Array): Uint8Array
      • Description

        Base58 decode

        Returns

        The decoded base58 value

        Parameters

        • enc: string

          The value to decode

        • prefixArg: Uint8Array

          The Uint8Array prefix values

        Returns Uint8Array

  • b58cencode: ((payload: Uint8Array, prefixArg: Uint8Array) => string)
      • (payload: Uint8Array, prefixArg: Uint8Array): string
      • Description

        Base58 encode

        Returns

        The base58 encoded value

        Parameters

        • payload: Uint8Array

          The value to encode

        • prefixArg: Uint8Array

          The Uint8Array prefix values

        Returns string

  • buf2hex: ((buffer: Uint8Array) => string)
      • (buffer: Uint8Array): string
      • Description

        Buffer to hex

        Returns

        Converted hex value

        Parameters

        • buffer: Uint8Array

          The buffer to convert to hex

        Returns string

  • encodeExpr: ((value: string) => string)
      • (value: string): string
      • Description

        Encodes an expression

        Returns

        The base58 encoded expression

        Parameters

        • value: string

          The value to encode

        Returns string

  • hex2buf: ((hex: string) => Uint8Array)
      • (hex: string): Uint8Array
      • Description

        Hex to Buffer

        Returns

        Converted buffer value

        Parameters

        • hex: string

          The hex to convert to buffer

        Returns Uint8Array

  • hexNonce: ((length: number) => string)
      • (length: number): string
      • Description

        Generate a hex nonce

        Returns

        The nonce of the given length

        Parameters

        • length: number

          The length of the nonce

        Returns string

  • mergebuf: ((b1: Uint8Array, b2: Uint8Array) => Uint8Array)
      • (b1: Uint8Array, b2: Uint8Array): Uint8Array
      • Description

        Merge two buffers together

        Returns

        The merged buffer

        Parameters

        • b1: Uint8Array

          The first buffer

        • b2: Uint8Array

          The second buffer

        Returns Uint8Array

  • mic2arr: ((s: any) => any)
      • (s: any): any
      • Parameters

        • s: any

        Returns any

  • mintotz: ((mutez: number) => number)
      • (mutez: number): number
      • Description

        Convert from mutez to tez

        Returns

        The mutez amount converted to tez

        Parameters

        • mutez: number

          The amount in mutez to convert to tez

        Returns number

  • ml2mic: ((mi: string) => <internal>.Micheline)
  • ml2tzjson: ((mi: string) => <internal>.Micheline)
  • mlraw2json: ((mi: string) => <internal>.Micheline)
  • mutez: ((tez: string | number) => string)
      • (tez: string | number): string
      • Description

        Convert from tez to mutez

        Returns

        The tez amount converted to mutez

        Parameters

        • tez: string | number

          The amount in tez to convert to mutez

        Returns string

  • sexp2mic: ((mi: string) => <internal>.Micheline)
  • textDecode: ((buffer: Uint8Array) => string)
      • (buffer: Uint8Array): string
      • Parameters

        • buffer: Uint8Array

        Returns string

  • textEncode: ((value: string) => Uint8Array)
      • (value: string): Uint8Array
      • Parameters

        • value: string

        Returns Uint8Array

  • totez: ((mutez: number) => number)
      • (mutez: number): number
      • Description

        Convert from mutez to tez

        Returns

        The mutez amount converted to tez

        Parameters

        • mutez: number

          The amount in mutez to convert to tez

        Returns number

  • tzjson2arr: ((s: any) => any)
      • (s: any): any
      • Parameters

        • s: any

        Returns any

  • tztomin: ((tez: string | number) => string)
      • (tez: string | number): string
      • Description

        Convert from tez to mutez

        Returns

        The tez amount converted to mutez

        Parameters

        • tez: string | number

          The amount in tez to convert to mutez

        Returns string

Generated using TypeDoc