1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export const AllConvictions = [
|
7 | 'None',
|
8 | 'Locked1x',
|
9 | 'Locked2x',
|
10 | 'Locked3x',
|
11 | 'Locked4x',
|
12 | 'Locked5x',
|
13 | 'Locked6x'];
|
14 | export default {
|
15 | rpc: {},
|
16 | types: {
|
17 | AccountVote: {
|
18 | _enum: {
|
19 | Standard: 'AccountVoteStandard',
|
20 | Split: 'AccountVoteSplit'
|
21 | }
|
22 | },
|
23 | AccountVoteSplit: {
|
24 | aye: 'Balance',
|
25 | nay: 'Balance'
|
26 | },
|
27 | AccountVoteStandard: {
|
28 | vote: 'Vote',
|
29 | balance: 'Balance'
|
30 | },
|
31 | Conviction: {
|
32 | _enum: AllConvictions
|
33 | },
|
34 | Delegations: {
|
35 | votes: 'Balance',
|
36 | capital: 'Balance'
|
37 | },
|
38 | PreimageStatus: {
|
39 | _enum: {
|
40 | Missing: 'BlockNumber',
|
41 | Available: 'PreimageStatusAvailable'
|
42 | }
|
43 | },
|
44 | PreimageStatusAvailable: {
|
45 | data: 'Bytes',
|
46 | provider: 'AccountId',
|
47 | deposit: 'Balance',
|
48 | since: 'BlockNumber',
|
49 | expiry: 'Option<BlockNumber>'
|
50 | },
|
51 | PriorLock: '(BlockNumber, Balance)',
|
52 | PropIndex: 'u32',
|
53 | Proposal: 'Call',
|
54 | ProxyState: {
|
55 | _enum: {
|
56 | Open: 'AccountId',
|
57 | Active: 'AccountId'
|
58 | }
|
59 | },
|
60 | ReferendumIndex: 'u32',
|
61 | ReferendumInfoTo239: {
|
62 | end: 'BlockNumber',
|
63 | proposalHash: 'Hash',
|
64 | threshold: 'VoteThreshold',
|
65 | delay: 'BlockNumber'
|
66 | },
|
67 | ReferendumInfo: {
|
68 | _enum: {
|
69 | Ongoing: 'ReferendumStatus',
|
70 | Finished: 'ReferendumInfoFinished'
|
71 | }
|
72 | },
|
73 | ReferendumInfoFinished: {
|
74 | approved: 'bool',
|
75 | end: 'BlockNumber'
|
76 | },
|
77 | ReferendumStatus: {
|
78 | end: 'BlockNumber',
|
79 | proposalHash: 'Hash',
|
80 | threshold: 'VoteThreshold',
|
81 | delay: 'BlockNumber',
|
82 | tally: 'Tally'
|
83 | },
|
84 | Tally: {
|
85 | ayes: 'Balance',
|
86 | nays: 'Balance',
|
87 | turnout: 'Balance'
|
88 | },
|
89 | Voting: {
|
90 | _enum: {
|
91 | Direct: 'VotingDirect',
|
92 | Delegating: 'VotingDelegating'
|
93 | }
|
94 | },
|
95 | VotingDirect: {
|
96 | votes: 'Vec<VotingDirectVote>',
|
97 | delegations: 'Delegations',
|
98 | prior: 'PriorLock'
|
99 | },
|
100 | VotingDirectVote: '(ReferendumIndex, AccountVote)',
|
101 | VotingDelegating: {
|
102 | balance: 'Balance',
|
103 | target: 'AccountId',
|
104 | conviction: 'Conviction',
|
105 | delegations: 'Delegations',
|
106 | prior: 'PriorLock'
|
107 | }
|
108 | }
|
109 | }; |
\ | No newline at end of file |