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

difftreelog

source

tests/src/interfaces/augment-api-errors.ts21.4 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34// import type lookup before we augment - in some environments5// this is required to allow for ambient/previous definitions6import '@polkadot/api-base/types/errors';78import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';910export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;1112declare module '@polkadot/api-base/types/errors' {13  interface AugmentedErrors<ApiType extends ApiTypes> {14    balances: {15      /**16       * Beneficiary account must pre-exist17       **/18      DeadAccount: AugmentedError<ApiType>;19      /**20       * Value too low to create account due to existential deposit21       **/22      ExistentialDeposit: AugmentedError<ApiType>;23      /**24       * A vesting schedule already exists for this account25       **/26      ExistingVestingSchedule: AugmentedError<ApiType>;27      /**28       * Balance too low to send value29       **/30      InsufficientBalance: AugmentedError<ApiType>;31      /**32       * Transfer/payment would kill account33       **/34      KeepAlive: AugmentedError<ApiType>;35      /**36       * Account liquidity restrictions prevent withdrawal37       **/38      LiquidityRestrictions: AugmentedError<ApiType>;39      /**40       * Number of named reserves exceed MaxReserves41       **/42      TooManyReserves: AugmentedError<ApiType>;43      /**44       * Vesting balance too high to send value45       **/46      VestingBalance: AugmentedError<ApiType>;47      /**48       * Generic error49       **/50      [key: string]: AugmentedError<ApiType>;51    };52    common: {53      /**54       * Account token limit exceeded per collection55       **/56      AccountTokenLimitExceeded: AugmentedError<ApiType>;57      /**58       * Can't transfer tokens to ethereum zero address59       **/60      AddressIsZero: AugmentedError<ApiType>;61      /**62       * Address is not in allow list.63       **/64      AddressNotInAllowlist: AugmentedError<ApiType>;65      /**66       * Requested value is more than the approved67       **/68      ApprovedValueTooLow: AugmentedError<ApiType>;69      /**70       * Tried to approve more than owned71       **/72      CantApproveMoreThanOwned: AugmentedError<ApiType>;73      /**74       * Destroying only empty collections is allowed75       **/76      CantDestroyNotEmptyCollection: AugmentedError<ApiType>;77      /**78       * Exceeded max admin count79       **/80      CollectionAdminCountExceeded: AugmentedError<ApiType>;81      /**82       * Collection description can not be longer than 255 char.83       **/84      CollectionDescriptionLimitExceeded: AugmentedError<ApiType>;85      /**86       * Tried to store more data than allowed in collection field87       **/88      CollectionFieldSizeExceeded: AugmentedError<ApiType>;89      /**90       * Tried to access an external collection with an internal API91       **/92      CollectionIsExternal: AugmentedError<ApiType>;93      /**94       * Tried to access an internal collection with an external API95       **/96      CollectionIsInternal: AugmentedError<ApiType>;97      /**98       * Collection limit bounds per collection exceeded99       **/100      CollectionLimitBoundsExceeded: AugmentedError<ApiType>;101      /**102       * Collection name can not be longer than 63 char.103       **/104      CollectionNameLimitExceeded: AugmentedError<ApiType>;105      /**106       * This collection does not exist.107       **/108      CollectionNotFound: AugmentedError<ApiType>;109      /**110       * Collection token limit exceeded111       **/112      CollectionTokenLimitExceeded: AugmentedError<ApiType>;113      /**114       * Token prefix can not be longer than 15 char.115       **/116      CollectionTokenPrefixLimitExceeded: AugmentedError<ApiType>;117      /**118       * Empty property keys are forbidden119       **/120      EmptyPropertyKey: AugmentedError<ApiType>;121      /**122       * Only ASCII letters, digits, and symbols `_`, `-`, and `.` are allowed123       **/124      InvalidCharacterInPropertyKey: AugmentedError<ApiType>;125      /**126       * Metadata flag frozen127       **/128      MetadataFlagFrozen: AugmentedError<ApiType>;129      /**130       * Sender parameter and item owner must be equal.131       **/132      MustBeTokenOwner: AugmentedError<ApiType>;133      /**134       * No permission to perform action135       **/136      NoPermission: AugmentedError<ApiType>;137      /**138       * Tried to store more property data than allowed139       **/140      NoSpaceForProperty: AugmentedError<ApiType>;141      /**142       * Insufficient funds to perform an action143       **/144      NotSufficientFounds: AugmentedError<ApiType>;145      /**146       * Tried to enable permissions which are only permitted to be disabled147       **/148      OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;149      /**150       * Property key is too long151       **/152      PropertyKeyIsTooLong: AugmentedError<ApiType>;153      /**154       * Tried to store more property keys than allowed155       **/156      PropertyLimitReached: AugmentedError<ApiType>;157      /**158       * Collection is not in mint mode.159       **/160      PublicMintingNotAllowed: AugmentedError<ApiType>;161      /**162       * Only tokens from specific collections may nest tokens under this one163       **/164      SourceCollectionIsNotAllowedToNest: AugmentedError<ApiType>;165      /**166       * Item does not exist167       **/168      TokenNotFound: AugmentedError<ApiType>;169      /**170       * Item is balance not enough171       **/172      TokenValueTooLow: AugmentedError<ApiType>;173      /**174       * Total collections bound exceeded.175       **/176      TotalCollectionsLimitExceeded: AugmentedError<ApiType>;177      /**178       * Collection settings not allowing items transferring179       **/180      TransferNotAllowed: AugmentedError<ApiType>;181      /**182       * The operation is not supported183       **/184      UnsupportedOperation: AugmentedError<ApiType>;185      /**186       * User does not satisfy the nesting rule187       **/188      UserIsNotAllowedToNest: AugmentedError<ApiType>;189      /**190       * Generic error191       **/192      [key: string]: AugmentedError<ApiType>;193    };194    cumulusXcm: {195      /**196       * Generic error197       **/198      [key: string]: AugmentedError<ApiType>;199    };200    dmpQueue: {201      /**202       * The amount of weight given is possibly not enough for executing the message.203       **/204      OverLimit: AugmentedError<ApiType>;205      /**206       * The message index given is unknown.207       **/208      Unknown: AugmentedError<ApiType>;209      /**210       * Generic error211       **/212      [key: string]: AugmentedError<ApiType>;213    };214    ethereum: {215      /**216       * Signature is invalid.217       **/218      InvalidSignature: AugmentedError<ApiType>;219      /**220       * Pre-log is present, therefore transact is not allowed.221       **/222      PreLogExists: AugmentedError<ApiType>;223      /**224       * Generic error225       **/226      [key: string]: AugmentedError<ApiType>;227    };228    evm: {229      /**230       * Not enough balance to perform action231       **/232      BalanceLow: AugmentedError<ApiType>;233      /**234       * Calculating total fee overflowed235       **/236      FeeOverflow: AugmentedError<ApiType>;237      /**238       * Gas price is too low.239       **/240      GasPriceTooLow: AugmentedError<ApiType>;241      /**242       * Nonce is invalid243       **/244      InvalidNonce: AugmentedError<ApiType>;245      /**246       * Calculating total payment overflowed247       **/248      PaymentOverflow: AugmentedError<ApiType>;249      /**250       * Withdraw fee failed251       **/252      WithdrawFailed: AugmentedError<ApiType>;253      /**254       * Generic error255       **/256      [key: string]: AugmentedError<ApiType>;257    };258    evmCoderSubstrate: {259      OutOfFund: AugmentedError<ApiType>;260      OutOfGas: AugmentedError<ApiType>;261      /**262       * Generic error263       **/264      [key: string]: AugmentedError<ApiType>;265    };266    evmContractHelpers: {267      /**268       * No pending sponsor for contract.269       **/270      NoPendingSponsor: AugmentedError<ApiType>;271      /**272       * This method is only executable by contract owner273       **/274      NoPermission: AugmentedError<ApiType>;275      /**276       * Generic error277       **/278      [key: string]: AugmentedError<ApiType>;279    };280    evmMigration: {281      /**282       * Migration of this account is not yet started, or already finished.283       **/284      AccountIsNotMigrating: AugmentedError<ApiType>;285      /**286       * Can only migrate to empty address.287       **/288      AccountNotEmpty: AugmentedError<ApiType>;289      /**290       * Generic error291       **/292      [key: string]: AugmentedError<ApiType>;293    };294    fungible: {295      /**296       * Fungible token does not support nesting.297       **/298      FungibleDisallowsNesting: AugmentedError<ApiType>;299      /**300       * Tried to set data for fungible item.301       **/302      FungibleItemsDontHaveData: AugmentedError<ApiType>;303      /**304       * Fungible tokens hold no ID, and the default value of TokenId for Fungible collection is 0.305       **/306      FungibleItemsHaveNoId: AugmentedError<ApiType>;307      /**308       * Not Fungible item data used to mint in Fungible collection.309       **/310      NotFungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;311      /**312       * Setting item properties is not allowed.313       **/314      SettingPropertiesNotAllowed: AugmentedError<ApiType>;315      /**316       * Generic error317       **/318      [key: string]: AugmentedError<ApiType>;319    };320    nonfungible: {321      /**322       * Unable to burn NFT with children323       **/324      CantBurnNftWithChildren: AugmentedError<ApiType>;325      /**326       * Used amount > 1 with NFT327       **/328      NonfungibleItemsHaveNoAmount: AugmentedError<ApiType>;329      /**330       * Not Nonfungible item data used to mint in Nonfungible collection.331       **/332      NotNonfungibleDataUsedToMintFungibleCollectionToken: AugmentedError<ApiType>;333      /**334       * Generic error335       **/336      [key: string]: AugmentedError<ApiType>;337    };338    parachainSystem: {339      /**340       * The inherent which supplies the host configuration did not run this block341       **/342      HostConfigurationNotAvailable: AugmentedError<ApiType>;343      /**344       * No code upgrade has been authorized.345       **/346      NothingAuthorized: AugmentedError<ApiType>;347      /**348       * No validation function upgrade is currently scheduled.349       **/350      NotScheduled: AugmentedError<ApiType>;351      /**352       * Attempt to upgrade validation function while existing upgrade pending353       **/354      OverlappingUpgrades: AugmentedError<ApiType>;355      /**356       * Polkadot currently prohibits this parachain from upgrading its validation function357       **/358      ProhibitedByPolkadot: AugmentedError<ApiType>;359      /**360       * The supplied validation function has compiled into a blob larger than Polkadot is361       * willing to run362       **/363      TooBig: AugmentedError<ApiType>;364      /**365       * The given code upgrade has not been authorized.366       **/367      Unauthorized: AugmentedError<ApiType>;368      /**369       * The inherent which supplies the validation data did not run this block370       **/371      ValidationDataNotAvailable: AugmentedError<ApiType>;372      /**373       * Generic error374       **/375      [key: string]: AugmentedError<ApiType>;376    };377    polkadotXcm: {378      /**379       * The location is invalid since it already has a subscription from us.380       **/381      AlreadySubscribed: AugmentedError<ApiType>;382      /**383       * The given location could not be used (e.g. because it cannot be expressed in the384       * desired version of XCM).385       **/386      BadLocation: AugmentedError<ApiType>;387      /**388       * The version of the `Versioned` value used is not able to be interpreted.389       **/390      BadVersion: AugmentedError<ApiType>;391      /**392       * Could not re-anchor the assets to declare the fees for the destination chain.393       **/394      CannotReanchor: AugmentedError<ApiType>;395      /**396       * The destination `MultiLocation` provided cannot be inverted.397       **/398      DestinationNotInvertible: AugmentedError<ApiType>;399      /**400       * The assets to be sent are empty.401       **/402      Empty: AugmentedError<ApiType>;403      /**404       * The message execution fails the filter.405       **/406      Filtered: AugmentedError<ApiType>;407      /**408       * Origin is invalid for sending.409       **/410      InvalidOrigin: AugmentedError<ApiType>;411      /**412       * The referenced subscription could not be found.413       **/414      NoSubscription: AugmentedError<ApiType>;415      /**416       * There was some other issue (i.e. not to do with routing) in sending the message. Perhaps417       * a lack of space for buffering the message.418       **/419      SendFailure: AugmentedError<ApiType>;420      /**421       * Too many assets have been attempted for transfer.422       **/423      TooManyAssets: AugmentedError<ApiType>;424      /**425       * The desired destination was unreachable, generally because there is a no way of routing426       * to it.427       **/428      Unreachable: AugmentedError<ApiType>;429      /**430       * The message's weight could not be determined.431       **/432      UnweighableMessage: AugmentedError<ApiType>;433      /**434       * Generic error435       **/436      [key: string]: AugmentedError<ApiType>;437    };438    structure: {439      /**440       * While nesting, reached the breadth limit of nesting, exceeding the provided budget.441       **/442      BreadthLimit: AugmentedError<ApiType>;443      /**444       * While nesting, reached the depth limit of nesting, exceeding the provided budget.445       **/446      DepthLimit: AugmentedError<ApiType>;447      /**448       * While nesting, encountered an already checked account, detecting a loop.449       **/450      OuroborosDetected: AugmentedError<ApiType>;451      /**452       * Couldn't find the token owner that is itself a token.453       **/454      TokenNotFound: AugmentedError<ApiType>;455      /**456       * Generic error457       **/458      [key: string]: AugmentedError<ApiType>;459    };460    sudo: {461      /**462       * Sender must be the Sudo account463       **/464      RequireSudo: AugmentedError<ApiType>;465      /**466       * Generic error467       **/468      [key: string]: AugmentedError<ApiType>;469    };470    system: {471      /**472       * The origin filter prevent the call to be dispatched.473       **/474      CallFiltered: AugmentedError<ApiType>;475      /**476       * Failed to extract the runtime version from the new runtime.477       * 478       * Either calling `Core_version` or decoding `RuntimeVersion` failed.479       **/480      FailedToExtractRuntimeVersion: AugmentedError<ApiType>;481      /**482       * The name of specification does not match between the current runtime483       * and the new runtime.484       **/485      InvalidSpecName: AugmentedError<ApiType>;486      /**487       * Suicide called when the account has non-default composite data.488       **/489      NonDefaultComposite: AugmentedError<ApiType>;490      /**491       * There is a non-zero reference count preventing the account from being purged.492       **/493      NonZeroRefCount: AugmentedError<ApiType>;494      /**495       * The specification version is not allowed to decrease between the current runtime496       * and the new runtime.497       **/498      SpecVersionNeedsToIncrease: AugmentedError<ApiType>;499      /**500       * Generic error501       **/502      [key: string]: AugmentedError<ApiType>;503    };504    tokens: {505      /**506       * Cannot convert Amount into Balance type507       **/508      AmountIntoBalanceFailed: AugmentedError<ApiType>;509      /**510       * The balance is too low511       **/512      BalanceTooLow: AugmentedError<ApiType>;513      /**514       * Beneficiary account must pre-exist515       **/516      DeadAccount: AugmentedError<ApiType>;517      /**518       * Value too low to create account due to existential deposit519       **/520      ExistentialDeposit: AugmentedError<ApiType>;521      /**522       * Transfer/payment would kill account523       **/524      KeepAlive: AugmentedError<ApiType>;525      /**526       * Failed because liquidity restrictions due to locking527       **/528      LiquidityRestrictions: AugmentedError<ApiType>;529      /**530       * Failed because the maximum locks was exceeded531       **/532      MaxLocksExceeded: AugmentedError<ApiType>;533      TooManyReserves: AugmentedError<ApiType>;534      /**535       * Generic error536       **/537      [key: string]: AugmentedError<ApiType>;538    };539    treasury: {540      /**541       * The spend origin is valid but the amount it is allowed to spend is lower than the542       * amount to be spent.543       **/544      InsufficientPermission: AugmentedError<ApiType>;545      /**546       * Proposer's balance is too low.547       **/548      InsufficientProposersBalance: AugmentedError<ApiType>;549      /**550       * No proposal or bounty at that index.551       **/552      InvalidIndex: AugmentedError<ApiType>;553      /**554       * Proposal has not been approved.555       **/556      ProposalNotApproved: AugmentedError<ApiType>;557      /**558       * Too many approvals in the queue.559       **/560      TooManyApprovals: AugmentedError<ApiType>;561      /**562       * Generic error563       **/564      [key: string]: AugmentedError<ApiType>;565    };566    unique: {567      /**568       * Decimal_points parameter must be lower than [`up_data_structs::MAX_DECIMAL_POINTS`].569       **/570      CollectionDecimalPointLimitExceeded: AugmentedError<ApiType>;571      /**572       * This address is not set as sponsor, use setCollectionSponsor first.573       **/574      ConfirmUnsetSponsorFail: AugmentedError<ApiType>;575      /**576       * Length of items properties must be greater than 0.577       **/578      EmptyArgument: AugmentedError<ApiType>;579      /**580       * Repertition is only supported by refungible collection.581       **/582      RepartitionCalledOnNonRefungibleCollection: AugmentedError<ApiType>;583      /**584       * Generic error585       **/586      [key: string]: AugmentedError<ApiType>;587    };588    vesting: {589      /**590       * The vested transfer amount is too low591       **/592      AmountLow: AugmentedError<ApiType>;593      /**594       * Insufficient amount of balance to lock595       **/596      InsufficientBalanceToLock: AugmentedError<ApiType>;597      /**598       * Failed because the maximum vesting schedules was exceeded599       **/600      MaxVestingSchedulesExceeded: AugmentedError<ApiType>;601      /**602       * This account have too many vesting schedules603       **/604      TooManyVestingSchedules: AugmentedError<ApiType>;605      /**606       * Vesting period is zero607       **/608      ZeroVestingPeriod: AugmentedError<ApiType>;609      /**610       * Number of vests is zero611       **/612      ZeroVestingPeriodCount: AugmentedError<ApiType>;613      /**614       * Generic error615       **/616      [key: string]: AugmentedError<ApiType>;617    };618    xcmpQueue: {619      /**620       * Bad overweight index.621       **/622      BadOverweightIndex: AugmentedError<ApiType>;623      /**624       * Bad XCM data.625       **/626      BadXcm: AugmentedError<ApiType>;627      /**628       * Bad XCM origin.629       **/630      BadXcmOrigin: AugmentedError<ApiType>;631      /**632       * Failed to send XCM message.633       **/634      FailedToSend: AugmentedError<ApiType>;635      /**636       * Provided weight is possibly not enough to execute the message.637       **/638      WeightOverLimit: AugmentedError<ApiType>;639      /**640       * Generic error641       **/642      [key: string]: AugmentedError<ApiType>;643    };644    xTokens: {645      /**646       * Asset has no reserve location.647       **/648      AssetHasNoReserve: AugmentedError<ApiType>;649      /**650       * The specified index does not exist in a MultiAssets struct.651       **/652      AssetIndexNonExistent: AugmentedError<ApiType>;653      /**654       * The version of the `Versioned` value used is not able to be655       * interpreted.656       **/657      BadVersion: AugmentedError<ApiType>;658      /**659       * Could not re-anchor the assets to declare the fees for the660       * destination chain.661       **/662      CannotReanchor: AugmentedError<ApiType>;663      /**664       * The destination `MultiLocation` provided cannot be inverted.665       **/666      DestinationNotInvertible: AugmentedError<ApiType>;667      /**668       * We tried sending distinct asset and fee but they have different669       * reserve chains.670       **/671      DistinctReserveForAssetAndFee: AugmentedError<ApiType>;672      /**673       * Fee is not enough.674       **/675      FeeNotEnough: AugmentedError<ApiType>;676      /**677       * Could not get ancestry of asset reserve location.678       **/679      InvalidAncestry: AugmentedError<ApiType>;680      /**681       * The MultiAsset is invalid.682       **/683      InvalidAsset: AugmentedError<ApiType>;684      /**685       * Invalid transfer destination.686       **/687      InvalidDest: AugmentedError<ApiType>;688      /**689       * MinXcmFee not registered for certain reserve location690       **/691      MinXcmFeeNotDefined: AugmentedError<ApiType>;692      /**693       * Not cross-chain transfer.694       **/695      NotCrossChainTransfer: AugmentedError<ApiType>;696      /**697       * Currency is not cross-chain transferable.698       **/699      NotCrossChainTransferableCurrency: AugmentedError<ApiType>;700      /**701       * Not supported MultiLocation702       **/703      NotSupportedMultiLocation: AugmentedError<ApiType>;704      /**705       * The number of assets to be sent is over the maximum.706       **/707      TooManyAssetsBeingSent: AugmentedError<ApiType>;708      /**709       * The message's weight could not be determined.710       **/711      UnweighableMessage: AugmentedError<ApiType>;712      /**713       * XCM execution failed.714       **/715      XcmExecutionFailed: AugmentedError<ApiType>;716      /**717       * The transfering asset amount is zero.718       **/719      ZeroAmount: AugmentedError<ApiType>;720      /**721       * The fee is zero.722       **/723      ZeroFee: AugmentedError<ApiType>;724      /**725       * Generic error726       **/727      [key: string]: AugmentedError<ApiType>;728    };729  } // AugmentedErrors730} // declare module