UNPKG

1.83 kBTypeScriptView Raw
1import type { Enum, Set, Struct, U8aFixed } from '@polkadot/types-codec';
2import type { Balance, BlockNumber, LockIdentifier } from '@polkadot/types/interfaces/runtime';
3/** @name AccountData */
4export interface AccountData extends Struct {
5 readonly free: Balance;
6 readonly reserved: Balance;
7 readonly miscFrozen: Balance;
8 readonly feeFrozen: Balance;
9}
10/** @name BalanceLock */
11export interface BalanceLock extends Struct {
12 readonly id: LockIdentifier;
13 readonly amount: Balance;
14 readonly reasons: Reasons;
15}
16/** @name BalanceLockTo212 */
17export interface BalanceLockTo212 extends Struct {
18 readonly id: LockIdentifier;
19 readonly amount: Balance;
20 readonly until: BlockNumber;
21 readonly reasons: WithdrawReasons;
22}
23/** @name BalanceStatus */
24export interface BalanceStatus extends Enum {
25 readonly isFree: boolean;
26 readonly isReserved: boolean;
27 readonly type: 'Free' | 'Reserved';
28}
29/** @name Reasons */
30export interface Reasons extends Enum {
31 readonly isFee: boolean;
32 readonly isMisc: boolean;
33 readonly isAll: boolean;
34 readonly type: 'Fee' | 'Misc' | 'All';
35}
36/** @name ReserveData */
37export interface ReserveData extends Struct {
38 readonly id: ReserveIdentifier;
39 readonly amount: Balance;
40}
41/** @name ReserveIdentifier */
42export interface ReserveIdentifier extends U8aFixed {
43}
44/** @name VestingSchedule */
45export interface VestingSchedule extends Struct {
46 readonly offset: Balance;
47 readonly perBlock: Balance;
48 readonly startingBlock: BlockNumber;
49}
50/** @name WithdrawReasons */
51export interface WithdrawReasons extends Set {
52 readonly isTransactionPayment: boolean;
53 readonly isTransfer: boolean;
54 readonly isReserve: boolean;
55 readonly isFee: boolean;
56 readonly isTip: boolean;
57}
58export type PHANTOM_BALANCES = 'balances';