Class Cell

Cell as described in TVM spec

Hierarchy

  • Cell

Constructors

  • Parameters

    • Optional opts: {
          bits?: BitString;
          exotic?: boolean;
          refs?: Cell[];
      }
      • Optional bits?: BitString
      • Optional exotic?: boolean
      • Optional refs?: Cell[]

    Returns Cell

Properties

_depths: number[] = []
_hashes: Buffer[] = []
bits: BitString
mask: LevelMask
refs: Cell[]
type: CellType
EMPTY: Cell = ...

Accessors

  • get isExotic(): boolean
  • Check if cell is exotic

    Returns boolean

Methods

  • Beging cell parsing

    Returns

    a new slice

    Parameters

    • allowExotic: boolean = false

    Returns Slice

  • Get cell depth

    Returns

    cell depth

    Parameters

    • level: number = 3

      level

    Returns number

  • Checks cell to be euqal to another cell

    Returns

    true if cells are equal

    Parameters

    • other: Cell

      other cell

    Returns boolean

  • Get cell hash

    Returns

    cell hash

    Parameters

    • level: number = 3

      level

    Returns Buffer

  • Get cell level

    Returns

    cell level

    Returns number

  • Serializes cell to BOC

    Parameters

    • Optional opts: {
          crc32?: null | boolean;
          idx?: null | boolean;
      }

      options

      • Optional crc32?: null | boolean
      • Optional idx?: null | boolean

    Returns Buffer

  • Format cell to string

    Returns

    string representation

    Parameters

    • Optional indent: string

      indentation

    Returns string

  • Helper class that deserializes a single cell from BOC in base64

    Parameters

    • src: string

      source string

    Returns Cell

  • Deserialize cells from BOC

    Returns

    array of cells

    Parameters

    • src: Buffer

      source buffer

    Returns Cell[]

Generated using TypeDoc