@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
@@ -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_test.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_test.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,26 +21,41 @@ 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
  };
24
- type AddMaturityRequest = record { id : opt NeuronId; amount_e8s : opt nat64 };
25
- type AddMaturityResponse = record { new_maturity_e8s : opt nat64 };
29
+
30
+ type AddMaturityRequest = record {
31
+ id : opt NeuronId;
32
+ amount_e8s : opt nat64;
33
+ };
34
+
35
+ type AddMaturityResponse = record {
36
+ new_maturity_e8s : opt nat64;
37
+ };
38
+
26
39
  type AddNeuronPermissions = record {
27
40
  permissions_to_add : opt NeuronPermissionList;
28
41
  principal_id : opt principal;
29
42
  };
30
- type Amount = record { e8s : nat64 };
43
+
44
+ type Amount = record {
45
+ e8s : nat64;
46
+ };
47
+
31
48
  type Ballot = record {
32
49
  vote : int32;
33
50
  cast_timestamp_seconds : nat64;
34
51
  voting_power : nat64;
35
52
  };
53
+
36
54
  type By = variant {
37
55
  MemoAndController : MemoAndController;
38
56
  NeuronId : record {};
39
57
  };
58
+
40
59
  type CanisterStatusResultV2 = record {
41
60
  status : CanisterStatusType;
42
61
  memory_size : nat;
@@ -45,21 +64,42 @@ type CanisterStatusResultV2 = record {
45
64
  idle_cycles_burned_per_day : nat;
46
65
  module_hash : opt blob;
47
66
  };
48
- type CanisterStatusType = variant { stopped; stopping; running };
67
+
68
+ type CanisterStatusType = variant {
69
+ stopped;
70
+ stopping;
71
+ running;
72
+ };
73
+
49
74
  type ChangeAutoStakeMaturity = record {
50
75
  requested_setting_for_auto_stake_maturity : bool;
51
76
  };
52
- type ClaimOrRefresh = record { by : opt By };
53
- type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId };
77
+
78
+ type ClaimOrRefresh = record {
79
+ by : opt By;
80
+ };
81
+
82
+ type ClaimOrRefreshResponse = record {
83
+ refreshed_neuron_id : opt NeuronId;
84
+ };
85
+
54
86
  type ClaimSwapNeuronsRequest = record {
55
87
  neuron_recipes : opt NeuronRecipes;
56
- neuron_parameters : vec NeuronParameters;
57
88
  };
89
+
58
90
  type ClaimSwapNeuronsResponse = record {
59
91
  claim_swap_neurons_result : opt ClaimSwapNeuronsResult;
60
92
  };
61
- type ClaimSwapNeuronsResult = variant { Ok : ClaimedSwapNeurons; Err : int32 };
62
- type ClaimedSwapNeurons = record { swap_neurons : vec SwapNeuron };
93
+
94
+ type ClaimSwapNeuronsResult = variant {
95
+ Ok : ClaimedSwapNeurons;
96
+ Err : int32;
97
+ };
98
+
99
+ type ClaimedSwapNeurons = record {
100
+ swap_neurons : vec SwapNeuron;
101
+ };
102
+
63
103
  type Command = variant {
64
104
  Split : Split;
65
105
  Follow : Follow;
@@ -74,6 +114,7 @@ type Command = variant {
74
114
  MergeMaturity : MergeMaturity;
75
115
  Disburse : Disburse;
76
116
  };
117
+
77
118
  type Command_1 = variant {
78
119
  Error : GovernanceError;
79
120
  Split : SplitResponse;
@@ -89,6 +130,7 @@ type Command_1 = variant {
89
130
  Disburse : DisburseResponse;
90
131
  AddNeuronPermission : record {};
91
132
  };
133
+
92
134
  type Command_2 = variant {
93
135
  Split : Split;
94
136
  Follow : Follow;
@@ -104,80 +146,134 @@ type Command_2 = variant {
104
146
  MergeMaturity : MergeMaturity;
105
147
  Disburse : Disburse;
106
148
  };
107
- type Configure = record { operation : opt Operation };
108
- type Decimal = record { human_readable : opt text };
109
- type DefaultFollowees = record { followees : vec record { nat64; Followees } };
149
+
150
+ type Configure = record {
151
+ operation : opt Operation;
152
+ };
153
+
154
+ type Decimal = record {
155
+ human_readable : opt text;
156
+ };
157
+
158
+ type DefaultFollowees = record {
159
+ followees : vec record { nat64; Followees };
160
+ };
161
+
110
162
  type DefiniteCanisterSettingsArgs = record {
111
163
  freezing_threshold : nat;
112
164
  controllers : vec principal;
165
+ wasm_memory_limit : opt nat;
113
166
  memory_allocation : nat;
114
167
  compute_allocation : nat;
115
168
  };
169
+
116
170
  type DeregisterDappCanisters = record {
117
171
  canister_ids : vec principal;
118
172
  new_controllers : vec principal;
119
173
  };
120
- type Disburse = record { to_account : opt Account; amount : opt Amount };
174
+
175
+ type Disburse = record {
176
+ to_account : opt Account;
177
+ amount : opt Amount;
178
+ };
179
+
121
180
  type DisburseMaturity = record {
122
181
  to_account : opt Account;
123
182
  percentage_to_disburse : nat32;
124
183
  };
184
+
125
185
  type DisburseMaturityInProgress = record {
126
186
  timestamp_of_disbursement_seconds : nat64;
127
187
  amount_e8s : nat64;
128
188
  account_to_disburse_to : opt Account;
129
189
  finalize_disbursement_timestamp_seconds : opt nat64;
130
190
  };
191
+
131
192
  type DisburseMaturityResponse = record {
132
193
  amount_disbursed_e8s : nat64;
133
194
  amount_deducted_e8s : opt nat64;
134
195
  };
135
- type DisburseResponse = record { transfer_block_height : nat64 };
196
+
197
+ type DisburseResponse = record {
198
+ transfer_block_height : nat64;
199
+ };
200
+
136
201
  type DissolveState = variant {
137
202
  DissolveDelaySeconds : nat64;
138
203
  WhenDissolvedTimestampSeconds : nat64;
139
204
  };
205
+
140
206
  type ExecuteGenericNervousSystemFunction = record {
141
207
  function_id : nat64;
142
208
  payload : blob;
143
209
  };
210
+
144
211
  type FinalizeDisburseMaturity = record {
145
212
  amount_to_be_disbursed_e8s : nat64;
146
213
  to_account : opt Account;
147
214
  };
148
- type Follow = record { function_id : nat64; followees : vec NeuronId };
149
- type Followees = record { followees : vec NeuronId };
215
+
216
+ type Follow = record {
217
+ function_id : nat64;
218
+ followees : vec NeuronId;
219
+ };
220
+
221
+ type Followees = record {
222
+ followees : vec NeuronId;
223
+ };
224
+
150
225
  type FunctionType = variant {
151
226
  NativeNervousSystemFunction : record {};
152
227
  GenericNervousSystemFunction : GenericNervousSystemFunction;
153
228
  };
229
+
154
230
  type GenericNervousSystemFunction = record {
155
231
  validator_canister_id : opt principal;
156
232
  target_canister_id : opt principal;
157
233
  validator_method_name : opt text;
158
234
  target_method_name : opt text;
159
235
  };
236
+
160
237
  type GetMaturityModulationResponse = record {
161
238
  maturity_modulation : opt MaturityModulation;
162
239
  };
240
+
163
241
  type GetMetadataResponse = record {
164
242
  url : opt text;
165
243
  logo : opt text;
166
244
  name : opt text;
167
245
  description : opt text;
168
246
  };
169
- type GetModeResponse = record { mode : opt int32 };
170
- type GetNeuron = record { neuron_id : opt NeuronId };
171
- type GetNeuronResponse = record { result : opt Result };
172
- type GetProposal = record { proposal_id : opt ProposalId };
173
- type GetProposalResponse = record { result : opt Result_1 };
247
+
248
+ type GetModeResponse = record {
249
+ mode : opt int32;
250
+ };
251
+
252
+ type GetNeuron = record {
253
+ neuron_id : opt NeuronId;
254
+ };
255
+
256
+ type GetNeuronResponse = record {
257
+ result : opt Result;
258
+ };
259
+
260
+ type GetProposal = record {
261
+ proposal_id : opt ProposalId;
262
+ };
263
+
264
+ type GetProposalResponse = record {
265
+ result : opt Result_1;
266
+ };
267
+
174
268
  type GetRunningSnsVersionResponse = record {
175
269
  deployed_version : opt Version;
176
270
  pending_version : opt UpgradeInProgress;
177
271
  };
272
+
178
273
  type GetSnsInitializationParametersResponse = record {
179
274
  sns_initialization_parameters : text;
180
275
  };
276
+
181
277
  type Governance = record {
182
278
  root_canister_id : opt principal;
183
279
  id_to_nervous_system_functions : vec record { nat64; NervousSystemFunction };
@@ -197,7 +293,9 @@ type Governance = record {
197
293
  sns_metadata : opt ManageSnsMetadata;
198
294
  neurons : vec record { text; Neuron };
199
295
  genesis_timestamp_seconds : nat64;
296
+ migrated_root_wasm_memory_limit : opt bool;
200
297
  };
298
+
201
299
  type GovernanceCachedMetrics = record {
202
300
  not_dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
203
301
  garbage_collectable_neurons_count : nat64;
@@ -215,20 +313,31 @@ type GovernanceCachedMetrics = record {
215
313
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
216
314
  timestamp_seconds : nat64;
217
315
  };
218
- type GovernanceError = record { error_message : text; error_type : int32 };
316
+
317
+ type GovernanceError = record {
318
+ error_message : text;
319
+ error_type : int32;
320
+ };
321
+
219
322
  type IncreaseDissolveDelay = record {
220
323
  additional_dissolve_delay_seconds : nat32;
221
324
  };
325
+
222
326
  type ListNervousSystemFunctionsResponse = record {
223
327
  reserved_ids : vec nat64;
224
328
  functions : vec NervousSystemFunction;
225
329
  };
330
+
226
331
  type ListNeurons = record {
227
332
  of_principal : opt principal;
228
333
  limit : nat32;
229
334
  start_page_at : opt NeuronId;
230
335
  };
231
- type ListNeuronsResponse = record { neurons : vec Neuron };
336
+
337
+ type ListNeuronsResponse = record {
338
+ neurons : vec Neuron;
339
+ };
340
+
232
341
  type ListProposals = record {
233
342
  include_reward_status : vec int32;
234
343
  before_proposal : opt ProposalId;
@@ -236,10 +345,12 @@ type ListProposals = record {
236
345
  exclude_type : vec nat64;
237
346
  include_status : vec int32;
238
347
  };
348
+
239
349
  type ListProposalsResponse = record {
240
350
  include_ballots_by_caller : opt bool;
241
351
  proposals : vec ProposalData;
242
352
  };
353
+
243
354
  type ManageDappCanisterSettings = record {
244
355
  freezing_threshold : opt nat64;
245
356
  canister_ids : vec principal;
@@ -249,48 +360,76 @@ type ManageDappCanisterSettings = record {
249
360
  memory_allocation : opt nat64;
250
361
  compute_allocation : opt nat64;
251
362
  };
363
+
252
364
  type ManageLedgerParameters = record {
253
365
  token_symbol : opt text;
254
366
  transfer_fee : opt nat64;
255
367
  token_logo : opt text;
256
368
  token_name : opt text;
257
369
  };
258
- type ManageNeuron = record { subaccount : blob; command : opt Command };
259
- type ManageNeuronResponse = record { command : opt Command_1 };
370
+
371
+ type ManageNeuron = record {
372
+ subaccount : blob;
373
+ command : opt Command;
374
+ };
375
+
376
+ type ManageNeuronResponse = record {
377
+ command : opt Command_1;
378
+ };
379
+
260
380
  type ManageSnsMetadata = record {
261
381
  url : opt text;
262
382
  logo : opt text;
263
383
  name : opt text;
264
384
  description : opt text;
265
385
  };
386
+
266
387
  type MaturityModulation = record {
267
388
  current_basis_points : opt int32;
268
389
  updated_at_timestamp_seconds : opt nat64;
269
390
  };
270
- type MemoAndController = record { controller : opt principal; memo : nat64 };
271
- type MergeMaturity = record { percentage_to_merge : nat32 };
391
+
392
+ type MemoAndController = record {
393
+ controller : opt principal;
394
+ memo : nat64;
395
+ };
396
+
397
+ type MergeMaturity = record {
398
+ percentage_to_merge : nat32;
399
+ };
400
+
272
401
  type MergeMaturityResponse = record {
273
402
  merged_maturity_e8s : nat64;
274
403
  new_stake_e8s : nat64;
275
404
  };
405
+
276
406
  type MintSnsTokens = record {
277
407
  to_principal : opt principal;
278
408
  to_subaccount : opt Subaccount;
279
409
  memo : opt nat64;
280
410
  amount_e8s : opt nat64;
281
411
  };
282
- type MintSnsTokensActionAuxiliary = record { valuation : opt Valuation };
412
+
413
+ type MintSnsTokensActionAuxiliary = record {
414
+ valuation : opt Valuation;
415
+ };
416
+
283
417
  type MintTokensRequest = record {
284
418
  recipient : opt Account;
285
419
  amount_e8s : opt nat64;
286
420
  };
287
- type Motion = record { motion_text : text };
421
+
422
+ type Motion = record {
423
+ motion_text : text;
424
+ };
425
+
288
426
  type NervousSystemFunction = record {
289
427
  id : nat64;
290
428
  name : text;
291
429
  description : opt text;
292
430
  function_type : opt FunctionType;
293
431
  };
432
+
294
433
  type NervousSystemParameters = record {
295
434
  default_followees : opt DefaultFollowees;
296
435
  max_dissolve_delay_seconds : opt nat64;
@@ -313,6 +452,7 @@ type NervousSystemParameters = record {
313
452
  maturity_modulation_disabled : opt bool;
314
453
  max_number_of_principals_per_neuron : opt nat64;
315
454
  };
455
+
316
456
  type Neuron = record {
317
457
  id : opt NeuronId;
318
458
  staked_maturity_e8s_equivalent : opt nat64;
@@ -330,12 +470,20 @@ type Neuron = record {
330
470
  followees : vec record { nat64; Followees };
331
471
  neuron_fees_e8s : nat64;
332
472
  };
333
- type NeuronId = record { id : blob };
334
- type NeuronIds = record { neuron_ids : vec NeuronId };
473
+
474
+ type NeuronId = record {
475
+ id : blob;
476
+ };
477
+
478
+ type NeuronIds = record {
479
+ neuron_ids : vec NeuronId;
480
+ };
481
+
335
482
  type NeuronInFlightCommand = record {
336
483
  command : opt Command_2;
337
484
  timestamp : nat64;
338
485
  };
486
+
339
487
  type NeuronParameters = record {
340
488
  controller : opt principal;
341
489
  dissolve_delay_seconds : opt nat64;
@@ -345,11 +493,16 @@ type NeuronParameters = record {
345
493
  hotkey : opt principal;
346
494
  neuron_id : opt NeuronId;
347
495
  };
496
+
348
497
  type NeuronPermission = record {
349
498
  "principal" : opt principal;
350
499
  permission_type : vec int32;
351
500
  };
352
- type NeuronPermissionList = record { permissions : vec int32 };
501
+
502
+ type NeuronPermissionList = record {
503
+ permissions : vec int32;
504
+ };
505
+
353
506
  type NeuronRecipe = record {
354
507
  controller : opt principal;
355
508
  dissolve_delay_seconds : opt nat64;
@@ -358,12 +511,17 @@ type NeuronRecipe = record {
358
511
  followees : opt NeuronIds;
359
512
  neuron_id : opt NeuronId;
360
513
  };
361
- type NeuronRecipes = record { neuron_recipes : vec NeuronRecipe };
514
+
515
+ type NeuronRecipes = record {
516
+ neuron_recipes : vec NeuronRecipe;
517
+ };
518
+
362
519
  type NeuronsFund = record {
363
520
  nns_neuron_hotkeys : opt Principals;
364
521
  nns_neuron_controller : opt principal;
365
522
  nns_neuron_id : opt nat64;
366
523
  };
524
+
367
525
  type Operation = variant {
368
526
  ChangeAutoStakeMaturity : ChangeAutoStakeMaturity;
369
527
  StopDissolving : record {};
@@ -371,15 +529,27 @@ type Operation = variant {
371
529
  IncreaseDissolveDelay : IncreaseDissolveDelay;
372
530
  SetDissolveTimestamp : SetDissolveTimestamp;
373
531
  };
374
- type Participant = variant { NeuronsFund : NeuronsFund; Direct : record {} };
375
- type Percentage = record { basis_points : opt nat64 };
376
- type Principals = record { principals : vec principal };
532
+
533
+ type Participant = variant {
534
+ NeuronsFund : NeuronsFund;
535
+ Direct : record {};
536
+ };
537
+
538
+ type Percentage = record {
539
+ basis_points : opt nat64;
540
+ };
541
+
542
+ type Principals = record {
543
+ principals : vec principal;
544
+ };
545
+
377
546
  type Proposal = record {
378
547
  url : text;
379
548
  title : text;
380
549
  action : opt Action;
381
550
  summary : text;
382
551
  };
552
+
383
553
  type ProposalData = record {
384
554
  id : opt ProposalId;
385
555
  payload_text_rendering : opt text;
@@ -404,15 +574,35 @@ type ProposalData = record {
404
574
  is_eligible_for_rewards : bool;
405
575
  executed_timestamp_seconds : nat64;
406
576
  };
407
- type ProposalId = record { id : nat64 };
408
- type RegisterDappCanisters = record { canister_ids : vec principal };
409
- type RegisterVote = record { vote : int32; proposal : opt ProposalId };
577
+
578
+ type ProposalId = record {
579
+ id : nat64;
580
+ };
581
+
582
+ type RegisterDappCanisters = record {
583
+ canister_ids : vec principal;
584
+ };
585
+
586
+ type RegisterVote = record {
587
+ vote : int32;
588
+ proposal : opt ProposalId;
589
+ };
590
+
410
591
  type RemoveNeuronPermissions = record {
411
592
  permissions_to_remove : opt NeuronPermissionList;
412
593
  principal_id : opt principal;
413
594
  };
414
- type Result = variant { Error : GovernanceError; Neuron : Neuron };
415
- type Result_1 = variant { Error : GovernanceError; Proposal : ProposalData };
595
+
596
+ type Result = variant {
597
+ Error : GovernanceError;
598
+ Neuron : Neuron;
599
+ };
600
+
601
+ type Result_1 = variant {
602
+ Error : GovernanceError;
603
+ Proposal : ProposalData;
604
+ };
605
+
416
606
  type RewardEvent = record {
417
607
  rounds_since_last_distribution : opt nat64;
418
608
  actual_timestamp_seconds : nat64;
@@ -422,24 +612,53 @@ type RewardEvent = record {
422
612
  round : nat64;
423
613
  settled_proposals : vec ProposalId;
424
614
  };
425
- type SetDissolveTimestamp = record { dissolve_timestamp_seconds : nat64 };
426
- type SetMode = record { mode : int32 };
427
- type Split = record { memo : nat64; amount_e8s : nat64 };
428
- type SplitResponse = record { created_neuron_id : opt NeuronId };
429
- type StakeMaturity = record { percentage_to_stake : opt nat32 };
615
+
616
+ type SetDissolveTimestamp = record {
617
+ dissolve_timestamp_seconds : nat64;
618
+ };
619
+
620
+ type SetMode = record {
621
+ mode : int32;
622
+ };
623
+
624
+ type Split = record {
625
+ memo : nat64;
626
+ amount_e8s : nat64;
627
+ };
628
+
629
+ type SplitResponse = record {
630
+ created_neuron_id : opt NeuronId;
631
+ };
632
+
633
+ type StakeMaturity = record {
634
+ percentage_to_stake : opt nat32;
635
+ };
636
+
430
637
  type StakeMaturityResponse = record {
431
638
  maturity_e8s : nat64;
432
639
  staked_maturity_e8s : nat64;
433
640
  };
434
- type Subaccount = record { subaccount : blob };
435
- type SwapNeuron = record { id : opt NeuronId; status : int32 };
641
+
642
+ type Subaccount = record {
643
+ subaccount : blob;
644
+ };
645
+
646
+ type SwapNeuron = record {
647
+ id : opt NeuronId;
648
+ status : int32;
649
+ };
650
+
436
651
  type Tally = record {
437
652
  no : nat64;
438
653
  yes : nat64;
439
654
  total : nat64;
440
655
  timestamp_seconds : nat64;
441
656
  };
442
- type Tokens = record { e8s : opt nat64 };
657
+
658
+ type Tokens = record {
659
+ e8s : opt nat64;
660
+ };
661
+
443
662
  type TransferSnsTreasuryFunds = record {
444
663
  from_treasury : int32;
445
664
  to_principal : opt principal;
@@ -447,29 +666,34 @@ type TransferSnsTreasuryFunds = record {
447
666
  memo : opt nat64;
448
667
  amount_e8s : nat64;
449
668
  };
669
+
450
670
  type UpgradeInProgress = record {
451
671
  mark_failed_at_seconds : nat64;
452
672
  checking_upgrade_lock : nat64;
453
673
  proposal_id : nat64;
454
674
  target_version : opt Version;
455
675
  };
676
+
456
677
  type UpgradeSnsControlledCanister = record {
457
678
  new_canister_wasm : blob;
458
679
  mode : opt int32;
459
680
  canister_id : opt principal;
460
681
  canister_upgrade_arg : opt blob;
461
682
  };
683
+
462
684
  type Valuation = record {
463
685
  token : opt int32;
464
686
  account : opt Account;
465
687
  valuation_factors : opt ValuationFactors;
466
688
  timestamp_seconds : opt nat64;
467
689
  };
690
+
468
691
  type ValuationFactors = record {
469
692
  xdrs_per_icp : opt Decimal;
470
693
  icps_per_token : opt Decimal;
471
694
  tokens : opt Tokens;
472
695
  };
696
+
473
697
  type Version = record {
474
698
  archive_wasm_hash : blob;
475
699
  root_wasm_hash : blob;
@@ -478,13 +702,18 @@ type Version = record {
478
702
  governance_wasm_hash : blob;
479
703
  index_wasm_hash : blob;
480
704
  };
705
+
481
706
  type VotingRewardsParameters = record {
482
707
  final_reward_rate_basis_points : opt nat64;
483
708
  initial_reward_rate_basis_points : opt nat64;
484
709
  reward_rate_transition_duration_seconds : opt nat64;
485
710
  round_duration_seconds : opt nat64;
486
711
  };
487
- type WaitForQuietState = record { current_deadline_timestamp_seconds : nat64 };
712
+
713
+ type WaitForQuietState = record {
714
+ current_deadline_timestamp_seconds : nat64;
715
+ };
716
+
488
717
  service : (Governance) -> {
489
718
  add_maturity : (AddMaturityRequest) -> (AddMaturityResponse);
490
719
  claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
@@ -511,4 +740,4 @@ service : (Governance) -> {
511
740
  mint_tokens : (MintTokensRequest) -> (record {});
512
741
  set_mode : (SetMode) -> (record {});
513
742
  update_neuron : (Neuron) -> (opt GovernanceError);
514
- }
743
+ }
@@ -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
  });
@@ -406,18 +407,8 @@ export const idlFactory = ({ IDL }) => {
406
407
  const NeuronRecipes = IDL.Record({
407
408
  'neuron_recipes' : IDL.Vec(NeuronRecipe),
408
409
  });
409
- const NeuronParameters = IDL.Record({
410
- 'controller' : IDL.Opt(IDL.Principal),
411
- 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
412
- 'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
413
- 'stake_e8s' : IDL.Opt(IDL.Nat64),
414
- 'followees' : IDL.Vec(NeuronId),
415
- 'hotkey' : IDL.Opt(IDL.Principal),
416
- 'neuron_id' : IDL.Opt(NeuronId),
417
- });
418
410
  const ClaimSwapNeuronsRequest = IDL.Record({
419
411
  'neuron_recipes' : IDL.Opt(NeuronRecipes),
420
- 'neuron_parameters' : IDL.Vec(NeuronParameters),
421
412
  });
422
413
  const SwapNeuron = IDL.Record({
423
414
  'id' : IDL.Opt(NeuronId),
@@ -460,6 +451,7 @@ export const idlFactory = ({ IDL }) => {
460
451
  const DefiniteCanisterSettingsArgs = IDL.Record({
461
452
  'freezing_threshold' : IDL.Nat,
462
453
  'controllers' : IDL.Vec(IDL.Principal),
454
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
463
455
  'memory_allocation' : IDL.Nat,
464
456
  'compute_allocation' : IDL.Nat,
465
457
  });
@@ -997,6 +989,7 @@ export const init = ({ IDL }) => {
997
989
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
998
990
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
999
991
  'sns_metadata' : IDL.Opt(ManageSnsMetadata),
992
+ 'migrated_root_wasm_memory_limit' : IDL.Opt(IDL.Bool),
1000
993
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
1001
994
  'genesis_timestamp_seconds' : IDL.Nat64,
1002
995
  });