Comparing version 11.12.0 to 11.13.0
/// <reference types="node" /> | ||
import { Cell } from ".."; | ||
export declare function getMaxDepth(cell: Cell): number; | ||
export declare function getMaxLevel(cell: Cell): number; | ||
export declare function hashCell(cell: Cell): Buffer; | ||
@@ -4,0 +6,0 @@ export declare function parseBocHeader(serializedBoc: Buffer): { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serializeToBoc = exports.deserializeBoc = exports.deserializeCellData = exports.parseBocHeader = exports.hashCell = void 0; | ||
exports.serializeToBoc = exports.deserializeBoc = exports.deserializeCellData = exports.parseBocHeader = exports.hashCell = exports.getMaxLevel = exports.getMaxDepth = void 0; | ||
const ton_crypto_1 = require("ton-crypto"); | ||
@@ -61,2 +61,3 @@ const __1 = require(".."); | ||
} | ||
exports.getMaxDepth = getMaxDepth; | ||
function getMaxDepthAsArray(cell) { | ||
@@ -81,2 +82,3 @@ const maxDepth = getMaxDepth(cell); | ||
} | ||
exports.getMaxLevel = getMaxLevel; | ||
function getRefsDescriptor(cell) { | ||
@@ -87,5 +89,2 @@ const d1 = Uint8Array.from({ length: 1 }, () => 0); | ||
} | ||
/** | ||
* @return {Uint8Array} | ||
*/ | ||
function getBitsDescriptor(cell) { | ||
@@ -96,5 +95,2 @@ const d2 = Uint8Array.from({ length: 1 }, () => 0); | ||
} | ||
/** | ||
* @return {Uint8Array} | ||
*/ | ||
function getDataWithDescriptors(cell) { | ||
@@ -101,0 +97,0 @@ const d1 = getRefsDescriptor(cell); |
@@ -29,2 +29,4 @@ /// <reference types="node" /> | ||
equals(src: Cell): boolean; | ||
getMaxLevel(): number; | ||
getMaxDepth(): number; | ||
} |
@@ -94,4 +94,10 @@ "use strict"; | ||
} | ||
getMaxLevel() { | ||
return (0, boc_1.getMaxLevel)(this); | ||
} | ||
getMaxDepth() { | ||
return (0, boc_1.getMaxDepth)(this); | ||
} | ||
} | ||
exports.Cell = Cell; | ||
_a = symbol_inspect_1.default; |
{ | ||
"name": "ton", | ||
"version": "11.12.0", | ||
"version": "11.13.0", | ||
"repository": "https://github.com/tonwhales/ton.git", | ||
@@ -5,0 +5,0 @@ "author": "Steve Korshakov <steve@korshakov.com>", |
424123
10965