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