@dfinity/nns 11.1.1 → 11.1.2

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 CHANGED
@@ -176,7 +176,7 @@ Parameters:
176
176
 
177
177
  ### :factory: GovernanceCanister
178
178
 
179
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L101)
179
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L100)
180
180
 
181
181
  #### Static Methods
182
182
 
@@ -188,7 +188,7 @@ Parameters:
188
188
  | -------- | ------------------------------------------------------------- |
189
189
  | `create` | `(options?: GovernanceCanisterOptions) => GovernanceCanister` |
190
190
 
191
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L116)
191
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L115)
192
192
 
193
193
  #### Methods
194
194
 
@@ -246,7 +246,7 @@ combined into a single return value.
246
246
  | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
247
247
  | `listNeurons` | `({ certified, neuronIds, includeEmptyNeurons, includePublicNeurons, neuronSubaccounts, }: { certified: boolean; neuronIds?: bigint[] or undefined; includeEmptyNeurons?: boolean or undefined; includePublicNeurons?: boolean or undefined; neuronSubaccounts?: NeuronSubaccount[] or undefined; }) => Promise<...>` |
248
248
 
249
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L159)
249
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L158)
250
250
 
251
251
  ##### :gear: listKnownNeurons
252
252
 
@@ -260,7 +260,7 @@ it is fetched using a query call.
260
260
  | ------------------ | ------------------------------------------------- |
261
261
  | `listKnownNeurons` | `(certified?: boolean) => Promise<KnownNeuron[]>` |
262
262
 
263
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L292)
263
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L291)
264
264
 
265
265
  ##### :gear: getLatestRewardEvent
266
266
 
@@ -273,7 +273,7 @@ it's fetched using a query call.
273
273
  | ---------------------- | ----------------------------------------------- |
274
274
  | `getLatestRewardEvent` | `(certified?: boolean) => Promise<RewardEvent>` |
275
275
 
276
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L319)
276
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L318)
277
277
 
278
278
  ##### :gear: listProposals
279
279
 
@@ -292,7 +292,7 @@ Parameters:
292
292
  - `request`: the options to list the proposals (limit number of results, topics to search for, etc.)
293
293
  - `certified`: query or update calls
294
294
 
295
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L332)
295
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L331)
296
296
 
297
297
  ##### :gear: stakeNeuron
298
298
 
@@ -300,7 +300,7 @@ Parameters:
300
300
  | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
301
301
  | `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<...>` |
302
302
 
303
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L351)
303
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L350)
304
304
 
305
305
  ##### :gear: increaseDissolveDelay
306
306
 
@@ -310,7 +310,7 @@ Increases dissolve delay of a neuron
310
310
  | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
311
311
  | `increaseDissolveDelay` | `({ neuronId, additionalDissolveDelaySeconds, }: { neuronId: bigint; additionalDissolveDelaySeconds: number; }) => Promise<void>` |
312
312
 
313
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L412)
313
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L411)
314
314
 
315
315
  ##### :gear: setDissolveDelay
316
316
 
@@ -321,7 +321,7 @@ The new date is now + dissolveDelaySeconds.
321
321
  | ------------------ | ------------------------------------------------------------------------------------------------------------- |
322
322
  | `setDissolveDelay` | `({ neuronId, dissolveDelaySeconds, }: { neuronId: bigint; dissolveDelaySeconds: number; }) => Promise<void>` |
323
323
 
324
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L438)
324
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L437)
325
325
 
326
326
  ##### :gear: startDissolving
327
327
 
@@ -331,7 +331,7 @@ Start dissolving process of a neuron
331
331
  | ----------------- | ------------------------------------- |
332
332
  | `startDissolving` | `(neuronId: bigint) => Promise<void>` |
333
333
 
334
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L461)
334
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L460)
335
335
 
336
336
  ##### :gear: stopDissolving
337
337
 
@@ -341,7 +341,7 @@ Stop dissolving process of a neuron
341
341
  | ---------------- | ------------------------------------- |
342
342
  | `stopDissolving` | `(neuronId: bigint) => Promise<void>` |
343
343
 
344
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L475)
344
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L474)
345
345
 
346
346
  ##### :gear: joinCommunityFund
347
347
 
@@ -351,7 +351,7 @@ Neuron joins the community fund
351
351
  | ------------------- | ------------------------------------- |
352
352
  | `joinCommunityFund` | `(neuronId: bigint) => Promise<void>` |
353
353
 
354
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L489)
354
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L488)
355
355
 
356
356
  ##### :gear: autoStakeMaturity
357
357
 
@@ -366,7 +366,7 @@ Parameters:
366
366
  - `neuronId`: The id of the neuron for which to request a change of the auto stake feature
367
367
  - `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
368
368
 
369
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L507)
369
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L506)
370
370
 
371
371
  ##### :gear: leaveCommunityFund
372
372
 
@@ -376,7 +376,7 @@ Neuron leaves the community fund
376
376
  | -------------------- | ------------------------------------- |
377
377
  | `leaveCommunityFund` | `(neuronId: bigint) => Promise<void>` |
378
378
 
379
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L522)
379
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L521)
380
380
 
381
381
  ##### :gear: setVisibility
382
382
 
@@ -386,7 +386,7 @@ Set visibility of a neuron
386
386
  | --------------- | ------------------------------------------------------------------- |
387
387
  | `setVisibility` | `(neuronId: bigint, visibility: NeuronVisibility) => Promise<void>` |
388
388
 
389
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L537)
389
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L536)
390
390
 
391
391
  ##### :gear: setNodeProviderAccount
392
392
 
@@ -397,7 +397,7 @@ Where the reward is paid to.
397
397
  | ------------------------ | ---------------------------------------------- |
398
398
  | `setNodeProviderAccount` | `(accountIdentifier: string) => Promise<void>` |
399
399
 
400
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L557)
400
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L556)
401
401
 
402
402
  ##### :gear: mergeNeurons
403
403
 
@@ -407,7 +407,7 @@ Merge two neurons
407
407
  | -------------- | --------------------------------------------------------------------------------- |
408
408
  | `mergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<void>` |
409
409
 
410
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L577)
410
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L576)
411
411
 
412
412
  ##### :gear: simulateMergeNeurons
413
413
 
@@ -417,7 +417,7 @@ Simulate merging two neurons
417
417
  | ---------------------- | --------------------------------------------------------------------------------------- |
418
418
  | `simulateMergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<NeuronInfo>` |
419
419
 
420
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L594)
420
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L593)
421
421
 
422
422
  ##### :gear: splitNeuron
423
423
 
@@ -431,7 +431,7 @@ Returns:
431
431
 
432
432
  newNeuronId
433
433
 
434
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L639)
434
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L638)
435
435
 
436
436
  ##### :gear: getProposal
437
437
 
@@ -444,7 +444,7 @@ it is fetched using a query call.
444
444
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
445
445
  | `getProposal` | `({ proposalId, certified, }: { proposalId: bigint; certified?: boolean or undefined; }) => Promise<ProposalInfo or undefined>` |
446
446
 
447
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L682)
447
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L681)
448
448
 
449
449
  ##### :gear: makeProposal
450
450
 
@@ -458,7 +458,7 @@ Returns:
458
458
 
459
459
  The newly created proposal ID or undefined if the success response returned by the Governance canister does not provide such information.
460
460
 
461
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L700)
461
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L699)
462
462
 
463
463
  ##### :gear: registerVote
464
464
 
@@ -468,7 +468,7 @@ Registers vote for a proposal from the neuron passed.
468
468
  | -------------- | ----------------------------------------------------------------------------------------------------------- |
469
469
  | `registerVote` | `({ neuronId, vote, proposalId, }: { neuronId: bigint; vote: Vote; proposalId: bigint; }) => Promise<void>` |
470
470
 
471
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L721)
471
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L720)
472
472
 
473
473
  ##### :gear: setFollowees
474
474
 
@@ -478,7 +478,7 @@ Edit neuron followees per topic
478
478
  | -------------- | ------------------------------------------------- |
479
479
  | `setFollowees` | `(followRequest: FollowRequest) => Promise<void>` |
480
480
 
481
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L743)
481
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L742)
482
482
 
483
483
  ##### :gear: disburse
484
484
 
@@ -488,7 +488,7 @@ Disburse neuron on Account
488
488
  | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
489
489
  | `disburse` | `({ neuronId, toAccountId, amount, }: { neuronId: bigint; toAccountId?: string or undefined; amount?: bigint or undefined; }) => Promise<void>` |
490
490
 
491
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L758)
491
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L757)
492
492
 
493
493
  ##### :gear: refreshVotingPower
494
494
 
@@ -500,7 +500,7 @@ parameter of the neuron to the current time).
500
500
  | -------------------- | --------------------------------------------------------- |
501
501
  | `refreshVotingPower` | `({ neuronId, }: { neuronId: bigint; }) => Promise<void>` |
502
502
 
503
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L794)
503
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L793)
504
504
 
505
505
  ##### :gear: mergeMaturity
506
506
 
@@ -510,7 +510,7 @@ Merge Maturity of a neuron
510
510
  | --------------- | ------------------------------------------------------------------------------------------------------- |
511
511
  | `mergeMaturity` | `({ neuronId, percentageToMerge, }: { neuronId: bigint; percentageToMerge: number; }) => Promise<void>` |
512
512
 
513
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L816)
513
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L815)
514
514
 
515
515
  ##### :gear: stakeMaturity
516
516
 
@@ -525,7 +525,7 @@ Parameters:
525
525
  - `neuronId`: The id of the neuron for which to stake the maturity
526
526
  - `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
527
527
 
528
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L845)
528
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L844)
529
529
 
530
530
  ##### :gear: spawnNeuron
531
531
 
@@ -535,7 +535,7 @@ Merge Maturity of a neuron
535
535
  | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
536
536
  | `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?: any; nonce?: bigint or undefined; }) => Promise<bigint>` |
537
537
 
538
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L867)
538
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L866)
539
539
 
540
540
  ##### :gear: addHotkey
541
541
 
@@ -545,7 +545,7 @@ Add hotkey to neuron
545
545
  | ----------- | ------------------------------------------------------------------------------------------ |
546
546
  | `addHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
547
547
 
548
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L914)
548
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L913)
549
549
 
550
550
  ##### :gear: removeHotkey
551
551
 
@@ -555,7 +555,7 @@ Remove hotkey to neuron
555
555
  | -------------- | ------------------------------------------------------------------------------------------ |
556
556
  | `removeHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
557
557
 
558
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L934)
558
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L933)
559
559
 
560
560
  ##### :gear: claimOrRefreshNeuronFromAccount
561
561
 
@@ -565,7 +565,7 @@ Gets the NeuronID of a newly created neuron.
565
565
  | --------------------------------- | ---------------------------------------------------------------------------------------------- |
566
566
  | `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?: any; }) => Promise<bigint or undefined>` |
567
567
 
568
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L952)
568
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L951)
569
569
 
570
570
  ##### :gear: claimOrRefreshNeuron
571
571
 
@@ -576,7 +576,7 @@ Uses query call only.
576
576
  | ---------------------- | ------------------------------------------------------------------------ |
577
577
  | `claimOrRefreshNeuron` | `(request: ClaimOrRefreshNeuronRequest) => Promise<bigint or undefined>` |
578
578
 
579
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L983)
579
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L982)
580
580
 
581
581
  ##### :gear: getNeuron
582
582
 
@@ -586,7 +586,7 @@ Return the data of the neuron provided as id.
586
586
  | ----------- | ----------------------------------------------------------------------------------------------------------- |
587
587
  | `getNeuron` | `({ certified, neuronId, }: { certified: boolean; neuronId: bigint; }) => Promise<NeuronInfo or undefined>` |
588
588
 
589
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1008)
589
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1007)
590
590
 
591
591
  ##### :gear: getNetworkEconomicsParameters
592
592
 
@@ -596,7 +596,7 @@ Return the [Network Economics](https://github.com/dfinity/ic/blob/d90e934eb440c7
596
596
  | ------------------------------- | ------------------------------------------------------------------------ |
597
597
  | `getNetworkEconomicsParameters` | `({ certified, }: { certified: boolean; }) => Promise<NetworkEconomics>` |
598
598
 
599
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1029)
599
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1028)
600
600
 
601
601
  ##### :gear: disburseMaturity
602
602
 
@@ -614,7 +614,7 @@ Parameters:
614
614
  - `params.toAccountIdentifier`: Optional. The account identifier to which the maturity will be disbursed. If not provided, the maturity will be disbursed to the caller's Main account.
615
615
  - `params.toAccount`: Optional. The ICRC account to which the maturity will be disbursed. If not provided, the maturity will be disbursed to the caller's Main account.
616
616
 
617
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1058)
617
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1057)
618
618
 
619
619
  ##### :gear: setFollowing
620
620
 
@@ -629,7 +629,7 @@ Parameters:
629
629
  - `params.neuronId`: The id of the neuron for which to set the following topics
630
630
  - `params.topicFollowing`: The topics and the followees for each topic that the neuron should follow.
631
631
 
632
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1089)
632
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1088)
633
633
 
634
634
  ##### :gear: getMetrics
635
635
 
@@ -637,7 +637,7 @@ Parameters:
637
637
  | ------------ | ------------------------------------------------------------------------------- |
638
638
  | `getMetrics` | `({ certified, }: { certified: boolean; }) => Promise<GovernanceCachedMetrics>` |
639
639
 
640
- [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1104)
640
+ [:link: Source](https://github.com/dfinity/icp-js-canisters/tree/main/packages/nns/src/governance.canister.ts#L1103)
641
641
 
642
642
  ### :factory: SnsWasmCanister
643
643
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 199fb79 (2025-10-29 tags: release-2025-10-30_03-22-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
1
+ // Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
2
2
 
3
3
  type AccountState = record {
4
4
  authenticated_principal_id : opt principal;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -11,6 +11,11 @@ export const idlFactory = ({ IDL }) => {
11
11
  const Proposal = IDL.Rec();
12
12
  const NeuronId = IDL.Record({ id: IDL.Nat64 });
13
13
  const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
14
+ const DateUtc = IDL.Record({
15
+ day: IDL.Nat32,
16
+ month: IDL.Nat32,
17
+ year: IDL.Nat32,
18
+ });
14
19
  const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
15
20
  const NodeProvider = IDL.Record({
16
21
  id: IDL.Opt(IDL.Principal),
@@ -35,8 +40,10 @@ export const idlFactory = ({ IDL }) => {
35
40
  });
36
41
  const MonthlyNodeProviderRewards = IDL.Record({
37
42
  minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
43
+ end_date: IDL.Opt(DateUtc),
38
44
  registry_version: IDL.Opt(IDL.Nat64),
39
45
  node_providers: IDL.Vec(NodeProvider),
46
+ start_date: IDL.Opt(DateUtc),
40
47
  timestamp: IDL.Nat64,
41
48
  rewards: IDL.Vec(RewardNodeProvider),
42
49
  xdr_conversion_rate: IDL.Opt(XdrConversionRate),
@@ -834,7 +841,7 @@ export const idlFactory = ({ IDL }) => {
834
841
  const ListNodeProvidersResponse = IDL.Record({
835
842
  node_providers: IDL.Vec(NodeProvider),
836
843
  });
837
- const ListProposalInfo = IDL.Record({
844
+ const ListProposalInfoRequest = IDL.Record({
838
845
  include_reward_status: IDL.Vec(IDL.Int32),
839
846
  omit_large_fields: IDL.Opt(IDL.Bool),
840
847
  before_proposal: IDL.Opt(ProposalId),
@@ -1053,7 +1060,7 @@ export const idlFactory = ({ IDL }) => {
1053
1060
  ),
1054
1061
  list_node_providers: IDL.Func([], [ListNodeProvidersResponse], []),
1055
1062
  list_proposals: IDL.Func(
1056
- [ListProposalInfo],
1063
+ [ListProposalInfoRequest],
1057
1064
  [ListProposalInfoResponse],
1058
1065
  [],
1059
1066
  ),
@@ -1082,6 +1089,11 @@ export const init = ({ IDL }) => {
1082
1089
  const Proposal = IDL.Rec();
1083
1090
  const NeuronId = IDL.Record({ id: IDL.Nat64 });
1084
1091
  const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
1092
+ const DateUtc = IDL.Record({
1093
+ day: IDL.Nat32,
1094
+ month: IDL.Nat32,
1095
+ year: IDL.Nat32,
1096
+ });
1085
1097
  const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
1086
1098
  const NodeProvider = IDL.Record({
1087
1099
  id: IDL.Opt(IDL.Principal),
@@ -1106,8 +1118,10 @@ export const init = ({ IDL }) => {
1106
1118
  });
1107
1119
  const MonthlyNodeProviderRewards = IDL.Record({
1108
1120
  minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1121
+ end_date: IDL.Opt(DateUtc),
1109
1122
  registry_version: IDL.Opt(IDL.Nat64),
1110
1123
  node_providers: IDL.Vec(NodeProvider),
1124
+ start_date: IDL.Opt(DateUtc),
1111
1125
  timestamp: IDL.Nat64,
1112
1126
  rewards: IDL.Vec(RewardNodeProvider),
1113
1127
  xdr_conversion_rate: IDL.Opt(XdrConversionRate),
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -12,10 +12,10 @@ import type { Principal } from "@icp-sdk/core/principal";
12
12
 
13
13
  export interface Account {
14
14
  owner: [] | [Principal];
15
- subaccount: [] | [Uint8Array | number[]];
15
+ subaccount: [] | [Uint8Array];
16
16
  }
17
17
  export interface AccountIdentifier {
18
- hash: Uint8Array | number[];
18
+ hash: Uint8Array;
19
19
  }
20
20
  export type Action =
21
21
  | { RegisterKnownNeuron: KnownNeuron }
@@ -79,7 +79,7 @@ export interface CanisterStatusResultV2 {
79
79
  memory_size: [] | [bigint];
80
80
  cycles: [] | [bigint];
81
81
  idle_cycles_burned_per_day: [] | [bigint];
82
- module_hash: Uint8Array | number[];
82
+ module_hash: Uint8Array;
83
83
  }
84
84
  export interface CanisterSummary {
85
85
  status: [] | [CanisterStatusResultV2];
@@ -183,6 +183,11 @@ export interface DateRangeFilter {
183
183
  start_timestamp_seconds: [] | [bigint];
184
184
  end_timestamp_seconds: [] | [bigint];
185
185
  }
186
+ export interface DateUtc {
187
+ day: number;
188
+ month: number;
189
+ year: number;
190
+ }
186
191
  export interface Decimal {
187
192
  human_readable: [] | [string];
188
193
  }
@@ -225,7 +230,7 @@ export interface Duration {
225
230
  }
226
231
  export interface ExecuteNnsFunction {
227
232
  nns_function: number;
228
- payload: Uint8Array | number[];
233
+ payload: Uint8Array;
229
234
  }
230
235
  export interface Follow {
231
236
  topic: number;
@@ -394,14 +399,14 @@ export interface InitialTokenDistribution {
394
399
  }
395
400
  export interface InstallCode {
396
401
  skip_stopping_before_installing: [] | [boolean];
397
- wasm_module_hash: [] | [Uint8Array | number[]];
402
+ wasm_module_hash: [] | [Uint8Array];
398
403
  canister_id: [] | [Principal];
399
- arg_hash: [] | [Uint8Array | number[]];
404
+ arg_hash: [] | [Uint8Array];
400
405
  install_mode: [] | [number];
401
406
  }
402
407
  export interface InstallCodeRequest {
403
- arg: [] | [Uint8Array | number[]];
404
- wasm_module: [] | [Uint8Array | number[]];
408
+ arg: [] | [Uint8Array];
409
+ wasm_module: [] | [Uint8Array];
405
410
  skip_stopping_before_installing: [] | [boolean];
406
411
  canister_id: [] | [Principal];
407
412
  install_mode: [] | [number];
@@ -478,7 +483,7 @@ export interface ListNeurons {
478
483
  /**
479
484
  * These fields select neurons to be in the result set.
480
485
  */
481
- neuron_ids: BigUint64Array | bigint[];
486
+ neuron_ids: BigUint64Array;
482
487
  page_number: [] | [bigint];
483
488
  /**
484
489
  * Only has an effect when include_neurons_readable_by_caller.
@@ -515,14 +520,14 @@ export interface ListNodeProviderRewardsResponse {
515
520
  export interface ListNodeProvidersResponse {
516
521
  node_providers: Array<NodeProvider>;
517
522
  }
518
- export interface ListProposalInfo {
519
- include_reward_status: Int32Array | number[];
523
+ export interface ListProposalInfoRequest {
524
+ include_reward_status: Int32Array;
520
525
  omit_large_fields: [] | [boolean];
521
526
  before_proposal: [] | [ProposalId];
522
527
  limit: number;
523
- exclude_topic: Int32Array | number[];
528
+ exclude_topic: Int32Array;
524
529
  include_all_manage_neuron_proposals: [] | [boolean];
525
- include_status: Int32Array | number[];
530
+ include_status: Int32Array;
526
531
  }
527
532
  export interface ListProposalInfoResponse {
528
533
  proposal_info: Array<ProposalInfo>;
@@ -617,8 +622,10 @@ export interface MergeResponse {
617
622
  }
618
623
  export interface MonthlyNodeProviderRewards {
619
624
  minimum_xdr_permyriad_per_icp: [] | [bigint];
625
+ end_date: [] | [DateUtc];
620
626
  registry_version: [] | [bigint];
621
627
  node_providers: Array<NodeProvider>;
628
+ start_date: [] | [DateUtc];
622
629
  timestamp: bigint;
623
630
  rewards: Array<RewardNodeProvider>;
624
631
  xdr_conversion_rate: [] | [XdrConversionRate];
@@ -716,7 +723,7 @@ export interface Neuron {
716
723
  auto_stake_maturity: [] | [boolean];
717
724
  aging_since_timestamp_seconds: bigint;
718
725
  hot_keys: Array<Principal>;
719
- account: Uint8Array | number[];
726
+ account: Uint8Array;
720
727
  joined_community_fund_timestamp_seconds: [] | [bigint];
721
728
  /**
722
729
  * The maturity disbursements in progress, i.e. the disbursements that are initiated but not
@@ -750,7 +757,7 @@ export interface NeuronId {
750
757
  id: bigint;
751
758
  }
752
759
  export type NeuronIdOrSubaccount =
753
- | { Subaccount: Uint8Array | number[] }
760
+ | { Subaccount: Uint8Array }
754
761
  | { NeuronId: NeuronId };
755
762
  export interface NeuronInFlightCommand {
756
763
  command: [] | [Command_2];
@@ -802,16 +809,16 @@ export interface NeuronInfo {
802
809
  age_seconds: bigint;
803
810
  }
804
811
  export interface NeuronStakeTransfer {
805
- to_subaccount: Uint8Array | number[];
812
+ to_subaccount: Uint8Array;
806
813
  neuron_stake_e8s: bigint;
807
814
  from: [] | [Principal];
808
815
  memo: bigint;
809
- from_subaccount: Uint8Array | number[];
816
+ from_subaccount: Uint8Array;
810
817
  transfer_timestamp: bigint;
811
818
  block_height: bigint;
812
819
  }
813
820
  export interface NeuronSubaccount {
814
- subaccount: Uint8Array | number[];
821
+ subaccount: Uint8Array;
815
822
  }
816
823
  export interface NeuronSubsetMetrics {
817
824
  total_maturity_e8s_equivalent: [] | [bigint];
@@ -1282,7 +1289,7 @@ export interface _SERVICE {
1282
1289
  [] | [MonthlyNodeProviderRewards]
1283
1290
  >;
1284
1291
  get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
1285
- get_neuron_ids: ActorMethod<[], BigUint64Array | bigint[]>;
1292
+ get_neuron_ids: ActorMethod<[], BigUint64Array>;
1286
1293
  get_neuron_index: ActorMethod<[GetNeuronIndexRequest], GetNeuronIndexResult>;
1287
1294
  get_neuron_info: ActorMethod<[bigint], Result_5>;
1288
1295
  get_neuron_info_by_id_or_subaccount: ActorMethod<
@@ -1308,7 +1315,10 @@ export interface _SERVICE {
1308
1315
  ListNodeProviderRewardsResponse
1309
1316
  >;
1310
1317
  list_node_providers: ActorMethod<[], ListNodeProvidersResponse>;
1311
- list_proposals: ActorMethod<[ListProposalInfo], ListProposalInfoResponse>;
1318
+ list_proposals: ActorMethod<
1319
+ [ListProposalInfoRequest],
1320
+ ListProposalInfoResponse
1321
+ >;
1312
1322
  manage_neuron: ActorMethod<[ManageNeuronRequest], ManageNeuronResponse>;
1313
1323
  settle_community_fund_participation: ActorMethod<
1314
1324
  [SettleCommunityFundParticipation],
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 199fb79 (2025-10-29 tags: release-2025-10-30_03-22-base) 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/nns/governance/canister/governance.did' by import-candid
2
2
 
3
3
  type AccountIdentifier = record {
4
4
  hash : blob;
@@ -519,7 +519,7 @@ type ListNodeProvidersResponse = record {
519
519
  node_providers : vec NodeProvider;
520
520
  };
521
521
 
522
- type ListProposalInfo = record {
522
+ type ListProposalInfoRequest = record {
523
523
  include_reward_status : vec int32;
524
524
  omit_large_fields : opt bool;
525
525
  before_proposal : opt ProposalId;
@@ -613,11 +613,19 @@ type MergeResponse = record {
613
613
  source_neuron_info : opt NeuronInfo;
614
614
  };
615
615
 
616
+ type DateUtc = record {
617
+ year : nat32;
618
+ month : nat32;
619
+ day : nat32;
620
+ };
621
+
616
622
  type MonthlyNodeProviderRewards = record {
617
623
  minimum_xdr_permyriad_per_icp : opt nat64;
618
624
  registry_version : opt nat64;
619
625
  node_providers : vec NodeProvider;
620
626
  timestamp : nat64;
627
+ start_date : opt DateUtc;
628
+ end_date : opt DateUtc;
621
629
  rewards : vec RewardNodeProvider;
622
630
  xdr_conversion_rate : opt XdrConversionRate;
623
631
  maximum_node_provider_rewards_e8s : opt nat64;
@@ -1455,7 +1463,7 @@ service : (Governance) -> {
1455
1463
  ListNodeProviderRewardsResponse,
1456
1464
  ) query;
1457
1465
  list_node_providers : () -> (ListNodeProvidersResponse) query;
1458
- list_proposals : (ListProposalInfo) -> (ListProposalInfoResponse) query;
1466
+ list_proposals : (ListProposalInfoRequest) -> (ListProposalInfoResponse) query;
1459
1467
  list_neuron_votes : (ListNeuronVotesRequest) -> (ListNeuronVotesResponse) query;
1460
1468
  manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse);
1461
1469
  settle_community_fund_participation : (SettleCommunityFundParticipation) -> (