Skip to content

Commit

Permalink
fix: add missing argo bridge configs to project codex pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
freakstatic committed Jun 3, 2024
1 parent 0f48abc commit b278c08
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runtime-modules/proposals/codex/src/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ frame_support::construct_runtime!(
Council: council::{Pallet, Call, Storage, Event<T>},
Storage: storage::{Pallet, Call, Storage, Event<T>},
Token: token::{Pallet, Call, Storage, Event<T>},
ArgoBridge: argo_bridge::{Pallet, Call, Storage, Event<T>}
}
);

Expand Down Expand Up @@ -348,6 +349,9 @@ parameter_types! {
pub const MinDistributionBucketsPerBag: u32 = 3;
pub const MaxDistributionBucketsPerBag: u32 = 10;
pub const MaxNumberOfOperatorsPerDistributionBucket: u32 = 5;
/// constants for argo_bridge::config
pub const MaxPauserAccounts: u32 = 10;
pub const DefaultBridgingFee: Balance = 1;
}

impl storage::Config for Test {
Expand Down Expand Up @@ -395,6 +399,13 @@ impl token::Config for Test {
type MaxOutputs = MaxOutputs;
}

impl argo_bridge::Config for Test {
type RuntimeEvent = RuntimeEvent;
type MaxPauserAccounts = MaxPauserAccounts;
type WeightInfo = argo_bridge::weights::SubstrateWeight<Test>;
type DefaultBridgingFee = DefaultBridgingFee;
}

pub struct Wg;
impl common::working_group::WorkingGroupBudgetHandler<u64, u64> for Wg {
fn get_budget() -> u64 {
Expand Down

0 comments on commit b278c08

Please sign in to comment.