Skip to content

Commit

Permalink
chore: more comments for Snapshot type
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Sep 12, 2024
1 parent bee151d commit db0e5b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ssz/src/util/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export type Require<T, K extends keyof T> = T & Required<Pick<T, K>>;

/** Snapshot for PartialListCompositeType */
/**
* A snapshot contains the minimum amount of information needed to reconstruct a merkleized list, for the purposes of appending more items.
* Note: This does not contain list elements, rather only contains intermediate merkle nodes.
* This is used primarily for PartialListCompositeType.
*/
export type Snapshot = {
finalized: Uint8Array[];
root: Uint8Array;
Expand Down

0 comments on commit db0e5b6

Please sign in to comment.