Skip to main content

@midnight-ntwrk/compact-runtime v0.7.0Readme | API


@midnight-ntwrk/compact-runtime v0.7.0 / 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.

Type declaration

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";