@dfinity/sns 6.0.1 → 7.0.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 +1 -1
- package/dist/index.d.ts +54 -19
- package/dist/index.js +1 -6
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -8
- package/dist/candid/sns_governance.certified.idl.d.ts +0 -2
- package/dist/candid/sns_governance.certified.idl.js +0 -1432
- package/dist/candid/sns_governance.d.ts +0 -933
- package/dist/candid/sns_governance.did +0 -1069
- package/dist/candid/sns_governance.idl.d.ts +0 -2
- package/dist/candid/sns_governance.idl.js +0 -1440
- package/dist/candid/sns_governance_test.certified.idl.d.ts +0 -2
- package/dist/candid/sns_governance_test.certified.idl.js +0 -1460
- package/dist/candid/sns_governance_test.d.ts +0 -962
- package/dist/candid/sns_governance_test.did +0 -1094
- package/dist/candid/sns_governance_test.idl.d.ts +0 -2
- package/dist/candid/sns_governance_test.idl.js +0 -1468
- package/dist/candid/sns_root.certified.idl.d.ts +0 -2
- package/dist/candid/sns_root.certified.idl.js +0 -251
- package/dist/candid/sns_root.d.ts +0 -212
- package/dist/candid/sns_root.did +0 -231
- package/dist/candid/sns_root.idl.d.ts +0 -2
- package/dist/candid/sns_root.idl.js +0 -251
- package/dist/candid/sns_swap.certified.idl.d.ts +0 -2
- package/dist/candid/sns_swap.certified.idl.js +0 -499
- package/dist/candid/sns_swap.d.ts +0 -438
- package/dist/candid/sns_swap.did +0 -505
- package/dist/candid/sns_swap.idl.d.ts +0 -2
- package/dist/candid/sns_swap.idl.js +0 -507
- package/dist/constants/governance.constants.d.ts +0 -8
- package/dist/converters/governance.converters.d.ts +0 -22
- package/dist/converters/swap.converters.d.ts +0 -3
- package/dist/enums/governance.enums.d.ts +0 -35
- package/dist/enums/swap.enums.d.ts +0 -22
- package/dist/errors/common.errors.d.ts +0 -4
- package/dist/errors/governance.errors.d.ts +0 -2
- package/dist/errors/swap.errors.d.ts +0 -16
- package/dist/governance.canister.d.ts +0 -138
- package/dist/governance_test.canister.d.ts +0 -16
- package/dist/root.canister.d.ts +0 -19
- package/dist/sns.d.ts +0 -21
- package/dist/sns.wrapper.d.ts +0 -160
- package/dist/swap.canister.d.ts +0 -47
- package/dist/types/actions.d.ts +0 -191
- package/dist/types/canister.options.d.ts +0 -5
- package/dist/types/common.d.ts +0 -2
- package/dist/types/governance.params.d.ts +0 -151
- package/dist/types/governance_test.params.d.ts +0 -7
- package/dist/types/swap.params.d.ts +0 -8
- package/dist/utils/error.utils.d.ts +0 -12
- package/dist/utils/governance.utils.d.ts +0 -14
|
@@ -1,1468 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
|
-
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
-
|
|
9
|
-
export const idlFactory = ({ IDL }) => {
|
|
10
|
-
const PreciseValue = IDL.Rec();
|
|
11
|
-
const Timers = IDL.Record({
|
|
12
|
-
last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
13
|
-
last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
14
|
-
requires_periodic_tasks: IDL.Opt(IDL.Bool),
|
|
15
|
-
});
|
|
16
|
-
const Version = IDL.Record({
|
|
17
|
-
archive_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
18
|
-
root_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
19
|
-
swap_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
20
|
-
ledger_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
21
|
-
governance_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
22
|
-
index_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
23
|
-
});
|
|
24
|
-
const Versions = IDL.Record({ versions: IDL.Vec(Version) });
|
|
25
|
-
const CachedUpgradeSteps = IDL.Record({
|
|
26
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
27
|
-
response_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
28
|
-
requested_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
29
|
-
});
|
|
30
|
-
const Topic = IDL.Variant({
|
|
31
|
-
DappCanisterManagement: IDL.Null,
|
|
32
|
-
DaoCommunitySettings: IDL.Null,
|
|
33
|
-
ApplicationBusinessLogic: IDL.Null,
|
|
34
|
-
CriticalDappOperations: IDL.Null,
|
|
35
|
-
TreasuryAssetManagement: IDL.Null,
|
|
36
|
-
Governance: IDL.Null,
|
|
37
|
-
SnsFrameworkManagement: IDL.Null,
|
|
38
|
-
});
|
|
39
|
-
const GenericNervousSystemFunction = IDL.Record({
|
|
40
|
-
topic: IDL.Opt(Topic),
|
|
41
|
-
validator_canister_id: IDL.Opt(IDL.Principal),
|
|
42
|
-
target_canister_id: IDL.Opt(IDL.Principal),
|
|
43
|
-
validator_method_name: IDL.Opt(IDL.Text),
|
|
44
|
-
target_method_name: IDL.Opt(IDL.Text),
|
|
45
|
-
});
|
|
46
|
-
const FunctionType = IDL.Variant({
|
|
47
|
-
NativeNervousSystemFunction: IDL.Record({}),
|
|
48
|
-
GenericNervousSystemFunction: GenericNervousSystemFunction,
|
|
49
|
-
});
|
|
50
|
-
const NervousSystemFunction = IDL.Record({
|
|
51
|
-
id: IDL.Nat64,
|
|
52
|
-
name: IDL.Text,
|
|
53
|
-
description: IDL.Opt(IDL.Text),
|
|
54
|
-
function_type: IDL.Opt(FunctionType),
|
|
55
|
-
});
|
|
56
|
-
const Subaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
|
|
57
|
-
const Account = IDL.Record({
|
|
58
|
-
owner: IDL.Opt(IDL.Principal),
|
|
59
|
-
subaccount: IDL.Opt(Subaccount),
|
|
60
|
-
});
|
|
61
|
-
const TreasuryMetrics = IDL.Record({
|
|
62
|
-
name: IDL.Opt(IDL.Text),
|
|
63
|
-
original_amount_e8s: IDL.Opt(IDL.Nat64),
|
|
64
|
-
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
65
|
-
account: IDL.Opt(Account),
|
|
66
|
-
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
67
|
-
treasury: IDL.Int32,
|
|
68
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
69
|
-
});
|
|
70
|
-
const VotingPowerMetrics = IDL.Record({
|
|
71
|
-
governance_total_potential_voting_power: IDL.Opt(IDL.Nat64),
|
|
72
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
73
|
-
});
|
|
74
|
-
const GovernanceCachedMetrics = IDL.Record({
|
|
75
|
-
treasury_metrics: IDL.Vec(TreasuryMetrics),
|
|
76
|
-
not_dissolving_neurons_e8s_buckets: IDL.Vec(
|
|
77
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64),
|
|
78
|
-
),
|
|
79
|
-
garbage_collectable_neurons_count: IDL.Nat64,
|
|
80
|
-
neurons_with_invalid_stake_count: IDL.Nat64,
|
|
81
|
-
not_dissolving_neurons_count_buckets: IDL.Vec(
|
|
82
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
83
|
-
),
|
|
84
|
-
neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
|
|
85
|
-
dissolved_neurons_count: IDL.Nat64,
|
|
86
|
-
total_staked_e8s: IDL.Nat64,
|
|
87
|
-
total_supply_governance_tokens: IDL.Nat64,
|
|
88
|
-
voting_power_metrics: IDL.Opt(VotingPowerMetrics),
|
|
89
|
-
not_dissolving_neurons_count: IDL.Nat64,
|
|
90
|
-
dissolved_neurons_e8s: IDL.Nat64,
|
|
91
|
-
neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
|
|
92
|
-
dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
93
|
-
dissolving_neurons_count: IDL.Nat64,
|
|
94
|
-
dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
|
|
95
|
-
timestamp_seconds: IDL.Nat64,
|
|
96
|
-
});
|
|
97
|
-
const MaturityModulation = IDL.Record({
|
|
98
|
-
current_basis_points: IDL.Opt(IDL.Int32),
|
|
99
|
-
updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
100
|
-
});
|
|
101
|
-
const TargetVersionSet = IDL.Record({
|
|
102
|
-
old_target_version: IDL.Opt(Version),
|
|
103
|
-
new_target_version: IDL.Opt(Version),
|
|
104
|
-
is_advanced_automatically: IDL.Opt(IDL.Bool),
|
|
105
|
-
});
|
|
106
|
-
const UpgradeStepsReset = IDL.Record({
|
|
107
|
-
human_readable: IDL.Opt(IDL.Text),
|
|
108
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
109
|
-
});
|
|
110
|
-
const UpgradeOutcome = IDL.Record({
|
|
111
|
-
status: IDL.Opt(
|
|
112
|
-
IDL.Variant({
|
|
113
|
-
Success: IDL.Record({}),
|
|
114
|
-
Timeout: IDL.Record({}),
|
|
115
|
-
ExternalFailure: IDL.Record({}),
|
|
116
|
-
InvalidState: IDL.Record({ version: IDL.Opt(Version) }),
|
|
117
|
-
}),
|
|
118
|
-
),
|
|
119
|
-
human_readable: IDL.Opt(IDL.Text),
|
|
120
|
-
});
|
|
121
|
-
const ProposalId = IDL.Record({ id: IDL.Nat64 });
|
|
122
|
-
const UpgradeStarted = IDL.Record({
|
|
123
|
-
current_version: IDL.Opt(Version),
|
|
124
|
-
expected_version: IDL.Opt(Version),
|
|
125
|
-
reason: IDL.Opt(
|
|
126
|
-
IDL.Variant({
|
|
127
|
-
UpgradeSnsToNextVersionProposal: ProposalId,
|
|
128
|
-
BehindTargetVersion: IDL.Record({}),
|
|
129
|
-
}),
|
|
130
|
-
),
|
|
131
|
-
});
|
|
132
|
-
const UpgradeStepsRefreshed = IDL.Record({
|
|
133
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
134
|
-
});
|
|
135
|
-
const TargetVersionReset = IDL.Record({
|
|
136
|
-
human_readable: IDL.Opt(IDL.Text),
|
|
137
|
-
old_target_version: IDL.Opt(Version),
|
|
138
|
-
new_target_version: IDL.Opt(Version),
|
|
139
|
-
});
|
|
140
|
-
const UpgradeJournalEntry = IDL.Record({
|
|
141
|
-
event: IDL.Opt(
|
|
142
|
-
IDL.Variant({
|
|
143
|
-
TargetVersionSet: TargetVersionSet,
|
|
144
|
-
UpgradeStepsReset: UpgradeStepsReset,
|
|
145
|
-
UpgradeOutcome: UpgradeOutcome,
|
|
146
|
-
UpgradeStarted: UpgradeStarted,
|
|
147
|
-
UpgradeStepsRefreshed: UpgradeStepsRefreshed,
|
|
148
|
-
TargetVersionReset: TargetVersionReset,
|
|
149
|
-
}),
|
|
150
|
-
),
|
|
151
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
152
|
-
});
|
|
153
|
-
const UpgradeJournal = IDL.Record({
|
|
154
|
-
entries: IDL.Vec(UpgradeJournalEntry),
|
|
155
|
-
});
|
|
156
|
-
const NeuronId = IDL.Record({ id: IDL.Vec(IDL.Nat8) });
|
|
157
|
-
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
158
|
-
const DefaultFollowees = IDL.Record({
|
|
159
|
-
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
160
|
-
});
|
|
161
|
-
const NeuronPermissionList = IDL.Record({
|
|
162
|
-
permissions: IDL.Vec(IDL.Int32),
|
|
163
|
-
});
|
|
164
|
-
const VotingRewardsParameters = IDL.Record({
|
|
165
|
-
final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
166
|
-
initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
167
|
-
reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
168
|
-
round_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
169
|
-
});
|
|
170
|
-
const NervousSystemParameters = IDL.Record({
|
|
171
|
-
default_followees: IDL.Opt(DefaultFollowees),
|
|
172
|
-
max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
173
|
-
max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
174
|
-
max_followees_per_function: IDL.Opt(IDL.Nat64),
|
|
175
|
-
automatically_advance_target_version: IDL.Opt(IDL.Bool),
|
|
176
|
-
neuron_claimer_permissions: IDL.Opt(NeuronPermissionList),
|
|
177
|
-
neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
|
|
178
|
-
max_neuron_age_for_age_bonus: IDL.Opt(IDL.Nat64),
|
|
179
|
-
initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
180
|
-
neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
|
|
181
|
-
reject_cost_e8s: IDL.Opt(IDL.Nat64),
|
|
182
|
-
max_proposals_to_keep_per_action: IDL.Opt(IDL.Nat32),
|
|
183
|
-
wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
|
|
184
|
-
max_number_of_neurons: IDL.Opt(IDL.Nat64),
|
|
185
|
-
transaction_fee_e8s: IDL.Opt(IDL.Nat64),
|
|
186
|
-
max_number_of_proposals_with_ballots: IDL.Opt(IDL.Nat64),
|
|
187
|
-
max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
188
|
-
neuron_grantable_permissions: IDL.Opt(NeuronPermissionList),
|
|
189
|
-
voting_rewards_parameters: IDL.Opt(VotingRewardsParameters),
|
|
190
|
-
maturity_modulation_disabled: IDL.Opt(IDL.Bool),
|
|
191
|
-
max_number_of_principals_per_neuron: IDL.Opt(IDL.Nat64),
|
|
192
|
-
});
|
|
193
|
-
const RewardEvent = IDL.Record({
|
|
194
|
-
rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
|
|
195
|
-
actual_timestamp_seconds: IDL.Nat64,
|
|
196
|
-
end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
197
|
-
total_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
198
|
-
distributed_e8s_equivalent: IDL.Nat64,
|
|
199
|
-
round: IDL.Nat64,
|
|
200
|
-
settled_proposals: IDL.Vec(ProposalId),
|
|
201
|
-
});
|
|
202
|
-
const PendingVersion = IDL.Record({
|
|
203
|
-
mark_failed_at_seconds: IDL.Nat64,
|
|
204
|
-
checking_upgrade_lock: IDL.Nat64,
|
|
205
|
-
proposal_id: IDL.Opt(IDL.Nat64),
|
|
206
|
-
target_version: IDL.Opt(Version),
|
|
207
|
-
});
|
|
208
|
-
const GovernanceError = IDL.Record({
|
|
209
|
-
error_message: IDL.Text,
|
|
210
|
-
error_type: IDL.Int32,
|
|
211
|
-
});
|
|
212
|
-
const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
|
|
213
|
-
const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
|
|
214
|
-
const ValuationFactors = IDL.Record({
|
|
215
|
-
xdrs_per_icp: IDL.Opt(Decimal),
|
|
216
|
-
icps_per_token: IDL.Opt(Decimal),
|
|
217
|
-
tokens: IDL.Opt(Tokens),
|
|
218
|
-
});
|
|
219
|
-
const Valuation = IDL.Record({
|
|
220
|
-
token: IDL.Opt(IDL.Int32),
|
|
221
|
-
account: IDL.Opt(Account),
|
|
222
|
-
valuation_factors: IDL.Opt(ValuationFactors),
|
|
223
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
224
|
-
});
|
|
225
|
-
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
226
|
-
valuation: IDL.Opt(Valuation),
|
|
227
|
-
});
|
|
228
|
-
const SnsVersion = IDL.Record({
|
|
229
|
-
archive_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
230
|
-
root_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
231
|
-
swap_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
232
|
-
ledger_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
233
|
-
governance_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
234
|
-
index_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
235
|
-
});
|
|
236
|
-
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
237
|
-
target_version: IDL.Opt(SnsVersion),
|
|
238
|
-
});
|
|
239
|
-
const ActionAuxiliary = IDL.Variant({
|
|
240
|
-
TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary,
|
|
241
|
-
MintSnsTokens: MintSnsTokensActionAuxiliary,
|
|
242
|
-
AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary,
|
|
243
|
-
});
|
|
244
|
-
const Ballot = IDL.Record({
|
|
245
|
-
vote: IDL.Int32,
|
|
246
|
-
cast_timestamp_seconds: IDL.Nat64,
|
|
247
|
-
voting_power: IDL.Nat64,
|
|
248
|
-
});
|
|
249
|
-
const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
|
|
250
|
-
const Tally = IDL.Record({
|
|
251
|
-
no: IDL.Nat64,
|
|
252
|
-
yes: IDL.Nat64,
|
|
253
|
-
total: IDL.Nat64,
|
|
254
|
-
timestamp_seconds: IDL.Nat64,
|
|
255
|
-
});
|
|
256
|
-
const ManageDappCanisterSettings = IDL.Record({
|
|
257
|
-
freezing_threshold: IDL.Opt(IDL.Nat64),
|
|
258
|
-
wasm_memory_threshold: IDL.Opt(IDL.Nat64),
|
|
259
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
260
|
-
reserved_cycles_limit: IDL.Opt(IDL.Nat64),
|
|
261
|
-
log_visibility: IDL.Opt(IDL.Int32),
|
|
262
|
-
wasm_memory_limit: IDL.Opt(IDL.Nat64),
|
|
263
|
-
memory_allocation: IDL.Opt(IDL.Nat64),
|
|
264
|
-
compute_allocation: IDL.Opt(IDL.Nat64),
|
|
265
|
-
});
|
|
266
|
-
PreciseValue.fill(
|
|
267
|
-
IDL.Variant({
|
|
268
|
-
Int: IDL.Int64,
|
|
269
|
-
Map: IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
|
|
270
|
-
Nat: IDL.Nat64,
|
|
271
|
-
Blob: IDL.Vec(IDL.Nat8),
|
|
272
|
-
Bool: IDL.Bool,
|
|
273
|
-
Text: IDL.Text,
|
|
274
|
-
Array: IDL.Vec(PreciseValue),
|
|
275
|
-
}),
|
|
276
|
-
);
|
|
277
|
-
const ExtensionOperationArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
278
|
-
const ExecuteExtensionOperation = IDL.Record({
|
|
279
|
-
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
280
|
-
operation_name: IDL.Opt(IDL.Text),
|
|
281
|
-
operation_arg: IDL.Opt(ExtensionOperationArg),
|
|
282
|
-
});
|
|
283
|
-
const ChunkedCanisterWasm = IDL.Record({
|
|
284
|
-
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
285
|
-
chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
286
|
-
store_canister_id: IDL.Opt(IDL.Principal),
|
|
287
|
-
});
|
|
288
|
-
const Wasm = IDL.Variant({
|
|
289
|
-
Chunked: ChunkedCanisterWasm,
|
|
290
|
-
Bytes: IDL.Vec(IDL.Nat8),
|
|
291
|
-
});
|
|
292
|
-
const ExtensionUpgradeArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
293
|
-
const UpgradeExtension = IDL.Record({
|
|
294
|
-
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
295
|
-
wasm: IDL.Opt(Wasm),
|
|
296
|
-
canister_upgrade_arg: IDL.Opt(ExtensionUpgradeArg),
|
|
297
|
-
});
|
|
298
|
-
const SetTopicsForCustomProposals = IDL.Record({
|
|
299
|
-
custom_function_id_to_topic: IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
|
|
300
|
-
});
|
|
301
|
-
const ExtensionInit = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
302
|
-
const RegisterExtension = IDL.Record({
|
|
303
|
-
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
304
|
-
extension_init: IDL.Opt(ExtensionInit),
|
|
305
|
-
});
|
|
306
|
-
const RegisterDappCanisters = IDL.Record({
|
|
307
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
308
|
-
});
|
|
309
|
-
const TransferSnsTreasuryFunds = IDL.Record({
|
|
310
|
-
from_treasury: IDL.Int32,
|
|
311
|
-
to_principal: IDL.Opt(IDL.Principal),
|
|
312
|
-
to_subaccount: IDL.Opt(Subaccount),
|
|
313
|
-
memo: IDL.Opt(IDL.Nat64),
|
|
314
|
-
amount_e8s: IDL.Nat64,
|
|
315
|
-
});
|
|
316
|
-
const UpgradeSnsControlledCanister = IDL.Record({
|
|
317
|
-
new_canister_wasm: IDL.Vec(IDL.Nat8),
|
|
318
|
-
mode: IDL.Opt(IDL.Int32),
|
|
319
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
320
|
-
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
321
|
-
canister_upgrade_arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
322
|
-
});
|
|
323
|
-
const DeregisterDappCanisters = IDL.Record({
|
|
324
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
325
|
-
new_controllers: IDL.Vec(IDL.Principal),
|
|
326
|
-
});
|
|
327
|
-
const MintSnsTokens = IDL.Record({
|
|
328
|
-
to_principal: IDL.Opt(IDL.Principal),
|
|
329
|
-
to_subaccount: IDL.Opt(Subaccount),
|
|
330
|
-
memo: IDL.Opt(IDL.Nat64),
|
|
331
|
-
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
332
|
-
});
|
|
333
|
-
const AdvanceSnsTargetVersion = IDL.Record({
|
|
334
|
-
new_target: IDL.Opt(SnsVersion),
|
|
335
|
-
});
|
|
336
|
-
const ManageSnsMetadata = IDL.Record({
|
|
337
|
-
url: IDL.Opt(IDL.Text),
|
|
338
|
-
logo: IDL.Opt(IDL.Text),
|
|
339
|
-
name: IDL.Opt(IDL.Text),
|
|
340
|
-
description: IDL.Opt(IDL.Text),
|
|
341
|
-
});
|
|
342
|
-
const ExecuteGenericNervousSystemFunction = IDL.Record({
|
|
343
|
-
function_id: IDL.Nat64,
|
|
344
|
-
payload: IDL.Vec(IDL.Nat8),
|
|
345
|
-
});
|
|
346
|
-
const ManageLedgerParameters = IDL.Record({
|
|
347
|
-
token_symbol: IDL.Opt(IDL.Text),
|
|
348
|
-
transfer_fee: IDL.Opt(IDL.Nat64),
|
|
349
|
-
token_logo: IDL.Opt(IDL.Text),
|
|
350
|
-
token_name: IDL.Opt(IDL.Text),
|
|
351
|
-
});
|
|
352
|
-
const Motion = IDL.Record({ motion_text: IDL.Text });
|
|
353
|
-
const Action = IDL.Variant({
|
|
354
|
-
ManageNervousSystemParameters: NervousSystemParameters,
|
|
355
|
-
AddGenericNervousSystemFunction: NervousSystemFunction,
|
|
356
|
-
ManageDappCanisterSettings: ManageDappCanisterSettings,
|
|
357
|
-
ExecuteExtensionOperation: ExecuteExtensionOperation,
|
|
358
|
-
UpgradeExtension: UpgradeExtension,
|
|
359
|
-
RemoveGenericNervousSystemFunction: IDL.Nat64,
|
|
360
|
-
SetTopicsForCustomProposals: SetTopicsForCustomProposals,
|
|
361
|
-
RegisterExtension: RegisterExtension,
|
|
362
|
-
UpgradeSnsToNextVersion: IDL.Record({}),
|
|
363
|
-
RegisterDappCanisters: RegisterDappCanisters,
|
|
364
|
-
TransferSnsTreasuryFunds: TransferSnsTreasuryFunds,
|
|
365
|
-
UpgradeSnsControlledCanister: UpgradeSnsControlledCanister,
|
|
366
|
-
DeregisterDappCanisters: DeregisterDappCanisters,
|
|
367
|
-
MintSnsTokens: MintSnsTokens,
|
|
368
|
-
AdvanceSnsTargetVersion: AdvanceSnsTargetVersion,
|
|
369
|
-
Unspecified: IDL.Record({}),
|
|
370
|
-
ManageSnsMetadata: ManageSnsMetadata,
|
|
371
|
-
ExecuteGenericNervousSystemFunction: ExecuteGenericNervousSystemFunction,
|
|
372
|
-
ManageLedgerParameters: ManageLedgerParameters,
|
|
373
|
-
Motion: Motion,
|
|
374
|
-
});
|
|
375
|
-
const Proposal = IDL.Record({
|
|
376
|
-
url: IDL.Text,
|
|
377
|
-
title: IDL.Text,
|
|
378
|
-
action: IDL.Opt(Action),
|
|
379
|
-
summary: IDL.Text,
|
|
380
|
-
});
|
|
381
|
-
const WaitForQuietState = IDL.Record({
|
|
382
|
-
current_deadline_timestamp_seconds: IDL.Nat64,
|
|
383
|
-
});
|
|
384
|
-
const ProposalData = IDL.Record({
|
|
385
|
-
id: IDL.Opt(ProposalId),
|
|
386
|
-
payload_text_rendering: IDL.Opt(IDL.Text),
|
|
387
|
-
topic: IDL.Opt(Topic),
|
|
388
|
-
action: IDL.Nat64,
|
|
389
|
-
failure_reason: IDL.Opt(GovernanceError),
|
|
390
|
-
action_auxiliary: IDL.Opt(ActionAuxiliary),
|
|
391
|
-
ballots: IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
392
|
-
minimum_yes_proportion_of_total: IDL.Opt(Percentage),
|
|
393
|
-
reward_event_round: IDL.Nat64,
|
|
394
|
-
failed_timestamp_seconds: IDL.Nat64,
|
|
395
|
-
reward_event_end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
396
|
-
proposal_creation_timestamp_seconds: IDL.Nat64,
|
|
397
|
-
initial_voting_period_seconds: IDL.Nat64,
|
|
398
|
-
reject_cost_e8s: IDL.Nat64,
|
|
399
|
-
latest_tally: IDL.Opt(Tally),
|
|
400
|
-
wait_for_quiet_deadline_increase_seconds: IDL.Nat64,
|
|
401
|
-
decided_timestamp_seconds: IDL.Nat64,
|
|
402
|
-
proposal: IDL.Opt(Proposal),
|
|
403
|
-
proposer: IDL.Opt(NeuronId),
|
|
404
|
-
wait_for_quiet_state: IDL.Opt(WaitForQuietState),
|
|
405
|
-
minimum_yes_proportion_of_exercised: IDL.Opt(Percentage),
|
|
406
|
-
is_eligible_for_rewards: IDL.Bool,
|
|
407
|
-
executed_timestamp_seconds: IDL.Nat64,
|
|
408
|
-
});
|
|
409
|
-
const Split = IDL.Record({ memo: IDL.Nat64, amount_e8s: IDL.Nat64 });
|
|
410
|
-
const Follow = IDL.Record({
|
|
411
|
-
function_id: IDL.Nat64,
|
|
412
|
-
followees: IDL.Vec(NeuronId),
|
|
413
|
-
});
|
|
414
|
-
const DisburseMaturity = IDL.Record({
|
|
415
|
-
to_account: IDL.Opt(Account),
|
|
416
|
-
percentage_to_disburse: IDL.Nat32,
|
|
417
|
-
});
|
|
418
|
-
const ChangeAutoStakeMaturity = IDL.Record({
|
|
419
|
-
requested_setting_for_auto_stake_maturity: IDL.Bool,
|
|
420
|
-
});
|
|
421
|
-
const IncreaseDissolveDelay = IDL.Record({
|
|
422
|
-
additional_dissolve_delay_seconds: IDL.Nat32,
|
|
423
|
-
});
|
|
424
|
-
const SetDissolveTimestamp = IDL.Record({
|
|
425
|
-
dissolve_timestamp_seconds: IDL.Nat64,
|
|
426
|
-
});
|
|
427
|
-
const Operation = IDL.Variant({
|
|
428
|
-
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
|
|
429
|
-
StopDissolving: IDL.Record({}),
|
|
430
|
-
StartDissolving: IDL.Record({}),
|
|
431
|
-
IncreaseDissolveDelay: IncreaseDissolveDelay,
|
|
432
|
-
SetDissolveTimestamp: SetDissolveTimestamp,
|
|
433
|
-
});
|
|
434
|
-
const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
|
|
435
|
-
const RegisterVote = IDL.Record({
|
|
436
|
-
vote: IDL.Int32,
|
|
437
|
-
proposal: IDL.Opt(ProposalId),
|
|
438
|
-
});
|
|
439
|
-
const Followee = IDL.Record({
|
|
440
|
-
alias: IDL.Opt(IDL.Text),
|
|
441
|
-
neuron_id: IDL.Opt(NeuronId),
|
|
442
|
-
});
|
|
443
|
-
const FolloweesForTopic = IDL.Record({
|
|
444
|
-
topic: IDL.Opt(Topic),
|
|
445
|
-
followees: IDL.Vec(Followee),
|
|
446
|
-
});
|
|
447
|
-
const SetFollowing = IDL.Record({
|
|
448
|
-
topic_following: IDL.Vec(FolloweesForTopic),
|
|
449
|
-
});
|
|
450
|
-
const FinalizeDisburseMaturity = IDL.Record({
|
|
451
|
-
amount_to_be_disbursed_e8s: IDL.Nat64,
|
|
452
|
-
to_account: IDL.Opt(Account),
|
|
453
|
-
});
|
|
454
|
-
const MemoAndController = IDL.Record({
|
|
455
|
-
controller: IDL.Opt(IDL.Principal),
|
|
456
|
-
memo: IDL.Nat64,
|
|
457
|
-
});
|
|
458
|
-
const By = IDL.Variant({
|
|
459
|
-
MemoAndController: MemoAndController,
|
|
460
|
-
NeuronId: IDL.Record({}),
|
|
461
|
-
});
|
|
462
|
-
const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
|
|
463
|
-
const RemoveNeuronPermissions = IDL.Record({
|
|
464
|
-
permissions_to_remove: IDL.Opt(NeuronPermissionList),
|
|
465
|
-
principal_id: IDL.Opt(IDL.Principal),
|
|
466
|
-
});
|
|
467
|
-
const AddNeuronPermissions = IDL.Record({
|
|
468
|
-
permissions_to_add: IDL.Opt(NeuronPermissionList),
|
|
469
|
-
principal_id: IDL.Opt(IDL.Principal),
|
|
470
|
-
});
|
|
471
|
-
const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
|
|
472
|
-
const Amount = IDL.Record({ e8s: IDL.Nat64 });
|
|
473
|
-
const Disburse = IDL.Record({
|
|
474
|
-
to_account: IDL.Opt(Account),
|
|
475
|
-
amount: IDL.Opt(Amount),
|
|
476
|
-
});
|
|
477
|
-
const Command_2 = IDL.Variant({
|
|
478
|
-
Split: Split,
|
|
479
|
-
Follow: Follow,
|
|
480
|
-
DisburseMaturity: DisburseMaturity,
|
|
481
|
-
Configure: Configure,
|
|
482
|
-
RegisterVote: RegisterVote,
|
|
483
|
-
SetFollowing: SetFollowing,
|
|
484
|
-
SyncCommand: IDL.Record({}),
|
|
485
|
-
MakeProposal: Proposal,
|
|
486
|
-
FinalizeDisburseMaturity: FinalizeDisburseMaturity,
|
|
487
|
-
ClaimOrRefreshNeuron: ClaimOrRefresh,
|
|
488
|
-
RemoveNeuronPermissions: RemoveNeuronPermissions,
|
|
489
|
-
AddNeuronPermissions: AddNeuronPermissions,
|
|
490
|
-
MergeMaturity: MergeMaturity,
|
|
491
|
-
Disburse: Disburse,
|
|
492
|
-
});
|
|
493
|
-
const NeuronInFlightCommand = IDL.Record({
|
|
494
|
-
command: IDL.Opt(Command_2),
|
|
495
|
-
timestamp: IDL.Nat64,
|
|
496
|
-
});
|
|
497
|
-
const NeuronPermission = IDL.Record({
|
|
498
|
-
principal: IDL.Opt(IDL.Principal),
|
|
499
|
-
permission_type: IDL.Vec(IDL.Int32),
|
|
500
|
-
});
|
|
501
|
-
const DissolveState = IDL.Variant({
|
|
502
|
-
DissolveDelaySeconds: IDL.Nat64,
|
|
503
|
-
WhenDissolvedTimestampSeconds: IDL.Nat64,
|
|
504
|
-
});
|
|
505
|
-
const DisburseMaturityInProgress = IDL.Record({
|
|
506
|
-
timestamp_of_disbursement_seconds: IDL.Nat64,
|
|
507
|
-
amount_e8s: IDL.Nat64,
|
|
508
|
-
account_to_disburse_to: IDL.Opt(Account),
|
|
509
|
-
finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
510
|
-
});
|
|
511
|
-
const Neuron = IDL.Record({
|
|
512
|
-
id: IDL.Opt(NeuronId),
|
|
513
|
-
staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
514
|
-
permissions: IDL.Vec(NeuronPermission),
|
|
515
|
-
maturity_e8s_equivalent: IDL.Nat64,
|
|
516
|
-
cached_neuron_stake_e8s: IDL.Nat64,
|
|
517
|
-
created_timestamp_seconds: IDL.Nat64,
|
|
518
|
-
topic_followees: IDL.Opt(
|
|
519
|
-
IDL.Record({
|
|
520
|
-
topic_id_to_followees: IDL.Vec(IDL.Tuple(IDL.Int32, FolloweesForTopic)),
|
|
521
|
-
}),
|
|
522
|
-
),
|
|
523
|
-
source_nns_neuron_id: IDL.Opt(IDL.Nat64),
|
|
524
|
-
auto_stake_maturity: IDL.Opt(IDL.Bool),
|
|
525
|
-
aging_since_timestamp_seconds: IDL.Nat64,
|
|
526
|
-
dissolve_state: IDL.Opt(DissolveState),
|
|
527
|
-
voting_power_percentage_multiplier: IDL.Nat64,
|
|
528
|
-
vesting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
529
|
-
disburse_maturity_in_progress: IDL.Vec(DisburseMaturityInProgress),
|
|
530
|
-
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
531
|
-
neuron_fees_e8s: IDL.Nat64,
|
|
532
|
-
});
|
|
533
|
-
const Governance = IDL.Record({
|
|
534
|
-
root_canister_id: IDL.Opt(IDL.Principal),
|
|
535
|
-
timers: IDL.Opt(Timers),
|
|
536
|
-
cached_upgrade_steps: IDL.Opt(CachedUpgradeSteps),
|
|
537
|
-
id_to_nervous_system_functions: IDL.Vec(
|
|
538
|
-
IDL.Tuple(IDL.Nat64, NervousSystemFunction),
|
|
539
|
-
),
|
|
540
|
-
metrics: IDL.Opt(GovernanceCachedMetrics),
|
|
541
|
-
maturity_modulation: IDL.Opt(MaturityModulation),
|
|
542
|
-
upgrade_journal: IDL.Opt(UpgradeJournal),
|
|
543
|
-
mode: IDL.Int32,
|
|
544
|
-
parameters: IDL.Opt(NervousSystemParameters),
|
|
545
|
-
is_finalizing_disburse_maturity: IDL.Opt(IDL.Bool),
|
|
546
|
-
deployed_version: IDL.Opt(Version),
|
|
547
|
-
sns_initialization_parameters: IDL.Text,
|
|
548
|
-
latest_reward_event: IDL.Opt(RewardEvent),
|
|
549
|
-
pending_version: IDL.Opt(PendingVersion),
|
|
550
|
-
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
551
|
-
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
552
|
-
proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
553
|
-
in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
554
|
-
sns_metadata: IDL.Opt(ManageSnsMetadata),
|
|
555
|
-
neurons: IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
556
|
-
target_version: IDL.Opt(Version),
|
|
557
|
-
genesis_timestamp_seconds: IDL.Nat64,
|
|
558
|
-
});
|
|
559
|
-
const AddMaturityRequest = IDL.Record({
|
|
560
|
-
id: IDL.Opt(NeuronId),
|
|
561
|
-
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
562
|
-
});
|
|
563
|
-
const AddMaturityResponse = IDL.Record({
|
|
564
|
-
new_maturity_e8s: IDL.Opt(IDL.Nat64),
|
|
565
|
-
});
|
|
566
|
-
const AdvanceTargetVersionRequest = IDL.Record({
|
|
567
|
-
target_version: IDL.Opt(Version),
|
|
568
|
-
});
|
|
569
|
-
const AdvanceTargetVersionResponse = IDL.Record({});
|
|
570
|
-
const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
|
|
571
|
-
const NeuronsFund = IDL.Record({
|
|
572
|
-
nns_neuron_hotkeys: IDL.Opt(Principals),
|
|
573
|
-
nns_neuron_controller: IDL.Opt(IDL.Principal),
|
|
574
|
-
nns_neuron_id: IDL.Opt(IDL.Nat64),
|
|
575
|
-
});
|
|
576
|
-
const Participant = IDL.Variant({
|
|
577
|
-
NeuronsFund: NeuronsFund,
|
|
578
|
-
Direct: IDL.Record({}),
|
|
579
|
-
});
|
|
580
|
-
const NeuronIds = IDL.Record({ neuron_ids: IDL.Vec(NeuronId) });
|
|
581
|
-
const NeuronRecipe = IDL.Record({
|
|
582
|
-
controller: IDL.Opt(IDL.Principal),
|
|
583
|
-
dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
584
|
-
participant: IDL.Opt(Participant),
|
|
585
|
-
stake_e8s: IDL.Opt(IDL.Nat64),
|
|
586
|
-
followees: IDL.Opt(NeuronIds),
|
|
587
|
-
neuron_id: IDL.Opt(NeuronId),
|
|
588
|
-
});
|
|
589
|
-
const NeuronRecipes = IDL.Record({
|
|
590
|
-
neuron_recipes: IDL.Vec(NeuronRecipe),
|
|
591
|
-
});
|
|
592
|
-
const ClaimSwapNeuronsRequest = IDL.Record({
|
|
593
|
-
neuron_recipes: IDL.Opt(NeuronRecipes),
|
|
594
|
-
});
|
|
595
|
-
const SwapNeuron = IDL.Record({
|
|
596
|
-
id: IDL.Opt(NeuronId),
|
|
597
|
-
status: IDL.Int32,
|
|
598
|
-
});
|
|
599
|
-
const ClaimedSwapNeurons = IDL.Record({
|
|
600
|
-
swap_neurons: IDL.Vec(SwapNeuron),
|
|
601
|
-
});
|
|
602
|
-
const ClaimSwapNeuronsResult = IDL.Variant({
|
|
603
|
-
Ok: ClaimedSwapNeurons,
|
|
604
|
-
Err: IDL.Int32,
|
|
605
|
-
});
|
|
606
|
-
const ClaimSwapNeuronsResponse = IDL.Record({
|
|
607
|
-
claim_swap_neurons_result: IDL.Opt(ClaimSwapNeuronsResult),
|
|
608
|
-
});
|
|
609
|
-
const GetMaturityModulationResponse = IDL.Record({
|
|
610
|
-
maturity_modulation: IDL.Opt(MaturityModulation),
|
|
611
|
-
});
|
|
612
|
-
const GetMetadataResponse = IDL.Record({
|
|
613
|
-
url: IDL.Opt(IDL.Text),
|
|
614
|
-
logo: IDL.Opt(IDL.Text),
|
|
615
|
-
name: IDL.Opt(IDL.Text),
|
|
616
|
-
description: IDL.Opt(IDL.Text),
|
|
617
|
-
});
|
|
618
|
-
const GetMetricsRequest = IDL.Record({
|
|
619
|
-
time_window_seconds: IDL.Opt(IDL.Nat64),
|
|
620
|
-
});
|
|
621
|
-
const Metrics = IDL.Record({
|
|
622
|
-
treasury_metrics: IDL.Opt(IDL.Vec(TreasuryMetrics)),
|
|
623
|
-
voting_power_metrics: IDL.Opt(VotingPowerMetrics),
|
|
624
|
-
last_ledger_block_timestamp: IDL.Opt(IDL.Nat64),
|
|
625
|
-
num_recently_executed_proposals: IDL.Opt(IDL.Nat64),
|
|
626
|
-
num_recently_submitted_proposals: IDL.Opt(IDL.Nat64),
|
|
627
|
-
genesis_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
628
|
-
});
|
|
629
|
-
const GetMetricsResult = IDL.Variant({
|
|
630
|
-
Ok: Metrics,
|
|
631
|
-
Err: GovernanceError,
|
|
632
|
-
});
|
|
633
|
-
const GetMetricsResponse = IDL.Record({
|
|
634
|
-
get_metrics_result: IDL.Opt(GetMetricsResult),
|
|
635
|
-
});
|
|
636
|
-
const GetModeResponse = IDL.Record({ mode: IDL.Opt(IDL.Int32) });
|
|
637
|
-
const GetNeuron = IDL.Record({ neuron_id: IDL.Opt(NeuronId) });
|
|
638
|
-
const Result = IDL.Variant({ Error: GovernanceError, Neuron: Neuron });
|
|
639
|
-
const GetNeuronResponse = IDL.Record({ result: IDL.Opt(Result) });
|
|
640
|
-
const GetProposal = IDL.Record({ proposal_id: IDL.Opt(ProposalId) });
|
|
641
|
-
const Result_1 = IDL.Variant({
|
|
642
|
-
Error: GovernanceError,
|
|
643
|
-
Proposal: ProposalData,
|
|
644
|
-
});
|
|
645
|
-
const GetProposalResponse = IDL.Record({ result: IDL.Opt(Result_1) });
|
|
646
|
-
const MemoryMetrics = IDL.Record({
|
|
647
|
-
wasm_binary_size: IDL.Opt(IDL.Nat),
|
|
648
|
-
wasm_chunk_store_size: IDL.Opt(IDL.Nat),
|
|
649
|
-
canister_history_size: IDL.Opt(IDL.Nat),
|
|
650
|
-
stable_memory_size: IDL.Opt(IDL.Nat),
|
|
651
|
-
snapshots_size: IDL.Opt(IDL.Nat),
|
|
652
|
-
wasm_memory_size: IDL.Opt(IDL.Nat),
|
|
653
|
-
global_memory_size: IDL.Opt(IDL.Nat),
|
|
654
|
-
custom_sections_size: IDL.Opt(IDL.Nat),
|
|
655
|
-
});
|
|
656
|
-
const CanisterStatusType = IDL.Variant({
|
|
657
|
-
stopped: IDL.Null,
|
|
658
|
-
stopping: IDL.Null,
|
|
659
|
-
running: IDL.Null,
|
|
660
|
-
});
|
|
661
|
-
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
662
|
-
freezing_threshold: IDL.Nat,
|
|
663
|
-
wasm_memory_threshold: IDL.Opt(IDL.Nat),
|
|
664
|
-
controllers: IDL.Vec(IDL.Principal),
|
|
665
|
-
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
666
|
-
memory_allocation: IDL.Nat,
|
|
667
|
-
compute_allocation: IDL.Nat,
|
|
668
|
-
});
|
|
669
|
-
const QueryStats = IDL.Record({
|
|
670
|
-
response_payload_bytes_total: IDL.Opt(IDL.Nat),
|
|
671
|
-
num_instructions_total: IDL.Opt(IDL.Nat),
|
|
672
|
-
num_calls_total: IDL.Opt(IDL.Nat),
|
|
673
|
-
request_payload_bytes_total: IDL.Opt(IDL.Nat),
|
|
674
|
-
});
|
|
675
|
-
const CanisterStatusResultV2 = IDL.Record({
|
|
676
|
-
memory_metrics: IDL.Opt(MemoryMetrics),
|
|
677
|
-
status: CanisterStatusType,
|
|
678
|
-
memory_size: IDL.Nat,
|
|
679
|
-
cycles: IDL.Nat,
|
|
680
|
-
settings: DefiniteCanisterSettingsArgs,
|
|
681
|
-
query_stats: IDL.Opt(QueryStats),
|
|
682
|
-
idle_cycles_burned_per_day: IDL.Nat,
|
|
683
|
-
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
684
|
-
});
|
|
685
|
-
const GetRunningSnsVersionResponse = IDL.Record({
|
|
686
|
-
deployed_version: IDL.Opt(Version),
|
|
687
|
-
pending_version: IDL.Opt(
|
|
688
|
-
IDL.Record({
|
|
689
|
-
mark_failed_at_seconds: IDL.Nat64,
|
|
690
|
-
checking_upgrade_lock: IDL.Nat64,
|
|
691
|
-
proposal_id: IDL.Nat64,
|
|
692
|
-
target_version: IDL.Opt(Version),
|
|
693
|
-
}),
|
|
694
|
-
),
|
|
695
|
-
});
|
|
696
|
-
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
697
|
-
sns_initialization_parameters: IDL.Text,
|
|
698
|
-
});
|
|
699
|
-
const GetTimersResponse = IDL.Record({ timers: IDL.Opt(Timers) });
|
|
700
|
-
const GetUpgradeJournalRequest = IDL.Record({
|
|
701
|
-
offset: IDL.Opt(IDL.Nat64),
|
|
702
|
-
limit: IDL.Opt(IDL.Nat64),
|
|
703
|
-
});
|
|
704
|
-
const GetUpgradeJournalResponse = IDL.Record({
|
|
705
|
-
upgrade_journal: IDL.Opt(UpgradeJournal),
|
|
706
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
707
|
-
response_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
708
|
-
deployed_version: IDL.Opt(Version),
|
|
709
|
-
target_version: IDL.Opt(Version),
|
|
710
|
-
upgrade_journal_entry_count: IDL.Opt(IDL.Nat64),
|
|
711
|
-
});
|
|
712
|
-
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
713
|
-
reserved_ids: IDL.Vec(IDL.Nat64),
|
|
714
|
-
functions: IDL.Vec(NervousSystemFunction),
|
|
715
|
-
});
|
|
716
|
-
const ListNeurons = IDL.Record({
|
|
717
|
-
of_principal: IDL.Opt(IDL.Principal),
|
|
718
|
-
limit: IDL.Nat32,
|
|
719
|
-
start_page_at: IDL.Opt(NeuronId),
|
|
720
|
-
});
|
|
721
|
-
const ListNeuronsResponse = IDL.Record({ neurons: IDL.Vec(Neuron) });
|
|
722
|
-
const TopicSelector = IDL.Record({ topic: IDL.Opt(Topic) });
|
|
723
|
-
const ListProposals = IDL.Record({
|
|
724
|
-
include_reward_status: IDL.Vec(IDL.Int32),
|
|
725
|
-
before_proposal: IDL.Opt(ProposalId),
|
|
726
|
-
limit: IDL.Nat32,
|
|
727
|
-
exclude_type: IDL.Vec(IDL.Nat64),
|
|
728
|
-
include_topics: IDL.Opt(IDL.Vec(TopicSelector)),
|
|
729
|
-
include_status: IDL.Vec(IDL.Int32),
|
|
730
|
-
});
|
|
731
|
-
const ListProposalsResponse = IDL.Record({
|
|
732
|
-
include_ballots_by_caller: IDL.Opt(IDL.Bool),
|
|
733
|
-
proposals: IDL.Vec(ProposalData),
|
|
734
|
-
include_topic_filtering: IDL.Opt(IDL.Bool),
|
|
735
|
-
});
|
|
736
|
-
const ListTopicsRequest = IDL.Record({});
|
|
737
|
-
const ExtensionOperationType = IDL.Variant({
|
|
738
|
-
TreasuryManagerWithdraw: IDL.Null,
|
|
739
|
-
TreasuryManagerDeposit: IDL.Null,
|
|
740
|
-
});
|
|
741
|
-
const ExtensionType = IDL.Variant({ TreasuryManager: IDL.Null });
|
|
742
|
-
const ExtensionOperationSpec = IDL.Record({
|
|
743
|
-
topic: IDL.Opt(Topic),
|
|
744
|
-
operation_type: IDL.Opt(ExtensionOperationType),
|
|
745
|
-
description: IDL.Opt(IDL.Text),
|
|
746
|
-
extension_type: IDL.Opt(ExtensionType),
|
|
747
|
-
});
|
|
748
|
-
const RegisteredExtensionOperationSpec = IDL.Record({
|
|
749
|
-
spec: IDL.Opt(ExtensionOperationSpec),
|
|
750
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
751
|
-
});
|
|
752
|
-
const TopicInfo = IDL.Record({
|
|
753
|
-
extension_operations: IDL.Opt(IDL.Vec(RegisteredExtensionOperationSpec)),
|
|
754
|
-
native_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
755
|
-
topic: IDL.Opt(Topic),
|
|
756
|
-
is_critical: IDL.Opt(IDL.Bool),
|
|
757
|
-
name: IDL.Opt(IDL.Text),
|
|
758
|
-
description: IDL.Opt(IDL.Text),
|
|
759
|
-
custom_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
760
|
-
});
|
|
761
|
-
const ListTopicsResponse = IDL.Record({
|
|
762
|
-
uncategorized_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
763
|
-
topics: IDL.Opt(IDL.Vec(TopicInfo)),
|
|
764
|
-
});
|
|
765
|
-
const StakeMaturity = IDL.Record({
|
|
766
|
-
percentage_to_stake: IDL.Opt(IDL.Nat32),
|
|
767
|
-
});
|
|
768
|
-
const Command = IDL.Variant({
|
|
769
|
-
Split: Split,
|
|
770
|
-
Follow: Follow,
|
|
771
|
-
DisburseMaturity: DisburseMaturity,
|
|
772
|
-
ClaimOrRefresh: ClaimOrRefresh,
|
|
773
|
-
Configure: Configure,
|
|
774
|
-
RegisterVote: RegisterVote,
|
|
775
|
-
SetFollowing: SetFollowing,
|
|
776
|
-
MakeProposal: Proposal,
|
|
777
|
-
StakeMaturity: StakeMaturity,
|
|
778
|
-
RemoveNeuronPermissions: RemoveNeuronPermissions,
|
|
779
|
-
AddNeuronPermissions: AddNeuronPermissions,
|
|
780
|
-
MergeMaturity: MergeMaturity,
|
|
781
|
-
Disburse: Disburse,
|
|
782
|
-
});
|
|
783
|
-
const ManageNeuron = IDL.Record({
|
|
784
|
-
subaccount: IDL.Vec(IDL.Nat8),
|
|
785
|
-
command: IDL.Opt(Command),
|
|
786
|
-
});
|
|
787
|
-
const SplitResponse = IDL.Record({ created_neuron_id: IDL.Opt(NeuronId) });
|
|
788
|
-
const DisburseMaturityResponse = IDL.Record({
|
|
789
|
-
amount_disbursed_e8s: IDL.Nat64,
|
|
790
|
-
amount_deducted_e8s: IDL.Opt(IDL.Nat64),
|
|
791
|
-
});
|
|
792
|
-
const ClaimOrRefreshResponse = IDL.Record({
|
|
793
|
-
refreshed_neuron_id: IDL.Opt(NeuronId),
|
|
794
|
-
});
|
|
795
|
-
const StakeMaturityResponse = IDL.Record({
|
|
796
|
-
maturity_e8s: IDL.Nat64,
|
|
797
|
-
staked_maturity_e8s: IDL.Nat64,
|
|
798
|
-
});
|
|
799
|
-
const MergeMaturityResponse = IDL.Record({
|
|
800
|
-
merged_maturity_e8s: IDL.Nat64,
|
|
801
|
-
new_stake_e8s: IDL.Nat64,
|
|
802
|
-
});
|
|
803
|
-
const DisburseResponse = IDL.Record({ transfer_block_height: IDL.Nat64 });
|
|
804
|
-
const Command_1 = IDL.Variant({
|
|
805
|
-
Error: GovernanceError,
|
|
806
|
-
Split: SplitResponse,
|
|
807
|
-
Follow: IDL.Record({}),
|
|
808
|
-
DisburseMaturity: DisburseMaturityResponse,
|
|
809
|
-
ClaimOrRefresh: ClaimOrRefreshResponse,
|
|
810
|
-
Configure: IDL.Record({}),
|
|
811
|
-
RegisterVote: IDL.Record({}),
|
|
812
|
-
SetFollowing: IDL.Record({}),
|
|
813
|
-
MakeProposal: GetProposal,
|
|
814
|
-
RemoveNeuronPermission: IDL.Record({}),
|
|
815
|
-
StakeMaturity: StakeMaturityResponse,
|
|
816
|
-
MergeMaturity: MergeMaturityResponse,
|
|
817
|
-
Disburse: DisburseResponse,
|
|
818
|
-
AddNeuronPermission: IDL.Record({}),
|
|
819
|
-
});
|
|
820
|
-
const ManageNeuronResponse = IDL.Record({ command: IDL.Opt(Command_1) });
|
|
821
|
-
const MintTokensRequest = IDL.Record({
|
|
822
|
-
recipient: IDL.Opt(Account),
|
|
823
|
-
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
824
|
-
});
|
|
825
|
-
const SetMode = IDL.Record({ mode: IDL.Int32 });
|
|
826
|
-
|
|
827
|
-
return IDL.Service({
|
|
828
|
-
add_maturity: IDL.Func([AddMaturityRequest], [AddMaturityResponse], []),
|
|
829
|
-
advance_target_version: IDL.Func(
|
|
830
|
-
[AdvanceTargetVersionRequest],
|
|
831
|
-
[AdvanceTargetVersionResponse],
|
|
832
|
-
[],
|
|
833
|
-
),
|
|
834
|
-
claim_swap_neurons: IDL.Func(
|
|
835
|
-
[ClaimSwapNeuronsRequest],
|
|
836
|
-
[ClaimSwapNeuronsResponse],
|
|
837
|
-
[],
|
|
838
|
-
),
|
|
839
|
-
fail_stuck_upgrade_in_progress: IDL.Func(
|
|
840
|
-
[IDL.Record({})],
|
|
841
|
-
[IDL.Record({})],
|
|
842
|
-
[],
|
|
843
|
-
),
|
|
844
|
-
get_build_metadata: IDL.Func([], [IDL.Text], ["query"]),
|
|
845
|
-
get_latest_reward_event: IDL.Func([], [RewardEvent], ["query"]),
|
|
846
|
-
get_maturity_modulation: IDL.Func(
|
|
847
|
-
[IDL.Record({})],
|
|
848
|
-
[GetMaturityModulationResponse],
|
|
849
|
-
[],
|
|
850
|
-
),
|
|
851
|
-
get_metadata: IDL.Func([IDL.Record({})], [GetMetadataResponse], ["query"]),
|
|
852
|
-
get_metrics: IDL.Func(
|
|
853
|
-
[GetMetricsRequest],
|
|
854
|
-
[GetMetricsResponse],
|
|
855
|
-
["composite_query"],
|
|
856
|
-
),
|
|
857
|
-
get_metrics_replicated: IDL.Func(
|
|
858
|
-
[GetMetricsRequest],
|
|
859
|
-
[GetMetricsResponse],
|
|
860
|
-
[],
|
|
861
|
-
),
|
|
862
|
-
get_mode: IDL.Func([IDL.Record({})], [GetModeResponse], ["query"]),
|
|
863
|
-
get_nervous_system_parameters: IDL.Func(
|
|
864
|
-
[IDL.Null],
|
|
865
|
-
[NervousSystemParameters],
|
|
866
|
-
["query"],
|
|
867
|
-
),
|
|
868
|
-
get_neuron: IDL.Func([GetNeuron], [GetNeuronResponse], ["query"]),
|
|
869
|
-
get_proposal: IDL.Func([GetProposal], [GetProposalResponse], ["query"]),
|
|
870
|
-
get_root_canister_status: IDL.Func(
|
|
871
|
-
[IDL.Null],
|
|
872
|
-
[CanisterStatusResultV2],
|
|
873
|
-
[],
|
|
874
|
-
),
|
|
875
|
-
get_running_sns_version: IDL.Func(
|
|
876
|
-
[IDL.Record({})],
|
|
877
|
-
[GetRunningSnsVersionResponse],
|
|
878
|
-
["query"],
|
|
879
|
-
),
|
|
880
|
-
get_sns_initialization_parameters: IDL.Func(
|
|
881
|
-
[IDL.Record({})],
|
|
882
|
-
[GetSnsInitializationParametersResponse],
|
|
883
|
-
["query"],
|
|
884
|
-
),
|
|
885
|
-
get_timers: IDL.Func([IDL.Record({})], [GetTimersResponse], ["query"]),
|
|
886
|
-
get_upgrade_journal: IDL.Func(
|
|
887
|
-
[GetUpgradeJournalRequest],
|
|
888
|
-
[GetUpgradeJournalResponse],
|
|
889
|
-
["query"],
|
|
890
|
-
),
|
|
891
|
-
list_nervous_system_functions: IDL.Func(
|
|
892
|
-
[],
|
|
893
|
-
[ListNervousSystemFunctionsResponse],
|
|
894
|
-
["query"],
|
|
895
|
-
),
|
|
896
|
-
list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], ["query"]),
|
|
897
|
-
list_proposals: IDL.Func(
|
|
898
|
-
[ListProposals],
|
|
899
|
-
[ListProposalsResponse],
|
|
900
|
-
["query"],
|
|
901
|
-
),
|
|
902
|
-
list_topics: IDL.Func([ListTopicsRequest], [ListTopicsResponse], ["query"]),
|
|
903
|
-
manage_neuron: IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
904
|
-
mint_tokens: IDL.Func([MintTokensRequest], [IDL.Record({})], []),
|
|
905
|
-
refresh_cached_upgrade_steps: IDL.Func(
|
|
906
|
-
[IDL.Record({})],
|
|
907
|
-
[IDL.Record({})],
|
|
908
|
-
[],
|
|
909
|
-
),
|
|
910
|
-
reset_timers: IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
911
|
-
set_mode: IDL.Func([SetMode], [IDL.Record({})], []),
|
|
912
|
-
update_neuron: IDL.Func([Neuron], [IDL.Opt(GovernanceError)], []),
|
|
913
|
-
});
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
export const init = ({ IDL }) => {
|
|
917
|
-
const PreciseValue = IDL.Rec();
|
|
918
|
-
const Timers = IDL.Record({
|
|
919
|
-
last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
920
|
-
last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
921
|
-
requires_periodic_tasks: IDL.Opt(IDL.Bool),
|
|
922
|
-
});
|
|
923
|
-
const Version = IDL.Record({
|
|
924
|
-
archive_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
925
|
-
root_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
926
|
-
swap_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
927
|
-
ledger_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
928
|
-
governance_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
929
|
-
index_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
930
|
-
});
|
|
931
|
-
const Versions = IDL.Record({ versions: IDL.Vec(Version) });
|
|
932
|
-
const CachedUpgradeSteps = IDL.Record({
|
|
933
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
934
|
-
response_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
935
|
-
requested_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
936
|
-
});
|
|
937
|
-
const Topic = IDL.Variant({
|
|
938
|
-
DappCanisterManagement: IDL.Null,
|
|
939
|
-
DaoCommunitySettings: IDL.Null,
|
|
940
|
-
ApplicationBusinessLogic: IDL.Null,
|
|
941
|
-
CriticalDappOperations: IDL.Null,
|
|
942
|
-
TreasuryAssetManagement: IDL.Null,
|
|
943
|
-
Governance: IDL.Null,
|
|
944
|
-
SnsFrameworkManagement: IDL.Null,
|
|
945
|
-
});
|
|
946
|
-
const GenericNervousSystemFunction = IDL.Record({
|
|
947
|
-
topic: IDL.Opt(Topic),
|
|
948
|
-
validator_canister_id: IDL.Opt(IDL.Principal),
|
|
949
|
-
target_canister_id: IDL.Opt(IDL.Principal),
|
|
950
|
-
validator_method_name: IDL.Opt(IDL.Text),
|
|
951
|
-
target_method_name: IDL.Opt(IDL.Text),
|
|
952
|
-
});
|
|
953
|
-
const FunctionType = IDL.Variant({
|
|
954
|
-
NativeNervousSystemFunction: IDL.Record({}),
|
|
955
|
-
GenericNervousSystemFunction: GenericNervousSystemFunction,
|
|
956
|
-
});
|
|
957
|
-
const NervousSystemFunction = IDL.Record({
|
|
958
|
-
id: IDL.Nat64,
|
|
959
|
-
name: IDL.Text,
|
|
960
|
-
description: IDL.Opt(IDL.Text),
|
|
961
|
-
function_type: IDL.Opt(FunctionType),
|
|
962
|
-
});
|
|
963
|
-
const Subaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
|
|
964
|
-
const Account = IDL.Record({
|
|
965
|
-
owner: IDL.Opt(IDL.Principal),
|
|
966
|
-
subaccount: IDL.Opt(Subaccount),
|
|
967
|
-
});
|
|
968
|
-
const TreasuryMetrics = IDL.Record({
|
|
969
|
-
name: IDL.Opt(IDL.Text),
|
|
970
|
-
original_amount_e8s: IDL.Opt(IDL.Nat64),
|
|
971
|
-
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
972
|
-
account: IDL.Opt(Account),
|
|
973
|
-
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
974
|
-
treasury: IDL.Int32,
|
|
975
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
976
|
-
});
|
|
977
|
-
const VotingPowerMetrics = IDL.Record({
|
|
978
|
-
governance_total_potential_voting_power: IDL.Opt(IDL.Nat64),
|
|
979
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
980
|
-
});
|
|
981
|
-
const GovernanceCachedMetrics = IDL.Record({
|
|
982
|
-
treasury_metrics: IDL.Vec(TreasuryMetrics),
|
|
983
|
-
not_dissolving_neurons_e8s_buckets: IDL.Vec(
|
|
984
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64),
|
|
985
|
-
),
|
|
986
|
-
garbage_collectable_neurons_count: IDL.Nat64,
|
|
987
|
-
neurons_with_invalid_stake_count: IDL.Nat64,
|
|
988
|
-
not_dissolving_neurons_count_buckets: IDL.Vec(
|
|
989
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
990
|
-
),
|
|
991
|
-
neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
|
|
992
|
-
dissolved_neurons_count: IDL.Nat64,
|
|
993
|
-
total_staked_e8s: IDL.Nat64,
|
|
994
|
-
total_supply_governance_tokens: IDL.Nat64,
|
|
995
|
-
voting_power_metrics: IDL.Opt(VotingPowerMetrics),
|
|
996
|
-
not_dissolving_neurons_count: IDL.Nat64,
|
|
997
|
-
dissolved_neurons_e8s: IDL.Nat64,
|
|
998
|
-
neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
|
|
999
|
-
dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1000
|
-
dissolving_neurons_count: IDL.Nat64,
|
|
1001
|
-
dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
|
|
1002
|
-
timestamp_seconds: IDL.Nat64,
|
|
1003
|
-
});
|
|
1004
|
-
const MaturityModulation = IDL.Record({
|
|
1005
|
-
current_basis_points: IDL.Opt(IDL.Int32),
|
|
1006
|
-
updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1007
|
-
});
|
|
1008
|
-
const TargetVersionSet = IDL.Record({
|
|
1009
|
-
old_target_version: IDL.Opt(Version),
|
|
1010
|
-
new_target_version: IDL.Opt(Version),
|
|
1011
|
-
is_advanced_automatically: IDL.Opt(IDL.Bool),
|
|
1012
|
-
});
|
|
1013
|
-
const UpgradeStepsReset = IDL.Record({
|
|
1014
|
-
human_readable: IDL.Opt(IDL.Text),
|
|
1015
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
1016
|
-
});
|
|
1017
|
-
const UpgradeOutcome = IDL.Record({
|
|
1018
|
-
status: IDL.Opt(
|
|
1019
|
-
IDL.Variant({
|
|
1020
|
-
Success: IDL.Record({}),
|
|
1021
|
-
Timeout: IDL.Record({}),
|
|
1022
|
-
ExternalFailure: IDL.Record({}),
|
|
1023
|
-
InvalidState: IDL.Record({ version: IDL.Opt(Version) }),
|
|
1024
|
-
}),
|
|
1025
|
-
),
|
|
1026
|
-
human_readable: IDL.Opt(IDL.Text),
|
|
1027
|
-
});
|
|
1028
|
-
const ProposalId = IDL.Record({ id: IDL.Nat64 });
|
|
1029
|
-
const UpgradeStarted = IDL.Record({
|
|
1030
|
-
current_version: IDL.Opt(Version),
|
|
1031
|
-
expected_version: IDL.Opt(Version),
|
|
1032
|
-
reason: IDL.Opt(
|
|
1033
|
-
IDL.Variant({
|
|
1034
|
-
UpgradeSnsToNextVersionProposal: ProposalId,
|
|
1035
|
-
BehindTargetVersion: IDL.Record({}),
|
|
1036
|
-
}),
|
|
1037
|
-
),
|
|
1038
|
-
});
|
|
1039
|
-
const UpgradeStepsRefreshed = IDL.Record({
|
|
1040
|
-
upgrade_steps: IDL.Opt(Versions),
|
|
1041
|
-
});
|
|
1042
|
-
const TargetVersionReset = IDL.Record({
|
|
1043
|
-
human_readable: IDL.Opt(IDL.Text),
|
|
1044
|
-
old_target_version: IDL.Opt(Version),
|
|
1045
|
-
new_target_version: IDL.Opt(Version),
|
|
1046
|
-
});
|
|
1047
|
-
const UpgradeJournalEntry = IDL.Record({
|
|
1048
|
-
event: IDL.Opt(
|
|
1049
|
-
IDL.Variant({
|
|
1050
|
-
TargetVersionSet: TargetVersionSet,
|
|
1051
|
-
UpgradeStepsReset: UpgradeStepsReset,
|
|
1052
|
-
UpgradeOutcome: UpgradeOutcome,
|
|
1053
|
-
UpgradeStarted: UpgradeStarted,
|
|
1054
|
-
UpgradeStepsRefreshed: UpgradeStepsRefreshed,
|
|
1055
|
-
TargetVersionReset: TargetVersionReset,
|
|
1056
|
-
}),
|
|
1057
|
-
),
|
|
1058
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1059
|
-
});
|
|
1060
|
-
const UpgradeJournal = IDL.Record({
|
|
1061
|
-
entries: IDL.Vec(UpgradeJournalEntry),
|
|
1062
|
-
});
|
|
1063
|
-
const NeuronId = IDL.Record({ id: IDL.Vec(IDL.Nat8) });
|
|
1064
|
-
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
1065
|
-
const DefaultFollowees = IDL.Record({
|
|
1066
|
-
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
1067
|
-
});
|
|
1068
|
-
const NeuronPermissionList = IDL.Record({
|
|
1069
|
-
permissions: IDL.Vec(IDL.Int32),
|
|
1070
|
-
});
|
|
1071
|
-
const VotingRewardsParameters = IDL.Record({
|
|
1072
|
-
final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
1073
|
-
initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
1074
|
-
reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
1075
|
-
round_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
1076
|
-
});
|
|
1077
|
-
const NervousSystemParameters = IDL.Record({
|
|
1078
|
-
default_followees: IDL.Opt(DefaultFollowees),
|
|
1079
|
-
max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
1080
|
-
max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
1081
|
-
max_followees_per_function: IDL.Opt(IDL.Nat64),
|
|
1082
|
-
automatically_advance_target_version: IDL.Opt(IDL.Bool),
|
|
1083
|
-
neuron_claimer_permissions: IDL.Opt(NeuronPermissionList),
|
|
1084
|
-
neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
|
|
1085
|
-
max_neuron_age_for_age_bonus: IDL.Opt(IDL.Nat64),
|
|
1086
|
-
initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
1087
|
-
neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
|
|
1088
|
-
reject_cost_e8s: IDL.Opt(IDL.Nat64),
|
|
1089
|
-
max_proposals_to_keep_per_action: IDL.Opt(IDL.Nat32),
|
|
1090
|
-
wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
|
|
1091
|
-
max_number_of_neurons: IDL.Opt(IDL.Nat64),
|
|
1092
|
-
transaction_fee_e8s: IDL.Opt(IDL.Nat64),
|
|
1093
|
-
max_number_of_proposals_with_ballots: IDL.Opt(IDL.Nat64),
|
|
1094
|
-
max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
1095
|
-
neuron_grantable_permissions: IDL.Opt(NeuronPermissionList),
|
|
1096
|
-
voting_rewards_parameters: IDL.Opt(VotingRewardsParameters),
|
|
1097
|
-
maturity_modulation_disabled: IDL.Opt(IDL.Bool),
|
|
1098
|
-
max_number_of_principals_per_neuron: IDL.Opt(IDL.Nat64),
|
|
1099
|
-
});
|
|
1100
|
-
const RewardEvent = IDL.Record({
|
|
1101
|
-
rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
|
|
1102
|
-
actual_timestamp_seconds: IDL.Nat64,
|
|
1103
|
-
end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1104
|
-
total_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
1105
|
-
distributed_e8s_equivalent: IDL.Nat64,
|
|
1106
|
-
round: IDL.Nat64,
|
|
1107
|
-
settled_proposals: IDL.Vec(ProposalId),
|
|
1108
|
-
});
|
|
1109
|
-
const PendingVersion = IDL.Record({
|
|
1110
|
-
mark_failed_at_seconds: IDL.Nat64,
|
|
1111
|
-
checking_upgrade_lock: IDL.Nat64,
|
|
1112
|
-
proposal_id: IDL.Opt(IDL.Nat64),
|
|
1113
|
-
target_version: IDL.Opt(Version),
|
|
1114
|
-
});
|
|
1115
|
-
const GovernanceError = IDL.Record({
|
|
1116
|
-
error_message: IDL.Text,
|
|
1117
|
-
error_type: IDL.Int32,
|
|
1118
|
-
});
|
|
1119
|
-
const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
|
|
1120
|
-
const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
|
|
1121
|
-
const ValuationFactors = IDL.Record({
|
|
1122
|
-
xdrs_per_icp: IDL.Opt(Decimal),
|
|
1123
|
-
icps_per_token: IDL.Opt(Decimal),
|
|
1124
|
-
tokens: IDL.Opt(Tokens),
|
|
1125
|
-
});
|
|
1126
|
-
const Valuation = IDL.Record({
|
|
1127
|
-
token: IDL.Opt(IDL.Int32),
|
|
1128
|
-
account: IDL.Opt(Account),
|
|
1129
|
-
valuation_factors: IDL.Opt(ValuationFactors),
|
|
1130
|
-
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1131
|
-
});
|
|
1132
|
-
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
1133
|
-
valuation: IDL.Opt(Valuation),
|
|
1134
|
-
});
|
|
1135
|
-
const SnsVersion = IDL.Record({
|
|
1136
|
-
archive_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1137
|
-
root_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1138
|
-
swap_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1139
|
-
ledger_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1140
|
-
governance_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1141
|
-
index_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1142
|
-
});
|
|
1143
|
-
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
1144
|
-
target_version: IDL.Opt(SnsVersion),
|
|
1145
|
-
});
|
|
1146
|
-
const ActionAuxiliary = IDL.Variant({
|
|
1147
|
-
TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary,
|
|
1148
|
-
MintSnsTokens: MintSnsTokensActionAuxiliary,
|
|
1149
|
-
AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary,
|
|
1150
|
-
});
|
|
1151
|
-
const Ballot = IDL.Record({
|
|
1152
|
-
vote: IDL.Int32,
|
|
1153
|
-
cast_timestamp_seconds: IDL.Nat64,
|
|
1154
|
-
voting_power: IDL.Nat64,
|
|
1155
|
-
});
|
|
1156
|
-
const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
|
|
1157
|
-
const Tally = IDL.Record({
|
|
1158
|
-
no: IDL.Nat64,
|
|
1159
|
-
yes: IDL.Nat64,
|
|
1160
|
-
total: IDL.Nat64,
|
|
1161
|
-
timestamp_seconds: IDL.Nat64,
|
|
1162
|
-
});
|
|
1163
|
-
const ManageDappCanisterSettings = IDL.Record({
|
|
1164
|
-
freezing_threshold: IDL.Opt(IDL.Nat64),
|
|
1165
|
-
wasm_memory_threshold: IDL.Opt(IDL.Nat64),
|
|
1166
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
1167
|
-
reserved_cycles_limit: IDL.Opt(IDL.Nat64),
|
|
1168
|
-
log_visibility: IDL.Opt(IDL.Int32),
|
|
1169
|
-
wasm_memory_limit: IDL.Opt(IDL.Nat64),
|
|
1170
|
-
memory_allocation: IDL.Opt(IDL.Nat64),
|
|
1171
|
-
compute_allocation: IDL.Opt(IDL.Nat64),
|
|
1172
|
-
});
|
|
1173
|
-
PreciseValue.fill(
|
|
1174
|
-
IDL.Variant({
|
|
1175
|
-
Int: IDL.Int64,
|
|
1176
|
-
Map: IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
|
|
1177
|
-
Nat: IDL.Nat64,
|
|
1178
|
-
Blob: IDL.Vec(IDL.Nat8),
|
|
1179
|
-
Bool: IDL.Bool,
|
|
1180
|
-
Text: IDL.Text,
|
|
1181
|
-
Array: IDL.Vec(PreciseValue),
|
|
1182
|
-
}),
|
|
1183
|
-
);
|
|
1184
|
-
const ExtensionOperationArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
1185
|
-
const ExecuteExtensionOperation = IDL.Record({
|
|
1186
|
-
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
1187
|
-
operation_name: IDL.Opt(IDL.Text),
|
|
1188
|
-
operation_arg: IDL.Opt(ExtensionOperationArg),
|
|
1189
|
-
});
|
|
1190
|
-
const ChunkedCanisterWasm = IDL.Record({
|
|
1191
|
-
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
1192
|
-
chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
1193
|
-
store_canister_id: IDL.Opt(IDL.Principal),
|
|
1194
|
-
});
|
|
1195
|
-
const Wasm = IDL.Variant({
|
|
1196
|
-
Chunked: ChunkedCanisterWasm,
|
|
1197
|
-
Bytes: IDL.Vec(IDL.Nat8),
|
|
1198
|
-
});
|
|
1199
|
-
const ExtensionUpgradeArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
1200
|
-
const UpgradeExtension = IDL.Record({
|
|
1201
|
-
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
1202
|
-
wasm: IDL.Opt(Wasm),
|
|
1203
|
-
canister_upgrade_arg: IDL.Opt(ExtensionUpgradeArg),
|
|
1204
|
-
});
|
|
1205
|
-
const SetTopicsForCustomProposals = IDL.Record({
|
|
1206
|
-
custom_function_id_to_topic: IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
|
|
1207
|
-
});
|
|
1208
|
-
const ExtensionInit = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
1209
|
-
const RegisterExtension = IDL.Record({
|
|
1210
|
-
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
1211
|
-
extension_init: IDL.Opt(ExtensionInit),
|
|
1212
|
-
});
|
|
1213
|
-
const RegisterDappCanisters = IDL.Record({
|
|
1214
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
1215
|
-
});
|
|
1216
|
-
const TransferSnsTreasuryFunds = IDL.Record({
|
|
1217
|
-
from_treasury: IDL.Int32,
|
|
1218
|
-
to_principal: IDL.Opt(IDL.Principal),
|
|
1219
|
-
to_subaccount: IDL.Opt(Subaccount),
|
|
1220
|
-
memo: IDL.Opt(IDL.Nat64),
|
|
1221
|
-
amount_e8s: IDL.Nat64,
|
|
1222
|
-
});
|
|
1223
|
-
const UpgradeSnsControlledCanister = IDL.Record({
|
|
1224
|
-
new_canister_wasm: IDL.Vec(IDL.Nat8),
|
|
1225
|
-
mode: IDL.Opt(IDL.Int32),
|
|
1226
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
1227
|
-
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
1228
|
-
canister_upgrade_arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1229
|
-
});
|
|
1230
|
-
const DeregisterDappCanisters = IDL.Record({
|
|
1231
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
1232
|
-
new_controllers: IDL.Vec(IDL.Principal),
|
|
1233
|
-
});
|
|
1234
|
-
const MintSnsTokens = IDL.Record({
|
|
1235
|
-
to_principal: IDL.Opt(IDL.Principal),
|
|
1236
|
-
to_subaccount: IDL.Opt(Subaccount),
|
|
1237
|
-
memo: IDL.Opt(IDL.Nat64),
|
|
1238
|
-
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
1239
|
-
});
|
|
1240
|
-
const AdvanceSnsTargetVersion = IDL.Record({
|
|
1241
|
-
new_target: IDL.Opt(SnsVersion),
|
|
1242
|
-
});
|
|
1243
|
-
const ManageSnsMetadata = IDL.Record({
|
|
1244
|
-
url: IDL.Opt(IDL.Text),
|
|
1245
|
-
logo: IDL.Opt(IDL.Text),
|
|
1246
|
-
name: IDL.Opt(IDL.Text),
|
|
1247
|
-
description: IDL.Opt(IDL.Text),
|
|
1248
|
-
});
|
|
1249
|
-
const ExecuteGenericNervousSystemFunction = IDL.Record({
|
|
1250
|
-
function_id: IDL.Nat64,
|
|
1251
|
-
payload: IDL.Vec(IDL.Nat8),
|
|
1252
|
-
});
|
|
1253
|
-
const ManageLedgerParameters = IDL.Record({
|
|
1254
|
-
token_symbol: IDL.Opt(IDL.Text),
|
|
1255
|
-
transfer_fee: IDL.Opt(IDL.Nat64),
|
|
1256
|
-
token_logo: IDL.Opt(IDL.Text),
|
|
1257
|
-
token_name: IDL.Opt(IDL.Text),
|
|
1258
|
-
});
|
|
1259
|
-
const Motion = IDL.Record({ motion_text: IDL.Text });
|
|
1260
|
-
const Action = IDL.Variant({
|
|
1261
|
-
ManageNervousSystemParameters: NervousSystemParameters,
|
|
1262
|
-
AddGenericNervousSystemFunction: NervousSystemFunction,
|
|
1263
|
-
ManageDappCanisterSettings: ManageDappCanisterSettings,
|
|
1264
|
-
ExecuteExtensionOperation: ExecuteExtensionOperation,
|
|
1265
|
-
UpgradeExtension: UpgradeExtension,
|
|
1266
|
-
RemoveGenericNervousSystemFunction: IDL.Nat64,
|
|
1267
|
-
SetTopicsForCustomProposals: SetTopicsForCustomProposals,
|
|
1268
|
-
RegisterExtension: RegisterExtension,
|
|
1269
|
-
UpgradeSnsToNextVersion: IDL.Record({}),
|
|
1270
|
-
RegisterDappCanisters: RegisterDappCanisters,
|
|
1271
|
-
TransferSnsTreasuryFunds: TransferSnsTreasuryFunds,
|
|
1272
|
-
UpgradeSnsControlledCanister: UpgradeSnsControlledCanister,
|
|
1273
|
-
DeregisterDappCanisters: DeregisterDappCanisters,
|
|
1274
|
-
MintSnsTokens: MintSnsTokens,
|
|
1275
|
-
AdvanceSnsTargetVersion: AdvanceSnsTargetVersion,
|
|
1276
|
-
Unspecified: IDL.Record({}),
|
|
1277
|
-
ManageSnsMetadata: ManageSnsMetadata,
|
|
1278
|
-
ExecuteGenericNervousSystemFunction: ExecuteGenericNervousSystemFunction,
|
|
1279
|
-
ManageLedgerParameters: ManageLedgerParameters,
|
|
1280
|
-
Motion: Motion,
|
|
1281
|
-
});
|
|
1282
|
-
const Proposal = IDL.Record({
|
|
1283
|
-
url: IDL.Text,
|
|
1284
|
-
title: IDL.Text,
|
|
1285
|
-
action: IDL.Opt(Action),
|
|
1286
|
-
summary: IDL.Text,
|
|
1287
|
-
});
|
|
1288
|
-
const WaitForQuietState = IDL.Record({
|
|
1289
|
-
current_deadline_timestamp_seconds: IDL.Nat64,
|
|
1290
|
-
});
|
|
1291
|
-
const ProposalData = IDL.Record({
|
|
1292
|
-
id: IDL.Opt(ProposalId),
|
|
1293
|
-
payload_text_rendering: IDL.Opt(IDL.Text),
|
|
1294
|
-
topic: IDL.Opt(Topic),
|
|
1295
|
-
action: IDL.Nat64,
|
|
1296
|
-
failure_reason: IDL.Opt(GovernanceError),
|
|
1297
|
-
action_auxiliary: IDL.Opt(ActionAuxiliary),
|
|
1298
|
-
ballots: IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
1299
|
-
minimum_yes_proportion_of_total: IDL.Opt(Percentage),
|
|
1300
|
-
reward_event_round: IDL.Nat64,
|
|
1301
|
-
failed_timestamp_seconds: IDL.Nat64,
|
|
1302
|
-
reward_event_end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1303
|
-
proposal_creation_timestamp_seconds: IDL.Nat64,
|
|
1304
|
-
initial_voting_period_seconds: IDL.Nat64,
|
|
1305
|
-
reject_cost_e8s: IDL.Nat64,
|
|
1306
|
-
latest_tally: IDL.Opt(Tally),
|
|
1307
|
-
wait_for_quiet_deadline_increase_seconds: IDL.Nat64,
|
|
1308
|
-
decided_timestamp_seconds: IDL.Nat64,
|
|
1309
|
-
proposal: IDL.Opt(Proposal),
|
|
1310
|
-
proposer: IDL.Opt(NeuronId),
|
|
1311
|
-
wait_for_quiet_state: IDL.Opt(WaitForQuietState),
|
|
1312
|
-
minimum_yes_proportion_of_exercised: IDL.Opt(Percentage),
|
|
1313
|
-
is_eligible_for_rewards: IDL.Bool,
|
|
1314
|
-
executed_timestamp_seconds: IDL.Nat64,
|
|
1315
|
-
});
|
|
1316
|
-
const Split = IDL.Record({ memo: IDL.Nat64, amount_e8s: IDL.Nat64 });
|
|
1317
|
-
const Follow = IDL.Record({
|
|
1318
|
-
function_id: IDL.Nat64,
|
|
1319
|
-
followees: IDL.Vec(NeuronId),
|
|
1320
|
-
});
|
|
1321
|
-
const DisburseMaturity = IDL.Record({
|
|
1322
|
-
to_account: IDL.Opt(Account),
|
|
1323
|
-
percentage_to_disburse: IDL.Nat32,
|
|
1324
|
-
});
|
|
1325
|
-
const ChangeAutoStakeMaturity = IDL.Record({
|
|
1326
|
-
requested_setting_for_auto_stake_maturity: IDL.Bool,
|
|
1327
|
-
});
|
|
1328
|
-
const IncreaseDissolveDelay = IDL.Record({
|
|
1329
|
-
additional_dissolve_delay_seconds: IDL.Nat32,
|
|
1330
|
-
});
|
|
1331
|
-
const SetDissolveTimestamp = IDL.Record({
|
|
1332
|
-
dissolve_timestamp_seconds: IDL.Nat64,
|
|
1333
|
-
});
|
|
1334
|
-
const Operation = IDL.Variant({
|
|
1335
|
-
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
|
|
1336
|
-
StopDissolving: IDL.Record({}),
|
|
1337
|
-
StartDissolving: IDL.Record({}),
|
|
1338
|
-
IncreaseDissolveDelay: IncreaseDissolveDelay,
|
|
1339
|
-
SetDissolveTimestamp: SetDissolveTimestamp,
|
|
1340
|
-
});
|
|
1341
|
-
const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
|
|
1342
|
-
const RegisterVote = IDL.Record({
|
|
1343
|
-
vote: IDL.Int32,
|
|
1344
|
-
proposal: IDL.Opt(ProposalId),
|
|
1345
|
-
});
|
|
1346
|
-
const Followee = IDL.Record({
|
|
1347
|
-
alias: IDL.Opt(IDL.Text),
|
|
1348
|
-
neuron_id: IDL.Opt(NeuronId),
|
|
1349
|
-
});
|
|
1350
|
-
const FolloweesForTopic = IDL.Record({
|
|
1351
|
-
topic: IDL.Opt(Topic),
|
|
1352
|
-
followees: IDL.Vec(Followee),
|
|
1353
|
-
});
|
|
1354
|
-
const SetFollowing = IDL.Record({
|
|
1355
|
-
topic_following: IDL.Vec(FolloweesForTopic),
|
|
1356
|
-
});
|
|
1357
|
-
const FinalizeDisburseMaturity = IDL.Record({
|
|
1358
|
-
amount_to_be_disbursed_e8s: IDL.Nat64,
|
|
1359
|
-
to_account: IDL.Opt(Account),
|
|
1360
|
-
});
|
|
1361
|
-
const MemoAndController = IDL.Record({
|
|
1362
|
-
controller: IDL.Opt(IDL.Principal),
|
|
1363
|
-
memo: IDL.Nat64,
|
|
1364
|
-
});
|
|
1365
|
-
const By = IDL.Variant({
|
|
1366
|
-
MemoAndController: MemoAndController,
|
|
1367
|
-
NeuronId: IDL.Record({}),
|
|
1368
|
-
});
|
|
1369
|
-
const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
|
|
1370
|
-
const RemoveNeuronPermissions = IDL.Record({
|
|
1371
|
-
permissions_to_remove: IDL.Opt(NeuronPermissionList),
|
|
1372
|
-
principal_id: IDL.Opt(IDL.Principal),
|
|
1373
|
-
});
|
|
1374
|
-
const AddNeuronPermissions = IDL.Record({
|
|
1375
|
-
permissions_to_add: IDL.Opt(NeuronPermissionList),
|
|
1376
|
-
principal_id: IDL.Opt(IDL.Principal),
|
|
1377
|
-
});
|
|
1378
|
-
const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
|
|
1379
|
-
const Amount = IDL.Record({ e8s: IDL.Nat64 });
|
|
1380
|
-
const Disburse = IDL.Record({
|
|
1381
|
-
to_account: IDL.Opt(Account),
|
|
1382
|
-
amount: IDL.Opt(Amount),
|
|
1383
|
-
});
|
|
1384
|
-
const Command_2 = IDL.Variant({
|
|
1385
|
-
Split: Split,
|
|
1386
|
-
Follow: Follow,
|
|
1387
|
-
DisburseMaturity: DisburseMaturity,
|
|
1388
|
-
Configure: Configure,
|
|
1389
|
-
RegisterVote: RegisterVote,
|
|
1390
|
-
SetFollowing: SetFollowing,
|
|
1391
|
-
SyncCommand: IDL.Record({}),
|
|
1392
|
-
MakeProposal: Proposal,
|
|
1393
|
-
FinalizeDisburseMaturity: FinalizeDisburseMaturity,
|
|
1394
|
-
ClaimOrRefreshNeuron: ClaimOrRefresh,
|
|
1395
|
-
RemoveNeuronPermissions: RemoveNeuronPermissions,
|
|
1396
|
-
AddNeuronPermissions: AddNeuronPermissions,
|
|
1397
|
-
MergeMaturity: MergeMaturity,
|
|
1398
|
-
Disburse: Disburse,
|
|
1399
|
-
});
|
|
1400
|
-
const NeuronInFlightCommand = IDL.Record({
|
|
1401
|
-
command: IDL.Opt(Command_2),
|
|
1402
|
-
timestamp: IDL.Nat64,
|
|
1403
|
-
});
|
|
1404
|
-
const NeuronPermission = IDL.Record({
|
|
1405
|
-
principal: IDL.Opt(IDL.Principal),
|
|
1406
|
-
permission_type: IDL.Vec(IDL.Int32),
|
|
1407
|
-
});
|
|
1408
|
-
const DissolveState = IDL.Variant({
|
|
1409
|
-
DissolveDelaySeconds: IDL.Nat64,
|
|
1410
|
-
WhenDissolvedTimestampSeconds: IDL.Nat64,
|
|
1411
|
-
});
|
|
1412
|
-
const DisburseMaturityInProgress = IDL.Record({
|
|
1413
|
-
timestamp_of_disbursement_seconds: IDL.Nat64,
|
|
1414
|
-
amount_e8s: IDL.Nat64,
|
|
1415
|
-
account_to_disburse_to: IDL.Opt(Account),
|
|
1416
|
-
finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1417
|
-
});
|
|
1418
|
-
const Neuron = IDL.Record({
|
|
1419
|
-
id: IDL.Opt(NeuronId),
|
|
1420
|
-
staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
1421
|
-
permissions: IDL.Vec(NeuronPermission),
|
|
1422
|
-
maturity_e8s_equivalent: IDL.Nat64,
|
|
1423
|
-
cached_neuron_stake_e8s: IDL.Nat64,
|
|
1424
|
-
created_timestamp_seconds: IDL.Nat64,
|
|
1425
|
-
topic_followees: IDL.Opt(
|
|
1426
|
-
IDL.Record({
|
|
1427
|
-
topic_id_to_followees: IDL.Vec(IDL.Tuple(IDL.Int32, FolloweesForTopic)),
|
|
1428
|
-
}),
|
|
1429
|
-
),
|
|
1430
|
-
source_nns_neuron_id: IDL.Opt(IDL.Nat64),
|
|
1431
|
-
auto_stake_maturity: IDL.Opt(IDL.Bool),
|
|
1432
|
-
aging_since_timestamp_seconds: IDL.Nat64,
|
|
1433
|
-
dissolve_state: IDL.Opt(DissolveState),
|
|
1434
|
-
voting_power_percentage_multiplier: IDL.Nat64,
|
|
1435
|
-
vesting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
1436
|
-
disburse_maturity_in_progress: IDL.Vec(DisburseMaturityInProgress),
|
|
1437
|
-
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
1438
|
-
neuron_fees_e8s: IDL.Nat64,
|
|
1439
|
-
});
|
|
1440
|
-
const Governance = IDL.Record({
|
|
1441
|
-
root_canister_id: IDL.Opt(IDL.Principal),
|
|
1442
|
-
timers: IDL.Opt(Timers),
|
|
1443
|
-
cached_upgrade_steps: IDL.Opt(CachedUpgradeSteps),
|
|
1444
|
-
id_to_nervous_system_functions: IDL.Vec(
|
|
1445
|
-
IDL.Tuple(IDL.Nat64, NervousSystemFunction),
|
|
1446
|
-
),
|
|
1447
|
-
metrics: IDL.Opt(GovernanceCachedMetrics),
|
|
1448
|
-
maturity_modulation: IDL.Opt(MaturityModulation),
|
|
1449
|
-
upgrade_journal: IDL.Opt(UpgradeJournal),
|
|
1450
|
-
mode: IDL.Int32,
|
|
1451
|
-
parameters: IDL.Opt(NervousSystemParameters),
|
|
1452
|
-
is_finalizing_disburse_maturity: IDL.Opt(IDL.Bool),
|
|
1453
|
-
deployed_version: IDL.Opt(Version),
|
|
1454
|
-
sns_initialization_parameters: IDL.Text,
|
|
1455
|
-
latest_reward_event: IDL.Opt(RewardEvent),
|
|
1456
|
-
pending_version: IDL.Opt(PendingVersion),
|
|
1457
|
-
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
1458
|
-
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
1459
|
-
proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1460
|
-
in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
1461
|
-
sns_metadata: IDL.Opt(ManageSnsMetadata),
|
|
1462
|
-
neurons: IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
1463
|
-
target_version: IDL.Opt(Version),
|
|
1464
|
-
genesis_timestamp_seconds: IDL.Nat64,
|
|
1465
|
-
});
|
|
1466
|
-
|
|
1467
|
-
return [Governance];
|
|
1468
|
-
};
|