@reef-defi/types
Version:
Polkadot.js type definations for Reef Chain
21 lines (20 loc) • 661 B
TypeScript
import type { Enum, Struct, u32 } from '@polkadot/types';
import type { AccountId, BalanceOf, BlockNumber } from '@reef-defi/types/interfaces/runtime';
/** @name CommitmentOf */
export interface CommitmentOf extends Struct {
readonly duration: LockDuration;
readonly amount: BalanceOf;
readonly candidate: AccountId;
}
/** @name Era */
export interface Era extends Struct {
readonly index: u32;
readonly start: BlockNumber;
}
/** @name LockDuration */
export interface LockDuration extends Enum {
readonly isOneMonth: boolean;
readonly isOneYear: boolean;
readonly isTenYears: boolean;
}
export declare type PHANTOM_POC = 'poc';