@dfinity/nns 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -24
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +488 -312
- package/dist/candid/governance.d.ts +101 -0
- package/dist/candid/governance.did +104 -3
- package/dist/candid/governance.idl.js +496 -320
- package/dist/candid/governance_test.certified.idl.js +115 -0
- package/dist/candid/governance_test.d.ts +69 -0
- package/dist/candid/governance_test.did +67 -2
- package/dist/candid/governance_test.idl.js +115 -0
- package/dist/candid/sns_wasm.certified.idl.js +2 -0
- package/dist/candid/sns_wasm.d.ts +2 -0
- package/dist/candid/sns_wasm.did +3 -1
- package/dist/candid/sns_wasm.idl.js +2 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-2MR4JA3T.js +20 -0
- package/dist/esm/chunk-2MR4JA3T.js.map +7 -0
- package/dist/esm/chunk-YGDWD6VV.js +2 -0
- package/dist/esm/chunk-YGDWD6VV.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/sns_wasm.canister.js +1 -1
- package/dist/types/canisters/governance/request.converters.d.ts +1 -1
- package/dist/types/canisters/governance/response.converters.d.ts +2 -1
- package/dist/types/enums/governance.enums.d.ts +3 -1
- package/dist/types/governance_test.canister.d.ts +14 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/governance_converters.d.ts +17 -11
- package/package.json +1 -1
- package/dist/esm/chunk-IJWQXUQ5.js +0 -2
- package/dist/esm/chunk-IJWQXUQ5.js.map +0 -7
- package/dist/esm/chunk-LARRGLCK.js +0 -20
- package/dist/esm/chunk-LARRGLCK.js.map +0 -7
|
@@ -3,129 +3,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
3
3
|
const Proposal = IDL.Rec();
|
|
4
4
|
const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
5
5
|
const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
|
|
6
|
-
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
7
|
-
const NodeProvider = IDL.Record({
|
|
8
|
-
'id' : IDL.Opt(IDL.Principal),
|
|
9
|
-
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
10
|
-
});
|
|
11
|
-
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
12
|
-
const RewardToAccount = IDL.Record({
|
|
13
|
-
'to_account' : IDL.Opt(AccountIdentifier),
|
|
14
|
-
});
|
|
15
|
-
const RewardMode = IDL.Variant({
|
|
16
|
-
'RewardToNeuron' : RewardToNeuron,
|
|
17
|
-
'RewardToAccount' : RewardToAccount,
|
|
18
|
-
});
|
|
19
|
-
const RewardNodeProvider = IDL.Record({
|
|
20
|
-
'node_provider' : IDL.Opt(NodeProvider),
|
|
21
|
-
'reward_mode' : IDL.Opt(RewardMode),
|
|
22
|
-
'amount_e8s' : IDL.Nat64,
|
|
23
|
-
});
|
|
24
|
-
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
25
|
-
'timestamp' : IDL.Nat64,
|
|
26
|
-
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
27
|
-
});
|
|
28
|
-
const GovernanceCachedMetrics = IDL.Record({
|
|
29
|
-
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
30
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
31
|
-
),
|
|
32
|
-
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
33
|
-
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
34
|
-
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
35
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
36
|
-
),
|
|
37
|
-
'total_supply_icp' : IDL.Nat64,
|
|
38
|
-
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
39
|
-
'dissolved_neurons_count' : IDL.Nat64,
|
|
40
|
-
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
41
|
-
'total_staked_e8s' : IDL.Nat64,
|
|
42
|
-
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
43
|
-
'total_locked_e8s' : IDL.Nat64,
|
|
44
|
-
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
45
|
-
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
46
|
-
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
47
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
48
|
-
),
|
|
49
|
-
'dissolving_neurons_count' : IDL.Nat64,
|
|
50
|
-
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
51
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
52
|
-
),
|
|
53
|
-
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
54
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
55
|
-
});
|
|
56
|
-
const NetworkEconomics = IDL.Record({
|
|
57
|
-
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
58
|
-
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
59
|
-
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
60
|
-
'reject_cost_e8s' : IDL.Nat64,
|
|
61
|
-
'transaction_fee_e8s' : IDL.Nat64,
|
|
62
|
-
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
63
|
-
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
64
|
-
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
65
|
-
});
|
|
66
|
-
const RewardEvent = IDL.Record({
|
|
67
|
-
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
68
|
-
'day_after_genesis' : IDL.Nat64,
|
|
69
|
-
'actual_timestamp_seconds' : IDL.Nat64,
|
|
70
|
-
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
71
|
-
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
72
|
-
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
73
|
-
'settled_proposals' : IDL.Vec(NeuronId),
|
|
74
|
-
});
|
|
75
|
-
const NeuronStakeTransfer = IDL.Record({
|
|
76
|
-
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
77
|
-
'neuron_stake_e8s' : IDL.Nat64,
|
|
78
|
-
'from' : IDL.Opt(IDL.Principal),
|
|
79
|
-
'memo' : IDL.Nat64,
|
|
80
|
-
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
81
|
-
'transfer_timestamp' : IDL.Nat64,
|
|
82
|
-
'block_height' : IDL.Nat64,
|
|
83
|
-
});
|
|
84
|
-
const GovernanceError = IDL.Record({
|
|
85
|
-
'error_message' : IDL.Text,
|
|
86
|
-
'error_type' : IDL.Int32,
|
|
87
|
-
});
|
|
88
|
-
const CfNeuron = IDL.Record({
|
|
89
|
-
'nns_neuron_id' : IDL.Nat64,
|
|
90
|
-
'amount_icp_e8s' : IDL.Nat64,
|
|
91
|
-
});
|
|
92
|
-
const CfParticipant = IDL.Record({
|
|
93
|
-
'hotkey_principal' : IDL.Text,
|
|
94
|
-
'cf_neurons' : IDL.Vec(CfNeuron),
|
|
95
|
-
});
|
|
96
|
-
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
97
|
-
const CanisterStatusResultV2 = IDL.Record({
|
|
98
|
-
'status' : IDL.Opt(IDL.Int32),
|
|
99
|
-
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
100
|
-
'controllers' : IDL.Vec(IDL.Principal),
|
|
101
|
-
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
102
|
-
'cycles' : IDL.Opt(IDL.Nat64),
|
|
103
|
-
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
104
|
-
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
105
|
-
});
|
|
106
|
-
const CanisterSummary = IDL.Record({
|
|
107
|
-
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
108
|
-
'canister_id' : IDL.Opt(IDL.Principal),
|
|
109
|
-
});
|
|
110
|
-
const SwapBackgroundInformation = IDL.Record({
|
|
111
|
-
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
112
|
-
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
113
|
-
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
114
|
-
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
115
|
-
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
116
|
-
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
117
|
-
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
118
|
-
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
119
|
-
});
|
|
120
|
-
const DerivedProposalInformation = IDL.Record({
|
|
121
|
-
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
122
|
-
});
|
|
123
|
-
const Tally = IDL.Record({
|
|
124
|
-
'no' : IDL.Nat64,
|
|
125
|
-
'yes' : IDL.Nat64,
|
|
126
|
-
'total' : IDL.Nat64,
|
|
127
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
128
|
-
});
|
|
129
6
|
const KnownNeuronData = IDL.Record({
|
|
130
7
|
'name' : IDL.Text,
|
|
131
8
|
'description' : IDL.Opt(IDL.Text),
|
|
@@ -195,6 +72,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
195
72
|
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
|
|
196
73
|
});
|
|
197
74
|
const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
|
|
75
|
+
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
198
76
|
const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
|
|
199
77
|
const Disburse = IDL.Record({
|
|
200
78
|
'to_account' : IDL.Opt(AccountIdentifier),
|
|
@@ -261,6 +139,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
261
139
|
const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
|
|
262
140
|
const SwapParameters = IDL.Record({
|
|
263
141
|
'minimum_participants' : IDL.Opt(IDL.Nat64),
|
|
142
|
+
'neurons_fund_participation' : IDL.Opt(IDL.Bool),
|
|
264
143
|
'duration' : IDL.Opt(Duration),
|
|
265
144
|
'neuron_basket_construction_parameters' : IDL.Opt(
|
|
266
145
|
NeuronBasketConstructionParameters
|
|
@@ -268,8 +147,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
268
147
|
'confirmation_text' : IDL.Opt(IDL.Text),
|
|
269
148
|
'maximum_participant_icp' : IDL.Opt(Tokens),
|
|
270
149
|
'minimum_icp' : IDL.Opt(Tokens),
|
|
150
|
+
'minimum_direct_participation_icp' : IDL.Opt(Tokens),
|
|
271
151
|
'minimum_participant_icp' : IDL.Opt(Tokens),
|
|
272
152
|
'start_time' : IDL.Opt(GlobalTimeOfDay),
|
|
153
|
+
'maximum_direct_participation_icp' : IDL.Opt(Tokens),
|
|
273
154
|
'maximum_icp' : IDL.Opt(Tokens),
|
|
274
155
|
'neurons_fund_investment_icp' : IDL.Opt(Tokens),
|
|
275
156
|
'restricted_countries' : IDL.Opt(Countries),
|
|
@@ -306,6 +187,23 @@ export const idlFactory = ({ IDL }) => {
|
|
|
306
187
|
'nns_function' : IDL.Int32,
|
|
307
188
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
308
189
|
});
|
|
190
|
+
const NodeProvider = IDL.Record({
|
|
191
|
+
'id' : IDL.Opt(IDL.Principal),
|
|
192
|
+
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
193
|
+
});
|
|
194
|
+
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
195
|
+
const RewardToAccount = IDL.Record({
|
|
196
|
+
'to_account' : IDL.Opt(AccountIdentifier),
|
|
197
|
+
});
|
|
198
|
+
const RewardMode = IDL.Variant({
|
|
199
|
+
'RewardToNeuron' : RewardToNeuron,
|
|
200
|
+
'RewardToAccount' : RewardToAccount,
|
|
201
|
+
});
|
|
202
|
+
const RewardNodeProvider = IDL.Record({
|
|
203
|
+
'node_provider' : IDL.Opt(NodeProvider),
|
|
204
|
+
'reward_mode' : IDL.Opt(RewardMode),
|
|
205
|
+
'amount_e8s' : IDL.Nat64,
|
|
206
|
+
});
|
|
309
207
|
const NeuronBasketConstructionParameters_1 = IDL.Record({
|
|
310
208
|
'dissolve_delay_interval_seconds' : IDL.Nat64,
|
|
311
209
|
'count' : IDL.Nat64,
|
|
@@ -321,7 +219,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
321
219
|
'sns_token_e8s' : IDL.Nat64,
|
|
322
220
|
'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
323
221
|
'max_participant_icp_e8s' : IDL.Nat64,
|
|
222
|
+
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
324
223
|
'min_icp_e8s' : IDL.Nat64,
|
|
224
|
+
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
325
225
|
});
|
|
326
226
|
const OpenSnsTokenSwap = IDL.Record({
|
|
327
227
|
'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
|
|
@@ -346,6 +246,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
346
246
|
'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
|
|
347
247
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
348
248
|
});
|
|
249
|
+
const NetworkEconomics = IDL.Record({
|
|
250
|
+
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
251
|
+
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
252
|
+
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
253
|
+
'reject_cost_e8s' : IDL.Nat64,
|
|
254
|
+
'transaction_fee_e8s' : IDL.Nat64,
|
|
255
|
+
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
256
|
+
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
257
|
+
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
258
|
+
});
|
|
349
259
|
const ApproveGenesisKyc = IDL.Record({
|
|
350
260
|
'principals' : IDL.Vec(IDL.Principal),
|
|
351
261
|
});
|
|
@@ -378,6 +288,163 @@ export const idlFactory = ({ IDL }) => {
|
|
|
378
288
|
'summary' : IDL.Text,
|
|
379
289
|
})
|
|
380
290
|
);
|
|
291
|
+
const MakingSnsProposal = IDL.Record({
|
|
292
|
+
'proposal' : IDL.Opt(Proposal),
|
|
293
|
+
'caller' : IDL.Opt(IDL.Principal),
|
|
294
|
+
'proposer_id' : IDL.Opt(NeuronId),
|
|
295
|
+
});
|
|
296
|
+
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
297
|
+
'timestamp' : IDL.Nat64,
|
|
298
|
+
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
299
|
+
});
|
|
300
|
+
const GovernanceCachedMetrics = IDL.Record({
|
|
301
|
+
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
302
|
+
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
303
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
304
|
+
),
|
|
305
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
306
|
+
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
307
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
308
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
309
|
+
),
|
|
310
|
+
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
311
|
+
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
312
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
313
|
+
),
|
|
314
|
+
'total_supply_icp' : IDL.Nat64,
|
|
315
|
+
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
316
|
+
'dissolved_neurons_count' : IDL.Nat64,
|
|
317
|
+
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
318
|
+
'total_staked_e8s' : IDL.Nat64,
|
|
319
|
+
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
320
|
+
'total_locked_e8s' : IDL.Nat64,
|
|
321
|
+
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
322
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
323
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
324
|
+
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
325
|
+
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
326
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
327
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
328
|
+
),
|
|
329
|
+
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
330
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
331
|
+
),
|
|
332
|
+
'dissolving_neurons_count' : IDL.Nat64,
|
|
333
|
+
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
334
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
335
|
+
),
|
|
336
|
+
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
337
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
338
|
+
});
|
|
339
|
+
const RewardEvent = IDL.Record({
|
|
340
|
+
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
341
|
+
'day_after_genesis' : IDL.Nat64,
|
|
342
|
+
'actual_timestamp_seconds' : IDL.Nat64,
|
|
343
|
+
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
344
|
+
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
345
|
+
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
346
|
+
'settled_proposals' : IDL.Vec(NeuronId),
|
|
347
|
+
});
|
|
348
|
+
const NeuronStakeTransfer = IDL.Record({
|
|
349
|
+
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
350
|
+
'neuron_stake_e8s' : IDL.Nat64,
|
|
351
|
+
'from' : IDL.Opt(IDL.Principal),
|
|
352
|
+
'memo' : IDL.Nat64,
|
|
353
|
+
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
354
|
+
'transfer_timestamp' : IDL.Nat64,
|
|
355
|
+
'block_height' : IDL.Nat64,
|
|
356
|
+
});
|
|
357
|
+
const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
|
|
358
|
+
const Migration = IDL.Record({
|
|
359
|
+
'status' : IDL.Opt(IDL.Int32),
|
|
360
|
+
'failure_reason' : IDL.Opt(IDL.Text),
|
|
361
|
+
'progress' : IDL.Opt(Progress),
|
|
362
|
+
});
|
|
363
|
+
const Migrations = IDL.Record({
|
|
364
|
+
'neuron_indexes_migration' : IDL.Opt(Migration),
|
|
365
|
+
'copy_inactive_neurons_to_stable_memory_migration' : IDL.Opt(Migration),
|
|
366
|
+
});
|
|
367
|
+
const GovernanceError = IDL.Record({
|
|
368
|
+
'error_message' : IDL.Text,
|
|
369
|
+
'error_type' : IDL.Int32,
|
|
370
|
+
});
|
|
371
|
+
const CfNeuron = IDL.Record({
|
|
372
|
+
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
373
|
+
'nns_neuron_id' : IDL.Nat64,
|
|
374
|
+
'amount_icp_e8s' : IDL.Nat64,
|
|
375
|
+
});
|
|
376
|
+
const CfParticipant = IDL.Record({
|
|
377
|
+
'hotkey_principal' : IDL.Text,
|
|
378
|
+
'cf_neurons' : IDL.Vec(CfNeuron),
|
|
379
|
+
});
|
|
380
|
+
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
381
|
+
const SwapParticipationLimits = IDL.Record({
|
|
382
|
+
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
383
|
+
'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
384
|
+
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
385
|
+
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
386
|
+
});
|
|
387
|
+
const NeuronsFundNeuronPortion = IDL.Record({
|
|
388
|
+
'hotkey_principal' : IDL.Opt(IDL.Principal),
|
|
389
|
+
'is_capped' : IDL.Opt(IDL.Bool),
|
|
390
|
+
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
391
|
+
'nns_neuron_id' : IDL.Opt(NeuronId),
|
|
392
|
+
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
393
|
+
});
|
|
394
|
+
const NeuronsFundSnapshot = IDL.Record({
|
|
395
|
+
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
|
|
396
|
+
});
|
|
397
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
398
|
+
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
399
|
+
});
|
|
400
|
+
const NeuronsFundParticipation = IDL.Record({
|
|
401
|
+
'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
402
|
+
'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
403
|
+
'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
404
|
+
'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
|
|
405
|
+
'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
406
|
+
'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
|
|
407
|
+
'ideal_matched_participation_function' : IDL.Opt(
|
|
408
|
+
IdealMatchedParticipationFunction
|
|
409
|
+
),
|
|
410
|
+
});
|
|
411
|
+
const NeuronsFundData = IDL.Record({
|
|
412
|
+
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
413
|
+
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
414
|
+
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
415
|
+
});
|
|
416
|
+
const CanisterStatusResultV2 = IDL.Record({
|
|
417
|
+
'status' : IDL.Opt(IDL.Int32),
|
|
418
|
+
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
419
|
+
'controllers' : IDL.Vec(IDL.Principal),
|
|
420
|
+
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
421
|
+
'cycles' : IDL.Opt(IDL.Nat64),
|
|
422
|
+
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
423
|
+
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
424
|
+
});
|
|
425
|
+
const CanisterSummary = IDL.Record({
|
|
426
|
+
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
427
|
+
'canister_id' : IDL.Opt(IDL.Principal),
|
|
428
|
+
});
|
|
429
|
+
const SwapBackgroundInformation = IDL.Record({
|
|
430
|
+
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
431
|
+
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
432
|
+
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
433
|
+
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
434
|
+
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
435
|
+
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
436
|
+
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
437
|
+
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
438
|
+
});
|
|
439
|
+
const DerivedProposalInformation = IDL.Record({
|
|
440
|
+
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
441
|
+
});
|
|
442
|
+
const Tally = IDL.Record({
|
|
443
|
+
'no' : IDL.Nat64,
|
|
444
|
+
'yes' : IDL.Nat64,
|
|
445
|
+
'total' : IDL.Nat64,
|
|
446
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
447
|
+
});
|
|
381
448
|
const WaitForQuietState = IDL.Record({
|
|
382
449
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
383
450
|
});
|
|
@@ -389,6 +456,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
389
456
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
390
457
|
'reward_event_round' : IDL.Nat64,
|
|
391
458
|
'failed_timestamp_seconds' : IDL.Nat64,
|
|
459
|
+
'neurons_fund_data' : IDL.Opt(NeuronsFundData),
|
|
392
460
|
'reject_cost_e8s' : IDL.Nat64,
|
|
393
461
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
394
462
|
'latest_tally' : IDL.Opt(Tally),
|
|
@@ -449,6 +517,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
449
517
|
});
|
|
450
518
|
const Governance = IDL.Record({
|
|
451
519
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
520
|
+
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
452
521
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
453
522
|
MostRecentMonthlyNodeProviderRewards
|
|
454
523
|
),
|
|
@@ -457,6 +526,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
457
526
|
),
|
|
458
527
|
'wait_for_quiet_threshold_seconds' : IDL.Nat64,
|
|
459
528
|
'metrics' : IDL.Opt(GovernanceCachedMetrics),
|
|
529
|
+
'neuron_management_voting_period_seconds' : IDL.Opt(IDL.Nat64),
|
|
460
530
|
'node_providers' : IDL.Vec(NodeProvider),
|
|
461
531
|
'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
|
|
462
532
|
'economics' : IDL.Opt(NetworkEconomics),
|
|
@@ -464,6 +534,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
464
534
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
465
535
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
466
536
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
537
|
+
'migrations' : IDL.Opt(Migrations),
|
|
467
538
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
468
539
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
469
540
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
|
|
@@ -538,6 +609,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
538
609
|
});
|
|
539
610
|
const ListProposalInfo = IDL.Record({
|
|
540
611
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
612
|
+
'omit_large_fields' : IDL.Opt(IDL.Bool),
|
|
541
613
|
'before_proposal' : IDL.Opt(NeuronId),
|
|
542
614
|
'limit' : IDL.Nat32,
|
|
543
615
|
'exclude_topic' : IDL.Vec(IDL.Int32),
|
|
@@ -586,206 +658,116 @@ export const idlFactory = ({ IDL }) => {
|
|
|
586
658
|
});
|
|
587
659
|
const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
|
|
588
660
|
const Committed = IDL.Record({
|
|
661
|
+
'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
662
|
+
'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
589
663
|
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
590
664
|
});
|
|
591
|
-
const Result_7 = IDL.Variant({
|
|
592
|
-
'Committed' : Committed,
|
|
593
|
-
'Aborted' : IDL.Record({}),
|
|
594
|
-
});
|
|
595
|
-
const SettleCommunityFundParticipation = IDL.Record({
|
|
596
|
-
'result' : IDL.Opt(Result_7),
|
|
597
|
-
'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
598
|
-
});
|
|
599
|
-
const UpdateNodeProvider = IDL.Record({
|
|
600
|
-
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
601
|
-
});
|
|
602
|
-
return IDL.Service({
|
|
603
|
-
'claim_gtc_neurons' : IDL.Func(
|
|
604
|
-
[IDL.Principal, IDL.Vec(NeuronId)],
|
|
605
|
-
[Result],
|
|
606
|
-
[],
|
|
607
|
-
),
|
|
608
|
-
'claim_or_refresh_neuron_from_account' : IDL.Func(
|
|
609
|
-
[ClaimOrRefreshNeuronFromAccount],
|
|
610
|
-
[ClaimOrRefreshNeuronFromAccountResponse],
|
|
611
|
-
[],
|
|
612
|
-
),
|
|
613
|
-
'get_build_metadata' : IDL.Func([], [IDL.Text], []),
|
|
614
|
-
'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], []),
|
|
615
|
-
'get_full_neuron_by_id_or_subaccount' : IDL.Func(
|
|
616
|
-
[NeuronIdOrSubaccount],
|
|
617
|
-
[Result_2],
|
|
618
|
-
[],
|
|
619
|
-
),
|
|
620
|
-
'get_latest_reward_event' : IDL.Func([], [RewardEvent], []),
|
|
621
|
-
'get_metrics' : IDL.Func([], [Result_3], []),
|
|
622
|
-
'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
|
|
623
|
-
'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
|
|
624
|
-
[],
|
|
625
|
-
[IDL.Opt(MostRecentMonthlyNodeProviderRewards)],
|
|
626
|
-
[],
|
|
627
|
-
),
|
|
628
|
-
'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
|
|
629
|
-
'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
|
|
630
|
-
'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], []),
|
|
631
|
-
'get_neuron_info_by_id_or_subaccount' : IDL.Func(
|
|
632
|
-
[NeuronIdOrSubaccount],
|
|
633
|
-
[Result_5],
|
|
634
|
-
[],
|
|
635
|
-
),
|
|
636
|
-
'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_6], []),
|
|
637
|
-
'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
|
|
638
|
-
'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
|
|
639
|
-
'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
|
|
640
|
-
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
|
|
641
|
-
'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
|
|
642
|
-
'list_proposals' : IDL.Func(
|
|
643
|
-
[ListProposalInfo],
|
|
644
|
-
[ListProposalInfoResponse],
|
|
645
|
-
[],
|
|
646
|
-
),
|
|
647
|
-
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
648
|
-
'settle_community_fund_participation' : IDL.Func(
|
|
649
|
-
[SettleCommunityFundParticipation],
|
|
650
|
-
[Result],
|
|
651
|
-
[],
|
|
652
|
-
),
|
|
653
|
-
'simulate_manage_neuron' : IDL.Func(
|
|
654
|
-
[ManageNeuron],
|
|
655
|
-
[ManageNeuronResponse],
|
|
656
|
-
[],
|
|
657
|
-
),
|
|
658
|
-
'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
|
|
659
|
-
'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
|
|
660
|
-
});
|
|
661
|
-
};
|
|
662
|
-
export const init = ({ IDL }) => {
|
|
663
|
-
const Proposal = IDL.Rec();
|
|
664
|
-
const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
665
|
-
const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
|
|
666
|
-
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
667
|
-
const NodeProvider = IDL.Record({
|
|
668
|
-
'id' : IDL.Opt(IDL.Principal),
|
|
669
|
-
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
670
|
-
});
|
|
671
|
-
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
672
|
-
const RewardToAccount = IDL.Record({
|
|
673
|
-
'to_account' : IDL.Opt(AccountIdentifier),
|
|
674
|
-
});
|
|
675
|
-
const RewardMode = IDL.Variant({
|
|
676
|
-
'RewardToNeuron' : RewardToNeuron,
|
|
677
|
-
'RewardToAccount' : RewardToAccount,
|
|
678
|
-
});
|
|
679
|
-
const RewardNodeProvider = IDL.Record({
|
|
680
|
-
'node_provider' : IDL.Opt(NodeProvider),
|
|
681
|
-
'reward_mode' : IDL.Opt(RewardMode),
|
|
682
|
-
'amount_e8s' : IDL.Nat64,
|
|
683
|
-
});
|
|
684
|
-
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
685
|
-
'timestamp' : IDL.Nat64,
|
|
686
|
-
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
687
|
-
});
|
|
688
|
-
const GovernanceCachedMetrics = IDL.Record({
|
|
689
|
-
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
690
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
691
|
-
),
|
|
692
|
-
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
693
|
-
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
694
|
-
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
695
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
696
|
-
),
|
|
697
|
-
'total_supply_icp' : IDL.Nat64,
|
|
698
|
-
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
699
|
-
'dissolved_neurons_count' : IDL.Nat64,
|
|
700
|
-
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
701
|
-
'total_staked_e8s' : IDL.Nat64,
|
|
702
|
-
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
703
|
-
'total_locked_e8s' : IDL.Nat64,
|
|
704
|
-
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
705
|
-
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
706
|
-
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
707
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
708
|
-
),
|
|
709
|
-
'dissolving_neurons_count' : IDL.Nat64,
|
|
710
|
-
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
711
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
712
|
-
),
|
|
713
|
-
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
714
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
715
|
-
});
|
|
716
|
-
const NetworkEconomics = IDL.Record({
|
|
717
|
-
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
718
|
-
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
719
|
-
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
720
|
-
'reject_cost_e8s' : IDL.Nat64,
|
|
721
|
-
'transaction_fee_e8s' : IDL.Nat64,
|
|
722
|
-
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
723
|
-
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
724
|
-
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
725
|
-
});
|
|
726
|
-
const RewardEvent = IDL.Record({
|
|
727
|
-
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
728
|
-
'day_after_genesis' : IDL.Nat64,
|
|
729
|
-
'actual_timestamp_seconds' : IDL.Nat64,
|
|
730
|
-
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
731
|
-
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
732
|
-
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
733
|
-
'settled_proposals' : IDL.Vec(NeuronId),
|
|
734
|
-
});
|
|
735
|
-
const NeuronStakeTransfer = IDL.Record({
|
|
736
|
-
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
737
|
-
'neuron_stake_e8s' : IDL.Nat64,
|
|
738
|
-
'from' : IDL.Opt(IDL.Principal),
|
|
739
|
-
'memo' : IDL.Nat64,
|
|
740
|
-
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
741
|
-
'transfer_timestamp' : IDL.Nat64,
|
|
742
|
-
'block_height' : IDL.Nat64,
|
|
665
|
+
const Result_7 = IDL.Variant({
|
|
666
|
+
'Committed' : Committed,
|
|
667
|
+
'Aborted' : IDL.Record({}),
|
|
743
668
|
});
|
|
744
|
-
const
|
|
745
|
-
'
|
|
746
|
-
'
|
|
669
|
+
const SettleCommunityFundParticipation = IDL.Record({
|
|
670
|
+
'result' : IDL.Opt(Result_7),
|
|
671
|
+
'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
747
672
|
});
|
|
748
|
-
const
|
|
749
|
-
'
|
|
750
|
-
'
|
|
673
|
+
const Committed_1 = IDL.Record({
|
|
674
|
+
'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
675
|
+
'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
676
|
+
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
751
677
|
});
|
|
752
|
-
const
|
|
753
|
-
'
|
|
754
|
-
'
|
|
678
|
+
const Result_8 = IDL.Variant({
|
|
679
|
+
'Committed' : Committed_1,
|
|
680
|
+
'Aborted' : IDL.Record({}),
|
|
755
681
|
});
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
'
|
|
759
|
-
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
760
|
-
'controllers' : IDL.Vec(IDL.Principal),
|
|
761
|
-
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
762
|
-
'cycles' : IDL.Opt(IDL.Nat64),
|
|
763
|
-
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
764
|
-
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
682
|
+
const SettleNeuronsFundParticipationRequest = IDL.Record({
|
|
683
|
+
'result' : IDL.Opt(Result_8),
|
|
684
|
+
'nns_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
765
685
|
});
|
|
766
|
-
const
|
|
767
|
-
'
|
|
768
|
-
'
|
|
686
|
+
const NeuronsFundNeuron = IDL.Record({
|
|
687
|
+
'hotkey_principal' : IDL.Opt(IDL.Text),
|
|
688
|
+
'is_capped' : IDL.Opt(IDL.Bool),
|
|
689
|
+
'nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
690
|
+
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
769
691
|
});
|
|
770
|
-
const
|
|
771
|
-
'
|
|
772
|
-
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
773
|
-
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
774
|
-
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
775
|
-
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
776
|
-
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
777
|
-
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
778
|
-
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
692
|
+
const Ok = IDL.Record({
|
|
693
|
+
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
|
|
779
694
|
});
|
|
780
|
-
const
|
|
781
|
-
|
|
695
|
+
const Result_9 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
|
|
696
|
+
const SettleNeuronsFundParticipationResponse = IDL.Record({
|
|
697
|
+
'result' : IDL.Opt(Result_9),
|
|
782
698
|
});
|
|
783
|
-
const
|
|
784
|
-
'
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
'
|
|
699
|
+
const UpdateNodeProvider = IDL.Record({
|
|
700
|
+
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
701
|
+
});
|
|
702
|
+
return IDL.Service({
|
|
703
|
+
'claim_gtc_neurons' : IDL.Func(
|
|
704
|
+
[IDL.Principal, IDL.Vec(NeuronId)],
|
|
705
|
+
[Result],
|
|
706
|
+
[],
|
|
707
|
+
),
|
|
708
|
+
'claim_or_refresh_neuron_from_account' : IDL.Func(
|
|
709
|
+
[ClaimOrRefreshNeuronFromAccount],
|
|
710
|
+
[ClaimOrRefreshNeuronFromAccountResponse],
|
|
711
|
+
[],
|
|
712
|
+
),
|
|
713
|
+
'get_build_metadata' : IDL.Func([], [IDL.Text], []),
|
|
714
|
+
'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], []),
|
|
715
|
+
'get_full_neuron_by_id_or_subaccount' : IDL.Func(
|
|
716
|
+
[NeuronIdOrSubaccount],
|
|
717
|
+
[Result_2],
|
|
718
|
+
[],
|
|
719
|
+
),
|
|
720
|
+
'get_latest_reward_event' : IDL.Func([], [RewardEvent], []),
|
|
721
|
+
'get_metrics' : IDL.Func([], [Result_3], []),
|
|
722
|
+
'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
|
|
723
|
+
'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
|
|
724
|
+
[],
|
|
725
|
+
[IDL.Opt(MostRecentMonthlyNodeProviderRewards)],
|
|
726
|
+
[],
|
|
727
|
+
),
|
|
728
|
+
'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
|
|
729
|
+
'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
|
|
730
|
+
'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], []),
|
|
731
|
+
'get_neuron_info_by_id_or_subaccount' : IDL.Func(
|
|
732
|
+
[NeuronIdOrSubaccount],
|
|
733
|
+
[Result_5],
|
|
734
|
+
[],
|
|
735
|
+
),
|
|
736
|
+
'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_6], []),
|
|
737
|
+
'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
|
|
738
|
+
'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
|
|
739
|
+
'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
|
|
740
|
+
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
|
|
741
|
+
'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
|
|
742
|
+
'list_proposals' : IDL.Func(
|
|
743
|
+
[ListProposalInfo],
|
|
744
|
+
[ListProposalInfoResponse],
|
|
745
|
+
[],
|
|
746
|
+
),
|
|
747
|
+
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
748
|
+
'settle_community_fund_participation' : IDL.Func(
|
|
749
|
+
[SettleCommunityFundParticipation],
|
|
750
|
+
[Result],
|
|
751
|
+
[],
|
|
752
|
+
),
|
|
753
|
+
'settle_neurons_fund_participation' : IDL.Func(
|
|
754
|
+
[SettleNeuronsFundParticipationRequest],
|
|
755
|
+
[SettleNeuronsFundParticipationResponse],
|
|
756
|
+
[],
|
|
757
|
+
),
|
|
758
|
+
'simulate_manage_neuron' : IDL.Func(
|
|
759
|
+
[ManageNeuron],
|
|
760
|
+
[ManageNeuronResponse],
|
|
761
|
+
[],
|
|
762
|
+
),
|
|
763
|
+
'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
|
|
764
|
+
'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
|
|
788
765
|
});
|
|
766
|
+
};
|
|
767
|
+
export const init = ({ IDL }) => {
|
|
768
|
+
const Proposal = IDL.Rec();
|
|
769
|
+
const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
770
|
+
const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
|
|
789
771
|
const KnownNeuronData = IDL.Record({
|
|
790
772
|
'name' : IDL.Text,
|
|
791
773
|
'description' : IDL.Opt(IDL.Text),
|
|
@@ -855,6 +837,7 @@ export const init = ({ IDL }) => {
|
|
|
855
837
|
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
|
|
856
838
|
});
|
|
857
839
|
const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
|
|
840
|
+
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
858
841
|
const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
|
|
859
842
|
const Disburse = IDL.Record({
|
|
860
843
|
'to_account' : IDL.Opt(AccountIdentifier),
|
|
@@ -921,6 +904,7 @@ export const init = ({ IDL }) => {
|
|
|
921
904
|
const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
|
|
922
905
|
const SwapParameters = IDL.Record({
|
|
923
906
|
'minimum_participants' : IDL.Opt(IDL.Nat64),
|
|
907
|
+
'neurons_fund_participation' : IDL.Opt(IDL.Bool),
|
|
924
908
|
'duration' : IDL.Opt(Duration),
|
|
925
909
|
'neuron_basket_construction_parameters' : IDL.Opt(
|
|
926
910
|
NeuronBasketConstructionParameters
|
|
@@ -928,8 +912,10 @@ export const init = ({ IDL }) => {
|
|
|
928
912
|
'confirmation_text' : IDL.Opt(IDL.Text),
|
|
929
913
|
'maximum_participant_icp' : IDL.Opt(Tokens),
|
|
930
914
|
'minimum_icp' : IDL.Opt(Tokens),
|
|
915
|
+
'minimum_direct_participation_icp' : IDL.Opt(Tokens),
|
|
931
916
|
'minimum_participant_icp' : IDL.Opt(Tokens),
|
|
932
917
|
'start_time' : IDL.Opt(GlobalTimeOfDay),
|
|
918
|
+
'maximum_direct_participation_icp' : IDL.Opt(Tokens),
|
|
933
919
|
'maximum_icp' : IDL.Opt(Tokens),
|
|
934
920
|
'neurons_fund_investment_icp' : IDL.Opt(Tokens),
|
|
935
921
|
'restricted_countries' : IDL.Opt(Countries),
|
|
@@ -966,6 +952,23 @@ export const init = ({ IDL }) => {
|
|
|
966
952
|
'nns_function' : IDL.Int32,
|
|
967
953
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
968
954
|
});
|
|
955
|
+
const NodeProvider = IDL.Record({
|
|
956
|
+
'id' : IDL.Opt(IDL.Principal),
|
|
957
|
+
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
958
|
+
});
|
|
959
|
+
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
960
|
+
const RewardToAccount = IDL.Record({
|
|
961
|
+
'to_account' : IDL.Opt(AccountIdentifier),
|
|
962
|
+
});
|
|
963
|
+
const RewardMode = IDL.Variant({
|
|
964
|
+
'RewardToNeuron' : RewardToNeuron,
|
|
965
|
+
'RewardToAccount' : RewardToAccount,
|
|
966
|
+
});
|
|
967
|
+
const RewardNodeProvider = IDL.Record({
|
|
968
|
+
'node_provider' : IDL.Opt(NodeProvider),
|
|
969
|
+
'reward_mode' : IDL.Opt(RewardMode),
|
|
970
|
+
'amount_e8s' : IDL.Nat64,
|
|
971
|
+
});
|
|
969
972
|
const NeuronBasketConstructionParameters_1 = IDL.Record({
|
|
970
973
|
'dissolve_delay_interval_seconds' : IDL.Nat64,
|
|
971
974
|
'count' : IDL.Nat64,
|
|
@@ -981,7 +984,9 @@ export const init = ({ IDL }) => {
|
|
|
981
984
|
'sns_token_e8s' : IDL.Nat64,
|
|
982
985
|
'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
983
986
|
'max_participant_icp_e8s' : IDL.Nat64,
|
|
987
|
+
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
984
988
|
'min_icp_e8s' : IDL.Nat64,
|
|
989
|
+
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
985
990
|
});
|
|
986
991
|
const OpenSnsTokenSwap = IDL.Record({
|
|
987
992
|
'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
|
|
@@ -1006,6 +1011,16 @@ export const init = ({ IDL }) => {
|
|
|
1006
1011
|
'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
|
|
1007
1012
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1008
1013
|
});
|
|
1014
|
+
const NetworkEconomics = IDL.Record({
|
|
1015
|
+
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
1016
|
+
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
1017
|
+
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
1018
|
+
'reject_cost_e8s' : IDL.Nat64,
|
|
1019
|
+
'transaction_fee_e8s' : IDL.Nat64,
|
|
1020
|
+
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
1021
|
+
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
1022
|
+
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
1023
|
+
});
|
|
1009
1024
|
const ApproveGenesisKyc = IDL.Record({
|
|
1010
1025
|
'principals' : IDL.Vec(IDL.Principal),
|
|
1011
1026
|
});
|
|
@@ -1038,6 +1053,163 @@ export const init = ({ IDL }) => {
|
|
|
1038
1053
|
'summary' : IDL.Text,
|
|
1039
1054
|
})
|
|
1040
1055
|
);
|
|
1056
|
+
const MakingSnsProposal = IDL.Record({
|
|
1057
|
+
'proposal' : IDL.Opt(Proposal),
|
|
1058
|
+
'caller' : IDL.Opt(IDL.Principal),
|
|
1059
|
+
'proposer_id' : IDL.Opt(NeuronId),
|
|
1060
|
+
});
|
|
1061
|
+
const MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
1062
|
+
'timestamp' : IDL.Nat64,
|
|
1063
|
+
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1064
|
+
});
|
|
1065
|
+
const GovernanceCachedMetrics = IDL.Record({
|
|
1066
|
+
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1067
|
+
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1068
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1069
|
+
),
|
|
1070
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1071
|
+
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
1072
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1073
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1074
|
+
),
|
|
1075
|
+
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
1076
|
+
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1077
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1078
|
+
),
|
|
1079
|
+
'total_supply_icp' : IDL.Nat64,
|
|
1080
|
+
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
1081
|
+
'dissolved_neurons_count' : IDL.Nat64,
|
|
1082
|
+
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1083
|
+
'total_staked_e8s' : IDL.Nat64,
|
|
1084
|
+
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1085
|
+
'total_locked_e8s' : IDL.Nat64,
|
|
1086
|
+
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1087
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1088
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1089
|
+
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1090
|
+
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
1091
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1092
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1093
|
+
),
|
|
1094
|
+
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1095
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1096
|
+
),
|
|
1097
|
+
'dissolving_neurons_count' : IDL.Nat64,
|
|
1098
|
+
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1099
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1100
|
+
),
|
|
1101
|
+
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
1102
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
1103
|
+
});
|
|
1104
|
+
const RewardEvent = IDL.Record({
|
|
1105
|
+
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
1106
|
+
'day_after_genesis' : IDL.Nat64,
|
|
1107
|
+
'actual_timestamp_seconds' : IDL.Nat64,
|
|
1108
|
+
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
1109
|
+
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1110
|
+
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
1111
|
+
'settled_proposals' : IDL.Vec(NeuronId),
|
|
1112
|
+
});
|
|
1113
|
+
const NeuronStakeTransfer = IDL.Record({
|
|
1114
|
+
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
1115
|
+
'neuron_stake_e8s' : IDL.Nat64,
|
|
1116
|
+
'from' : IDL.Opt(IDL.Principal),
|
|
1117
|
+
'memo' : IDL.Nat64,
|
|
1118
|
+
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
1119
|
+
'transfer_timestamp' : IDL.Nat64,
|
|
1120
|
+
'block_height' : IDL.Nat64,
|
|
1121
|
+
});
|
|
1122
|
+
const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
|
|
1123
|
+
const Migration = IDL.Record({
|
|
1124
|
+
'status' : IDL.Opt(IDL.Int32),
|
|
1125
|
+
'failure_reason' : IDL.Opt(IDL.Text),
|
|
1126
|
+
'progress' : IDL.Opt(Progress),
|
|
1127
|
+
});
|
|
1128
|
+
const Migrations = IDL.Record({
|
|
1129
|
+
'neuron_indexes_migration' : IDL.Opt(Migration),
|
|
1130
|
+
'copy_inactive_neurons_to_stable_memory_migration' : IDL.Opt(Migration),
|
|
1131
|
+
});
|
|
1132
|
+
const GovernanceError = IDL.Record({
|
|
1133
|
+
'error_message' : IDL.Text,
|
|
1134
|
+
'error_type' : IDL.Int32,
|
|
1135
|
+
});
|
|
1136
|
+
const CfNeuron = IDL.Record({
|
|
1137
|
+
'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
|
|
1138
|
+
'nns_neuron_id' : IDL.Nat64,
|
|
1139
|
+
'amount_icp_e8s' : IDL.Nat64,
|
|
1140
|
+
});
|
|
1141
|
+
const CfParticipant = IDL.Record({
|
|
1142
|
+
'hotkey_principal' : IDL.Text,
|
|
1143
|
+
'cf_neurons' : IDL.Vec(CfNeuron),
|
|
1144
|
+
});
|
|
1145
|
+
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
1146
|
+
const SwapParticipationLimits = IDL.Record({
|
|
1147
|
+
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1148
|
+
'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1149
|
+
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1150
|
+
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1151
|
+
});
|
|
1152
|
+
const NeuronsFundNeuronPortion = IDL.Record({
|
|
1153
|
+
'hotkey_principal' : IDL.Opt(IDL.Principal),
|
|
1154
|
+
'is_capped' : IDL.Opt(IDL.Bool),
|
|
1155
|
+
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1156
|
+
'nns_neuron_id' : IDL.Opt(NeuronId),
|
|
1157
|
+
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1158
|
+
});
|
|
1159
|
+
const NeuronsFundSnapshot = IDL.Record({
|
|
1160
|
+
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
|
|
1161
|
+
});
|
|
1162
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
1163
|
+
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
1164
|
+
});
|
|
1165
|
+
const NeuronsFundParticipation = IDL.Record({
|
|
1166
|
+
'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1167
|
+
'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1168
|
+
'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1169
|
+
'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
|
|
1170
|
+
'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1171
|
+
'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
|
|
1172
|
+
'ideal_matched_participation_function' : IDL.Opt(
|
|
1173
|
+
IdealMatchedParticipationFunction
|
|
1174
|
+
),
|
|
1175
|
+
});
|
|
1176
|
+
const NeuronsFundData = IDL.Record({
|
|
1177
|
+
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
1178
|
+
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
1179
|
+
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
1180
|
+
});
|
|
1181
|
+
const CanisterStatusResultV2 = IDL.Record({
|
|
1182
|
+
'status' : IDL.Opt(IDL.Int32),
|
|
1183
|
+
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
1184
|
+
'controllers' : IDL.Vec(IDL.Principal),
|
|
1185
|
+
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
1186
|
+
'cycles' : IDL.Opt(IDL.Nat64),
|
|
1187
|
+
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
1188
|
+
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
1189
|
+
});
|
|
1190
|
+
const CanisterSummary = IDL.Record({
|
|
1191
|
+
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
1192
|
+
'canister_id' : IDL.Opt(IDL.Principal),
|
|
1193
|
+
});
|
|
1194
|
+
const SwapBackgroundInformation = IDL.Record({
|
|
1195
|
+
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1196
|
+
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
1197
|
+
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
1198
|
+
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1199
|
+
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1200
|
+
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1201
|
+
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1202
|
+
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
1203
|
+
});
|
|
1204
|
+
const DerivedProposalInformation = IDL.Record({
|
|
1205
|
+
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
1206
|
+
});
|
|
1207
|
+
const Tally = IDL.Record({
|
|
1208
|
+
'no' : IDL.Nat64,
|
|
1209
|
+
'yes' : IDL.Nat64,
|
|
1210
|
+
'total' : IDL.Nat64,
|
|
1211
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
1212
|
+
});
|
|
1041
1213
|
const WaitForQuietState = IDL.Record({
|
|
1042
1214
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
1043
1215
|
});
|
|
@@ -1049,6 +1221,7 @@ export const init = ({ IDL }) => {
|
|
|
1049
1221
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
1050
1222
|
'reward_event_round' : IDL.Nat64,
|
|
1051
1223
|
'failed_timestamp_seconds' : IDL.Nat64,
|
|
1224
|
+
'neurons_fund_data' : IDL.Opt(NeuronsFundData),
|
|
1052
1225
|
'reject_cost_e8s' : IDL.Nat64,
|
|
1053
1226
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
1054
1227
|
'latest_tally' : IDL.Opt(Tally),
|
|
@@ -1109,6 +1282,7 @@ export const init = ({ IDL }) => {
|
|
|
1109
1282
|
});
|
|
1110
1283
|
const Governance = IDL.Record({
|
|
1111
1284
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1285
|
+
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1112
1286
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1113
1287
|
MostRecentMonthlyNodeProviderRewards
|
|
1114
1288
|
),
|
|
@@ -1117,6 +1291,7 @@ export const init = ({ IDL }) => {
|
|
|
1117
1291
|
),
|
|
1118
1292
|
'wait_for_quiet_threshold_seconds' : IDL.Nat64,
|
|
1119
1293
|
'metrics' : IDL.Opt(GovernanceCachedMetrics),
|
|
1294
|
+
'neuron_management_voting_period_seconds' : IDL.Opt(IDL.Nat64),
|
|
1120
1295
|
'node_providers' : IDL.Vec(NodeProvider),
|
|
1121
1296
|
'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
|
|
1122
1297
|
'economics' : IDL.Opt(NetworkEconomics),
|
|
@@ -1124,6 +1299,7 @@ export const init = ({ IDL }) => {
|
|
|
1124
1299
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
1125
1300
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
1126
1301
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
1302
|
+
'migrations' : IDL.Opt(Migrations),
|
|
1127
1303
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1128
1304
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
1129
1305
|
'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
|