import type { ApiTypes } from '@polkadot/api/types'; declare module '@polkadot/api/types/errors' { interface AugmentedErrors { btcRelay: { /** * Already initialized **/ AlreadyInitialized: AugmentedError; /** * Error code already reported **/ AlreadyReported: AugmentedError; /** * Arithmetic overflow **/ ArithmeticOverflow: AugmentedError; /** * Arithmetic underflow **/ ArithmeticUnderflow: AugmentedError; /** * Transaction has less confirmations of Bitcoin blocks than required **/ BitcoinConfirmations: AugmentedError; /** * Overflow of block height **/ BlockHeightOverflow: AugmentedError; /** * Block header not found for given hash **/ BlockNotFound: AugmentedError; /** * Overflow of chain counter **/ ChainCounterOverflow: AugmentedError; /** * Underflow of stored blockchains counter **/ ChainsUnderflow: AugmentedError; /** * Incorrect difficulty target specified in block header **/ DiffTargetHeader: AugmentedError; /** * Block already stored **/ DuplicateBlock: AugmentedError; /** * EndOfFile reached while parsing **/ EndOfFile: AugmentedError; /** * Blockchain with requested ID not found **/ ForkIdNotFound: AugmentedError; /** * Value of payment below requested amount **/ InsufficientValue: AugmentedError; /** * Feature disabled. Reason: a main chain block is flagged as INVALID. **/ Invalid: AugmentedError; /** * Specified invalid Bitcoin address **/ InvalidBtcAddress: AugmentedError; /** * User supplied an invalid address **/ InvalidBtcHash: AugmentedError; /** * Invalid chain ID **/ InvalidChainID: AugmentedError; /** * Invalid block header size **/ InvalidHeaderSize: AugmentedError; /** * Invalid merkle proof **/ InvalidMerkleProof: AugmentedError; /** * Incorrect identifier in OP_RETURN field **/ InvalidOpReturn: AugmentedError; /** * Incorrect transaction output format **/ InvalidOutputFormat: AugmentedError; /** * Incorrect recipient Bitcoin address **/ InvalidPayment: AugmentedError; /** * User supplied an invalid script **/ InvalidScript: AugmentedError; /** * Transaction hash does not match given txid **/ InvalidTxid: AugmentedError; /** * Invalid transaction version **/ InvalidTxVersion: AugmentedError; /** * PoW hash does not meet difficulty target of header **/ LowDiff: AugmentedError; /** * Format of the header is invalid **/ MalformedHeader: AugmentedError; /** * Merkle proof is malformed **/ MalformedMerkleProof: AugmentedError; /** * Format of the OP_RETURN transaction output is invalid **/ MalformedOpReturnOutput: AugmentedError; MalformedP2PKHOutput: AugmentedError; MalformedP2SHOutput: AugmentedError; /** * Transaction has incorrect format **/ MalformedTransaction: AugmentedError; /** * Malformed transaction identifier **/ MalformedTxid: AugmentedError; /** * Format of the BIP141 witness transaction output is invalid **/ MalformedWitnessOutput: AugmentedError; /** * Missing the block at this height **/ MissingBlockHeight: AugmentedError; /** * Feature disabled. Reason: a main chain block with a lower height is flagged with NO_DATA. **/ NoData: AugmentedError; /** * There are no NO_DATA blocks in this BlockChain **/ NoDataEmpty: AugmentedError; /** * Current fork ongoing **/ OngoingFork: AugmentedError; /** * Block already stored and is not head **/ OutdatedBlock: AugmentedError; /** * Transaction has less confirmations of Parachain blocks than required **/ ParachainConfirmations: AugmentedError; /** * Previous block hash not found **/ PrevBlock: AugmentedError; /** * Relayer is not registered **/ RelayerNotAuthorized: AugmentedError; /** * BTC Parachain has shut down **/ Shutdown: AugmentedError; /** * Unauthorized staked relayer **/ UnauthorizedRelayer: AugmentedError; /** * Error code not applicable to blocks **/ UnknownErrorcode: AugmentedError; UnsupportedInputFormat: AugmentedError; UnsupportedOutputFormat: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; collateral: { /** * Beneficiary account must pre-exist **/ DeadAccount: AugmentedError; /** * Value too low to create account due to existential deposit **/ ExistentialDeposit: AugmentedError; /** * A vesting schedule already exists for this account **/ ExistingVestingSchedule: AugmentedError; /** * Balance too low to send value **/ InsufficientBalance: AugmentedError; /** * Transfer/payment would kill account **/ KeepAlive: AugmentedError; /** * Account liquidity restrictions prevent withdrawal **/ LiquidityRestrictions: AugmentedError; /** * Vesting balance too high to send value **/ VestingBalance: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; collateralCurrency: { /** * Arithmetic overflow **/ ArithmeticOverflow: AugmentedError; /** * Arithmetic underflow **/ ArithmeticUnderflow: AugmentedError; /** * Account has insufficient free balance **/ InsufficientFreeBalance: AugmentedError; /** * Account has insufficient reserved balance **/ InsufficientReservedBalance: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; collateralRelayerRewards: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; InsufficientFunds: AugmentedError; TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; collateralVaultRewards: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; InsufficientFunds: AugmentedError; TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; exchangeRateOracle: { /** * Mathematical operation caused an overflow **/ ArithmeticOverflow: AugmentedError; /** * Mathematical operation caused an underflow **/ ArithmeticUnderflow: AugmentedError; /** * Not authorized to set exchange rate **/ InvalidOracleSource: AugmentedError; /** * Exchange rate not specified or has expired **/ MissingExchangeRate: AugmentedError; /** * Unable to convert value **/ TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; fee: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; InvalidRewardDist: AugmentedError; TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; grandpa: { /** * Attempt to signal GRANDPA change with one already pending. **/ ChangePending: AugmentedError; /** * A given equivocation report is valid but already previously reported. **/ DuplicateOffenceReport: AugmentedError; /** * An equivocation proof provided as part of an equivocation report is invalid. **/ InvalidEquivocationProof: AugmentedError; /** * A key ownership proof provided as part of an equivocation report is invalid. **/ InvalidKeyOwnershipProof: AugmentedError; /** * Attempt to signal GRANDPA pause when the authority set isn't live * (either paused or already pending pause). **/ PauseFailed: AugmentedError; /** * Attempt to signal GRANDPA resume when the authority set isn't paused * (either live or already pending resume). **/ ResumeFailed: AugmentedError; /** * Cannot signal forced change so soon after last. **/ TooSoon: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; issue: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; CommitPeriodExpired: AugmentedError; InsufficientCollateral: AugmentedError; InvalidExecutor: AugmentedError; IssueCancelled: AugmentedError; IssueCompleted: AugmentedError; IssueIdNotFound: AugmentedError; TimeNotExpired: AugmentedError; /** * Unable to convert value **/ TryIntoIntError: AugmentedError; VaultNotAcceptingNewIssues: AugmentedError; WaitingForRelayerInitialization: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; nomination: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; DepositViolatesMaxNominationRatio: AugmentedError; FailedToAddNominator: AugmentedError; HasNominatedCollateral: AugmentedError; InsufficientCollateral: AugmentedError; /** * Account has insufficient balance **/ InsufficientFunds: AugmentedError; NoMaturedCollateral: AugmentedError; NominatorLiquidationFailed: AugmentedError; NominatorNotFound: AugmentedError; NotAVault: AugmentedError; TooLittleNominatedCollateral: AugmentedError; TryIntoIntError: AugmentedError; VaultAlreadyOptedInToNomination: AugmentedError; VaultNominationDisabled: AugmentedError; VaultNotFound: AugmentedError; VaultNotOptedInToNomination: AugmentedError; VaultNotQualifiedToOptOutOfNomination: AugmentedError; WithdrawalNotUnbonded: AugmentedError; WithdrawalRequestNotFound: AugmentedError; WithdrawalRequestNotMatured: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; redeem: { AmountBelowDustAmount: AugmentedError; AmountExceedsUserBalance: AugmentedError; AmountExceedsVaultBalance: AugmentedError; ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; CommitPeriodExpired: AugmentedError; RedeemCancelled: AugmentedError; RedeemCompleted: AugmentedError; RedeemIdNotFound: AugmentedError; TimeNotExpired: AugmentedError; /** * Unable to convert value **/ TryIntoIntError: AugmentedError; UnauthorizedUser: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; refund: { ArithmeticUnderflow: AugmentedError; NoRefundFoundForIssueId: AugmentedError; RefundCompleted: AugmentedError; RefundIdNotFound: AugmentedError; TryIntoIntError: AugmentedError; UnauthorizedVault: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; replace: { AmountBelowDustAmount: AugmentedError; ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; CancelAcceptedRequest: AugmentedError; CollateralBelowSecureThreshold: AugmentedError; InsufficientCollateral: AugmentedError; NoPendingRequest: AugmentedError; NoReplacement: AugmentedError; ReplaceCancelled: AugmentedError; ReplaceCompleted: AugmentedError; ReplaceIdNotFound: AugmentedError; ReplacePeriodExpired: AugmentedError; ReplacePeriodNotExpired: AugmentedError; ReplaceSelfNotAllowed: AugmentedError; /** * Unable to convert value **/ TryIntoIntError: AugmentedError; UnauthorizedVault: AugmentedError; VaultIsNominationOperator: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; security: { ArithmeticOverflow: AugmentedError; InvalidBTCRelay: AugmentedError; InvalidErrorCode: AugmentedError; NoDataBTCRelay: AugmentedError; ParachainLiquidationError: AugmentedError; ParachainNotRunning: AugmentedError; ParachainNotRunningOrLiquidation: AugmentedError; ParachainOracleOfflineError: AugmentedError; ParachainShutdown: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; sla: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; InvalidSlashedAmount: AugmentedError; TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; stakedRelayers: { /** * Failed to parse transaction **/ InvalidTransaction: AugmentedError; /** * Unable to convert value **/ TryIntoIntError: AugmentedError; /** * Valid merge transaction **/ ValidMergeTransaction: AugmentedError; /** * Valid redeem transaction **/ ValidRedeemTransaction: AugmentedError; /** * Valid refund transaction **/ ValidRefundTransaction: AugmentedError; /** * Valid replace transaction **/ ValidReplaceTransaction: AugmentedError; /** * Vault already reported **/ VaultAlreadyReported: AugmentedError; /** * Vault BTC address not in transaction input **/ VaultNoInputToTransaction: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; sudo: { /** * Sender must be the Sudo account **/ RequireSudo: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; system: { /** * Failed to extract the runtime version from the new runtime. * * Either calling `Core_version` or decoding `RuntimeVersion` failed. **/ FailedToExtractRuntimeVersion: AugmentedError; /** * The name of specification does not match between the current runtime * and the new runtime. **/ InvalidSpecName: AugmentedError; /** * Suicide called when the account has non-default composite data. **/ NonDefaultComposite: AugmentedError; /** * There is a non-zero reference count preventing the account from being purged. **/ NonZeroRefCount: AugmentedError; /** * The specification version is not allowed to decrease between the current runtime * and the new runtime. **/ SpecVersionNeedsToIncrease: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; vaultRegistry: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; /** * The amount of tokens to be issued is higher than the issuable amount by the vault **/ ExceedingVaultLimit: AugmentedError; /** * Not enough free collateral available. **/ InsufficientCollateral: AugmentedError; /** * The requested amount of tokens exceeds the amount available to this vault. **/ InsufficientTokensCommitted: AugmentedError; /** * The provided collateral was insufficient - it must be above ``MinimumCollateralVault``. **/ InsufficientVaultCollateralAmount: AugmentedError; /** * Deposit address could not be generated with the given public key. **/ InvalidPublicKey: AugmentedError; /** * Collateralization is infinite if no tokens are issued **/ NoTokensIssued: AugmentedError; NoVaultUnderThePremiumRedeemThreshold: AugmentedError; NoVaultWithSufficientCollateral: AugmentedError; NoVaultWithSufficientTokens: AugmentedError; /** * The Bitcoin Address has already been registered **/ ReservedDepositAddress: AugmentedError; /** * Unable to convert value **/ TryIntoIntError: AugmentedError; /** * Returned if a vault tries to register while already being registered **/ VaultAlreadyRegistered: AugmentedError; /** * Action not allowed on banned vault. **/ VaultBanned: AugmentedError; /** * Attempted to liquidate a vault that is not undercollateralized. **/ VaultNotBelowLiquidationThreshold: AugmentedError; /** * The specified vault does not exist. **/ VaultNotFound: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; wrapped: { /** * Beneficiary account must pre-exist **/ DeadAccount: AugmentedError; /** * Value too low to create account due to existential deposit **/ ExistentialDeposit: AugmentedError; /** * A vesting schedule already exists for this account **/ ExistingVestingSchedule: AugmentedError; /** * Balance too low to send value **/ InsufficientBalance: AugmentedError; /** * Transfer/payment would kill account **/ KeepAlive: AugmentedError; /** * Account liquidity restrictions prevent withdrawal **/ LiquidityRestrictions: AugmentedError; /** * Vesting balance too high to send value **/ VestingBalance: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; wrappedCurrency: { /** * Arithmetic overflow **/ ArithmeticOverflow: AugmentedError; /** * Arithmetic underflow **/ ArithmeticUnderflow: AugmentedError; /** * Account has insufficient free balance **/ InsufficientFreeBalance: AugmentedError; /** * Account has insufficient reserved balance **/ InsufficientReservedBalance: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; wrappedRelayerRewards: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; InsufficientFunds: AugmentedError; TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; wrappedVaultRewards: { ArithmeticOverflow: AugmentedError; ArithmeticUnderflow: AugmentedError; InsufficientFunds: AugmentedError; TryIntoIntError: AugmentedError; /** * Generic error **/ [key: string]: AugmentedError; }; } interface DecoratedErrors extends AugmentedErrors { [key: string]: ModuleErrors; } }