SparseCompactValue
@midnight-ntwrk/compact-runtime v0.9.0
@midnight-ntwrk/compact-runtime / SparseCompactValue
Type Alias: SparseCompactValue
type SparseCompactValue = {
descriptor: CompactType<unknown>;
sparseType: SparseCompactType;
tag: "compactValue";
};
A data structure indicating the locations of all contract references in a Compact value.
Properties​
descriptor​
descriptor: CompactType<unknown>;
A descriptor that can be used to convert an AlignedValue into a TypeScript representation of the same value.
This descriptor will only ever decode structs or Vectors that contain contract addresses.
sparseType​
sparseType: SparseCompactType;
A data structure indicating how to navigate to the contract addresses present in the output of the above descriptor.
tag​
tag: "compactValue";