@terminusbet/stake-vote-sdk
Version:
A simple SDK for interacting with terminusbet governance
4,855 lines • 166 kB
JSON
{
"address": "J3T4RhtqwEkJ8wJofbRVQFv38wsVHXSYi2Z9iuSYvsBh",
"metadata": {
"name": "stake_vote",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
"name": "active_end",
"discriminator": [
104,
62,
44,
255,
161,
163,
95,
138
],
"accounts": [
{
"name": "stake_operator",
"writable": true,
"signer": true
},
{
"name": "ballot_box_state"
},
{
"name": "active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
}
]
}
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "app_config_initialize",
"discriminator": [
252,
42,
33,
37,
179,
27,
252,
196
],
"accounts": [
{
"name": "admin",
"writable": true,
"signer": true
},
{
"name": "config_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
}
]
}
},
{
"name": "stake_operator"
},
{
"name": "stake_mint_author",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
109,
105,
110,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "platform_mint"
},
{
"name": "platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
}
],
"args": []
},
{
"name": "create_ballot_box",
"discriminator": [
128,
55,
13,
178,
110,
119,
141,
84
],
"accounts": [
{
"name": "stake_operator",
"writable": true,
"signer": true
},
{
"name": "ballot_box_state",
"writable": true,
"signer": true
},
{
"name": "active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
}
]
}
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "CreateBallotBoxParams"
}
}
}
]
},
{
"name": "create_reward_pool",
"discriminator": [
199,
136,
155,
69,
28,
136,
237,
214
],
"accounts": [
{
"name": "opeator",
"writable": true,
"signer": true
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "ballot_box"
},
{
"name": "mint"
},
{
"name": "vote_reward",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
114,
101,
119,
97,
114,
100
]
},
{
"kind": "account",
"path": "ballot_box"
}
]
}
},
{
"name": "reward_pool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "vote_reward"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "create_stake",
"discriminator": [
201,
134,
55,
171,
2,
136,
228,
226
],
"accounts": [
{
"name": "stake_operator",
"writable": true,
"signer": true
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "state_pool",
"writable": true,
"signer": true
},
{
"name": "stake_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "CreateStakeParams"
}
}
}
]
},
{
"name": "reward_deposit",
"discriminator": [
129,
243,
246,
179,
185,
7,
200,
117
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "ballot_box"
},
{
"name": "mint"
},
{
"name": "vote_reward",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
114,
101,
119,
97,
114,
100
]
},
{
"kind": "account",
"path": "ballot_box"
}
]
}
},
{
"name": "user_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "reward_pool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "vote_reward"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "amount",
"type": "u64"
}
]
},
{
"name": "reward_receive",
"discriminator": [
6,
126,
185,
192,
65,
185,
26,
214
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "ballot_box"
},
{
"name": "user_vote_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "ballot_box"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "vote_reward",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
114,
101,
119,
97,
114,
100
]
},
{
"kind": "account",
"path": "ballot_box"
}
]
}
},
{
"name": "user_reward_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
114,
101,
119,
97,
114,
100
]
},
{
"kind": "account",
"path": "ballot_box"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "mint"
},
{
"name": "user_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "reward_pool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "vote_reward"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "simulate_add_stake_amount",
"discriminator": [
110,
204,
13,
105,
223,
237,
164,
163
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "stake_pool_state"
},
{
"name": "user_vote_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
}
],
"args": [
{
"name": "amount",
"type": "u64"
}
],
"returns": {
"defined": {
"name": "StakeAddStakeResult"
}
}
},
{
"name": "simulate_add_stake_time",
"discriminator": [
170,
94,
200,
198,
130,
22,
186,
46
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "stake_pool_state"
},
{
"name": "user_vote_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
}
],
"args": [
{
"name": "peroid",
"type": "u64"
}
],
"returns": {
"defined": {
"name": "StakeAddTimeResult"
}
}
},
{
"name": "simulate_get_current_vote_by_amount",
"discriminator": [
24,
25,
253,
173,
133,
145,
58,
119
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "stake_pool_state"
},
{
"name": "user_vote_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
}
],
"args": [
{
"name": "amount",
"type": "u64"
},
{
"name": "min_amount",
"type": "u64"
}
],
"returns": {
"defined": {
"name": "VoteLeftResult"
}
}
},
{
"name": "simulate_stake_release",
"discriminator": [
46,
63,
151,
167,
152,
223,
231,
50
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "stake_pool_state"
},
{
"name": "user_vote_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
}
],
"args": [],
"returns": {
"defined": {
"name": "StakeReleaseResult"
}
}
},
{
"name": "stake",
"discriminator": [
206,
176,
202,
18,
200,
209,
179,
108
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "stake_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "stake_pool_state"
},
{
"name": "user_vote_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "platform_mint"
},
{
"name": "voucher_mint",
"writable": true
},
{
"name": "stake_mint_author",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
109,
105,
110,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "user_platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "user_voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "StakeParams"
}
}
}
]
},
{
"name": "stake_add",
"discriminator": [
31,
201,
111,
243,
192,
138,
179,
29
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "stake_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "stake_pool_state"
},
{
"name": "user_stake_vote_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "platform_mint"
},
{
"name": "voucher_mint",
"writable": true
},
{
"name": "stake_mint_author",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
109,
105,
110,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "user_platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "user_voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "StakeAddParams"
}
}
}
]
},
{
"name": "stake_init",
"discriminator": [
137,
167,
22,
241,
128,
110,
12,
105
],
"accounts": [
{
"name": "stake_operator",
"writable": true,
"signer": true
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "stake_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "stake_mint_author",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
109,
105,
110,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "platform_mint"
},
{
"name": "voucher_mint",
"writable": true,
"signer": true
},
{
"name": "platform_mint_token_account",
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "stake_set_platform_mint",
"discriminator": [
48,
232,
249,
52,
170,
115,
1,
190
],
"accounts": [
{
"name": "stake_operator",
"writable": true,
"signer": true
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "stake_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "stake_mint_author",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
109,
105,
110,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "platform_mint"
},
{
"name": "platform_mint_token_account",
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "stake_withdraw",
"discriminator": [
199,
13,
168,
20,
92,
151,
29,
56
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "stake_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "stake_pool_state"
},
{
"name": "user_stake_vote_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "platform_mint"
},
{
"name": "voucher_mint",
"writable": true
},
{
"name": "stake_mint_author",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
109,
105,
110,
116,
45,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "user_platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "user_voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "user"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "platform_platform_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "platform_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "platform_voucher_mint_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "stake_mint_author"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "voucher_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
}
]
}
},
{
"name": "user_active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "amount",
"type": "u64"
}
]
},
{
"name": "start_reward",
"discriminator": [
195,
182,
74,
138,
59,
123,
163,
240
],
"accounts": [
{
"name": "opeator",
"writable": true,
"signer": true
},
{
"name": "config_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
97,
112,
112,
45,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "ballot_box"
},
{
"name": "vote_reward",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
114,
101,
119,
97,
114,
100
]
},
{
"kind": "account",
"path": "ballot_box"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "user_active_ballot_box_init",
"discriminator": [
100,
73,
104,
127,
32,
72,
188,
251
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "stake_pool_state"
},
{
"name": "user_active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "vote",
"discriminator": [
227,
110,
155,
23,
136,
126,
172,
25
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "stake_state",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
115,
116,
97,
107,
101,
45,
115,
116,
97,
116,
101
]
}
]
}
},
{
"name": "stake_pool_state"
},
{
"name": "user_stake_vote_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "ballot_box_state",
"writable": true
},
{
"name": "user_active_ballot_box",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
45,
97,
99,
116,
105,
118,
101,
45,
98,
97,
108,
108,
111,
116,
45,
98,
111,
120
]
},
{
"kind": "account",
"path": "stake_pool_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "user_vote_state",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
118,
111,
116,
101,
45,
115,
116,
97,
116,
101
]
},
{
"kind": "account",
"path": "ballot_box_state"
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "params",
"type": {
"defined": {
"name": "VoteParams"
}
}
}
]
}
],
"accounts": [
{
"name": "ActiveBallotBoxState",
"discriminator": [
210,
64,
7,
111,
175,
192,
42,
255
]
},
{
"name": "BallotBoxState",
"discriminator": [
155,
15,
144,
19,
239,
245,
93,
175
]
},
{
"name": "ConfigState",
"discriminator": [
193,
77,
160,
128,
208,
254,
180,
135
]
},
{
"name": "StakePoolState",
"discriminator": [
74,
243,
209,
228,
233,
79,
59,
253
]
},
{
"name": "StakeState",
"discriminator": [
108,
10,
236,
72,
1,
88,
133,
92
]
},
{
"name": "UserActiveBallotBoxState",
"discriminator": [
30,
41,
94,
101,
33,
139,
51,
16
]
},
{
"name": "UserRewardState",
"discriminator": [
55,
207,
144,
38,
203,
106,
156,
82
]
},
{
"name": "UserStakeVoteState",
"discriminator": [
40,
236,
161,
128,
142,
79,
240,
54
]
},
{
"name": "UserVoteState",
"discriminator": [
234,
205,
239,
206,
236,
120,
214,
207
]
},
{
"name": "VoteRewardState",
"discriminator": [
209,
95,
41,
43,
20,
64,
149,
44
]
}
],
"types": [
{
"name": "ActiveBallotBoxState",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_bots",
"type": {
"vec": "pubkey"
}
}
]
}
},
{
"name": "BallotBoxCreateEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "xid",
"type": "u64"
},
{
"name": "ballot_box",
"type": "pubkey"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "time_start_at",
"type": "u64"
},
{
"name": "time_end_at",
"type": "u64"
},
{
"name": "uri",
"type": "string"
}
]
}
},
{
"name": "BallotBoxState",
"type": {
"kind": "struct",
"fields": [
{
"name": "start_at",
"type": "u64"
},
{
"name": "end_at",
"type": "u64"
},
{
"name": "total_vote",
"type": "u64"
},
{
"name": "is_completed",
"type": "bool"
},
{
"name": "uri",
"type": "string"
}
]
}
},
{
"name": "ConfigState",
"type": {
"kind": "struct",
"fields": [
{
"name": "admin",
"type": "pubkey"
},
{
"name": "stake_operator",
"type": "pubkey"
}
]
}
},
{
"name": "CreateBallotBoxParams",
"type": {
"kind": "struct",
"fields": [
{
"name": "xid",
"type": "u64"
},
{
"name": "time_start_at",
"type": {
"option": "u64"
}
},
{
"name": "time_end_at",
"type": "u64"
},
{
"name": "uri",
"type": "string"
}
]
}
},
{
"name": "CreateStakeParams",
"type": {
"kind": "struct",
"fields": [
{
"name": "stake_period",
"type": "u64"
},
{
"name": "reward_grow_by",
"type": "u64"
},
{
"name": "reward_grow_min_by",
"type": "u64"
}
]
}
},
{
"name": "RewardDepositEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_box",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "amount",
"type": "u64"
},
{
"name": "reward_amount_total",
"type": "u64"
}
]
}
},
{
"name": "RewardPoolCreateEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_box",
"type": "pubkey"
},
{
"name": "vote_reward_state",
"type": "pubkey"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "created_at",
"type": "u64"
}
]
}
},
{
"name": "RewardReceivedEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_box",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "amount",
"type": "u64"
}
]
}
},
{
"name": "RewardStartEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_box",
"type": "pubkey"
},
{
"name": "vote_reward_state",
"type": "pubkey"
},
{
"name": "start_at",
"type": "u64"
}
]
}
},
{
"name": "StakeAddEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "stake_pool",
"type": "pubkey"
},
{
"name": "user_vote_state",
"type": "pubkey"
},
{
"name": "stake_add_type",
"type": "u8"
},
{
"name": "add_amount",
"type": "u64"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "stake_release_recived",
"type": "u128"
},
{
"name": "stake_release_not_recived",
"type": "u128"
},
{
"name": "stake_release_per_time",
"type": "u128"
},
{
"name": "vote_redece_per_time",
"type": "u128"
}
]
}
},
{
"name": "StakeAddParams",
"type": {
"kind": "struct",
"fields": [
{
"name": "amount",
"type": "u64"
},
{
"name": "add_type",
"type": "u8"
}
]
}
},
{
"name": "StakeAddStakeResult",
"type": {
"kind": "struct",
"fields": [
{
"name": "time_current",
"type": "u64"
},
{
"name": "vote_add_new",
"type": "u64"
},
{
"name": "vote_total_new",
"type": "u128"
},
{
"name": "vote_per_time_new",
"type": "u128"
},
{
"name": "stake_per_time_new",
"type": "u128"
}
]
}
},
{
"name": "StakeAddTimeResult",
"type": {
"kind": "struct",
"fields": [
{
"name": "time_current",
"type": "u64"
},
{
"name": "stake_release_now",
"type": "u64"
},
{
"name": "stake_per_time_new",
"type": "u128"
},
{
"name": "vote_add_new",
"type": "u64"
},
{
"name": "vote_total_new",
"type": "u128"
},
{
"name": "vote_per_time_new",
"type": "u128"
}
]
}
},
{
"name": "StakeEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "stake_pool",
"type": "pubkey"
},
{
"name": "user_vote_state",
"type": "pubkey"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "state_period",
"type": "u64"
},
{
"name": "stake_amount",
"type": "u64"
},
{
"name": "vote_amount",
"type": "u64"
},
{
"name": "stake_release_recived",
"type": "u128"
},
{
"name": "stake_release_not_recived",
"type": "u128"
},
{
"name": "stake_release_per_time",
"type": "u128"
},
{
"name": "vote_redece_per_time",
"type": "u128"
}
]
}
},
{
"name": "StakeParams",
"type": {
"kind": "struct",
"fields": [
{
"name": "amount",
"type": "u64"
}
]
}
},
{
"name": "StakePoolState",
"type": {
"kind": "struct",
"fields": [
{
"name": "stake_period",
"type": "u64"
},
{
"name": "reward_grow_by",
"type": "u64"
},
{
"name": "grow_reduce_by",
"type": "u64"
},
{
"name": "decimal",
"type": "u8"
},
{
"name": "reward_grow_min_by",
"type": "u64"
}
]
}
},
{
"name": "StakeReleaseResult",
"type": {
"kind": "struct",
"fields": [
{
"name": "time_release_at",
"type": "u64"
},
{
"name": "stake_release",
"type": "u64"
}
]
}
},
{
"name": "StakeState",
"type": {
"kind": "struct",
"fields": [
{
"name": "operater",
"type": "pubkey"
},
{
"name": "stake_mint_author",
"type": "pubkey"
},
{
"name": "platform_mint",
"type": "pubkey"
},
{
"name": "voucher_mint",
"type": "pubkey"
},
{
"name": "platform_mint_token_account",
"type": "pubkey"
},
{
"name": "voucher_mint_token_account",
"type": "pubkey"
}
]
}
},
{
"name": "StakeWithdrawEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "stake_pool",
"type": "pubkey"
},
{
"name": "user_vote_state",
"type": "pubkey"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "stake_release_recived",
"type": "u128"
},
{
"name": "stake_release_not_recived",
"type": "u128"
}
]
}
},
{
"name": "UserActiveBallotAndLock",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_bot",
"type": "pubkey"
},
{
"name": "stake_lock",
"type": "u64"
}
]
}
},
{
"name": "UserActiveBallotBoxState",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "ballot_locks",
"type": {
"vec": {
"defined": {
"name": "UserActiveBallotAndLock"
}
}
}
}
]
}
},
{
"name": "UserRewardState",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_bot",
"type": "pubkey"
},
{
"name": "reward_mint",
"type": "pubkey"
},
{
"name": "vote_reward_state",
"type": "pubkey"
},
{
"name": "amount",
"type": "u64"
}
]
}
},
{
"name": "UserStakeVoteState",
"type": {
"kind": "struct",
"fields": [
{
"name": "stake_pool_state",
"type": "pubkey"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "time_start_at",
"type": "u64"
},
{
"name": "time_end_at",
"type": "u64"
},
{
"name": "time_stake_release",
"type": "u64"
},
{
"name": "period_used",
"type": "u64"
},
{
"name": "period_total",
"type": "u64"
},
{
"name": "stake_all_total",
"type": "u128"
},
{
"name": "stake_total",
"type": "u64"
},
{
"name": "stake_release_not_recived",
"type": "u128"
},
{
"name": "stake_release_recived",
"type": "u128"
},
{
"name": "stake_release_per_time",
"type": "u128"
},
{
"name": "vote_per_time",
"type": "u128"
},
{
"name": "vote_used",
"type": "u64"
},
{
"name": "vote_total",
"type": "u64"
},
{
"name": "decimal",
"type": "u8"
}
]
}
},
{
"name": "UserVoteState",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_bot",
"type": "pubkey"
},
{
"name": "owner",
"type": "pubkey"
},
{
"name": "vote_count",
"type": "u64"
}
]
}
},
{
"name": "VoteEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "stake_pool",
"type": "pubkey"
},
{
"name": "user_vote_state",
"type": "pubkey"
},
{
"name": "ballot_box",
"type": "pubkey"
},
{
"name": "ballot_box_vote_amount",
"type": "u64"
},
{
"name": "created_at",
"type": "u64"
},
{
"name": "vote_amount_use",
"type": "u64"
}
]
}
},
{
"name": "VoteLeftResult",
"type": {
"kind": "struct",
"fields": [
{
"name": "period_total_used",
"type": "u64"
},
{
"name": "period_this_used",
"type": "u64"
},
{
"name": "vote_this_used",
"type": "u64"
},
{
"name": "vote_left",
"type": "u64"
}
]
}
},
{
"name": "VoteParams",
"type": {
"kind": "struct",
"fields": [
{
"name": "amount",
"type": "u64"
},
{
"name": "min_amount",
"type": {
"option": "u64"
}
},
{
"name": "is_whole",
"type": "bool"
}
]
}
},
{
"name": "VoteRewardState",
"type": {
"kind": "struct",
"fields": [
{
"name": "ballot_bot",
"type": "pubkey"
},
{
"name": "reward_mint",
"type": "pubkey"
},
{
"name": "amount",
"type": "u64"
},
{
"name": "is_start",
"type": "bool"
}
]
}
}
]
}