@dfinity/nns 8.1.0 → 8.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.
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2021 DFINITY Stiftung.
189
+ Copyright 2025 DFINITY Stiftung.
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -173,7 +173,7 @@ Parameters:
173
173
 
174
174
  ### :factory: GovernanceCanister
175
175
 
176
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L89)
176
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L91)
177
177
 
178
178
  #### Methods
179
179
 
@@ -209,6 +209,7 @@ Parameters:
209
209
  - [claimOrRefreshNeuronFromAccount](#gear-claimorrefreshneuronfromaccount)
210
210
  - [claimOrRefreshNeuron](#gear-claimorrefreshneuron)
211
211
  - [getNeuron](#gear-getneuron)
212
+ - [getNetworkEconomicsParameters](#gear-getnetworkeconomicsparameters)
212
213
 
213
214
  ##### :gear: create
214
215
 
@@ -216,7 +217,7 @@ Parameters:
216
217
  | -------- | ------------------------------------------------------------- |
217
218
  | `create` | `(options?: GovernanceCanisterOptions) => GovernanceCanister` |
218
219
 
219
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L104)
220
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L106)
220
221
 
221
222
  ##### :gear: listNeurons
222
223
 
@@ -233,7 +234,7 @@ The backend treats `includeEmptyNeurons` as true if absent.
233
234
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
234
235
  | `listNeurons` | `({ certified, neuronIds, includeEmptyNeurons, includePublicNeurons, }: { certified: boolean; neuronIds?: bigint[] or undefined; includeEmptyNeurons?: boolean or undefined; includePublicNeurons?: boolean or undefined; }) => Promise<NeuronInfo[]>` |
235
236
 
236
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L144)
237
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L146)
237
238
 
238
239
  ##### :gear: listKnownNeurons
239
240
 
@@ -247,7 +248,7 @@ it is fetched using a query call.
247
248
  | ------------------ | ------------------------------------------------- |
248
249
  | `listKnownNeurons` | `(certified?: boolean) => Promise<KnownNeuron[]>` |
249
250
 
250
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L187)
251
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L189)
251
252
 
252
253
  ##### :gear: getLastestRewardEvent
253
254
 
@@ -260,7 +261,7 @@ it's fetched using a query call.
260
261
  | ----------------------- | ----------------------------------------------- |
261
262
  | `getLastestRewardEvent` | `(certified?: boolean) => Promise<RewardEvent>` |
262
263
 
263
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L209)
264
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L211)
264
265
 
265
266
  ##### :gear: listProposals
266
267
 
@@ -279,7 +280,7 @@ Parameters:
279
280
  - `request`: the options to list the proposals (limit number of results, topics to search for, etc.)
280
281
  - `certified`: query or update calls
281
282
 
282
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L225)
283
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L227)
283
284
 
284
285
  ##### :gear: stakeNeuron
285
286
 
@@ -287,7 +288,7 @@ Parameters:
287
288
  | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
288
289
  | `stakeNeuron` | `({ stake, principal, fromSubAccount, ledgerCanister, createdAt, fee, }: { stake: bigint; principal: Principal; fromSubAccount?: number[] or undefined; ledgerCanister: LedgerCanister; createdAt?: bigint or undefined; fee?: bigint or undefined; }) => Promise<...>` |
289
290
 
290
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L244)
291
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L246)
291
292
 
292
293
  ##### :gear: increaseDissolveDelay
293
294
 
@@ -297,7 +298,7 @@ Increases dissolve delay of a neuron
297
298
  | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
298
299
  | `increaseDissolveDelay` | `({ neuronId, additionalDissolveDelaySeconds, }: { neuronId: bigint; additionalDissolveDelaySeconds: number; }) => Promise<void>` |
299
300
 
300
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L305)
301
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L307)
301
302
 
302
303
  ##### :gear: setDissolveDelay
303
304
 
@@ -308,7 +309,7 @@ The new date is now + dissolveDelaySeconds.
308
309
  | ------------------ | ------------------------------------------------------------------------------------------------------------- |
309
310
  | `setDissolveDelay` | `({ neuronId, dissolveDelaySeconds, }: { neuronId: bigint; dissolveDelaySeconds: number; }) => Promise<void>` |
310
311
 
311
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L331)
312
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L333)
312
313
 
313
314
  ##### :gear: startDissolving
314
315
 
@@ -318,7 +319,7 @@ Start dissolving process of a neuron
318
319
  | ----------------- | ------------------------------------- |
319
320
  | `startDissolving` | `(neuronId: bigint) => Promise<void>` |
320
321
 
321
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L354)
322
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L356)
322
323
 
323
324
  ##### :gear: stopDissolving
324
325
 
@@ -328,7 +329,7 @@ Stop dissolving process of a neuron
328
329
  | ---------------- | ------------------------------------- |
329
330
  | `stopDissolving` | `(neuronId: bigint) => Promise<void>` |
330
331
 
331
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L368)
332
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L370)
332
333
 
333
334
  ##### :gear: joinCommunityFund
334
335
 
@@ -338,7 +339,7 @@ Neuron joins the community fund
338
339
  | ------------------- | ------------------------------------- |
339
340
  | `joinCommunityFund` | `(neuronId: bigint) => Promise<void>` |
340
341
 
341
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L382)
342
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L384)
342
343
 
343
344
  ##### :gear: autoStakeMaturity
344
345
 
@@ -353,7 +354,7 @@ Parameters:
353
354
  - `neuronId`: The id of the neuron for which to request a change of the auto stake feature
354
355
  - `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
355
356
 
356
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L400)
357
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L402)
357
358
 
358
359
  ##### :gear: leaveCommunityFund
359
360
 
@@ -363,7 +364,7 @@ Neuron leaves the community fund
363
364
  | -------------------- | ------------------------------------- |
364
365
  | `leaveCommunityFund` | `(neuronId: bigint) => Promise<void>` |
365
366
 
366
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L415)
367
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L417)
367
368
 
368
369
  ##### :gear: setVisibility
369
370
 
@@ -373,7 +374,7 @@ Set visibility of a neuron
373
374
  | --------------- | ------------------------------------------------------------------- |
374
375
  | `setVisibility` | `(neuronId: bigint, visibility: NeuronVisibility) => Promise<void>` |
375
376
 
376
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L429)
377
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L431)
377
378
 
378
379
  ##### :gear: setNodeProviderAccount
379
380
 
@@ -384,7 +385,7 @@ Where the reward is paid to.
384
385
  | ------------------------ | ---------------------------------------------- |
385
386
  | `setNodeProviderAccount` | `(accountIdentifier: string) => Promise<void>` |
386
387
 
387
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L449)
388
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L451)
388
389
 
389
390
  ##### :gear: mergeNeurons
390
391
 
@@ -394,7 +395,7 @@ Merge two neurons
394
395
  | -------------- | --------------------------------------------------------------------------------- |
395
396
  | `mergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<void>` |
396
397
 
397
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L469)
398
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L471)
398
399
 
399
400
  ##### :gear: simulateMergeNeurons
400
401
 
@@ -404,7 +405,7 @@ Simulate merging two neurons
404
405
  | ---------------------- | --------------------------------------------------------------------------------------- |
405
406
  | `simulateMergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<NeuronInfo>` |
406
407
 
407
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L486)
408
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L488)
408
409
 
409
410
  ##### :gear: splitNeuron
410
411
 
@@ -414,7 +415,7 @@ Splits a neuron creating a new one
414
415
  | ------------- | ----------------------------------------------------------------------------------- |
415
416
  | `splitNeuron` | `({ neuronId, amount, }: { neuronId: bigint; amount: bigint; }) => Promise<bigint>` |
416
417
 
417
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L531)
418
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L533)
418
419
 
419
420
  ##### :gear: getProposal
420
421
 
@@ -427,7 +428,7 @@ it is fetched using a query call.
427
428
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
428
429
  | `getProposal` | `({ proposalId, certified, }: { proposalId: bigint; certified?: boolean or undefined; }) => Promise<ProposalInfo or undefined>` |
429
430
 
430
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L571)
431
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L573)
431
432
 
432
433
  ##### :gear: makeProposal
433
434
 
@@ -437,7 +438,7 @@ Create new proposal
437
438
  | -------------- | ---------------------------------------------------------------- |
438
439
  | `makeProposal` | `(request: MakeProposalRequest) => Promise<bigint or undefined>` |
439
440
 
440
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L589)
441
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L591)
441
442
 
442
443
  ##### :gear: registerVote
443
444
 
@@ -447,7 +448,7 @@ Registers vote for a proposal from the neuron passed.
447
448
  | -------------- | ----------------------------------------------------------------------------------------------------------- |
448
449
  | `registerVote` | `({ neuronId, vote, proposalId, }: { neuronId: bigint; vote: Vote; proposalId: bigint; }) => Promise<void>` |
449
450
 
450
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L610)
451
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L612)
451
452
 
452
453
  ##### :gear: setFollowees
453
454
 
@@ -457,7 +458,7 @@ Edit neuron followees per topic
457
458
  | -------------- | ------------------------------------------------- |
458
459
  | `setFollowees` | `(followRequest: FollowRequest) => Promise<void>` |
459
460
 
460
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L632)
461
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L634)
461
462
 
462
463
  ##### :gear: disburse
463
464
 
@@ -467,7 +468,7 @@ Disburse neuron on Account
467
468
  | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
468
469
  | `disburse` | `({ neuronId, toAccountId, amount, }: { neuronId: bigint; toAccountId?: string or undefined; amount?: bigint or undefined; }) => Promise<void>` |
469
470
 
470
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L647)
471
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L649)
471
472
 
472
473
  ##### :gear: refreshVotingPower
473
474
 
@@ -479,7 +480,7 @@ parameter of the neuron to the current time).
479
480
  | -------------------- | --------------------------------------------------------- |
480
481
  | `refreshVotingPower` | `({ neuronId, }: { neuronId: bigint; }) => Promise<void>` |
481
482
 
482
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L683)
483
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L685)
483
484
 
484
485
  ##### :gear: mergeMaturity
485
486
 
@@ -489,7 +490,7 @@ Merge Maturity of a neuron
489
490
  | --------------- | ------------------------------------------------------------------------------------------------------- |
490
491
  | `mergeMaturity` | `({ neuronId, percentageToMerge, }: { neuronId: bigint; percentageToMerge: number; }) => Promise<void>` |
491
492
 
492
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L705)
493
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L707)
493
494
 
494
495
  ##### :gear: stakeMaturity
495
496
 
@@ -504,7 +505,7 @@ Parameters:
504
505
  - `neuronId`: The id of the neuron for which to stake the maturity
505
506
  - `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
506
507
 
507
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L734)
508
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L736)
508
509
 
509
510
  ##### :gear: spawnNeuron
510
511
 
@@ -514,7 +515,7 @@ Merge Maturity of a neuron
514
515
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
515
516
  | `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?: Principal or undefined; nonce?: bigint or undefined; }) => Promise<bigint>` |
516
517
 
517
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L756)
518
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L758)
518
519
 
519
520
  ##### :gear: addHotkey
520
521
 
@@ -524,7 +525,7 @@ Add hotkey to neuron
524
525
  | ----------- | ------------------------------------------------------------------------------------------ |
525
526
  | `addHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
526
527
 
527
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L803)
528
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L805)
528
529
 
529
530
  ##### :gear: removeHotkey
530
531
 
@@ -534,7 +535,7 @@ Remove hotkey to neuron
534
535
  | -------------- | ------------------------------------------------------------------------------------------ |
535
536
  | `removeHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
536
537
 
537
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L823)
538
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L825)
538
539
 
539
540
  ##### :gear: claimOrRefreshNeuronFromAccount
540
541
 
@@ -544,7 +545,7 @@ Gets the NeuronID of a newly created neuron.
544
545
  | --------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
545
546
  | `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?: Principal or undefined; }) => Promise<bigint or undefined>` |
546
547
 
547
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L841)
548
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L843)
548
549
 
549
550
  ##### :gear: claimOrRefreshNeuron
550
551
 
@@ -555,7 +556,7 @@ Uses query call only.
555
556
  | ---------------------- | ------------------------------------------------------------------------ |
556
557
  | `claimOrRefreshNeuron` | `(request: ClaimOrRefreshNeuronRequest) => Promise<bigint or undefined>` |
557
558
 
558
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L872)
559
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L874)
559
560
 
560
561
  ##### :gear: getNeuron
561
562
 
@@ -565,7 +566,17 @@ Return the data of the neuron provided as id.
565
566
  | ----------- | ----------------------------------------------------------------------------------------------------------- |
566
567
  | `getNeuron` | `({ certified, neuronId, }: { certified: boolean; neuronId: bigint; }) => Promise<NeuronInfo or undefined>` |
567
568
 
568
- [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L897)
569
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L899)
570
+
571
+ ##### :gear: getNetworkEconomicsParameters
572
+
573
+ Return the [Network Economics](https://github.com/dfinity/ic/blob/d90e934eb440c730d44d9d9b1ece2cc3f9505d05/rs/nns/governance/proto/ic_nns_governance/pb/v1/governance.proto#L1847).
574
+
575
+ | Method | Type |
576
+ | ------------------------------- | ------------------------------------------------------------------------ |
577
+ | `getNetworkEconomicsParameters` | `({ certified, }: { certified: boolean; }) => Promise<NetworkEconomics>` |
578
+
579
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L920)
569
580
 
570
581
  ### :factory: SnsWasmCanister
571
582
 
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 0f35ac817b (2024-12-06) 'rs/nns/gtc/canister/gtc.did' by import-candid
1
+ // Generated from IC repo commit aa705aaa62 (2025-01-08 tags: release-2025-01-09_03-19-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
2
2
  type AccountState = record {
3
3
  authenticated_principal_id : opt principal;
4
4
  successfully_transferred_neurons : vec TransferredNeuron;
@@ -110,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
110
110
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
111
111
  const CanisterSettings = IDL.Record({
112
112
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
113
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
113
114
  'controllers' : IDL.Opt(Controllers),
114
115
  'log_visibility' : IDL.Opt(IDL.Int32),
115
116
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -365,12 +366,16 @@ export const idlFactory = ({ IDL }) => {
365
366
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
366
367
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
367
368
  'count' : IDL.Opt(IDL.Nat64),
369
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
368
370
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
371
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
372
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
369
373
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
370
374
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
371
375
  ),
372
376
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
373
377
  'total_voting_power' : IDL.Opt(IDL.Nat64),
378
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
374
379
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
375
380
  });
376
381
  const GovernanceCachedMetrics = IDL.Record({
@@ -395,6 +400,9 @@ export const idlFactory = ({ IDL }) => {
395
400
  'total_staked_e8s_seed' : IDL.Nat64,
396
401
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
397
402
  'total_staked_e8s' : IDL.Nat64,
403
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
404
+ NeuronSubsetMetrics
405
+ ),
398
406
  'not_dissolving_neurons_count' : IDL.Nat64,
399
407
  'total_locked_e8s' : IDL.Nat64,
400
408
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -405,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
405
413
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
406
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
407
415
  ),
416
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
408
419
  'total_staked_e8s_ect' : IDL.Nat64,
409
420
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
410
421
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1093,6 +1104,7 @@ export const init = ({ IDL }) => {
1093
1104
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1094
1105
  const CanisterSettings = IDL.Record({
1095
1106
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
1107
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1096
1108
  'controllers' : IDL.Opt(Controllers),
1097
1109
  'log_visibility' : IDL.Opt(IDL.Int32),
1098
1110
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -1348,12 +1360,16 @@ export const init = ({ IDL }) => {
1348
1360
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1349
1361
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1350
1362
  'count' : IDL.Opt(IDL.Nat64),
1363
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1351
1364
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1365
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1366
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1352
1367
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1353
1368
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1354
1369
  ),
1355
1370
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1356
1371
  'total_voting_power' : IDL.Opt(IDL.Nat64),
1372
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1357
1373
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1358
1374
  });
1359
1375
  const GovernanceCachedMetrics = IDL.Record({
@@ -1378,6 +1394,9 @@ export const init = ({ IDL }) => {
1378
1394
  'total_staked_e8s_seed' : IDL.Nat64,
1379
1395
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1380
1396
  'total_staked_e8s' : IDL.Nat64,
1397
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1398
+ NeuronSubsetMetrics
1399
+ ),
1381
1400
  'not_dissolving_neurons_count' : IDL.Nat64,
1382
1401
  'total_locked_e8s' : IDL.Nat64,
1383
1402
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -1388,6 +1407,9 @@ export const init = ({ IDL }) => {
1388
1407
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1389
1408
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1390
1409
  ),
1410
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1411
+ NeuronSubsetMetrics
1412
+ ),
1391
1413
  'total_staked_e8s_ect' : IDL.Nat64,
1392
1414
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1393
1415
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -51,6 +51,7 @@ export interface Canister {
51
51
  }
52
52
  export interface CanisterSettings {
53
53
  freezing_threshold: [] | [bigint];
54
+ wasm_memory_threshold: [] | [bigint];
54
55
  controllers: [] | [Controllers];
55
56
  log_visibility: [] | [number];
56
57
  wasm_memory_limit: [] | [bigint];
@@ -258,12 +259,14 @@ export interface GovernanceCachedMetrics {
258
259
  total_staked_e8s_seed: bigint;
259
260
  total_staked_maturity_e8s_equivalent_ect: bigint;
260
261
  total_staked_e8s: bigint;
262
+ fully_lost_voting_power_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
261
263
  not_dissolving_neurons_count: bigint;
262
264
  total_locked_e8s: bigint;
263
265
  neurons_fund_total_active_neurons: bigint;
264
266
  total_voting_power_non_self_authenticating_controller: [] | [bigint];
265
267
  total_staked_maturity_e8s_equivalent: bigint;
266
268
  not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
269
+ declining_voting_power_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
267
270
  total_staked_e8s_ect: bigint;
268
271
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
269
272
  dissolved_neurons_e8s: bigint;
@@ -554,10 +557,14 @@ export interface NeuronSubsetMetrics {
554
557
  voting_power_buckets: Array<[bigint, bigint]>;
555
558
  total_staked_e8s: [] | [bigint];
556
559
  count: [] | [bigint];
560
+ deciding_voting_power_buckets: Array<[bigint, bigint]>;
557
561
  total_staked_maturity_e8s_equivalent: [] | [bigint];
562
+ total_potential_voting_power: [] | [bigint];
563
+ total_deciding_voting_power: [] | [bigint];
558
564
  staked_maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
559
565
  staked_e8s_buckets: Array<[bigint, bigint]>;
560
566
  total_voting_power: [] | [bigint];
567
+ potential_voting_power_buckets: Array<[bigint, bigint]>;
561
568
  count_buckets: Array<[bigint, bigint]>;
562
569
  }
563
570
  export interface NeuronsFundAuditInfo {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 0f35ac817b (2024-12-06) 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit aa705aaa62 (2025-01-08 tags: release-2025-01-09_03-19-base) 'rs/nns/governance/canister/governance.did' by import-candid
2
2
  type AccountIdentifier = record {
3
3
  hash : blob;
4
4
  };
@@ -65,6 +65,7 @@ type CanisterSettings = record {
65
65
  wasm_memory_limit : opt nat64;
66
66
  memory_allocation : opt nat64;
67
67
  compute_allocation : opt nat64;
68
+ wasm_memory_threshold : opt nat64;
68
69
  };
69
70
 
70
71
  type CanisterStatusResultV2 = record {
@@ -124,8 +125,6 @@ type RefreshVotingPowerResponse = record {
124
125
  };
125
126
 
126
127
  // KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
127
- //
128
- // Deprecated. Use ManageNeuronCommandRequest instead. It is equivalent.
129
128
  type Command = variant {
130
129
  Spawn : Spawn;
131
130
  Split : Split;
@@ -349,15 +348,18 @@ type GovernanceCachedMetrics = record {
349
348
  };
350
349
  dissolving_neurons_count_buckets : vec record { nat64; nat64 };
351
350
  dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
352
- non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
353
351
  dissolving_neurons_count : nat64;
354
352
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
355
353
  total_staked_maturity_e8s_equivalent_seed : nat64;
356
354
  community_fund_total_staked_e8s : nat64;
357
355
  not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
358
- public_neuron_subset_metrics : opt NeuronSubsetMetrics;
359
356
  timestamp_seconds : nat64;
360
357
  seed_neuron_count : nat64;
358
+
359
+ non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
360
+ public_neuron_subset_metrics : opt NeuronSubsetMetrics;
361
+ declining_voting_power_neuron_subset_metrics : opt NeuronSubsetMetrics;
362
+ fully_lost_voting_power_neuron_subset_metrics : opt NeuronSubsetMetrics;
361
363
  };
362
364
 
363
365
  type GovernanceError = record {
@@ -496,10 +498,6 @@ type ManageNeuron = record {
496
498
  };
497
499
 
498
500
  // KEEP THIS IN SYNC WITH COMMAND!
499
- //
500
- // Command is deprecated, but people need time to migrate to this. Therefore, we
501
- // have not deleted Command yet. In the meantime, ManageNeuronCommandRequest
502
- // must be kept in sync with Command.
503
501
  type ManageNeuronCommandRequest = variant {
504
502
  Spawn : Spawn;
505
503
  Split : Split;
@@ -768,16 +766,25 @@ type NeuronStakeTransfer = record {
768
766
  };
769
767
 
770
768
  type NeuronSubsetMetrics = record {
771
- total_maturity_e8s_equivalent : opt nat64;
772
- maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
773
- voting_power_buckets : vec record { nat64; nat64 };
774
- total_staked_e8s : opt nat64;
775
769
  count : opt nat64;
770
+
771
+ total_staked_e8s : opt nat64;
772
+ total_maturity_e8s_equivalent : opt nat64;
776
773
  total_staked_maturity_e8s_equivalent : opt nat64;
777
- staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
778
- staked_e8s_buckets : vec record { nat64; nat64 };
774
+
779
775
  total_voting_power : opt nat64;
776
+ total_deciding_voting_power : opt nat64;
777
+ total_potential_voting_power : opt nat64;
778
+
780
779
  count_buckets : vec record { nat64; nat64 };
780
+
781
+ staked_e8s_buckets : vec record { nat64; nat64 };
782
+ maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
783
+ staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
784
+
785
+ voting_power_buckets : vec record { nat64; nat64 };
786
+ deciding_voting_power_buckets : vec record { nat64; nat64 };
787
+ potential_voting_power_buckets : vec record { nat64; nat64 };
781
788
  };
782
789
 
783
790
  type NeuronsFundAuditInfo = record {
@@ -110,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
110
110
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
111
111
  const CanisterSettings = IDL.Record({
112
112
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
113
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
113
114
  'controllers' : IDL.Opt(Controllers),
114
115
  'log_visibility' : IDL.Opt(IDL.Int32),
115
116
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -365,12 +366,16 @@ export const idlFactory = ({ IDL }) => {
365
366
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
366
367
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
367
368
  'count' : IDL.Opt(IDL.Nat64),
369
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
368
370
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
371
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
372
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
369
373
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
370
374
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
371
375
  ),
372
376
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
373
377
  'total_voting_power' : IDL.Opt(IDL.Nat64),
378
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
374
379
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
375
380
  });
376
381
  const GovernanceCachedMetrics = IDL.Record({
@@ -395,6 +400,9 @@ export const idlFactory = ({ IDL }) => {
395
400
  'total_staked_e8s_seed' : IDL.Nat64,
396
401
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
397
402
  'total_staked_e8s' : IDL.Nat64,
403
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
404
+ NeuronSubsetMetrics
405
+ ),
398
406
  'not_dissolving_neurons_count' : IDL.Nat64,
399
407
  'total_locked_e8s' : IDL.Nat64,
400
408
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -405,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
405
413
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
406
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
407
415
  ),
416
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
408
419
  'total_staked_e8s_ect' : IDL.Nat64,
409
420
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
410
421
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1109,6 +1120,7 @@ export const init = ({ IDL }) => {
1109
1120
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1110
1121
  const CanisterSettings = IDL.Record({
1111
1122
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
1123
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1112
1124
  'controllers' : IDL.Opt(Controllers),
1113
1125
  'log_visibility' : IDL.Opt(IDL.Int32),
1114
1126
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -1364,12 +1376,16 @@ export const init = ({ IDL }) => {
1364
1376
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1365
1377
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1366
1378
  'count' : IDL.Opt(IDL.Nat64),
1379
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1367
1380
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1381
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1382
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1368
1383
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1369
1384
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1370
1385
  ),
1371
1386
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1372
1387
  'total_voting_power' : IDL.Opt(IDL.Nat64),
1388
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1373
1389
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1374
1390
  });
1375
1391
  const GovernanceCachedMetrics = IDL.Record({
@@ -1394,6 +1410,9 @@ export const init = ({ IDL }) => {
1394
1410
  'total_staked_e8s_seed' : IDL.Nat64,
1395
1411
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1396
1412
  'total_staked_e8s' : IDL.Nat64,
1413
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1414
+ NeuronSubsetMetrics
1415
+ ),
1397
1416
  'not_dissolving_neurons_count' : IDL.Nat64,
1398
1417
  'total_locked_e8s' : IDL.Nat64,
1399
1418
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -1404,6 +1423,9 @@ export const init = ({ IDL }) => {
1404
1423
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1405
1424
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1406
1425
  ),
1426
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1427
+ NeuronSubsetMetrics
1428
+ ),
1407
1429
  'total_staked_e8s_ect' : IDL.Nat64,
1408
1430
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1409
1431
  'dissolved_neurons_e8s' : IDL.Nat64,