import type { Vec, u32 } from '@polkadot/types'; import type { BtcAddress, BtcPublicKey, Collateral, ErrorCode, H256Le, RedeemRequestStatus, SignedFixedPoint, Status, StatusCode, UnsignedFixedPoint, VaultStatus, Wrapped } from '@interlay/polkabtc/interfaces/default'; import type { AuthorityList } from '@polkadot/types/interfaces/grandpa'; import type { AccountId, Balance, BlockNumber, H256, Hash } from '@polkadot/types/interfaces/runtime'; import type { DispatchError, DispatchInfo, DispatchResult } from '@polkadot/types/interfaces/system'; import type { ApiTypes } from '@polkadot/api/types'; declare module '@polkadot/api/types/events' { interface AugmentedEvents { btcRelay: { /** * new_chain_tip, chain height, fork_depth **/ ChainReorg: AugmentedEvent; /** * block_hash, chain_id, error **/ ClearBlockError: AugmentedEvent; /** * block_hash, chain_id, error **/ FlagBlockError: AugmentedEvent; /** * main chain height, fork height, fork id **/ ForkAheadOfMainChain: AugmentedEvent; /** * block_height, block_header_hash, relayer_id **/ Initialized: AugmentedEvent; /** * chain_id, fork height, block_header_hash, relayer_id **/ StoreForkHeader: AugmentedEvent; /** * new chain height, block_header_hash, relayer_id **/ StoreMainChainHeader: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; collateral: { /** * A balance was set by root. \[who, free, reserved\] **/ BalanceSet: AugmentedEvent; /** * Some amount was deposited (e.g. for transaction fees). \[who, deposit\] **/ Deposit: AugmentedEvent; /** * An account was removed whose balance was non-zero but below ExistentialDeposit, * resulting in an outright loss. \[account, balance\] **/ DustLost: AugmentedEvent; /** * An account was created with some free balance. \[account, free_balance\] **/ Endowed: AugmentedEvent; /** * Some balance was reserved (moved from free to reserved). \[who, value\] **/ Reserved: AugmentedEvent; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. * \[from, to, balance, destination_status\] **/ ReserveRepatriated: AugmentedEvent; /** * Transfer succeeded. \[from, to, value\] **/ Transfer: AugmentedEvent; /** * Some balance was unreserved (moved from reserved to free). \[who, value\] **/ Unreserved: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; collateralCurrency: { Burn: AugmentedEvent; Lock: AugmentedEvent; Mint: AugmentedEvent; Release: AugmentedEvent; Slash: AugmentedEvent; Unlock: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; collateralRelayerRewards: { DepositStake: AugmentedEvent; WithdrawReward: AugmentedEvent; WithdrawStake: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; collateralVaultRewards: { DepositStake: AugmentedEvent; WithdrawReward: AugmentedEvent; WithdrawStake: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; exchangeRateOracle: { /** * Event emitted when the btc tx fees are set **/ SetBtcTxFeesPerByte: AugmentedEvent; /** * Event emitted when exchange rate is set **/ SetExchangeRate: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; fee: { WithdrawCollateral: AugmentedEvent; WithdrawWrapped: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; grandpa: { /** * New authority set has been applied. \[authority_set\] **/ NewAuthorities: AugmentedEvent; /** * Current authority set has been paused. **/ Paused: AugmentedEvent; /** * Current authority set has been resumed. **/ Resumed: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; issue: { CancelIssue: AugmentedEvent; ExecuteIssue: AugmentedEvent; IssueAmountChange: AugmentedEvent; RequestIssue: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; nomination: { IncreaseNominatedCollateral: AugmentedEvent; NominationOptIn: AugmentedEvent; NominationOptOut: AugmentedEvent; RequestNominatorCollateralWithdrawal: AugmentedEvent; RequestOperatorCollateralWithdrawal: AugmentedEvent; SlashCollateral: AugmentedEvent; WithdrawNominatedCollateral: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; redeem: { CancelRedeem: AugmentedEvent; ExecuteRedeem: AugmentedEvent; LiquidationRedeem: AugmentedEvent; MintTokensForReimbursedRedeem: AugmentedEvent; RequestRedeem: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; refund: { /** * refund_id, issuer, vault, amount **/ ExecuteRefund: AugmentedEvent; /** * refund_id, issuer, amount_without_fee, vault, btc_address, issue_id, fee **/ RequestRefund: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; replace: { AcceptReplace: AugmentedEvent; CancelReplace: AugmentedEvent; ExecuteReplace: AugmentedEvent; RequestReplace: AugmentedEvent; WithdrawReplace: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; security: { RecoverFromErrors: AugmentedEvent]>; UpdateActiveBlock: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; sla: { UpdateRelayerSLA: AugmentedEvent; UpdateVaultSLA: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; stakedRelayers: { VaultTheft: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; sudo: { /** * The \[sudoer\] just switched identity; the old key is supplied. **/ KeyChanged: AugmentedEvent; /** * A sudo just took place. \[result\] **/ Sudid: AugmentedEvent; /** * A sudo just took place. \[result\] **/ SudoAsDone: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; system: { /** * `:code` was updated. **/ CodeUpdated: AugmentedEvent; /** * An extrinsic failed. \[error, info\] **/ ExtrinsicFailed: AugmentedEvent; /** * An extrinsic completed successfully. \[info\] **/ ExtrinsicSuccess: AugmentedEvent; /** * An \[account\] was reaped. **/ KilledAccount: AugmentedEvent; /** * A new \[account\] was created. **/ NewAccount: AugmentedEvent; /** * On on-chain remark happened. \[origin, remark_hash\] **/ Remarked: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; utility: { /** * Batch of dispatches completed fully with no error. **/ BatchCompleted: AugmentedEvent; /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. \[index, error\] **/ BatchInterrupted: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; vaultRegistry: { /** * vault_id, banned_until **/ BanVault: AugmentedEvent; /** * vault_id, decrease in to-be-issued tokens **/ DecreaseToBeIssuedTokens: AugmentedEvent; /** * vault_id, decrease in to-be-redeemed tokens **/ DecreaseToBeRedeemedTokens: AugmentedEvent; /** * vault_id, user_id, amount of tokens reduced in issued & to-be-redeemed **/ DecreaseTokens: AugmentedEvent; /** * vault_id, new collateral, total collateral, free collateral **/ DepositCollateral: AugmentedEvent; /** * vault_id, additional to-be-issued tokens **/ IncreaseToBeIssuedTokens: AugmentedEvent; /** * vault_id, additional to-be-redeemed tokens **/ IncreaseToBeRedeemedTokens: AugmentedEvent; /** * vault_id, additional to-be-replaced tokens **/ IncreaseToBeReplacedTokens: AugmentedEvent; /** * vault_id, additional number of issued tokens **/ IssueTokens: AugmentedEvent; /** * vault_id, issued_tokens, to_be_issued_tokens, to_be_redeemed_tokens, * to_be_replaced_tokens, backing_collateral, status, replace_collateral **/ LiquidateVault: AugmentedEvent; /** * vault_id, amount of newly redeemed tokens **/ RedeemTokens: AugmentedEvent; /** * vault_id, amount of newly redeemed tokens, slashed collateral **/ RedeemTokensLiquidatedVault: AugmentedEvent; /** * vault_id, amount of burned tokens, transferred collateral **/ RedeemTokensLiquidation: AugmentedEvent; /** * vault_id, amount of newly redeemed tokens, amount of collateral transferred, user_id **/ RedeemTokensPremium: AugmentedEvent; /** * vault_id, new address **/ RegisterAddress: AugmentedEvent; RegisterVault: AugmentedEvent; /** * old_vault_id, new_vault_id, transferred tokens, additional collateral locked by new_vault **/ ReplaceTokens: AugmentedEvent; /** * vault_id, new public key **/ UpdatePublicKey: AugmentedEvent; /** * vault_id, withdrawn collateral, total collateral **/ WithdrawCollateral: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; wrapped: { /** * A balance was set by root. \[who, free, reserved\] **/ BalanceSet: AugmentedEvent; /** * Some amount was deposited (e.g. for transaction fees). \[who, deposit\] **/ Deposit: AugmentedEvent; /** * An account was removed whose balance was non-zero but below ExistentialDeposit, * resulting in an outright loss. \[account, balance\] **/ DustLost: AugmentedEvent; /** * An account was created with some free balance. \[account, free_balance\] **/ Endowed: AugmentedEvent; /** * Some balance was reserved (moved from free to reserved). \[who, value\] **/ Reserved: AugmentedEvent; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. * \[from, to, balance, destination_status\] **/ ReserveRepatriated: AugmentedEvent; /** * Transfer succeeded. \[from, to, value\] **/ Transfer: AugmentedEvent; /** * Some balance was unreserved (moved from reserved to free). \[who, value\] **/ Unreserved: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; wrappedCurrency: { Burn: AugmentedEvent; Lock: AugmentedEvent; Mint: AugmentedEvent; Release: AugmentedEvent; Slash: AugmentedEvent; Unlock: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; wrappedRelayerRewards: { DepositStake: AugmentedEvent; WithdrawReward: AugmentedEvent; WithdrawStake: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; wrappedVaultRewards: { DepositStake: AugmentedEvent; WithdrawReward: AugmentedEvent; WithdrawStake: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; } interface DecoratedEvents extends AugmentedEvents { [key: string]: ModuleEvents; } }