Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
51d1808
feat(dpp): add documents_countable and blast_syncable to DocumentTypeV2
QuantumExplorer Apr 8, 2026
219c6c0
chore: merge v3.1-dev
QuantumExplorer May 8, 2026
409fea9
fix(drive): strip v12-introduced flags from pre-v12 contracts on upgrade
QuantumExplorer May 8, 2026
12f59e9
chore(dpp): freeze v0 document meta-schema, remove leaked v12 flags
QuantumExplorer May 8, 2026
4d0b811
chore(dpp): mark v1 document meta-schema editable-until-3.1-release
QuantumExplorer May 8, 2026
da2be81
test(dpp): regression tests for documents_countable / range_countable…
QuantumExplorer May 8, 2026
e7f157d
chore(dpp): simplify pre-v12 schema strip — drop unused symbols
QuantumExplorer May 8, 2026
590aff4
refactor(dpp): rename allowlist to ALLOWED_TRANSITION_TO_DOCUMENT_SCH…
QuantumExplorer May 8, 2026
142a7a2
test(dpp): tighten transition allowlist parity to v0 ∪ known v1 addit…
QuantumExplorer May 8, 2026
818768b
refactor(drive): add batch_insert_empty_count_tree / batch_insert_emp…
QuantumExplorer May 8, 2026
e1ea11c
test(drive): end-to-end coverage for documentsCountable / rangeCountable
QuantumExplorer May 8, 2026
fe6415a
refactor(drive): route primary-key tree selection through primary_key…
QuantumExplorer May 8, 2026
03e23a1
refactor(drive): default primary-key tree to NormalTree on unknown Tr…
QuantumExplorer May 8, 2026
94e029f
test: fee-correctness + JS round-trip coverage for documentsCountable…
QuantumExplorer May 8, 2026
a43d434
test(drive): cover countable contract update paths
QuantumExplorer May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/dashpay/platform/blob/master/packages/rs-dpp/schema/meta_schemas/document/v0/document-meta.json",
"$comment": "FROZEN — DO NOT MODIFY. This v0 document meta-schema is the schema validator used to admit pre-v12 contracts and remains in view-only mode for state already on disk. Any new top-level property or rule MUST go in a newer meta-schema version (v1+) so historical validation results stay deterministic. Touching this file changes how every pre-v12 contract was admitted and breaks consensus replay.",
"type": "object",
"$defs": {
"documentProperties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/dashpay/platform/blob/master/packages/rs-dpp/schema/meta_schemas/document/v1/document-meta.json",
"$comment": "EDITABLE UNTIL 3.1 RELEASE — FROZEN AFTER. This v1 document meta-schema activates with protocol v12 (CONTRACT_VERSIONS_V4) and admits every v12+ contract written to disk. Once Platform 3.1 ships, mutating it would change historical validation results and break consensus replay. After release, any new top-level property or rule MUST go in a newer meta-schema version (v2+).",
"type": "object",
"$defs": {
"documentProperties": {
Expand Down Expand Up @@ -505,6 +506,14 @@
],
"description": "Key requirements. 0 - Unique Non Replaceable, 1 - Multiple, 2 - Multiple with reference to latest key."
},
"documentsCountable": {
"type": "boolean",
"description": "When true, the primary key tree uses a CountTree enabling O(1) total document count queries. Only effective from protocol version 12."
},
"rangeCountable": {
"type": "boolean",
"description": "When true, the primary key tree uses a ProvableCountTree enabling range countable. Only effective from protocol version 12. Implies documentsCountable."
},
Comment thread
QuantumExplorer marked this conversation as resolved.
"tokenCost": {
"type": "object",
"properties": {
Expand Down
Loading
Loading