UNPKG

801 BJavaScriptView 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 ApprovalFlag: 'u32',
11 DefunctVoter: {
12 who: 'AccountId',
13 voteCount: 'Compact<u32>',
14 candidateCount: 'Compact<u32>'
15 },
16 Renouncing: {
17 _enum: {
18 Member: 'Null',
19 RunnerUp: 'Null',
20 Candidate: 'Compact<u32>'
21 }
22 },
23 SetIndex: 'u32',
24 Vote: 'GenericVote',
25 VoteIndex: 'u32',
26 VoterInfo: {
27 lastActive: 'VoteIndex',
28 lastWin: 'VoteIndex',
29 pot: 'Balance',
30 stake: 'Balance'
31 },
32 VoteThreshold: {
33 _enum: ['Super Majority Approve', 'Super Majority Against', 'Simple Majority']
34 }
35 }
36};
\No newline at end of file