UNPKG

@galacticcouncil/descriptors

Version:

Hydration papi (polkadot-api) descriptors

1,788 lines 475 kB
import { Enum, GetEnum, Binary, FixedSizeBinary, FixedSizeArray, SS58String, TxCallData, ResultPayload } from "polkadot-api"; 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]; }>; export type I5sesotjlssv2d = { "nonce": number; "consumers": number; "providers": number; "sufficients": number; "data": { "free": bigint; "reserved": bigint; "frozen": bigint; "flags": bigint; }; }; export type Ifj0li5nn5unet = { "name"?: Anonymize<Iabpgqcjikia83>; "asset_type": Anonymize<I95262dsbtfh4d>; "existential_deposit": bigint; "symbol"?: Anonymize<Iabpgqcjikia83>; "decimals"?: Anonymize<I4arjljr6dpflb>; "xcm_rate_limit"?: Anonymize<I35p85j063s0il>; "is_sufficient": boolean; }; export type Iabpgqcjikia83 = (Binary) | undefined; export type I95262dsbtfh4d = AnonymousEnum<{ "Token": undefined; "XYK": undefined; "StableSwap": undefined; "Bond": undefined; "External": undefined; "Erc20": undefined; }>; export type I4arjljr6dpflb = (number) | undefined; export type I35p85j063s0il = (bigint) | undefined; export type I4c0s5cioidn76 = { "parents": number; "interior": XcmV3Junctions; }; export type XcmV3Junctions = Enum<{ "Here": undefined; "X1": XcmV3Junction; "X2": FixedSizeArray<2, XcmV3Junction>; "X3": FixedSizeArray<3, XcmV3Junction>; "X4": FixedSizeArray<4, XcmV3Junction>; "X5": FixedSizeArray<5, XcmV3Junction>; "X6": FixedSizeArray<6, XcmV3Junction>; "X7": FixedSizeArray<7, XcmV3Junction>; "X8": FixedSizeArray<8, XcmV3Junction>; }>; export declare const XcmV3Junctions: GetEnum<XcmV3Junctions>; export type XcmV3Junction = Enum<{ "Parachain": number; "AccountId32": { "network"?: Anonymize<Idcq3vns9tgp5p>; "id": FixedSizeBinary<32>; }; "AccountIndex64": { "network"?: Anonymize<Idcq3vns9tgp5p>; "index": bigint; }; "AccountKey20": { "network"?: Anonymize<Idcq3vns9tgp5p>; "key": FixedSizeBinary<20>; }; "PalletInstance": number; "GeneralIndex": bigint; "GeneralKey": { "length": number; "data": FixedSizeBinary<32>; }; "OnlyChild": undefined; "Plurality": { "id": XcmV3JunctionBodyId; "part": XcmV2JunctionBodyPart; }; "GlobalConsensus": XcmV3JunctionNetworkId; }>; export declare const XcmV3Junction: GetEnum<XcmV3Junction>; export type Idcq3vns9tgp5p = (XcmV3JunctionNetworkId) | undefined; export type XcmV3JunctionNetworkId = Enum<{ "ByGenesis": FixedSizeBinary<32>; "ByFork": { "block_number": bigint; "block_hash": FixedSizeBinary<32>; }; "Polkadot": undefined; "Kusama": undefined; "Westend": undefined; "Rococo": undefined; "Wococo": undefined; "Ethereum": { "chain_id": bigint; }; "BitcoinCore": undefined; "BitcoinCash": undefined; "PolkadotBulletin": undefined; }>; export declare const XcmV3JunctionNetworkId: GetEnum<XcmV3JunctionNetworkId>; export type XcmV3JunctionBodyId = Enum<{ "Unit": undefined; "Moniker": FixedSizeBinary<4>; "Index": number; "Executive": undefined; "Technical": undefined; "Legislative": undefined; "Judicial": undefined; "Defense": undefined; "Administration": undefined; "Treasury": undefined; }>; export declare const XcmV3JunctionBodyId: GetEnum<XcmV3JunctionBodyId>; export type XcmV2JunctionBodyPart = Enum<{ "Voice": undefined; "Members": Anonymize<Iafscmv8tjf0ou>; "Fraction": { "nom": number; "denom": number; }; "AtLeastProportion": { "nom": number; "denom": number; }; "MoreThanProportion": { "nom": number; "denom": number; }; }>; export declare const XcmV2JunctionBodyPart: GetEnum<XcmV2JunctionBodyPart>; export type Iafscmv8tjf0ou = { "count": number; }; export type I8ikpj86u2na1q = { "hub_reserve": bigint; "shares": bigint; "protocol_shares": bigint; "cap": bigint; "tradable": number; }; export type Ibn3i0ad6beo5l = { "asset_fee": number; "protocol_fee": number; "timestamp": number; }; export type I1p5pqg6bllgtl = { "assets": Anonymize<Icgljjb6j82uhn>; "initial_amplification": number; "final_amplification": number; "initial_block": number; "final_block": number; "fee": number; }; export type Icgljjb6j82uhn = Array<number>; export type I9jd27rnpm8ttv = FixedSizeArray<2, number>; export type I4ojmnsk1dchql = [number, bigint]; export type Iesq88051ch8ht = { "owner": SS58String; "start"?: Anonymize<I4arjljr6dpflb>; "end"?: Anonymize<I4arjljr6dpflb>; "assets": Anonymize<I9jd27rnpm8ttv>; "initial_weight": number; "final_weight": number; "weight_curve": Anonymize<I9ismjef26dgjt>; "fee": Anonymize<I9jd27rnpm8ttv>; "fee_collector": SS58String; "repay_target": bigint; }; export type I9ismjef26dgjt = AnonymousEnum<{ "Linear": undefined; }>; export type Ic02kut0350gb0 = { "free": bigint; "reserved": bigint; "frozen": bigint; }; export type I6ouflveob4eli = [SS58String, number]; export type Ifn6q3equiq9qi = { "parent_head": Binary; "relay_parent_number": number; "relay_parent_storage_root": FixedSizeBinary<32>; "max_pov_size": number; }; export type In7a38730s6qs = { "base_block": Anonymize<I4q39t5hn830vp>; "max_block": Anonymize<I4q39t5hn830vp>; "per_class": { "normal": { "base_extrinsic": Anonymize<I4q39t5hn830vp>; "max_extrinsic"?: Anonymize<Iasb8k6ash5mjn>; "max_total"?: Anonymize<Iasb8k6ash5mjn>; "reserved"?: Anonymize<Iasb8k6ash5mjn>; }; "operational": { "base_extrinsic": Anonymize<I4q39t5hn830vp>; "max_extrinsic"?: Anonymize<Iasb8k6ash5mjn>; "max_total"?: Anonymize<Iasb8k6ash5mjn>; "reserved"?: Anonymize<Iasb8k6ash5mjn>; }; "mandatory": { "base_extrinsic": Anonymize<I4q39t5hn830vp>; "max_extrinsic"?: Anonymize<Iasb8k6ash5mjn>; "max_total"?: Anonymize<Iasb8k6ash5mjn>; "reserved"?: Anonymize<Iasb8k6ash5mjn>; }; }; }; export type I4q39t5hn830vp = { "ref_time": bigint; "proof_size": bigint; }; export type Iasb8k6ash5mjn = (Anonymize<I4q39t5hn830vp>) | undefined; export type If15el53dd76v9 = { "normal": number; "operational": number; "mandatory": number; }; export type I9s0ave7t0vnrk = { "read": bigint; "write": bigint; }; export type Ic6nglu2db2c36 = { "spec_name": string; "impl_name": string; "authoring_version": number; "spec_version": number; "impl_version": number; "apis": Array<[FixedSizeBinary<8>, number]>; "transaction_version": number; "state_version": number; }; export type Ie5fbn0f5capo3 = { "min_fee": number; "max_fee": number; "decay": bigint; "amplification": bigint; }; export type Ia9ai1mp1viqjd = { "start": number; "end": number; }; export type I7hj5v0kif768l = AnonymousEnum<{ "dispatch_as_treasury": Anonymize<I4q47u65qosg7e>; "dispatch_as_aave_manager": 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": 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": Anonymize<I11jcgems8sdco>; }>; export type I4q47u65qosg7e = { "call": TxCallData; }; export type Icbccs0ug47ilf = { "account": SS58String; }; export type I11jcgems8sdco = { "call": TxCallData; "extra_gas": bigint; }; export type I27hrps0svs76v = AnonymousEnum<{ /** * 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": 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": Anonymize<I2qkf9i0e8mf1f>; }>; export type Ievca65alkkho9 = { "asset_in": number; "asset_out": number; "amount": bigint; "min_buy_amount": bigint; }; export type I2qkf9i0e8mf1f = { "asset_out": number; "asset_in": number; "amount": bigint; "max_sell_amount": bigint; }; export type I9hpi41avmttfv = AnonymousEnum<{ /** * 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": 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": 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": Anonymize<Ii64qoo6q5lth>; }>; export type Ib0voua2mn0e9p = { "asset_in": number; "asset_out": number; "amount_in": bigint; "min_amount_out": bigint; "route": Anonymize<I7qjksqmdos4g7>; }; export type I7qjksqmdos4g7 = Array<{ "pool": Enum<{ "XYK": undefined; "LBP": undefined; "Stableswap": number; "Omnipool": undefined; "Aave": undefined; }>; "asset_in": number; "asset_out": number; }>; export type I2lu1qfhumniu5 = { "asset_in": number; "asset_out": number; "amount_out": bigint; "max_amount_in": bigint; "route": Anonymize<I7qjksqmdos4g7>; }; export type Ii64qoo6q5lth = { "asset_in": number; "asset_out": number; "min_amount_out": bigint; "route": Anonymize<I7qjksqmdos4g7>; }; export type Icv71jko2qbiu2 = AnonymousEnum<{ /** * 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": 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": Anonymize<Ib9aiguc778ujf>; }>; export type I2pi935s6uqbh = { "schedule": { "owner": SS58String; "period": number; "total_amount": bigint; "max_retries"?: Anonymize<I4arjljr6dpflb>; "stability_threshold"?: Anonymize<I4arjljr6dpflb>; "slippage"?: Anonymize<I4arjljr6dpflb>; "order": Anonymize<I3u6l9cad6tdj5>; }; "start_execution_block"?: Anonymize<I4arjljr6dpflb>; }; export type I3u6l9cad6tdj5 = AnonymousEnum<{ "Sell": Anonymize<Ib0voua2mn0e9p>; "Buy": Anonymize<I2lu1qfhumniu5>; }>; export type Ib9aiguc778ujf = { "schedule_id": number; "next_execution_block"?: Anonymize<I4arjljr6dpflb>; }; export type Idp0mmhs2rkct1 = AnonymousEnum<{ /** * The route with trades has been successfully executed */ "Executed": Anonymize<If1007933akv96>; }>; export type If1007933akv96 = { "asset_in": number; "asset_out": number; "amount_in": bigint; "amount_out": bigint; "event_id": number; }; export type Ia3793sttioo6c = AnonymousEnum<{ /** * Ethereum events from contracts. */ "Log": Anonymize<Ifmc9boeeia623>; }>; export type Ifmc9boeeia623 = { "log": { "address": FixedSizeBinary<20>; "topics": Anonymize<Ic5m5lp1oioo8r>; "data": Binary; }; }; export type Ic5m5lp1oioo8r = Array<FixedSizeBinary<32>>; export type I5o0s7c8q1cc9b = AnonymousEnum<{ /** * The name of specification does not match between the current runtime * and the new runtime. */ "InvalidSpecName": undefined; /** * The specification version is not allowed to decrease between the current runtime * and the new runtime. */ "SpecVersionNeedsToIncrease": undefined; /** * Failed to extract the runtime version from the new runtime. * * Either calling `Core_version` or decoding `RuntimeVersion` failed. */ "FailedToExtractRuntimeVersion": undefined; /** * Suicide called when the account has non-default composite data. */ "NonDefaultComposite": undefined; /** * There is a non-zero reference count preventing the account from being purged. */ "NonZeroRefCount": undefined; /** * The origin filter prevent the call to be dispatched. */ "CallFiltered": undefined; /** * A multi-block migration is ongoing and prevents the current code from being replaced. */ "MultiBlockMigrationsOngoing": undefined; /** * No upgrade authorized. */ "NothingAuthorized": undefined; /** * The submitted code is not authorized. */ "Unauthorized": undefined; }>; export type Idj13i7adlomht = AnonymousEnum<{ /** * Vesting balance too high to send value. */ "VestingBalance": undefined; /** * Account liquidity restrictions prevent withdrawal. */ "LiquidityRestrictions": undefined; /** * Balance too low to send value. */ "InsufficientBalance": undefined; /** * Value too low to create account due to existential deposit. */ "ExistentialDeposit": undefined; /** * Transfer/payment would kill account. */ "Expendability": undefined; /** * A vesting schedule already exists for this account. */ "ExistingVestingSchedule": undefined; /** * Beneficiary account must pre-exist. */ "DeadAccount": undefined; /** * Number of named reserves exceed `MaxReserves`. */ "TooManyReserves": undefined; /** * Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`. */ "TooManyHolds": undefined; /** * Number of freezes exceed `MaxFreezes`. */ "TooManyFreezes": undefined; /** * The issuance cannot be modified since it is already deactivated. */ "IssuanceDeactivated": undefined; /** * The delta cannot be zero. */ "DeltaZero": undefined; }>; export type Iedfhur3vm7bgd = AnonymousEnum<{ /** * Selected currency is not supported. */ "UnsupportedCurrency": undefined; /** * Account balance should be non-zero. */ "ZeroBalance": undefined; /** * Currency is already in the list of accepted currencies. */ "AlreadyAccepted": undefined; /** * It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design. */ "CoreAssetNotAllowed": undefined; /** * Fallback price cannot be zero. */ "ZeroPrice": undefined; /** * Fallback price was not found. */ "FallbackPriceNotFound": undefined; /** * Math overflow */ "Overflow": undefined; /** * It is not allowed to change payment currency of an EVM account. */ "EvmAccountNotAllowed": undefined; /** * EVM permit expired. */ "EvmPermitExpired": undefined; /** * EVM permit is invalid. */ "EvmPermitInvalid": undefined; /** * EVM permit call failed. */ "EvmPermitCallExecutionError": undefined; /** * EVM permit call failed. */ "EvmPermitRunnerError": undefined; }>; export type I36uss0m9fpcsf = AnonymousEnum<{ /** * No proposal, bounty or spend at that index. */ "InvalidIndex": undefined; /** * Too many approvals in the queue. */ "TooManyApprovals": undefined; /** * The spend origin is valid but the amount it is allowed to spend is lower than the * amount to be spent. */ "InsufficientPermission": undefined; /** * Proposal has not been approved. */ "ProposalNotApproved": undefined; /** * The balance of the asset kind is not convertible to the balance of the native asset. */ "FailedToConvertBalance": undefined; /** * The spend has expired and cannot be claimed. */ "SpendExpired": undefined; /** * The spend is not yet eligible for payout. */ "EarlyPayout": undefined; /** * The payment has already been attempted. */ "AlreadyAttempted": undefined; /** * There was some issue with the mechanism of payment. */ "PayoutError": undefined; /** * The payout was not yet attempted/claimed. */ "NotAttempted": undefined; /** * The payment has neither failed nor succeeded yet. */ "Inconclusive": undefined; }>; export type I8dt2g2hcrgh36 = AnonymousEnum<{ /** * Too many calls batched. */ "TooManyCalls": undefined; }>; export type I4cfhml1prt4lu = AnonymousEnum<{ /** * Preimage is too large to store on-chain. */ "TooBig": undefined; /** * Preimage has already been noted on-chain. */ "AlreadyNoted": undefined; /** * The user is not authorized to perform this action. */ "NotAuthorized": undefined; /** * The preimage cannot be removed since it has not yet been noted. */ "NotNoted": undefined; /** * A preimage may not be removed when there are outstanding requests. */ "Requested": undefined; /** * The preimage request cannot be removed since no outstanding requests exist. */ "NotRequested": undefined; /** * More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once. */ "TooMany": undefined; /** * Too few hashes were requested to be upgraded (i.e. zero). */ "TooFew": undefined; }>; export type I9mq328955mgb8 = AnonymousEnum<{ /** * Too many subs-accounts. */ "TooManySubAccounts": undefined; /** * Account isn't found. */ "NotFound": undefined; /** * Account isn't named. */ "NotNamed": undefined; /** * Empty index. */ "EmptyIndex": undefined; /** * Fee is changed. */ "FeeChanged": undefined; /** * No identity found. */ "NoIdentity": undefined; /** * Sticky judgement. */ "StickyJudgement": undefined; /** * Judgement given. */ "JudgementGiven": undefined; /** * Invalid judgement. */ "InvalidJudgement": undefined; /** * The index is invalid. */ "InvalidIndex": undefined; /** * The target is invalid. */ "InvalidTarget": undefined; /** * Maximum amount of registrars reached. Cannot add any more. */ "TooManyRegistrars": undefined; /** * Account ID is already named. */ "AlreadyClaimed": undefined; /** * Sender is not a sub-account. */ "NotSub": undefined; /** * Sub-account isn't owned by sender. */ "NotOwned": undefined; /** * The provided judgement was for a different identity. */ "JudgementForDifferentIdentity": undefined; /** * Error that occurs when there is an issue paying for judgement. */ "JudgementPaymentFailed": undefined; /** * The provided suffix is too long. */ "InvalidSuffix": undefined; /** * The sender does not have permission to issue a username. */ "NotUsernameAuthority": undefined; /** * The authority cannot allocate any more usernames. */ "NoAllocation": undefined; /** * The signature on a username was not valid. */ "InvalidSignature": undefined; /** * Setting this username requires a signature, but none was provided. */ "RequiresSignature": undefined; /** * The username does not meet the requirements. */ "InvalidUsername": undefined; /** * The username is already taken. */ "UsernameTaken": undefined; /** * The requested username does not exist. */ "NoUsername": undefined; /** * The username cannot be forcefully removed because it can still be accepted. */ "NotExpired": undefined; }>; export type I67neb7i10udig = AnonymousEnum<{ /** * Value too low */ "ValueLow": undefined; /** * Proposal does not exist */ "ProposalMissing": undefined; /** * Cannot cancel the same proposal twice */ "AlreadyCanceled": undefined; /** * Proposal already made */ "DuplicateProposal": undefined; /** * Proposal still blacklisted */ "ProposalBlacklisted": undefined; /** * Next external proposal not simple majority */ "NotSimpleMajority": undefined; /** * Invalid hash */ "InvalidHash": undefined; /** * No external proposal */ "NoProposal": undefined; /** * Identity may not veto a proposal twice */ "AlreadyVetoed": undefined; /** * Vote given for invalid referendum */ "ReferendumInvalid": undefined; /** * No proposals waiting */ "NoneWaiting": undefined; /** * The given account did not vote on the referendum. */ "NotVoter": undefined; /** * The actor has no permission to conduct the action. */ "NoPermission": undefined; /** * The account is already delegating. */ "AlreadyDelegating": undefined; /** * Too high a balance was provided that the account cannot afford. */ "InsufficientFunds": undefined; /** * The account is not currently delegating. */ "NotDelegating": 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": undefined; /** * The instant referendum origin is currently disallowed. */ "InstantNotAllowed": undefined; /** * Delegation to oneself makes no sense. */ "Nonsense": undefined; /** * Invalid upper bound. */ "WrongUpperBound": undefined; /** * Maximum number of votes reached. */ "MaxVotesReached": undefined; /** * Maximum number of items reached. */ "TooMany": undefined; /** * Voting period too low */ "VotingPeriodLow": undefined; /** * The preimage does not exist. */ "PreimageNotExist": undefined; }>; export type I96u72l8br1ego = AnonymousEnum<{ /** * Cannot vote when no candidates or members exist. */ "UnableToVote": undefined; /** * Must vote for at least one candidate. */ "NoVotes": undefined; /** * Cannot vote more than candidates. */ "TooManyVotes": undefined; /** * Cannot vote more than maximum allowed. */ "MaximumVotesExceeded": undefined; /** * Cannot vote with stake less than minimum balance. */ "LowBalance": undefined; /** * Voter can not pay voting bond. */ "UnableToPayBond": undefined; /** * Must be a voter. */ "MustBeVoter": undefined; /** * Duplicated candidate submission. */ "DuplicatedCandidate": undefined; /** * Too many candidates have been created. */ "TooManyCandidates": undefined; /** * Member cannot re-submit candidacy. */ "MemberSubmit": undefined; /** * Runner cannot re-submit candidacy. */ "RunnerUpSubmit": undefined; /** * Candidate does not have enough funds. */ "InsufficientCandidateFunds": undefined; /** * Not a member. */ "NotMember": undefined; /** * The provided count of number of candidates is incorrect. */ "InvalidWitnessData": undefined; /** * The provided count of number of votes is incorrect. */ "InvalidVoteCount": undefined; /** * The renouncing origin presented a wrong `Renouncing` parameter. */ "InvalidRenouncing": undefined; /** * Prediction regarding replacement after member removal is wrong. */ "InvalidReplacement": undefined; }>; export type Icapevgbpfn5p9 = AnonymousEnum<{ /** * Account is not a member */ "NotMember": undefined; /** * Duplicate proposals not allowed */ "DuplicateProposal": undefined; /** * Proposal must exist */ "ProposalMissing": undefined; /** * Mismatched index */ "WrongIndex": undefined; /** * Duplicate vote ignored */ "DuplicateVote": undefined; /** * Members are already initialized! */ "AlreadyInitialized": undefined; /** * The close call was made too early, before the end of the voting. */ "TooEarly": undefined; /** * There can only be a maximum of `MaxProposals` active proposals. */ "TooManyProposals": undefined; /** * The given weight bound for the proposal was too low. */ "WrongProposalWeight": undefined; /** * The given length bound for the proposal was too low. */ "WrongProposalLength": undefined; /** * Prime account is not a member */ "PrimeAccountNotMember": undefined; }>; export type I8c24qlovva8mi = AnonymousEnum<{ /** * The reason given is just too big. */ "ReasonTooBig": undefined; /** * The tip was already found/started. */ "AlreadyKnown": undefined; /** * The tip hash is unknown. */ "UnknownTip": undefined; /** * The tip given was too generous. */ "MaxTipAmountExceeded": undefined; /** * The account attempting to retract the tip is not the finder of the tip. */ "NotFinder": undefined; /** * The tip cannot be claimed/closed because there are not enough tippers yet. */ "StillOpen": undefined; /** * The tip cannot be claimed/closed because it's still in the countdown period. */ "Premature": undefined; }>; export type Iuvt54ei4cehc = AnonymousEnum<{ /** * There are too many proxies registered or too many announcements pending. */ "TooMany": undefined; /** * Proxy registration not found. */ "NotFound": undefined; /** * Sender is not a proxy of the account to be proxied. */ "NotProxy": undefined; /** * A call which is incompatible with the proxy type's filter was attempted. */ "Unproxyable": undefined; /** * Account is already a proxy. */ "Duplicate": undefined; /** * Call may not be made by proxy because it may escalate its privileges. */ "NoPermission": undefined; /** * Announcement, if made at all, was made too recently. */ "Unannounced": undefined; /** * Cannot add self as proxy. */ "NoSelfProxy": undefined; }>; export type Ia76qmhhg4jvb9 = AnonymousEnum<{ /** * Threshold must be 2 or greater. */ "MinimumThreshold": undefined; /** * Call is already approved by this signatory. */ "AlreadyApproved": undefined; /** * Call doesn't need any (more) approvals. */ "NoApprovalsNeeded": undefined; /** * There are too few signatories in the list. */ "TooFewSignatories": undefined; /** * There are too many signatories in the list. */ "TooManySignatories": undefined; /** * The signatories were provided out of order; they should be ordered. */ "SignatoriesOutOfOrder": undefined; /** * The sender was contained in the other signatories; it shouldn't be. */ "SenderInSignatories": undefined; /** * Multisig operation not found when attempting to cancel. */ "NotFound": undefined; /** * Only the account that originally created the multisig is able to cancel it. */ "NotOwner": undefined; /** * No timepoint was given, yet the multisig operation is already underway. */ "NoTimepoint": undefined; /** * A different timepoint was given to the multisig operation that is underway. */ "WrongTimepoint": undefined; /** * A timepoint was given, yet no multisig operation is underway. */ "UnexpectedTimepoint": undefined; /** * The maximum weight information provided was too low. */ "MaxWeightTooLow": undefined; /** * The data to be stored is already stored. */ "AlreadyStored": undefined; }>; export type Ienq2ge2rhv4jm = AnonymousEnum<{ /** * The signing account has no permission to do the operation. */ "NoPermission": undefined; /** * The given item ID is unknown. */ "UnknownCollection": undefined; /** * The item ID has already been used for an item. */ "AlreadyExists": undefined; /** * The owner turned out to be different to what was expected. */ "WrongOwner": undefined; /** * Invalid witness data given. */ "BadWitness": undefined; /** * The item ID is already taken. */ "InUse": undefined; /** * The item or collection is frozen. */ "Frozen": undefined; /** * The delegate turned out to be different to what was expected. */ "WrongDelegate": undefined; /** * There is no delegate approved. */ "NoDelegate": undefined; /** * No approval exists that would allow the transfer. */ "Unapproved": undefined; /** * The named owner has not signed ownership of the collection is acceptable. */ "Unaccepted": undefined; /** * The item is locked. */ "Locked": undefined; /** * All items have been minted. */ "MaxSupplyReached": undefined; /** * The max supply has already been set. */ "MaxSupplyAlreadySet": undefined; /** * The provided max supply is less to the amount of items a collection already has. */ "MaxSupplyTooSmall": undefined; /** * The given item ID is unknown. */ "UnknownItem": undefined; /** * Item is not for sale. */ "NotForSale": undefined; /** * The provided bid is too low. */ "BidTooLow": undefined; }>; export type I96objte63brjr = AnonymousEnum<{ /** * Max signed limits not respected. */ "MaxSignedLimits": 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": undefined; /** * submitter does not have enough funds. */ "NotEnoughFunds": undefined; /** * Bad witness data provided. */ "BadWitness": undefined; /** * Signed migration is not allowed because the maximum limit is not set yet. */ "SignedMigrationNotAllowed": undefined; /** * Bad child root provided. */ "BadChildRoot": undefined; }>; export type Idfa8k8ikssbsf = AnonymousEnum<{ /** * Poll is not ongoing. */ "NotOngoing": undefined; /** * The given account did not vote on the poll. */ "NotVoter": undefined; /** * The actor has no permission to conduct the action. */ "NoPermission": undefined; /** * The actor has no permission to conduct the action right now but will do in the future. */ "NoPermissionYet": undefined; /** * The account is already delegating. */ "AlreadyDelegating": undefined; /** * The account currently has votes attached to it and the operation cannot succeed until * these are removed through `remove_vote`. */ "AlreadyVoting": undefined; /** * Too high a balance was provided that the account cannot afford. */ "InsufficientFunds": undefined; /** * The account is not currently delegating. */ "NotDelegating": undefined; /** * Delegation to oneself makes no sense. */ "Nonsense": undefined; /** * Maximum number of votes reached. */ "MaxVotesReached": undefined; /** * The class must be supplied since it is not easily determinable from the state. */ "ClassNeeded": undefined; /** * The class ID supplied is invalid. */ "BadClass": undefined; }>; export type I84u4ul208g742 = AnonymousEnum<{ /** * Referendum is not ongoing. */ "NotOngoing": undefined; /** * Referendum's decision deposit is already paid. */ "HasDeposit": undefined; /** * The track identifier given was invalid. */ "BadTrack": undefined; /** * There are already a full complement of referenda in progress for this track. */ "Full": undefined; /** * The queue of the track is empty. */ "QueueEmpty": undefined; /** * The referendum index provided is invalid in this context. */ "BadReferendum": undefined; /** * There was nothing to do in the advancement. */ "NothingToDo": undefined; /** * No track exists for the proposal origin. */ "NoTrack": undefined; /** * Any deposit cannot be refunded until after the decision is over. */ "Unfinished": undefined; /** * The deposit refunder is not the depositor. */ "NoPermission": undefined; /** * The deposit cannot be refunded since none was made. */ "NoDeposit": undefined; /** * The referendum status is invalid for this operation. */ "BadStatus": undefined; /** * The preimage does not exist. */ "PreimageNotExist": undefined; /** * The preimage is stored with a different length than the one provided. */ "PreimageStoredWithDifferentLength": undefined; }>; export type I15nctscutpbeh = AnonymousEnum<{ /** * The preimage of the call hash could not be loaded. */ "UnavailablePreImage": undefined; /** * The call could not be decoded. */ "UndecodableCall": undefined; /** * The weight of the decoded call was higher than the witness. */ "InvalidCallWeightWitness": undefined; /** * The call was not whitelisted. */ "CallIsNotWhitelisted": undefined; /** * The call was already whitelisted; No-Op. */ "CallAlreadyWhitelisted": undefined; }>; export type Iimgfr2idjdm4 = AnonymousEnum<{ /** * Asset ID is not available. This only happens when it reaches the MAX value of given id type. */ "NoIdAvailable": undefined; /** * Invalid asset name or symbol. */ "AssetNotFound": undefined; /** * Length of name or symbol is less than min. length. */ "TooShort": undefined; /** * Asset's symbol can't contain whitespace characters . */ "InvalidSymbol": undefined; /** * Asset ID is not registered in the asset-registry. */ "AssetNotRegistered": undefined; /** * Asset is already registered. */ "AssetAlreadyRegistered": undefined; /** * Incorrect number of assets provided to create shared asset. */ "InvalidSharedAssetLen": undefined; /** * Cannot update asset location. */ "CannotUpdateLocation": undefined; /** * Selected asset id is out of reserved range. */ "NotInReservedRange": undefined; /** * Location already registered with different asset. */ "LocationAlreadyRegistered": undefined; /** * Origin is forbidden to set/update value. */ "Forbidden": undefined; /** * Balance too low. */ "InsufficientBalance": undefined; /** * Sufficient assets can't be changed to insufficient. */ "ForbiddenSufficiencyChange": undefined; /** * Asset is already banned. */ "AssetAlreadyBanned": undefined; /** * Asset is not banned. */ "AssetNotBanned": undefined; }>; export type Ieesotejglstun = AnonymousEnum<{ /** * Ethereum signature is not valid */ "InvalidEthereumSignature": undefined; /** * Claim is not valid */ "NoClaimOrAlreadyClaimed": undefined; /** * Value reached maximum and cannot be incremented further */ "BalanceOverflow": undefined; }>; export type Ibllfng3pqvvev = AnonymousEnum<{ /** * Balance too low */ "InsufficientBalance": undefined; /** * Asset is already in omnipool */ "AssetAlreadyAdded": undefined; /** * Asset is not in omnipool */ "AssetNotFound": undefined; /** * Failed to add token to Omnipool due to insufficient initial liquidity. */ "MissingBalance": undefined; /** * Invalid initial asset price. */ "InvalidInitialAssetPrice": undefined; /** * Slippage protection - minimum limit has not been reached. */ "BuyLimitNotReached": undefined; /** * Slippage protection - maximum limit has been exceeded. */ "SellLimitExceeded": undefined; /** * Position has not been found. */ "PositionNotFound": undefined; /** * Insufficient shares in position */ "InsufficientShares": undefined; /** * Asset is not allowed to be traded. */ "NotAllowed": undefined; /** * Signed account is not owner of position instance. */ "Forbidden": undefined; /** * Asset weight cap has been exceeded. */ "AssetWeightCapExceeded": undefined; /** * Asset is not registered in asset registry */ "AssetNotRegistered": undefined; /** * Provided liquidity is below minimum allowed limit */ "InsufficientLiquidity": undefined; /** * Traded amount is below minimum allowed limit */ "InsufficientTradingAmount": undefined; /** * Sell or buy with same asset ids is not allowed. */ "SameAssetTradeNotAllowed": undefined; /** * LRNA update after trade results in positive value. */ "HubAssetUpdateError": undefined; /** * Amount of shares provided cannot be 0. */ "InvalidSharesAmount": undefined; /** * Hub asset is only allowed to be sold. */ "InvalidHubAssetTradableState": undefined; /** * Asset is not allowed to be refunded. */ "AssetRefundNotAllowed": undefined; /** * Max fraction of asset to buy has been exceeded. */ "MaxOutRatioExceeded": undefined; /** * Max fraction of asset to sell has been exceeded. */ "MaxInRatioExceeded": undefined; /** * Max allowed price difference has been exceeded. */ "PriceDifferenceTooHigh": undefined; /** * Invalid oracle price - division by zero. */ "InvalidOraclePrice": undefined; /** * Failed to calculate withdrawal fee. */ "InvalidWithdrawalFee": undefined; /** * More than allowed amount of fee has been transferred. */ "FeeOverdraft": undefined; /** * Token cannot be removed from Omnipool due to shares still owned by other users. */ "SharesRemaining": undefined; /** * Token cannot be removed from Omnipool because asset is not frozen. */ "AssetNotFrozen": undefined; /** * Calculated amount out from sell trade is zero. */ "ZeroAmountOut": undefined; /** * Existential deposit of asset is not available. */ "ExistentialDepositNotAvailable": undefined; /** * Slippage protection */ "SlippageLimit": undefined; /** * Extra protocol fee has not been consumed. */ "ProtocolFeeNotConsumed": undefined; }>; export type Ia4jj5ajguk6ba = AnonymousEnum<{ /** * can not pause */ "CannotPause": undefined; /** * invalid character encoding */ "InvalidCharacter": undefined; /** * pallet name or function name is too long */ "NameTooLong": undefined; }>; export type Igjgeha0sds9v = AnonymousEnum<{ /** * Account is excluded from dusting. */ "AccountBlacklisted": undefined; /** * Account is not present in the non-dustable list. */ "AccountNotBlacklisted": undefined; /** * The balance is zero. */ "ZeroBalance": undefined; /** * The balance is sufficient to keep account open. */ "BalanceSufficient": undefined; /** * Dust account is not set. */ "DustAccountNotSet": undefined; /** * Reserve account is not set. */ "ReserveAccountNotSet": undefined; }>; export type Ib26q43rgjm5dv = AnonymousEnum<{ /** * Global farm does not exist. */ "GlobalFarmNotFound": undefined; /** * Yield farm does not exist. */ "YieldFarmNotFound": undefined; /** * Multiple claims in the same period is not allowed. */ "DoubleClaimInPeriod": undefined; /** * Liquidity mining is canceled. */ "LiquidityMiningCanceled": undefined; /** * Liquidity mining is not canceled. */ "LiquidityMiningIsActive": undefined; /** * Liquidity mining is in `active` or `terminated` state and action cannot be completed. */ "LiquidityMiningIsNotStopped": undefined; /** * LP shares amount is not valid. */ "InvalidDepositAmount": undefined; /** * Account is not allowed to perform action. */ "Forbidden": undefined; /** * Yield farm multiplier can't be 0. */ "InvalidMultiplier": undefined; /** * Yield farm with given `amm_pool_id` already exists in global farm. */ "YieldFarmAlreadyExists": undefined; /** * Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1). */ "InvalidInitialRewardPercentage": undefined; /** * One or more yield farms exist in global farm. */ "GlobalFarmIsNotEmpty": undefined; /** * Farm's `incentivized_asset` is missing in provided asset pair. */ "MissingIncentivizedAsset": undefined; /** * Reward currency balance is not sufficient. */ "InsufficientRewardCurrencyBalance": undefined; /** * Blocks per period can't be 0. */ "InvalidBlocksPerPeriod": undefined; /** * Yield per period can't be 0. */ "InvalidYieldPerPeriod": undefined; /** * Total rewards is less than `MinTotalFarmRewards`. */ "InvalidTotalRewards": undefined; /** * Planned yielding periods is less than `MinPlannedYieldingPeriods`. */ "InvalidPlannedYieldingPeriods": undefined; /** * Maximum number of locks reached for deposit. */ "MaxEntriesPerDeposit": undefined; /** * Trying to lock LP shares into already locked yield farm. */ "DoubleLock": undefined; /** * Yield farm entry doesn't exist for given deposit. */ "YieldFarmEntryNotFound": undefined; /** * Max number of yield farms in global farm was reached. Global farm can't accept new * yield farms until some yield farm is not removed from storage. */ "GlobalFarmIsFull": undefined; /** * Invalid min. deposit was set for global farm. */ "InvalidMinDeposit": undefined; /** * Price adjustment multiplier can't be 0. */ "InvalidPriceAdjustment": undefined; /** * Account creation from id failed. */ "ErrorGetAccountId": undefined; /** * Value of deposited shares amount in reward currency is bellow min. limit. */ "IncorrectValuedShares": undefined; /** * `reward_currency` is not registered in asset registry. */ "RewardCurrencyNotRegistered": undefined; /** * `incentivized_asset` is not registered in asset registry. */ "IncentivizedAssetNotRegistered": undefined; /** * Action cannot be completed because unexpected error has occurred. This should be reported * to protocol maintainers. */ "InconsistentState": Anonymize<Ibplkiqg5rvr3e>; }>; export type Ibplkiqg5rvr3e = AnonymousEnum<{ "YieldFarmNotFound": undefined; "GlobalFarmNotFound": undefined; "LiquidityIsNotActive": undefined; "GlobalFarmIsNotActive": undefined; "DepositNotFound": undefined; "InvalidPeriod": undefined; "NotEnoughRewards