UNPKG

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