platform_version/version/drive_versions/
v1.rs1use crate::version::drive_versions::drive_address_funds_method_versions::v1::DRIVE_ADDRESS_FUNDS_METHOD_VERSIONS_V1;
2use crate::version::drive_versions::drive_contract_group_method_versions::v1::DRIVE_CONTRACT_GROUP_METHOD_VERSIONS_V1;
3use crate::version::drive_versions::drive_contract_method_versions::v1::DRIVE_CONTRACT_METHOD_VERSIONS_V1;
4use crate::version::drive_versions::drive_credit_pool_method_versions::v1::CREDIT_POOL_METHOD_VERSIONS_V1;
5use crate::version::drive_versions::drive_document_method_versions::v1::DRIVE_DOCUMENT_METHOD_VERSIONS_V1;
6use crate::version::drive_versions::drive_group_method_versions::v1::DRIVE_GROUP_METHOD_VERSIONS_V1;
7use crate::version::drive_versions::drive_group_method_versions::DriveShieldedMethodVersions;
8use crate::version::drive_versions::drive_grove_method_versions::v1::DRIVE_GROVE_METHOD_VERSIONS_V1;
9use crate::version::drive_versions::drive_identity_method_versions::v1::DRIVE_IDENTITY_METHOD_VERSIONS_V1;
10use crate::version::drive_versions::drive_state_transition_method_versions::v1::DRIVE_STATE_TRANSITION_METHOD_VERSIONS_V1;
11use crate::version::drive_versions::drive_structure_version::v1::DRIVE_STRUCTURE_V1;
12use crate::version::drive_versions::drive_token_method_versions::v1::DRIVE_TOKEN_METHOD_VERSIONS_V1;
13use crate::version::drive_versions::drive_verify_method_versions::v1::DRIVE_VERIFY_METHOD_VERSIONS_V1;
14use crate::version::drive_versions::drive_vote_method_versions::v1::DRIVE_VOTE_METHOD_VERSIONS_V1;
15use crate::version::drive_versions::{
16 DriveAssetLockMethodVersions, DriveBalancesMethodVersions, DriveBatchOperationsMethodVersion,
17 DriveEstimatedCostsMethodVersions, DriveFeesMethodVersions, DriveFetchMethodVersions,
18 DriveInitializationMethodVersions, DriveMethodVersions, DriveOperationsMethodVersion,
19 DrivePlatformStateMethodVersions, DrivePlatformSystemMethodVersions,
20 DrivePrefundedSpecializedMethodVersions, DriveProtocolUpgradeVersions,
21 DriveProveMethodVersions, DriveSavedBlockTransactionsMethodVersions,
22 DriveSystemEstimationCostsMethodVersions, DriveVersion,
23};
24use grovedb_version::version::v1::GROVE_V1;
25
26pub const DRIVE_VERSION_V1: DriveVersion = DriveVersion {
27 structure: DRIVE_STRUCTURE_V1,
28 methods: DriveMethodVersions {
29 initialization: DriveInitializationMethodVersions {
30 create_initial_state_structure: 0,
31 },
32 credit_pools: CREDIT_POOL_METHOD_VERSIONS_V1,
33 protocol_upgrade: DriveProtocolUpgradeVersions {
34 clear_version_information: 0,
35 fetch_versions_with_counter: 0,
36 fetch_proved_versions_with_counter: 0,
37 fetch_validator_version_votes: 0,
38 fetch_proved_validator_version_votes: 0,
39 remove_validators_proposed_app_versions: 0,
40 update_validator_proposed_app_version: 0,
41 },
42 prove: DriveProveMethodVersions {
43 prove_elements: 0,
44 prove_multiple_state_transition_results: 0,
45 prove_state_transition: 0,
46 },
47 balances: DriveBalancesMethodVersions {
48 add_to_system_credits: 0,
49 add_to_system_credits_operations: 0,
50 remove_from_system_credits: 0,
51 remove_from_system_credits_operations: 0,
52 calculate_total_credits_balance: 0,
53 },
54 document: DRIVE_DOCUMENT_METHOD_VERSIONS_V1,
55 vote: DRIVE_VOTE_METHOD_VERSIONS_V1,
56 contract: DRIVE_CONTRACT_METHOD_VERSIONS_V1,
57 fees: DriveFeesMethodVersions { calculate_fee: 0 },
58 estimated_costs: DriveEstimatedCostsMethodVersions {
59 add_estimation_costs_for_levels_up_to_contract: 0,
60 add_estimation_costs_for_levels_up_to_contract_document_type_excluded: 0,
61 add_estimation_costs_for_contested_document_tree_levels_up_to_contract: 0,
62 add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded: 0,
63 },
64 asset_lock: DriveAssetLockMethodVersions {
65 add_asset_lock_outpoint: 0,
66 add_estimation_costs_for_adding_asset_lock: 0,
67 fetch_asset_lock_outpoint_info: 0,
68 },
69 verify: DRIVE_VERIFY_METHOD_VERSIONS_V1,
70 identity: DRIVE_IDENTITY_METHOD_VERSIONS_V1,
71 token: DRIVE_TOKEN_METHOD_VERSIONS_V1,
72 platform_system: DrivePlatformSystemMethodVersions {
73 estimation_costs: DriveSystemEstimationCostsMethodVersions {
74 for_total_system_credits_update: 0,
75 },
76 },
77 operations: DriveOperationsMethodVersion {
78 rollback_transaction: 0,
79 drop_cache: 0,
80 commit_transaction: 0,
81 apply_partial_batch_low_level_drive_operations: 0,
82 apply_partial_batch_grovedb_operations: 0,
83 apply_batch_low_level_drive_operations: 0,
84 apply_batch_grovedb_operations: 0,
85 },
86 state_transitions: DRIVE_STATE_TRANSITION_METHOD_VERSIONS_V1,
87 batch_operations: DriveBatchOperationsMethodVersion {
88 convert_drive_operations_to_grove_operations: 0,
89 apply_drive_operations: 0,
90 },
91 platform_state: DrivePlatformStateMethodVersions {
92 fetch_platform_state_bytes: 0,
93 store_platform_state_bytes: 0,
94 fetch_platform_state_recent_bytes: 0,
95 store_platform_state_recent_bytes: 0,
96 fetch_platform_state_entries_bytes: 0,
97 store_platform_state_entry_bytes: 0,
98 delete_platform_state_entry: 0,
99 },
100 fetch: DriveFetchMethodVersions { fetch_elements: 0 },
101 prefunded_specialized_balances: DrivePrefundedSpecializedMethodVersions {
102 fetch_single: 0,
103 prove_single: 0,
104 add_prefunded_specialized_balance: 0,
105 add_prefunded_specialized_balance_operations: 0,
106 deduct_from_prefunded_specialized_balance: 0,
107 deduct_from_prefunded_specialized_balance_operations: 0,
108 estimated_cost_for_prefunded_specialized_balance_update: 0,
109 empty_prefunded_specialized_balance: 0,
110 },
111 group: DRIVE_GROUP_METHOD_VERSIONS_V1,
112 contract_group: DRIVE_CONTRACT_GROUP_METHOD_VERSIONS_V1,
113 address_funds: DRIVE_ADDRESS_FUNDS_METHOD_VERSIONS_V1,
114 shielded: DriveShieldedMethodVersions {
115 insert_note: 0,
116 insert_nullifiers: 0,
117 update_total_balance: 0,
118 record_anchor_if_changed: 0,
119 prune_anchors: 0,
120 has_anchor: 0,
121 has_nullifier: 0,
122 read_total_balance: 0,
123 notes_count: 0,
124 },
125 saved_block_transactions: DriveSavedBlockTransactionsMethodVersions {
126 store_address_balances: 0,
127 fetch_address_balances: 0,
128 prove_compacted_address_balance_changes: 0,
129 compact_address_balances: 0,
130 cleanup_expired_address_balances: 0,
131 max_blocks_before_compaction: 64,
132 max_addresses_before_compaction: 2048,
133 },
134 },
135 grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1,
136 grove_version: GROVE_V1,
137};