@dfinity/sns 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/candid/sns_governance.certified.idl.js +3 -10
  2. package/dist/candid/sns_governance.d.ts +2 -1
  3. package/dist/candid/sns_governance.did +272 -51
  4. package/dist/candid/sns_governance.idl.js +3 -10
  5. package/dist/candid/sns_governance_test.certified.idl.js +3 -10
  6. package/dist/candid/sns_governance_test.d.ts +2 -1
  7. package/dist/candid/sns_governance_test.did +282 -53
  8. package/dist/candid/sns_governance_test.idl.js +3 -10
  9. package/dist/candid/sns_root.certified.idl.js +1 -2
  10. package/dist/candid/sns_root.d.ts +1 -1
  11. package/dist/candid/sns_root.did +61 -13
  12. package/dist/candid/sns_root.idl.js +1 -2
  13. package/dist/candid/sns_swap.certified.idl.js +1 -0
  14. package/dist/candid/sns_swap.d.ts +1 -0
  15. package/dist/candid/sns_swap.did +192 -36
  16. package/dist/candid/sns_swap.idl.js +1 -0
  17. package/dist/cjs/index.cjs.js +1 -1
  18. package/dist/cjs/index.cjs.js.map +3 -3
  19. package/dist/esm/chunk-5YPS4ZYR.js +2 -0
  20. package/dist/esm/chunk-5YPS4ZYR.js.map +7 -0
  21. package/dist/esm/{chunk-TVXJJLBF.js → chunk-7V3B657R.js} +2 -2
  22. package/dist/esm/chunk-JY2TPU5D.js +2 -0
  23. package/dist/esm/chunk-JY2TPU5D.js.map +7 -0
  24. package/dist/esm/chunk-ODQ7CAD7.js +2 -0
  25. package/dist/esm/chunk-ODQ7CAD7.js.map +7 -0
  26. package/dist/esm/{chunk-CQAJ2SZB.js → chunk-Q55ZUKOX.js} +2 -2
  27. package/dist/esm/{chunk-CQAJ2SZB.js.map → chunk-Q55ZUKOX.js.map} +2 -2
  28. package/dist/esm/governance.canister.js +1 -1
  29. package/dist/esm/index.js +1 -1
  30. package/dist/esm/index.js.map +3 -3
  31. package/dist/esm/root.canister.js +1 -1
  32. package/dist/esm/sns.js +1 -1
  33. package/dist/esm/sns.wrapper.js +1 -1
  34. package/dist/esm/swap.canister.js +1 -1
  35. package/package.json +6 -6
  36. package/dist/esm/chunk-7CU6QPD4.js +0 -2
  37. package/dist/esm/chunk-7CU6QPD4.js.map +0 -7
  38. package/dist/esm/chunk-C7HBQQIL.js +0 -2
  39. package/dist/esm/chunk-C7HBQQIL.js.map +0 -7
  40. package/dist/esm/chunk-K2WYATWO.js +0 -2
  41. package/dist/esm/chunk-K2WYATWO.js.map +0 -7
  42. /package/dist/esm/{chunk-TVXJJLBF.js.map → chunk-7V3B657R.js.map} +0 -0
@@ -374,6 +374,7 @@ export const idlFactory = ({ IDL }) => {
374
374
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
375
375
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
376
376
  'sns_metadata' : IDL.Opt(ManageSnsMetadata),
377
+ 'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
377
378
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
378
379
  'genesis_timestamp_seconds' : IDL.Nat64,
379
380
  });
@@ -399,18 +400,8 @@ export const idlFactory = ({ IDL }) => {
399
400
  const NeuronRecipes = IDL.Record({
400
401
  'neuron_recipes' : IDL.Vec(NeuronRecipe),
401
402
  });
402
- const NeuronParameters = IDL.Record({
403
- 'controller' : IDL.Opt(IDL.Principal),
404
- 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
405
- 'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
406
- 'stake_e8s' : IDL.Opt(IDL.Nat64),
407
- 'followees' : IDL.Vec(NeuronId),
408
- 'hotkey' : IDL.Opt(IDL.Principal),
409
- 'neuron_id' : IDL.Opt(NeuronId),
410
- });
411
403
  const ClaimSwapNeuronsRequest = IDL.Record({
412
404
  'neuron_recipes' : IDL.Opt(NeuronRecipes),
413
- 'neuron_parameters' : IDL.Vec(NeuronParameters),
414
405
  });
415
406
  const SwapNeuron = IDL.Record({
416
407
  'id' : IDL.Opt(NeuronId),
@@ -453,6 +444,7 @@ export const idlFactory = ({ IDL }) => {
453
444
  const DefiniteCanisterSettingsArgs = IDL.Record({
454
445
  'freezing_threshold' : IDL.Nat,
455
446
  'controllers' : IDL.Vec(IDL.Principal),
447
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
456
448
  'memory_allocation' : IDL.Nat,
457
449
  'compute_allocation' : IDL.Nat,
458
450
  });
@@ -975,6 +967,7 @@ export const init = ({ IDL }) => {
975
967
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
976
968
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
977
969
  'sns_metadata' : IDL.Opt(ManageSnsMetadata),
970
+ 'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
978
971
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
979
972
  'genesis_timestamp_seconds' : IDL.Nat64,
980
973
  });
@@ -67,7 +67,6 @@ export interface ClaimOrRefreshResponse {
67
67
  }
68
68
  export interface ClaimSwapNeuronsRequest {
69
69
  neuron_recipes: [] | [NeuronRecipes];
70
- neuron_parameters: Array<NeuronParameters>;
71
70
  }
72
71
  export interface ClaimSwapNeuronsResponse {
73
72
  claim_swap_neurons_result: [] | [ClaimSwapNeuronsResult];
@@ -131,6 +130,7 @@ export interface DefaultFollowees {
131
130
  export interface DefiniteCanisterSettingsArgs {
132
131
  freezing_threshold: bigint;
133
132
  controllers: Array<Principal>;
133
+ wasm_memory_limit: [] | [bigint];
134
134
  memory_allocation: bigint;
135
135
  compute_allocation: bigint;
136
136
  }
@@ -234,6 +234,7 @@ export interface Governance {
234
234
  proposals: Array<[bigint, ProposalData]>;
235
235
  in_flight_commands: Array<[string, NeuronInFlightCommand]>;
236
236
  sns_metadata: [] | [ManageSnsMetadata];
237
+ migrated_root_wasm_memory_limit: [] | [boolean];
237
238
  neurons: Array<[string, Neuron]>;
238
239
  genesis_timestamp_seconds: bigint;
239
240
  }
@@ -1,5 +1,9 @@
1
- // Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/governance/canister/governance.did' by import-candid
2
- type Account = record { owner : opt principal; subaccount : opt Subaccount };
1
+ // Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/sns/governance/canister/governance.did' by import-candid
2
+ type Account = record {
3
+ owner : opt principal;
4
+ subaccount : opt Subaccount;
5
+ };
6
+
3
7
  type Action = variant {
4
8
  ManageNervousSystemParameters : NervousSystemParameters;
5
9
  AddGenericNervousSystemFunction : NervousSystemFunction;
@@ -17,24 +21,32 @@ type Action = variant {
17
21
  ManageLedgerParameters : ManageLedgerParameters;
18
22
  Motion : Motion;
19
23
  };
24
+
20
25
  type ActionAuxiliary = variant {
21
26
  TransferSnsTreasuryFunds : MintSnsTokensActionAuxiliary;
22
27
  MintSnsTokens : MintSnsTokensActionAuxiliary;
23
28
  };
29
+
24
30
  type AddNeuronPermissions = record {
25
31
  permissions_to_add : opt NeuronPermissionList;
26
32
  principal_id : opt principal;
27
33
  };
28
- type Amount = record { e8s : nat64 };
34
+
35
+ type Amount = record {
36
+ e8s : nat64;
37
+ };
38
+
29
39
  type Ballot = record {
30
40
  vote : int32;
31
41
  cast_timestamp_seconds : nat64;
32
42
  voting_power : nat64;
33
43
  };
44
+
34
45
  type By = variant {
35
46
  MemoAndController : MemoAndController;
36
47
  NeuronId : record {};
37
48
  };
49
+
38
50
  type CanisterStatusResultV2 = record {
39
51
  status : CanisterStatusType;
40
52
  memory_size : nat;
@@ -43,21 +55,42 @@ type CanisterStatusResultV2 = record {
43
55
  idle_cycles_burned_per_day : nat;
44
56
  module_hash : opt blob;
45
57
  };
46
- type CanisterStatusType = variant { stopped; stopping; running };
58
+
59
+ type CanisterStatusType = variant {
60
+ stopped;
61
+ stopping;
62
+ running;
63
+ };
64
+
47
65
  type ChangeAutoStakeMaturity = record {
48
66
  requested_setting_for_auto_stake_maturity : bool;
49
67
  };
50
- type ClaimOrRefresh = record { by : opt By };
51
- type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId };
68
+
69
+ type ClaimOrRefresh = record {
70
+ by : opt By;
71
+ };
72
+
73
+ type ClaimOrRefreshResponse = record {
74
+ refreshed_neuron_id : opt NeuronId;
75
+ };
76
+
52
77
  type ClaimSwapNeuronsRequest = record {
53
78
  neuron_recipes : opt NeuronRecipes;
54
- neuron_parameters : vec NeuronParameters;
55
79
  };
80
+
56
81
  type ClaimSwapNeuronsResponse = record {
57
82
  claim_swap_neurons_result : opt ClaimSwapNeuronsResult;
58
83
  };
59
- type ClaimSwapNeuronsResult = variant { Ok : ClaimedSwapNeurons; Err : int32 };
60
- type ClaimedSwapNeurons = record { swap_neurons : vec SwapNeuron };
84
+
85
+ type ClaimSwapNeuronsResult = variant {
86
+ Ok : ClaimedSwapNeurons;
87
+ Err : int32;
88
+ };
89
+
90
+ type ClaimedSwapNeurons = record {
91
+ swap_neurons : vec SwapNeuron;
92
+ };
93
+
61
94
  type Command = variant {
62
95
  Split : Split;
63
96
  Follow : Follow;
@@ -72,6 +105,7 @@ type Command = variant {
72
105
  MergeMaturity : MergeMaturity;
73
106
  Disburse : Disburse;
74
107
  };
108
+
75
109
  type Command_1 = variant {
76
110
  Error : GovernanceError;
77
111
  Split : SplitResponse;
@@ -87,6 +121,7 @@ type Command_1 = variant {
87
121
  Disburse : DisburseResponse;
88
122
  AddNeuronPermission : record {};
89
123
  };
124
+
90
125
  type Command_2 = variant {
91
126
  Split : Split;
92
127
  Follow : Follow;
@@ -102,80 +137,134 @@ type Command_2 = variant {
102
137
  MergeMaturity : MergeMaturity;
103
138
  Disburse : Disburse;
104
139
  };
105
- type Configure = record { operation : opt Operation };
106
- type Decimal = record { human_readable : opt text };
107
- type DefaultFollowees = record { followees : vec record { nat64; Followees } };
140
+
141
+ type Configure = record {
142
+ operation : opt Operation;
143
+ };
144
+
145
+ type Decimal = record {
146
+ human_readable : opt text;
147
+ };
148
+
149
+ type DefaultFollowees = record {
150
+ followees : vec record { nat64; Followees };
151
+ };
152
+
108
153
  type DefiniteCanisterSettingsArgs = record {
109
154
  freezing_threshold : nat;
110
155
  controllers : vec principal;
156
+ wasm_memory_limit : opt nat;
111
157
  memory_allocation : nat;
112
158
  compute_allocation : nat;
113
159
  };
160
+
114
161
  type DeregisterDappCanisters = record {
115
162
  canister_ids : vec principal;
116
163
  new_controllers : vec principal;
117
164
  };
118
- type Disburse = record { to_account : opt Account; amount : opt Amount };
165
+
166
+ type Disburse = record {
167
+ to_account : opt Account;
168
+ amount : opt Amount;
169
+ };
170
+
119
171
  type DisburseMaturity = record {
120
172
  to_account : opt Account;
121
173
  percentage_to_disburse : nat32;
122
174
  };
175
+
123
176
  type DisburseMaturityInProgress = record {
124
177
  timestamp_of_disbursement_seconds : nat64;
125
178
  amount_e8s : nat64;
126
179
  account_to_disburse_to : opt Account;
127
180
  finalize_disbursement_timestamp_seconds : opt nat64;
128
181
  };
182
+
129
183
  type DisburseMaturityResponse = record {
130
184
  amount_disbursed_e8s : nat64;
131
185
  amount_deducted_e8s : opt nat64;
132
186
  };
133
- type DisburseResponse = record { transfer_block_height : nat64 };
187
+
188
+ type DisburseResponse = record {
189
+ transfer_block_height : nat64;
190
+ };
191
+
134
192
  type DissolveState = variant {
135
193
  DissolveDelaySeconds : nat64;
136
194
  WhenDissolvedTimestampSeconds : nat64;
137
195
  };
196
+
138
197
  type ExecuteGenericNervousSystemFunction = record {
139
198
  function_id : nat64;
140
199
  payload : blob;
141
200
  };
201
+
142
202
  type FinalizeDisburseMaturity = record {
143
203
  amount_to_be_disbursed_e8s : nat64;
144
204
  to_account : opt Account;
145
205
  };
146
- type Follow = record { function_id : nat64; followees : vec NeuronId };
147
- type Followees = record { followees : vec NeuronId };
206
+
207
+ type Follow = record {
208
+ function_id : nat64;
209
+ followees : vec NeuronId;
210
+ };
211
+
212
+ type Followees = record {
213
+ followees : vec NeuronId;
214
+ };
215
+
148
216
  type FunctionType = variant {
149
217
  NativeNervousSystemFunction : record {};
150
218
  GenericNervousSystemFunction : GenericNervousSystemFunction;
151
219
  };
220
+
152
221
  type GenericNervousSystemFunction = record {
153
222
  validator_canister_id : opt principal;
154
223
  target_canister_id : opt principal;
155
224
  validator_method_name : opt text;
156
225
  target_method_name : opt text;
157
226
  };
227
+
158
228
  type GetMaturityModulationResponse = record {
159
229
  maturity_modulation : opt MaturityModulation;
160
230
  };
231
+
161
232
  type GetMetadataResponse = record {
162
233
  url : opt text;
163
234
  logo : opt text;
164
235
  name : opt text;
165
236
  description : opt text;
166
237
  };
167
- type GetModeResponse = record { mode : opt int32 };
168
- type GetNeuron = record { neuron_id : opt NeuronId };
169
- type GetNeuronResponse = record { result : opt Result };
170
- type GetProposal = record { proposal_id : opt ProposalId };
171
- type GetProposalResponse = record { result : opt Result_1 };
238
+
239
+ type GetModeResponse = record {
240
+ mode : opt int32;
241
+ };
242
+
243
+ type GetNeuron = record {
244
+ neuron_id : opt NeuronId;
245
+ };
246
+
247
+ type GetNeuronResponse = record {
248
+ result : opt Result;
249
+ };
250
+
251
+ type GetProposal = record {
252
+ proposal_id : opt ProposalId;
253
+ };
254
+
255
+ type GetProposalResponse = record {
256
+ result : opt Result_1;
257
+ };
258
+
172
259
  type GetRunningSnsVersionResponse = record {
173
260
  deployed_version : opt Version;
174
261
  pending_version : opt UpgradeInProgress;
175
262
  };
263
+
176
264
  type GetSnsInitializationParametersResponse = record {
177
265
  sns_initialization_parameters : text;
178
266
  };
267
+
179
268
  type Governance = record {
180
269
  root_canister_id : opt principal;
181
270
  id_to_nervous_system_functions : vec record { nat64; NervousSystemFunction };
@@ -195,7 +284,9 @@ type Governance = record {
195
284
  sns_metadata : opt ManageSnsMetadata;
196
285
  neurons : vec record { text; Neuron };
197
286
  genesis_timestamp_seconds : nat64;
287
+ migrated_root_wasm_memory_limit : opt bool;
198
288
  };
289
+
199
290
  type GovernanceCachedMetrics = record {
200
291
  not_dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
201
292
  garbage_collectable_neurons_count : nat64;
@@ -213,20 +304,31 @@ type GovernanceCachedMetrics = record {
213
304
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
214
305
  timestamp_seconds : nat64;
215
306
  };
216
- type GovernanceError = record { error_message : text; error_type : int32 };
307
+
308
+ type GovernanceError = record {
309
+ error_message : text;
310
+ error_type : int32;
311
+ };
312
+
217
313
  type IncreaseDissolveDelay = record {
218
314
  additional_dissolve_delay_seconds : nat32;
219
315
  };
316
+
220
317
  type ListNervousSystemFunctionsResponse = record {
221
318
  reserved_ids : vec nat64;
222
319
  functions : vec NervousSystemFunction;
223
320
  };
321
+
224
322
  type ListNeurons = record {
225
323
  of_principal : opt principal;
226
324
  limit : nat32;
227
325
  start_page_at : opt NeuronId;
228
326
  };
229
- type ListNeuronsResponse = record { neurons : vec Neuron };
327
+
328
+ type ListNeuronsResponse = record {
329
+ neurons : vec Neuron;
330
+ };
331
+
230
332
  type ListProposals = record {
231
333
  include_reward_status : vec int32;
232
334
  before_proposal : opt ProposalId;
@@ -234,10 +336,12 @@ type ListProposals = record {
234
336
  exclude_type : vec nat64;
235
337
  include_status : vec int32;
236
338
  };
339
+
237
340
  type ListProposalsResponse = record {
238
341
  include_ballots_by_caller : opt bool;
239
342
  proposals : vec ProposalData;
240
343
  };
344
+
241
345
  type ManageDappCanisterSettings = record {
242
346
  freezing_threshold : opt nat64;
243
347
  canister_ids : vec principal;
@@ -247,44 +351,71 @@ type ManageDappCanisterSettings = record {
247
351
  memory_allocation : opt nat64;
248
352
  compute_allocation : opt nat64;
249
353
  };
354
+
250
355
  type ManageLedgerParameters = record {
251
356
  token_symbol : opt text;
252
357
  transfer_fee : opt nat64;
253
358
  token_logo : opt text;
254
359
  token_name : opt text;
255
360
  };
256
- type ManageNeuron = record { subaccount : blob; command : opt Command };
257
- type ManageNeuronResponse = record { command : opt Command_1 };
361
+
362
+ type ManageNeuron = record {
363
+ subaccount : blob;
364
+ command : opt Command;
365
+ };
366
+
367
+ type ManageNeuronResponse = record {
368
+ command : opt Command_1;
369
+ };
370
+
258
371
  type ManageSnsMetadata = record {
259
372
  url : opt text;
260
373
  logo : opt text;
261
374
  name : opt text;
262
375
  description : opt text;
263
376
  };
377
+
264
378
  type MaturityModulation = record {
265
379
  current_basis_points : opt int32;
266
380
  updated_at_timestamp_seconds : opt nat64;
267
381
  };
268
- type MemoAndController = record { controller : opt principal; memo : nat64 };
269
- type MergeMaturity = record { percentage_to_merge : nat32 };
382
+
383
+ type MemoAndController = record {
384
+ controller : opt principal;
385
+ memo : nat64;
386
+ };
387
+
388
+ type MergeMaturity = record {
389
+ percentage_to_merge : nat32;
390
+ };
391
+
270
392
  type MergeMaturityResponse = record {
271
393
  merged_maturity_e8s : nat64;
272
394
  new_stake_e8s : nat64;
273
395
  };
396
+
274
397
  type MintSnsTokens = record {
275
398
  to_principal : opt principal;
276
399
  to_subaccount : opt Subaccount;
277
400
  memo : opt nat64;
278
401
  amount_e8s : opt nat64;
279
402
  };
280
- type MintSnsTokensActionAuxiliary = record { valuation : opt Valuation };
281
- type Motion = record { motion_text : text };
403
+
404
+ type MintSnsTokensActionAuxiliary = record {
405
+ valuation : opt Valuation;
406
+ };
407
+
408
+ type Motion = record {
409
+ motion_text : text;
410
+ };
411
+
282
412
  type NervousSystemFunction = record {
283
413
  id : nat64;
284
414
  name : text;
285
415
  description : opt text;
286
416
  function_type : opt FunctionType;
287
417
  };
418
+
288
419
  type NervousSystemParameters = record {
289
420
  default_followees : opt DefaultFollowees;
290
421
  max_dissolve_delay_seconds : opt nat64;
@@ -307,6 +438,7 @@ type NervousSystemParameters = record {
307
438
  maturity_modulation_disabled : opt bool;
308
439
  max_number_of_principals_per_neuron : opt nat64;
309
440
  };
441
+
310
442
  type Neuron = record {
311
443
  id : opt NeuronId;
312
444
  staked_maturity_e8s_equivalent : opt nat64;
@@ -324,12 +456,20 @@ type Neuron = record {
324
456
  followees : vec record { nat64; Followees };
325
457
  neuron_fees_e8s : nat64;
326
458
  };
327
- type NeuronId = record { id : blob };
328
- type NeuronIds = record { neuron_ids : vec NeuronId };
459
+
460
+ type NeuronId = record {
461
+ id : blob;
462
+ };
463
+
464
+ type NeuronIds = record {
465
+ neuron_ids : vec NeuronId;
466
+ };
467
+
329
468
  type NeuronInFlightCommand = record {
330
469
  command : opt Command_2;
331
470
  timestamp : nat64;
332
471
  };
472
+
333
473
  type NeuronParameters = record {
334
474
  controller : opt principal;
335
475
  dissolve_delay_seconds : opt nat64;
@@ -339,11 +479,16 @@ type NeuronParameters = record {
339
479
  hotkey : opt principal;
340
480
  neuron_id : opt NeuronId;
341
481
  };
482
+
342
483
  type NeuronPermission = record {
343
484
  "principal" : opt principal;
344
485
  permission_type : vec int32;
345
486
  };
346
- type NeuronPermissionList = record { permissions : vec int32 };
487
+
488
+ type NeuronPermissionList = record {
489
+ permissions : vec int32;
490
+ };
491
+
347
492
  type NeuronRecipe = record {
348
493
  controller : opt principal;
349
494
  dissolve_delay_seconds : opt nat64;
@@ -352,12 +497,17 @@ type NeuronRecipe = record {
352
497
  followees : opt NeuronIds;
353
498
  neuron_id : opt NeuronId;
354
499
  };
355
- type NeuronRecipes = record { neuron_recipes : vec NeuronRecipe };
500
+
501
+ type NeuronRecipes = record {
502
+ neuron_recipes : vec NeuronRecipe;
503
+ };
504
+
356
505
  type NeuronsFund = record {
357
506
  nns_neuron_hotkeys : opt Principals;
358
507
  nns_neuron_controller : opt principal;
359
508
  nns_neuron_id : opt nat64;
360
509
  };
510
+
361
511
  type Operation = variant {
362
512
  ChangeAutoStakeMaturity : ChangeAutoStakeMaturity;
363
513
  StopDissolving : record {};
@@ -365,15 +515,27 @@ type Operation = variant {
365
515
  IncreaseDissolveDelay : IncreaseDissolveDelay;
366
516
  SetDissolveTimestamp : SetDissolveTimestamp;
367
517
  };
368
- type Participant = variant { NeuronsFund : NeuronsFund; Direct : record {} };
369
- type Percentage = record { basis_points : opt nat64 };
370
- type Principals = record { principals : vec principal };
518
+
519
+ type Participant = variant {
520
+ NeuronsFund : NeuronsFund;
521
+ Direct : record {};
522
+ };
523
+
524
+ type Percentage = record {
525
+ basis_points : opt nat64;
526
+ };
527
+
528
+ type Principals = record {
529
+ principals : vec principal;
530
+ };
531
+
371
532
  type Proposal = record {
372
533
  url : text;
373
534
  title : text;
374
535
  action : opt Action;
375
536
  summary : text;
376
537
  };
538
+
377
539
  type ProposalData = record {
378
540
  id : opt ProposalId;
379
541
  payload_text_rendering : opt text;
@@ -398,15 +560,35 @@ type ProposalData = record {
398
560
  is_eligible_for_rewards : bool;
399
561
  executed_timestamp_seconds : nat64;
400
562
  };
401
- type ProposalId = record { id : nat64 };
402
- type RegisterDappCanisters = record { canister_ids : vec principal };
403
- type RegisterVote = record { vote : int32; proposal : opt ProposalId };
563
+
564
+ type ProposalId = record {
565
+ id : nat64;
566
+ };
567
+
568
+ type RegisterDappCanisters = record {
569
+ canister_ids : vec principal;
570
+ };
571
+
572
+ type RegisterVote = record {
573
+ vote : int32;
574
+ proposal : opt ProposalId;
575
+ };
576
+
404
577
  type RemoveNeuronPermissions = record {
405
578
  permissions_to_remove : opt NeuronPermissionList;
406
579
  principal_id : opt principal;
407
580
  };
408
- type Result = variant { Error : GovernanceError; Neuron : Neuron };
409
- type Result_1 = variant { Error : GovernanceError; Proposal : ProposalData };
581
+
582
+ type Result = variant {
583
+ Error : GovernanceError;
584
+ Neuron : Neuron;
585
+ };
586
+
587
+ type Result_1 = variant {
588
+ Error : GovernanceError;
589
+ Proposal : ProposalData;
590
+ };
591
+
410
592
  type RewardEvent = record {
411
593
  rounds_since_last_distribution : opt nat64;
412
594
  actual_timestamp_seconds : nat64;
@@ -416,24 +598,53 @@ type RewardEvent = record {
416
598
  round : nat64;
417
599
  settled_proposals : vec ProposalId;
418
600
  };
419
- type SetDissolveTimestamp = record { dissolve_timestamp_seconds : nat64 };
420
- type SetMode = record { mode : int32 };
421
- type Split = record { memo : nat64; amount_e8s : nat64 };
422
- type SplitResponse = record { created_neuron_id : opt NeuronId };
423
- type StakeMaturity = record { percentage_to_stake : opt nat32 };
601
+
602
+ type SetDissolveTimestamp = record {
603
+ dissolve_timestamp_seconds : nat64;
604
+ };
605
+
606
+ type SetMode = record {
607
+ mode : int32;
608
+ };
609
+
610
+ type Split = record {
611
+ memo : nat64;
612
+ amount_e8s : nat64;
613
+ };
614
+
615
+ type SplitResponse = record {
616
+ created_neuron_id : opt NeuronId;
617
+ };
618
+
619
+ type StakeMaturity = record {
620
+ percentage_to_stake : opt nat32;
621
+ };
622
+
424
623
  type StakeMaturityResponse = record {
425
624
  maturity_e8s : nat64;
426
625
  staked_maturity_e8s : nat64;
427
626
  };
428
- type Subaccount = record { subaccount : blob };
429
- type SwapNeuron = record { id : opt NeuronId; status : int32 };
627
+
628
+ type Subaccount = record {
629
+ subaccount : blob;
630
+ };
631
+
632
+ type SwapNeuron = record {
633
+ id : opt NeuronId;
634
+ status : int32;
635
+ };
636
+
430
637
  type Tally = record {
431
638
  no : nat64;
432
639
  yes : nat64;
433
640
  total : nat64;
434
641
  timestamp_seconds : nat64;
435
642
  };
436
- type Tokens = record { e8s : opt nat64 };
643
+
644
+ type Tokens = record {
645
+ e8s : opt nat64;
646
+ };
647
+
437
648
  type TransferSnsTreasuryFunds = record {
438
649
  from_treasury : int32;
439
650
  to_principal : opt principal;
@@ -441,29 +652,34 @@ type TransferSnsTreasuryFunds = record {
441
652
  memo : opt nat64;
442
653
  amount_e8s : nat64;
443
654
  };
655
+
444
656
  type UpgradeInProgress = record {
445
657
  mark_failed_at_seconds : nat64;
446
658
  checking_upgrade_lock : nat64;
447
659
  proposal_id : nat64;
448
660
  target_version : opt Version;
449
661
  };
662
+
450
663
  type UpgradeSnsControlledCanister = record {
451
664
  new_canister_wasm : blob;
452
665
  mode : opt int32;
453
666
  canister_id : opt principal;
454
667
  canister_upgrade_arg : opt blob;
455
668
  };
669
+
456
670
  type Valuation = record {
457
671
  token : opt int32;
458
672
  account : opt Account;
459
673
  valuation_factors : opt ValuationFactors;
460
674
  timestamp_seconds : opt nat64;
461
675
  };
676
+
462
677
  type ValuationFactors = record {
463
678
  xdrs_per_icp : opt Decimal;
464
679
  icps_per_token : opt Decimal;
465
680
  tokens : opt Tokens;
466
681
  };
682
+
467
683
  type Version = record {
468
684
  archive_wasm_hash : blob;
469
685
  root_wasm_hash : blob;
@@ -472,13 +688,18 @@ type Version = record {
472
688
  governance_wasm_hash : blob;
473
689
  index_wasm_hash : blob;
474
690
  };
691
+
475
692
  type VotingRewardsParameters = record {
476
693
  final_reward_rate_basis_points : opt nat64;
477
694
  initial_reward_rate_basis_points : opt nat64;
478
695
  reward_rate_transition_duration_seconds : opt nat64;
479
696
  round_duration_seconds : opt nat64;
480
697
  };
481
- type WaitForQuietState = record { current_deadline_timestamp_seconds : nat64 };
698
+
699
+ type WaitForQuietState = record {
700
+ current_deadline_timestamp_seconds : nat64;
701
+ };
702
+
482
703
  service : (Governance) -> {
483
704
  claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
484
705
  fail_stuck_upgrade_in_progress : (record {}) -> (record {});
@@ -502,4 +723,4 @@ service : (Governance) -> {
502
723
  list_proposals : (ListProposals) -> (ListProposalsResponse) query;
503
724
  manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
504
725
  set_mode : (SetMode) -> (record {});
505
- }
726
+ }