mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Add missing #[pallet::constant] annotations to pallets (#9367)
fixing #9306
This commit is contained in:
committed by
GitHub
parent
2dcbad535b
commit
76a289ebd8
@@ -189,19 +189,24 @@ pub mod pallet {
|
||||
type ForceOrigin: EnsureOrigin<Self::Origin>;
|
||||
|
||||
/// The basic amount of funds that must be reserved for an asset.
|
||||
#[pallet::constant]
|
||||
type AssetDeposit: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The basic amount of funds that must be reserved when adding metadata to your asset.
|
||||
#[pallet::constant]
|
||||
type MetadataDepositBase: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The additional funds that must be reserved for the number of bytes you store in your
|
||||
/// metadata.
|
||||
#[pallet::constant]
|
||||
type MetadataDepositPerByte: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The amount of funds that must be reserved when creating a new approval.
|
||||
#[pallet::constant]
|
||||
type ApprovalDeposit: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The maximum length of a name or symbol stored on-chain.
|
||||
#[pallet::constant]
|
||||
type StringLimit: Get<u32>;
|
||||
|
||||
/// A hook to allow a per-asset, per-account minimum balance to be enforced. This must be
|
||||
|
||||
@@ -159,6 +159,7 @@ pub mod pallet {
|
||||
/// If B sees A is on a blockchain with larger proof length limit, then it should kindly refuse
|
||||
/// to accept the atomic swap request if A generates the proof, and asks that B generates the
|
||||
/// proof instead.
|
||||
#[pallet::constant]
|
||||
type ProofLimit: Get<u32>;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,7 @@ pub mod pallet {
|
||||
/// The number of blocks back we should accept uncles.
|
||||
/// This means that we will deal with uncle-parents that are
|
||||
/// `UncleGenerations + 1` before `now`.
|
||||
#[pallet::constant]
|
||||
type UncleGenerations: Get<Self::BlockNumber>;
|
||||
/// A filter for uncles within a block. This is for implementing
|
||||
/// further constraints on what uncles can be included, other than their ancestry.
|
||||
|
||||
@@ -214,9 +214,11 @@ pub mod pallet {
|
||||
|
||||
/// The maximum number of locks that should exist on an account.
|
||||
/// Not strictly enforced, but used for weight estimation.
|
||||
#[pallet::constant]
|
||||
type MaxLocks: Get<u32>;
|
||||
|
||||
/// The maximum number of named reserves that can exist on an account.
|
||||
#[pallet::constant]
|
||||
type MaxReserves: Get<u32>;
|
||||
|
||||
/// The id type for named reserves.
|
||||
|
||||
@@ -301,6 +301,7 @@ pub mod pallet {
|
||||
/// Indicator for whether an emergency origin is even allowed to happen. Some chains may want
|
||||
/// to set this permanently to `false`, others may want to condition it on things such as
|
||||
/// an upgrade having happened recently.
|
||||
#[pallet::constant]
|
||||
type InstantAllowed: Get<bool>;
|
||||
|
||||
/// Minimum voting period allowed for a fast-track referendum.
|
||||
@@ -355,6 +356,7 @@ pub mod pallet {
|
||||
type WeightInfo: WeightInfo;
|
||||
|
||||
/// The maximum number of public proposals that can exist at any time.
|
||||
#[pallet::constant]
|
||||
type MaxProposals: Get<u32>;
|
||||
}
|
||||
|
||||
|
||||
@@ -587,15 +587,18 @@ pub mod pallet {
|
||||
type OffchainRepeat: Get<Self::BlockNumber>;
|
||||
|
||||
/// The priority of the unsigned transaction submitted in the unsigned-phase
|
||||
#[pallet::constant]
|
||||
type MinerTxPriority: Get<TransactionPriority>;
|
||||
/// Maximum number of iteration of balancing that will be executed in the embedded miner of
|
||||
/// the pallet.
|
||||
#[pallet::constant]
|
||||
type MinerMaxIterations: Get<u32>;
|
||||
|
||||
/// Maximum weight that the miner should consume.
|
||||
///
|
||||
/// The miner will ensure that the total weight of the unsigned solution will not exceed
|
||||
/// this value, based on [`WeightInfo::submit_unsigned`].
|
||||
#[pallet::constant]
|
||||
type MinerMaxWeight: Get<Weight>;
|
||||
|
||||
/// Maximum number of signed submissions that can be queued.
|
||||
@@ -640,6 +643,7 @@ pub mod pallet {
|
||||
///
|
||||
/// The miner will ensure that the total length of the unsigned solution will not exceed
|
||||
/// this value.
|
||||
#[pallet::constant]
|
||||
type MinerMaxLength: Get<u32>;
|
||||
|
||||
/// Something that will provide the election data.
|
||||
|
||||
@@ -117,6 +117,7 @@ pub mod pallet {
|
||||
|
||||
/// The issuance to ignore. This is subtracted from the `Currency`'s `total_issuance` to get
|
||||
/// the issuance by which we inflate or deflate the gilt.
|
||||
#[pallet::constant]
|
||||
type IgnoredIssuance: Get<BalanceOf<Self>>;
|
||||
|
||||
/// Number of duration queues in total. This sets the maximum duration supported, which is
|
||||
|
||||
@@ -280,6 +280,7 @@ pub mod pallet {
|
||||
///
|
||||
/// This is exposed so that it can be tuned for particular runtime, when
|
||||
/// multiple pallets send unsigned transactions.
|
||||
#[pallet::constant]
|
||||
type UnsignedPriority: Get<TransactionPriority>;
|
||||
|
||||
/// Weight information for extrinsics in this pallet.
|
||||
|
||||
@@ -156,6 +156,7 @@ pub mod pallet {
|
||||
/// Number of time we should try to generate a random number that has no modulo bias.
|
||||
/// The larger this number, the more potential computation is used for picking the winner,
|
||||
/// but also the more likely that the chosen winner is done fairly.
|
||||
#[pallet::constant]
|
||||
type MaxGenerateRandom: Get<u32>;
|
||||
|
||||
/// Weight information for extrinsics in this pallet.
|
||||
|
||||
@@ -148,6 +148,7 @@ pub mod pallet {
|
||||
|
||||
/// The maximum weight that may be scheduled per block for any dispatchables of less priority
|
||||
/// than `schedule::HARD_DEADLINE`.
|
||||
#[pallet::constant]
|
||||
type MaximumWeight: Get<Weight>;
|
||||
|
||||
/// Required origin to schedule or cancel calls.
|
||||
@@ -155,6 +156,7 @@ pub mod pallet {
|
||||
|
||||
/// The maximum number of scheduled calls in the queue for a single block.
|
||||
/// Not strictly enforced, but used for weight estimation.
|
||||
#[pallet::constant]
|
||||
type MaxScheduledPerBlock: Get<u32>;
|
||||
|
||||
/// Weight information for extrinsics in this pallet.
|
||||
|
||||
@@ -141,10 +141,12 @@ pub mod pallet {
|
||||
// The deposit which is reserved from candidates if they want to
|
||||
// start a candidacy. The deposit gets returned when the candidacy is
|
||||
// withdrawn or when the candidate is kicked.
|
||||
#[pallet::constant]
|
||||
type CandidateDeposit: Get<BalanceOf<Self, I>>;
|
||||
|
||||
/// Every `Period` blocks the `Members` are filled with the highest scoring
|
||||
/// members in the `Pool`.
|
||||
#[pallet::constant]
|
||||
type Period: Get<Self::BlockNumber>;
|
||||
|
||||
/// The receiver of the signal for when the membership has been initialized.
|
||||
|
||||
@@ -187,6 +187,7 @@ pub mod pallet {
|
||||
type SpendFunds: SpendFunds<Self, I>;
|
||||
|
||||
/// The maximum number of approvals that can wait in the spending queue.
|
||||
#[pallet::constant]
|
||||
type MaxApprovals: Get<u32>;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,28 +79,36 @@ pub mod pallet {
|
||||
type ForceOrigin: EnsureOrigin<Self::Origin>;
|
||||
|
||||
/// The basic amount of funds that must be reserved for an asset class.
|
||||
#[pallet::constant]
|
||||
type ClassDeposit: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The basic amount of funds that must be reserved for an asset instance.
|
||||
#[pallet::constant]
|
||||
type InstanceDeposit: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The basic amount of funds that must be reserved when adding metadata to your asset.
|
||||
#[pallet::constant]
|
||||
type MetadataDepositBase: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The basic amount of funds that must be reserved when adding an attribute to an asset.
|
||||
#[pallet::constant]
|
||||
type AttributeDepositBase: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The additional funds that must be reserved for the number of bytes store in metadata,
|
||||
/// either "normal" metadata or attribute metadata.
|
||||
#[pallet::constant]
|
||||
type DepositPerByte: Get<DepositBalanceOf<Self, I>>;
|
||||
|
||||
/// The maximum length of data stored on-chain.
|
||||
#[pallet::constant]
|
||||
type StringLimit: Get<u32>;
|
||||
|
||||
/// The maximum length of an attribute key.
|
||||
#[pallet::constant]
|
||||
type KeyLimit: Get<u32>;
|
||||
|
||||
/// The maximum length of an attribute value.
|
||||
#[pallet::constant]
|
||||
type ValueLimit: Get<u32>;
|
||||
|
||||
/// Weight information for extrinsics in this pallet.
|
||||
|
||||
Reference in New Issue
Block a user