Skip to content

nooschain v0.1.0


nooschain / chain/state-root-engine-contract / NERVOS_STATE_ROOT_CONTRACT

Variable: NERVOS_STATE_ROOT_CONTRACT

const NERVOS_STATE_ROOT_CONTRACT: object

Defined in: chain/state-root-engine-contract.ts:61

Stable Nervos state-root contract exported for docs, tests, and preflight.

Type Declaration

checkpointFormatVersion

readonly checkpointFormatVersion: 1 = NERVOS_STATE_ROOT_CHECKPOINT_FORMAT_VERSION

deleteValue

readonly deleteValue: "NoosValue::zero() / H256::zero()" = NERVOS_STATE_ROOT_DELETE_VALUE

emptyRoot

readonly emptyRoot: "0000000000000000000000000000000000000000000000000000000000000000" = NERVOS_STATE_ROOT_EMPTY_ROOT

engineVersion

readonly engineVersion: "nervos-smt-v2" = NERVOS_STATE_ROOT_ENGINE_VERSION

errorCodes

readonly errorCodes: readonly ["SIDE_CAR_NOT_INITIALIZED", "CHECKPOINT_ENGINE_VERSION_MISMATCH", "CHECKPOINT_FORMAT_VERSION_MISMATCH", "CHECKPOINT_ROOT_MISMATCH", "INVALID_HEX_HASH", "INVALID_HASH_LENGTH", "INVALID_PROOF_FORMAT", "REQUEST_DECODE_FAILED", "PROOF_VERIFICATION_FAILED", "INTERNAL_ERROR"] = NERVOS_STATE_ROOT_ERROR_CODES

hasher

readonly hasher: "sparse-merkle-tree/blake2b" = NERVOS_STATE_ROOT_HASHER

keyEncoding

readonly keyEncoding: "lowercase-32-byte-hex-h256" = NERVOS_STATE_ROOT_KEY_ENCODING

mutationOrdering

readonly mutationOrdering: "caller-provided-block-state-change-order" = NERVOS_STATE_ROOT_MUTATION_ORDERING

proofEncoding

readonly proofEncoding: "compiled-sparse-merkle-tree-proof-hex" = NERVOS_STATE_ROOT_PROOF_ENCODING

proofFormat

readonly proofFormat: "nervos-smt-v2-proof-v1" = NERVOS_STATE_ROOT_PROOF_FORMAT

readinessProbeRoot

readonly readinessProbeRoot: "29ad010662d67dfdeecc36ea09d5ed7ac0030535afda3fe0a9dd99bf9ee8e4bc" = NERVOS_STATE_ROOT_READINESS_PROBE_ROOT

sidecarProtocolVersion

readonly sidecarProtocolVersion: 1 = NERVOS_STATE_ROOT_SIDECAR_PROTOCOL_VERSION

valueEncoding

readonly valueEncoding: "lowercase-32-byte-hex-h256" = NERVOS_STATE_ROOT_VALUE_ENCODING

Audience-first NOOSChain documentation.