Skip to content
Snippets Groups Projects
Select Git revision
  • a4adb75bfda5febaa7de916f2af8ce34f69f3a26
  • master default protected
  • fix_picked_up_file_in_runtime_release
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • gtest-1000-0.11.1 protected
  • gtest-1000-0.11.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
41 results

runtime-events.md

Blame
    • Benjamin Gallois's avatar
      2b050e27
      Refac generated documentation (nodes/rust/duniter-v2s!254) · 2b050e27
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * revert gen-doc changes
      
      * Revert "add doc to CI"
      
      This reverts commit 7f086905.
      
      * update xtask to polkadot-v1.9.0
      
      * add doc to CI
      
      * reduce doc size
      
      * move runtime api doc to target artefact
      
      * add base url
      
      * enable full docs for non-local pallet
      
      * add url to rust autogenerated docs in api
      
      * add rust doc generation
      
      * remove gen-doc file from git index
      
      * fix xtask gen-docs
      2b050e27
      History
      Refac generated documentation (nodes/rust/duniter-v2s!254)
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * revert gen-doc changes
      
      * Revert "add doc to CI"
      
      This reverts commit 7f086905.
      
      * update xtask to polkadot-v1.9.0
      
      * add doc to CI
      
      * reduce doc size
      
      * move runtime api doc to target artefact
      
      * add base url
      
      * enable full docs for non-local pallet
      
      * add url to rust autogenerated docs in api
      
      * add rust doc generation
      
      * remove gen-doc file from git index
      
      * fix xtask gen-docs
    events.rs 2.14 KiB
    //  Copyright (C) 2018  The Durs Project Developers.
    //
    // 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/>.
    
    use crate::*;
    use dubp_documents::documents::block::BlockDocument;
    use dubp_documents::documents::UserDocumentDUBP;
    use dubp_documents::Blockstamp;
    use durs_network::events::NetworkEvent;
    
    /// The DURS event message.
    #[derive(Debug, Clone)]
    pub enum DursEvent {
        /// Arbitrary datas.
        ArbitraryDatas(ArbitraryDatas),
        /// Blockchain event
        BlockchainEvent(Box<BlockchainEvent>),
        /// MemPool Event (local node find next block)
        MemPoolEvent(MemPoolEvent),
        /// Network event
        NetworkEvent(NetworkEvent),
        /// Client API event
        ReceiveValidDocsFromClient(Vec<UserDocumentDUBP>),
    }
    
    #[derive(Debug, Clone)]
    /// MemPool module events
    pub enum MemPoolEvent {
        /// FindNextBlock (local node find next block)
        FindNextBlock(Box<BlockDocument>),
        /// Store new Blockhain Document in Pool
        StoreNewDocInPool(Box<UserDocumentDUBP>),
    }
    
    #[derive(Debug, Clone)]
    /// Blockchain module events
    pub enum BlockchainEvent {
        /// Currency parameters
        CurrencyParameters(dup_currency_params::CurrencyParameters),
        /// Stack up new valid block in local blockchain
        StackUpValidBlock(Box<BlockDocument>),
        /// Revert blocks in local blockchain
        RevertBlocks(Vec<BlockDocument>),
        /// Receive new valid pending document
        NewValidPendingDoc(UserDocumentDUBP),
        /// Receive new refused pending document
        RefusedPendingDoc(UserDocumentDUBP),
        /// Receive new refused pending block
        RefusedBlock(Blockstamp),
    }