Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor fungibles impl #923

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
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