Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
76 changes: 38 additions & 38 deletions packages/rs-drive/grovedb-structure.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema_version": 1,
"latest_protocol_version": 14,
"latest_protocol_version": 15,
"element_kinds": [
{
"name": "Item",
Expand Down Expand Up @@ -5451,7 +5451,7 @@
},
"layer_shapes": {
"contract_groups": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "00",
"right": {
Expand All @@ -5460,7 +5460,7 @@
}
},
"contract_groups.groups.group": {
"origin": "fixture contract_groups_and_bound_keys@14",
"origin": "fixture contract_groups_and_bound_keys@15",
"tree": {
"hex": "02",
"left": {
Expand All @@ -5475,7 +5475,7 @@
}
},
"contract_groups.members.contract": {
"origin": "fixture contract_groups_and_bound_keys@14",
"origin": "fixture contract_groups_and_bound_keys@15",
"tree": {
"hex": "01",
"left": {
Expand All @@ -5487,7 +5487,7 @@
}
},
"contracts.contract": {
"origin": "fixture contracts_with_documents@14",
"origin": "fixture contracts_with_documents@15",
"tree": {
"hex": "01",
"left": {
Expand All @@ -5499,7 +5499,7 @@
}
},
"contracts.contract.other": {
"origin": "fixture moderated_contract@14",
"origin": "fixture moderated_contract@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5517,7 +5517,7 @@
}
},
"contracts.contract.other.team_actions": {
"origin": "fixture contract_with_team_actions@14",
"origin": "fixture contract_with_team_actions@15",
"tree": {
"hex": "58",
"left": {
Expand All @@ -5526,7 +5526,7 @@
}
},
"contracts.contract.other.team_actions.active.team_action": {
"origin": "fixture contract_with_team_actions@14",
"origin": "fixture contract_with_team_actions@15",
"tree": {
"hex": "53",
"left": {
Expand All @@ -5535,7 +5535,7 @@
}
},
"contracts.contract.other.team_actions.closed.team_action": {
"origin": "fixture contract_with_team_actions@14",
"origin": "fixture contract_with_team_actions@15",
"tree": {
"hex": "53",
"left": {
Expand All @@ -5544,7 +5544,7 @@
}
},
"group_actions.contract.group": {
"origin": "fixture tokens_and_group_actions@14",
"origin": "fixture tokens_and_group_actions@15",
"tree": {
"hex": "4d",
"left": {
Expand All @@ -5556,7 +5556,7 @@
}
},
"group_actions.contract.group.active.action": {
"origin": "fixture tokens_and_group_actions@14",
"origin": "fixture tokens_and_group_actions@15",
"tree": {
"hex": "53",
"left": {
Expand All @@ -5565,7 +5565,7 @@
}
},
"group_actions.contract.group.closed.action": {
"origin": "fixture tokens_and_group_actions@14",
"origin": "fixture tokens_and_group_actions@15",
"tree": {
"hex": "53",
"left": {
Expand All @@ -5574,7 +5574,7 @@
}
},
"identities.identity": {
"origin": "fixture contract_groups_and_bound_keys@14",
"origin": "fixture contract_groups_and_bound_keys@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5599,7 +5599,7 @@
"states": [
{
"state": "created",
"origin": "fixture identities@14",
"origin": "fixture identities@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5618,7 +5618,7 @@
},
{
"state": "used_with_a_contract",
"origin": "fixture identities@14",
"origin": "fixture identities@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5640,7 +5640,7 @@
},
{
"state": "budgeted_key_and_contract",
"origin": "fixture contract_groups_and_bound_keys@14",
"origin": "fixture contract_groups_and_bound_keys@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5666,7 +5666,7 @@
]
},
"identities.identity.contract_info.bound": {
"origin": "fixture contract_groups_and_bound_keys@14",
"origin": "fixture contract_groups_and_bound_keys@15",
"tree": {
"hex": "01",
"left": {
Expand All @@ -5675,7 +5675,7 @@
}
},
"identities.identity.key_references": {
"origin": "fixture identities@14",
"origin": "fixture identities@15",
"tree": {
"hex": "03",
"left": {
Expand All @@ -5687,7 +5687,7 @@
}
},
"identities.identity.key_references.authentication": {
"origin": "fixture identities@14",
"origin": "fixture identities@15",
"tree": {
"hex": "02",
"left": {
Expand All @@ -5702,7 +5702,7 @@
}
},
"misc": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "45",
"left": {
Expand All @@ -5714,7 +5714,7 @@
}
},
"pools.epoch": {
"origin": "fixture current_epoch@14",
"origin": "fixture current_epoch@15",
"tree": {
"hex": "6d",
"left": {
Expand Down Expand Up @@ -5742,14 +5742,14 @@
"states": [
{
"state": "future",
"origin": "fixture current_epoch@14",
"origin": "fixture current_epoch@15",
"tree": {
"hex": "73"
}
},
{
"state": "running",
"origin": "fixture current_epoch@14",
"origin": "fixture current_epoch@15",
"tree": {
"hex": "6d",
"left": {
Expand Down Expand Up @@ -5777,7 +5777,7 @@
},
{
"state": "paid",
"origin": "fixture paid_epoch@14",
"origin": "fixture paid_epoch@15",
"tree": {
"hex": "74",
"left": {
Expand All @@ -5800,7 +5800,7 @@
]
},
"prefunded_balances": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5812,7 +5812,7 @@
}
},
"root": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "40",
"left": {
Expand Down Expand Up @@ -5869,7 +5869,7 @@
}
},
"saved_block_transactions": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "65",
"left": {
Expand All @@ -5881,7 +5881,7 @@
}
},
"shielded_balances.main_pool": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5899,7 +5899,7 @@
}
},
"tokens": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5920,7 +5920,7 @@
}
},
"tokens.distributions": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5935,7 +5935,7 @@
}
},
"tokens.distributions.perpetual.token": {
"origin": "fixture token_distributions_unclaimed@14",
"origin": "fixture token_distributions_unclaimed@15",
"tree": {
"hex": "c0",
"left": {
Expand All @@ -5944,7 +5944,7 @@
}
},
"tokens.distributions.timed": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "80",
"left": {
Expand All @@ -5956,7 +5956,7 @@
}
},
"versions": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "01",
"left": {
Expand All @@ -5965,7 +5965,7 @@
}
},
"votes": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "64",
"left": {
Expand All @@ -5977,7 +5977,7 @@
}
},
"votes.contested_resource": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "70",
"left": {
Expand All @@ -5986,7 +5986,7 @@
}
},
"votes.contested_resource.active_polls.contract.document_type": {
"origin": "fixture contested_documents@14",
"origin": "fixture contested_documents@15",
"tree": {
"hex": "01",
"left": {
Expand All @@ -5995,7 +5995,7 @@
}
},
"votes.contested_resource.active_polls.contract.document_type.indexes.value.contender": {
"origin": "fixture contested_documents@14",
"origin": "fixture contested_documents@15",
"tree": {
"hex": "01",
"left": {
Expand All @@ -6004,7 +6004,7 @@
}
},
"withdrawals": {
"origin": "genesis@14",
"origin": "genesis@15",
"tree": {
"hex": "03",
"left": {
Expand Down
8 changes: 7 additions & 1 deletion packages/rs-drive/src/structure/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ fn should_record_a_contract_layer_with_its_documents_on_top() {
// fixture. Documents are read most and sit at the root of the layer; the
// contract itself and everything else hang below.
let contract = &json["layer_shapes"]["contracts.contract"];
assert_eq!(contract["origin"], "fixture contracts_with_documents@14");
assert_eq!(
contract["origin"],
format!(
"fixture contracts_with_documents@{}",
PlatformVersion::latest().protocol_version
)
);
assert_eq!(contract["tree"]["hex"], "01");
assert_eq!(contract["tree"]["left"]["hex"], "00");
assert_eq!(contract["tree"]["right"]["hex"], "02");
Expand Down
Loading