UNPKG

@acala-network/types

Version:

Acala types for @polkadot/api

26 lines (25 loc) 1.02 kB
import type { CurrencyId } from '@acala-network/types/interfaces/primitives'; import type { AccountId } from '@acala-network/types/interfaces/runtime'; import type { Enum } from '@polkadot/types-codec'; /** @name PoolId */ export interface PoolId extends Enum { readonly isLoans: boolean; readonly asLoans: CurrencyId; readonly isDex: boolean; readonly asDex: CurrencyId; readonly type: 'Loans' | 'Dex'; } /** @name PoolIdV0 */ export interface PoolIdV0 extends Enum { readonly isLoansIncentive: boolean; readonly asLoansIncentive: CurrencyId; readonly isDexIncentive: boolean; readonly asDexIncentive: CurrencyId; readonly isHomaIncentive: boolean; readonly isDexSaving: boolean; readonly asDexSaving: CurrencyId; readonly isHomaValidatorAllowance: boolean; readonly asHomaValidatorAllowance: AccountId; readonly type: 'LoansIncentive' | 'DexIncentive' | 'HomaIncentive' | 'DexSaving' | 'HomaValidatorAllowance'; } export type PHANTOM_INCENTIVES = 'incentives';