0.5.1-pre.002
This commit is contained in:
48
ks-lib/src/decoder/api.rs
Normal file
48
ks-lib/src/decoder/api.rs
Normal file
@@ -0,0 +1,48 @@
|
||||
// file: ks-lib/src/decoder/api.rs
|
||||
// version: 7
|
||||
|
||||
//! Decoder contracts.
|
||||
|
||||
mod contracts;
|
||||
mod decoder;
|
||||
|
||||
/// Current contextual core instruction input contract version.
|
||||
pub use self::contracts::DC_API_CORE_INSTRUCTION_INPUT_CONTRACT_VERSION;
|
||||
/// Stable contextual decoded observation.
|
||||
pub use self::contracts::DcApiDecodedObservation;
|
||||
/// Machine-readable decoder coverage declaration.
|
||||
pub use self::contracts::DcApiDecoderCoverageDeclaration;
|
||||
/// Declared decoder coverage entry kind.
|
||||
pub use self::contracts::DcApiDecoderCoverageEntryKind;
|
||||
/// Structured decoder diagnostic.
|
||||
pub use self::contracts::DcApiDecoderDiagnostic;
|
||||
/// Complete decoder execution result.
|
||||
pub use self::contracts::DcApiDecoderExecutionResult;
|
||||
/// Stable decoder identity.
|
||||
pub use self::contracts::DcApiDecoderIdentity;
|
||||
/// Decoder terminal result status.
|
||||
pub use self::contracts::DcApiDecoderOutcomeStatus;
|
||||
/// Explicit decoding proof.
|
||||
pub use self::contracts::DcApiDecoderProof;
|
||||
/// Decoding proof category.
|
||||
pub use self::contracts::DcApiDecoderProofKind;
|
||||
/// Deterministic decoder recognition result.
|
||||
pub use self::contracts::DcApiDecoderRecognition;
|
||||
/// One statically declared decoder surface.
|
||||
pub use self::contracts::DcApiDecoderSurface;
|
||||
/// Contextual instruction decoder contract.
|
||||
pub use self::contracts::DcApiInstructionDecoder;
|
||||
/// Computes the deterministic contextual input hash.
|
||||
pub use self::contracts::decoder_api_contextual_input_hash;
|
||||
/// Returns true when a decoder declares the exact program id.
|
||||
pub use self::contracts::decoder_api_decoder_handles_program_id;
|
||||
/// Computes a deterministic lowercase SHA-256 hash for one JSON value.
|
||||
pub use self::contracts::decoder_api_deterministic_json_hash;
|
||||
/// Extracts the first eight payload bytes as hexadecimal when available.
|
||||
pub use self::contracts::decoder_api_discriminator_8_hex;
|
||||
/// Exposes the decoder support level.
|
||||
pub use self::decoder::DcApiDecoderSupport;
|
||||
/// Initial decoder implementation placeholder for API-level tests.
|
||||
pub use self::decoder::DcApiInitialDecoder;
|
||||
/// Exposes the common protocol decoder trait.
|
||||
pub use self::decoder::DcApiProtocolDecoder;
|
||||
Reference in New Issue
Block a user