@galacticcouncil/descriptors
Version:
Hydration papi (polkadot-api) descriptors
1,441 lines (1,439 loc) • 116 kB
TypeScript
import { StorageDescriptor, PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeBinary, Binary, FixedSizeArray } from "polkadot-api";
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q, Ibn3i0ad6beo5l, I1p5pqg6bllgtl, I9jd27rnpm8ttv, I4ojmnsk1dchql, Iesq88051ch8ht, Ic02kut0350gb0, I6ouflveob4eli, Ifn6q3equiq9qi, In7a38730s6qs, If15el53dd76v9, I9s0ave7t0vnrk, Ic6nglu2db2c36, Ie5fbn0f5capo3, Ia9ai1mp1viqjd, I4q47u65qosg7e, Icbccs0ug47ilf, I11jcgems8sdco, Ievca65alkkho9, I2qkf9i0e8mf1f, Ib0voua2mn0e9p, I2lu1qfhumniu5, Ii64qoo6q5lth, I2pi935s6uqbh, Ib9aiguc778ujf, If1007933akv96, Ifmc9boeeia623, Ibplkiqg5rvr3e, Icnmrtlo128skq, Icojqvn3afk41n, I4g15ko4u63fja, I8rbu1vdc38cnp, Ick2k1hvh0bm22, I4e4rvm2fqc561, XcmVersionedLocation, XcmVersionedXcm, Id2luorng6dtg7, I95g6i7ilua7lq, I35p85j063s0il, Id5qsstfl1fkb3, I3ii6nera7pkr8 } from "./common-types";
type AnonymousEnum<T extends {}> = T & {
__anonymous: true;
};
type MyTuple<T> = [T, ...T[]];
type SeparateUndefined<T> = undefined extends T ? undefined | Exclude<T, undefined> : T;
type Anonymize<T> = SeparateUndefined<T extends FixedSizeBinary<infer L> ? number extends L ? Binary : FixedSizeBinary<L> : T extends string | number | bigint | boolean | void | undefined | null | symbol | Uint8Array | Enum<any> ? T : T extends AnonymousEnum<infer V> ? Enum<V> : T extends MyTuple<any> ? {
[K in keyof T]: T[K];
} : T extends [] ? [] : T extends FixedSizeArray<infer L, infer T> ? number extends L ? Array<T> : FixedSizeArray<L, T> : {
[K in keyof T & string]: T[K];
}>;
type IStorage = {
System: {
/**
* The full account information for a particular account ID.
*/
Account: StorageDescriptor<[Key: SS58String], Anonymize<I5sesotjlssv2d>, false, never>;
/**
* The current block number being processed. Set by `execute_block`.
*/
Number: StorageDescriptor<[], number, false, never>;
};
AssetRegistry: {
/**
* Details of an asset.
*/
Assets: StorageDescriptor<[Key: number], Anonymize<Ifj0li5nn5unet>, true, never>;
/**
* Native location of an asset.
*/
AssetLocations: StorageDescriptor<[Key: number], Anonymize<I4c0s5cioidn76>, true, never>;
};
Omnipool: {
/**
* State of an asset in the omnipool
*/
Assets: StorageDescriptor<[Key: number], Anonymize<I8ikpj86u2na1q>, true, never>;
/**
* Tradable state of hub asset.
*/
HubAssetTradability: StorageDescriptor<[], number, false, never>;
};
DynamicFees: {
/**
* Stores last calculated fee of an asset and block number in which it was changed..
* Stored as (Asset fee, Protocol fee, Block number)
*/
AssetFee: StorageDescriptor<[Key: number], Anonymize<Ibn3i0ad6beo5l>, true, never>;
};
Stableswap: {
/**
* Existing pools
*/
Pools: StorageDescriptor<[Key: number], Anonymize<I1p5pqg6bllgtl>, true, never>;
/**
* Tradability state of pool assets.
*/
AssetTradability: StorageDescriptor<Anonymize<I9jd27rnpm8ttv>, number, false, never>;
};
Bonds: {
/**
* Registered bonds.
* Maps bond ID -> (underlying asset ID, maturity)
*/
Bonds: StorageDescriptor<[Key: number], Anonymize<I4ojmnsk1dchql>, true, never>;
};
LBP: {
/**
* Details of a pool.
*/
PoolData: StorageDescriptor<[Key: SS58String], Anonymize<Iesq88051ch8ht>, true, never>;
};
XYK: {
/**
* Asset pair in a pool.
*/
PoolAssets: StorageDescriptor<[Key: SS58String], Anonymize<I9jd27rnpm8ttv>, true, never>;
};
Tokens: {
/**
* The total issuance of a token type.
*/
TotalIssuance: StorageDescriptor<[Key: number], bigint, false, never>;
/**
* The balance of a token type under an account.
*
* NOTE: If the total is ever zero, decrease account ref account.
*
* NOTE: This is only used in the case that this module is used to store
* balances.
*/
Accounts: StorageDescriptor<Anonymize<I6ouflveob4eli>, Anonymize<Ic02kut0350gb0>, false, never>;
};
ParachainSystem: {
/**
* The [`PersistedValidationData`] set for this block.
* This value is expected to be set only once per block and it's never stored
* in the trie.
*/
ValidationData: StorageDescriptor<[], Anonymize<Ifn6q3equiq9qi>, true, never>;
};
};
type ICalls = {
Dispatcher: {
/**
*/
dispatch_as_treasury: TxDescriptor<Anonymize<I4q47u65qosg7e>>;
/**
*/
dispatch_as_aave_manager: TxDescriptor<Anonymize<I4q47u65qosg7e>>;
/**
* Sets the Aave manager account to be used as origin for dispatching calls.
*
* This doesn't actually changes any ACL in the pool.
*
* This is intented to be mainly used in testnet environments, where the manager account
* can be different.
*/
note_aave_manager: TxDescriptor<Anonymize<Icbccs0ug47ilf>>;
/**
* Dispatch a call with extra gas.
*
* This allows executing calls with additional weight (gas) limit.
* The extra gas is not refunded, even if not used.
*/
dispatch_with_extra_gas: TxDescriptor<Anonymize<I11jcgems8sdco>>;
};
Omnipool: {
/**
* Execute a swap of `asset_in` for `asset_out`.
*
* Price is determined by the Omnipool.
*
* Hub asset is traded separately.
*
* Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned.
*
* Parameters:
* - `asset_in`: ID of asset sold to the pool
* - `asset_out`: ID of asset bought from the pool
* - `amount`: Amount of asset sold
* - `min_buy_amount`: Minimum amount required to receive
*
* Emits `SellExecuted` event when successful. Deprecated.
* Emits `pallet_broadcast::Swapped` event when successful.
*
*/
sell: TxDescriptor<Anonymize<Ievca65alkkho9>>;
/**
* Execute a swap of `asset_out` for `asset_in`.
*
* Price is determined by the Omnipool.
*
* Hub asset is traded separately.
*
* Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned.
*
* Parameters:
* - `asset_in`: ID of asset sold to the pool
* - `asset_out`: ID of asset bought from the pool
* - `amount`: Amount of asset sold
* - `max_sell_amount`: Maximum amount to be sold.
*
* Emits `BuyExecuted` event when successful. Deprecated.
* Emits `pallet_broadcast::Swapped` event when successful.
*
*/
buy: TxDescriptor<Anonymize<I2qkf9i0e8mf1f>>;
};
Router: {
/**
* Executes a sell with a series of trades specified in the route.
* The price for each trade is determined by the corresponding AMM.
*
* - `origin`: The executor of the trade
* - `asset_in`: The identifier of the asset to sell
* - `asset_out`: The identifier of the asset to receive
* - `amount_in`: The amount of `asset_in` to sell
* - `min_amount_out`: The minimum amount of `asset_out` to receive.
* - `route`: Series of [`Trade<AssetId>`] to be executed. A [`Trade<AssetId>`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed.
* If not specified, than the on-chain route is used.
* If no on-chain is present, then omnipool route is used as default
*
* Emits `RouteExecuted` when successful.
*/
sell: TxDescriptor<Anonymize<Ib0voua2mn0e9p>>;
/**
* Executes a buy with a series of trades specified in the route.
* The price for each trade is determined by the corresponding AMM.
*
* - `origin`: The executor of the trade
* - `asset_in`: The identifier of the asset to be swapped to buy `asset_out`
* - `asset_out`: The identifier of the asset to buy
* - `amount_out`: The amount of `asset_out` to buy
* - `max_amount_in`: The max amount of `asset_in` to spend on the buy.
* - `route`: Series of [`Trade<AssetId>`] to be executed. A [`Trade<AssetId>`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed.
* If not specified, than the on-chain route is used.
* If no on-chain is present, then omnipool route is used as default
*
* Emits `RouteExecuted` when successful.
*/
buy: TxDescriptor<Anonymize<I2lu1qfhumniu5>>;
/**
* Executes a sell with a series of trades specified in the route.
* It sells all reducible user balance of `asset_in`
* The price for each trade is determined by the corresponding AMM.
*
* - `origin`: The executor of the trade
* - `asset_in`: The identifier of the asset to sell
* - `asset_out`: The identifier of the asset to receive
* - `min_amount_out`: The minimum amount of `asset_out` to receive.
* - `route`: Series of [`Trade<AssetId>`] to be executed. A [`Trade<AssetId>`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed.
* If not specified, than the on-chain route is used.
* If no on-chain is present, then omnipool route is used as default
*
* Emits `RouteExecuted` when successful.
*
*/
sell_all: TxDescriptor<Anonymize<Ii64qoo6q5lth>>;
};
DCA: {
/**
* Creates a new DCA (Dollar-Cost Averaging) schedule and plans the next execution
* for the specified block.
*
* If the block is not specified, the execution is planned for the next block.
* If the given block is full, the execution will be planned in the subsequent block.
*
* Once the schedule is created, the specified `total_amount` will be reserved for DCA.
* The reservation currency will be the `amount_in` currency of the order.
*
* Trades are executed as long as there is budget remaining
* from the initial `total_amount` allocation, unless `total_amount` is 0, then trades
* are executed until schedule is terminated.
*
* If a trade fails due to slippage limit or price stability errors, it will be retried.
* If the number of retries reaches the maximum allowed,
* the schedule will be terminated permanently.
* In the case of a successful trade, the retry counter is reset.
*
* Parameters:
* - `origin`: schedule owner
* - `schedule`: schedule details
* - `start_execution_block`: first possible execution block for the schedule
*
* Emits `Scheduled` and `ExecutionPlanned` event when successful.
*
*/
schedule: TxDescriptor<Anonymize<I2pi935s6uqbh>>;
/**
* Terminates a DCA schedule and remove it completely from the chain.
*
* This can be called by both schedule owner or the configured `T::TerminateOrigin`
*
* Parameters:
* - `origin`: schedule owner
* - `schedule_id`: schedule id
* - `next_execution_block`: block number where the schedule is planned.
*
* Emits `Terminated` event when successful.
*
*/
terminate: TxDescriptor<Anonymize<Ib9aiguc778ujf>>;
};
};
type IEvent = {
Router: {
/**
* The route with trades has been successfully executed
*/
Executed: PlainDescriptor<Anonymize<If1007933akv96>>;
};
EVM: {
/**
* Ethereum events from contracts.
*/
Log: PlainDescriptor<Anonymize<Ifmc9boeeia623>>;
};
};
type IError = {
System: {
/**
* The name of specification does not match between the current runtime
* and the new runtime.
*/
InvalidSpecName: PlainDescriptor<undefined>;
/**
* The specification version is not allowed to decrease between the current runtime
* and the new runtime.
*/
SpecVersionNeedsToIncrease: PlainDescriptor<undefined>;
/**
* Failed to extract the runtime version from the new runtime.
*
* Either calling `Core_version` or decoding `RuntimeVersion` failed.
*/
FailedToExtractRuntimeVersion: PlainDescriptor<undefined>;
/**
* Suicide called when the account has non-default composite data.
*/
NonDefaultComposite: PlainDescriptor<undefined>;
/**
* There is a non-zero reference count preventing the account from being purged.
*/
NonZeroRefCount: PlainDescriptor<undefined>;
/**
* The origin filter prevent the call to be dispatched.
*/
CallFiltered: PlainDescriptor<undefined>;
/**
* A multi-block migration is ongoing and prevents the current code from being replaced.
*/
MultiBlockMigrationsOngoing: PlainDescriptor<undefined>;
/**
* No upgrade authorized.
*/
NothingAuthorized: PlainDescriptor<undefined>;
/**
* The submitted code is not authorized.
*/
Unauthorized: PlainDescriptor<undefined>;
};
Balances: {
/**
* Vesting balance too high to send value.
*/
VestingBalance: PlainDescriptor<undefined>;
/**
* Account liquidity restrictions prevent withdrawal.
*/
LiquidityRestrictions: PlainDescriptor<undefined>;
/**
* Balance too low to send value.
*/
InsufficientBalance: PlainDescriptor<undefined>;
/**
* Value too low to create account due to existential deposit.
*/
ExistentialDeposit: PlainDescriptor<undefined>;
/**
* Transfer/payment would kill account.
*/
Expendability: PlainDescriptor<undefined>;
/**
* A vesting schedule already exists for this account.
*/
ExistingVestingSchedule: PlainDescriptor<undefined>;
/**
* Beneficiary account must pre-exist.
*/
DeadAccount: PlainDescriptor<undefined>;
/**
* Number of named reserves exceed `MaxReserves`.
*/
TooManyReserves: PlainDescriptor<undefined>;
/**
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
*/
TooManyHolds: PlainDescriptor<undefined>;
/**
* Number of freezes exceed `MaxFreezes`.
*/
TooManyFreezes: PlainDescriptor<undefined>;
/**
* The issuance cannot be modified since it is already deactivated.
*/
IssuanceDeactivated: PlainDescriptor<undefined>;
/**
* The delta cannot be zero.
*/
DeltaZero: PlainDescriptor<undefined>;
};
MultiTransactionPayment: {
/**
* Selected currency is not supported.
*/
UnsupportedCurrency: PlainDescriptor<undefined>;
/**
* Account balance should be non-zero.
*/
ZeroBalance: PlainDescriptor<undefined>;
/**
* Currency is already in the list of accepted currencies.
*/
AlreadyAccepted: PlainDescriptor<undefined>;
/**
* It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design.
*/
CoreAssetNotAllowed: PlainDescriptor<undefined>;
/**
* Fallback price cannot be zero.
*/
ZeroPrice: PlainDescriptor<undefined>;
/**
* Fallback price was not found.
*/
FallbackPriceNotFound: PlainDescriptor<undefined>;
/**
* Math overflow
*/
Overflow: PlainDescriptor<undefined>;
/**
* It is not allowed to change payment currency of an EVM account.
*/
EvmAccountNotAllowed: PlainDescriptor<undefined>;
/**
* EVM permit expired.
*/
EvmPermitExpired: PlainDescriptor<undefined>;
/**
* EVM permit is invalid.
*/
EvmPermitInvalid: PlainDescriptor<undefined>;
/**
* EVM permit call failed.
*/
EvmPermitCallExecutionError: PlainDescriptor<undefined>;
/**
* EVM permit call failed.
*/
EvmPermitRunnerError: PlainDescriptor<undefined>;
};
Treasury: {
/**
* No proposal, bounty or spend at that index.
*/
InvalidIndex: PlainDescriptor<undefined>;
/**
* Too many approvals in the queue.
*/
TooManyApprovals: PlainDescriptor<undefined>;
/**
* The spend origin is valid but the amount it is allowed to spend is lower than the
* amount to be spent.
*/
InsufficientPermission: PlainDescriptor<undefined>;
/**
* Proposal has not been approved.
*/
ProposalNotApproved: PlainDescriptor<undefined>;
/**
* The balance of the asset kind is not convertible to the balance of the native asset.
*/
FailedToConvertBalance: PlainDescriptor<undefined>;
/**
* The spend has expired and cannot be claimed.
*/
SpendExpired: PlainDescriptor<undefined>;
/**
* The spend is not yet eligible for payout.
*/
EarlyPayout: PlainDescriptor<undefined>;
/**
* The payment has already been attempted.
*/
AlreadyAttempted: PlainDescriptor<undefined>;
/**
* There was some issue with the mechanism of payment.
*/
PayoutError: PlainDescriptor<undefined>;
/**
* The payout was not yet attempted/claimed.
*/
NotAttempted: PlainDescriptor<undefined>;
/**
* The payment has neither failed nor succeeded yet.
*/
Inconclusive: PlainDescriptor<undefined>;
};
Utility: {
/**
* Too many calls batched.
*/
TooManyCalls: PlainDescriptor<undefined>;
};
Preimage: {
/**
* Preimage is too large to store on-chain.
*/
TooBig: PlainDescriptor<undefined>;
/**
* Preimage has already been noted on-chain.
*/
AlreadyNoted: PlainDescriptor<undefined>;
/**
* The user is not authorized to perform this action.
*/
NotAuthorized: PlainDescriptor<undefined>;
/**
* The preimage cannot be removed since it has not yet been noted.
*/
NotNoted: PlainDescriptor<undefined>;
/**
* A preimage may not be removed when there are outstanding requests.
*/
Requested: PlainDescriptor<undefined>;
/**
* The preimage request cannot be removed since no outstanding requests exist.
*/
NotRequested: PlainDescriptor<undefined>;
/**
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
*/
TooMany: PlainDescriptor<undefined>;
/**
* Too few hashes were requested to be upgraded (i.e. zero).
*/
TooFew: PlainDescriptor<undefined>;
};
Identity: {
/**
* Too many subs-accounts.
*/
TooManySubAccounts: PlainDescriptor<undefined>;
/**
* Account isn't found.
*/
NotFound: PlainDescriptor<undefined>;
/**
* Account isn't named.
*/
NotNamed: PlainDescriptor<undefined>;
/**
* Empty index.
*/
EmptyIndex: PlainDescriptor<undefined>;
/**
* Fee is changed.
*/
FeeChanged: PlainDescriptor<undefined>;
/**
* No identity found.
*/
NoIdentity: PlainDescriptor<undefined>;
/**
* Sticky judgement.
*/
StickyJudgement: PlainDescriptor<undefined>;
/**
* Judgement given.
*/
JudgementGiven: PlainDescriptor<undefined>;
/**
* Invalid judgement.
*/
InvalidJudgement: PlainDescriptor<undefined>;
/**
* The index is invalid.
*/
InvalidIndex: PlainDescriptor<undefined>;
/**
* The target is invalid.
*/
InvalidTarget: PlainDescriptor<undefined>;
/**
* Maximum amount of registrars reached. Cannot add any more.
*/
TooManyRegistrars: PlainDescriptor<undefined>;
/**
* Account ID is already named.
*/
AlreadyClaimed: PlainDescriptor<undefined>;
/**
* Sender is not a sub-account.
*/
NotSub: PlainDescriptor<undefined>;
/**
* Sub-account isn't owned by sender.
*/
NotOwned: PlainDescriptor<undefined>;
/**
* The provided judgement was for a different identity.
*/
JudgementForDifferentIdentity: PlainDescriptor<undefined>;
/**
* Error that occurs when there is an issue paying for judgement.
*/
JudgementPaymentFailed: PlainDescriptor<undefined>;
/**
* The provided suffix is too long.
*/
InvalidSuffix: PlainDescriptor<undefined>;
/**
* The sender does not have permission to issue a username.
*/
NotUsernameAuthority: PlainDescriptor<undefined>;
/**
* The authority cannot allocate any more usernames.
*/
NoAllocation: PlainDescriptor<undefined>;
/**
* The signature on a username was not valid.
*/
InvalidSignature: PlainDescriptor<undefined>;
/**
* Setting this username requires a signature, but none was provided.
*/
RequiresSignature: PlainDescriptor<undefined>;
/**
* The username does not meet the requirements.
*/
InvalidUsername: PlainDescriptor<undefined>;
/**
* The username is already taken.
*/
UsernameTaken: PlainDescriptor<undefined>;
/**
* The requested username does not exist.
*/
NoUsername: PlainDescriptor<undefined>;
/**
* The username cannot be forcefully removed because it can still be accepted.
*/
NotExpired: PlainDescriptor<undefined>;
};
Democracy: {
/**
* Value too low
*/
ValueLow: PlainDescriptor<undefined>;
/**
* Proposal does not exist
*/
ProposalMissing: PlainDescriptor<undefined>;
/**
* Cannot cancel the same proposal twice
*/
AlreadyCanceled: PlainDescriptor<undefined>;
/**
* Proposal already made
*/
DuplicateProposal: PlainDescriptor<undefined>;
/**
* Proposal still blacklisted
*/
ProposalBlacklisted: PlainDescriptor<undefined>;
/**
* Next external proposal not simple majority
*/
NotSimpleMajority: PlainDescriptor<undefined>;
/**
* Invalid hash
*/
InvalidHash: PlainDescriptor<undefined>;
/**
* No external proposal
*/
NoProposal: PlainDescriptor<undefined>;
/**
* Identity may not veto a proposal twice
*/
AlreadyVetoed: PlainDescriptor<undefined>;
/**
* Vote given for invalid referendum
*/
ReferendumInvalid: PlainDescriptor<undefined>;
/**
* No proposals waiting
*/
NoneWaiting: PlainDescriptor<undefined>;
/**
* The given account did not vote on the referendum.
*/
NotVoter: PlainDescriptor<undefined>;
/**
* The actor has no permission to conduct the action.
*/
NoPermission: PlainDescriptor<undefined>;
/**
* The account is already delegating.
*/
AlreadyDelegating: PlainDescriptor<undefined>;
/**
* Too high a balance was provided that the account cannot afford.
*/
InsufficientFunds: PlainDescriptor<undefined>;
/**
* The account is not currently delegating.
*/
NotDelegating: PlainDescriptor<undefined>;
/**
* The account currently has votes attached to it and the operation cannot succeed until
* these are removed, either through `unvote` or `reap_vote`.
*/
VotesExist: PlainDescriptor<undefined>;
/**
* The instant referendum origin is currently disallowed.
*/
InstantNotAllowed: PlainDescriptor<undefined>;
/**
* Delegation to oneself makes no sense.
*/
Nonsense: PlainDescriptor<undefined>;
/**
* Invalid upper bound.
*/
WrongUpperBound: PlainDescriptor<undefined>;
/**
* Maximum number of votes reached.
*/
MaxVotesReached: PlainDescriptor<undefined>;
/**
* Maximum number of items reached.
*/
TooMany: PlainDescriptor<undefined>;
/**
* Voting period too low
*/
VotingPeriodLow: PlainDescriptor<undefined>;
/**
* The preimage does not exist.
*/
PreimageNotExist: PlainDescriptor<undefined>;
};
Elections: {
/**
* Cannot vote when no candidates or members exist.
*/
UnableToVote: PlainDescriptor<undefined>;
/**
* Must vote for at least one candidate.
*/
NoVotes: PlainDescriptor<undefined>;
/**
* Cannot vote more than candidates.
*/
TooManyVotes: PlainDescriptor<undefined>;
/**
* Cannot vote more than maximum allowed.
*/
MaximumVotesExceeded: PlainDescriptor<undefined>;
/**
* Cannot vote with stake less than minimum balance.
*/
LowBalance: PlainDescriptor<undefined>;
/**
* Voter can not pay voting bond.
*/
UnableToPayBond: PlainDescriptor<undefined>;
/**
* Must be a voter.
*/
MustBeVoter: PlainDescriptor<undefined>;
/**
* Duplicated candidate submission.
*/
DuplicatedCandidate: PlainDescriptor<undefined>;
/**
* Too many candidates have been created.
*/
TooManyCandidates: PlainDescriptor<undefined>;
/**
* Member cannot re-submit candidacy.
*/
MemberSubmit: PlainDescriptor<undefined>;
/**
* Runner cannot re-submit candidacy.
*/
RunnerUpSubmit: PlainDescriptor<undefined>;
/**
* Candidate does not have enough funds.
*/
InsufficientCandidateFunds: PlainDescriptor<undefined>;
/**
* Not a member.
*/
NotMember: PlainDescriptor<undefined>;
/**
* The provided count of number of candidates is incorrect.
*/
InvalidWitnessData: PlainDescriptor<undefined>;
/**
* The provided count of number of votes is incorrect.
*/
InvalidVoteCount: PlainDescriptor<undefined>;
/**
* The renouncing origin presented a wrong `Renouncing` parameter.
*/
InvalidRenouncing: PlainDescriptor<undefined>;
/**
* Prediction regarding replacement after member removal is wrong.
*/
InvalidReplacement: PlainDescriptor<undefined>;
};
Council: {
/**
* Account is not a member
*/
NotMember: PlainDescriptor<undefined>;
/**
* Duplicate proposals not allowed
*/
DuplicateProposal: PlainDescriptor<undefined>;
/**
* Proposal must exist
*/
ProposalMissing: PlainDescriptor<undefined>;
/**
* Mismatched index
*/
WrongIndex: PlainDescriptor<undefined>;
/**
* Duplicate vote ignored
*/
DuplicateVote: PlainDescriptor<undefined>;
/**
* Members are already initialized!
*/
AlreadyInitialized: PlainDescriptor<undefined>;
/**
* The close call was made too early, before the end of the voting.
*/
TooEarly: PlainDescriptor<undefined>;
/**
* There can only be a maximum of `MaxProposals` active proposals.
*/
TooManyProposals: PlainDescriptor<undefined>;
/**
* The given weight bound for the proposal was too low.
*/
WrongProposalWeight: PlainDescriptor<undefined>;
/**
* The given length bound for the proposal was too low.
*/
WrongProposalLength: PlainDescriptor<undefined>;
/**
* Prime account is not a member
*/
PrimeAccountNotMember: PlainDescriptor<undefined>;
};
TechnicalCommittee: {
/**
* Account is not a member
*/
NotMember: PlainDescriptor<undefined>;
/**
* Duplicate proposals not allowed
*/
DuplicateProposal: PlainDescriptor<undefined>;
/**
* Proposal must exist
*/
ProposalMissing: PlainDescriptor<undefined>;
/**
* Mismatched index
*/
WrongIndex: PlainDescriptor<undefined>;
/**
* Duplicate vote ignored
*/
DuplicateVote: PlainDescriptor<undefined>;
/**
* Members are already initialized!
*/
AlreadyInitialized: PlainDescriptor<undefined>;
/**
* The close call was made too early, before the end of the voting.
*/
TooEarly: PlainDescriptor<undefined>;
/**
* There can only be a maximum of `MaxProposals` active proposals.
*/
TooManyProposals: PlainDescriptor<undefined>;
/**
* The given weight bound for the proposal was too low.
*/
WrongProposalWeight: PlainDescriptor<undefined>;
/**
* The given length bound for the proposal was too low.
*/
WrongProposalLength: PlainDescriptor<undefined>;
/**
* Prime account is not a member
*/
PrimeAccountNotMember: PlainDescriptor<undefined>;
};
Tips: {
/**
* The reason given is just too big.
*/
ReasonTooBig: PlainDescriptor<undefined>;
/**
* The tip was already found/started.
*/
AlreadyKnown: PlainDescriptor<undefined>;
/**
* The tip hash is unknown.
*/
UnknownTip: PlainDescriptor<undefined>;
/**
* The tip given was too generous.
*/
MaxTipAmountExceeded: PlainDescriptor<undefined>;
/**
* The account attempting to retract the tip is not the finder of the tip.
*/
NotFinder: PlainDescriptor<undefined>;
/**
* The tip cannot be claimed/closed because there are not enough tippers yet.
*/
StillOpen: PlainDescriptor<undefined>;
/**
* The tip cannot be claimed/closed because it's still in the countdown period.
*/
Premature: PlainDescriptor<undefined>;
};
Proxy: {
/**
* There are too many proxies registered or too many announcements pending.
*/
TooMany: PlainDescriptor<undefined>;
/**
* Proxy registration not found.
*/
NotFound: PlainDescriptor<undefined>;
/**
* Sender is not a proxy of the account to be proxied.
*/
NotProxy: PlainDescriptor<undefined>;
/**
* A call which is incompatible with the proxy type's filter was attempted.
*/
Unproxyable: PlainDescriptor<undefined>;
/**
* Account is already a proxy.
*/
Duplicate: PlainDescriptor<undefined>;
/**
* Call may not be made by proxy because it may escalate its privileges.
*/
NoPermission: PlainDescriptor<undefined>;
/**
* Announcement, if made at all, was made too recently.
*/
Unannounced: PlainDescriptor<undefined>;
/**
* Cannot add self as proxy.
*/
NoSelfProxy: PlainDescriptor<undefined>;
};
Multisig: {
/**
* Threshold must be 2 or greater.
*/
MinimumThreshold: PlainDescriptor<undefined>;
/**
* Call is already approved by this signatory.
*/
AlreadyApproved: PlainDescriptor<undefined>;
/**
* Call doesn't need any (more) approvals.
*/
NoApprovalsNeeded: PlainDescriptor<undefined>;
/**
* There are too few signatories in the list.
*/
TooFewSignatories: PlainDescriptor<undefined>;
/**
* There are too many signatories in the list.
*/
TooManySignatories: PlainDescriptor<undefined>;
/**
* The signatories were provided out of order; they should be ordered.
*/
SignatoriesOutOfOrder: PlainDescriptor<undefined>;
/**
* The sender was contained in the other signatories; it shouldn't be.
*/
SenderInSignatories: PlainDescriptor<undefined>;
/**
* Multisig operation not found when attempting to cancel.
*/
NotFound: PlainDescriptor<undefined>;
/**
* Only the account that originally created the multisig is able to cancel it.
*/
NotOwner: PlainDescriptor<undefined>;
/**
* No timepoint was given, yet the multisig operation is already underway.
*/
NoTimepoint: PlainDescriptor<undefined>;
/**
* A different timepoint was given to the multisig operation that is underway.
*/
WrongTimepoint: PlainDescriptor<undefined>;
/**
* A timepoint was given, yet no multisig operation is underway.
*/
UnexpectedTimepoint: PlainDescriptor<undefined>;
/**
* The maximum weight information provided was too low.
*/
MaxWeightTooLow: PlainDescriptor<undefined>;
/**
* The data to be stored is already stored.
*/
AlreadyStored: PlainDescriptor<undefined>;
};
Uniques: {
/**
* The signing account has no permission to do the operation.
*/
NoPermission: PlainDescriptor<undefined>;
/**
* The given item ID is unknown.
*/
UnknownCollection: PlainDescriptor<undefined>;
/**
* The item ID has already been used for an item.
*/
AlreadyExists: PlainDescriptor<undefined>;
/**
* The owner turned out to be different to what was expected.
*/
WrongOwner: PlainDescriptor<undefined>;
/**
* Invalid witness data given.
*/
BadWitness: PlainDescriptor<undefined>;
/**
* The item ID is already taken.
*/
InUse: PlainDescriptor<undefined>;
/**
* The item or collection is frozen.
*/
Frozen: PlainDescriptor<undefined>;
/**
* The delegate turned out to be different to what was expected.
*/
WrongDelegate: PlainDescriptor<undefined>;
/**
* There is no delegate approved.
*/
NoDelegate: PlainDescriptor<undefined>;
/**
* No approval exists that would allow the transfer.
*/
Unapproved: PlainDescriptor<undefined>;
/**
* The named owner has not signed ownership of the collection is acceptable.
*/
Unaccepted: PlainDescriptor<undefined>;
/**
* The item is locked.
*/
Locked: PlainDescriptor<undefined>;
/**
* All items have been minted.
*/
MaxSupplyReached: PlainDescriptor<undefined>;
/**
* The max supply has already been set.
*/
MaxSupplyAlreadySet: PlainDescriptor<undefined>;
/**
* The provided max supply is less to the amount of items a collection already has.
*/
MaxSupplyTooSmall: PlainDescriptor<undefined>;
/**
* The given item ID is unknown.
*/
UnknownItem: PlainDescriptor<undefined>;
/**
* Item is not for sale.
*/
NotForSale: PlainDescriptor<undefined>;
/**
* The provided bid is too low.
*/
BidTooLow: PlainDescriptor<undefined>;
};
StateTrieMigration: {
/**
* Max signed limits not respected.
*/
MaxSignedLimits: PlainDescriptor<undefined>;
/**
* A key was longer than the configured maximum.
*
* This means that the migration halted at the current [`Progress`] and
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
* The value should only be increased to avoid a storage migration for the currently
* stored [`crate::Progress::LastKey`].
*/
KeyTooLong: PlainDescriptor<undefined>;
/**
* submitter does not have enough funds.
*/
NotEnoughFunds: PlainDescriptor<undefined>;
/**
* Bad witness data provided.
*/
BadWitness: PlainDescriptor<undefined>;
/**
* Signed migration is not allowed because the maximum limit is not set yet.
*/
SignedMigrationNotAllowed: PlainDescriptor<undefined>;
/**
* Bad child root provided.
*/
BadChildRoot: PlainDescriptor<undefined>;
};
ConvictionVoting: {
/**
* Poll is not ongoing.
*/
NotOngoing: PlainDescriptor<undefined>;
/**
* The given account did not vote on the poll.
*/
NotVoter: PlainDescriptor<undefined>;
/**
* The actor has no permission to conduct the action.
*/
NoPermission: PlainDescriptor<undefined>;
/**
* The actor has no permission to conduct the action right now but will do in the future.
*/
NoPermissionYet: PlainDescriptor<undefined>;
/**
* The account is already delegating.
*/
AlreadyDelegating: PlainDescriptor<undefined>;
/**
* The account currently has votes attached to it and the operation cannot succeed until
* these are removed through `remove_vote`.
*/
AlreadyVoting: PlainDescriptor<undefined>;
/**
* Too high a balance was provided that the account cannot afford.
*/
InsufficientFunds: PlainDescriptor<undefined>;
/**
* The account is not currently delegating.
*/
NotDelegating: PlainDescriptor<undefined>;
/**
* Delegation to oneself makes no sense.
*/
Nonsense: PlainDescriptor<undefined>;
/**
* Maximum number of votes reached.
*/
MaxVotesReached: PlainDescriptor<undefined>;
/**
* The class must be supplied since it is not easily determinable from the state.
*/
ClassNeeded: PlainDescriptor<undefined>;
/**
* The class ID supplied is invalid.
*/
BadClass: PlainDescriptor<undefined>;
};
Referenda: {
/**
* Referendum is not ongoing.
*/
NotOngoing: PlainDescriptor<undefined>;
/**
* Referendum's decision deposit is already paid.
*/
HasDeposit: PlainDescriptor<undefined>;
/**
* The track identifier given was invalid.
*/
BadTrack: PlainDescriptor<undefined>;
/**
* There are already a full complement of referenda in progress for this track.
*/
Full: PlainDescriptor<undefined>;
/**
* The queue of the track is empty.
*/
QueueEmpty: PlainDescriptor<undefined>;
/**
* The referendum index provided is invalid in this context.
*/
BadReferendum: PlainDescriptor<undefined>;
/**
* There was nothing to do in the advancement.
*/
NothingToDo: PlainDescriptor<undefined>;
/**
* No track exists for the proposal origin.
*/
NoTrack: PlainDescriptor<undefined>;
/**
* Any deposit cannot be refunded until after the decision is over.
*/
Unfinished: PlainDescriptor<undefined>;
/**
* The deposit refunder is not the depositor.
*/
NoPermission: PlainDescriptor<undefined>;
/**
* The deposit cannot be refunded since none was made.
*/
NoDeposit: PlainDescriptor<undefined>;
/**
* The referendum status is invalid for this operation.
*/
BadStatus: PlainDescriptor<undefined>;
/**
* The preimage does not exist.
*/
PreimageNotExist: PlainDescriptor<undefined>;
/**
* The preimage is stored with a different length than the one provided.
*/
PreimageStoredWithDifferentLength: PlainDescriptor<undefined>;
};
Whitelist: {
/**
* The preimage of the call hash could not be loaded.
*/
UnavailablePreImage: PlainDescriptor<undefined>;
/**
* The call could not be decoded.
*/
UndecodableCall: PlainDescriptor<undefined>;
/**
* The weight of the decoded call was higher than the witness.
*/
InvalidCallWeightWitness: PlainDescriptor<undefined>;
/**
* The call was not whitelisted.
*/
CallIsNotWhitelisted: PlainDescriptor<undefined>;
/**
* The call was already whitelisted; No-Op.
*/
CallAlreadyWhitelisted: PlainDescriptor<undefined>;
};
AssetRegistry: {
/**
* Asset ID is not available. This only happens when it reaches the MAX value of given id type.
*/
NoIdAvailable: PlainDescriptor<undefined>;
/**
* Invalid asset name or symbol.
*/
AssetNotFound: PlainDescriptor<undefined>;
/**
* Length of name or symbol is less than min. length.
*/
TooShort: PlainDescriptor<undefined>;
/**
* Asset's symbol can't contain whitespace characters .
*/
InvalidSymbol: PlainDescriptor<undefined>;
/**
* Asset ID is not registered in the asset-registry.
*/
AssetNotRegistered: PlainDescriptor<undefined>;
/**
* Asset is already registered.
*/
AssetAlreadyRegistered: PlainDescriptor<undefined>;
/**
* Incorrect number of assets provided to create shared asset.
*/
InvalidSharedAssetLen: PlainDescriptor<undefined>;
/**
* Cannot update asset location.
*/
CannotUpdateLocation: PlainDescriptor<undefined>;
/**
* Selected asset id is out of reserved range.
*/
NotInReservedRange: PlainDescriptor<undefined>;
/**
* Location already registered with different asset.
*/
LocationAlreadyRegistered: PlainDescriptor<undefined>;
/**
* Origin is forbidden to set/update value.
*/
Forbidden: PlainDescriptor<undefined>;
/**
* Balance too low.
*/
InsufficientBalance: PlainDescriptor<undefined>;
/**
* Sufficient assets can't be changed to insufficient.
*/
ForbiddenSufficiencyChange: PlainDescriptor<undefined>;
/**
* Asset is already banned.
*/
AssetAlreadyBanned: PlainDescriptor<undefined>;
/**
* Asset is not banned.
*/
AssetNotBanned: PlainDescriptor<undefined>;
};
Claims: {
/**
* Ethereum signature is not valid
*/
InvalidEthereumSignature: PlainDescriptor<undefined>;
/**
* Claim is not valid
*/
NoClaimOrAlreadyClaimed: PlainDescriptor<undefined>;
/**
* Value reached maximum and cannot be incremented further
*/
BalanceOverflow: PlainDescriptor<undefined>;
};
Omnipool: {
/**
* Balance too low
*/
InsufficientBalance: PlainDescriptor<undefined>;
/**
* Asset is already in omnipool
*/
AssetAlreadyAdded: PlainDescriptor<undefined>;
/**
* Asset is not in omnipool
*/
AssetNotFound: PlainDescriptor<undefined>;
/**
* Failed to add token to Omnipool due to insufficient initial liquidity.
*/
MissingBalance: PlainDescriptor<undefined>;
/**
* Invalid initial asset price.
*/
InvalidInitialAssetPrice: PlainDescriptor<undefined>;
/**
* Slippage protection - minimum limit has not been reached.
*/
BuyLimitNotReached: PlainDescriptor<undefined>;
/**
* Slippage protection - maximum limit has been exceeded.
*/
SellLimitExceeded: PlainDescriptor<undefined>;
/**
* Position has not been found.
*/
PositionNotFound: PlainDescriptor<undefined>;
/**
* Insufficient shares in position
*/
InsufficientShares: PlainDescriptor<undefined>;
/**
* Asset is not allowed to be traded.
*/
NotAllowed: PlainDescriptor<undefined>;
/**
* Signed account is not owner of position instance.
*/
Forbidden: PlainDescriptor<undefined>;
/**
* Asset weight cap has been exceeded.
*/
AssetWeightCapExceeded: PlainDescriptor<undefined>;
/**
* Asset is not registered in asset registry
*/
AssetNotRegistered: PlainDescriptor<undefined>;
/**
* Provided liquidity is below minimum allowed limit
*/
InsufficientLiquidity: PlainDescriptor<undefined>;
/**
* Traded amount is below minimum allowed limit
*/
InsufficientTradingAmount: PlainDescriptor<undefined>;
/**
* Sell or buy with same asset ids is not allowed.
*/
SameAssetTradeNotAllowed: PlainDescriptor<undefined>;
/**
* LRNA update after trade results in positive value.
*/
HubAssetUpdateError: PlainDescriptor<undefined>;
/**
* Amount of shares provided cannot be 0.
*/
InvalidSharesAmount: PlainDescriptor<undefined>;
/**
* Hub asset is only allowed to be sold.
*/
InvalidHubAssetTradableState: PlainDescriptor<undefined>;
/**
* Asset is not allowed to be refunded.
*/
AssetRefundNotAllowed: PlainDescriptor<undefined>;
/**
* Max fraction of asset to buy has been exceeded.
*/
MaxOutRatioExceeded: PlainDescriptor<undefined>;
/**
* Max fraction of asset to sell has been exceeded.
*/
MaxInRatioExceeded: PlainDescriptor<undefined>;
/**
* Max allowed price difference has been exceeded.
*/
PriceDifferenceTooHigh: PlainDescriptor<undefined>;
/**
* Invalid oracle price - division by zero.
*/
InvalidOraclePrice: PlainDescriptor<undefined>;
/**
* Failed to calculate withdrawal fee.
*/
InvalidWithdrawalFee: PlainDescriptor<undefined>;
/**
* More than allowed amount of fee has been transferred.
*/
FeeOverdraft: PlainDescriptor<undefined>;
/**
* Token cannot be removed from Omnipool due to shares still owned by other users.
*/
SharesRemaining: PlainDescriptor<undefined>;
/**
* Token cannot be removed from Omnipool because asset is not frozen.
*/
AssetNotFrozen: PlainDescriptor<undefined>;
/**
* Calculated amount out from sell trade is zero.
*/
ZeroAmountOut: PlainDescriptor<undefined>;
/**
* Existential deposit of asset is not available.
*/
ExistentialDepositNotAvailable: PlainDescriptor<undefined>;
/**
* Slippage protection
*/
SlippageLimit: PlainDescriptor<undefined>;
/**
*