Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions asset-registry/src/mock/para.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl orml_tokens::Config for Runtime {
type MaxReserves = ();
type MaxLocks = ConstU32<50>;
type DustRemovalWhitelist = Nothing;
type DustRemoval = ();
}

#[derive(scale_info::TypeInfo, Encode, Decode, Clone, Eq, PartialEq, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion currencies/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ where
Currency: PalletLockableCurrency<AccountId>,
T: Config,
{
type Moment = Moment;
type Moment = BlockNumberFor<T>;

fn set_lock(lock_id: LockIdentifier, who: &AccountId, amount: Self::Balance) -> DispatchResult {
Currency::set_lock(lock_id, who, amount, WithdrawReasons::all());
Expand Down
3 changes: 2 additions & 1 deletion currencies/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl<T: orml_tokens::Config> MutationHooks<T::AccountId, T::CurrencyId, T::Balan
where
T::AccountId: From<AccountId32>,
{
type OnDust = orml_tokens::TransferDust<T, DustAccount>;
type OnDust = ();
type OnSlash = ();
type PreDeposit = ();
type PostDeposit = ();
Expand All @@ -102,6 +102,7 @@ impl orml_tokens::Config for Runtime {
type MaxReserves = ConstU32<100_000>;
type ReserveIdentifier = ReserveIdentifier;
type DustRemovalWhitelist = Nothing;
type DustRemoval = ();
}

pub const NATIVE_CURRENCY_ID: CurrencyId = 1;
Expand Down
1 change: 1 addition & 0 deletions payments/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ impl orml_tokens::Config for Test {
type DustRemovalWhitelist = MockDustRemovalWhitelist;
type MaxReserves = ConstU32<2>;
type ReserveIdentifier = ReserveIdentifier;
type DustRemoval = ();
}

pub struct MockDisputeResolver;
Expand Down
1 change: 1 addition & 0 deletions tokens/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "p
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" }
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" }
paste = "1.0.12"

[features]
default = ["std"]
Expand Down
Loading