Skip to content

Commit

Permalink
merged with main changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Oct 3, 2023
2 parents 0030f12 + 86c61b1 commit 94385b6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runtime/amplitude/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ impl Contains<RuntimeCall> for BaseFilter {
// These modules are all allowed to be called by transactions:
RuntimeCall::Bounties(_) |
RuntimeCall::ChildBounties(_) |
RuntimeCall::ClientsInfo(_) |
RuntimeCall::Treasury(_) |
RuntimeCall::Tokens(_) |
RuntimeCall::Currencies(_) |
Expand Down Expand Up @@ -1193,6 +1194,13 @@ impl replace::Config for Runtime {
type WeightInfo = replace::SubstrateWeight<Runtime>;
}

impl clients_info::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = clients_info::SubstrateWeight<Runtime>;
type MaxNameLength = ConstU32<255>;
type MaxUriLength = ConstU32<255>;
}

parameter_types! {
pub const FarmingKeeperPalletId: PalletId = PalletId(*b"am/fmkpr");
pub const FarmingRewardIssuerPalletId: PalletId = PalletId(*b"am/fmrir");
Expand Down Expand Up @@ -1281,6 +1289,7 @@ construct_runtime!(
VaultRegistry: vault_registry::{Pallet, Call, Config<T>, Storage, Event<T>, ValidateUnsigned} = 69,
VaultRewards: reward::{Pallet, Call, Storage, Event<T>} = 70,
VaultStaking: staking::{Pallet, Storage, Event<T>} = 71,
ClientsInfo: clients_info::{Pallet, Call, Storage, Event<T>} = 72,

Farming: farming::{Pallet, Call, Storage, Event<T>} = 90,

Expand Down
9 changes: 9 additions & 0 deletions runtime/foucoco/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ impl Contains<RuntimeCall> for BaseFilter {
// These modules are all allowed to be called by transactions:
RuntimeCall::Bounties(_) |
RuntimeCall::ChildBounties(_) |
RuntimeCall::ClientsInfo(_) |
RuntimeCall::Treasury(_) |
RuntimeCall::Tokens(_) |
RuntimeCall::Currencies(_) |
Expand Down Expand Up @@ -1502,6 +1503,13 @@ impl replace::Config for Runtime {
type WeightInfo = replace::SubstrateWeight<Runtime>;
}

impl clients_info::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = clients_info::SubstrateWeight<Runtime>;
type MaxNameLength = ConstU32<255>;
type MaxUriLength = ConstU32<255>;
}

impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime
where
RuntimeCall: From<C>,
Expand Down Expand Up @@ -1582,6 +1590,7 @@ construct_runtime!(
VaultRegistry: vault_registry::{Pallet, Call, Config<T>, Storage, Event<T>, ValidateUnsigned} = 69,
VaultRewards: reward::{Pallet, Call, Storage, Event<T>} = 70,
VaultStaking: staking::{Pallet, Storage, Event<T>} = 71,
ClientsInfo: clients_info::{Pallet, Call, Storage, Event<T>} = 72,

TokenAllowance: orml_currencies_allowance_extension::{Pallet, Storage, Call, Event<T>} = 80,

Expand Down

0 comments on commit 94385b6

Please sign in to comment.