@polkadot/types
Version:
Implementation of the Parity codec
48 lines (47 loc) • 1.22 kB
JavaScript
export default {
rpc: {},
types: {
AccountData: {
free: 'Balance',
reserved: 'Balance',
miscFrozen: 'Balance',
feeFrozen: 'Balance'
},
BalanceLockTo212: {
id: 'LockIdentifier',
amount: 'Balance',
until: 'BlockNumber',
reasons: 'WithdrawReasons'
},
BalanceLock: {
id: 'LockIdentifier',
amount: 'Balance',
reasons: 'Reasons'
},
BalanceStatus: {
_enum: ['Free', 'Reserved']
},
Reasons: {
_enum: ['Fee', 'Misc', 'All']
},
ReserveData: {
id: 'ReserveIdentifier',
amount: 'Balance'
},
ReserveIdentifier: '[u8; 8]',
VestingSchedule: {
offset: 'Balance',
perBlock: 'Balance',
startingBlock: 'BlockNumber'
},
WithdrawReasons: {
_set: {
TransactionPayment: 0b0000_0001,
Transfer: 0b0000_0010,
Reserve: 0b0000_0100,
Fee: 0b0000_1000,
Tip: 0b0001_0000
}
}
}
};