UNPKG

1.15 kBJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/types authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3// order important in structs... :)
4
5/* eslint-disable sort-keys */
6export default {
7 rpc: {},
8 types: {
9 AccountData: {
10 free: 'Balance',
11 reserved: 'Balance',
12 miscFrozen: 'Balance',
13 feeFrozen: 'Balance'
14 },
15 BalanceLockTo212: {
16 id: 'LockIdentifier',
17 amount: 'Balance',
18 until: 'BlockNumber',
19 reasons: 'WithdrawReasons'
20 },
21 BalanceLock: {
22 id: 'LockIdentifier',
23 amount: 'Balance',
24 reasons: 'Reasons'
25 },
26 BalanceStatus: {
27 _enum: ['Free', 'Reserved']
28 },
29 Reasons: {
30 _enum: ['Fee', 'Misc', 'All']
31 },
32 ReserveData: {
33 id: 'ReserveIdentifier',
34 amount: 'Balance'
35 },
36 ReserveIdentifier: '[u8; 8]',
37 VestingSchedule: {
38 offset: 'Balance',
39 perBlock: 'Balance',
40 startingBlock: 'BlockNumber'
41 },
42 WithdrawReasons: {
43 _set: {
44 TransactionPayment: 0b00000001,
45 Transfer: 0b00000010,
46 Reserve: 0b00000100,
47 Fee: 0b00001000,
48 Tip: 0b00010000
49 }
50 }
51 }
52};
\No newline at end of file