From 29dde66f61918c130e007ab20875c7197eb6dd44 Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 30 Aug 2021 17:22:02 +0800 Subject: [PATCH 1/6] chore(asset-index): clean outdated todos --- pallets/asset-index/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pallets/asset-index/src/lib.rs b/pallets/asset-index/src/lib.rs index 591162ab86..a8a67b0906 100644 --- a/pallets/asset-index/src/lib.rs +++ b/pallets/asset-index/src/lib.rs @@ -342,7 +342,7 @@ pub mod pallet { /// into the sovereign account of either: /// - the given `recipient` if provided /// - the caller's account if `recipient` is `None` - #[pallet::weight(T::WeightInfo::remove_asset())] // TODO: Set weights + #[pallet::weight(T::WeightInfo::remove_asset())] pub fn remove_asset( origin: OriginFor, asset_id: T::AssetId, @@ -479,7 +479,7 @@ pub mod pallet { /// /// The distribution of the underlying assets will be equivalent to the /// ratio of the liquid assets in the index. - #[pallet::weight(T::WeightInfo::withdraw())] // TODO: Set weights + #[pallet::weight(T::WeightInfo::withdraw())] #[transactional] pub fn withdraw(origin: OriginFor, amount: T::Balance) -> DispatchResultWithPostInfo { let caller = ensure_signed(origin)?; @@ -564,7 +564,7 @@ pub mod pallet { /// as soon as the aforementioned conditions are met, regardless of /// whether the other `AssetWithdrawal`s in the same `PendingWithdrawal` set /// can also be closed successfully. - #[pallet::weight(T::WeightInfo::complete_withdraw())] // TODO: Set weights + #[pallet::weight(T::WeightInfo::complete_withdraw())] pub fn complete_withdraw(origin: OriginFor) -> DispatchResultWithPostInfo { let caller = ensure_signed(origin)?; From 8190137b3b3d0db303e58edf73cdd2a53b3046bf Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 30 Aug 2021 17:32:01 +0800 Subject: [PATCH 2/6] chore(runtime): move EnsureApprovedByCommittee to crate common --- runtime/common/src/lib.rs | 1 + runtime/common/src/types.rs | 9 +++++++++ runtime/dev/src/lib.rs | 12 +++--------- runtime/kusama/src/lib.rs | 12 +++--------- runtime/polkadot/src/lib.rs | 12 +++--------- 5 files changed, 19 insertions(+), 27 deletions(-) create mode 100644 runtime/common/src/types.rs diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs index 9587455dd2..5937bee8db 100644 --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -5,4 +5,5 @@ #![cfg_attr(not(feature = "std"), no_std)] pub mod constants; pub mod traits; +pub mod types; pub mod weights; diff --git a/runtime/common/src/types.rs b/runtime/common/src/types.rs new file mode 100644 index 0000000000..5c95efc8a5 --- /dev/null +++ b/runtime/common/src/types.rs @@ -0,0 +1,9 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +/// Origin that approved by committee +pub type EnsureApprovedByCommittee = frame_system::EnsureOneOf< + AccountId, + frame_system::EnsureRoot, + pallet_committee::EnsureApprovedByCommittee, +>; diff --git a/runtime/dev/src/lib.rs b/runtime/dev/src/lib.rs index 58a1341694..4c6c6cc9a4 100644 --- a/runtime/dev/src/lib.rs +++ b/runtime/dev/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, weights}; +pub use pint_runtime_common::{constants::*, types::EnsureApprovedByCommittee, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -384,7 +384,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = EnsureApprovedByCommittee; + type UpdateOrigin = EnsureApprovedByCommittee; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -416,12 +416,6 @@ impl pallet_saft_registry::Config for Runtime { type WeightInfo = weights::pallet_saft_registry::WeightInfo; } -type EnsureApprovedByCommittee = frame_system::EnsureOneOf< - AccountId, - frame_system::EnsureRoot, - pallet_committee::EnsureApprovedByCommittee, ->; - impl pallet_committee::Config for Runtime { type Origin = Origin; type Action = Call; @@ -431,7 +425,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; + type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 5b4cd3eb4d..ef450eeee8 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, weights}; +pub use pint_runtime_common::{constants::*, types::EnsureApprovedByCommittee, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -382,7 +382,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = EnsureApprovedByCommittee; + type UpdateOrigin = EnsureApprovedByCommittee; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -414,12 +414,6 @@ impl pallet_saft_registry::Config for Runtime { type WeightInfo = weights::pallet_saft_registry::WeightInfo; } -type EnsureApprovedByCommittee = frame_system::EnsureOneOf< - AccountId, - frame_system::EnsureRoot, - pallet_committee::EnsureApprovedByCommittee, ->; - impl pallet_committee::Config for Runtime { type Origin = Origin; type Action = Call; @@ -429,7 +423,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; + type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 4a90d3c8b0..029621c55e 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, weights}; +pub use pint_runtime_common::{constants::*, types::EnsureApprovedByCommittee, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -384,7 +384,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = EnsureApprovedByCommittee; + type UpdateOrigin = EnsureApprovedByCommittee; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -416,12 +416,6 @@ impl pallet_saft_registry::Config for Runtime { type WeightInfo = weights::pallet_saft_registry::WeightInfo; } -type EnsureApprovedByCommittee = frame_system::EnsureOneOf< - AccountId, - frame_system::EnsureRoot, - pallet_committee::EnsureApprovedByCommittee, ->; - impl pallet_committee::Config for Runtime { type Origin = Origin; type Action = Call; @@ -431,7 +425,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; + type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } From 2b2a4c8c6e0833dbbd1d8f3f11c13a0b1fe78d7e Mon Sep 17 00:00:00 2001 From: clearloop Date: Mon, 30 Aug 2021 17:39:53 +0800 Subject: [PATCH 3/6] feat(runtime): use committee origin as admin origin in asset-index --- runtime/polkadot/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 029621c55e..0b072967ac 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -456,7 +456,7 @@ impl pallet_chainlink_feed::Config for Runtime { impl pallet_asset_index::Config for Runtime { // Using signed as the admin origin for testing now - type AdminOrigin = frame_system::EnsureSigned; + type AdminOrigin = EnsureApprovedByCommittee; type IndexToken = Balances; type Balance = Balance; type LockupPeriod = LockupPeriod; From 69f00456b14b5de8f0309af56813fd470a3a2a04 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 31 Aug 2021 17:50:32 +0800 Subject: [PATCH 4/6] chore(runtimes): rename committeeOrigin to GoveranceOrigin --- runtime/common/src/types.rs | 2 +- runtime/dev/src/lib.rs | 6 +++--- runtime/kusama/src/lib.rs | 6 +++--- runtime/polkadot/src/lib.rs | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/runtime/common/src/types.rs b/runtime/common/src/types.rs index 5c95efc8a5..d78f8a16cb 100644 --- a/runtime/common/src/types.rs +++ b/runtime/common/src/types.rs @@ -2,7 +2,7 @@ // SPDX-License-Identifier: LGPL-3.0-only /// Origin that approved by committee -pub type EnsureApprovedByCommittee = frame_system::EnsureOneOf< +pub type GovernanceOrigin = frame_system::EnsureOneOf< AccountId, frame_system::EnsureRoot, pallet_committee::EnsureApprovedByCommittee, diff --git a/runtime/dev/src/lib.rs b/runtime/dev/src/lib.rs index 4c6c6cc9a4..17ccbfd9a7 100644 --- a/runtime/dev/src/lib.rs +++ b/runtime/dev/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, types::EnsureApprovedByCommittee, weights}; +pub use pint_runtime_common::{constants::*, types::GoveranceOrigin, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -384,7 +384,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = EnsureApprovedByCommittee; + type UpdateOrigin = GoveranceOrigin; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -425,7 +425,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; + type ApprovedByCommitteeOrigin = GoveranceOrigin; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index ef450eeee8..eb67a4e743 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, types::EnsureApprovedByCommittee, weights}; +pub use pint_runtime_common::{constants::*, types::GoveranceOrigin, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -382,7 +382,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = EnsureApprovedByCommittee; + type UpdateOrigin = GoveranceOrigin; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -423,7 +423,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; + type ApprovedByCommitteeOrigin = GoveranceOrigin; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 0b072967ac..28d46d6bbe 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, types::EnsureApprovedByCommittee, weights}; +pub use pint_runtime_common::{constants::*, types::GoveranceOrigin, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -384,7 +384,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = EnsureApprovedByCommittee; + type UpdateOrigin = GoveranceOrigin; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -425,7 +425,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = EnsureApprovedByCommittee; + type ApprovedByCommitteeOrigin = GoveranceOrigin; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } @@ -456,7 +456,7 @@ impl pallet_chainlink_feed::Config for Runtime { impl pallet_asset_index::Config for Runtime { // Using signed as the admin origin for testing now - type AdminOrigin = EnsureApprovedByCommittee; + type AdminOrigin = GoveranceOrigin; type IndexToken = Balances; type Balance = Balance; type LockupPeriod = LockupPeriod; From 9b99f297439fe3e7e52e5d8204a5b77c39c23039 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 31 Aug 2021 18:10:48 +0800 Subject: [PATCH 5/6] chore(runtime): use GoveranceOrigin in pallet saft-registry --- runtime/dev/src/lib.rs | 3 +-- runtime/kusama/src/lib.rs | 3 +-- runtime/polkadot/src/lib.rs | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/runtime/dev/src/lib.rs b/runtime/dev/src/lib.rs index 17ccbfd9a7..81b3eb8b64 100644 --- a/runtime/dev/src/lib.rs +++ b/runtime/dev/src/lib.rs @@ -407,8 +407,7 @@ impl pallet_local_treasury::Config for Runtime { } impl pallet_saft_registry::Config for Runtime { - // Using signed as the admin origin for now - type AdminOrigin = frame_system::EnsureSigned; + type AdminOrigin = GoveranceOrigin; type AssetRecorder = AssetIndex; type Balance = Balance; type AssetId = AssetId; diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index eb67a4e743..87531f7242 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -405,8 +405,7 @@ impl pallet_local_treasury::Config for Runtime { } impl pallet_saft_registry::Config for Runtime { - // Using signed as the admin origin for now - type AdminOrigin = frame_system::EnsureSigned; + type AdminOrigin = GoveranceOrigin; type AssetRecorder = AssetIndex; type Balance = Balance; type AssetId = AssetId; diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 28d46d6bbe..972d7d79fb 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -407,8 +407,7 @@ impl pallet_local_treasury::Config for Runtime { } impl pallet_saft_registry::Config for Runtime { - // Using signed as the admin origin for now - type AdminOrigin = frame_system::EnsureSigned; + type AdminOrigin = GoveranceOrigin; type AssetRecorder = AssetIndex; type Balance = Balance; type AssetId = AssetId; @@ -455,7 +454,6 @@ impl pallet_chainlink_feed::Config for Runtime { } impl pallet_asset_index::Config for Runtime { - // Using signed as the admin origin for testing now type AdminOrigin = GoveranceOrigin; type IndexToken = Balances; type Balance = Balance; From 874b55f5110522ce5a155f1059fc57cff6cecdd4 Mon Sep 17 00:00:00 2001 From: clearloop Date: Tue, 31 Aug 2021 18:23:25 +0800 Subject: [PATCH 6/6] chore(runtime): fix the importing type names --- runtime/dev/src/lib.rs | 9 ++++----- runtime/kusama/src/lib.rs | 8 ++++---- runtime/polkadot/src/lib.rs | 10 +++++----- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/runtime/dev/src/lib.rs b/runtime/dev/src/lib.rs index 81b3eb8b64..ae3a4aa9ea 100644 --- a/runtime/dev/src/lib.rs +++ b/runtime/dev/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, types::GoveranceOrigin, weights}; +pub use pint_runtime_common::{constants::*, types::GovernanceOrigin, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -384,7 +384,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = GoveranceOrigin; + type UpdateOrigin = GovernanceOrigin; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -407,7 +407,7 @@ impl pallet_local_treasury::Config for Runtime { } impl pallet_saft_registry::Config for Runtime { - type AdminOrigin = GoveranceOrigin; + type AdminOrigin = GovernanceOrigin; type AssetRecorder = AssetIndex; type Balance = Balance; type AssetId = AssetId; @@ -424,13 +424,12 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = GoveranceOrigin; + type ApprovedByCommitteeOrigin = GovernanceOrigin; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } impl pallet_price_feed::Config for Runtime { - // Using root as the admin origin for now type AdminOrigin = frame_system::EnsureRoot; type SelfAssetId = PINTAssetId; type AssetId = AssetId; diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 87531f7242..e7d6ed9cf1 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, types::GoveranceOrigin, weights}; +pub use pint_runtime_common::{constants::*, types::GovernanceOrigin, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -382,7 +382,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = GoveranceOrigin; + type UpdateOrigin = GovernanceOrigin; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -405,7 +405,7 @@ impl pallet_local_treasury::Config for Runtime { } impl pallet_saft_registry::Config for Runtime { - type AdminOrigin = GoveranceOrigin; + type AdminOrigin = GovernanceOrigin; type AssetRecorder = AssetIndex; type Balance = Balance; type AssetId = AssetId; @@ -422,7 +422,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = GoveranceOrigin; + type ApprovedByCommitteeOrigin = GovernanceOrigin; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 972d7d79fb..44c860ae7e 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -56,7 +56,7 @@ use xcm_executor::XcmExecutor; use frame_support::traits::Everything; use pallet_committee::EnsureMember; -pub use pint_runtime_common::{constants::*, types::GoveranceOrigin, weights}; +pub use pint_runtime_common::{constants::*, types::GovernanceOrigin, weights}; use primitives::traits::MultiAssetRegistry; pub use primitives::*; use xcm_calls::{ @@ -384,7 +384,7 @@ impl pallet_session::Config for Runtime { impl pallet_collator_selection::Config for Runtime { type Event = Event; type Currency = Balances; - type UpdateOrigin = GoveranceOrigin; + type UpdateOrigin = GovernanceOrigin; type PotId = PotId; type MaxCandidates = MaxCandidates; type MinCandidates = MinCandidates; @@ -407,7 +407,7 @@ impl pallet_local_treasury::Config for Runtime { } impl pallet_saft_registry::Config for Runtime { - type AdminOrigin = GoveranceOrigin; + type AdminOrigin = GovernanceOrigin; type AssetRecorder = AssetIndex; type Balance = Balance; type AssetId = AssetId; @@ -424,7 +424,7 @@ impl pallet_committee::Config for Runtime { type MinCouncilVotes = MinCouncilVotes; type ProposalSubmissionOrigin = EnsureSigned; type ProposalExecutionOrigin = EnsureMember; - type ApprovedByCommitteeOrigin = GoveranceOrigin; + type ApprovedByCommitteeOrigin = GovernanceOrigin; type Event = Event; type WeightInfo = weights::pallet_committee::WeightInfo; } @@ -454,7 +454,7 @@ impl pallet_chainlink_feed::Config for Runtime { } impl pallet_asset_index::Config for Runtime { - type AdminOrigin = GoveranceOrigin; + type AdminOrigin = GovernanceOrigin; type IndexToken = Balances; type Balance = Balance; type LockupPeriod = LockupPeriod;