Adds default config for assets pallet (#3637)

Step in https://github.com/paritytech/polkadot-sdk/issues/171
This commit is contained in:
gupnik
2024-03-12 10:12:58 +05:30
committed by GitHub
parent 7a644fa082
commit 7315a9b8fd
2 changed files with 43 additions and 16 deletions
+1 -15
View File
@@ -108,27 +108,13 @@ impl AssetsCallbackHandle {
}
}
#[derive_impl(crate::config_preludes::TestDefaultConfig)]
impl Config for Test {
type RuntimeEvent = RuntimeEvent;
type Balance = u64;
type AssetId = u32;
type AssetIdParameter = u32;
type Currency = Balances;
type CreateOrigin = AsEnsureOriginWithArg<frame_system::EnsureSigned<u64>>;
type ForceOrigin = frame_system::EnsureRoot<u64>;
type AssetDeposit = ConstU64<1>;
type AssetAccountDeposit = ConstU64<10>;
type MetadataDepositBase = ConstU64<1>;
type MetadataDepositPerByte = ConstU64<1>;
type ApprovalDeposit = ConstU64<1>;
type StringLimit = ConstU32<50>;
type Freezer = TestFreezer;
type WeightInfo = ();
type CallbackHandle = AssetsCallbackHandle;
type Extra = ();
type RemoveItemsLimit = ConstU32<5>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = ();
}
use std::collections::HashMap;