Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Dec 18, 2024
1 parent 153dcff commit 735f466
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions pallet/account-migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,32 +136,27 @@ pub mod pallet {
///
/// <https://github.dev/paritytech/substrate/blob/19162e43be45817b44c7d48e50d03f074f60fbf4/frame/system/src/lib.rs#L545>
#[pallet::storage]
#[pallet::getter(fn account_of)]
pub type Accounts<T: Config> =
StorageMap<_, Blake2_128Concat, AccountId32, AccountInfo<Nonce, AccountData<Balance>>>;

/// [`pallet_asset::AssetAccount`] data.
///
/// 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<T: Config> = StorageMap<_, Blake2_128Concat, AccountId32, AssetAccount>;

/// [`darwinia_deposit::Deposits`] data.
#[pallet::storage]
#[pallet::unbounded]
#[pallet::getter(fn deposit_of)]
pub type Deposits<T: Config> = StorageMap<_, Blake2_128Concat, AccountId32, Vec<Deposit>>;

/// Old ledger data.
#[pallet::storage]
#[pallet::getter(fn ledger_of)]
pub type Ledgers<T: Config> = StorageMap<_, Blake2_128Concat, AccountId32, OldLedger>;

/// Multisig migration caches.
#[pallet::storage]
#[pallet::unbounded]
#[pallet::getter(fn multisig_of)]
pub type Multisigs<T: Config> = StorageMap<_, Identity, AccountId32, MultisigMigrationDetail>;

#[pallet::pallet]
Expand Down
1 change: 0 additions & 1 deletion pallet/asset-limit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Config> = StorageMap<_, Twox128, T::ForeignAssetType, u128>;

#[pallet::call]
Expand Down
3 changes: 0 additions & 3 deletions pallet/deposit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Config> =
StorageMap<_, Blake2_128Concat, T::AccountId, BoundedVec<Deposit, ConstU32<512>>>;

Expand All @@ -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<T: Config> =
StorageMap<_, Blake2_128Concat, T::AccountId, (BoundedVec<Deposit, ConstU32<512>>, u8)>;

// Deposit contract address.
#[pallet::storage]
#[pallet::getter(fn deposit_contract)]
pub type DepositContract<T: Config> = StorageValue<_, T::AccountId>;

#[pallet::pallet]
Expand Down
9 changes: 0 additions & 9 deletions pallet/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,49 +208,40 @@ pub mod pallet {

/// All staking ledgers.
#[pallet::storage]
#[pallet::getter(fn ledger_of)]
pub type Ledgers<T: Config> = StorageMap<_, Blake2_128Concat, T::AccountId, Ledger>;

/// The ideal number of active collators.
#[pallet::storage]
#[pallet::getter(fn collator_count)]
pub type CollatorCount<T> = 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<T: Config> =
StorageValue<_, (BlockNumberFor<T>, BTreeMap<T::AccountId, BlockNumberFor<T>>), ValueQuery>;

/// Unissued reward to Treasury.
#[pallet::storage]
#[pallet::getter(fn unissued_reward)]
pub type UnissuedReward<T: Config> = StorageValue<_, Balance, ValueQuery>;

/// All outstanding rewards since the last payment.
#[pallet::storage]
#[pallet::unbounded]
#[pallet::getter(fn pending_reward_of)]
pub type PendingRewards<T: Config> = StorageMap<_, Twox64Concat, T::AccountId, Balance>;

/// Active session's start-time.
#[pallet::storage]
#[pallet::getter(fn session_start_time)]
pub type SessionStartTime<T: Config> = StorageValue<_, Moment, ValueQuery>;

/// Elapsed time.
#[pallet::storage]
#[pallet::getter(fn elapsed_time)]
pub type ElapsedTime<T: Config> = StorageValue<_, Moment, ValueQuery>;

/// RING staking contract address.
#[pallet::storage]
#[pallet::getter(fn ring_staking_contract)]
pub type RingStakingContract<T: Config> = StorageValue<_, T::AccountId>;
/// KTON staking contract address.
#[pallet::storage]
#[pallet::getter(fn kton_staking_contract)]
pub type KtonStakingContract<T: Config> = StorageValue<_, T::AccountId>;

#[derive(DefaultNoBound)]
Expand Down

0 comments on commit 735f466

Please sign in to comment.