Skip to content
Snippets Groups Projects
Select Git revision
  • 06e775d6057b657d0806a0a2c066861484b2f940
  • master default protected
  • 270-parametrage-de-la-gtest
  • 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
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 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
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
41 results

shell.nix

Blame
  • lib.rs 10.48 KiB
    // Copyright 2021 Axiom-Team
    //
    // This file is part of Substrate-Libre-Currency.
    //
    // Substrate-Libre-Currency 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, version 3 of the License.
    //
    // Substrate-Libre-Currency 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 Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>.
    
    #![cfg_attr(not(feature = "std"), no_std)]
    // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
    #![recursion_limit = "256"]
    
    // Make the WASM binary available.
    #[cfg(feature = "std")]
    include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
    
    pub mod parameters;
    
    pub use self::parameters::*;
    pub use common_runtime::{
        constants::*, entities::*, handlers::*, AccountId, Address, Balance, BlockNumber,
        FullIdentificationOfImpl, GetCurrentEpochIndex, Hash, Header, IdtyIndex, Index, Signature,
    };
    pub use pallet_balances::Call as BalancesCall;
    pub use pallet_identity::{IdtyStatus, IdtyValue};
    pub use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
    use pallet_session::historical as session_historical;
    pub use pallet_timestamp::Call as TimestampCall;
    use pallet_transaction_payment::CurrencyAdapter;
    pub use pallet_universal_dividend;
    #[cfg(any(feature = "std", test))]
    pub use sp_runtime::BuildStorage;
    pub use sp_runtime::{KeyTypeId, Perbill, Permill};
    
    use common_runtime::IdtyNameValidatorImpl;
    use frame_support::traits::Contains;
    use frame_support::PalletId;
    use frame_system::EnsureRoot;
    use pallet_grandpa::fg_primitives;
    use pallet_grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList};
    use sp_api::impl_runtime_apis;
    use sp_core::OpaqueMetadata;
    use sp_runtime::traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, NumberFor, OpaqueKeys};
    use sp_runtime::{
        create_runtime_str, generic, impl_opaque_keys,
        transaction_validity::{TransactionSource, TransactionValidity},
        ApplyExtrinsicResult,
    };
    use sp_std::prelude::*;
    #[cfg(feature = "std")]
    use sp_version::NativeVersion;
    use sp_version::RuntimeVersion;
    
    // A few exports that help ease life for downstream crates.
    pub use frame_support::{
        construct_runtime, parameter_types,
        traits::{EqualPrivilegeOnly, KeyOwnerProofSystem, Randomness},
        weights::{
            constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
            Weight, WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial,
        },
        StorageValue,