1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api/types';56declare module '@polkadot/api/types/errors' {7 export interface AugmentedErrors<ApiType> {8 balances: {9 /**10 * Beneficiary account must pre-exist11 **/12 DeadAccount: AugmentedError<ApiType>;13 /**14 * Value too low to create account due to existential deposit15 **/16 ExistentialDeposit: AugmentedError<ApiType>;17 /**18 * A vesting schedule already exists for this account19 **/20 ExistingVestingSchedule: AugmentedError<ApiType>;21 /**22 * Balance too low to send value23 **/24 InsufficientBalance: AugmentedError<ApiType>;25 /**26 * Transfer/payment would kill account27 **/28 KeepAlive: AugmentedError<ApiType>;29 /**30 * Account liquidity restrictions prevent withdrawal31 **/32 LiquidityRestrictions: AugmentedError<ApiType>;33 /**34 * Number of named reserves exceed MaxReserves35 **/36 TooManyReserves: AugmentedError<ApiType>;37 /**38 * Vesting balance too high to send value39 **/40 VestingBalance: AugmentedError<ApiType>;41 /**42 * Generic error43 **/44 [key: string]: AugmentedError<ApiType>;45 };46 common: {47 /**48 * Account token limit exceeded per collection49 **/50 AccountTokenLimitExceeded: AugmentedError<ApiType>;51 /**52 * Can't transfer tokens to ethereum zero address53 **/54 AddressIsZero: AugmentedError<ApiType>;55 /**56 * Address is not in allow list.57 **/58 AddressNotInAllowlist: AugmentedError<ApiType>;59 /**60 * Tried to approve more than owned61 **/62 CantApproveMoreThanOwned: AugmentedError<ApiType>;63 /**64 * Exceeded max admin amount65 **/66 CollectionAdminAmountExceeded: AugmentedError<ApiType>;67 /**68 * Collection description can not be longer than 255 char.69 **/70 CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;71 /**72 * Collection name can not be longer than 63 char.73 **/74 CollectionNameLimitExceeded: AugmentedError<ApiType>;75 /**76 * This collection does not exist.77 **/78 CollectionNotFound: AugmentedError<ApiType>;79 /**80 * Collection token limit exceeded81 **/82 CollectionTokenLimitExceeded: AugmentedError<ApiType>;83 /**84 * Token prefix can not be longer than 15 char.85 **/86 CollectionTokenPrefixLimitExceeded: AugmentedError<ApiType>;87 /**88 * Metadata flag frozen89 **/90 MetadataFlagFrozen: AugmentedError<ApiType>;91 /**92 * Sender parameter and item owner must be equal.93 **/94 MustBeTokenOwner: AugmentedError<ApiType>;95 /**96 * No permission to perform action97 **/98 NoPermission: AugmentedError<ApiType>;99 /**100 * Collection is not in mint mode.101 **/102 PublicMintingNotAllowed: AugmentedError<ApiType>;103 /**104 * Item not exists.105 **/106 TokenNotFound: AugmentedError<ApiType>;107 /**108 * Requested value more than approved.109 **/110 TokenValueNotEnough: AugmentedError<ApiType>;111 /**112 * Item balance not enough.113 **/114 TokenValueTooLow: AugmentedError<ApiType>;115 /**116 * variable_data exceeded data limit.117 **/118 TokenVariableDataLimitExceeded: AugmentedError<ApiType>;119 /**120 * Total collections bound exceeded.121 **/122 TotalCollectionsLimitExceeded: AugmentedError<ApiType>;123 /**124 * Collection settings not allowing items transferring125 **/126 TransferNotAllowed: AugmentedError<ApiType>;127 /**128 * Target collection doesn't supports this operation129 **/130 UnsupportedOperation: AugmentedError<ApiType>;131 /**132 * Generic error133 **/134 [key: string]: AugmentedError<ApiType>;135 };136 cumulusXcm: {137 /**138 * Generic error139 **/140 [key: string]: AugmentedError<ApiType>;141 };142 dmpQueue: {143 /**144 * The amount of weight given is possibly not enough for executing the message.145 **/146 OverLimit: AugmentedError<ApiType>;147 /**148 * The message index given is unknown.149 **/150 Unknown: AugmentedError<ApiType>;151 /**152 * Generic error153 **/154 [key: string]: AugmentedError<ApiType>;155 };156 ethereum: {157 /**158 * Signature is invalid.159 **/160 InvalidSignature: AugmentedError<ApiType>;161 /**162 * Pre-log is present, therefore transact is not allowed.163 **/164 PreLogExists: AugmentedError<ApiType>;165 /**166 * Generic error167 **/168 [key: string]: AugmentedError<ApiType>;169 };170 evm: {171 /**172 * Not enough balance to perform action173 **/174 BalanceLow: AugmentedError<ApiType>;175 /**176 * Calculating total fee overflowed177 **/178 FeeOverflow: AugmentedError<ApiType>;179 /**180 * Gas price is too low.181 **/182 GasPriceTooLow: AugmentedError<ApiType>;183 /**184 * Nonce is invalid185 **/186 InvalidNonce: AugmentedError<ApiType>;187 /**188 * Calculating total payment overflowed189 **/190 PaymentOverflow: AugmentedError<ApiType>;191 /**192 * Withdraw fee failed193 **/194 WithdrawFailed: AugmentedError<ApiType>;195 /**196 * Generic error197 **/198 [key: string]: AugmentedError<ApiType>;199 };200 evmCoderSubstrate: {201 OutOfFund: AugmentedError<ApiType>;202 OutOfGas: AugmentedError<ApiType>;203 /**204 * Generic error205 **/206 [key: string]: AugmentedError<ApiType>;207 };208 evmContractHelpers: {209 /**210 * This method is only executable by owner211 **/212 NoPermission: AugmentedError<ApiType>;213 /**214 * Generic error215 **/216 [key: string]: AugmentedError<ApiType>;217 };218 evmMigration: {219 AccountIsNotMigrating: AugmentedError<ApiType>;220 AccountNotEmpty: AugmentedError<ApiType>;221 /**222 * Generic error223 **/224 [key: string]: AugmentedError<ApiType>;225 };226 fungible: {227 /**228 * Tried to set data for fungible item229 **/230 FungibleItemsHaveData: AugmentedError<ApiType>;231 /**232 * Not default id passed as TokenId argument233 **/234 FungibleItemsHaveNoId: AugmentedError<ApiType>;235 /**236 * Not Fungible item data used to mint in Fungible collection.237 **/238 NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;239 /**240 * Generic error241 **/242 [key: string]: AugmentedError<ApiType>;243 };244 nft: {245 /**246 * Decimal_points parameter must be lower than MAX_DECIMAL_POINTS constant, currently it is 30.247 **/248 CollectionDecimalPointLimitExceeded: AugmentedError<ApiType>;249 /**250 * Collection limit bounds per collection exceeded251 **/252 CollectionLimitBoundsExceeded: AugmentedError<ApiType>;253 /**254 * This address is not set as sponsor, use setCollectionSponsor first.255 **/256 ConfirmUnsetSponsorFail: AugmentedError<ApiType>;257 /**258 * Length of items properties must be greater than 0.259 **/260 EmptyArgument: AugmentedError<ApiType>;261 /**262 * Tried to enable permissions which are only permitted to be disabled263 **/264 OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;265 /**266 * Generic error267 **/268 [key: string]: AugmentedError<ApiType>;269 };270 nonfungible: {271 /**272 * Used amount > 1 with NFT273 **/274 NonfungibleItemsHaveNoAmount: AugmentedError<ApiType>;275 /**276 * Not Nonfungible item data used to mint in Nonfungible collection.277 **/278 NotNonfungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;279 /**280 * Generic error281 **/282 [key: string]: AugmentedError<ApiType>;283 };284 parachainSystem: {285 /**286 * The inherent which supplies the host configuration did not run this block287 **/288 HostConfigurationNotAvailable: AugmentedError<ApiType>;289 /**290 * No code upgrade has been authorized.291 **/292 NothingAuthorized: AugmentedError<ApiType>;293 /**294 * No validation function upgrade is currently scheduled.295 **/296 NotScheduled: AugmentedError<ApiType>;297 /**298 * Attempt to upgrade validation function while existing upgrade pending299 **/300 OverlappingUpgrades: AugmentedError<ApiType>;301 /**302 * Polkadot currently prohibits this parachain from upgrading its validation function303 **/304 ProhibitedByPolkadot: AugmentedError<ApiType>;305 /**306 * The supplied validation function has compiled into a blob larger than Polkadot is307 * willing to run308 **/309 TooBig: AugmentedError<ApiType>;310 /**311 * The given code upgrade has not been authorized.312 **/313 Unauthorized: AugmentedError<ApiType>;314 /**315 * The inherent which supplies the validation data did not run this block316 **/317 ValidationDataNotAvailable: AugmentedError<ApiType>;318 /**319 * Generic error320 **/321 [key: string]: AugmentedError<ApiType>;322 };323 polkadotXcm: {324 /**325 * The location is invalid since it already has a subscription from us.326 **/327 AlreadySubscribed: AugmentedError<ApiType>;328 /**329 * The given location could not be used (e.g. because it cannot be expressed in the330 * desired version of XCM).331 **/332 BadLocation: AugmentedError<ApiType>;333 /**334 * The version of the `Versioned` value used is not able to be interpreted.335 **/336 BadVersion: AugmentedError<ApiType>;337 /**338 * Could not re-anchor the assets to declare the fees for the destination chain.339 **/340 CannotReanchor: AugmentedError<ApiType>;341 /**342 * The destination `MultiLocation` provided cannot be inverted.343 **/344 DestinationNotInvertible: AugmentedError<ApiType>;345 /**346 * The assets to be sent are empty.347 **/348 Empty: AugmentedError<ApiType>;349 /**350 * The message execution fails the filter.351 **/352 Filtered: AugmentedError<ApiType>;353 /**354 * Origin is invalid for sending.355 **/356 InvalidOrigin: AugmentedError<ApiType>;357 /**358 * The referenced subscription could not be found.359 **/360 NoSubscription: AugmentedError<ApiType>;361 /**362 * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps363 * a lack of space for buffering the message.364 **/365 SendFailure: AugmentedError<ApiType>;366 /**367 * Too many assets have been attempted for transfer.368 **/369 TooManyAssets: AugmentedError<ApiType>;370 /**371 * The desired destination was unreachable, generally because there is a no way of routing372 * to it.373 **/374 Unreachable: AugmentedError<ApiType>;375 /**376 * The message's weight could not be determined.377 **/378 UnweighableMessage: AugmentedError<ApiType>;379 /**380 * Generic error381 **/382 [key: string]: AugmentedError<ApiType>;383 };384 refungible: {385 /**386 * Not Refungible item data used to mint in Refungible collection.387 **/388 NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;389 /**390 * Maximum refungibility exceeded391 **/392 WrongRefungiblePieces: AugmentedError<ApiType>;393 /**394 * Generic error395 **/396 [key: string]: AugmentedError<ApiType>;397 };398 scheduler: {399 /**400 * Failed to schedule a call401 **/402 FailedToSchedule: AugmentedError<ApiType>;403 /**404 * Cannot find the scheduled call.405 **/406 NotFound: AugmentedError<ApiType>;407 /**408 * Reschedule failed because it does not change scheduled time.409 **/410 RescheduleNoChange: AugmentedError<ApiType>;411 /**412 * Given target block number is in the past.413 **/414 TargetBlockNumberInPast: AugmentedError<ApiType>;415 /**416 * Generic error417 **/418 [key: string]: AugmentedError<ApiType>;419 };420 sudo: {421 /**422 * Sender must be the Sudo account423 **/424 RequireSudo: AugmentedError<ApiType>;425 /**426 * Generic error427 **/428 [key: string]: AugmentedError<ApiType>;429 };430 system: {431 /**432 * Failed to extract the runtime version from the new runtime.433 * 434 * Either calling `Core_version` or decoding `RuntimeVersion` failed.435 **/436 FailedToExtractRuntimeVersion: AugmentedError<ApiType>;437 /**438 * The name of specification does not match between the current runtime439 * and the new runtime.440 **/441 InvalidSpecName: AugmentedError<ApiType>;442 /**443 * Suicide called when the account has non-default composite data.444 **/445 NonDefaultComposite: AugmentedError<ApiType>;446 /**447 * There is a non-zero reference count preventing the account from being purged.448 **/449 NonZeroRefCount: AugmentedError<ApiType>;450 /**451 * The specification version is not allowed to decrease between the current runtime452 * and the new runtime.453 **/454 SpecVersionNeedsToIncrease: AugmentedError<ApiType>;455 /**456 * Generic error457 **/458 [key: string]: AugmentedError<ApiType>;459 };460 treasury: {461 /**462 * Proposer's balance is too low.463 **/464 InsufficientProposersBalance: AugmentedError<ApiType>;465 /**466 * No proposal or bounty at that index.467 **/468 InvalidIndex: AugmentedError<ApiType>;469 /**470 * Too many approvals in the queue.471 **/472 TooManyApprovals: AugmentedError<ApiType>;473 /**474 * Generic error475 **/476 [key: string]: AugmentedError<ApiType>;477 };478 vesting: {479 /**480 * Amount being transferred is too low to create a vesting schedule.481 **/482 AmountLow: AugmentedError<ApiType>;483 /**484 * The account already has `MaxVestingSchedules` count of schedules and thus485 * cannot add another one. Consider merging existing schedules in order to add another.486 **/487 AtMaxVestingSchedules: AugmentedError<ApiType>;488 /**489 * Failed to create a new schedule because some parameter was invalid.490 **/491 InvalidScheduleParams: AugmentedError<ApiType>;492 /**493 * The account given is not vesting.494 **/495 NotVesting: AugmentedError<ApiType>;496 /**497 * An index was out of bounds of the vesting schedules.498 **/499 ScheduleIndexOutOfBounds: AugmentedError<ApiType>;500 /**501 * Generic error502 **/503 [key: string]: AugmentedError<ApiType>;504 };505 xcmpQueue: {506 /**507 * Bad XCM data.508 **/509 BadXcm: AugmentedError<ApiType>;510 /**511 * Bad XCM origin.512 **/513 BadXcmOrigin: AugmentedError<ApiType>;514 /**515 * Failed to send XCM message.516 **/517 FailedToSend: AugmentedError<ApiType>;518 /**519 * Generic error520 **/521 [key: string]: AugmentedError<ApiType>;522 };523 }524525 export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {526 [key: string]: ModuleErrors<ApiType>;527 }528}difftreelog
source
tests/src/interfaces/augment-api-errors.ts15.1 KiBsourcehistory