Skip to main content

EncodedStateValue

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / EncodedStateValue

Type Alias: EncodedStateValue

type EncodedStateValue = 
| {
tag: "null";
}
| {
content: AlignedValue;
tag: "cell";
}
| {
content: Map<AlignedValue, EncodedStateValue>;
tag: "map";
}
| {
content: EncodedStateValue[];
tag: "array";
}
| {
content: [number, Map<bigint, [Uint8Array, undefined]>];
tag: "boundedMerkleTree";
};

An alternative encoding of StateValue for use in Op for technical reasons