git.delta.rocks / unique-network / refs/commits / e38fb0c231d7

difftreelog

source

tests/src/interfaces/augment-api-errors.ts22.9 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { ApiTypes } from '@polkadot/api-base/types';56declare module '@polkadot/api-base/types/errors' {7  export interface AugmentedErrors<ApiType extends ApiTypes> {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       * Requested value is more than the approved61       **/62      ApprovedValueTooLow: AugmentedError<ApiType>;63      /**64       * Tried to approve more than owned65       **/66      CantApproveMoreThanOwned: AugmentedError<ApiType>;67      /**68       * Destroying only empty collections is allowed69       **/70      CantDestroyNotEmptyCollection: AugmentedError<ApiType>;71      /**72       * Exceeded max admin count73       **/74      CollectionAdminCountExceeded: AugmentedError<ApiType>;75      /**76       * Collection description can not be longer than 255 char.77       **/78      CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;79      /**80       * Tried to store more data than allowed in collection field81       **/82      CollectionFieldSizeExceeded: AugmentedError<ApiType>;83      /**84       * Tried to access an external collection with an internal API85       **/86      CollectionIsExternal: AugmentedError<ApiType>;87      /**88       * Tried to access an internal collection with an external API89       **/90      CollectionIsInternal: AugmentedError<ApiType>;91      /**92       * Collection limit bounds per collection exceeded93       **/94      CollectionLimitBoundsExceeded: AugmentedError<ApiType>;95      /**96       * Collection name can not be longer than 63 char.97       **/98      CollectionNameLimitExceeded: AugmentedError<ApiType>;99      /**100       * This collection does not exist.101       **/102      CollectionNotFound: AugmentedError<ApiType>;103      /**104       * Collection token limit exceeded105       **/106      CollectionTokenLimitExceeded: AugmentedError<ApiType>;107      /**108       * Token prefix can not be longer than 15 char.109       **/110      CollectionTokenPrefixLimitExceeded: AugmentedError<ApiType>;111      /**112       * Empty property keys are forbidden113       **/114      EmptyPropertyKey: AugmentedError<ApiType>;115      /**116       * Only ASCII letters, digits, and symbols `_`, `-`, and `.` are allowed117       **/118      InvalidCharacterInPropertyKey: AugmentedError<ApiType>;119      /**120       * Metadata flag frozen121       **/122      MetadataFlagFrozen: AugmentedError<ApiType>;123      /**124       * Sender parameter and item owner must be equal.125       **/126      MustBeTokenOwner: AugmentedError<ApiType>;127      /**128       * No permission to perform action129       **/130      NoPermission: AugmentedError<ApiType>;131      /**132       * Tried to store more property data than allowed133       **/134      NoSpaceForProperty: AugmentedError<ApiType>;135      /**136       * Insufficient funds to perform an action137       **/138      NotSufficientFounds: AugmentedError<ApiType>;139      /**140       * Tried to enable permissions which are only permitted to be disabled141       **/142      OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;143      /**144       * Property key is too long145       **/146      PropertyKeyIsTooLong: AugmentedError<ApiType>;147      /**148       * Tried to store more property keys than allowed149       **/150      PropertyLimitReached: AugmentedError<ApiType>;151      /**152       * Collection is not in mint mode.153       **/154      PublicMintingNotAllowed: AugmentedError<ApiType>;155      /**156       * Only tokens from specific collections may nest tokens under this one157       **/158      SourceCollectionIsNotAllowedToNest: AugmentedError<ApiType>;159      /**160       * Item does not exist161       **/162      TokenNotFound: AugmentedError<ApiType>;163      /**164       * Item is balance not enough165       **/166      TokenValueTooLow: AugmentedError<ApiType>;167      /**168       * Total collections bound exceeded.169       **/170      TotalCollectionsLimitExceeded: AugmentedError<ApiType>;171      /**172       * Collection settings not allowing items transferring173       **/174      TransferNotAllowed: AugmentedError<ApiType>;175      /**176       * Target collection doesn't support this operation177       **/178      UnsupportedOperation: AugmentedError<ApiType>;179      /**180       * User does not satisfy the nesting rule181       **/182      UserIsNotAllowedToNest: AugmentedError<ApiType>;183      /**184       * Generic error185       **/186      [key: string]: AugmentedError<ApiType>;187    };188    cumulusXcm: {189      /**190       * Generic error191       **/192      [key: string]: AugmentedError<ApiType>;193    };194    dmpQueue: {195      /**196       * The amount of weight given is possibly not enough for executing the message.197       **/198      OverLimit: AugmentedError<ApiType>;199      /**200       * The message index given is unknown.201       **/202      Unknown: AugmentedError<ApiType>;203      /**204       * Generic error205       **/206      [key: string]: AugmentedError<ApiType>;207    };208    ethereum: {209      /**210       * Signature is invalid.211       **/212      InvalidSignature: AugmentedError<ApiType>;213      /**214       * Pre-log is present, therefore transact is not allowed.215       **/216      PreLogExists: AugmentedError<ApiType>;217      /**218       * Generic error219       **/220      [key: string]: AugmentedError<ApiType>;221    };222    evm: {223      /**224       * Not enough balance to perform action225       **/226      BalanceLow: AugmentedError<ApiType>;227      /**228       * Calculating total fee overflowed229       **/230      FeeOverflow: AugmentedError<ApiType>;231      /**232       * Gas price is too low.233       **/234      GasPriceTooLow: AugmentedError<ApiType>;235      /**236       * Nonce is invalid237       **/238      InvalidNonce: AugmentedError<ApiType>;239      /**240       * Calculating total payment overflowed241       **/242      PaymentOverflow: AugmentedError<ApiType>;243      /**244       * Withdraw fee failed245       **/246      WithdrawFailed: AugmentedError<ApiType>;247      /**248       * Generic error249       **/250      [key: string]: AugmentedError<ApiType>;251    };252    evmCoderSubstrate: {253      OutOfFund: AugmentedError<ApiType>;254      OutOfGas: AugmentedError<ApiType>;255      /**256       * Generic error257       **/258      [key: string]: AugmentedError<ApiType>;259    };260    evmContractHelpers: {261      /**262       * This method is only executable by owner263       **/264      NoPermission: AugmentedError<ApiType>;265      /**266       * Generic error267       **/268      [key: string]: AugmentedError<ApiType>;269    };270    evmMigration: {271      AccountIsNotMigrating: AugmentedError<ApiType>;272      AccountNotEmpty: AugmentedError<ApiType>;273      /**274       * Generic error275       **/276      [key: string]: AugmentedError<ApiType>;277    };278    fungible: {279      /**280       * Fungible token does not support nesting.281       **/282      FungibleDisallowsNesting: AugmentedError<ApiType>;283      /**284       * Tried to set data for fungible item.285       **/286      FungibleItemsDontHaveData: AugmentedError<ApiType>;287      /**288       * Fungible tokens hold no ID, and the default value of TokenId for Fungible collection is 0.289       **/290      FungibleItemsHaveNoId: AugmentedError<ApiType>;291      /**292       * Not Fungible item data used to mint in Fungible collection.293       **/294      NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;295      /**296       * Setting item properties is not allowed.297       **/298      SettingPropertiesNotAllowed: AugmentedError<ApiType>;299      /**300       * Generic error301       **/302      [key: string]: AugmentedError<ApiType>;303    };304    nonfungible: {305      /**306       * Unable to burn NFT with children307       **/308      CantBurnNftWithChildren: AugmentedError<ApiType>;309      /**310       * Used amount > 1 with NFT311       **/312      NonfungibleItemsHaveNoAmount: AugmentedError<ApiType>;313      /**314       * Not Nonfungible item data used to mint in Nonfungible collection.315       **/316      NotNonfungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;317      /**318       * Generic error319       **/320      [key: string]: AugmentedError<ApiType>;321    };322    parachainSystem: {323      /**324       * The inherent which supplies the host configuration did not run this block325       **/326      HostConfigurationNotAvailable: AugmentedError<ApiType>;327      /**328       * No code upgrade has been authorized.329       **/330      NothingAuthorized: AugmentedError<ApiType>;331      /**332       * No validation function upgrade is currently scheduled.333       **/334      NotScheduled: AugmentedError<ApiType>;335      /**336       * Attempt to upgrade validation function while existing upgrade pending337       **/338      OverlappingUpgrades: AugmentedError<ApiType>;339      /**340       * Polkadot currently prohibits this parachain from upgrading its validation function341       **/342      ProhibitedByPolkadot: AugmentedError<ApiType>;343      /**344       * The supplied validation function has compiled into a blob larger than Polkadot is345       * willing to run346       **/347      TooBig: AugmentedError<ApiType>;348      /**349       * The given code upgrade has not been authorized.350       **/351      Unauthorized: AugmentedError<ApiType>;352      /**353       * The inherent which supplies the validation data did not run this block354       **/355      ValidationDataNotAvailable: AugmentedError<ApiType>;356      /**357       * Generic error358       **/359      [key: string]: AugmentedError<ApiType>;360    };361    polkadotXcm: {362      /**363       * The location is invalid since it already has a subscription from us.364       **/365      AlreadySubscribed: AugmentedError<ApiType>;366      /**367       * The given location could not be used (e.g. because it cannot be expressed in the368       * desired version of XCM).369       **/370      BadLocation: AugmentedError<ApiType>;371      /**372       * The version of the `Versioned` value used is not able to be interpreted.373       **/374      BadVersion: AugmentedError<ApiType>;375      /**376       * Could not re-anchor the assets to declare the fees for the destination chain.377       **/378      CannotReanchor: AugmentedError<ApiType>;379      /**380       * The destination `MultiLocation` provided cannot be inverted.381       **/382      DestinationNotInvertible: AugmentedError<ApiType>;383      /**384       * The assets to be sent are empty.385       **/386      Empty: AugmentedError<ApiType>;387      /**388       * The message execution fails the filter.389       **/390      Filtered: AugmentedError<ApiType>;391      /**392       * Origin is invalid for sending.393       **/394      InvalidOrigin: AugmentedError<ApiType>;395      /**396       * The referenced subscription could not be found.397       **/398      NoSubscription: AugmentedError<ApiType>;399      /**400       * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps401       * a lack of space for buffering the message.402       **/403      SendFailure: AugmentedError<ApiType>;404      /**405       * Too many assets have been attempted for transfer.406       **/407      TooManyAssets: AugmentedError<ApiType>;408      /**409       * The desired destination was unreachable, generally because there is a no way of routing410       * to it.411       **/412      Unreachable: AugmentedError<ApiType>;413      /**414       * The message's weight could not be determined.415       **/416      UnweighableMessage: AugmentedError<ApiType>;417      /**418       * Generic error419       **/420      [key: string]: AugmentedError<ApiType>;421    };422    refungible: {423      /**424       * Not Refungible item data used to mint in Refungible collection.425       **/426      NotRefungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;427      /**428       * Refungible token can't nest other tokens.429       **/430      RefungibleDisallowsNesting: AugmentedError<ApiType>;431      /**432       * Refungible token can't be repartitioned by user who isn't owns all pieces.433       **/434      RepartitionWhileNotOwningAllPieces: AugmentedError<ApiType>;435      /**436       * Setting item properties is not allowed.437       **/438      SettingPropertiesNotAllowed: AugmentedError<ApiType>;439      /**440       * Maximum refungibility exceeded.441       **/442      WrongRefungiblePieces: AugmentedError<ApiType>;443      /**444       * Generic error445       **/446      [key: string]: AugmentedError<ApiType>;447    };448    rmrkCore: {449      /**450       * Not the target owner of the sent NFT.451       **/452      CannotAcceptNonOwnedNft: AugmentedError<ApiType>;453      /**454       * Not the target owner of the sent NFT.455       **/456      CannotRejectNonOwnedNft: AugmentedError<ApiType>;457      /**458       * NFT was not sent and is not pending.459       **/460      CannotRejectNonPendingNft: AugmentedError<ApiType>;461      /**462       * If an NFT is sent to a descendant, that would form a nesting loop, an ouroboros.463       * Sending to self is redundant.464       **/465      CannotSendToDescendentOrSelf: AugmentedError<ApiType>;466      /**467       * Too many tokens created in the collection, no new ones are allowed.468       **/469      CollectionFullOrLocked: AugmentedError<ApiType>;470      /**471       * Only destroying collections without tokens is allowed.472       **/473      CollectionNotEmpty: AugmentedError<ApiType>;474      /**475       * Collection does not exist, has a wrong type, or does not map to a Unique ID.476       **/477      CollectionUnknown: AugmentedError<ApiType>;478      /**479       * Property of the type of RMRK collection could not be read successfully.480       **/481      CorruptedCollectionType: AugmentedError<ApiType>;482      /**483       * Could not find an ID for a collection. It is likely there were too many collections created on the chain, causing an overflow.484       **/485      NoAvailableCollectionId: AugmentedError<ApiType>;486      /**487       * Token does not exist, or there is no suitable ID for it, likely too many tokens were created in a collection, causing an overflow.488       **/489      NoAvailableNftId: AugmentedError<ApiType>;490      /**491       * Could not find an ID for the resource. It is likely there were too many resources created on an NFT, causing an overflow.492       **/493      NoAvailableResourceId: AugmentedError<ApiType>;494      /**495       * Token is marked as non-transferable, and thus cannot be transferred.496       **/497      NonTransferable: AugmentedError<ApiType>;498      /**499       * No permission to perform action.500       **/501      NoPermission: AugmentedError<ApiType>;502      /**503       * No such resource found.504       **/505      ResourceDoesntExist: AugmentedError<ApiType>;506      /**507       * Resource is not pending for the operation.508       **/509      ResourceNotPending: AugmentedError<ApiType>;510      /**511       * Could not find a property by the supplied key.512       **/513      RmrkPropertyIsNotFound: AugmentedError<ApiType>;514      /**515       * Too many symbols supplied as the property key. The maximum is [256](up_data_structs::MAX_PROPERTY_KEY_LENGTH).516       **/517      RmrkPropertyKeyIsTooLong: AugmentedError<ApiType>;518      /**519       * Too many bytes supplied as the property value. The maximum is [32768](up_data_structs::MAX_PROPERTY_VALUE_LENGTH).520       **/521      RmrkPropertyValueIsTooLong: AugmentedError<ApiType>;522      /**523       * Something went wrong when decoding encoded data from the storage.524       * Perhaps, there was a wrong key supplied for the type, or the data was improperly stored.525       **/526      UnableToDecodeRmrkData: AugmentedError<ApiType>;527      /**528       * Generic error529       **/530      [key: string]: AugmentedError<ApiType>;531    };532    rmrkEquip: {533      /**534       * Base collection linked to this ID does not exist.535       **/536      BaseDoesntExist: AugmentedError<ApiType>;537      /**538       * No Theme named "default" is associated with the Base.539       **/540      NeedsDefaultThemeFirst: AugmentedError<ApiType>;541      /**542       * Could not find an ID for a Base collection. It is likely there were too many collections created on the chain, causing an overflow.543       **/544      NoAvailableBaseId: AugmentedError<ApiType>;545      /**546       * Could not find a suitable ID for a Part, likely too many Part tokens were created in the Base, causing an overflow547       **/548      NoAvailablePartId: AugmentedError<ApiType>;549      /**550       * Cannot assign equippables to a fixed Part.551       **/552      NoEquippableOnFixedPart: AugmentedError<ApiType>;553      /**554       * Part linked to this ID does not exist.555       **/556      PartDoesntExist: AugmentedError<ApiType>;557      /**558       * No permission to perform action.559       **/560      PermissionError: AugmentedError<ApiType>;561      /**562       * Generic error563       **/564      [key: string]: AugmentedError<ApiType>;565    };566    scheduler: {567      /**568       * Failed to schedule a call569       **/570      FailedToSchedule: AugmentedError<ApiType>;571      /**572       * Cannot find the scheduled call.573       **/574      NotFound: AugmentedError<ApiType>;575      /**576       * Reschedule failed because it does not change scheduled time.577       **/578      RescheduleNoChange: AugmentedError<ApiType>;579      /**580       * Given target block number is in the past.581       **/582      TargetBlockNumberInPast: AugmentedError<ApiType>;583      /**584       * Generic error585       **/586      [key: string]: AugmentedError<ApiType>;587    };588    structure: {589      /**590       * While nesting, reached the breadth limit of nesting, exceeding the provided budget.591       **/592      BreadthLimit: AugmentedError<ApiType>;593      /**594       * While nesting, reached the depth limit of nesting, exceeding the provided budget.595       **/596      DepthLimit: AugmentedError<ApiType>;597      /**598       * While nesting, encountered an already checked account, detecting a loop.599       **/600      OuroborosDetected: AugmentedError<ApiType>;601      /**602       * Couldn't find the token owner that is itself a token.603       **/604      TokenNotFound: AugmentedError<ApiType>;605      /**606       * Generic error607       **/608      [key: string]: AugmentedError<ApiType>;609    };610    sudo: {611      /**612       * Sender must be the Sudo account613       **/614      RequireSudo: AugmentedError<ApiType>;615      /**616       * Generic error617       **/618      [key: string]: AugmentedError<ApiType>;619    };620    system: {621      /**622       * The origin filter prevent the call to be dispatched.623       **/624      CallFiltered: AugmentedError<ApiType>;625      /**626       * Failed to extract the runtime version from the new runtime.627       * 628       * Either calling `Core_version` or decoding `RuntimeVersion` failed.629       **/630      FailedToExtractRuntimeVersion: AugmentedError<ApiType>;631      /**632       * The name of specification does not match between the current runtime633       * and the new runtime.634       **/635      InvalidSpecName: AugmentedError<ApiType>;636      /**637       * Suicide called when the account has non-default composite data.638       **/639      NonDefaultComposite: AugmentedError<ApiType>;640      /**641       * There is a non-zero reference count preventing the account from being purged.642       **/643      NonZeroRefCount: AugmentedError<ApiType>;644      /**645       * The specification version is not allowed to decrease between the current runtime646       * and the new runtime.647       **/648      SpecVersionNeedsToIncrease: AugmentedError<ApiType>;649      /**650       * Generic error651       **/652      [key: string]: AugmentedError<ApiType>;653    };654    treasury: {655      /**656       * Proposer's balance is too low.657       **/658      InsufficientProposersBalance: AugmentedError<ApiType>;659      /**660       * No proposal or bounty at that index.661       **/662      InvalidIndex: AugmentedError<ApiType>;663      /**664       * Proposal has not been approved.665       **/666      ProposalNotApproved: AugmentedError<ApiType>;667      /**668       * Too many approvals in the queue.669       **/670      TooManyApprovals: AugmentedError<ApiType>;671      /**672       * Generic error673       **/674      [key: string]: AugmentedError<ApiType>;675    };676    unique: {677      /**678       * Decimal_points parameter must be lower than [`up_data_structs::MAX_DECIMAL_POINTS`].679       **/680      CollectionDecimalPointLimitExceeded: AugmentedError<ApiType>;681      /**682       * This address is not set as sponsor, use setCollectionSponsor first.683       **/684      ConfirmUnsetSponsorFail: AugmentedError<ApiType>;685      /**686       * Length of items properties must be greater than 0.687       **/688      EmptyArgument: AugmentedError<ApiType>;689      /**690       * Repertition is only supported by refungible collection.691       **/692      RepartitionCalledOnNonRefungibleCollection: AugmentedError<ApiType>;693      /**694       * Generic error695       **/696      [key: string]: AugmentedError<ApiType>;697    };698    vesting: {699      /**700       * The vested transfer amount is too low701       **/702      AmountLow: AugmentedError<ApiType>;703      /**704       * Insufficient amount of balance to lock705       **/706      InsufficientBalanceToLock: AugmentedError<ApiType>;707      /**708       * Failed because the maximum vesting schedules was exceeded709       **/710      MaxVestingSchedulesExceeded: AugmentedError<ApiType>;711      /**712       * This account have too many vesting schedules713       **/714      TooManyVestingSchedules: AugmentedError<ApiType>;715      /**716       * Vesting period is zero717       **/718      ZeroVestingPeriod: AugmentedError<ApiType>;719      /**720       * Number of vests is zero721       **/722      ZeroVestingPeriodCount: AugmentedError<ApiType>;723      /**724       * Generic error725       **/726      [key: string]: AugmentedError<ApiType>;727    };728    xcmpQueue: {729      /**730       * Bad overweight index.731       **/732      BadOverweightIndex: AugmentedError<ApiType>;733      /**734       * Bad XCM data.735       **/736      BadXcm: AugmentedError<ApiType>;737      /**738       * Bad XCM origin.739       **/740      BadXcmOrigin: AugmentedError<ApiType>;741      /**742       * Failed to send XCM message.743       **/744      FailedToSend: AugmentedError<ApiType>;745      /**746       * Provided weight is possibly not enough to execute the message.747       **/748      WeightOverLimit: AugmentedError<ApiType>;749      /**750       * Generic error751       **/752      [key: string]: AugmentedError<ApiType>;753    };754  } // AugmentedErrors755} // declare module