diff --git a/pallet/account-migration/src/lib.rs b/pallet/account-migration/src/lib.rs index b2adaa6f6..e472db15e 100644 --- a/pallet/account-migration/src/lib.rs +++ b/pallet/account-migration/src/lib.rs @@ -136,7 +136,6 @@ pub mod pallet { /// /// #[pallet::storage] - #[pallet::getter(fn account_of)] pub type Accounts = StorageMap<_, Blake2_128Concat, AccountId32, AccountInfo>>; @@ -144,24 +143,20 @@ pub mod pallet { /// /// https://github.dev/paritytech/substrate/blob/polkadot-v0.9.30/frame/assets/src/types.rs#L115 #[pallet::storage] - #[pallet::getter(fn kton_account_of)] pub type KtonAccounts = StorageMap<_, Blake2_128Concat, AccountId32, AssetAccount>; /// [`darwinia_deposit::Deposits`] data. #[pallet::storage] #[pallet::unbounded] - #[pallet::getter(fn deposit_of)] pub type Deposits = StorageMap<_, Blake2_128Concat, AccountId32, Vec>; /// Old ledger data. #[pallet::storage] - #[pallet::getter(fn ledger_of)] pub type Ledgers = StorageMap<_, Blake2_128Concat, AccountId32, OldLedger>; /// Multisig migration caches. #[pallet::storage] #[pallet::unbounded] - #[pallet::getter(fn multisig_of)] pub type Multisigs = StorageMap<_, Identity, AccountId32, MultisigMigrationDetail>; #[pallet::pallet] diff --git a/pallet/asset-limit/src/lib.rs b/pallet/asset-limit/src/lib.rs index cb02a9a5a..01b000293 100644 --- a/pallet/asset-limit/src/lib.rs +++ b/pallet/asset-limit/src/lib.rs @@ -57,7 +57,6 @@ pub mod pallet { /// Stores the asset limit for foreign assets. #[pallet::storage] - #[pallet::getter(fn foreign_asset_limit)] pub type ForeignAssetLimit = StorageMap<_, Twox128, T::ForeignAssetType, u128>; #[pallet::call] diff --git a/pallet/deposit/src/lib.rs b/pallet/deposit/src/lib.rs index f3942926c..b7bde0e72 100644 --- a/pallet/deposit/src/lib.rs +++ b/pallet/deposit/src/lib.rs @@ -102,7 +102,6 @@ pub mod pallet { /// /// The items must be sorted by the id. #[pallet::storage] - #[pallet::getter(fn deposit_of)] pub type Deposits = StorageMap<_, Blake2_128Concat, T::AccountId, BoundedVec>>; @@ -111,13 +110,11 @@ pub mod pallet { /// The first value is the deposits that failed to migrate, /// the second value is the type of failure. #[pallet::storage] - #[pallet::getter(fn migration_failure_of)] pub type MigrationFailures = StorageMap<_, Blake2_128Concat, T::AccountId, (BoundedVec>, u8)>; // Deposit contract address. #[pallet::storage] - #[pallet::getter(fn deposit_contract)] pub type DepositContract = StorageValue<_, T::AccountId>; #[pallet::pallet] diff --git a/pallet/staking/src/lib.rs b/pallet/staking/src/lib.rs index 5be8087e1..9a651f199 100644 --- a/pallet/staking/src/lib.rs +++ b/pallet/staking/src/lib.rs @@ -208,49 +208,40 @@ pub mod pallet { /// All staking ledgers. #[pallet::storage] - #[pallet::getter(fn ledger_of)] pub type Ledgers = StorageMap<_, Blake2_128Concat, T::AccountId, Ledger>; /// The ideal number of active collators. #[pallet::storage] - #[pallet::getter(fn collator_count)] pub type CollatorCount = StorageValue<_, u32, ValueQuery>; /// Number of blocks authored by the collator within current session. #[pallet::storage] #[pallet::unbounded] - #[pallet::getter(fn authored_block_count)] pub type AuthoredBlockCount = StorageValue<_, (BlockNumberFor, BTreeMap>), ValueQuery>; /// Unissued reward to Treasury. #[pallet::storage] - #[pallet::getter(fn unissued_reward)] pub type UnissuedReward = StorageValue<_, Balance, ValueQuery>; /// All outstanding rewards since the last payment. #[pallet::storage] #[pallet::unbounded] - #[pallet::getter(fn pending_reward_of)] pub type PendingRewards = StorageMap<_, Twox64Concat, T::AccountId, Balance>; /// Active session's start-time. #[pallet::storage] - #[pallet::getter(fn session_start_time)] pub type SessionStartTime = StorageValue<_, Moment, ValueQuery>; /// Elapsed time. #[pallet::storage] - #[pallet::getter(fn elapsed_time)] pub type ElapsedTime = StorageValue<_, Moment, ValueQuery>; /// RING staking contract address. #[pallet::storage] - #[pallet::getter(fn ring_staking_contract)] pub type RingStakingContract = StorageValue<_, T::AccountId>; /// KTON staking contract address. #[pallet::storage] - #[pallet::getter(fn kton_staking_contract)] pub type KtonStakingContract = StorageValue<_, T::AccountId>; #[derive(DefaultNoBound)]