Skip to main content

platform_version/version/fee/private_document/
v1.rs

1use crate::version::fee::private_document::FeePrivateDocumentVersion;
2
3/// Introduced with protocol version 15 (5.1), the first version that admits
4/// `PrivateDocumentCreateFromShieldedPool`; every fee schedule references it, and none before
5/// 15 reads it.
6///
7/// An entry pays 10,000,000 credits (0.0001 DASH) on top of its storage, so a million entries
8/// a day, which every wallet of the type downloads and scans, cost 100 DASH a day in this fee
9/// alone, beside the shielded fee every transition pays.
10///
11/// GroveDB's append into a store meters the entry, Drive's 16-byte header and 1 to 3 bytes of
12/// its own per entry, the same at every position (the compacting append included) for every
13/// chunk power; 32 bytes cover them with margin. Drive's
14/// `should_charge_a_fixed_fee_covering_the_metered_cost_at_every_chunk_power` holds both to it.
15pub const FEE_PRIVATE_DOCUMENT_VERSION1: FeePrivateDocumentVersion = FeePrivateDocumentVersion {
16    entry_processing_fee: 10_000_000,
17    entry_overhead_bytes: 32,
18};