Repository navigation
feat(sdk): expose the document erase and history lifecycle on mobile and FFI #4660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
316 commits
Select commit
Hold shift + click to select a range
d03630d
fix(swift-sdk): reject malformed numbers in the document lifecycle block
shumkov 1387ca7
fix(swift-sdk): do not report a broadcast erase as failed when the li…
shumkov be1bb6b
fix(kotlin-sdk): keep a failed lifecycle read from failing a broadcas…
shumkov ec64b99
fix(kotlin-sdk): reject negative and string-typed lifecycle numbers
shumkov 002bc32
feat(drive)!: separate retained document history from primary storage
shumkov 3eb0156
feat(drive)!: prove composite document history and lifecycle counts
shumkov e901558
feat(drive-abci)!: migrate retained histories at protocol activation
shumkov 26d5f78
feat(sdk)!: expose authenticated document history v1
shumkov 108a501
fix(drive): charge provable counts when propagating history roots
shumkov 145f653
fix(drive): dispatch history versions and authenticate revision offsets
shumkov bded9a6
fix(drive): validate the complete history migration inventory
shumkov 9a2e8e1
test(drive): cover migrated indexes and signed history updates
shumkov 4288249
docs(version): document the keep-history activation boundary
shumkov 7a11092
fix(sdk): retain both proofs in document history proof info
shumkov e49b7e5
test(drive): pin sum-only primary trees across history activation
shumkov fb52284
docs(drive-abci): explain activation migration halt semantics
shumkov 40daacc
fix(drive): require GroveDB v1 envelopes for history v1
shumkov 631f28b
fix(drive): account for and verify history migration operations
shumkov 52f4522
test(drive): preserve legacy history replay and cover protocol 14
shumkov ed8ac42
fix(sdk): classify oversized history limits as input errors
shumkov 8dcb080
fix(drive): expose history verification in server builds
shumkov 66dd94f
test(drive): compare migration revision counts before zipping
shumkov 39b6126
fix(drive): verify history lifecycle metadata with absence proofs
shumkov 44f807b
fix(sdk): reject proof-disabled document history queries before sending
shumkov 53d1fa4
docs(dapi-grpc): say what the history v1 messages describe and why
shumkov 73b66f7
feat(dapi)!: serve document history as one v1 query with one proof
shumkov 083f165
style(macros): order imports the way rustfmt 1.98 expects
shumkov 3a5f53b
feat(dapi)!: replace the v0 document history query in place
shumkov afef5ee
fix(drive): name the envelope requirement without a wire version
shumkov be6cb2e
test(js-evo-sdk): stub the history proof result with its single proof…
shumkov d568257
fix(sdk): pass the platform version to the history tenderdash check
shumkov 09b3e7c
feat(dapi)!: answer document history with the usual result oneof
shumkov a95600c
fix(drive): report an unexpected index leaf as corruption during migr…
shumkov a3df992
refactor(drive)!: select the keep-history storage layout through a st…
shumkov a803159
refactor(dapi)!: call the history query's selection a filter
shumkov 75bc2bd
test(drive): re-pin the history fixture roots after the contract vers…
shumkov 18cb24a
chore(drive): drop the migration benchmark example and its cost counters
shumkov 8b44ca3
refactor(drive)!: keep the history layout out of shipped generations
shumkov 2c25b31
fix(drive-abci): answer refused history reads as invalid arguments
shumkov 20fceab
refactor(drive): split the history module by concern
shumkov b00d2e5
docs(drive): say what the protocol 14 storage generations change
shumkov db16d2c
refactor(drive)!: verify proved cursors through a protocol 14 generation
shumkov 43f0069
fix(wasm-sdk): return the common proof response for document history
shumkov 40a28bb
feat(drive): keep the legacy history readers beside the history query
shumkov b46ba7b
refactor(drive): version the document history readers like the writers
shumkov 252d6ab
refactor(drive): organize the document history query like the other q…
shumkov bbade06
fix(drive-abci): guard history migration activation
shumkov 1a3cdd6
fix(drive): keep history query builder available
shumkov f4b84eb
refactor(drive): route history layout by method version
shumkov f7ad6b8
refactor(drive): version primary key history queries
shumkov f5f36d1
style(drive): group document path imports
shumkov cca128a
test(drive): cover writes across history migration
shumkov fdc902d
refactor(wasm-sdk): type document history results
shumkov 2a8bdd2
fix(history): address review compatibility gaps
shumkov b51c712
fix(history): retain revisionless legacy documents
shumkov ad35d69
fix(drive): account for summable index references
shumkov d7d682b
feat(platform)!: activate keep-history storage at protocol version 15
shumkov 7615290
fix(drive): keep the history time bound inclusive on the legacy layout
shumkov 7c5c485
chore(dapi-grpc): regenerate the checked-in clients
shumkov b1442a7
refactor(drive): derive the reference bucket tree type in one place
shumkov 8eeca0c
feat(platform): add version slots for the document lifecycle
shumkov 2c5f2d7
feat(dpp)!: admit deletable keep-history types and add canBeErased
shumkov 0d70596
feat(dpp)!: add the document erase transition kind
shumkov d145eec
feat(drive): give keep-history documents a delete and an erase
shumkov 713df6a
feat(drive): route the erase transition through to its storage operation
shumkov 0b156bb
feat(drive-abci): validate the document lifecycle before deleting or …
shumkov da53e46
feat(sdk): report the deleted and erasing states through the history …
shumkov 0fb3095
fix(drive): write the lifecycle record from a fully known element
shumkov 519df97
feat(sdk): expose the document erase across the client surfaces
shumkov 1465ea1
test(drive): pin the storage behaviour of the document lifecycle
shumkov 4b8d08d
test: pin the lifecycle through signed transitions and version slots
shumkov 7fa1b61
fix(drive): read the erasing sentinel off the revision, not the time
shumkov b50990d
test: exercise the lifecycle over migrated state and end to end
shumkov aee2225
test(wasm-sdk): pin the erasing state and its times as exact BigInts
shumkov a481940
test(drive): pin the aggregates and index entries a delete releases
shumkov 4728416
fix(sdk): wait for an erase's affected state, not for proved execution
shumkov e277027
fix(dpp): make the lifecycle contract refusals paid consensus errors
shumkov b92e4f7
fix(drive): unflag the lifecycle container and dispatch its erase est…
shumkov a9f886d
feat(drive-abci): charge an erase for the refunds it hands out
shumkov 6576027
test: close the lifecycle's accounting and proof evidence gaps
shumkov b273c0e
test(platform-test-suite): read the network from the environment
shumkov fce5192
test(platform-test-suite): refetch the note before every keep-history…
shumkov 8db8a6b
test(platform-test-suite): sign the keep-history erase with the HIGH key
shumkov f58df76
test(platform-test-suite): wait for the refused delete to propagate b…
shumkov 98e99e3
fix(wasm-sdk): let an erase name the identity that submits it
shumkov fc9fb5d
fix(dpp): keep loading legacy contested keep-history contracts at pro…
shumkov 007044d
fix(drive): keep refusing by-revision reads of a gapped history after…
shumkov f0edec2
fix(sdk): keep every lifecycle state and time in mocked document hist…
shumkov e953db4
test(drive-abci): reject tampered lifecycle claims for deleted and er…
shumkov f08dee3
fix(wasm-sdk): refuse JavaScript numbers past the safe range in histo…
shumkov a7660a7
test(sdk): drop needless borrows in the history mock round-trip test
shumkov ea6dcf8
fix(sdk): sign an erase with its settings and refuse unsupported vers…
shumkov 3cb369c
refactor(platform)!: land the document lifecycle as protocol 14 gener…
shumkov e52b0c2
refactor(platform)!: move the document lifecycle to protocol 15 gener…
shumkov a537d25
fix(drive): refuse a keep-history delete through every entry point th…
shumkov f88edc5
fix(drive): never write a new document over a deleted one's retained …
shumkov a5a3d20
refactor(platform)!: carry the erase kind on the shipped batch transi…
shumkov e04c014
test(platform): pin the erase kind's wire byte and its refusal at pro…
shumkov 1e8c9d3
fix(drive): bill the contract fetch of a lifecycle delete and version…
shumkov 9c8532d
fix(drive): refuse to erase a document that is not deleted
shumkov e659eb1
refactor(dpp): have document type update validation v2 delegate to v1
shumkov 8faa6c1
refactor(drive-abci): report the lifecycle states from the one histor…
shumkov 21b0369
refactor(drive): let every delete entry point record a keep-history d…
shumkov fc67863
refactor(drive)!: give the delete entry points the block and deleter …
shumkov c599ee2
docs(book): a new input changes a method's signature, not the method …
shumkov aa43260
refactor(wasm-sdk): drop the exact-integer selector type the deserial…
shumkov 6cdd76f
refactor(drive)!: keep the lifecycle record in dpp and serialize it w…
shumkov 4e80087
feat(sdk-ffi): export document erase and the history lifecycle read
shumkov 1f0ca68
feat(platform-wallet): add the document erase next to delete
shumkov c156b3e
feat(kotlin-sdk): expose the document erase and its example-app action
shumkov 2cec58a
feat(swift-sdk): expose the document erase and the history lifecycle …
shumkov 4da56f4
fix(sdk-ffi): report the erase result as an absence observation
shumkov b070768
fix(platform-wallet): report the erase result as an absence observation
shumkov bf65d98
fix(swift-sdk): keep the query extension on MainActor and read erase …
shumkov f79de65
fix(kotlin-sdk): read erase progress from the document lifecycle
shumkov 1cca928
fix(swift-sdk): reject malformed numbers in the document lifecycle block
shumkov be3bb39
fix(swift-sdk): do not report a broadcast erase as failed when the li…
shumkov 1ca6076
fix(kotlin-sdk): keep a failed lifecycle read from failing a broadcas…
shumkov 7d5460a
fix(kotlin-sdk): reject negative and string-typed lifecycle numbers
shumkov 2b29e2a
refactor(sdk-ffi): name the mobile history filter after the query field
shumkov 8ce53cb
docs(sdk-ffi): say the history read needs the protocol-15 layout
shumkov 152a0a9
Merge the pre-restack keep-history-mobile history
shumkov a090d9b
feat(wasm-dpp2): expose the document erase transition
shumkov b3e8fe2
docs(book): describe the keep-history document lifecycle and history …
shumkov 2bc3ed9
fix(wasm-dpp2): exclude token payment from document erase
shumkov 8b16eed
fix(sdk-ffi): validate document history filter integers
shumkov f24b021
chore(drive): merge v5.1-dev into composite history
shumkov cb08ff9
fix(sdk): seed unpinned devnets at protocol 14
shumkov 5c91ebf
fix(drive): reject unknown document history writer layouts
shumkov bd181a3
docs(grpc): describe document history requests without release narration
shumkov cd4b47a
test(drive): cover upstream index kinds in history migration
shumkov f1b8726
fix(drive): size history pointer read estimates like writes
shumkov 4a3b50e
fix(drive): assert the history proof envelope floor
shumkov 87c1fb6
test(drive): exercise contract writers at protocol 14 and 15
shumkov ea00051
style(history): keep protocol assertions and comments precise
shumkov fd4825c
fix(wasm-sdk): expose retained document history layout types
shumkov 18aadd9
refactor(drive): version the document history layout independently
shumkov 37e16c3
fix(sdk): send history filters before protocol discovery
shumkov 90594f0
fix(drive): accept revision 65536 in history revision filters
shumkov d3a1182
fix(wasm-sdk): accept returned history entries as cursors
shumkov 8ee4167
fix(dapi): preserve document history wire version zero
shumkov 452dd1c
fix: gate versioned document history queries at activation
shumkov 6beb493
fix(sdk): use version one for retained document history
shumkov 93e90fd
style(drive-abci): drop a same-type conversion in the history offset …
shumkov 342eced
chore: merge v5.1-dev into retained document history
shumkov b40e744
build: pin GroveDB branch-local count offsets
shumkov 3effb5f
feat(version): select GroveDB V5 for protocol 15
shumkov 5a80fbe
fix(proofs): select document layouts from the signed producer version
shumkov b6757c4
feat(history): serve revision pages in one GroveDB proof
shumkov 38a4041
test(version): preserve query and activation behavior with GroveDB V5
shumkov 01ff656
fix(sdk): verify history using the signed producer version
shumkov a251681
test(drive): preserve released execution-proof query layouts
shumkov 20dd12c
test(drive): bound keep-history contract update fees
shumkov 2c859b0
fix(wasm-sdk): return errors for missing history proof metadata
shumkov 3c73a98
chore(history): merge current v5.1-dev and merged GroveDB history sup…
shumkov 3b7053e
docs(history): clarify PV15 estimates and producer proof layout
shumkov d124bcc
test(history): verify legacy proofs with current Grove rules
shumkov 64963c0
style(history): format Grove activation assertions
shumkov aa01294
fix(dapi-client): declare that document history v1 needs protocol 15
shumkov d9ea5f8
test(drive-abci): account for retained-history trees in genesis roots
shumkov 4ce0707
chore(history): merge current v5.1-dev and storing-epoch refund pricing
shumkov 604d9cc
test(drive): record storing epochs in the history index fixture
shumkov 5ecec6d
test(drive-abci): refresh activation root for upstream private stores
shumkov 4ba004d
refactor(drive)!: name timestamp history APIs after their exclusive b…
shumkov 41bca10
refactor(drive): require composite method versions for history queries
shumkov e2b30e1
test(drive): bound storage and processing estimates independently
shumkov c067914
refactor(drive): finish history query boundary cleanup
shumkov 438a730
chore: merge v5.1-dev into retained history storage
shumkov a666534
merge(platform): merge v5.1-dev through f603f988ae
shumkov a375f69
test(drive): cover unchanged history array entries after owner handover
shumkov 40ba348
style(platform): remove formatting churn from the merge resolutions
shumkov 7ceca85
test(drive-abci): name sponsored history coverage after pointer handover
shumkov bc11ed0
test(drive): strengthen temporal proof verification controls
shumkov f39c665
docs(drive): clarify history query caps and signed proof tables
shumkov 000b0b6
chore: merge v5.1-dev activation updates into retained history
shumkov d5ece21
test(drive): strengthen the temporal bound proof control
shumkov 05b5811
chore: merge v5.1-dev into keep-history-storage-v2
shumkov cb336dd
test(drive-abci): cover references to retained history targets
shumkov 74a67d2
chore: merge current history storage into lifecycle
shumkov 43c16a8
fix(dapi): regenerate lifecycle response clients
shumkov 0063da3
chore: merge history storage upstream catch-up
shumkov 656edc4
test(drive-abci): cover references across history lifecycle
shumkov 90a2775
chore(version): remove redundant verifier table update
shumkov 7d80b97
docs: describe protocol fifteen history lifecycle and proofs
shumkov 68f9c96
refactor(sdk): express erase base versions as a range
shumkov aab74ec
fix(dpp): retain parser generation in direct test callers
shumkov c921499
refactor(dpp): place parser grammars before test modules
shumkov 565db7a
chore: merge v5.1-dev into keep-history-storage-v2
shumkov 50a02ab
docs(dpp): explain erase conversion admission bounds
shumkov 1a46ca9
fix(drive-abci): import erase action validation traits
shumkov 2ff04a5
test(drive): cover flagged summable reference refresh estimates
shumkov 5cd749f
chore: merge history storage fee estimate catch-up
shumkov 282b78f
chore: merge v5.1-dev into keep-history-storage-v2
shumkov a9d8f2d
chore: merge history storage reference catch-up
shumkov c5bc974
fix(drive): supply deleter in summable estimate fixture
shumkov 3f37941
fix(drive): preserve empty history absence without a lifecycle record
shumkov 5b3a02c
test(drive): exercise migrated contested history from its legacy prot…
shumkov 729524a
test(drive): verify lifecycle rollback and persisted continuation
shumkov d6945af
fix(drive): admit lifecycle inserts in the client create-cost mirror
shumkov 4e98e2f
fix(drive): exclude retained history from lifecycle delete refunds
shumkov 4aa9304
test(drive-abci): align lifecycle fixtures with current transition APIs
shumkov 16eb9f8
test(drive-abci): pin lifecycle reference outcomes for either-kind ta…
shumkov 339509f
fix(platform-wallet): summarize erase transitions without a transfer
shumkov 4bca68f
merge: integrate protocol 15 history lifecycle into mobile SDKs
shumkov 31718ca
fix(swift-sdk): preserve full-width lifecycle integers
shumkov 696e27a
fix(swift-sdk): run history reads on the platform query queue
shumkov 165e3ff
fix(sdk): describe erase completion without promising id reuse
shumkov 7c570ea
fix(sdk-ffi): align erase borrowing and error propagation
shumkov 3f55e7d
docs(versioning): describe lifecycle selectors in protocol 15
shumkov 26033fa
test(swift-sdk): match history native error classification
shumkov 4a9041a
style(swift-sdk): use four spaces in the history query test
shumkov a375a28
chore: merge v5.1-dev after history storage integration
shumkov 862e0bf
docs: align lifecycle and native validation version notes
shumkov 0550f5a
docs: clarify lifecycle record ownership and create refusal
shumkov bccbf2c
docs(rs-sdk): correct lifecycle query timing example
shumkov eb6b63d
test(swift-sdk): pin erase progress to authenticated lifecycle
shumkov ca2fb1f
refactor(swift-sdk): use native history filter constants
shumkov 87338db
docs(rs-sdk-ffi): clarify lifecycle and erase pointer contracts
shumkov 3dbeeea
fix(swift-sdk): snapshot erase sheet labels before local deletion
shumkov c573979
fix(swift-sdk): skip unnecessary erase broadcasts in the example
shumkov e491c1f
fix(kotlin-sdk): preserve unsigned lifecycle metadata exactly
shumkov 31ef556
fix(kotlin-sdk): skip unnecessary erase broadcasts in the example
shumkov dde103e
test(rs-sdk-ffi): pin history identifier errors to caller input
shumkov 5f372f5
fix(rs-sdk-ffi): classify malformed history identifiers as input errors
shumkov 2be8381
fix(drive): preserve pending operations in force deletion
shumkov 5246476
fix(drive): include owner flags in lifecycle delete estimates
shumkov afe3969
test(drive): pin lifecycle metadata refusal diagnostics
shumkov 98ef571
fix(swift-sdk): preserve the latest skipped erase observation
shumkov 86950f0
test(rs-sdk): pin the erase affected-state observation
shumkov 0fe0e07
test(wasm-dpp2): use typed assertions for absent agreements
shumkov f065b16
chore: merge the current protocol 15 lifecycle port
shumkov 9c54d9e
fix(sdk-ffi): resolve erase and history contracts with the current pr…
shumkov 4ada95a
chore: merge v5.1-dev into keep-history lifecycle
shumkov 2198564
docs: clarify lifecycle delete estimation and consume rules
shumkov d71dfb2
test(drive): compare total lifecycle delete estimates with applied fees
shumkov a9c0e1a
merge: integrate document-keyed decision contests from v5.1-dev
shumkov 6299a7c
chore: merge the reviewed lifecycle head
shumkov 757ef27
fix(swift-example): skip erases for active or absent documents
shumkov f52e211
fix(kotlin-example): describe absent erase preflights accurately
shumkov 5de4131
fix(dpp): freeze document erasure schema compatibility
shumkov d634769
fix(drive): describe lifecycle records in the storage schema
shumkov 70dd059
merge: integrate proposal references and schema validation updates
shumkov c90f1c3
chore: merge the final lifecycle compatibility updates
shumkov 7e59618
merge: integrate proposal fees and shielded contact updates
shumkov 5872857
fix(drive): version erase refund recipient pricing
shumkov d88b055
fix(drive): preserve sibling history deletes in raw conversion
shumkov 6edc4c0
test(drive-abci): normalize inactive erasure flags in shielded parity
shumkov 84ac1e7
docs(platform-version): document lifecycle batch conversion
shumkov 1073d2e
chore: merge lifecycle refund versioning and batch conversion updates
shumkov 6b803f2
chore: merge v5.1-dev into keep-history-mobile after the lifecycle merge
shumkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clear the erase result when the document ID changes.
After erasing document A, entering document B leaves A's result visible under B's ID. The result can still say “Erasure complete” before B's lifecycle is read. Reset
eraseSuccesswhendocumentIdTextchanges, or bind the result to the submitted document ID.