@chainsafe/ssz
Version:
Simple Serialize
20 lines (19 loc) • 763 B
TypeScript
import { Node } from "@chainsafe/persistent-merkle-tree";
import { ListBasicTreeViewDU } from "../viewDU/listBasic.ts";
import { ListBasicOpts, ListBasicType } from "./listBasic.ts";
import { UintNumberType } from "./uint.ts";
/**
* Specific implementation of ListBasicType for UintNumberType with some optimizations.
*/
export declare class ListUintNum64Type extends ListBasicType<UintNumberType> {
constructor(limit: number, opts?: ListBasicOpts);
/**
* Return a ListBasicTreeViewDU with nodes populated
*/
toViewDU(value: number[]): ListBasicTreeViewDU<UintNumberType>;
/**
* No need to serialize and deserialize like in the abstract class
*/
value_toTree(value: number[]): Node;
private packedUintNum64sToNode;
}