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

[SymbolInspect]: (() => string)

Type declaration

    • (): string
    • Returns string

_depths: any
_hashes: any
beginParse: ((allowExotic?: boolean) => Slice)

Type declaration

    • (allowExotic?: boolean): Slice
    • Beging cell parsing

      Returns

      a new slice

      Parameters

      • Optional allowExotic: boolean

      Returns Slice

bits: BitString
depth: ((level?: number) => number)

Type declaration

    • (level?: number): number
    • Get cell depth

      Returns

      cell depth

      Parameters

      • Optional level: number

        level

      Returns number

equals: ((other: Cell) => boolean)

Type declaration

    • (other: Cell): boolean
    • Checks cell to be euqal to another cell

      Returns

      true if cells are equal

      Parameters

      • other: Cell

        other cell

      Returns boolean

hash: ((level?: number) => Buffer)

Type declaration

    • (level?: number): Buffer
    • Get cell hash

      Returns

      cell hash

      Parameters

      • Optional level: number

        level

      Returns Buffer

level: (() => number)

Type declaration

    • (): number
    • Get cell level

      Returns

      cell level

      Returns number

mask: LevelMask
refs: Cell[]
type: CellType
EMPTY: Cell

Accessors

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

    Returns boolean

Methods

  • Convert cell to a builder that has this cell stored

    Returns

    builder

    Returns Builder

  • Covnert cell to slice

    Returns

    slice

    Returns Slice

  • 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

  • Deserialize cells from BOC

    Returns

    array of cells

    Parameters

    • src: Buffer

      source buffer

    Returns Cell[]

Generated using TypeDoc