@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,1069 +0,0 @@
|
|
|
1
|
-
// Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
|
-
|
|
3
|
-
type Account = record {
|
|
4
|
-
owner : opt principal;
|
|
5
|
-
subaccount : opt Subaccount;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
type Action = variant {
|
|
9
|
-
ManageNervousSystemParameters : NervousSystemParameters;
|
|
10
|
-
AddGenericNervousSystemFunction : NervousSystemFunction;
|
|
11
|
-
SetTopicsForCustomProposals : SetTopicsForCustomProposals;
|
|
12
|
-
ManageDappCanisterSettings : ManageDappCanisterSettings;
|
|
13
|
-
RemoveGenericNervousSystemFunction : nat64;
|
|
14
|
-
UpgradeSnsToNextVersion : record {};
|
|
15
|
-
AdvanceSnsTargetVersion : AdvanceSnsTargetVersion;
|
|
16
|
-
RegisterDappCanisters : RegisterDappCanisters;
|
|
17
|
-
RegisterExtension : RegisterExtension;
|
|
18
|
-
UpgradeExtension : UpgradeExtension;
|
|
19
|
-
ExecuteExtensionOperation : ExecuteExtensionOperation;
|
|
20
|
-
TransferSnsTreasuryFunds : TransferSnsTreasuryFunds;
|
|
21
|
-
UpgradeSnsControlledCanister : UpgradeSnsControlledCanister;
|
|
22
|
-
DeregisterDappCanisters : DeregisterDappCanisters;
|
|
23
|
-
MintSnsTokens : MintSnsTokens;
|
|
24
|
-
Unspecified : record {};
|
|
25
|
-
ManageSnsMetadata : ManageSnsMetadata;
|
|
26
|
-
ExecuteGenericNervousSystemFunction : ExecuteGenericNervousSystemFunction;
|
|
27
|
-
ManageLedgerParameters : ManageLedgerParameters;
|
|
28
|
-
Motion : Motion;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
type ActionAuxiliary = variant {
|
|
32
|
-
TransferSnsTreasuryFunds : MintSnsTokensActionAuxiliary;
|
|
33
|
-
MintSnsTokens : MintSnsTokensActionAuxiliary;
|
|
34
|
-
AdvanceSnsTargetVersion : AdvanceSnsTargetVersionActionAuxiliary;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
type AddNeuronPermissions = record {
|
|
38
|
-
permissions_to_add : opt NeuronPermissionList;
|
|
39
|
-
principal_id : opt principal;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
type Amount = record {
|
|
43
|
-
e8s : nat64;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
type Ballot = record {
|
|
47
|
-
vote : int32;
|
|
48
|
-
cast_timestamp_seconds : nat64;
|
|
49
|
-
voting_power : nat64;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
type By = variant {
|
|
53
|
-
MemoAndController : MemoAndController;
|
|
54
|
-
NeuronId : record {};
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
type MemoryMetrics = record {
|
|
58
|
-
wasm_memory_size : opt nat;
|
|
59
|
-
stable_memory_size : opt nat;
|
|
60
|
-
global_memory_size : opt nat;
|
|
61
|
-
wasm_binary_size : opt nat;
|
|
62
|
-
custom_sections_size : opt nat;
|
|
63
|
-
canister_history_size : opt nat;
|
|
64
|
-
wasm_chunk_store_size : opt nat;
|
|
65
|
-
snapshots_size : opt nat;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
type CanisterStatusResultV2 = record {
|
|
69
|
-
status : CanisterStatusType;
|
|
70
|
-
memory_size : nat;
|
|
71
|
-
memory_metrics : opt MemoryMetrics;
|
|
72
|
-
cycles : nat;
|
|
73
|
-
settings : DefiniteCanisterSettingsArgs;
|
|
74
|
-
idle_cycles_burned_per_day : nat;
|
|
75
|
-
module_hash : opt blob;
|
|
76
|
-
query_stats : opt QueryStats;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
type CanisterStatusType = variant {
|
|
80
|
-
stopped;
|
|
81
|
-
stopping;
|
|
82
|
-
running;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
type ChangeAutoStakeMaturity = record {
|
|
86
|
-
requested_setting_for_auto_stake_maturity : bool;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
type ClaimOrRefresh = record {
|
|
90
|
-
by : opt By;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
type ClaimOrRefreshResponse = record {
|
|
94
|
-
refreshed_neuron_id : opt NeuronId;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
type ClaimSwapNeuronsRequest = record {
|
|
98
|
-
neuron_recipes : opt NeuronRecipes;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
type ClaimSwapNeuronsResponse = record {
|
|
102
|
-
claim_swap_neurons_result : opt ClaimSwapNeuronsResult;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
type ClaimSwapNeuronsResult = variant {
|
|
106
|
-
Ok : ClaimedSwapNeurons;
|
|
107
|
-
Err : int32;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
type ClaimedSwapNeurons = record {
|
|
111
|
-
swap_neurons : vec SwapNeuron;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
type Command = variant {
|
|
115
|
-
Split : Split;
|
|
116
|
-
Follow : Follow;
|
|
117
|
-
SetFollowing : SetFollowing;
|
|
118
|
-
DisburseMaturity : DisburseMaturity;
|
|
119
|
-
ClaimOrRefresh : ClaimOrRefresh;
|
|
120
|
-
Configure : Configure;
|
|
121
|
-
RegisterVote : RegisterVote;
|
|
122
|
-
MakeProposal : Proposal;
|
|
123
|
-
StakeMaturity : StakeMaturity;
|
|
124
|
-
RemoveNeuronPermissions : RemoveNeuronPermissions;
|
|
125
|
-
AddNeuronPermissions : AddNeuronPermissions;
|
|
126
|
-
MergeMaturity : MergeMaturity;
|
|
127
|
-
Disburse : Disburse;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
type Command_1 = variant {
|
|
131
|
-
Error : GovernanceError;
|
|
132
|
-
Split : SplitResponse;
|
|
133
|
-
Follow : record {};
|
|
134
|
-
SetFollowing : record {};
|
|
135
|
-
DisburseMaturity : DisburseMaturityResponse;
|
|
136
|
-
ClaimOrRefresh : ClaimOrRefreshResponse;
|
|
137
|
-
Configure : record {};
|
|
138
|
-
RegisterVote : record {};
|
|
139
|
-
MakeProposal : GetProposal;
|
|
140
|
-
RemoveNeuronPermission : record {};
|
|
141
|
-
StakeMaturity : StakeMaturityResponse;
|
|
142
|
-
MergeMaturity : MergeMaturityResponse;
|
|
143
|
-
Disburse : DisburseResponse;
|
|
144
|
-
AddNeuronPermission : record {};
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
type Command_2 = variant {
|
|
148
|
-
Split : Split;
|
|
149
|
-
Follow : Follow;
|
|
150
|
-
SetFollowing : SetFollowing;
|
|
151
|
-
DisburseMaturity : DisburseMaturity;
|
|
152
|
-
Configure : Configure;
|
|
153
|
-
RegisterVote : RegisterVote;
|
|
154
|
-
SyncCommand : record {};
|
|
155
|
-
MakeProposal : Proposal;
|
|
156
|
-
FinalizeDisburseMaturity : FinalizeDisburseMaturity;
|
|
157
|
-
ClaimOrRefreshNeuron : ClaimOrRefresh;
|
|
158
|
-
RemoveNeuronPermissions : RemoveNeuronPermissions;
|
|
159
|
-
AddNeuronPermissions : AddNeuronPermissions;
|
|
160
|
-
MergeMaturity : MergeMaturity;
|
|
161
|
-
Disburse : Disburse;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
type Configure = record {
|
|
165
|
-
operation : opt Operation;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
type Decimal = record {
|
|
169
|
-
human_readable : opt text;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
type DefaultFollowees = record {
|
|
173
|
-
followees : vec record { nat64; Followees };
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
type DefiniteCanisterSettingsArgs = record {
|
|
177
|
-
freezing_threshold : nat;
|
|
178
|
-
controllers : vec principal;
|
|
179
|
-
wasm_memory_limit : opt nat;
|
|
180
|
-
memory_allocation : nat;
|
|
181
|
-
compute_allocation : nat;
|
|
182
|
-
wasm_memory_threshold : opt nat;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
type DeregisterDappCanisters = record {
|
|
186
|
-
canister_ids : vec principal;
|
|
187
|
-
new_controllers : vec principal;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
type Disburse = record {
|
|
191
|
-
to_account : opt Account;
|
|
192
|
-
amount : opt Amount;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
type DisburseMaturity = record {
|
|
196
|
-
to_account : opt Account;
|
|
197
|
-
percentage_to_disburse : nat32;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
type DisburseMaturityInProgress = record {
|
|
201
|
-
timestamp_of_disbursement_seconds : nat64;
|
|
202
|
-
amount_e8s : nat64;
|
|
203
|
-
account_to_disburse_to : opt Account;
|
|
204
|
-
finalize_disbursement_timestamp_seconds : opt nat64;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
type DisburseMaturityResponse = record {
|
|
208
|
-
amount_disbursed_e8s : nat64;
|
|
209
|
-
amount_deducted_e8s : opt nat64;
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
type DisburseResponse = record {
|
|
213
|
-
transfer_block_height : nat64;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
type DissolveState = variant {
|
|
217
|
-
DissolveDelaySeconds : nat64;
|
|
218
|
-
WhenDissolvedTimestampSeconds : nat64;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
type ExecuteGenericNervousSystemFunction = record {
|
|
222
|
-
function_id : nat64;
|
|
223
|
-
payload : blob;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
type FinalizeDisburseMaturity = record {
|
|
227
|
-
amount_to_be_disbursed_e8s : nat64;
|
|
228
|
-
to_account : opt Account;
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
type Follow = record {
|
|
232
|
-
function_id : nat64;
|
|
233
|
-
followees : vec NeuronId;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
type SetFollowing = record {
|
|
237
|
-
topic_following : vec FolloweesForTopic;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
type Followees = record {
|
|
241
|
-
followees : vec NeuronId;
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
type FunctionType = variant {
|
|
245
|
-
NativeNervousSystemFunction : record {};
|
|
246
|
-
GenericNervousSystemFunction : GenericNervousSystemFunction;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
type GenericNervousSystemFunction = record {
|
|
250
|
-
validator_canister_id : opt principal;
|
|
251
|
-
target_canister_id : opt principal;
|
|
252
|
-
validator_method_name : opt text;
|
|
253
|
-
target_method_name : opt text;
|
|
254
|
-
topic : opt Topic;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
type GetMaturityModulationResponse = record {
|
|
258
|
-
maturity_modulation : opt MaturityModulation;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
type GetMetadataResponse = record {
|
|
262
|
-
url : opt text;
|
|
263
|
-
logo : opt text;
|
|
264
|
-
name : opt text;
|
|
265
|
-
description : opt text;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
type GetMetricsRequest = record {
|
|
269
|
-
time_window_seconds : opt nat64;
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
type TreasuryMetrics = record {
|
|
273
|
-
// Same as, e.g., `TransferSnsTreasuryFunds.from_treasury`.
|
|
274
|
-
treasury : int32;
|
|
275
|
-
|
|
276
|
-
// A human-readable identified for this treasury, e.g., "ICP".
|
|
277
|
-
name : opt text;
|
|
278
|
-
|
|
279
|
-
// The source of truth for the treasury balance is this ledger canister / account.
|
|
280
|
-
ledger_canister_id : opt principal;
|
|
281
|
-
account : opt Account;
|
|
282
|
-
|
|
283
|
-
// The regularly updated amount of tokens in this treasury.
|
|
284
|
-
amount_e8s : opt nat64;
|
|
285
|
-
// The amount of tokens in this treasury at the end of swap finalization.
|
|
286
|
-
original_amount_e8s : opt nat64;
|
|
287
|
-
|
|
288
|
-
// When the metrics were last updated.
|
|
289
|
-
timestamp_seconds : opt nat64;
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
type VotingPowerMetrics = record {
|
|
293
|
-
governance_total_potential_voting_power : opt nat64;
|
|
294
|
-
|
|
295
|
-
// When the metrics were last updated.
|
|
296
|
-
timestamp_seconds : opt nat64;
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
type Metrics = record {
|
|
300
|
-
num_recently_submitted_proposals : opt nat64;
|
|
301
|
-
num_recently_executed_proposals: opt nat64;
|
|
302
|
-
|
|
303
|
-
last_ledger_block_timestamp : opt nat64;
|
|
304
|
-
|
|
305
|
-
// The metrics below are cached (albeit this is an implementation detail).
|
|
306
|
-
treasury_metrics : opt vec TreasuryMetrics;
|
|
307
|
-
voting_power_metrics : opt VotingPowerMetrics;
|
|
308
|
-
genesis_timestamp_seconds : opt nat64;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
type GetMetricsResult = variant {
|
|
312
|
-
Ok : Metrics;
|
|
313
|
-
Err : GovernanceError;
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
type GetMetricsResponse = record {
|
|
317
|
-
get_metrics_result : opt GetMetricsResult;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
type GetModeResponse = record {
|
|
321
|
-
mode : opt int32;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
type GetNeuron = record {
|
|
325
|
-
neuron_id : opt NeuronId;
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
type GetNeuronResponse = record {
|
|
329
|
-
result : opt Result;
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
type GetProposal = record {
|
|
333
|
-
proposal_id : opt ProposalId;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
type GetProposalResponse = record {
|
|
337
|
-
result : opt Result_1;
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
type GetRunningSnsVersionResponse = record {
|
|
341
|
-
deployed_version : opt Version;
|
|
342
|
-
pending_version : opt record {
|
|
343
|
-
mark_failed_at_seconds : nat64;
|
|
344
|
-
checking_upgrade_lock : nat64;
|
|
345
|
-
proposal_id : nat64;
|
|
346
|
-
target_version : opt Version;
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
type GetSnsInitializationParametersResponse = record {
|
|
351
|
-
sns_initialization_parameters : text;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
type CachedUpgradeSteps = record {
|
|
355
|
-
upgrade_steps : opt Versions;
|
|
356
|
-
requested_timestamp_seconds : opt nat64;
|
|
357
|
-
response_timestamp_seconds : opt nat64;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
type Governance = record {
|
|
361
|
-
root_canister_id : opt principal;
|
|
362
|
-
id_to_nervous_system_functions : vec record { nat64; NervousSystemFunction };
|
|
363
|
-
metrics : opt GovernanceCachedMetrics;
|
|
364
|
-
maturity_modulation : opt MaturityModulation;
|
|
365
|
-
mode : int32;
|
|
366
|
-
parameters : opt NervousSystemParameters;
|
|
367
|
-
is_finalizing_disburse_maturity : opt bool;
|
|
368
|
-
deployed_version : opt Version;
|
|
369
|
-
cached_upgrade_steps : opt CachedUpgradeSteps;
|
|
370
|
-
sns_initialization_parameters : text;
|
|
371
|
-
latest_reward_event : opt RewardEvent;
|
|
372
|
-
pending_version : opt PendingVersion;
|
|
373
|
-
swap_canister_id : opt principal;
|
|
374
|
-
ledger_canister_id : opt principal;
|
|
375
|
-
proposals : vec record { nat64; ProposalData };
|
|
376
|
-
in_flight_commands : vec record { text; NeuronInFlightCommand };
|
|
377
|
-
sns_metadata : opt ManageSnsMetadata;
|
|
378
|
-
neurons : vec record { text; Neuron };
|
|
379
|
-
genesis_timestamp_seconds : nat64;
|
|
380
|
-
target_version : opt Version;
|
|
381
|
-
timers : opt Timers;
|
|
382
|
-
upgrade_journal : opt UpgradeJournal;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
type Timers = record {
|
|
386
|
-
requires_periodic_tasks : opt bool;
|
|
387
|
-
last_reset_timestamp_seconds : opt nat64;
|
|
388
|
-
last_spawned_timestamp_seconds : opt nat64;
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
type GetTimersResponse = record {
|
|
392
|
-
timers : opt Timers;
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
type GovernanceCachedMetrics = record {
|
|
396
|
-
not_dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
|
|
397
|
-
garbage_collectable_neurons_count : nat64;
|
|
398
|
-
neurons_with_invalid_stake_count : nat64;
|
|
399
|
-
not_dissolving_neurons_count_buckets : vec record { nat64; nat64 };
|
|
400
|
-
neurons_with_less_than_6_months_dissolve_delay_count : nat64;
|
|
401
|
-
dissolved_neurons_count : nat64;
|
|
402
|
-
total_staked_e8s : nat64;
|
|
403
|
-
total_supply_governance_tokens : nat64;
|
|
404
|
-
not_dissolving_neurons_count : nat64;
|
|
405
|
-
dissolved_neurons_e8s : nat64;
|
|
406
|
-
neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
|
|
407
|
-
dissolving_neurons_count_buckets : vec record { nat64; nat64 };
|
|
408
|
-
dissolving_neurons_count : nat64;
|
|
409
|
-
dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
|
|
410
|
-
timestamp_seconds : nat64;
|
|
411
|
-
treasury_metrics : vec TreasuryMetrics;
|
|
412
|
-
voting_power_metrics : opt VotingPowerMetrics;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
type GovernanceError = record {
|
|
416
|
-
error_message : text;
|
|
417
|
-
error_type : int32;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
type IncreaseDissolveDelay = record {
|
|
421
|
-
additional_dissolve_delay_seconds : nat32;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
type ListNervousSystemFunctionsResponse = record {
|
|
425
|
-
reserved_ids : vec nat64;
|
|
426
|
-
functions : vec NervousSystemFunction;
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
type ListNeurons = record {
|
|
430
|
-
of_principal : opt principal;
|
|
431
|
-
limit : nat32;
|
|
432
|
-
start_page_at : opt NeuronId;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
type ListNeuronsResponse = record {
|
|
436
|
-
neurons : vec Neuron;
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
type ListProposals = record {
|
|
440
|
-
include_reward_status : vec int32;
|
|
441
|
-
before_proposal : opt ProposalId;
|
|
442
|
-
limit : nat32;
|
|
443
|
-
exclude_type : vec nat64;
|
|
444
|
-
include_status : vec int32;
|
|
445
|
-
include_topics : opt vec TopicSelector;
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
type TopicSelector = record {
|
|
449
|
-
topic : opt Topic;
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
type ListProposalsResponse = record {
|
|
453
|
-
include_ballots_by_caller : opt bool;
|
|
454
|
-
include_topic_filtering : opt bool;
|
|
455
|
-
proposals : vec ProposalData;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
type ManageDappCanisterSettings = record {
|
|
459
|
-
freezing_threshold : opt nat64;
|
|
460
|
-
canister_ids : vec principal;
|
|
461
|
-
reserved_cycles_limit : opt nat64;
|
|
462
|
-
log_visibility : opt int32;
|
|
463
|
-
wasm_memory_limit : opt nat64;
|
|
464
|
-
memory_allocation : opt nat64;
|
|
465
|
-
compute_allocation : opt nat64;
|
|
466
|
-
wasm_memory_threshold : opt nat64;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
type SnsVersion = record {
|
|
470
|
-
governance_wasm_hash : opt blob;
|
|
471
|
-
swap_wasm_hash : opt blob;
|
|
472
|
-
root_wasm_hash : opt blob;
|
|
473
|
-
index_wasm_hash : opt blob;
|
|
474
|
-
ledger_wasm_hash : opt blob;
|
|
475
|
-
archive_wasm_hash : opt blob;
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
type AdvanceSnsTargetVersion = record {
|
|
479
|
-
new_target : opt SnsVersion;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
type SetTopicsForCustomProposals = record {
|
|
483
|
-
custom_function_id_to_topic : vec record { nat64; Topic };
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
type ManageLedgerParameters = record {
|
|
487
|
-
token_symbol : opt text;
|
|
488
|
-
transfer_fee : opt nat64;
|
|
489
|
-
token_logo : opt text;
|
|
490
|
-
token_name : opt text;
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
type ManageNeuron = record {
|
|
494
|
-
subaccount : blob;
|
|
495
|
-
command : opt Command;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
type ManageNeuronResponse = record {
|
|
499
|
-
command : opt Command_1;
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
type ManageSnsMetadata = record {
|
|
503
|
-
url : opt text;
|
|
504
|
-
logo : opt text;
|
|
505
|
-
name : opt text;
|
|
506
|
-
description : opt text;
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
type MaturityModulation = record {
|
|
510
|
-
current_basis_points : opt int32;
|
|
511
|
-
updated_at_timestamp_seconds : opt nat64;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
type MemoAndController = record {
|
|
515
|
-
controller : opt principal;
|
|
516
|
-
memo : nat64;
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
type MergeMaturity = record {
|
|
520
|
-
percentage_to_merge : nat32;
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
type MergeMaturityResponse = record {
|
|
524
|
-
merged_maturity_e8s : nat64;
|
|
525
|
-
new_stake_e8s : nat64;
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
type MintSnsTokens = record {
|
|
529
|
-
to_principal : opt principal;
|
|
530
|
-
to_subaccount : opt Subaccount;
|
|
531
|
-
memo : opt nat64;
|
|
532
|
-
amount_e8s : opt nat64;
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
type MintSnsTokensActionAuxiliary = record {
|
|
536
|
-
valuation : opt Valuation;
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
type AdvanceSnsTargetVersionActionAuxiliary = record {
|
|
540
|
-
target_version : opt SnsVersion;
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
type Motion = record {
|
|
544
|
-
motion_text : text;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
type NervousSystemFunction = record {
|
|
548
|
-
id : nat64;
|
|
549
|
-
name : text;
|
|
550
|
-
description : opt text;
|
|
551
|
-
function_type : opt FunctionType;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
type NervousSystemParameters = record {
|
|
555
|
-
default_followees : opt DefaultFollowees;
|
|
556
|
-
max_dissolve_delay_seconds : opt nat64;
|
|
557
|
-
max_dissolve_delay_bonus_percentage : opt nat64;
|
|
558
|
-
max_followees_per_function : opt nat64;
|
|
559
|
-
neuron_claimer_permissions : opt NeuronPermissionList;
|
|
560
|
-
neuron_minimum_stake_e8s : opt nat64;
|
|
561
|
-
max_neuron_age_for_age_bonus : opt nat64;
|
|
562
|
-
initial_voting_period_seconds : opt nat64;
|
|
563
|
-
neuron_minimum_dissolve_delay_to_vote_seconds : opt nat64;
|
|
564
|
-
reject_cost_e8s : opt nat64;
|
|
565
|
-
max_proposals_to_keep_per_action : opt nat32;
|
|
566
|
-
wait_for_quiet_deadline_increase_seconds : opt nat64;
|
|
567
|
-
max_number_of_neurons : opt nat64;
|
|
568
|
-
transaction_fee_e8s : opt nat64;
|
|
569
|
-
max_number_of_proposals_with_ballots : opt nat64;
|
|
570
|
-
max_age_bonus_percentage : opt nat64;
|
|
571
|
-
neuron_grantable_permissions : opt NeuronPermissionList;
|
|
572
|
-
voting_rewards_parameters : opt VotingRewardsParameters;
|
|
573
|
-
maturity_modulation_disabled : opt bool;
|
|
574
|
-
max_number_of_principals_per_neuron : opt nat64;
|
|
575
|
-
automatically_advance_target_version : opt bool;
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
type FolloweesForTopic = record {
|
|
579
|
-
followees : vec Followee;
|
|
580
|
-
topic : opt Topic;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
type Neuron = record {
|
|
584
|
-
id : opt NeuronId;
|
|
585
|
-
staked_maturity_e8s_equivalent : opt nat64;
|
|
586
|
-
permissions : vec NeuronPermission;
|
|
587
|
-
maturity_e8s_equivalent : nat64;
|
|
588
|
-
cached_neuron_stake_e8s : nat64;
|
|
589
|
-
created_timestamp_seconds : nat64;
|
|
590
|
-
source_nns_neuron_id : opt nat64;
|
|
591
|
-
auto_stake_maturity : opt bool;
|
|
592
|
-
aging_since_timestamp_seconds : nat64;
|
|
593
|
-
dissolve_state : opt DissolveState;
|
|
594
|
-
voting_power_percentage_multiplier : nat64;
|
|
595
|
-
vesting_period_seconds : opt nat64;
|
|
596
|
-
disburse_maturity_in_progress : vec DisburseMaturityInProgress;
|
|
597
|
-
followees : vec record { nat64; Followees };
|
|
598
|
-
topic_followees : opt record {
|
|
599
|
-
topic_id_to_followees : vec record { int32; FolloweesForTopic };
|
|
600
|
-
};
|
|
601
|
-
neuron_fees_e8s : nat64;
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
type NeuronId = record {
|
|
605
|
-
id : blob;
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
type Followee = record {
|
|
609
|
-
neuron_id : opt NeuronId;
|
|
610
|
-
alias : opt text;
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
type NeuronIds = record {
|
|
614
|
-
neuron_ids : vec NeuronId;
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
type NeuronInFlightCommand = record {
|
|
618
|
-
command : opt Command_2;
|
|
619
|
-
timestamp : nat64;
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
type NeuronPermission = record {
|
|
623
|
-
"principal" : opt principal;
|
|
624
|
-
permission_type : vec int32;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
type NeuronPermissionList = record {
|
|
628
|
-
permissions : vec int32;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
type NeuronRecipe = record {
|
|
632
|
-
controller : opt principal;
|
|
633
|
-
dissolve_delay_seconds : opt nat64;
|
|
634
|
-
participant : opt Participant;
|
|
635
|
-
stake_e8s : opt nat64;
|
|
636
|
-
followees : opt NeuronIds;
|
|
637
|
-
neuron_id : opt NeuronId;
|
|
638
|
-
};
|
|
639
|
-
|
|
640
|
-
type NeuronRecipes = record {
|
|
641
|
-
neuron_recipes : vec NeuronRecipe;
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
type NeuronsFund = record {
|
|
645
|
-
nns_neuron_hotkeys : opt Principals;
|
|
646
|
-
nns_neuron_controller : opt principal;
|
|
647
|
-
nns_neuron_id : opt nat64;
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
type Operation = variant {
|
|
651
|
-
ChangeAutoStakeMaturity : ChangeAutoStakeMaturity;
|
|
652
|
-
StopDissolving : record {};
|
|
653
|
-
StartDissolving : record {};
|
|
654
|
-
IncreaseDissolveDelay : IncreaseDissolveDelay;
|
|
655
|
-
SetDissolveTimestamp : SetDissolveTimestamp;
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
type Participant = variant {
|
|
659
|
-
NeuronsFund : NeuronsFund;
|
|
660
|
-
Direct : record {};
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
type Percentage = record {
|
|
664
|
-
basis_points : opt nat64;
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
type Principals = record {
|
|
668
|
-
principals : vec principal;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
type Proposal = record {
|
|
672
|
-
url : text;
|
|
673
|
-
title : text;
|
|
674
|
-
action : opt Action;
|
|
675
|
-
summary : text;
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
type ProposalData = record {
|
|
679
|
-
id : opt ProposalId;
|
|
680
|
-
payload_text_rendering : opt text;
|
|
681
|
-
action : nat64;
|
|
682
|
-
failure_reason : opt GovernanceError;
|
|
683
|
-
action_auxiliary : opt ActionAuxiliary;
|
|
684
|
-
ballots : vec record { text; Ballot };
|
|
685
|
-
minimum_yes_proportion_of_total : opt Percentage;
|
|
686
|
-
reward_event_round : nat64;
|
|
687
|
-
failed_timestamp_seconds : nat64;
|
|
688
|
-
reward_event_end_timestamp_seconds : opt nat64;
|
|
689
|
-
proposal_creation_timestamp_seconds : nat64;
|
|
690
|
-
initial_voting_period_seconds : nat64;
|
|
691
|
-
reject_cost_e8s : nat64;
|
|
692
|
-
latest_tally : opt Tally;
|
|
693
|
-
wait_for_quiet_deadline_increase_seconds : nat64;
|
|
694
|
-
decided_timestamp_seconds : nat64;
|
|
695
|
-
proposal : opt Proposal;
|
|
696
|
-
proposer : opt NeuronId;
|
|
697
|
-
wait_for_quiet_state : opt WaitForQuietState;
|
|
698
|
-
minimum_yes_proportion_of_exercised : opt Percentage;
|
|
699
|
-
is_eligible_for_rewards : bool;
|
|
700
|
-
executed_timestamp_seconds : nat64;
|
|
701
|
-
topic : opt Topic;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
type ProposalId = record {
|
|
705
|
-
id : nat64;
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
type QueryStats = record {
|
|
709
|
-
num_calls_total : opt nat;
|
|
710
|
-
num_instructions_total : opt nat;
|
|
711
|
-
request_payload_bytes_total : opt nat;
|
|
712
|
-
response_payload_bytes_total : opt nat;
|
|
713
|
-
};
|
|
714
|
-
|
|
715
|
-
type RegisterDappCanisters = record {
|
|
716
|
-
canister_ids : vec principal;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
// This type is equivalant to `ICRC3Value`, but we give it another name since it is used here not
|
|
720
|
-
// in the context of the ICRC-3 ledger standard. The justification is the same: The candid format
|
|
721
|
-
// supports sharing information even when the client and the server involved do not have the same
|
|
722
|
-
// schema (see the Upgrading and subtyping section of the candid spec). While this mechanism allows
|
|
723
|
-
// to evolve services and clients independently without breaking them, it also means that a client
|
|
724
|
-
// may not receive all the information that the server is sending, e.g. in case the client schema
|
|
725
|
-
// lacks some fields that the server schema has.
|
|
726
|
-
//
|
|
727
|
-
// This loss of information is not an option for SNS voters deciding if an extension with particular
|
|
728
|
-
// init args should be installed or if an extension function with particular arguments should be
|
|
729
|
-
// called. The client must receive the same exact data the server sent in order to verify it.
|
|
730
|
-
//
|
|
731
|
-
// Verification of a priorly installed extension is done by hashing the extension's init arg data
|
|
732
|
-
// and checking that the result is consistent with what has been certified by the SNS.
|
|
733
|
-
type PreciseValue = variant {
|
|
734
|
-
Bool : bool;
|
|
735
|
-
Blob : blob;
|
|
736
|
-
Text : text;
|
|
737
|
-
Nat : nat64;
|
|
738
|
-
Int : int64;
|
|
739
|
-
Array : vec PreciseValue;
|
|
740
|
-
Map : vec record { text; PreciseValue };
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
type ExtensionInit = record {
|
|
744
|
-
value : opt PreciseValue;
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
type RegisterExtension = record {
|
|
748
|
-
chunked_canister_wasm : opt ChunkedCanisterWasm;
|
|
749
|
-
|
|
750
|
-
extension_init : opt ExtensionInit;
|
|
751
|
-
};
|
|
752
|
-
|
|
753
|
-
type ExtensionOperationArg = record {
|
|
754
|
-
value : opt PreciseValue;
|
|
755
|
-
};
|
|
756
|
-
|
|
757
|
-
type ExtensionUpgradeArg = record {
|
|
758
|
-
value : opt PreciseValue;
|
|
759
|
-
};
|
|
760
|
-
|
|
761
|
-
type Wasm = variant {
|
|
762
|
-
Bytes : blob;
|
|
763
|
-
Chunked : ChunkedCanisterWasm;
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
type UpgradeExtension = record {
|
|
767
|
-
extension_canister_id : opt principal;
|
|
768
|
-
canister_upgrade_arg : opt ExtensionUpgradeArg;
|
|
769
|
-
wasm : opt Wasm;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
type ExecuteExtensionOperation = record {
|
|
773
|
-
extension_canister_id : opt principal;
|
|
774
|
-
|
|
775
|
-
operation_name : opt text;
|
|
776
|
-
|
|
777
|
-
operation_arg : opt ExtensionOperationArg;
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
type ExtensionOperationSpec = record {
|
|
781
|
-
operation_type : opt ExtensionOperationType;
|
|
782
|
-
description : opt text;
|
|
783
|
-
extension_type : opt ExtensionType;
|
|
784
|
-
topic : opt Topic;
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
type ExtensionOperationType = variant {
|
|
788
|
-
TreasuryManagerDeposit;
|
|
789
|
-
TreasuryManagerWithdraw;
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
type ExtensionType = variant {
|
|
793
|
-
TreasuryManager;
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
type RegisteredExtensionOperationSpec = record {
|
|
797
|
-
canister_id : opt principal;
|
|
798
|
-
spec : opt ExtensionOperationSpec;
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
type RegisterVote = record {
|
|
802
|
-
vote : int32;
|
|
803
|
-
proposal : opt ProposalId;
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
type RemoveNeuronPermissions = record {
|
|
807
|
-
permissions_to_remove : opt NeuronPermissionList;
|
|
808
|
-
principal_id : opt principal;
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
type Result = variant {
|
|
812
|
-
Error : GovernanceError;
|
|
813
|
-
Neuron : Neuron;
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
type Result_1 = variant {
|
|
817
|
-
Error : GovernanceError;
|
|
818
|
-
Proposal : ProposalData;
|
|
819
|
-
};
|
|
820
|
-
|
|
821
|
-
type RewardEvent = record {
|
|
822
|
-
rounds_since_last_distribution : opt nat64;
|
|
823
|
-
actual_timestamp_seconds : nat64;
|
|
824
|
-
end_timestamp_seconds : opt nat64;
|
|
825
|
-
total_available_e8s_equivalent : opt nat64;
|
|
826
|
-
distributed_e8s_equivalent : nat64;
|
|
827
|
-
round : nat64;
|
|
828
|
-
settled_proposals : vec ProposalId;
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
type SetDissolveTimestamp = record {
|
|
832
|
-
dissolve_timestamp_seconds : nat64;
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
type SetMode = record {
|
|
836
|
-
mode : int32;
|
|
837
|
-
};
|
|
838
|
-
|
|
839
|
-
type Split = record {
|
|
840
|
-
memo : nat64;
|
|
841
|
-
amount_e8s : nat64;
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
type SplitResponse = record {
|
|
845
|
-
created_neuron_id : opt NeuronId;
|
|
846
|
-
};
|
|
847
|
-
|
|
848
|
-
type StakeMaturity = record {
|
|
849
|
-
percentage_to_stake : opt nat32;
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
type StakeMaturityResponse = record {
|
|
853
|
-
maturity_e8s : nat64;
|
|
854
|
-
staked_maturity_e8s : nat64;
|
|
855
|
-
};
|
|
856
|
-
|
|
857
|
-
type Subaccount = record {
|
|
858
|
-
subaccount : blob;
|
|
859
|
-
};
|
|
860
|
-
|
|
861
|
-
type SwapNeuron = record {
|
|
862
|
-
id : opt NeuronId;
|
|
863
|
-
status : int32;
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
type Tally = record {
|
|
867
|
-
no : nat64;
|
|
868
|
-
yes : nat64;
|
|
869
|
-
total : nat64;
|
|
870
|
-
timestamp_seconds : nat64;
|
|
871
|
-
};
|
|
872
|
-
|
|
873
|
-
type Tokens = record {
|
|
874
|
-
e8s : opt nat64;
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
type TransferSnsTreasuryFunds = record {
|
|
878
|
-
from_treasury : int32;
|
|
879
|
-
to_principal : opt principal;
|
|
880
|
-
to_subaccount : opt Subaccount;
|
|
881
|
-
memo : opt nat64;
|
|
882
|
-
amount_e8s : nat64;
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
type UpgradeInProgress = record {
|
|
886
|
-
mark_failed_at_seconds : nat64;
|
|
887
|
-
checking_upgrade_lock : nat64;
|
|
888
|
-
proposal_id : opt nat64;
|
|
889
|
-
target_version : opt Version;
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
type PendingVersion = record {
|
|
893
|
-
mark_failed_at_seconds : nat64;
|
|
894
|
-
checking_upgrade_lock : nat64;
|
|
895
|
-
proposal_id : opt nat64;
|
|
896
|
-
target_version : opt Version;
|
|
897
|
-
};
|
|
898
|
-
|
|
899
|
-
type ChunkedCanisterWasm = record {
|
|
900
|
-
wasm_module_hash : blob;
|
|
901
|
-
store_canister_id : opt principal;
|
|
902
|
-
chunk_hashes_list : vec blob;
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
type UpgradeSnsControlledCanister = record {
|
|
906
|
-
new_canister_wasm : blob;
|
|
907
|
-
chunked_canister_wasm : opt ChunkedCanisterWasm;
|
|
908
|
-
mode : opt int32;
|
|
909
|
-
canister_id : opt principal;
|
|
910
|
-
canister_upgrade_arg : opt blob;
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
type Valuation = record {
|
|
914
|
-
token : opt int32;
|
|
915
|
-
account : opt Account;
|
|
916
|
-
valuation_factors : opt ValuationFactors;
|
|
917
|
-
timestamp_seconds : opt nat64;
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
type ValuationFactors = record {
|
|
921
|
-
xdrs_per_icp : opt Decimal;
|
|
922
|
-
icps_per_token : opt Decimal;
|
|
923
|
-
tokens : opt Tokens;
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
type Version = record {
|
|
927
|
-
archive_wasm_hash : blob;
|
|
928
|
-
root_wasm_hash : blob;
|
|
929
|
-
swap_wasm_hash : blob;
|
|
930
|
-
ledger_wasm_hash : blob;
|
|
931
|
-
governance_wasm_hash : blob;
|
|
932
|
-
index_wasm_hash : blob;
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
type Versions = record { versions : vec Version };
|
|
936
|
-
|
|
937
|
-
type VotingRewardsParameters = record {
|
|
938
|
-
final_reward_rate_basis_points : opt nat64;
|
|
939
|
-
initial_reward_rate_basis_points : opt nat64;
|
|
940
|
-
reward_rate_transition_duration_seconds : opt nat64;
|
|
941
|
-
round_duration_seconds : opt nat64;
|
|
942
|
-
};
|
|
943
|
-
|
|
944
|
-
type WaitForQuietState = record {
|
|
945
|
-
current_deadline_timestamp_seconds : nat64;
|
|
946
|
-
};
|
|
947
|
-
|
|
948
|
-
type UpgradeJournalEntry = record {
|
|
949
|
-
event : opt variant {
|
|
950
|
-
UpgradeStepsRefreshed : UpgradeStepsRefreshed;
|
|
951
|
-
UpgradeStepsReset : UpgradeStepsReset;
|
|
952
|
-
TargetVersionSet : TargetVersionSet;
|
|
953
|
-
TargetVersionReset : TargetVersionReset;
|
|
954
|
-
UpgradeStarted : UpgradeStarted;
|
|
955
|
-
UpgradeOutcome : UpgradeOutcome;
|
|
956
|
-
};
|
|
957
|
-
timestamp_seconds : opt nat64;
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
type UpgradeStepsRefreshed = record {
|
|
961
|
-
upgrade_steps : opt Versions;
|
|
962
|
-
};
|
|
963
|
-
|
|
964
|
-
type UpgradeStepsReset = record {
|
|
965
|
-
human_readable : opt text;
|
|
966
|
-
upgrade_steps : opt Versions;
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
type TargetVersionSet = record {
|
|
970
|
-
new_target_version : opt Version;
|
|
971
|
-
old_target_version : opt Version;
|
|
972
|
-
is_advanced_automatically : opt bool;
|
|
973
|
-
};
|
|
974
|
-
|
|
975
|
-
type TargetVersionReset = record {
|
|
976
|
-
new_target_version : opt Version;
|
|
977
|
-
old_target_version : opt Version;
|
|
978
|
-
human_readable : opt text;
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
type UpgradeStarted = record {
|
|
982
|
-
current_version : opt Version;
|
|
983
|
-
expected_version : opt Version;
|
|
984
|
-
reason : opt variant {
|
|
985
|
-
UpgradeSnsToNextVersionProposal : ProposalId;
|
|
986
|
-
BehindTargetVersion : record {};
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
type UpgradeOutcome = record {
|
|
991
|
-
human_readable : opt text;
|
|
992
|
-
status : opt variant {
|
|
993
|
-
Success : record {};
|
|
994
|
-
Timeout : record {};
|
|
995
|
-
InvalidState : record { version : opt Version };
|
|
996
|
-
ExternalFailure : record {};
|
|
997
|
-
};
|
|
998
|
-
};
|
|
999
|
-
|
|
1000
|
-
type UpgradeJournal = record {
|
|
1001
|
-
entries : vec UpgradeJournalEntry;
|
|
1002
|
-
};
|
|
1003
|
-
|
|
1004
|
-
type GetUpgradeJournalRequest = record {
|
|
1005
|
-
limit : opt nat64;
|
|
1006
|
-
offset : opt nat64;
|
|
1007
|
-
};
|
|
1008
|
-
|
|
1009
|
-
type GetUpgradeJournalResponse = record {
|
|
1010
|
-
upgrade_steps : opt Versions;
|
|
1011
|
-
response_timestamp_seconds : opt nat64;
|
|
1012
|
-
target_version : opt Version;
|
|
1013
|
-
deployed_version : opt Version;
|
|
1014
|
-
upgrade_journal : opt UpgradeJournal;
|
|
1015
|
-
upgrade_journal_entry_count: opt nat64;
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
type Topic = variant {
|
|
1019
|
-
DaoCommunitySettings;
|
|
1020
|
-
SnsFrameworkManagement;
|
|
1021
|
-
DappCanisterManagement;
|
|
1022
|
-
ApplicationBusinessLogic;
|
|
1023
|
-
Governance;
|
|
1024
|
-
TreasuryAssetManagement;
|
|
1025
|
-
CriticalDappOperations;
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
type TopicInfo = record {
|
|
1029
|
-
topic : opt Topic;
|
|
1030
|
-
name : opt text;
|
|
1031
|
-
description : opt text;
|
|
1032
|
-
native_functions : opt vec NervousSystemFunction;
|
|
1033
|
-
custom_functions : opt vec NervousSystemFunction;
|
|
1034
|
-
extension_operations : opt vec RegisteredExtensionOperationSpec;
|
|
1035
|
-
is_critical : opt bool;
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
type ListTopicsRequest = record {};
|
|
1039
|
-
type ListTopicsResponse = record {
|
|
1040
|
-
topics: opt vec TopicInfo;
|
|
1041
|
-
uncategorized_functions: opt vec NervousSystemFunction
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
service : (Governance) -> {
|
|
1045
|
-
claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
|
|
1046
|
-
fail_stuck_upgrade_in_progress : (record {}) -> (record {});
|
|
1047
|
-
get_build_metadata : () -> (text) query;
|
|
1048
|
-
get_latest_reward_event : () -> (RewardEvent) query;
|
|
1049
|
-
get_maturity_modulation : (record {}) -> (GetMaturityModulationResponse);
|
|
1050
|
-
get_metadata : (record {}) -> (GetMetadataResponse) query;
|
|
1051
|
-
get_metrics : (GetMetricsRequest) -> (GetMetricsResponse) composite_query;
|
|
1052
|
-
get_metrics_replicated : (GetMetricsRequest) -> (GetMetricsResponse);
|
|
1053
|
-
get_mode : (record {}) -> (GetModeResponse) query;
|
|
1054
|
-
get_nervous_system_parameters : (null) -> (NervousSystemParameters) query;
|
|
1055
|
-
get_neuron : (GetNeuron) -> (GetNeuronResponse) query;
|
|
1056
|
-
get_proposal : (GetProposal) -> (GetProposalResponse) query;
|
|
1057
|
-
get_root_canister_status : (null) -> (CanisterStatusResultV2);
|
|
1058
|
-
get_running_sns_version : (record {}) -> (GetRunningSnsVersionResponse) query;
|
|
1059
|
-
get_sns_initialization_parameters : (record {}) -> (GetSnsInitializationParametersResponse) query;
|
|
1060
|
-
get_upgrade_journal : (GetUpgradeJournalRequest) -> (GetUpgradeJournalResponse) query;
|
|
1061
|
-
list_nervous_system_functions : () -> (ListNervousSystemFunctionsResponse) query;
|
|
1062
|
-
list_neurons : (ListNeurons) -> (ListNeuronsResponse) query;
|
|
1063
|
-
list_proposals : (ListProposals) -> (ListProposalsResponse) query;
|
|
1064
|
-
list_topics : (ListTopicsRequest) -> (ListTopicsResponse) query;
|
|
1065
|
-
manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
|
|
1066
|
-
set_mode : (SetMode) -> (record {});
|
|
1067
|
-
reset_timers : (record {}) -> (record {});
|
|
1068
|
-
get_timers : (record {}) -> (GetTimersResponse) query;
|
|
1069
|
-
}
|