import '@polkadot/api-base/types/errors'; import type { ApiTypes } from '@polkadot/api-base/types'; declare module '@polkadot/api-base/types/errors' { interface AugmentedErrors { gear: { /** * Code already exists. * * Occurs when trying to save to storage a program code that has been saved there. **/ CodeAlreadyExists: AugmentedError; /** * Code does not exist. * * Occurs when trying to get a program code from storage, that doesn't exist. **/ CodeDoesntExist: AugmentedError; /** * The code supplied to `upload_code` or `upload_program` exceeds the limit specified in the * current schedule. **/ CodeTooLarge: AugmentedError; /** * Gas limit too high. * * Occurs when an extrinsic's declared `gas_limit` is greater than a block's maximum gas limit. **/ GasLimitTooHigh: AugmentedError; /** * Gear::run() already included in current block. **/ GearRunAlreadyInBlock: AugmentedError; /** * Program is terminated. * * Program init failed, so such message destination is no longer unavailable. **/ InactiveProgram: AugmentedError; /** * Not enough balance to execute an action. * * Usually occurs when the gas_limit specified is such that the origin account can't afford the message. **/ InsufficientBalance: AugmentedError; /** * Message wasn't found in the mailbox. **/ MessageNotFound: AugmentedError; /** * Message queue processing is disabled. **/ MessageQueueProcessingDisabled: AugmentedError; /** * Message gas tree is not found. * * When a message claimed from the mailbox has a corrupted or non-extant gas tree associated. **/ NoMessageTree: AugmentedError; /** * Program already exists. * * Occurs if a program with some specific program id already exists in program storage. **/ ProgramAlreadyExists: AugmentedError; /** * Failed to create a program. **/ ProgramConstructionFailed: AugmentedError; /** * Program with the specified id is not found. **/ ProgramNotFound: AugmentedError; /** * The program rent logic is disabled. **/ ProgramRentDisabled: AugmentedError; /** * Block count doesn't cover MinimalResumePeriod. **/ ResumePeriodLessThanMinimal: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; gearBank: { /** * Insufficient user balance. **/ InsufficientBalance: AugmentedError; /** * Insufficient bank account balance. * **Must be unreachable in Gear main protocol.** **/ InsufficientBankBalance: AugmentedError; /** * Deposit of funds that will not keep bank account alive. * **Must be unreachable in Gear main protocol.** **/ InsufficientDeposit: AugmentedError; /** * Insufficient user's bank account gas balance. **/ InsufficientGasBalance: AugmentedError; /** * Insufficient user's bank account gas balance. **/ InsufficientValueBalance: AugmentedError; /** * Overflow during funds transfer. * **Must be unreachable in Gear main protocol.** **/ Overflow: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; gearDebug: { /** * Generic error **/ [key: string]: AugmentedError; }; gearGas: { /** * `GasTree::consume` called on node, which has some balance locked. **/ ConsumedWithLock: AugmentedError; /** * `GasTree::consume` called on node, which has some system reservation. **/ ConsumedWithSystemReservation: AugmentedError; Forbidden: AugmentedError; InsufficientBalance: AugmentedError; NodeAlreadyExists: AugmentedError; NodeNotFound: AugmentedError; NodeWasConsumed: AugmentedError; ParentHasNoChildren: AugmentedError; /** * Errors stating that gas tree has been invalidated **/ ParentIsLost: AugmentedError; /** * `GasTree::create` called with some value amount leading to * the total value overflow. **/ TotalValueIsOverflowed: AugmentedError; /** * Either `GasTree::consume` or `GasTree::spent` called on a node creating * negative imbalance which leads to the total value drop below 0. **/ TotalValueIsUnderflowed: AugmentedError; /** * Output of `Tree::consume` procedure that wasn't expected. * * Outputs of consumption procedure are determined. The error is returned * when unexpected one occurred. That signals, that algorithm works wrong * and expected invariants are not correct. **/ UnexpectedConsumeOutput: AugmentedError; /** * Node type that can't occur if algorithm work well **/ UnexpectedNodeType: AugmentedError; /** * Value must have been caught or moved upstream, but was blocked (for more info see `ValueNode::catch_value`). **/ ValueIsBlocked: AugmentedError; /** * Value must have been blocked, but was either moved or caught (for more info see `ValueNode::catch_value`). **/ ValueIsNotBlocked: AugmentedError; /** * Value must have been caught, but was missed or blocked (for more info see `ValueNode::catch_value`). **/ ValueIsNotCaught: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; gearMessenger: { /** * Occurs when given value already exists in mailbox. **/ MailboxDuplicateKey: AugmentedError; /** * Occurs when mailbox's element wasn't found in storage. **/ MailboxElementNotFound: AugmentedError; /** * Occurs when given key already exists in queue. **/ QueueDuplicateKey: AugmentedError; /** * Occurs when queue's element wasn't found in storage. **/ QueueElementNotFound: AugmentedError; /** * Occurs when queue's head should contain value, * but it's empty for some reason. **/ QueueHeadShouldBeSet: AugmentedError; /** * Occurs when queue's head should be empty, * but it contains value for some reason. **/ QueueHeadShouldNotBeSet: AugmentedError; /** * Occurs when queue's tail element contains link * to the next element. **/ QueueTailHasNextKey: AugmentedError; /** * Occurs when while searching queue's pre-tail, * element wasn't found. **/ QueueTailParentNotFound: AugmentedError; /** * Occurs when queue's tail should contain value, * but it's empty for some reason. **/ QueueTailShouldBeSet: AugmentedError; /** * Occurs when queue's tail should be empty, * but it contains value for some reason. **/ QueueTailShouldNotBeSet: AugmentedError; /** * Occurs when given value already exists in waitlist. **/ WaitlistDuplicateKey: AugmentedError; /** * Occurs when waitlist's element wasn't found in storage. **/ WaitlistElementNotFound: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; gearProgram: { CannotFindDataForPage: AugmentedError; DuplicateItem: AugmentedError; NotActiveProgram: AugmentedError; ProgramCodeNotFound: AugmentedError; ProgramNotFound: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; gearScheduler: { /** * Occurs when given task already exists in task pool. **/ DuplicateTask: AugmentedError; /** * Occurs when task wasn't found in storage. **/ TaskNotFound: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; gearVoucher: { /** * The origin is not eligible to execute call. **/ BadOrigin: AugmentedError; /** * Error trying transfer balance to/from voucher account. **/ BalanceTransfer: AugmentedError; /** * Voucher is disabled for code uploading, but requested. **/ CodeUploadingDisabled: AugmentedError; /** * Voucher update function tries to cut voucher ability of code upload. **/ CodeUploadingEnabled: AugmentedError; /** * Voucher issue/prolongation duration out of [min; max] constants. **/ DurationOutOfBounds: AugmentedError; /** * Destination program is not in whitelisted set for voucher. **/ InappropriateDestination: AugmentedError; /** * Voucher with given identifier doesn't exist for given spender id. **/ InexistentVoucher: AugmentedError; /** * Voucher still valid and couldn't be revoked. **/ IrrevocableYet: AugmentedError; /** * Try to whitelist more programs than allowed. **/ MaxProgramsLimitExceeded: AugmentedError; /** * Failed to query destination of the prepaid call. **/ UnknownDestination: AugmentedError; /** * Voucher has expired and couldn't be used. **/ VoucherExpired: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; } }