diff --git a/Cargo.lock b/Cargo.lock index d28249203c..7ac12a90e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6637,7 +6637,6 @@ dependencies = [ "orml-traits", "pallet-balances", "pallet-collator-selection", - "pallet-restricted-tokens", "pallet-rewards", "pallet-session", "parity-scale-codec", diff --git a/pallets/block-rewards/Cargo.toml b/pallets/block-rewards/Cargo.toml index 65e965abd3..c5a04b5fa1 100644 --- a/pallets/block-rewards/Cargo.toml +++ b/pallets/block-rewards/Cargo.toml @@ -36,7 +36,6 @@ cfg-mocks = { workspace = true, default-features = true } orml-tokens = { workspace = true, default-features = true } orml-traits = { workspace = true, default-features = true } pallet-balances = { workspace = true, default-features = true } -pallet-restricted-tokens = { workspace = true, default-features = true } pallet-rewards = { workspace = true, default-features = true } sp-core = { workspace = true, default-features = true } sp-io = { workspace = true, default-features = true } diff --git a/pallets/block-rewards/src/mock.rs b/pallets/block-rewards/src/mock.rs index 5d46c5fef9..be3ee20db4 100644 --- a/pallets/block-rewards/src/mock.rs +++ b/pallets/block-rewards/src/mock.rs @@ -29,8 +29,7 @@ frame_support::construct_runtime!( pub enum Test { System: frame_system, Balances: pallet_balances, - Tokens: pallet_restricted_tokens, - OrmlTokens: orml_tokens, + Tokens: orml_tokens, Rewards: pallet_rewards::, Session: pallet_session, MockTime: cfg_mocks::pallet_mock_time, @@ -120,30 +119,6 @@ impl orml_tokens::Config for Test { type WeightInfo = (); } -impl pallet_restricted_tokens::Config for Test { - type Balance = Balance; - type CurrencyId = CurrencyId; - type Fungibles = OrmlTokens; - type NativeFungible = Balances; - type NativeToken = NativeToken; - type PreCurrency = cfg_traits::Always; - type PreExtrTransfer = cfg_traits::Always; - type PreFungibleInspect = pallet_restricted_tokens::FungibleInspectPassthrough; - type PreFungibleInspectHold = cfg_traits::Always; - type PreFungibleMutate = cfg_traits::Always; - type PreFungibleMutateHold = cfg_traits::Always; - type PreFungibleTransfer = cfg_traits::Always; - type PreFungiblesInspect = pallet_restricted_tokens::FungiblesInspectPassthrough; - type PreFungiblesInspectHold = cfg_traits::Always; - type PreFungiblesMutate = cfg_traits::Always; - type PreFungiblesMutateHold = cfg_traits::Always; - type PreFungiblesTransfer = cfg_traits::Always; - type PreFungiblesUnbalanced = cfg_traits::Always; - type PreReservableCurrency = cfg_traits::Always; - type RuntimeEvent = RuntimeEvent; - type WeightInfo = (); -} - frame_support::parameter_types! { pub const RewardsPalletId: PalletId = cfg_types::ids::BLOCK_REWARDS_PALLET_ID; pub const NativeToken: CurrencyId = CurrencyId::Native;