Skip to content
Snippets Groups Projects
Select Git revision
  • 677ca62637f5d4cf7c4f11faf9eb1c87f72a0108
  • master default protected
  • Vivakvo-master-patch-80805
  • patch-26
  • patch-19
  • patch-25
  • patch-24
  • patch-23
  • patch-22
  • patch-21
  • patch-18
  • patch-17
  • Vivakvo-master-patch-99327
  • patch-16
  • patch-15
  • patch-14
  • patch-13
  • patch-12
  • patch-11
  • patch-10
  • patch-9
  • v1.4.1
  • v1.4.0
  • v1.3.11
  • v1.3.10
  • v1.3.9
  • v1.3.8
  • v1.3.7
  • v1.3.6
  • v1.3.5
  • v1.3.4
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.10
  • v1.2.9
  • v1.2.8
  • v1.2.7
  • v1.2.6
  • v1.2.5
41 results

gulpfile.js

Blame
  • Forked from clients / Cesium-grp / Cesium
    Source project has a limited visibility.
    lib.rs 2.85 KiB
    //  Copyright (C) 2020 Éloïs SANCHEZ.
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as
    // published by the Free Software Foundation, either version 3 of the
    // License, or (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <https://www.gnu.org/licenses/>.
    
    #![deny(
        clippy::unwrap_used,
        missing_copy_implementations,
        trivial_casts,
        trivial_numeric_casts,
        unstable_features,
        unused_import_braces
    )]
    
    mod keys;
    mod values;
    
    pub use keys::gva_utxo_id::GvaUtxoIdDbV1;
    pub use keys::wallet_hash_with_bn::WalletHashWithBnV1Db;
    pub use values::gva_block_db::GvaBlockDbV1;
    pub use values::gva_idty_db::GvaIdtyDbV1;
    pub use values::gva_tx::GvaTxDbV1;
    pub use values::wallet_script_array::WalletScriptArrayV2;
    pub use values::HashDb;
    
    pub(crate) use bincode::Options as _;
    pub(crate) use dubp::common::prelude::*;
    pub(crate) use dubp::crypto::hashs::Hash;
    pub(crate) use dubp::wallet::prelude::*;
    pub(crate) use duniter_core::dbs::kv_typed;
    pub(crate) use duniter_core::dbs::kv_typed::db_schema;
    pub(crate) use duniter_core::dbs::kv_typed::prelude::*;
    pub(crate) use duniter_core::dbs::smallvec::SmallVec;
    pub(crate) use duniter_core::dbs::{
        bincode_db, CorruptedBytes, HashKeyV2, PubKeyKeyV2, SourceAmountValV2, ToDumpString,
        WalletConditionsV2,
    };
    pub(crate) use serde::{Deserialize, Serialize};
    pub(crate) use std::collections::BTreeSet;
    
    db_schema!(
        GvaV1,
        [
            ["balances", Balances, WalletConditionsV2, SourceAmountValV2],
            ["blocks_by_common_time", BlocksByCommonTime, U64BE, u32],
            ["blocks_with_ud", BlocksWithUd, U32BE, ()],
            ["blockchain_time", BlockchainTime, U32BE, u64],
            ["blocks_chunk_hash", BlocksChunkHash, U32BE, HashDb],
            ["compressed_blocks_chunk", CompressedBlocksChunk, U32BE, Vec<u8>],
            ["current_blocks_chunk", CurrentBlocksChunk, U32BE, GvaBlockDbV1],
            ["gva_identities", GvaIdentities, PubKeyKeyV2, GvaIdtyDbV1],
            [
                "gva_utxos",
                GvaUtxos,
                GvaUtxoIdDbV1,
                SourceAmountValV2
            ],
            [
                "scripts_by_pubkey",
                ScriptsByPubkey,
                PubKeyKeyV2,
                WalletScriptArrayV2
            ],
            ["txs", Txs, HashKeyV2, GvaTxDbV1],
            ["txs_by_block", TxsByBlock, U32BE, Vec<Hash>],
            ["txs_by_issuer", TxsByIssuer, WalletHashWithBnV1Db, BTreeSet<Hash>],
            ["txs_by_recipient", TxsByRecipient, WalletHashWithBnV1Db, BTreeSet<Hash>],
        ]
    );