Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • nodes/rust/duniter-v2s
  • llaq/lc-core-substrate
  • pini-gh/duniter-v2s
  • vincentux/duniter-v2s
  • mildred/duniter-v2s
  • d0p1/duniter-v2s
  • bgallois/duniter-v2s
  • Nicolas80/duniter-v2s
8 results
Show changes
Showing
with 79 additions and 81 deletions
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
#[macro_export] #[macro_export]
macro_rules! runtime_apis { macro_rules! runtime_apis {
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use crate::{Balance, BlockNumber}; use crate::{Balance, BlockNumber};
use frame_support::weights::constants::WEIGHT_PER_MICROS; use frame_support::weights::constants::WEIGHT_PER_MICROS;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use super::AccountId; use super::AccountId;
use frame_support::pallet_prelude::*; use frame_support::pallet_prelude::*;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
pub use frame_support::weights::{Weight, WeightToFee}; pub use frame_support::weights::{Weight, WeightToFee};
use sp_arithmetic::traits::{BaseArithmetic, One, Unsigned}; use sp_arithmetic::traits::{BaseArithmetic, One, Unsigned};
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use super::entities::*; use super::entities::*;
use super::{AccountId, IdtyIndex}; use super::{AccountId, IdtyIndex};
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
#[macro_export] #[macro_export]
macro_rules! pallets_config { macro_rules! pallets_config {
...@@ -444,7 +444,7 @@ macro_rules! pallets_config { ...@@ -444,7 +444,7 @@ macro_rules! pallets_config {
} }
impl pallet_membership::Config<frame_support::instances::Instance1> for Runtime { impl pallet_membership::Config<frame_support::instances::Instance1> for Runtime {
type IsIdtyAllowedToClaimMembership = Wot; type IsIdtyAllowedToClaimMembership = Wot;
type IsIdtyAllowedToRenewMembership = Wot; type IsIdtyAllowedToRenewMembership = Wot;
type IsIdtyAllowedToRequestMembership = Wot; type IsIdtyAllowedToRequestMembership = Wot;
type Event = Event; type Event = Event;
...@@ -454,7 +454,6 @@ macro_rules! pallets_config { ...@@ -454,7 +454,6 @@ macro_rules! pallets_config {
type MetaData = (); type MetaData = ();
type OnEvent = OnMembershipEventHandler<Wot, Runtime>; type OnEvent = OnMembershipEventHandler<Wot, Runtime>;
type PendingMembershipPeriod = PendingMembershipPeriod; type PendingMembershipPeriod = PendingMembershipPeriod;
type RevocationPeriod = frame_support::traits::ConstU32<0>;
} }
impl pallet_certification::Config<Instance1> for Runtime { impl pallet_certification::Config<Instance1> for Runtime {
...@@ -481,7 +480,7 @@ macro_rules! pallets_config { ...@@ -481,7 +480,7 @@ macro_rules! pallets_config {
} }
impl pallet_membership::Config<Instance2> for Runtime { impl pallet_membership::Config<Instance2> for Runtime {
type IsIdtyAllowedToClaimMembership = SmithsSubWot; type IsIdtyAllowedToClaimMembership = SmithsSubWot;
type IsIdtyAllowedToRenewMembership = SmithsSubWot; type IsIdtyAllowedToRenewMembership = SmithsSubWot;
type IsIdtyAllowedToRequestMembership = SmithsSubWot; type IsIdtyAllowedToRequestMembership = SmithsSubWot;
type Event = Event; type Event = Event;
...@@ -491,7 +490,6 @@ macro_rules! pallets_config { ...@@ -491,7 +490,6 @@ macro_rules! pallets_config {
type MetaData = SmithsMembershipMetaData<opaque::SessionKeysWrapper>; type MetaData = SmithsMembershipMetaData<opaque::SessionKeysWrapper>;
type OnEvent = OnSmithMembershipEventHandler<SmithsSubWot, Runtime>; type OnEvent = OnSmithMembershipEventHandler<SmithsSubWot, Runtime>;
type PendingMembershipPeriod = SmithPendingMembershipPeriod; type PendingMembershipPeriod = SmithPendingMembershipPeriod;
type RevocationPeriod = frame_support::traits::ConstU32<0>;
} }
impl pallet_certification::Config<Instance2> for Runtime { impl pallet_certification::Config<Instance2> for Runtime {
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use crate::{entities::IdtyData, AccountId, IdtyIndex}; use crate::{entities::IdtyData, AccountId, IdtyIndex};
use core::marker::PhantomData; use core::marker::PhantomData;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
pub mod frame_system; pub mod frame_system;
pub mod pallet_babe; pub mod pallet_babe;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
//! Manual weights for the GRANDPA Pallet in duniter runtimes //! Manual weights for the GRANDPA Pallet in duniter runtimes
//! This file was not auto-generated. //! This file was not auto-generated.
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
//! Manual weights for the GRANDPA Pallet in duniter runtimes //! Manual weights for the GRANDPA Pallet in duniter runtimes
//! This file was not auto-generated. //! This file was not auto-generated.
......
...@@ -5,7 +5,7 @@ branch = 'duniter-substrate-v0.9.26' ...@@ -5,7 +5,7 @@ branch = 'duniter-substrate-v0.9.26'
[package] [package]
authors = ['Axiom-Team Developers <https://axiom-team.fr>'] authors = ['Axiom-Team Developers <https://axiom-team.fr>']
edition = "2021" edition = "2021"
homepage = 'https://substrate.dev' homepage = 'https://duniter.org'
license = 'AGPL-3.0' license = 'AGPL-3.0'
name = 'g1-runtime' name = 'g1-runtime'
repository = 'https://git.duniter.org/nodes/rust/duniter-v2s' repository = 'https://git.duniter.org/nodes/rust/duniter-v2s'
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use substrate_wasm_builder::WasmBuilder; use substrate_wasm_builder::WasmBuilder;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256. // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use crate::*; use crate::*;
use common_runtime::constants::*; use common_runtime::constants::*;
...@@ -28,7 +28,7 @@ parameter_types! { ...@@ -28,7 +28,7 @@ parameter_types! {
pub BlockWeights: frame_system::limits::BlockWeights = block_weights(2 * WEIGHT_PER_SECOND, NORMAL_DISPATCH_RATIO); pub BlockWeights: frame_system::limits::BlockWeights = block_weights(2 * WEIGHT_PER_SECOND, NORMAL_DISPATCH_RATIO);
pub BlockLength: frame_system::limits::BlockLength = frame_system::limits::BlockLength pub BlockLength: frame_system::limits::BlockLength = frame_system::limits::BlockLength
::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); ::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO);
pub const SS58Prefix: u16 = 3682; pub const SS58Prefix: u16 = 4450;
} }
/*************/ /*************/
......
...@@ -5,7 +5,7 @@ branch = 'duniter-substrate-v0.9.26' ...@@ -5,7 +5,7 @@ branch = 'duniter-substrate-v0.9.26'
[package] [package]
authors = ['Axiom-Team Developers <https://axiom-team.fr>'] authors = ['Axiom-Team Developers <https://axiom-team.fr>']
edition = "2021" edition = "2021"
homepage = 'https://substrate.dev' homepage = 'https://duniter.org'
license = 'AGPL-3.0' license = 'AGPL-3.0'
name = 'gdev-runtime' name = 'gdev-runtime'
repository = 'https://git.duniter.org/nodes/rust/duniter-v2s' repository = 'https://git.duniter.org/nodes/rust/duniter-v2s'
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use substrate_wasm_builder::WasmBuilder; use substrate_wasm_builder::WasmBuilder;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256. // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
use crate::*; use crate::*;
use common_runtime::constants::*; use common_runtime::constants::*;
......
// Copyright 2021 Axiom-Team // Copyright 2021 Axiom-Team
// //
// This file is part of Substrate-Libre-Currency. // This file is part of Duniter-v2S.
// //
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify // Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by // it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License. // the Free Software Foundation, version 3 of the License.
// //
// Substrate-Libre-Currency is distributed in the hope that it will be useful, // Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // 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/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
#![allow(dead_code, unused_imports)] // TODO remove this line when we will have more tests #![allow(dead_code, unused_imports)] // TODO remove this line when we will have more tests
...@@ -395,7 +395,7 @@ pub fn make_secondary_vrf_pre_digest( ...@@ -395,7 +395,7 @@ pub fn make_secondary_vrf_pre_digest(
fn clique_wot( fn clique_wot(
initial_identities_len: usize, initial_identities_len: usize,
cert_validity_period: common_runtime::BlockNumber, cert_validity_period: common_runtime::BlockNumber,
) -> BTreeMap<IdtyIndex, BTreeMap<IdtyIndex, common_runtime::BlockNumber>> { ) -> BTreeMap<IdtyIndex, BTreeMap<IdtyIndex, Option<common_runtime::BlockNumber>>> {
let mut certs_by_issuer = BTreeMap::new(); let mut certs_by_issuer = BTreeMap::new();
for i in 1..=initial_identities_len { for i in 1..=initial_identities_len {
certs_by_issuer.insert( certs_by_issuer.insert(
...@@ -403,7 +403,7 @@ fn clique_wot( ...@@ -403,7 +403,7 @@ fn clique_wot(
(1..=initial_identities_len) (1..=initial_identities_len)
.filter_map(|j| { .filter_map(|j| {
if i != j { if i != j {
Some((j as IdtyIndex, cert_validity_period)) Some((j as IdtyIndex, Some(cert_validity_period)))
} else { } else {
None None
} }
......