@dfinity/nns 10.0.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -36
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +764 -763
- package/dist/candid/governance.d.ts +7 -6
- package/dist/candid/governance.did +22 -10
- package/dist/candid/governance.idl.js +780 -779
- package/dist/candid/governance_test.certified.idl.js +765 -764
- package/dist/candid/governance_test.d.ts +7 -6
- package/dist/candid/governance_test.did +22 -10
- package/dist/candid/governance_test.idl.js +781 -780
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-ZJT35CRS.js +8 -0
- package/dist/esm/chunk-ZJT35CRS.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/types/canisters/governance/request.converters.d.ts +2 -1
- package/dist/types/governance.canister.d.ts +2 -1
- package/dist/types/types/governance_converters.d.ts +9 -0
- package/package.json +1 -1
- package/dist/esm/chunk-HKHWC73M.js +0 -8
- package/dist/esm/chunk-HKHWC73M.js.map +0 -7
package/README.md
CHANGED
|
@@ -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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
276
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L317)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
295
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L330)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
303
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L349)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
313
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L410)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
324
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L436)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
334
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L459)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
344
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L473)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
354
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L487)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
369
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L505)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
379
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L520)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
389
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L535)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
400
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L555)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
410
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L575)
|
|
411
411
|
|
|
412
412
|
##### :gear: simulateMergeNeurons
|
|
413
413
|
|
|
@@ -417,21 +417,21 @@ 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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
420
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L592)
|
|
421
421
|
|
|
422
422
|
##### :gear: splitNeuron
|
|
423
423
|
|
|
424
424
|
Splits a neuron creating a new one
|
|
425
425
|
|
|
426
|
-
| Method | Type
|
|
427
|
-
| ------------- |
|
|
428
|
-
| `splitNeuron` | `({ neuronId, amount, }: { neuronId: bigint; amount: bigint; }) => Promise<bigint>` |
|
|
426
|
+
| Method | Type |
|
|
427
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
428
|
+
| `splitNeuron` | `({ neuronId, amount, memo, }: { neuronId: bigint; amount: bigint; memo?: bigint or undefined; }) => Promise<bigint>` |
|
|
429
429
|
|
|
430
430
|
Returns:
|
|
431
431
|
|
|
432
432
|
newNeuronId
|
|
433
433
|
|
|
434
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
434
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L637)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
447
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L680)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
461
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L698)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
471
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L719)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
481
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L741)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
491
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L756)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
503
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L792)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
513
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L814)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
528
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L843)
|
|
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?: Principal or undefined; nonce?: bigint or undefined; }) => Promise<bigint>` |
|
|
537
537
|
|
|
538
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
538
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L865)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
548
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L912)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
558
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L932)
|
|
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?: Principal or undefined; }) => Promise<bigint or undefined>` |
|
|
567
567
|
|
|
568
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
568
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L950)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
579
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L981)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
589
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L1006)
|
|
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/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
599
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L1027)
|
|
600
600
|
|
|
601
601
|
##### :gear: disburseMaturity
|
|
602
602
|
|
|
@@ -613,7 +613,7 @@ Parameters:
|
|
|
613
613
|
- `params.percentageToDisburse`: The percentage of the neuron's maturity to disburse, between 1 and 100 (inclusive).
|
|
614
614
|
- `params.accountIdentifier`: 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
|
|
|
616
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
616
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L1055)
|
|
617
617
|
|
|
618
618
|
##### :gear: setFollowing
|
|
619
619
|
|
|
@@ -628,7 +628,7 @@ Parameters:
|
|
|
628
628
|
- `params.neuronId`: The id of the neuron for which to set the following topics
|
|
629
629
|
- `params.topicFollowing`: The topics and the followees for each topic that the neuron should follow.
|
|
630
630
|
|
|
631
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
631
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L1083)
|
|
632
632
|
|
|
633
633
|
##### :gear: getMetrics
|
|
634
634
|
|
|
@@ -636,7 +636,7 @@ Parameters:
|
|
|
636
636
|
| ------------ | ------------------------------------------------------------------------------- |
|
|
637
637
|
| `getMetrics` | `({ certified, }: { certified: boolean; }) => Promise<GovernanceCachedMetrics>` |
|
|
638
638
|
|
|
639
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
639
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L1098)
|
|
640
640
|
|
|
641
641
|
### :factory: SnsWasmCanister
|
|
642
642
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 206b61a (2025-09-25 tags: release-2025-09-25_09-52-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;
|