UNPKG

@acala-network/types

Version:

Acala types for @polkadot/api

1,207 lines (1,206 loc) 307 kB
import '@polkadot/types/lookup'; import type { BTreeMap, BTreeSet, Bytes, Compact, Enum, Null, Option, Result, Struct, Text, U8aFixed, Vec, bool, i128, i32, u128, u16, u32, u64, u8 } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; import type { Vote } from '@polkadot/types/interfaces/elections'; import type { AccountId32, Call, H160, H256, MultiAddress, Permill } from '@polkadot/types/interfaces/runtime'; import type { Event } from '@polkadot/types/interfaces/system'; declare module '@polkadot/types/lookup' { /** @name FrameSystemAccountInfo (3) */ interface FrameSystemAccountInfo extends Struct { readonly nonce: u32; readonly consumers: u32; readonly providers: u32; readonly sufficients: u32; readonly data: PalletBalancesAccountData; } /** @name PalletBalancesAccountData (5) */ interface PalletBalancesAccountData extends Struct { readonly free: u128; readonly reserved: u128; readonly frozen: u128; readonly flags: u128; } /** @name FrameSupportDispatchPerDispatchClassWeight (9) */ interface FrameSupportDispatchPerDispatchClassWeight extends Struct { readonly normal: SpWeightsWeightV2Weight; readonly operational: SpWeightsWeightV2Weight; readonly mandatory: SpWeightsWeightV2Weight; } /** @name SpWeightsWeightV2Weight (10) */ interface SpWeightsWeightV2Weight extends Struct { readonly refTime: Compact<u64>; readonly proofSize: Compact<u64>; } /** @name SpRuntimeDigest (15) */ interface SpRuntimeDigest extends Struct { readonly logs: Vec<SpRuntimeDigestDigestItem>; } /** @name SpRuntimeDigestDigestItem (17) */ interface SpRuntimeDigestDigestItem extends Enum { readonly isOther: boolean; readonly asOther: Bytes; readonly isConsensus: boolean; readonly asConsensus: ITuple<[U8aFixed, Bytes]>; readonly isSeal: boolean; readonly asSeal: ITuple<[U8aFixed, Bytes]>; readonly isPreRuntime: boolean; readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>; readonly isRuntimeEnvironmentUpdated: boolean; readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated'; } /** @name FrameSystemEventRecord (20) */ interface FrameSystemEventRecord extends Struct { readonly phase: FrameSystemPhase; readonly event: Event; readonly topics: Vec<H256>; } /** @name FrameSystemEvent (22) */ interface FrameSystemEvent extends Enum { readonly isExtrinsicSuccess: boolean; readonly asExtrinsicSuccess: { readonly dispatchInfo: FrameSupportDispatchDispatchInfo; } & Struct; readonly isExtrinsicFailed: boolean; readonly asExtrinsicFailed: { readonly dispatchError: SpRuntimeDispatchError; readonly dispatchInfo: FrameSupportDispatchDispatchInfo; } & Struct; readonly isCodeUpdated: boolean; readonly isNewAccount: boolean; readonly asNewAccount: { readonly account: AccountId32; } & Struct; readonly isKilledAccount: boolean; readonly asKilledAccount: { readonly account: AccountId32; } & Struct; readonly isRemarked: boolean; readonly asRemarked: { readonly sender: AccountId32; readonly hash_: H256; } & Struct; readonly isUpgradeAuthorized: boolean; readonly asUpgradeAuthorized: { readonly codeHash: H256; readonly checkVersion: bool; } & Struct; readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked' | 'UpgradeAuthorized'; } /** @name FrameSupportDispatchDispatchInfo (23) */ interface FrameSupportDispatchDispatchInfo extends Struct { readonly weight: SpWeightsWeightV2Weight; readonly class: FrameSupportDispatchDispatchClass; readonly paysFee: FrameSupportDispatchPays; } /** @name FrameSupportDispatchDispatchClass (24) */ interface FrameSupportDispatchDispatchClass extends Enum { readonly isNormal: boolean; readonly isOperational: boolean; readonly isMandatory: boolean; readonly type: 'Normal' | 'Operational' | 'Mandatory'; } /** @name FrameSupportDispatchPays (25) */ interface FrameSupportDispatchPays extends Enum { readonly isYes: boolean; readonly isNo: boolean; readonly type: 'Yes' | 'No'; } /** @name SpRuntimeDispatchError (26) */ interface SpRuntimeDispatchError extends Enum { readonly isOther: boolean; readonly isCannotLookup: boolean; readonly isBadOrigin: boolean; readonly isModule: boolean; readonly asModule: SpRuntimeModuleError; readonly isConsumerRemaining: boolean; readonly isNoProviders: boolean; readonly isTooManyConsumers: boolean; readonly isToken: boolean; readonly asToken: SpRuntimeTokenError; readonly isArithmetic: boolean; readonly asArithmetic: SpArithmeticArithmeticError; readonly isTransactional: boolean; readonly asTransactional: SpRuntimeTransactionalError; readonly isExhausted: boolean; readonly isCorruption: boolean; readonly isUnavailable: boolean; readonly isRootNotAllowed: boolean; readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional' | 'Exhausted' | 'Corruption' | 'Unavailable' | 'RootNotAllowed'; } /** @name SpRuntimeModuleError (27) */ interface SpRuntimeModuleError extends Struct { readonly index: u8; readonly error: U8aFixed; } /** @name SpRuntimeTokenError (28) */ interface SpRuntimeTokenError extends Enum { readonly isFundsUnavailable: boolean; readonly isOnlyProvider: boolean; readonly isBelowMinimum: boolean; readonly isCannotCreate: boolean; readonly isUnknownAsset: boolean; readonly isFrozen: boolean; readonly isUnsupported: boolean; readonly isCannotCreateHold: boolean; readonly isNotExpendable: boolean; readonly isBlocked: boolean; readonly type: 'FundsUnavailable' | 'OnlyProvider' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported' | 'CannotCreateHold' | 'NotExpendable' | 'Blocked'; } /** @name SpArithmeticArithmeticError (29) */ interface SpArithmeticArithmeticError extends Enum { readonly isUnderflow: boolean; readonly isOverflow: boolean; readonly isDivisionByZero: boolean; readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero'; } /** @name SpRuntimeTransactionalError (30) */ interface SpRuntimeTransactionalError extends Enum { readonly isLimitReached: boolean; readonly isNoLayer: boolean; readonly type: 'LimitReached' | 'NoLayer'; } /** @name PalletSchedulerEvent (31) */ interface PalletSchedulerEvent extends Enum { readonly isScheduled: boolean; readonly asScheduled: { readonly when: u32; readonly index: u32; } & Struct; readonly isCanceled: boolean; readonly asCanceled: { readonly when: u32; readonly index: u32; } & Struct; readonly isDispatched: boolean; readonly asDispatched: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; readonly result: Result<Null, SpRuntimeDispatchError>; } & Struct; readonly isRetrySet: boolean; readonly asRetrySet: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; readonly period: u32; readonly retries: u8; } & Struct; readonly isRetryCancelled: boolean; readonly asRetryCancelled: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; } & Struct; readonly isCallUnavailable: boolean; readonly asCallUnavailable: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; } & Struct; readonly isPeriodicFailed: boolean; readonly asPeriodicFailed: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; } & Struct; readonly isRetryFailed: boolean; readonly asRetryFailed: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; } & Struct; readonly isPermanentlyOverweight: boolean; readonly asPermanentlyOverweight: { readonly task: ITuple<[u32, u32]>; readonly id: Option<U8aFixed>; } & Struct; readonly type: 'Scheduled' | 'Canceled' | 'Dispatched' | 'RetrySet' | 'RetryCancelled' | 'CallUnavailable' | 'PeriodicFailed' | 'RetryFailed' | 'PermanentlyOverweight'; } /** @name PalletUtilityEvent (36) */ interface PalletUtilityEvent extends Enum { readonly isBatchInterrupted: boolean; readonly asBatchInterrupted: { readonly index: u32; readonly error: SpRuntimeDispatchError; } & Struct; readonly isBatchCompleted: boolean; readonly isBatchCompletedWithErrors: boolean; readonly isItemCompleted: boolean; readonly isItemFailed: boolean; readonly asItemFailed: { readonly error: SpRuntimeDispatchError; } & Struct; readonly isDispatchedAs: boolean; readonly asDispatchedAs: { readonly result: Result<Null, SpRuntimeDispatchError>; } & Struct; readonly type: 'BatchInterrupted' | 'BatchCompleted' | 'BatchCompletedWithErrors' | 'ItemCompleted' | 'ItemFailed' | 'DispatchedAs'; } /** @name PalletMultisigEvent (37) */ interface PalletMultisigEvent extends Enum { readonly isNewMultisig: boolean; readonly asNewMultisig: { readonly approving: AccountId32; readonly multisig: AccountId32; readonly callHash: U8aFixed; } & Struct; readonly isMultisigApproval: boolean; readonly asMultisigApproval: { readonly approving: AccountId32; readonly timepoint: PalletMultisigTimepoint; readonly multisig: AccountId32; readonly callHash: U8aFixed; } & Struct; readonly isMultisigExecuted: boolean; readonly asMultisigExecuted: { readonly approving: AccountId32; readonly timepoint: PalletMultisigTimepoint; readonly multisig: AccountId32; readonly callHash: U8aFixed; readonly result: Result<Null, SpRuntimeDispatchError>; } & Struct; readonly isMultisigCancelled: boolean; readonly asMultisigCancelled: { readonly cancelling: AccountId32; readonly timepoint: PalletMultisigTimepoint; readonly multisig: AccountId32; readonly callHash: U8aFixed; } & Struct; readonly type: 'NewMultisig' | 'MultisigApproval' | 'MultisigExecuted' | 'MultisigCancelled'; } /** @name PalletMultisigTimepoint (38) */ interface PalletMultisigTimepoint extends Struct { readonly height: u32; readonly index: u32; } /** @name PalletProxyEvent (39) */ interface PalletProxyEvent extends Enum { readonly isProxyExecuted: boolean; readonly asProxyExecuted: { readonly result: Result<Null, SpRuntimeDispatchError>; } & Struct; readonly isPureCreated: boolean; readonly asPureCreated: { readonly pure: AccountId32; readonly who: AccountId32; readonly proxyType: RuntimeCommonProxyType; readonly disambiguationIndex: u16; } & Struct; readonly isAnnounced: boolean; readonly asAnnounced: { readonly real: AccountId32; readonly proxy: AccountId32; readonly callHash: H256; } & Struct; readonly isProxyAdded: boolean; readonly asProxyAdded: { readonly delegator: AccountId32; readonly delegatee: AccountId32; readonly proxyType: RuntimeCommonProxyType; readonly delay: u32; } & Struct; readonly isProxyRemoved: boolean; readonly asProxyRemoved: { readonly delegator: AccountId32; readonly delegatee: AccountId32; readonly proxyType: RuntimeCommonProxyType; readonly delay: u32; } & Struct; readonly type: 'ProxyExecuted' | 'PureCreated' | 'Announced' | 'ProxyAdded' | 'ProxyRemoved'; } /** @name RuntimeCommonProxyType (40) */ interface RuntimeCommonProxyType extends Enum { readonly isAny: boolean; readonly isCancelProxy: boolean; readonly isGovernance: boolean; readonly isAuction: boolean; readonly isSwap: boolean; readonly isLoan: boolean; readonly isDexLiquidity: boolean; readonly isStableAssetSwap: boolean; readonly isStableAssetLiquidity: boolean; readonly isHoma: boolean; readonly type: 'Any' | 'CancelProxy' | 'Governance' | 'Auction' | 'Swap' | 'Loan' | 'DexLiquidity' | 'StableAssetSwap' | 'StableAssetLiquidity' | 'Homa'; } /** @name ModuleTransactionPauseModuleEvent (42) */ interface ModuleTransactionPauseModuleEvent extends Enum { readonly isTransactionPaused: boolean; readonly asTransactionPaused: { readonly palletNameBytes: Bytes; readonly functionNameBytes: Bytes; } & Struct; readonly isTransactionUnpaused: boolean; readonly asTransactionUnpaused: { readonly palletNameBytes: Bytes; readonly functionNameBytes: Bytes; } & Struct; readonly isEvmPrecompilePaused: boolean; readonly asEvmPrecompilePaused: { readonly address: H160; } & Struct; readonly isEvmPrecompileUnpaused: boolean; readonly asEvmPrecompileUnpaused: { readonly address: H160; } & Struct; readonly type: 'TransactionPaused' | 'TransactionUnpaused' | 'EvmPrecompilePaused' | 'EvmPrecompileUnpaused'; } /** @name ModuleIdleSchedulerModuleEvent (45) */ interface ModuleIdleSchedulerModuleEvent extends Enum { readonly isTaskDispatched: boolean; readonly asTaskDispatched: { readonly taskId: u32; readonly result: Result<Null, SpRuntimeDispatchError>; } & Struct; readonly isTaskAdded: boolean; readonly asTaskAdded: { readonly taskId: u32; readonly task: AcalaRuntimeScheduledTasks; } & Struct; readonly type: 'TaskDispatched' | 'TaskAdded'; } /** @name AcalaRuntimeScheduledTasks (46) */ interface AcalaRuntimeScheduledTasks extends Enum { readonly isEvmTask: boolean; readonly asEvmTask: ModuleEvmEvmTask; readonly type: 'EvmTask'; } /** @name ModuleEvmEvmTask (47) */ interface ModuleEvmEvmTask extends Enum { readonly isSchedule: boolean; readonly asSchedule: { readonly from: H160; readonly target: H160; readonly input: Bytes; readonly value: u128; readonly gasLimit: u64; readonly storageLimit: u32; } & Struct; readonly isRemove: boolean; readonly asRemove: { readonly caller: H160; readonly contract: H160; readonly maintainer: H160; } & Struct; readonly type: 'Schedule' | 'Remove'; } /** @name AcalaRuntimeRuntime (48) */ type AcalaRuntimeRuntime = Null; /** @name PalletPreimageEvent (49) */ interface PalletPreimageEvent extends Enum { readonly isNoted: boolean; readonly asNoted: { readonly hash_: H256; } & Struct; readonly isRequested: boolean; readonly asRequested: { readonly hash_: H256; } & Struct; readonly isCleared: boolean; readonly asCleared: { readonly hash_: H256; } & Struct; readonly type: 'Noted' | 'Requested' | 'Cleared'; } /** @name PalletBalancesEvent (50) */ interface PalletBalancesEvent extends Enum { readonly isEndowed: boolean; readonly asEndowed: { readonly account: AccountId32; readonly freeBalance: u128; } & Struct; readonly isDustLost: boolean; readonly asDustLost: { readonly account: AccountId32; readonly amount: u128; } & Struct; readonly isTransfer: boolean; readonly asTransfer: { readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; } & Struct; readonly isBalanceSet: boolean; readonly asBalanceSet: { readonly who: AccountId32; readonly free: u128; } & Struct; readonly isReserved: boolean; readonly asReserved: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnreserved: boolean; readonly asUnreserved: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isReserveRepatriated: boolean; readonly asReserveRepatriated: { readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; readonly destinationStatus: FrameSupportTokensMiscBalanceStatus; } & Struct; readonly isDeposit: boolean; readonly asDeposit: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isWithdraw: boolean; readonly asWithdraw: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isSlashed: boolean; readonly asSlashed: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isMinted: boolean; readonly asMinted: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isBurned: boolean; readonly asBurned: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isSuspended: boolean; readonly asSuspended: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isRestored: boolean; readonly asRestored: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUpgraded: boolean; readonly asUpgraded: { readonly who: AccountId32; } & Struct; readonly isIssued: boolean; readonly asIssued: { readonly amount: u128; } & Struct; readonly isRescinded: boolean; readonly asRescinded: { readonly amount: u128; } & Struct; readonly isLocked: boolean; readonly asLocked: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnlocked: boolean; readonly asUnlocked: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isFrozen: boolean; readonly asFrozen: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isThawed: boolean; readonly asThawed: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isTotalIssuanceForced: boolean; readonly asTotalIssuanceForced: { readonly old: u128; readonly new_: u128; } & Struct; readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed' | 'Minted' | 'Burned' | 'Suspended' | 'Restored' | 'Upgraded' | 'Issued' | 'Rescinded' | 'Locked' | 'Unlocked' | 'Frozen' | 'Thawed' | 'TotalIssuanceForced'; } /** @name FrameSupportTokensMiscBalanceStatus (51) */ interface FrameSupportTokensMiscBalanceStatus extends Enum { readonly isFree: boolean; readonly isReserved: boolean; readonly type: 'Free' | 'Reserved'; } /** @name OrmlTokensModuleEvent (52) */ interface OrmlTokensModuleEvent extends Enum { readonly isEndowed: boolean; readonly asEndowed: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isDustLost: boolean; readonly asDustLost: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isTransfer: boolean; readonly asTransfer: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; } & Struct; readonly isReserved: boolean; readonly asReserved: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnreserved: boolean; readonly asUnreserved: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isReserveRepatriated: boolean; readonly asReserveRepatriated: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; readonly status: FrameSupportTokensMiscBalanceStatus; } & Struct; readonly isBalanceSet: boolean; readonly asBalanceSet: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly free: u128; readonly reserved: u128; } & Struct; readonly isTotalIssuanceSet: boolean; readonly asTotalIssuanceSet: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly amount: u128; } & Struct; readonly isWithdrawn: boolean; readonly asWithdrawn: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isSlashed: boolean; readonly asSlashed: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly freeAmount: u128; readonly reservedAmount: u128; } & Struct; readonly isDeposited: boolean; readonly asDeposited: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isLockSet: boolean; readonly asLockSet: { readonly lockId: U8aFixed; readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isLockRemoved: boolean; readonly asLockRemoved: { readonly lockId: U8aFixed; readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; } & Struct; readonly isLocked: boolean; readonly asLocked: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isUnlocked: boolean; readonly asUnlocked: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isIssued: boolean; readonly asIssued: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly amount: u128; } & Struct; readonly isRescinded: boolean; readonly asRescinded: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly amount: u128; } & Struct; readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'BalanceSet' | 'TotalIssuanceSet' | 'Withdrawn' | 'Slashed' | 'Deposited' | 'LockSet' | 'LockRemoved' | 'Locked' | 'Unlocked' | 'Issued' | 'Rescinded'; } /** @name AcalaPrimitivesCurrencyCurrencyId (53) */ interface AcalaPrimitivesCurrencyCurrencyId extends Enum { readonly isToken: boolean; readonly asToken: AcalaPrimitivesCurrencyTokenSymbol; readonly isDexShare: boolean; readonly asDexShare: ITuple<[AcalaPrimitivesCurrencyDexShare, AcalaPrimitivesCurrencyDexShare]>; readonly isErc20: boolean; readonly asErc20: H160; readonly isStableAssetPoolToken: boolean; readonly asStableAssetPoolToken: u32; readonly isLiquidCrowdloan: boolean; readonly asLiquidCrowdloan: u32; readonly isForeignAsset: boolean; readonly asForeignAsset: u16; readonly type: 'Token' | 'DexShare' | 'Erc20' | 'StableAssetPoolToken' | 'LiquidCrowdloan' | 'ForeignAsset'; } /** @name AcalaPrimitivesCurrencyTokenSymbol (54) */ interface AcalaPrimitivesCurrencyTokenSymbol extends Enum { readonly isAca: boolean; readonly isAusd: boolean; readonly isDot: boolean; readonly isLdot: boolean; readonly isTap: boolean; readonly isKar: boolean; readonly isKusd: boolean; readonly isKsm: boolean; readonly isLksm: boolean; readonly isTai: boolean; readonly isBnc: boolean; readonly isVsksm: boolean; readonly isPha: boolean; readonly isKint: boolean; readonly isKbtc: boolean; readonly type: 'Aca' | 'Ausd' | 'Dot' | 'Ldot' | 'Tap' | 'Kar' | 'Kusd' | 'Ksm' | 'Lksm' | 'Tai' | 'Bnc' | 'Vsksm' | 'Pha' | 'Kint' | 'Kbtc'; } /** @name AcalaPrimitivesCurrencyDexShare (55) */ interface AcalaPrimitivesCurrencyDexShare extends Enum { readonly isToken: boolean; readonly asToken: AcalaPrimitivesCurrencyTokenSymbol; readonly isErc20: boolean; readonly asErc20: H160; readonly isLiquidCrowdloan: boolean; readonly asLiquidCrowdloan: u32; readonly isForeignAsset: boolean; readonly asForeignAsset: u16; readonly isStableAssetPoolToken: boolean; readonly asStableAssetPoolToken: u32; readonly type: 'Token' | 'Erc20' | 'LiquidCrowdloan' | 'ForeignAsset' | 'StableAssetPoolToken'; } /** @name ModuleCurrenciesModuleEvent (57) */ interface ModuleCurrenciesModuleEvent extends Enum { readonly isTransferred: boolean; readonly asTransferred: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly from: AccountId32; readonly to: AccountId32; readonly amount: u128; } & Struct; readonly isWithdrawn: boolean; readonly asWithdrawn: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isDeposited: boolean; readonly asDeposited: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isDustSwept: boolean; readonly asDustSwept: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly who: AccountId32; readonly amount: u128; } & Struct; readonly type: 'Transferred' | 'Withdrawn' | 'Deposited' | 'DustSwept'; } /** @name OrmlVestingModuleEvent (58) */ interface OrmlVestingModuleEvent extends Enum { readonly isVestingScheduleAdded: boolean; readonly asVestingScheduleAdded: { readonly from: AccountId32; readonly to: AccountId32; readonly vestingSchedule: OrmlVestingVestingSchedule; } & Struct; readonly isClaimed: boolean; readonly asClaimed: { readonly who: AccountId32; readonly amount: u128; } & Struct; readonly isVestingSchedulesUpdated: boolean; readonly asVestingSchedulesUpdated: { readonly who: AccountId32; } & Struct; readonly type: 'VestingScheduleAdded' | 'Claimed' | 'VestingSchedulesUpdated'; } /** @name OrmlVestingVestingSchedule (59) */ interface OrmlVestingVestingSchedule extends Struct { readonly start: u32; readonly period: u32; readonly periodCount: u32; readonly perPeriod: Compact<u128>; } /** @name ModuleTransactionPaymentModuleEvent (61) */ interface ModuleTransactionPaymentModuleEvent extends Enum { readonly isChargeFeePoolEnabled: boolean; readonly asChargeFeePoolEnabled: { readonly subAccount: AccountId32; readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly exchangeRate: u128; readonly poolSize: u128; readonly swapThreshold: u128; } & Struct; readonly isChargeFeePoolSwapped: boolean; readonly asChargeFeePoolSwapped: { readonly subAccount: AccountId32; readonly supplyCurrencyId: AcalaPrimitivesCurrencyCurrencyId; readonly oldExchangeRate: u128; readonly swapExchangeRate: u128; readonly newExchangeRate: u128; readonly newPoolSize: u128; } & Struct; readonly isChargeFeePoolDisabled: boolean; readonly asChargeFeePoolDisabled: { readonly currencyId: AcalaPrimitivesCurrencyCurrencyId; readonly foreignAmount: u128; readonly nativeAmount: u128; } & Struct; readonly isTransactionFeePaid: boolean; readonly asTransactionFeePaid: { readonly who: AccountId32; readonly actualFee: u128; readonly actualTip: u128; readonly actualSurplus: u128; } & Struct; readonly type: 'ChargeFeePoolEnabled' | 'ChargeFeePoolSwapped' | 'ChargeFeePoolDisabled' | 'TransactionFeePaid'; } /** @name PalletTreasuryEvent (63) */ interface PalletTreasuryEvent extends Enum { readonly isSpending: boolean; readonly asSpending: { readonly budgetRemaining: u128; } & Struct; readonly isAwarded: boolean; readonly asAwarded: { readonly proposalIndex: u32; readonly award: u128; readonly account: AccountId32; } & Struct; readonly isBurnt: boolean; readonly asBurnt: { readonly burntFunds: u128; } & Struct; readonly isRollover: boolean; readonly asRollover: { readonly rolloverBalance: u128; } & Struct; readonly isDeposit: boolean; readonly asDeposit: { readonly value: u128; } & Struct; readonly isSpendApproved: boolean; readonly asSpendApproved: { readonly proposalIndex: u32; readonly amount: u128; readonly beneficiary: AccountId32; } & Struct; readonly isUpdatedInactive: boolean; readonly asUpdatedInactive: { readonly reactivated: u128; readonly deactivated: u128; } & Struct; readonly isAssetSpendApproved: boolean; readonly asAssetSpendApproved: { readonly index: u32; readonly assetKind: Null; readonly amount: u128; readonly beneficiary: AccountId32; readonly validFrom: u32; readonly expireAt: u32; } & Struct; readonly isAssetSpendVoided: boolean; readonly asAssetSpendVoided: { readonly index: u32; } & Struct; readonly isPaid: boolean; readonly asPaid: { readonly index: u32; readonly paymentId: Null; } & Struct; readonly isPaymentFailed: boolean; readonly asPaymentFailed: { readonly index: u32; readonly paymentId: Null; } & Struct; readonly isSpendProcessed: boolean; readonly asSpendProcessed: { readonly index: u32; } & Struct; readonly type: 'Spending' | 'Awarded' | 'Burnt' | 'Rollover' | 'Deposit' | 'SpendApproved' | 'UpdatedInactive' | 'AssetSpendApproved' | 'AssetSpendVoided' | 'Paid' | 'PaymentFailed' | 'SpendProcessed'; } /** @name PalletBountiesEvent (64) */ interface PalletBountiesEvent extends Enum { readonly isBountyProposed: boolean; readonly asBountyProposed: { readonly index: u32; } & Struct; readonly isBountyRejected: boolean; readonly asBountyRejected: { readonly index: u32; readonly bond: u128; } & Struct; readonly isBountyBecameActive: boolean; readonly asBountyBecameActive: { readonly index: u32; } & Struct; readonly isBountyAwarded: boolean; readonly asBountyAwarded: { readonly index: u32; readonly beneficiary: AccountId32; } & Struct; readonly isBountyClaimed: boolean; readonly asBountyClaimed: { readonly index: u32; readonly payout: u128; readonly beneficiary: AccountId32; } & Struct; readonly isBountyCanceled: boolean; readonly asBountyCanceled: { readonly index: u32; } & Struct; readonly isBountyExtended: boolean; readonly asBountyExtended: { readonly index: u32; } & Struct; readonly isBountyApproved: boolean; readonly asBountyApproved: { readonly index: u32; } & Struct; readonly isCuratorProposed: boolean; readonly asCuratorProposed: { readonly bountyId: u32; readonly curator: AccountId32; } & Struct; readonly isCuratorUnassigned: boolean; readonly asCuratorUnassigned: { readonly bountyId: u32; } & Struct; readonly isCuratorAccepted: boolean; readonly asCuratorAccepted: { readonly bountyId: u32; readonly curator: AccountId32; } & Struct; readonly type: 'BountyProposed' | 'BountyRejected' | 'BountyBecameActive' | 'BountyAwarded' | 'BountyClaimed' | 'BountyCanceled' | 'BountyExtended' | 'BountyApproved' | 'CuratorProposed' | 'CuratorUnassigned' | 'CuratorAccepted'; } /** @name PalletTipsEvent (65) */ interface PalletTipsEvent extends Enum { readonly isNewTip: boolean; readonly asNewTip: { readonly tipHash: H256; } & Struct; readonly isTipClosing: boolean; readonly asTipClosing: { readonly tipHash: H256; } & Struct; readonly isTipClosed: boolean; readonly asTipClosed: { readonly tipHash: H256; readonly who: AccountId32; readonly payout: u128; } & Struct; readonly isTipRetracted: boolean; readonly asTipRetracted: { readonly tipHash: H256; } & Struct; readonly isTipSlashed: boolean; readonly asTipSlashed: { readonly tipHash: H256; readonly finder: AccountId32; readonly deposit: u128; } & Struct; readonly type: 'NewTip' | 'TipClosing' | 'TipClosed' | 'TipRetracted' | 'TipSlashed'; } /** @name ModuleCollatorSelectionEvent (66) */ interface ModuleCollatorSelectionEvent extends Enum { readonly isNewInvulnerables: boolean; readonly asNewInvulnerables: { readonly newInvulnerables: Vec<AccountId32>; } & Struct; readonly isNewDesiredCandidates: boolean; readonly asNewDesiredCandidates: { readonly newDesiredCandidates: u32; } & Struct; readonly isNewCandidacyBond: boolean; readonly asNewCandidacyBond: { readonly newCandidacyBond: u128; } & Struct; readonly isCandidateAdded: boolean; readonly asCandidateAdded: { readonly who: AccountId32; readonly bond: u128; } & Struct; readonly isCandidateRemoved: boolean; readonly asCandidateRemoved: { readonly who: AccountId32; } & Struct; readonly type: 'NewInvulnerables' | 'NewDesiredCandidates' | 'NewCandidacyBond' | 'CandidateAdded' | 'CandidateRemoved'; } /** @name PalletSessionEvent (68) */ interface PalletSessionEvent extends Enum { readonly isNewSession: boolean; readonly asNewSession: { readonly sessionIndex: u32; } & Struct; readonly type: 'NewSession'; } /** @name ModuleSessionManagerModuleEvent (69) */ interface ModuleSessionManagerModuleEvent extends Enum { readonly isScheduledSessionDuration: boolean; readonly asScheduledSessionDuration: { readonly blockNumber: u32; readonly sessionIndex: u32; readonly sessionDuration: u32; } & Struct; readonly type: 'ScheduledSessionDuration'; } /** @name CumulusPalletXcmpQueueEvent (70) */ interface CumulusPalletXcmpQueueEvent extends Enum { readonly isXcmpMessageSent: boolean; readonly asXcmpMessageSent: { readonly messageHash: U8aFixed; } & Struct; readonly type: 'XcmpMessageSent'; } /** @name PalletXcmEvent (71) */ interface PalletXcmEvent extends Enum { readonly isAttempted: boolean; readonly asAttempted: { readonly outcome: StagingXcmV4TraitsOutcome; } & Struct; readonly isSent: boolean; readonly asSent: { readonly origin: StagingXcmV4Location; readonly destination: StagingXcmV4Location; readonly message: StagingXcmV4Xcm; readonly messageId: U8aFixed; } & Struct; readonly isUnexpectedResponse: boolean; readonly asUnexpectedResponse: { readonly origin: StagingXcmV4Location; readonly queryId: u64; } & Struct; readonly isResponseReady: boolean; readonly asResponseReady: { readonly queryId: u64; readonly response: StagingXcmV4Response; } & Struct; readonly isNotified: boolean; readonly asNotified: { readonly queryId: u64; readonly palletIndex: u8; readonly callIndex: u8; } & Struct; readonly isNotifyOverweight: boolean; readonly asNotifyOverweight: { readonly queryId: u64; readonly palletIndex: u8; readonly callIndex: u8; readonly actualWeight: SpWeightsWeightV2Weight; readonly maxBudgetedWeight: SpWeightsWeightV2Weight; } & Struct; readonly isNotifyDispatchError: boolean; readonly asNotifyDispatchError: { readonly queryId: u64; readonly palletIndex: u8; readonly callIndex: u8; } & Struct; readonly isNotifyDecodeFailed: boolean; readonly asNotifyDecodeFailed: { readonly queryId: u64; readonly palletIndex: u8; readonly callIndex: u8; } & Struct; readonly isInvalidResponder: boolean; readonly asInvalidResponder: { readonly origin: StagingXcmV4Location; readonly queryId: u64; readonly expectedLocation: Option<StagingXcmV4Location>; } & Struct; readonly isInvalidResponderVersion: boolean; readonly asInvalidResponderVersion: { readonly origin: StagingXcmV4Location; readonly queryId: u64; } & Struct; readonly isResponseTaken: boolean; readonly asResponseTaken: { readonly queryId: u64; } & Struct; readonly isAssetsTrapped: boolean; readonly asAssetsTrapped: { readonly hash_: H256; readonly origin: StagingXcmV4Location; readonly assets: XcmVersionedAssets; } & Struct; readonly isVersionChangeNotified: boolean; readonly asVersionChangeNotified: { readonly destination: StagingXcmV4Location; readonly result: u32; readonly cost: StagingXcmV4AssetAssets; readonly messageId: U8aFixed; } & Struct; readonly isSupportedVersionChanged: boolean; readonly asSupportedVersionChanged: { readonly location: StagingXcmV4Location; readonly version: u32; } & Struct; readonly isNotifyTargetSendFail: boolean; readonly asNotifyTargetSendFail: { readonly location: StagingXcmV4Location; readonly queryId: u64; readonly error: XcmV3TraitsError; } & Struct; readonly isNotifyTargetMigrationFail: boolean; readonly asNotifyTargetMigrationFail: { readonly location: XcmVersionedLocation; readonly queryId: u64; } & Struct; readonly isInvalidQuerierVersion: boolean; readonly asInvalidQuerierVersion: { readonly origin: StagingXcmV4Location; readonly queryId: u64; } & Struct; readonly isInvalidQuerier: boolean; readonly asInvalidQuerier: { readonly origin: StagingXcmV4Location; readonly queryId: u64; readonly expectedQuerier: StagingXcmV4Location; readonly maybeActualQuerier: Option<StagingXcmV4Location>; } & Struct; readonly isVersionNotifyStarted: boolean; readonly asVersionNotifyStarted: { readonly destination: StagingXcmV4Location; readonly cost: StagingXcmV4AssetAssets; readonly messageId: U8aFixed; } & Struct; readonly isVersionNotifyRequested: boolean; readonly asVersionNotifyRequested: { readonly destination: StagingXcmV4Location; readonly cost: StagingXcmV4AssetAssets; readonly messageId: U8aFixed; } & Struct; readonly isVersionNotifyUnrequested: boolean; readonly asVersionNotifyUnrequested: { readonly destination: StagingXcmV4Location; readonly cost: StagingXcmV4AssetAssets; readonly messageId: U8aFixed; } & Struct; readonly isFeesPaid: boolean; readonly asFeesPaid: { readonly paying: StagingXcmV4Location; readonly fees: StagingXcmV4AssetAssets; } & Struct; readonly isAssetsClaimed: boolean; readonly asAssetsClaimed: { readonly hash_: H256; readonly origin: StagingXcmV4Location; readonly assets: XcmVersionedAssets; } & Struct; readonly isVersionMigrationFinished: boolean; readonly asVersionMigrationFinished: { readonly version: u32; } & Struct; readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed' | 'VersionMigrationFinished'; } /** @name StagingXcmV4TraitsOutcome (72) */ interface StagingXcmV4TraitsOutcome extends Enum { readonly isComplete: boolean; readonly asComplete: { readonly used: SpWeightsWeightV2Weight; } & Struct; readonly isIncomplete: boolean; readonly asIncomplete: { readonly used: SpWeightsWeightV2Weight; readonly error: XcmV3TraitsError; } & Struct; readonly isError: boolean; readonly asError: { readonly error: XcmV3TraitsError; } & Struct; readonly type: 'Complete' | 'Incomplete' | 'Error'; } /** @name XcmV3TraitsError (73) */ interface XcmV3TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; readonly isUntrustedReserveLocation: boolean; readonly isUntrustedTeleportLocation: boolean; readonly isLocationFull: boolean; readonly isLocationNotInvertible: boolean; readonly isBadOrigin: boolean; readonly isInvalidLocation: boolean; readonly isAssetNotFound: boolean; readonly isFailedToTransactAsset: boolean; readonly isNotWithdrawable: boolean; readonly isLocationCannotHold: boolean; readonly isExceedsMaxMessageSize: boolean; readonly isDestinationUnsupported: boolean; readonly isTransport: boolean; readonly isUnroutable: boolean; readonly isUnknownClaim: boolean; readonly isFailedToDecode: boolean; readonly isMaxWeightInvalid: boolean; readonly isNotHoldingFees: boolean; readonly isTooExpensive: boolean; readonly isTrap: boolean; readonly asTrap: u64; readonly isExpectationFalse: boolean; readonly isPalletNotFound: boolean; readonly isNameMismatch: boolean; readonly isVersionIncompatible: boolean; readonly isHoldingWouldOverflow: boolean; readonly isExportError: boolean; readonly isReanchorFailed: boolean; readonly isNoDeal: boolean; readonly isFeesNotMet: boolean; readonly isLockError: boolean; readonly isNoPermission: boolean; readonly isUnanchored: boolean; readonly isNotDepositable: boolean; readonly isUnhandledXcmVersion: boolean; readonly isWeightLimitReached: boolean; readonly asWeightLimitReached: SpWeightsWeightV2Weight; readonly isBarrier: boolean; readonly isWeightNotComputable: boolean; readonly isExceedsStackLimit: boolean; readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit'; } /** @name StagingXcmV4Location (74) */ interface StagingXcmV4Location extends Struct { readonly parents: u8; readonly interior: StagingXcmV4Junctions; } /** @name StagingXcmV4Junctions (75) */ interface StagingXcmV4Junctions extends Enum { readonly isHere: boolean; readonly isX1: boolean; readonly asX1: StagingXcmV4Junction; readonly isX2: boolean; readonly asX2: StagingXcmV4Junction; readonly isX3: boolean; readonly asX3: StagingXcmV4Junction; readonly isX4: boolean; readonly asX4: StagingXcmV4Junction; readonly isX5: boolean; readonly asX5: StagingXcmV4Junction; readonly isX6: boolean; readonly asX6: StagingXcmV4Junction; readonly isX7: boolean; readonly asX7: StagingXcmV4Junction; readonly isX8: boolean; readonly asX8: StagingXcmV4Junction; readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8'; } /** @name StagingXcmV4Junction (77) */ interface StagingXcmV4Junction extends Enum { readonly isParachain: boolean; readonly asParachain: Compact<u32>; readonly isAccountId32: boolean; readonly asAccountId32: { readonly network: Option<StagingXcmV4JunctionNetworkId>; readonly id: U8aFixed; } & Struct; readonly isAccountIndex64: boolean; readonly asAccountIndex64: { readonly network: Option<StagingXcmV4JunctionNetworkId>; readonly index: Compact<u64>; } & Struct; readonly isAccountKey20: boolean;