feat(at): add persistent maps and cross-AT reads - #150
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds consensus-backed persistent key/value maps for ATs, with synchronous cross-AT reads (including same-block earlier writers). This is the storage foundation for the SMPL faucet's exact deduplication.
0x0600/ SET0x0601; contracts write only their own map, may read any AT's map.Block-owned overlay during validation (candidate validation never writes the database); they commit atomically with AT state during block processing and reverse on orphan via rollback journals.8e655fc30e325d11ec44d350dd456ad80bff0a507935133edc3db5345e9253e5).Dependency provenance
Pins
com.github.QortiumDev:AT:33df17d(adds the pricing hook and fixes an unenforced platform-function precheck — see QortiumDev/AT#9, which must merge as a merge commit first so the pin stays canonical). Vendored artifact:2f40ee7acfdeaa1dfc35615a6ba7870dcc4e85977d3e9e3a1b7ad6bcef340f3b43f6ac5cfae6cf0f823f972c929b3d3844493cf1e510268c8369c31275eb8b4dDesign doc:
docs/chain-design/at-map-storage.md. Changelog entry included.Verification
mvn -B clean test -DskipTests=false— 2,675 tests, 0 failures, 0 errors (64 expected skips).🤖 Generated with Claude Code