Skip to content

feat(module): expose bounded local history - #23

Draft
3esmit wants to merge 1 commit into
mainfrom
feat/local-public-history-api
Draft

feat(module): expose bounded local history#23
3esmit wants to merge 1 commit into
mainfrom
feat/local-public-history-api

Conversation

@3esmit

@3esmit 3esmit commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a configured-wallet local public-history API for local-development consumers.

  • accepts only a cursor and an optional snapshot tip
  • validates cursor and tip before crossing the FFI boundary
  • pins the wallet FFI revision that supplies the bounded history page

No endpoint, RPC method, page size, or finality control is exposed to callers.

Dependency

Depends on 3esmit/logos-execution-zone#42, which depends on 3esmit/logos-execution-zone#39.

Validation

  • nix build --no-link .#unit-tests -L (64 passed)
  • nix build --no-link .#default -L

Refs #22

@3esmit

3esmit commented Aug 1, 2026

Copy link
Copy Markdown
Owner Author

Validation update:

  • unit module build completed: 64 tests passed
  • full default LGX package built against the real wallet FFI revision
  • mock contract asserts cursor plus full snapshot-tip forwarding, including block ID and both hashes

The API remains intentionally narrow: configured wallet only; no caller-provided endpoint, RPC method, page size, or finality mode.

@3esmit

3esmit commented Aug 1, 2026

Copy link
Copy Markdown
Owner Author

Validation update on August 1, 2026:

  • nix build --no-link .#unit-tests -L passed with 64/64 tests
  • nix build --no-link .#default -L returned cleanly against execution-zone revision 10c6c1dd76107cb96e99f651fec3f61c35e09901
  • local-history boundary now rejects malformed negative snapshot tips before any wallet FFI call

Kept scope narrow to configured-wallet bounded history only: no endpoint controls, no page-size controls, no finality controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant