mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Cleanup unused errors & events in lease coordination pallets (#3174)
* Cleanup unused errors & events in lease cordination modules * Spelling
This commit is contained in:
@@ -118,13 +118,6 @@ pub mod pallet {
|
|||||||
AuctionStarted(AuctionIndex, LeasePeriodOf<T>, T::BlockNumber),
|
AuctionStarted(AuctionIndex, LeasePeriodOf<T>, T::BlockNumber),
|
||||||
/// An auction ended. All funds become unreserved. [auction_index]
|
/// An auction ended. All funds become unreserved. [auction_index]
|
||||||
AuctionClosed(AuctionIndex),
|
AuctionClosed(AuctionIndex),
|
||||||
/// Someone won the right to deploy a parachain. Balance amount is deducted for deposit.
|
|
||||||
/// [bidder, range, parachain_id, amount]
|
|
||||||
WonDeploy(T::AccountId, SlotRange, ParaId, BalanceOf<T>),
|
|
||||||
/// An existing parachain won the right to continue.
|
|
||||||
/// First balance is the extra amount reserved. Second is the total amount reserved.
|
|
||||||
/// [parachain_id, begin, count, total_amount]
|
|
||||||
WonRenewal(ParaId, LeasePeriodOf<T>, LeasePeriodOf<T>, BalanceOf<T>),
|
|
||||||
/// Funds were reserved for a winning bid. First balance is the extra amount reserved.
|
/// Funds were reserved for a winning bid. First balance is the extra amount reserved.
|
||||||
/// Second is the total. [bidder, extra_reserved, total_amount]
|
/// Second is the total. [bidder, extra_reserved, total_amount]
|
||||||
Reserved(T::AccountId, BalanceOf<T>, BalanceOf<T>),
|
Reserved(T::AccountId, BalanceOf<T>, BalanceOf<T>),
|
||||||
@@ -148,28 +141,12 @@ pub mod pallet {
|
|||||||
AuctionInProgress,
|
AuctionInProgress,
|
||||||
/// The lease period is in the past.
|
/// The lease period is in the past.
|
||||||
LeasePeriodInPast,
|
LeasePeriodInPast,
|
||||||
/// The origin for this call must be a parachain.
|
|
||||||
NotParaOrigin,
|
|
||||||
/// Para is not registered
|
/// Para is not registered
|
||||||
ParaNotRegistered,
|
ParaNotRegistered,
|
||||||
/// The parachain ID is not on-boarding.
|
|
||||||
ParaNotOnboarding,
|
|
||||||
/// The origin for this call must be the origin who registered the parachain.
|
|
||||||
InvalidOrigin,
|
|
||||||
/// Parachain is already registered.
|
|
||||||
AlreadyRegistered,
|
|
||||||
/// The code must correspond to the hash.
|
|
||||||
InvalidCode,
|
|
||||||
/// Deployment data has not been set for this parachain.
|
|
||||||
UnsetDeployData,
|
|
||||||
/// Not a current auction.
|
/// Not a current auction.
|
||||||
NotCurrentAuction,
|
NotCurrentAuction,
|
||||||
/// Not an auction.
|
/// Not an auction.
|
||||||
NotAuction,
|
NotAuction,
|
||||||
/// Given code size is too large.
|
|
||||||
CodeTooLarge,
|
|
||||||
/// Given initial head data is too large.
|
|
||||||
HeadDataTooLarge,
|
|
||||||
/// Auction has already ended.
|
/// Auction has already ended.
|
||||||
AuctionEnded,
|
AuctionEnded,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -236,10 +236,6 @@ pub mod pallet {
|
|||||||
AllRefunded(ParaId),
|
AllRefunded(ParaId),
|
||||||
/// Fund is dissolved. [fund_index]
|
/// Fund is dissolved. [fund_index]
|
||||||
Dissolved(ParaId),
|
Dissolved(ParaId),
|
||||||
/// The deploy data of the funded parachain is set. [fund_index]
|
|
||||||
DeployDataFixed(ParaId),
|
|
||||||
/// On-boarding process for a winning parachain fund is completed. [find_index, parachain_id]
|
|
||||||
Onboarded(ParaId, ParaId),
|
|
||||||
/// The result of trying to submit a new bid to the Slots pallet.
|
/// The result of trying to submit a new bid to the Slots pallet.
|
||||||
HandleBidResult(ParaId, DispatchResult),
|
HandleBidResult(ParaId, DispatchResult),
|
||||||
/// The configuration to a crowdloan has been edited. [fund_index]
|
/// The configuration to a crowdloan has been edited. [fund_index]
|
||||||
@@ -282,14 +278,10 @@ pub mod pallet {
|
|||||||
LeaseActive,
|
LeaseActive,
|
||||||
/// This parachain's bid or lease is still active and withdraw cannot yet begin.
|
/// This parachain's bid or lease is still active and withdraw cannot yet begin.
|
||||||
BidOrLeaseActive,
|
BidOrLeaseActive,
|
||||||
/// Funds have not yet been returned.
|
|
||||||
FundsNotReturned,
|
|
||||||
/// The crowdloan has not yet ended.
|
/// The crowdloan has not yet ended.
|
||||||
FundNotEnded,
|
FundNotEnded,
|
||||||
/// There are no contributions stored in this crowdloan.
|
/// There are no contributions stored in this crowdloan.
|
||||||
NoContributions,
|
NoContributions,
|
||||||
/// This crowdloan has an active parachain and cannot be dissolved.
|
|
||||||
HasActiveParachain,
|
|
||||||
/// The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement period.
|
/// The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement period.
|
||||||
NotReadyToDissolve,
|
NotReadyToDissolve,
|
||||||
/// Invalid signature.
|
/// Invalid signature.
|
||||||
|
|||||||
@@ -155,8 +155,6 @@ pub mod pallet {
|
|||||||
CannotUpgrade,
|
CannotUpgrade,
|
||||||
/// Para is locked from manipulation by the manager. Must use parachain or relay chain governance.
|
/// Para is locked from manipulation by the manager. Must use parachain or relay chain governance.
|
||||||
ParaLocked,
|
ParaLocked,
|
||||||
/// The id you are trying to register is reserved for system parachains.
|
|
||||||
InvalidParaId,
|
|
||||||
/// The ID given for registration has not been reserved.
|
/// The ID given for registration has not been reserved.
|
||||||
NotReserved,
|
NotReserved,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,9 +99,10 @@ decl_event!(
|
|||||||
{
|
{
|
||||||
/// A new [lease_period] is beginning.
|
/// A new [lease_period] is beginning.
|
||||||
NewLeasePeriod(LeasePeriod),
|
NewLeasePeriod(LeasePeriod),
|
||||||
/// An existing parachain won the right to continue.
|
/// A para has won the right to a continuous set of lease periods as a parachain.
|
||||||
/// First balance is the extra amount reseved. Second is the total amount reserved.
|
/// First balance is any extra amount reserved on top of the para's existing deposit.
|
||||||
/// \[parachain_id, leaser, period_begin, period_count, extra_reseved, total_amount\]
|
/// Second balance is the total amount reserved.
|
||||||
|
/// \[parachain_id, leaser, period_begin, period_count, extra_reserved, total_amount\]
|
||||||
Leased(ParaId, AccountId, LeasePeriod, LeasePeriod, Balance, Balance),
|
Leased(ParaId, AccountId, LeasePeriod, LeasePeriod, Balance, Balance),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user