@dfinity/nns 10.0.1 → 10.1.1
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 +36 -36
- package/dist/candid/genesis_token.did +2 -1
- package/dist/candid/governance.certified.idl.js +764 -763
- package/dist/candid/governance.d.ts +221 -6
- package/dist/candid/governance.did +23 -10
- package/dist/candid/governance.idl.js +780 -779
- package/dist/candid/governance_test.certified.idl.js +765 -764
- package/dist/candid/governance_test.d.ts +79 -6
- package/dist/candid/governance_test.did +23 -10
- package/dist/candid/governance_test.idl.js +781 -780
- package/dist/candid/sns_wasm.did +2 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-ZJT35CRS.js +8 -0
- package/dist/esm/chunk-ZJT35CRS.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 +3 -3
- package/dist/types/canisters/governance/request.converters.d.ts +2 -1
- package/dist/types/governance.canister.d.ts +2 -1
- package/dist/types/types/governance_converters.d.ts +9 -0
- package/package.json +1 -1
- package/dist/esm/chunk-HKHWC73M.js +0 -8
- package/dist/esm/chunk-HKHWC73M.js.map +0 -7
|
@@ -4,99 +4,359 @@ export const idlFactory = ({ IDL }) => {
|
|
|
4
4
|
const Proposal = IDL.Rec();
|
|
5
5
|
const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
6
6
|
const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
'
|
|
7
|
+
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
8
|
+
const NodeProvider = IDL.Record({
|
|
9
|
+
'id' : IDL.Opt(IDL.Principal),
|
|
10
|
+
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
10
11
|
});
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
'
|
|
12
|
+
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
13
|
+
const RewardToAccount = IDL.Record({
|
|
14
|
+
'to_account' : IDL.Opt(AccountIdentifier),
|
|
14
15
|
});
|
|
15
|
-
const
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'node_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
16
|
+
const RewardMode = IDL.Variant({
|
|
17
|
+
'RewardToNeuron' : RewardToNeuron,
|
|
18
|
+
'RewardToAccount' : RewardToAccount,
|
|
19
19
|
});
|
|
20
|
-
const
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
20
|
+
const RewardNodeProvider = IDL.Record({
|
|
21
|
+
'node_provider' : IDL.Opt(NodeProvider),
|
|
22
|
+
'reward_mode' : IDL.Opt(RewardMode),
|
|
23
|
+
'amount_e8s' : IDL.Nat64,
|
|
24
24
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
'
|
|
28
|
-
'followees' : IDL.Vec(NeuronId),
|
|
25
|
+
const XdrConversionRate = IDL.Record({
|
|
26
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
27
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
29
28
|
});
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
'
|
|
33
|
-
'
|
|
29
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
30
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
31
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
32
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
33
|
+
'timestamp' : IDL.Nat64,
|
|
34
|
+
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
35
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
36
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
34
37
|
});
|
|
35
|
-
const
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
|
|
38
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
39
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
40
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
41
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
42
|
+
),
|
|
43
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
44
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
45
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
46
|
+
'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
47
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
48
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
49
|
+
'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
50
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
51
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
52
|
+
),
|
|
53
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
54
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
55
|
+
'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
56
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
39
57
|
});
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
'
|
|
43
|
-
|
|
58
|
+
const GovernanceCachedMetrics = IDL.Record({
|
|
59
|
+
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
60
|
+
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
61
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
62
|
+
),
|
|
63
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
64
|
+
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
65
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
66
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
67
|
+
),
|
|
68
|
+
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
69
|
+
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
70
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
71
|
+
),
|
|
72
|
+
'ect_neuron_count' : IDL.Nat64,
|
|
73
|
+
'total_supply_icp' : IDL.Nat64,
|
|
74
|
+
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
75
|
+
'dissolved_neurons_count' : IDL.Nat64,
|
|
76
|
+
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
77
|
+
'total_staked_e8s_seed' : IDL.Nat64,
|
|
78
|
+
'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
|
|
79
|
+
'total_staked_e8s' : IDL.Nat64,
|
|
80
|
+
'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
81
|
+
NeuronSubsetMetrics
|
|
82
|
+
),
|
|
83
|
+
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
84
|
+
'total_locked_e8s' : IDL.Nat64,
|
|
85
|
+
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
86
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
87
|
+
IDL.Nat64
|
|
88
|
+
),
|
|
89
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
90
|
+
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
91
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
92
|
+
),
|
|
93
|
+
'spawning_neurons_count' : IDL.Nat64,
|
|
94
|
+
'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
95
|
+
NeuronSubsetMetrics
|
|
96
|
+
),
|
|
97
|
+
'total_staked_e8s_ect' : IDL.Nat64,
|
|
98
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
99
|
+
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
100
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
101
|
+
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
102
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
103
|
+
),
|
|
104
|
+
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
105
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
106
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
107
|
+
),
|
|
108
|
+
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
109
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
110
|
+
),
|
|
111
|
+
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
112
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
113
|
+
),
|
|
114
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
115
|
+
NeuronSubsetMetrics
|
|
116
|
+
),
|
|
117
|
+
'dissolving_neurons_count' : IDL.Nat64,
|
|
118
|
+
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
119
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
120
|
+
),
|
|
121
|
+
'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
|
|
122
|
+
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
123
|
+
'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
124
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
125
|
+
),
|
|
126
|
+
'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
|
|
127
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
128
|
+
'seed_neuron_count' : IDL.Nat64,
|
|
44
129
|
});
|
|
45
|
-
const
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
130
|
+
const VotingPowerEconomics = IDL.Record({
|
|
131
|
+
'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
132
|
+
'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
|
|
133
|
+
'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
49
134
|
});
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
|
|
135
|
+
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
|
|
136
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
137
|
+
const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
|
|
138
|
+
'contribution_threshold_xdr' : IDL.Opt(Decimal),
|
|
139
|
+
'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
140
|
+
'full_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
53
141
|
});
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
'
|
|
142
|
+
const NeuronsFundEconomics = IDL.Record({
|
|
143
|
+
'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
144
|
+
'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
|
|
145
|
+
NeuronsFundMatchedFundingCurveCoefficients
|
|
146
|
+
),
|
|
147
|
+
'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
|
|
148
|
+
'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
57
149
|
});
|
|
58
|
-
const
|
|
59
|
-
'
|
|
150
|
+
const NetworkEconomics = IDL.Record({
|
|
151
|
+
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
152
|
+
'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
|
|
153
|
+
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
154
|
+
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
155
|
+
'reject_cost_e8s' : IDL.Nat64,
|
|
156
|
+
'transaction_fee_e8s' : IDL.Nat64,
|
|
157
|
+
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
158
|
+
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
159
|
+
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
160
|
+
'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
|
|
60
161
|
});
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
'
|
|
162
|
+
const RestoreAgingNeuronGroup = IDL.Record({
|
|
163
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
164
|
+
'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
165
|
+
'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
166
|
+
'group_type' : IDL.Int32,
|
|
64
167
|
});
|
|
65
|
-
const
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
|
|
69
|
-
'StopDissolving' : IDL.Record({}),
|
|
70
|
-
'StartDissolving' : IDL.Record({}),
|
|
71
|
-
'IncreaseDissolveDelay' : IncreaseDissolveDelay,
|
|
72
|
-
'SetVisibility' : SetVisibility,
|
|
73
|
-
'JoinCommunityFund' : IDL.Record({}),
|
|
74
|
-
'LeaveCommunityFund' : IDL.Record({}),
|
|
75
|
-
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
168
|
+
const RestoreAgingSummary = IDL.Record({
|
|
169
|
+
'groups' : IDL.Vec(RestoreAgingNeuronGroup),
|
|
170
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
76
171
|
});
|
|
77
|
-
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
78
172
|
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
79
|
-
const
|
|
80
|
-
'
|
|
81
|
-
'
|
|
173
|
+
const RewardEvent = IDL.Record({
|
|
174
|
+
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
175
|
+
'day_after_genesis' : IDL.Nat64,
|
|
176
|
+
'actual_timestamp_seconds' : IDL.Nat64,
|
|
177
|
+
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
178
|
+
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
179
|
+
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
180
|
+
'settled_proposals' : IDL.Vec(ProposalId),
|
|
82
181
|
});
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
182
|
+
const NeuronStakeTransfer = IDL.Record({
|
|
183
|
+
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
184
|
+
'neuron_stake_e8s' : IDL.Nat64,
|
|
185
|
+
'from' : IDL.Opt(IDL.Principal),
|
|
186
|
+
'memo' : IDL.Nat64,
|
|
187
|
+
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
188
|
+
'transfer_timestamp' : IDL.Nat64,
|
|
189
|
+
'block_height' : IDL.Nat64,
|
|
90
190
|
});
|
|
91
|
-
const
|
|
92
|
-
'
|
|
93
|
-
'
|
|
191
|
+
const GovernanceError = IDL.Record({
|
|
192
|
+
'error_message' : IDL.Text,
|
|
193
|
+
'error_type' : IDL.Int32,
|
|
94
194
|
});
|
|
95
|
-
const
|
|
96
|
-
|
|
195
|
+
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
196
|
+
const SwapParticipationLimits = IDL.Record({
|
|
197
|
+
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
198
|
+
'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
199
|
+
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
200
|
+
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
97
201
|
});
|
|
98
|
-
const
|
|
99
|
-
'
|
|
202
|
+
const NeuronsFundNeuronPortion = IDL.Record({
|
|
203
|
+
'controller' : IDL.Opt(IDL.Principal),
|
|
204
|
+
'hotkeys' : IDL.Vec(IDL.Principal),
|
|
205
|
+
'is_capped' : IDL.Opt(IDL.Bool),
|
|
206
|
+
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
207
|
+
'nns_neuron_id' : IDL.Opt(NeuronId),
|
|
208
|
+
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
209
|
+
});
|
|
210
|
+
const NeuronsFundSnapshot = IDL.Record({
|
|
211
|
+
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
|
|
212
|
+
});
|
|
213
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
214
|
+
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
215
|
+
});
|
|
216
|
+
const NeuronsFundParticipation = IDL.Record({
|
|
217
|
+
'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
218
|
+
'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
219
|
+
'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
220
|
+
'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
|
|
221
|
+
'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
222
|
+
'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
|
|
223
|
+
'ideal_matched_participation_function' : IDL.Opt(
|
|
224
|
+
IdealMatchedParticipationFunction
|
|
225
|
+
),
|
|
226
|
+
'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
227
|
+
});
|
|
228
|
+
const NeuronsFundData = IDL.Record({
|
|
229
|
+
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
230
|
+
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
231
|
+
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
232
|
+
});
|
|
233
|
+
const CanisterStatusResultV2 = IDL.Record({
|
|
234
|
+
'status' : IDL.Opt(IDL.Int32),
|
|
235
|
+
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
236
|
+
'controllers' : IDL.Vec(IDL.Principal),
|
|
237
|
+
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
238
|
+
'cycles' : IDL.Opt(IDL.Nat64),
|
|
239
|
+
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
240
|
+
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
241
|
+
});
|
|
242
|
+
const CanisterSummary = IDL.Record({
|
|
243
|
+
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
244
|
+
'canister_id' : IDL.Opt(IDL.Principal),
|
|
245
|
+
});
|
|
246
|
+
const SwapBackgroundInformation = IDL.Record({
|
|
247
|
+
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
248
|
+
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
249
|
+
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
250
|
+
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
251
|
+
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
252
|
+
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
253
|
+
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
254
|
+
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
255
|
+
});
|
|
256
|
+
const DerivedProposalInformation = IDL.Record({
|
|
257
|
+
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
258
|
+
});
|
|
259
|
+
const Tally = IDL.Record({
|
|
260
|
+
'no' : IDL.Nat64,
|
|
261
|
+
'yes' : IDL.Nat64,
|
|
262
|
+
'total' : IDL.Nat64,
|
|
263
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
264
|
+
});
|
|
265
|
+
const KnownNeuronData = IDL.Record({
|
|
266
|
+
'name' : IDL.Text,
|
|
267
|
+
'description' : IDL.Opt(IDL.Text),
|
|
268
|
+
'links' : IDL.Opt(IDL.Vec(IDL.Text)),
|
|
269
|
+
});
|
|
270
|
+
const KnownNeuron = IDL.Record({
|
|
271
|
+
'id' : IDL.Opt(NeuronId),
|
|
272
|
+
'known_neuron_data' : IDL.Opt(KnownNeuronData),
|
|
273
|
+
});
|
|
274
|
+
const FulfillSubnetRentalRequest = IDL.Record({
|
|
275
|
+
'user' : IDL.Opt(IDL.Principal),
|
|
276
|
+
'replica_version_id' : IDL.Opt(IDL.Text),
|
|
277
|
+
'node_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
278
|
+
});
|
|
279
|
+
const Spawn = IDL.Record({
|
|
280
|
+
'percentage_to_spawn' : IDL.Opt(IDL.Nat32),
|
|
281
|
+
'new_controller' : IDL.Opt(IDL.Principal),
|
|
282
|
+
'nonce' : IDL.Opt(IDL.Nat64),
|
|
283
|
+
});
|
|
284
|
+
const Split = IDL.Record({
|
|
285
|
+
'memo' : IDL.Opt(IDL.Nat64),
|
|
286
|
+
'amount_e8s' : IDL.Nat64,
|
|
287
|
+
});
|
|
288
|
+
const Follow = IDL.Record({
|
|
289
|
+
'topic' : IDL.Int32,
|
|
290
|
+
'followees' : IDL.Vec(NeuronId),
|
|
291
|
+
});
|
|
292
|
+
const Account = IDL.Record({
|
|
293
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
294
|
+
'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
295
|
+
});
|
|
296
|
+
const DisburseMaturity = IDL.Record({
|
|
297
|
+
'to_account_identifier' : IDL.Opt(AccountIdentifier),
|
|
298
|
+
'to_account' : IDL.Opt(Account),
|
|
299
|
+
'percentage_to_disburse' : IDL.Nat32,
|
|
300
|
+
});
|
|
301
|
+
const RefreshVotingPower = IDL.Record({});
|
|
302
|
+
const ClaimOrRefreshNeuronFromAccount = IDL.Record({
|
|
303
|
+
'controller' : IDL.Opt(IDL.Principal),
|
|
304
|
+
'memo' : IDL.Nat64,
|
|
305
|
+
});
|
|
306
|
+
const By = IDL.Variant({
|
|
307
|
+
'NeuronIdOrSubaccount' : IDL.Record({}),
|
|
308
|
+
'MemoAndController' : ClaimOrRefreshNeuronFromAccount,
|
|
309
|
+
'Memo' : IDL.Nat64,
|
|
310
|
+
});
|
|
311
|
+
const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
|
|
312
|
+
const RemoveHotKey = IDL.Record({
|
|
313
|
+
'hot_key_to_remove' : IDL.Opt(IDL.Principal),
|
|
314
|
+
});
|
|
315
|
+
const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
|
|
316
|
+
const ChangeAutoStakeMaturity = IDL.Record({
|
|
317
|
+
'requested_setting_for_auto_stake_maturity' : IDL.Bool,
|
|
318
|
+
});
|
|
319
|
+
const IncreaseDissolveDelay = IDL.Record({
|
|
320
|
+
'additional_dissolve_delay_seconds' : IDL.Nat32,
|
|
321
|
+
});
|
|
322
|
+
const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
|
|
323
|
+
const SetDissolveTimestamp = IDL.Record({
|
|
324
|
+
'dissolve_timestamp_seconds' : IDL.Nat64,
|
|
325
|
+
});
|
|
326
|
+
const Operation = IDL.Variant({
|
|
327
|
+
'RemoveHotKey' : RemoveHotKey,
|
|
328
|
+
'AddHotKey' : AddHotKey,
|
|
329
|
+
'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
|
|
330
|
+
'StopDissolving' : IDL.Record({}),
|
|
331
|
+
'StartDissolving' : IDL.Record({}),
|
|
332
|
+
'IncreaseDissolveDelay' : IncreaseDissolveDelay,
|
|
333
|
+
'SetVisibility' : SetVisibility,
|
|
334
|
+
'JoinCommunityFund' : IDL.Record({}),
|
|
335
|
+
'LeaveCommunityFund' : IDL.Record({}),
|
|
336
|
+
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
337
|
+
});
|
|
338
|
+
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
339
|
+
const RegisterVote = IDL.Record({
|
|
340
|
+
'vote' : IDL.Int32,
|
|
341
|
+
'proposal' : IDL.Opt(ProposalId),
|
|
342
|
+
});
|
|
343
|
+
const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
|
|
344
|
+
const DisburseToNeuron = IDL.Record({
|
|
345
|
+
'dissolve_delay_seconds' : IDL.Nat64,
|
|
346
|
+
'kyc_verified' : IDL.Bool,
|
|
347
|
+
'amount_e8s' : IDL.Nat64,
|
|
348
|
+
'new_controller' : IDL.Opt(IDL.Principal),
|
|
349
|
+
'nonce' : IDL.Nat64,
|
|
350
|
+
});
|
|
351
|
+
const FolloweesForTopic = IDL.Record({
|
|
352
|
+
'topic' : IDL.Opt(IDL.Int32),
|
|
353
|
+
'followees' : IDL.Opt(IDL.Vec(NeuronId)),
|
|
354
|
+
});
|
|
355
|
+
const SetFollowing = IDL.Record({
|
|
356
|
+
'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
|
|
357
|
+
});
|
|
358
|
+
const StakeMaturity = IDL.Record({
|
|
359
|
+
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
|
|
100
360
|
});
|
|
101
361
|
const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
|
|
102
362
|
const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
|
|
@@ -151,11 +411,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
151
411
|
'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
152
412
|
'install_mode' : IDL.Opt(IDL.Int32),
|
|
153
413
|
});
|
|
414
|
+
const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
|
|
154
415
|
const StopOrStartCanister = IDL.Record({
|
|
155
416
|
'action' : IDL.Opt(IDL.Int32),
|
|
156
417
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
157
418
|
});
|
|
158
|
-
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
|
|
159
419
|
const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
|
|
160
420
|
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
161
421
|
const VotingRewardParameters = IDL.Record({
|
|
@@ -241,23 +501,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
241
501
|
'nns_function' : IDL.Int32,
|
|
242
502
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
243
503
|
});
|
|
244
|
-
const NodeProvider = IDL.Record({
|
|
245
|
-
'id' : IDL.Opt(IDL.Principal),
|
|
246
|
-
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
247
|
-
});
|
|
248
|
-
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
249
|
-
const RewardToAccount = IDL.Record({
|
|
250
|
-
'to_account' : IDL.Opt(AccountIdentifier),
|
|
251
|
-
});
|
|
252
|
-
const RewardMode = IDL.Variant({
|
|
253
|
-
'RewardToNeuron' : RewardToNeuron,
|
|
254
|
-
'RewardToAccount' : RewardToAccount,
|
|
255
|
-
});
|
|
256
|
-
const RewardNodeProvider = IDL.Record({
|
|
257
|
-
'node_provider' : IDL.Opt(NodeProvider),
|
|
258
|
-
'reward_mode' : IDL.Opt(RewardMode),
|
|
259
|
-
'amount_e8s' : IDL.Nat64,
|
|
260
|
-
});
|
|
261
504
|
const NeuronBasketConstructionParameters_1 = IDL.Record({
|
|
262
505
|
'dissolve_delay_interval_seconds' : IDL.Nat64,
|
|
263
506
|
'count' : IDL.Nat64,
|
|
@@ -300,37 +543,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
300
543
|
'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
|
|
301
544
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
302
545
|
});
|
|
303
|
-
const VotingPowerEconomics = IDL.Record({
|
|
304
|
-
'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
305
|
-
'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
|
|
306
|
-
'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
307
|
-
});
|
|
308
|
-
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
309
|
-
const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
|
|
310
|
-
'contribution_threshold_xdr' : IDL.Opt(Decimal),
|
|
311
|
-
'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
312
|
-
'full_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
313
|
-
});
|
|
314
|
-
const NeuronsFundEconomics = IDL.Record({
|
|
315
|
-
'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
316
|
-
'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
|
|
317
|
-
NeuronsFundMatchedFundingCurveCoefficients
|
|
318
|
-
),
|
|
319
|
-
'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
|
|
320
|
-
'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
321
|
-
});
|
|
322
|
-
const NetworkEconomics = IDL.Record({
|
|
323
|
-
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
324
|
-
'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
|
|
325
|
-
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
326
|
-
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
327
|
-
'reject_cost_e8s' : IDL.Nat64,
|
|
328
|
-
'transaction_fee_e8s' : IDL.Nat64,
|
|
329
|
-
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
330
|
-
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
331
|
-
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
332
|
-
'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
|
|
333
|
-
});
|
|
334
546
|
const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
|
|
335
547
|
const Change = IDL.Variant({
|
|
336
548
|
'ToRemove' : NodeProvider,
|
|
@@ -344,6 +556,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
556
|
'ManageNeuron' : ManageNeuron,
|
|
345
557
|
'UpdateCanisterSettings' : UpdateCanisterSettings,
|
|
346
558
|
'InstallCode' : InstallCode,
|
|
559
|
+
'DeregisterKnownNeuron' : DeregisterKnownNeuron,
|
|
347
560
|
'StopOrStartCanister' : StopOrStartCanister,
|
|
348
561
|
'CreateServiceNervousSystem' : CreateServiceNervousSystem,
|
|
349
562
|
'ExecuteNnsFunction' : ExecuteNnsFunction,
|
|
@@ -365,257 +578,45 @@ export const idlFactory = ({ IDL }) => {
|
|
|
365
578
|
'summary' : IDL.Text,
|
|
366
579
|
})
|
|
367
580
|
);
|
|
368
|
-
const
|
|
581
|
+
const WaitForQuietState = IDL.Record({
|
|
582
|
+
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
583
|
+
});
|
|
584
|
+
const ProposalData = IDL.Record({
|
|
585
|
+
'id' : IDL.Opt(ProposalId),
|
|
586
|
+
'topic' : IDL.Opt(IDL.Int32),
|
|
587
|
+
'failure_reason' : IDL.Opt(GovernanceError),
|
|
588
|
+
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
589
|
+
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
590
|
+
'reward_event_round' : IDL.Nat64,
|
|
591
|
+
'failed_timestamp_seconds' : IDL.Nat64,
|
|
592
|
+
'neurons_fund_data' : IDL.Opt(NeuronsFundData),
|
|
593
|
+
'reject_cost_e8s' : IDL.Nat64,
|
|
594
|
+
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
595
|
+
'latest_tally' : IDL.Opt(Tally),
|
|
596
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
597
|
+
'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
|
|
598
|
+
'decided_timestamp_seconds' : IDL.Nat64,
|
|
369
599
|
'proposal' : IDL.Opt(Proposal),
|
|
370
|
-
'
|
|
371
|
-
'
|
|
600
|
+
'proposer' : IDL.Opt(NeuronId),
|
|
601
|
+
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
|
|
602
|
+
'executed_timestamp_seconds' : IDL.Nat64,
|
|
603
|
+
'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
|
|
604
|
+
IDL.Nat64
|
|
605
|
+
),
|
|
372
606
|
});
|
|
373
|
-
const
|
|
374
|
-
'
|
|
375
|
-
'
|
|
607
|
+
const Command_2 = IDL.Variant({
|
|
608
|
+
'Spawn' : NeuronId,
|
|
609
|
+
'Split' : Split,
|
|
610
|
+
'Configure' : Configure,
|
|
611
|
+
'Merge' : Merge,
|
|
612
|
+
'DisburseToNeuron' : DisburseToNeuron,
|
|
613
|
+
'SyncCommand' : IDL.Record({}),
|
|
614
|
+
'ClaimOrRefreshNeuron' : ClaimOrRefresh,
|
|
615
|
+
'MergeMaturity' : MergeMaturity,
|
|
616
|
+
'Disburse' : Disburse,
|
|
376
617
|
});
|
|
377
|
-
const
|
|
378
|
-
'
|
|
379
|
-
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
380
|
-
'node_providers' : IDL.Vec(NodeProvider),
|
|
381
|
-
'timestamp' : IDL.Nat64,
|
|
382
|
-
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
383
|
-
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
384
|
-
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
385
|
-
});
|
|
386
|
-
const NeuronSubsetMetrics = IDL.Record({
|
|
387
|
-
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
388
|
-
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
389
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
390
|
-
),
|
|
391
|
-
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
392
|
-
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
393
|
-
'count' : IDL.Opt(IDL.Nat64),
|
|
394
|
-
'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
395
|
-
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
396
|
-
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
397
|
-
'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
398
|
-
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
399
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
400
|
-
),
|
|
401
|
-
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
402
|
-
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
403
|
-
'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
404
|
-
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
405
|
-
});
|
|
406
|
-
const GovernanceCachedMetrics = IDL.Record({
|
|
407
|
-
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
408
|
-
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
409
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
410
|
-
),
|
|
411
|
-
'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
412
|
-
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
413
|
-
'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
414
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
415
|
-
),
|
|
416
|
-
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
417
|
-
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
418
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
419
|
-
),
|
|
420
|
-
'ect_neuron_count' : IDL.Nat64,
|
|
421
|
-
'total_supply_icp' : IDL.Nat64,
|
|
422
|
-
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
423
|
-
'dissolved_neurons_count' : IDL.Nat64,
|
|
424
|
-
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
425
|
-
'total_staked_e8s_seed' : IDL.Nat64,
|
|
426
|
-
'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
|
|
427
|
-
'total_staked_e8s' : IDL.Nat64,
|
|
428
|
-
'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
429
|
-
NeuronSubsetMetrics
|
|
430
|
-
),
|
|
431
|
-
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
432
|
-
'total_locked_e8s' : IDL.Nat64,
|
|
433
|
-
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
434
|
-
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
435
|
-
IDL.Nat64
|
|
436
|
-
),
|
|
437
|
-
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
438
|
-
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
439
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
440
|
-
),
|
|
441
|
-
'spawning_neurons_count' : IDL.Nat64,
|
|
442
|
-
'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
443
|
-
NeuronSubsetMetrics
|
|
444
|
-
),
|
|
445
|
-
'total_staked_e8s_ect' : IDL.Nat64,
|
|
446
|
-
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
447
|
-
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
448
|
-
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
449
|
-
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
450
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
451
|
-
),
|
|
452
|
-
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
453
|
-
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
454
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
455
|
-
),
|
|
456
|
-
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
457
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
458
|
-
),
|
|
459
|
-
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
460
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
461
|
-
),
|
|
462
|
-
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
463
|
-
NeuronSubsetMetrics
|
|
464
|
-
),
|
|
465
|
-
'dissolving_neurons_count' : IDL.Nat64,
|
|
466
|
-
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
467
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
468
|
-
),
|
|
469
|
-
'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
|
|
470
|
-
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
471
|
-
'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
472
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
473
|
-
),
|
|
474
|
-
'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
|
|
475
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
476
|
-
'seed_neuron_count' : IDL.Nat64,
|
|
477
|
-
});
|
|
478
|
-
const RestoreAgingNeuronGroup = IDL.Record({
|
|
479
|
-
'count' : IDL.Opt(IDL.Nat64),
|
|
480
|
-
'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
481
|
-
'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
482
|
-
'group_type' : IDL.Int32,
|
|
483
|
-
});
|
|
484
|
-
const RestoreAgingSummary = IDL.Record({
|
|
485
|
-
'groups' : IDL.Vec(RestoreAgingNeuronGroup),
|
|
486
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
487
|
-
});
|
|
488
|
-
const RewardEvent = IDL.Record({
|
|
489
|
-
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
490
|
-
'day_after_genesis' : IDL.Nat64,
|
|
491
|
-
'actual_timestamp_seconds' : IDL.Nat64,
|
|
492
|
-
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
493
|
-
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
494
|
-
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
495
|
-
'settled_proposals' : IDL.Vec(ProposalId),
|
|
496
|
-
});
|
|
497
|
-
const NeuronStakeTransfer = IDL.Record({
|
|
498
|
-
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
499
|
-
'neuron_stake_e8s' : IDL.Nat64,
|
|
500
|
-
'from' : IDL.Opt(IDL.Principal),
|
|
501
|
-
'memo' : IDL.Nat64,
|
|
502
|
-
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
503
|
-
'transfer_timestamp' : IDL.Nat64,
|
|
504
|
-
'block_height' : IDL.Nat64,
|
|
505
|
-
});
|
|
506
|
-
const GovernanceError = IDL.Record({
|
|
507
|
-
'error_message' : IDL.Text,
|
|
508
|
-
'error_type' : IDL.Int32,
|
|
509
|
-
});
|
|
510
|
-
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
511
|
-
const SwapParticipationLimits = IDL.Record({
|
|
512
|
-
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
513
|
-
'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
514
|
-
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
515
|
-
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
516
|
-
});
|
|
517
|
-
const NeuronsFundNeuronPortion = IDL.Record({
|
|
518
|
-
'controller' : IDL.Opt(IDL.Principal),
|
|
519
|
-
'hotkeys' : IDL.Vec(IDL.Principal),
|
|
520
|
-
'is_capped' : IDL.Opt(IDL.Bool),
|
|
521
|
-
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
522
|
-
'nns_neuron_id' : IDL.Opt(NeuronId),
|
|
523
|
-
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
524
|
-
});
|
|
525
|
-
const NeuronsFundSnapshot = IDL.Record({
|
|
526
|
-
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
|
|
527
|
-
});
|
|
528
|
-
const IdealMatchedParticipationFunction = IDL.Record({
|
|
529
|
-
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
530
|
-
});
|
|
531
|
-
const NeuronsFundParticipation = IDL.Record({
|
|
532
|
-
'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
533
|
-
'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
534
|
-
'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
535
|
-
'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
|
|
536
|
-
'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
537
|
-
'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
|
|
538
|
-
'ideal_matched_participation_function' : IDL.Opt(
|
|
539
|
-
IdealMatchedParticipationFunction
|
|
540
|
-
),
|
|
541
|
-
'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
542
|
-
});
|
|
543
|
-
const NeuronsFundData = IDL.Record({
|
|
544
|
-
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
545
|
-
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
546
|
-
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
547
|
-
});
|
|
548
|
-
const CanisterStatusResultV2 = IDL.Record({
|
|
549
|
-
'status' : IDL.Opt(IDL.Int32),
|
|
550
|
-
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
551
|
-
'controllers' : IDL.Vec(IDL.Principal),
|
|
552
|
-
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
553
|
-
'cycles' : IDL.Opt(IDL.Nat64),
|
|
554
|
-
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
555
|
-
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
556
|
-
});
|
|
557
|
-
const CanisterSummary = IDL.Record({
|
|
558
|
-
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
559
|
-
'canister_id' : IDL.Opt(IDL.Principal),
|
|
560
|
-
});
|
|
561
|
-
const SwapBackgroundInformation = IDL.Record({
|
|
562
|
-
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
563
|
-
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
564
|
-
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
565
|
-
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
566
|
-
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
567
|
-
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
568
|
-
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
569
|
-
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
570
|
-
});
|
|
571
|
-
const DerivedProposalInformation = IDL.Record({
|
|
572
|
-
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
573
|
-
});
|
|
574
|
-
const Tally = IDL.Record({
|
|
575
|
-
'no' : IDL.Nat64,
|
|
576
|
-
'yes' : IDL.Nat64,
|
|
577
|
-
'total' : IDL.Nat64,
|
|
578
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
579
|
-
});
|
|
580
|
-
const WaitForQuietState = IDL.Record({
|
|
581
|
-
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
582
|
-
});
|
|
583
|
-
const ProposalData = IDL.Record({
|
|
584
|
-
'id' : IDL.Opt(ProposalId),
|
|
585
|
-
'topic' : IDL.Opt(IDL.Int32),
|
|
586
|
-
'failure_reason' : IDL.Opt(GovernanceError),
|
|
587
|
-
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
588
|
-
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
589
|
-
'reward_event_round' : IDL.Nat64,
|
|
590
|
-
'failed_timestamp_seconds' : IDL.Nat64,
|
|
591
|
-
'neurons_fund_data' : IDL.Opt(NeuronsFundData),
|
|
592
|
-
'reject_cost_e8s' : IDL.Nat64,
|
|
593
|
-
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
594
|
-
'latest_tally' : IDL.Opt(Tally),
|
|
595
|
-
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
596
|
-
'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
|
|
597
|
-
'decided_timestamp_seconds' : IDL.Nat64,
|
|
598
|
-
'proposal' : IDL.Opt(Proposal),
|
|
599
|
-
'proposer' : IDL.Opt(NeuronId),
|
|
600
|
-
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
|
|
601
|
-
'executed_timestamp_seconds' : IDL.Nat64,
|
|
602
|
-
'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
|
|
603
|
-
IDL.Nat64
|
|
604
|
-
),
|
|
605
|
-
});
|
|
606
|
-
const Command_2 = IDL.Variant({
|
|
607
|
-
'Spawn' : NeuronId,
|
|
608
|
-
'Split' : Split,
|
|
609
|
-
'Configure' : Configure,
|
|
610
|
-
'Merge' : Merge,
|
|
611
|
-
'DisburseToNeuron' : DisburseToNeuron,
|
|
612
|
-
'SyncCommand' : IDL.Record({}),
|
|
613
|
-
'ClaimOrRefreshNeuron' : ClaimOrRefresh,
|
|
614
|
-
'MergeMaturity' : MergeMaturity,
|
|
615
|
-
'Disburse' : Disburse,
|
|
616
|
-
});
|
|
617
|
-
const NeuronInFlightCommand = IDL.Record({
|
|
618
|
-
'command' : IDL.Opt(Command_2),
|
|
618
|
+
const NeuronInFlightCommand = IDL.Record({
|
|
619
|
+
'command' : IDL.Opt(Command_2),
|
|
619
620
|
'timestamp' : IDL.Nat64,
|
|
620
621
|
});
|
|
621
622
|
const BallotInfo = IDL.Record({
|
|
@@ -665,7 +666,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
665
666
|
});
|
|
666
667
|
const Governance = IDL.Record({
|
|
667
668
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
668
|
-
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
669
669
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
670
670
|
MonthlyNodeProviderRewards
|
|
671
671
|
),
|
|
@@ -819,6 +819,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
819
819
|
'ManageNeuron' : ManageNeuronRequest,
|
|
820
820
|
'UpdateCanisterSettings' : UpdateCanisterSettings,
|
|
821
821
|
'InstallCode' : InstallCodeRequest,
|
|
822
|
+
'DeregisterKnownNeuron' : DeregisterKnownNeuron,
|
|
822
823
|
'StopOrStartCanister' : StopOrStartCanister,
|
|
823
824
|
'CreateServiceNervousSystem' : CreateServiceNervousSystem,
|
|
824
825
|
'ExecuteNnsFunction' : ExecuteNnsFunction,
|
|
@@ -905,137 +906,396 @@ export const idlFactory = ({ IDL }) => {
|
|
|
905
906
|
'MergeMaturity' : MergeMaturityResponse,
|
|
906
907
|
'Disburse' : DisburseResponse,
|
|
907
908
|
});
|
|
908
|
-
const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
|
|
909
|
-
const Committed = IDL.Record({
|
|
910
|
-
'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
911
|
-
'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
912
|
-
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
909
|
+
const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
|
|
910
|
+
const Committed = IDL.Record({
|
|
911
|
+
'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
912
|
+
'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
913
|
+
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
914
|
+
});
|
|
915
|
+
const Result_8 = IDL.Variant({
|
|
916
|
+
'Committed' : Committed,
|
|
917
|
+
'Aborted' : IDL.Record({}),
|
|
918
|
+
});
|
|
919
|
+
const SettleCommunityFundParticipation = IDL.Record({
|
|
920
|
+
'result' : IDL.Opt(Result_8),
|
|
921
|
+
'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
922
|
+
});
|
|
923
|
+
const Committed_1 = IDL.Record({
|
|
924
|
+
'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
925
|
+
'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
926
|
+
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
927
|
+
});
|
|
928
|
+
const Result_9 = IDL.Variant({
|
|
929
|
+
'Committed' : Committed_1,
|
|
930
|
+
'Aborted' : IDL.Record({}),
|
|
931
|
+
});
|
|
932
|
+
const SettleNeuronsFundParticipationRequest = IDL.Record({
|
|
933
|
+
'result' : IDL.Opt(Result_9),
|
|
934
|
+
'nns_proposal_id' : IDL.Opt(IDL.Nat64),
|
|
935
|
+
});
|
|
936
|
+
const NeuronsFundNeuron = IDL.Record({
|
|
937
|
+
'controller' : IDL.Opt(IDL.Principal),
|
|
938
|
+
'hotkeys' : IDL.Opt(Principals),
|
|
939
|
+
'is_capped' : IDL.Opt(IDL.Bool),
|
|
940
|
+
'nns_neuron_id' : IDL.Opt(IDL.Nat64),
|
|
941
|
+
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
942
|
+
});
|
|
943
|
+
const Ok_1 = IDL.Record({
|
|
944
|
+
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
|
|
945
|
+
});
|
|
946
|
+
const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
|
|
947
|
+
const SettleNeuronsFundParticipationResponse = IDL.Record({
|
|
948
|
+
'result' : IDL.Opt(Result_10),
|
|
949
|
+
});
|
|
950
|
+
const UpdateNodeProvider = IDL.Record({
|
|
951
|
+
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
952
|
+
});
|
|
953
|
+
return IDL.Service({
|
|
954
|
+
'claim_gtc_neurons' : IDL.Func(
|
|
955
|
+
[IDL.Principal, IDL.Vec(NeuronId)],
|
|
956
|
+
[Result],
|
|
957
|
+
[],
|
|
958
|
+
),
|
|
959
|
+
'claim_or_refresh_neuron_from_account' : IDL.Func(
|
|
960
|
+
[ClaimOrRefreshNeuronFromAccount],
|
|
961
|
+
[ClaimOrRefreshNeuronFromAccountResponse],
|
|
962
|
+
[],
|
|
963
|
+
),
|
|
964
|
+
'get_build_metadata' : IDL.Func([], [IDL.Text], []),
|
|
965
|
+
'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], []),
|
|
966
|
+
'get_full_neuron_by_id_or_subaccount' : IDL.Func(
|
|
967
|
+
[NeuronIdOrSubaccount],
|
|
968
|
+
[Result_2],
|
|
969
|
+
[],
|
|
970
|
+
),
|
|
971
|
+
'get_latest_reward_event' : IDL.Func([], [RewardEvent], []),
|
|
972
|
+
'get_metrics' : IDL.Func([], [Result_3], []),
|
|
973
|
+
'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
|
|
974
|
+
'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
|
|
975
|
+
[],
|
|
976
|
+
[IDL.Opt(MonthlyNodeProviderRewards)],
|
|
977
|
+
[],
|
|
978
|
+
),
|
|
979
|
+
'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
|
|
980
|
+
'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], []),
|
|
981
|
+
'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], []),
|
|
982
|
+
'get_neuron_info_by_id_or_subaccount' : IDL.Func(
|
|
983
|
+
[NeuronIdOrSubaccount],
|
|
984
|
+
[Result_5],
|
|
985
|
+
[],
|
|
986
|
+
),
|
|
987
|
+
'get_neurons_fund_audit_info' : IDL.Func(
|
|
988
|
+
[GetNeuronsFundAuditInfoRequest],
|
|
989
|
+
[GetNeuronsFundAuditInfoResponse],
|
|
990
|
+
[],
|
|
991
|
+
),
|
|
992
|
+
'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
|
|
993
|
+
'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
|
|
994
|
+
'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
|
|
995
|
+
'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
|
|
996
|
+
'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
|
|
997
|
+
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
|
|
998
|
+
'list_node_provider_rewards' : IDL.Func(
|
|
999
|
+
[ListNodeProviderRewardsRequest],
|
|
1000
|
+
[ListNodeProviderRewardsResponse],
|
|
1001
|
+
[],
|
|
1002
|
+
),
|
|
1003
|
+
'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
|
|
1004
|
+
'list_proposals' : IDL.Func(
|
|
1005
|
+
[ListProposalInfo],
|
|
1006
|
+
[ListProposalInfoResponse],
|
|
1007
|
+
[],
|
|
1008
|
+
),
|
|
1009
|
+
'manage_neuron' : IDL.Func(
|
|
1010
|
+
[ManageNeuronRequest],
|
|
1011
|
+
[ManageNeuronResponse],
|
|
1012
|
+
[],
|
|
1013
|
+
),
|
|
1014
|
+
'settle_community_fund_participation' : IDL.Func(
|
|
1015
|
+
[SettleCommunityFundParticipation],
|
|
1016
|
+
[Result],
|
|
1017
|
+
[],
|
|
1018
|
+
),
|
|
1019
|
+
'settle_neurons_fund_participation' : IDL.Func(
|
|
1020
|
+
[SettleNeuronsFundParticipationRequest],
|
|
1021
|
+
[SettleNeuronsFundParticipationResponse],
|
|
1022
|
+
[],
|
|
1023
|
+
),
|
|
1024
|
+
'simulate_manage_neuron' : IDL.Func(
|
|
1025
|
+
[ManageNeuronRequest],
|
|
1026
|
+
[ManageNeuronResponse],
|
|
1027
|
+
[],
|
|
1028
|
+
),
|
|
1029
|
+
'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
|
|
1030
|
+
'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
|
|
1031
|
+
});
|
|
1032
|
+
};
|
|
1033
|
+
export const init = ({ IDL }) => {
|
|
1034
|
+
const Proposal = IDL.Rec();
|
|
1035
|
+
const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
1036
|
+
const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
|
|
1037
|
+
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
1038
|
+
const NodeProvider = IDL.Record({
|
|
1039
|
+
'id' : IDL.Opt(IDL.Principal),
|
|
1040
|
+
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
1041
|
+
});
|
|
1042
|
+
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
1043
|
+
const RewardToAccount = IDL.Record({
|
|
1044
|
+
'to_account' : IDL.Opt(AccountIdentifier),
|
|
1045
|
+
});
|
|
1046
|
+
const RewardMode = IDL.Variant({
|
|
1047
|
+
'RewardToNeuron' : RewardToNeuron,
|
|
1048
|
+
'RewardToAccount' : RewardToAccount,
|
|
1049
|
+
});
|
|
1050
|
+
const RewardNodeProvider = IDL.Record({
|
|
1051
|
+
'node_provider' : IDL.Opt(NodeProvider),
|
|
1052
|
+
'reward_mode' : IDL.Opt(RewardMode),
|
|
1053
|
+
'amount_e8s' : IDL.Nat64,
|
|
1054
|
+
});
|
|
1055
|
+
const XdrConversionRate = IDL.Record({
|
|
1056
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1057
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1058
|
+
});
|
|
1059
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1060
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1061
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
1062
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
1063
|
+
'timestamp' : IDL.Nat64,
|
|
1064
|
+
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1065
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1066
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
1067
|
+
});
|
|
1068
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
1069
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1070
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1071
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1072
|
+
),
|
|
1073
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1074
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
1075
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
1076
|
+
'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1077
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1078
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1079
|
+
'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1080
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1081
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1082
|
+
),
|
|
1083
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1084
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1085
|
+
'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1086
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1087
|
+
});
|
|
1088
|
+
const GovernanceCachedMetrics = IDL.Record({
|
|
1089
|
+
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1090
|
+
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1091
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1092
|
+
),
|
|
1093
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1094
|
+
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
1095
|
+
'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1096
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1097
|
+
),
|
|
1098
|
+
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
1099
|
+
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1100
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1101
|
+
),
|
|
1102
|
+
'ect_neuron_count' : IDL.Nat64,
|
|
1103
|
+
'total_supply_icp' : IDL.Nat64,
|
|
1104
|
+
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
1105
|
+
'dissolved_neurons_count' : IDL.Nat64,
|
|
1106
|
+
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1107
|
+
'total_staked_e8s_seed' : IDL.Nat64,
|
|
1108
|
+
'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
|
|
1109
|
+
'total_staked_e8s' : IDL.Nat64,
|
|
1110
|
+
'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
1111
|
+
NeuronSubsetMetrics
|
|
1112
|
+
),
|
|
1113
|
+
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1114
|
+
'total_locked_e8s' : IDL.Nat64,
|
|
1115
|
+
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1116
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1117
|
+
IDL.Nat64
|
|
1118
|
+
),
|
|
1119
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1120
|
+
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1121
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1122
|
+
),
|
|
1123
|
+
'spawning_neurons_count' : IDL.Nat64,
|
|
1124
|
+
'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
1125
|
+
NeuronSubsetMetrics
|
|
1126
|
+
),
|
|
1127
|
+
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1128
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1129
|
+
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1130
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1131
|
+
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1132
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1133
|
+
),
|
|
1134
|
+
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
1135
|
+
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1136
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1137
|
+
),
|
|
1138
|
+
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1139
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1140
|
+
),
|
|
1141
|
+
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1142
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1143
|
+
),
|
|
1144
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
1145
|
+
NeuronSubsetMetrics
|
|
1146
|
+
),
|
|
1147
|
+
'dissolving_neurons_count' : IDL.Nat64,
|
|
1148
|
+
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1149
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1150
|
+
),
|
|
1151
|
+
'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
|
|
1152
|
+
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
1153
|
+
'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1154
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1155
|
+
),
|
|
1156
|
+
'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
|
|
1157
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
1158
|
+
'seed_neuron_count' : IDL.Nat64,
|
|
1159
|
+
});
|
|
1160
|
+
const VotingPowerEconomics = IDL.Record({
|
|
1161
|
+
'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
1162
|
+
'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
|
|
1163
|
+
'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
1164
|
+
});
|
|
1165
|
+
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
|
|
1166
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
1167
|
+
const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
|
|
1168
|
+
'contribution_threshold_xdr' : IDL.Opt(Decimal),
|
|
1169
|
+
'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
1170
|
+
'full_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
1171
|
+
});
|
|
1172
|
+
const NeuronsFundEconomics = IDL.Record({
|
|
1173
|
+
'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
1174
|
+
'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
|
|
1175
|
+
NeuronsFundMatchedFundingCurveCoefficients
|
|
1176
|
+
),
|
|
1177
|
+
'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
|
|
1178
|
+
'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
913
1179
|
});
|
|
914
|
-
const
|
|
915
|
-
'
|
|
916
|
-
'
|
|
1180
|
+
const NetworkEconomics = IDL.Record({
|
|
1181
|
+
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
1182
|
+
'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
|
|
1183
|
+
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
1184
|
+
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
1185
|
+
'reject_cost_e8s' : IDL.Nat64,
|
|
1186
|
+
'transaction_fee_e8s' : IDL.Nat64,
|
|
1187
|
+
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
1188
|
+
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
1189
|
+
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
1190
|
+
'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
|
|
917
1191
|
});
|
|
918
|
-
const
|
|
919
|
-
'
|
|
920
|
-
'
|
|
1192
|
+
const RestoreAgingNeuronGroup = IDL.Record({
|
|
1193
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
1194
|
+
'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
1195
|
+
'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
1196
|
+
'group_type' : IDL.Int32,
|
|
921
1197
|
});
|
|
922
|
-
const
|
|
923
|
-
'
|
|
924
|
-
'
|
|
925
|
-
'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
1198
|
+
const RestoreAgingSummary = IDL.Record({
|
|
1199
|
+
'groups' : IDL.Vec(RestoreAgingNeuronGroup),
|
|
1200
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
926
1201
|
});
|
|
927
|
-
const
|
|
928
|
-
|
|
929
|
-
'
|
|
1202
|
+
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
1203
|
+
const RewardEvent = IDL.Record({
|
|
1204
|
+
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
1205
|
+
'day_after_genesis' : IDL.Nat64,
|
|
1206
|
+
'actual_timestamp_seconds' : IDL.Nat64,
|
|
1207
|
+
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
1208
|
+
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1209
|
+
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
1210
|
+
'settled_proposals' : IDL.Vec(ProposalId),
|
|
930
1211
|
});
|
|
931
|
-
const
|
|
932
|
-
'
|
|
933
|
-
'
|
|
1212
|
+
const NeuronStakeTransfer = IDL.Record({
|
|
1213
|
+
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
1214
|
+
'neuron_stake_e8s' : IDL.Nat64,
|
|
1215
|
+
'from' : IDL.Opt(IDL.Principal),
|
|
1216
|
+
'memo' : IDL.Nat64,
|
|
1217
|
+
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
1218
|
+
'transfer_timestamp' : IDL.Nat64,
|
|
1219
|
+
'block_height' : IDL.Nat64,
|
|
934
1220
|
});
|
|
935
|
-
const
|
|
1221
|
+
const GovernanceError = IDL.Record({
|
|
1222
|
+
'error_message' : IDL.Text,
|
|
1223
|
+
'error_type' : IDL.Int32,
|
|
1224
|
+
});
|
|
1225
|
+
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
1226
|
+
const SwapParticipationLimits = IDL.Record({
|
|
1227
|
+
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1228
|
+
'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1229
|
+
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1230
|
+
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1231
|
+
});
|
|
1232
|
+
const NeuronsFundNeuronPortion = IDL.Record({
|
|
936
1233
|
'controller' : IDL.Opt(IDL.Principal),
|
|
937
|
-
'hotkeys' : IDL.
|
|
1234
|
+
'hotkeys' : IDL.Vec(IDL.Principal),
|
|
938
1235
|
'is_capped' : IDL.Opt(IDL.Bool),
|
|
939
|
-
'
|
|
1236
|
+
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1237
|
+
'nns_neuron_id' : IDL.Opt(NeuronId),
|
|
940
1238
|
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
941
1239
|
});
|
|
942
|
-
const
|
|
943
|
-
'neurons_fund_neuron_portions' : IDL.Vec(
|
|
1240
|
+
const NeuronsFundSnapshot = IDL.Record({
|
|
1241
|
+
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
|
|
944
1242
|
});
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
'result' : IDL.Opt(Result_10),
|
|
1243
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
1244
|
+
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
948
1245
|
});
|
|
949
|
-
const
|
|
950
|
-
'
|
|
1246
|
+
const NeuronsFundParticipation = IDL.Record({
|
|
1247
|
+
'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1248
|
+
'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1249
|
+
'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1250
|
+
'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
|
|
1251
|
+
'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1252
|
+
'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
|
|
1253
|
+
'ideal_matched_participation_function' : IDL.Opt(
|
|
1254
|
+
IdealMatchedParticipationFunction
|
|
1255
|
+
),
|
|
1256
|
+
'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
951
1257
|
});
|
|
952
|
-
|
|
953
|
-
'
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
'
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
'
|
|
964
|
-
'
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
'
|
|
972
|
-
'
|
|
973
|
-
'
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
'
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
'
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
'
|
|
987
|
-
|
|
988
|
-
[GetNeuronsFundAuditInfoResponse],
|
|
989
|
-
[],
|
|
990
|
-
),
|
|
991
|
-
'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
|
|
992
|
-
'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
|
|
993
|
-
'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
|
|
994
|
-
'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
|
|
995
|
-
'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
|
|
996
|
-
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
|
|
997
|
-
'list_node_provider_rewards' : IDL.Func(
|
|
998
|
-
[ListNodeProviderRewardsRequest],
|
|
999
|
-
[ListNodeProviderRewardsResponse],
|
|
1000
|
-
[],
|
|
1001
|
-
),
|
|
1002
|
-
'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
|
|
1003
|
-
'list_proposals' : IDL.Func(
|
|
1004
|
-
[ListProposalInfo],
|
|
1005
|
-
[ListProposalInfoResponse],
|
|
1006
|
-
[],
|
|
1007
|
-
),
|
|
1008
|
-
'manage_neuron' : IDL.Func(
|
|
1009
|
-
[ManageNeuronRequest],
|
|
1010
|
-
[ManageNeuronResponse],
|
|
1011
|
-
[],
|
|
1012
|
-
),
|
|
1013
|
-
'settle_community_fund_participation' : IDL.Func(
|
|
1014
|
-
[SettleCommunityFundParticipation],
|
|
1015
|
-
[Result],
|
|
1016
|
-
[],
|
|
1017
|
-
),
|
|
1018
|
-
'settle_neurons_fund_participation' : IDL.Func(
|
|
1019
|
-
[SettleNeuronsFundParticipationRequest],
|
|
1020
|
-
[SettleNeuronsFundParticipationResponse],
|
|
1021
|
-
[],
|
|
1022
|
-
),
|
|
1023
|
-
'simulate_manage_neuron' : IDL.Func(
|
|
1024
|
-
[ManageNeuronRequest],
|
|
1025
|
-
[ManageNeuronResponse],
|
|
1026
|
-
[],
|
|
1027
|
-
),
|
|
1028
|
-
'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
|
|
1029
|
-
'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
|
|
1258
|
+
const NeuronsFundData = IDL.Record({
|
|
1259
|
+
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
1260
|
+
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
1261
|
+
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
1262
|
+
});
|
|
1263
|
+
const CanisterStatusResultV2 = IDL.Record({
|
|
1264
|
+
'status' : IDL.Opt(IDL.Int32),
|
|
1265
|
+
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
1266
|
+
'controllers' : IDL.Vec(IDL.Principal),
|
|
1267
|
+
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
1268
|
+
'cycles' : IDL.Opt(IDL.Nat64),
|
|
1269
|
+
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
1270
|
+
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
1271
|
+
});
|
|
1272
|
+
const CanisterSummary = IDL.Record({
|
|
1273
|
+
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
1274
|
+
'canister_id' : IDL.Opt(IDL.Principal),
|
|
1275
|
+
});
|
|
1276
|
+
const SwapBackgroundInformation = IDL.Record({
|
|
1277
|
+
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1278
|
+
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
1279
|
+
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
1280
|
+
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1281
|
+
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1282
|
+
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1283
|
+
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1284
|
+
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
1285
|
+
});
|
|
1286
|
+
const DerivedProposalInformation = IDL.Record({
|
|
1287
|
+
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
1288
|
+
});
|
|
1289
|
+
const Tally = IDL.Record({
|
|
1290
|
+
'no' : IDL.Nat64,
|
|
1291
|
+
'yes' : IDL.Nat64,
|
|
1292
|
+
'total' : IDL.Nat64,
|
|
1293
|
+
'timestamp_seconds' : IDL.Nat64,
|
|
1030
1294
|
});
|
|
1031
|
-
};
|
|
1032
|
-
export const init = ({ IDL }) => {
|
|
1033
|
-
const Proposal = IDL.Rec();
|
|
1034
|
-
const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
1035
|
-
const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
|
|
1036
1295
|
const KnownNeuronData = IDL.Record({
|
|
1037
1296
|
'name' : IDL.Text,
|
|
1038
1297
|
'description' : IDL.Opt(IDL.Text),
|
|
1298
|
+
'links' : IDL.Opt(IDL.Vec(IDL.Text)),
|
|
1039
1299
|
});
|
|
1040
1300
|
const KnownNeuron = IDL.Record({
|
|
1041
1301
|
'id' : IDL.Opt(NeuronId),
|
|
@@ -1051,12 +1311,14 @@ export const init = ({ IDL }) => {
|
|
|
1051
1311
|
'new_controller' : IDL.Opt(IDL.Principal),
|
|
1052
1312
|
'nonce' : IDL.Opt(IDL.Nat64),
|
|
1053
1313
|
});
|
|
1054
|
-
const Split = IDL.Record({
|
|
1314
|
+
const Split = IDL.Record({
|
|
1315
|
+
'memo' : IDL.Opt(IDL.Nat64),
|
|
1316
|
+
'amount_e8s' : IDL.Nat64,
|
|
1317
|
+
});
|
|
1055
1318
|
const Follow = IDL.Record({
|
|
1056
1319
|
'topic' : IDL.Int32,
|
|
1057
1320
|
'followees' : IDL.Vec(NeuronId),
|
|
1058
1321
|
});
|
|
1059
|
-
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
1060
1322
|
const Account = IDL.Record({
|
|
1061
1323
|
'owner' : IDL.Opt(IDL.Principal),
|
|
1062
1324
|
'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -1104,7 +1366,6 @@ export const init = ({ IDL }) => {
|
|
|
1104
1366
|
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
1105
1367
|
});
|
|
1106
1368
|
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
1107
|
-
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
1108
1369
|
const RegisterVote = IDL.Record({
|
|
1109
1370
|
'vote' : IDL.Int32,
|
|
1110
1371
|
'proposal' : IDL.Opt(ProposalId),
|
|
@@ -1180,11 +1441,11 @@ export const init = ({ IDL }) => {
|
|
|
1180
1441
|
'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1181
1442
|
'install_mode' : IDL.Opt(IDL.Int32),
|
|
1182
1443
|
});
|
|
1444
|
+
const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
|
|
1183
1445
|
const StopOrStartCanister = IDL.Record({
|
|
1184
1446
|
'action' : IDL.Opt(IDL.Int32),
|
|
1185
1447
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
1186
1448
|
});
|
|
1187
|
-
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
|
|
1188
1449
|
const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
|
|
1189
1450
|
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
1190
1451
|
const VotingRewardParameters = IDL.Record({
|
|
@@ -1256,36 +1517,19 @@ export const init = ({ IDL }) => {
|
|
|
1256
1517
|
});
|
|
1257
1518
|
const CreateServiceNervousSystem = IDL.Record({
|
|
1258
1519
|
'url' : IDL.Opt(IDL.Text),
|
|
1259
|
-
'governance_parameters' : IDL.Opt(GovernanceParameters),
|
|
1260
|
-
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
1261
|
-
'logo' : IDL.Opt(Image),
|
|
1262
|
-
'name' : IDL.Opt(IDL.Text),
|
|
1263
|
-
'ledger_parameters' : IDL.Opt(LedgerParameters),
|
|
1264
|
-
'description' : IDL.Opt(IDL.Text),
|
|
1265
|
-
'dapp_canisters' : IDL.Vec(Canister),
|
|
1266
|
-
'swap_parameters' : IDL.Opt(SwapParameters),
|
|
1267
|
-
'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
|
|
1268
|
-
});
|
|
1269
|
-
const ExecuteNnsFunction = IDL.Record({
|
|
1270
|
-
'nns_function' : IDL.Int32,
|
|
1271
|
-
'payload' : IDL.Vec(IDL.Nat8),
|
|
1272
|
-
});
|
|
1273
|
-
const NodeProvider = IDL.Record({
|
|
1274
|
-
'id' : IDL.Opt(IDL.Principal),
|
|
1275
|
-
'reward_account' : IDL.Opt(AccountIdentifier),
|
|
1276
|
-
});
|
|
1277
|
-
const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
|
|
1278
|
-
const RewardToAccount = IDL.Record({
|
|
1279
|
-
'to_account' : IDL.Opt(AccountIdentifier),
|
|
1280
|
-
});
|
|
1281
|
-
const RewardMode = IDL.Variant({
|
|
1282
|
-
'RewardToNeuron' : RewardToNeuron,
|
|
1283
|
-
'RewardToAccount' : RewardToAccount,
|
|
1520
|
+
'governance_parameters' : IDL.Opt(GovernanceParameters),
|
|
1521
|
+
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
1522
|
+
'logo' : IDL.Opt(Image),
|
|
1523
|
+
'name' : IDL.Opt(IDL.Text),
|
|
1524
|
+
'ledger_parameters' : IDL.Opt(LedgerParameters),
|
|
1525
|
+
'description' : IDL.Opt(IDL.Text),
|
|
1526
|
+
'dapp_canisters' : IDL.Vec(Canister),
|
|
1527
|
+
'swap_parameters' : IDL.Opt(SwapParameters),
|
|
1528
|
+
'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
|
|
1284
1529
|
});
|
|
1285
|
-
const
|
|
1286
|
-
'
|
|
1287
|
-
'
|
|
1288
|
-
'amount_e8s' : IDL.Nat64,
|
|
1530
|
+
const ExecuteNnsFunction = IDL.Record({
|
|
1531
|
+
'nns_function' : IDL.Int32,
|
|
1532
|
+
'payload' : IDL.Vec(IDL.Nat8),
|
|
1289
1533
|
});
|
|
1290
1534
|
const NeuronBasketConstructionParameters_1 = IDL.Record({
|
|
1291
1535
|
'dissolve_delay_interval_seconds' : IDL.Nat64,
|
|
@@ -1329,37 +1573,6 @@ export const init = ({ IDL }) => {
|
|
|
1329
1573
|
'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
|
|
1330
1574
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1331
1575
|
});
|
|
1332
|
-
const VotingPowerEconomics = IDL.Record({
|
|
1333
|
-
'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
1334
|
-
'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
|
|
1335
|
-
'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
1336
|
-
});
|
|
1337
|
-
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
1338
|
-
const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
|
|
1339
|
-
'contribution_threshold_xdr' : IDL.Opt(Decimal),
|
|
1340
|
-
'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
1341
|
-
'full_participation_milestone_xdr' : IDL.Opt(Decimal),
|
|
1342
|
-
});
|
|
1343
|
-
const NeuronsFundEconomics = IDL.Record({
|
|
1344
|
-
'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
1345
|
-
'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
|
|
1346
|
-
NeuronsFundMatchedFundingCurveCoefficients
|
|
1347
|
-
),
|
|
1348
|
-
'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
|
|
1349
|
-
'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
|
|
1350
|
-
});
|
|
1351
|
-
const NetworkEconomics = IDL.Record({
|
|
1352
|
-
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
1353
|
-
'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
|
|
1354
|
-
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
1355
|
-
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
1356
|
-
'reject_cost_e8s' : IDL.Nat64,
|
|
1357
|
-
'transaction_fee_e8s' : IDL.Nat64,
|
|
1358
|
-
'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
|
|
1359
|
-
'minimum_icp_xdr_rate' : IDL.Nat64,
|
|
1360
|
-
'maximum_node_provider_rewards_e8s' : IDL.Nat64,
|
|
1361
|
-
'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
|
|
1362
|
-
});
|
|
1363
1576
|
const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
|
|
1364
1577
|
const Change = IDL.Variant({
|
|
1365
1578
|
'ToRemove' : NodeProvider,
|
|
@@ -1373,6 +1586,7 @@ export const init = ({ IDL }) => {
|
|
|
1373
1586
|
'ManageNeuron' : ManageNeuron,
|
|
1374
1587
|
'UpdateCanisterSettings' : UpdateCanisterSettings,
|
|
1375
1588
|
'InstallCode' : InstallCode,
|
|
1589
|
+
'DeregisterKnownNeuron' : DeregisterKnownNeuron,
|
|
1376
1590
|
'StopOrStartCanister' : StopOrStartCanister,
|
|
1377
1591
|
'CreateServiceNervousSystem' : CreateServiceNervousSystem,
|
|
1378
1592
|
'ExecuteNnsFunction' : ExecuteNnsFunction,
|
|
@@ -1394,218 +1608,6 @@ export const init = ({ IDL }) => {
|
|
|
1394
1608
|
'summary' : IDL.Text,
|
|
1395
1609
|
})
|
|
1396
1610
|
);
|
|
1397
|
-
const MakingSnsProposal = IDL.Record({
|
|
1398
|
-
'proposal' : IDL.Opt(Proposal),
|
|
1399
|
-
'caller' : IDL.Opt(IDL.Principal),
|
|
1400
|
-
'proposer_id' : IDL.Opt(NeuronId),
|
|
1401
|
-
});
|
|
1402
|
-
const XdrConversionRate = IDL.Record({
|
|
1403
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1404
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1405
|
-
});
|
|
1406
|
-
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1407
|
-
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1408
|
-
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
1409
|
-
'node_providers' : IDL.Vec(NodeProvider),
|
|
1410
|
-
'timestamp' : IDL.Nat64,
|
|
1411
|
-
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1412
|
-
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1413
|
-
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
1414
|
-
});
|
|
1415
|
-
const NeuronSubsetMetrics = IDL.Record({
|
|
1416
|
-
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1417
|
-
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1418
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1419
|
-
),
|
|
1420
|
-
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1421
|
-
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
1422
|
-
'count' : IDL.Opt(IDL.Nat64),
|
|
1423
|
-
'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1424
|
-
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1425
|
-
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1426
|
-
'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1427
|
-
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1428
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1429
|
-
),
|
|
1430
|
-
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1431
|
-
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1432
|
-
'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1433
|
-
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1434
|
-
});
|
|
1435
|
-
const GovernanceCachedMetrics = IDL.Record({
|
|
1436
|
-
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1437
|
-
'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1438
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1439
|
-
),
|
|
1440
|
-
'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1441
|
-
'garbage_collectable_neurons_count' : IDL.Nat64,
|
|
1442
|
-
'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1443
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1444
|
-
),
|
|
1445
|
-
'neurons_with_invalid_stake_count' : IDL.Nat64,
|
|
1446
|
-
'not_dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1447
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1448
|
-
),
|
|
1449
|
-
'ect_neuron_count' : IDL.Nat64,
|
|
1450
|
-
'total_supply_icp' : IDL.Nat64,
|
|
1451
|
-
'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
|
|
1452
|
-
'dissolved_neurons_count' : IDL.Nat64,
|
|
1453
|
-
'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1454
|
-
'total_staked_e8s_seed' : IDL.Nat64,
|
|
1455
|
-
'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
|
|
1456
|
-
'total_staked_e8s' : IDL.Nat64,
|
|
1457
|
-
'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
1458
|
-
NeuronSubsetMetrics
|
|
1459
|
-
),
|
|
1460
|
-
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1461
|
-
'total_locked_e8s' : IDL.Nat64,
|
|
1462
|
-
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1463
|
-
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1464
|
-
IDL.Nat64
|
|
1465
|
-
),
|
|
1466
|
-
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1467
|
-
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1468
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1469
|
-
),
|
|
1470
|
-
'spawning_neurons_count' : IDL.Nat64,
|
|
1471
|
-
'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
|
|
1472
|
-
NeuronSubsetMetrics
|
|
1473
|
-
),
|
|
1474
|
-
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1475
|
-
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1476
|
-
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1477
|
-
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1478
|
-
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1479
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1480
|
-
),
|
|
1481
|
-
'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
|
|
1482
|
-
'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1483
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1484
|
-
),
|
|
1485
|
-
'dissolving_neurons_count_buckets' : IDL.Vec(
|
|
1486
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1487
|
-
),
|
|
1488
|
-
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1489
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1490
|
-
),
|
|
1491
|
-
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
1492
|
-
NeuronSubsetMetrics
|
|
1493
|
-
),
|
|
1494
|
-
'dissolving_neurons_count' : IDL.Nat64,
|
|
1495
|
-
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1496
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1497
|
-
),
|
|
1498
|
-
'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
|
|
1499
|
-
'community_fund_total_staked_e8s' : IDL.Nat64,
|
|
1500
|
-
'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1501
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1502
|
-
),
|
|
1503
|
-
'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
|
|
1504
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
1505
|
-
'seed_neuron_count' : IDL.Nat64,
|
|
1506
|
-
});
|
|
1507
|
-
const RestoreAgingNeuronGroup = IDL.Record({
|
|
1508
|
-
'count' : IDL.Opt(IDL.Nat64),
|
|
1509
|
-
'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
1510
|
-
'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
1511
|
-
'group_type' : IDL.Int32,
|
|
1512
|
-
});
|
|
1513
|
-
const RestoreAgingSummary = IDL.Record({
|
|
1514
|
-
'groups' : IDL.Vec(RestoreAgingNeuronGroup),
|
|
1515
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1516
|
-
});
|
|
1517
|
-
const RewardEvent = IDL.Record({
|
|
1518
|
-
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
1519
|
-
'day_after_genesis' : IDL.Nat64,
|
|
1520
|
-
'actual_timestamp_seconds' : IDL.Nat64,
|
|
1521
|
-
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
1522
|
-
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1523
|
-
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
1524
|
-
'settled_proposals' : IDL.Vec(ProposalId),
|
|
1525
|
-
});
|
|
1526
|
-
const NeuronStakeTransfer = IDL.Record({
|
|
1527
|
-
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
1528
|
-
'neuron_stake_e8s' : IDL.Nat64,
|
|
1529
|
-
'from' : IDL.Opt(IDL.Principal),
|
|
1530
|
-
'memo' : IDL.Nat64,
|
|
1531
|
-
'from_subaccount' : IDL.Vec(IDL.Nat8),
|
|
1532
|
-
'transfer_timestamp' : IDL.Nat64,
|
|
1533
|
-
'block_height' : IDL.Nat64,
|
|
1534
|
-
});
|
|
1535
|
-
const GovernanceError = IDL.Record({
|
|
1536
|
-
'error_message' : IDL.Text,
|
|
1537
|
-
'error_type' : IDL.Int32,
|
|
1538
|
-
});
|
|
1539
|
-
const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
|
|
1540
|
-
const SwapParticipationLimits = IDL.Record({
|
|
1541
|
-
'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1542
|
-
'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1543
|
-
'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1544
|
-
'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1545
|
-
});
|
|
1546
|
-
const NeuronsFundNeuronPortion = IDL.Record({
|
|
1547
|
-
'controller' : IDL.Opt(IDL.Principal),
|
|
1548
|
-
'hotkeys' : IDL.Vec(IDL.Principal),
|
|
1549
|
-
'is_capped' : IDL.Opt(IDL.Bool),
|
|
1550
|
-
'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1551
|
-
'nns_neuron_id' : IDL.Opt(NeuronId),
|
|
1552
|
-
'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1553
|
-
});
|
|
1554
|
-
const NeuronsFundSnapshot = IDL.Record({
|
|
1555
|
-
'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
|
|
1556
|
-
});
|
|
1557
|
-
const IdealMatchedParticipationFunction = IDL.Record({
|
|
1558
|
-
'serialized_representation' : IDL.Opt(IDL.Text),
|
|
1559
|
-
});
|
|
1560
|
-
const NeuronsFundParticipation = IDL.Record({
|
|
1561
|
-
'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1562
|
-
'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1563
|
-
'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1564
|
-
'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
|
|
1565
|
-
'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1566
|
-
'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
|
|
1567
|
-
'ideal_matched_participation_function' : IDL.Opt(
|
|
1568
|
-
IdealMatchedParticipationFunction
|
|
1569
|
-
),
|
|
1570
|
-
'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
|
|
1571
|
-
});
|
|
1572
|
-
const NeuronsFundData = IDL.Record({
|
|
1573
|
-
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
1574
|
-
'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
1575
|
-
'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
|
|
1576
|
-
});
|
|
1577
|
-
const CanisterStatusResultV2 = IDL.Record({
|
|
1578
|
-
'status' : IDL.Opt(IDL.Int32),
|
|
1579
|
-
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
1580
|
-
'controllers' : IDL.Vec(IDL.Principal),
|
|
1581
|
-
'memory_size' : IDL.Opt(IDL.Nat64),
|
|
1582
|
-
'cycles' : IDL.Opt(IDL.Nat64),
|
|
1583
|
-
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
|
|
1584
|
-
'module_hash' : IDL.Vec(IDL.Nat8),
|
|
1585
|
-
});
|
|
1586
|
-
const CanisterSummary = IDL.Record({
|
|
1587
|
-
'status' : IDL.Opt(CanisterStatusResultV2),
|
|
1588
|
-
'canister_id' : IDL.Opt(IDL.Principal),
|
|
1589
|
-
});
|
|
1590
|
-
const SwapBackgroundInformation = IDL.Record({
|
|
1591
|
-
'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1592
|
-
'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
1593
|
-
'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
1594
|
-
'ledger_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1595
|
-
'swap_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1596
|
-
'governance_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1597
|
-
'root_canister_summary' : IDL.Opt(CanisterSummary),
|
|
1598
|
-
'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
|
|
1599
|
-
});
|
|
1600
|
-
const DerivedProposalInformation = IDL.Record({
|
|
1601
|
-
'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
|
|
1602
|
-
});
|
|
1603
|
-
const Tally = IDL.Record({
|
|
1604
|
-
'no' : IDL.Nat64,
|
|
1605
|
-
'yes' : IDL.Nat64,
|
|
1606
|
-
'total' : IDL.Nat64,
|
|
1607
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
1608
|
-
});
|
|
1609
1611
|
const WaitForQuietState = IDL.Record({
|
|
1610
1612
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
1611
1613
|
});
|
|
@@ -1694,7 +1696,6 @@ export const init = ({ IDL }) => {
|
|
|
1694
1696
|
});
|
|
1695
1697
|
const Governance = IDL.Record({
|
|
1696
1698
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1697
|
-
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1698
1699
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1699
1700
|
MonthlyNodeProviderRewards
|
|
1700
1701
|
),
|