mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 10:57:56 +00:00
Remove default hasher (#4739)
* remove default hasher from decl_storage! * fix decl_storage declarations
This commit is contained in:
@@ -454,22 +454,26 @@ decl_storage! {
|
||||
pub TotalIssuance get(fn total_issuance) build(|config: &GenesisConfig<T>| {
|
||||
let issuance = config.initial_balance * (config.endowed_accounts.len() as u32).into();
|
||||
config.assets.iter().map(|id| (id.clone(), issuance)).collect::<Vec<_>>()
|
||||
}): map T::AssetId => T::Balance;
|
||||
}): map hasher(blake2_256) T::AssetId => T::Balance;
|
||||
|
||||
/// The free balance of a given asset under an account.
|
||||
pub FreeBalance: double_map T::AssetId, hasher(twox_128) T::AccountId => T::Balance;
|
||||
pub FreeBalance:
|
||||
double_map hasher(blake2_256) T::AssetId, hasher(twox_128) T::AccountId => T::Balance;
|
||||
|
||||
/// The reserved balance of a given asset under an account.
|
||||
pub ReservedBalance: double_map T::AssetId, hasher(twox_128) T::AccountId => T::Balance;
|
||||
pub ReservedBalance:
|
||||
double_map hasher(blake2_256) T::AssetId, hasher(twox_128) T::AccountId => T::Balance;
|
||||
|
||||
/// Next available ID for user-created asset.
|
||||
pub NextAssetId get(fn next_asset_id) config(): T::AssetId;
|
||||
|
||||
/// Permission options for a given asset.
|
||||
pub Permissions get(fn get_permission): map T::AssetId => PermissionVersions<T::AccountId>;
|
||||
pub Permissions get(fn get_permission):
|
||||
map hasher(blake2_256) T::AssetId => PermissionVersions<T::AccountId>;
|
||||
|
||||
/// Any liquidity locks on some account balances.
|
||||
pub Locks get(fn locks): map T::AccountId => Vec<BalanceLock<T::Balance, T::BlockNumber>>;
|
||||
pub Locks get(fn locks):
|
||||
map hasher(blake2_256) T::AccountId => Vec<BalanceLock<T::Balance, T::BlockNumber>>;
|
||||
|
||||
/// The identity of the asset which is the one that is designated for the chain's staking system.
|
||||
pub StakingAssetId get(fn staking_asset_id) config(): T::AssetId;
|
||||
|
||||
Reference in New Issue
Block a user