Cell as described in TVM spec

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?) => Slice)

Beging cell parsing

Type declaration

    • (allowExotic?): Slice
    • Beging cell parsing

      Parameters

      • Optional allowExotic: boolean

      Returns Slice

      a new slice

Returns

a new slice

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

Get cell depth

Type declaration

    • (level?): number
    • Get cell depth

      Parameters

      • Optional level: number

        level

      Returns number

      cell depth

Param: level

level

Returns

cell depth

equals: ((other) => boolean)

Checks cell to be euqal to another cell

Type declaration

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

      Parameters

      • other: Cell

        other cell

      Returns boolean

      true if cells are equal

Param: other

other cell

Returns

true if cells are equal

hash: ((level?) => Buffer)

Get cell hash

Type declaration

    • (level?): Buffer
    • Get cell hash

      Parameters

      • Optional level: number

        level

      Returns Buffer

      cell hash

Param: level

level

Returns

cell hash

level: (() => number)

Get cell level

Type declaration

    • (): number
    • Get cell level

      Returns number

      cell level

Returns

cell level

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

    builder

  • Covnert cell to slice

    Returns Slice

    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

    Parameters

    • Optional indent: string

      indentation

    Returns string

    string representation

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

    Parameters

    • src: string

      source string

    Returns Cell

  • Deserialize cells from BOC

    Parameters

    • src: Buffer

      source buffer

    Returns Cell[]

    array of cells

Generated using TypeDoc