@dfinity/nns 8.4.0 → 8.4.1-next-2025-05-09
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 +32 -32
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +0 -10
- package/dist/candid/governance.d.ts +0 -7
- package/dist/candid/governance.did +1 -10
- package/dist/candid/governance.idl.js +0 -10
- package/dist/candid/governance_test.certified.idl.js +0 -10
- package/dist/candid/governance_test.d.ts +0 -7
- package/dist/candid/governance_test.did +1 -12
- package/dist/candid/governance_test.idl.js +0 -10
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-7K4MCZNR.js +19 -0
- package/dist/esm/chunk-7K4MCZNR.js.map +7 -0
- package/dist/esm/{chunk-UZGLNEQP.js → chunk-7ZLZLVJN.js} +2 -2
- package/dist/esm/{chunk-UZGLNEQP.js.map → chunk-7ZLZLVJN.js.map} +2 -2
- package/dist/esm/{chunk-GQ6HQ3NJ.js → chunk-PM67RX37.js} +2 -2
- package/dist/esm/{chunk-GQ6HQ3NJ.js.map → chunk-PM67RX37.js.map} +2 -2
- package/dist/esm/genesis_token.canister.js +1 -1
- 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/esm/sns_wasm.canister.js +1 -1
- package/package.json +7 -7
- package/dist/esm/chunk-DDPO5I3O.js +0 -19
- package/dist/esm/chunk-DDPO5I3O.js.map +0 -7
package/README.md
CHANGED
|
@@ -258,7 +258,7 @@ it is fetched using a query call.
|
|
|
258
258
|
| ------------------ | ------------------------------------------------- |
|
|
259
259
|
| `listKnownNeurons` | `(certified?: boolean) => Promise<KnownNeuron[]>` |
|
|
260
260
|
|
|
261
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
261
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L284)
|
|
262
262
|
|
|
263
263
|
##### :gear: getLastestRewardEvent
|
|
264
264
|
|
|
@@ -271,7 +271,7 @@ it's fetched using a query call.
|
|
|
271
271
|
| ----------------------- | ----------------------------------------------- |
|
|
272
272
|
| `getLastestRewardEvent` | `(certified?: boolean) => Promise<RewardEvent>` |
|
|
273
273
|
|
|
274
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
274
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L306)
|
|
275
275
|
|
|
276
276
|
##### :gear: listProposals
|
|
277
277
|
|
|
@@ -290,7 +290,7 @@ Parameters:
|
|
|
290
290
|
- `request`: the options to list the proposals (limit number of results, topics to search for, etc.)
|
|
291
291
|
- `certified`: query or update calls
|
|
292
292
|
|
|
293
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
293
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L322)
|
|
294
294
|
|
|
295
295
|
##### :gear: stakeNeuron
|
|
296
296
|
|
|
@@ -298,7 +298,7 @@ Parameters:
|
|
|
298
298
|
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
299
299
|
| `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<...>` |
|
|
300
300
|
|
|
301
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
301
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L341)
|
|
302
302
|
|
|
303
303
|
##### :gear: increaseDissolveDelay
|
|
304
304
|
|
|
@@ -308,7 +308,7 @@ Increases dissolve delay of a neuron
|
|
|
308
308
|
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
309
309
|
| `increaseDissolveDelay` | `({ neuronId, additionalDissolveDelaySeconds, }: { neuronId: bigint; additionalDissolveDelaySeconds: number; }) => Promise<void>` |
|
|
310
310
|
|
|
311
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
311
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L402)
|
|
312
312
|
|
|
313
313
|
##### :gear: setDissolveDelay
|
|
314
314
|
|
|
@@ -319,7 +319,7 @@ The new date is now + dissolveDelaySeconds.
|
|
|
319
319
|
| ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
320
320
|
| `setDissolveDelay` | `({ neuronId, dissolveDelaySeconds, }: { neuronId: bigint; dissolveDelaySeconds: number; }) => Promise<void>` |
|
|
321
321
|
|
|
322
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
322
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L428)
|
|
323
323
|
|
|
324
324
|
##### :gear: startDissolving
|
|
325
325
|
|
|
@@ -329,7 +329,7 @@ Start dissolving process of a neuron
|
|
|
329
329
|
| ----------------- | ------------------------------------- |
|
|
330
330
|
| `startDissolving` | `(neuronId: bigint) => Promise<void>` |
|
|
331
331
|
|
|
332
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
332
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L451)
|
|
333
333
|
|
|
334
334
|
##### :gear: stopDissolving
|
|
335
335
|
|
|
@@ -339,7 +339,7 @@ Stop dissolving process of a neuron
|
|
|
339
339
|
| ---------------- | ------------------------------------- |
|
|
340
340
|
| `stopDissolving` | `(neuronId: bigint) => Promise<void>` |
|
|
341
341
|
|
|
342
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
342
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L465)
|
|
343
343
|
|
|
344
344
|
##### :gear: joinCommunityFund
|
|
345
345
|
|
|
@@ -349,7 +349,7 @@ Neuron joins the community fund
|
|
|
349
349
|
| ------------------- | ------------------------------------- |
|
|
350
350
|
| `joinCommunityFund` | `(neuronId: bigint) => Promise<void>` |
|
|
351
351
|
|
|
352
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
352
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L479)
|
|
353
353
|
|
|
354
354
|
##### :gear: autoStakeMaturity
|
|
355
355
|
|
|
@@ -364,7 +364,7 @@ Parameters:
|
|
|
364
364
|
- `neuronId`: The id of the neuron for which to request a change of the auto stake feature
|
|
365
365
|
- `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
|
|
366
366
|
|
|
367
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
367
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L497)
|
|
368
368
|
|
|
369
369
|
##### :gear: leaveCommunityFund
|
|
370
370
|
|
|
@@ -374,7 +374,7 @@ Neuron leaves the community fund
|
|
|
374
374
|
| -------------------- | ------------------------------------- |
|
|
375
375
|
| `leaveCommunityFund` | `(neuronId: bigint) => Promise<void>` |
|
|
376
376
|
|
|
377
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
377
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L512)
|
|
378
378
|
|
|
379
379
|
##### :gear: setVisibility
|
|
380
380
|
|
|
@@ -384,7 +384,7 @@ Set visibility of a neuron
|
|
|
384
384
|
| --------------- | ------------------------------------------------------------------- |
|
|
385
385
|
| `setVisibility` | `(neuronId: bigint, visibility: NeuronVisibility) => Promise<void>` |
|
|
386
386
|
|
|
387
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
387
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L526)
|
|
388
388
|
|
|
389
389
|
##### :gear: setNodeProviderAccount
|
|
390
390
|
|
|
@@ -395,7 +395,7 @@ Where the reward is paid to.
|
|
|
395
395
|
| ------------------------ | ---------------------------------------------- |
|
|
396
396
|
| `setNodeProviderAccount` | `(accountIdentifier: string) => Promise<void>` |
|
|
397
397
|
|
|
398
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
398
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L546)
|
|
399
399
|
|
|
400
400
|
##### :gear: mergeNeurons
|
|
401
401
|
|
|
@@ -405,7 +405,7 @@ Merge two neurons
|
|
|
405
405
|
| -------------- | --------------------------------------------------------------------------------- |
|
|
406
406
|
| `mergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<void>` |
|
|
407
407
|
|
|
408
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
408
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L566)
|
|
409
409
|
|
|
410
410
|
##### :gear: simulateMergeNeurons
|
|
411
411
|
|
|
@@ -415,7 +415,7 @@ Simulate merging two neurons
|
|
|
415
415
|
| ---------------------- | --------------------------------------------------------------------------------------- |
|
|
416
416
|
| `simulateMergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<NeuronInfo>` |
|
|
417
417
|
|
|
418
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
418
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L583)
|
|
419
419
|
|
|
420
420
|
##### :gear: splitNeuron
|
|
421
421
|
|
|
@@ -425,7 +425,7 @@ Splits a neuron creating a new one
|
|
|
425
425
|
| ------------- | ----------------------------------------------------------------------------------- |
|
|
426
426
|
| `splitNeuron` | `({ neuronId, amount, }: { neuronId: bigint; amount: bigint; }) => Promise<bigint>` |
|
|
427
427
|
|
|
428
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
428
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L628)
|
|
429
429
|
|
|
430
430
|
##### :gear: getProposal
|
|
431
431
|
|
|
@@ -438,7 +438,7 @@ it is fetched using a query call.
|
|
|
438
438
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
439
439
|
| `getProposal` | `({ proposalId, certified, }: { proposalId: bigint; certified?: boolean or undefined; }) => Promise<ProposalInfo or undefined>` |
|
|
440
440
|
|
|
441
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
441
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L668)
|
|
442
442
|
|
|
443
443
|
##### :gear: makeProposal
|
|
444
444
|
|
|
@@ -448,7 +448,7 @@ Create new proposal
|
|
|
448
448
|
| -------------- | ---------------------------------------------------------------- |
|
|
449
449
|
| `makeProposal` | `(request: MakeProposalRequest) => Promise<bigint or undefined>` |
|
|
450
450
|
|
|
451
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
451
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L686)
|
|
452
452
|
|
|
453
453
|
##### :gear: registerVote
|
|
454
454
|
|
|
@@ -458,7 +458,7 @@ Registers vote for a proposal from the neuron passed.
|
|
|
458
458
|
| -------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
459
459
|
| `registerVote` | `({ neuronId, vote, proposalId, }: { neuronId: bigint; vote: Vote; proposalId: bigint; }) => Promise<void>` |
|
|
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#L707)
|
|
462
462
|
|
|
463
463
|
##### :gear: setFollowees
|
|
464
464
|
|
|
@@ -468,7 +468,7 @@ Edit neuron followees per topic
|
|
|
468
468
|
| -------------- | ------------------------------------------------- |
|
|
469
469
|
| `setFollowees` | `(followRequest: FollowRequest) => 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#L729)
|
|
472
472
|
|
|
473
473
|
##### :gear: disburse
|
|
474
474
|
|
|
@@ -478,7 +478,7 @@ Disburse neuron on Account
|
|
|
478
478
|
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
479
479
|
| `disburse` | `({ neuronId, toAccountId, amount, }: { neuronId: bigint; toAccountId?: string or undefined; amount?: bigint or undefined; }) => 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#L744)
|
|
482
482
|
|
|
483
483
|
##### :gear: refreshVotingPower
|
|
484
484
|
|
|
@@ -490,7 +490,7 @@ parameter of the neuron to the current time).
|
|
|
490
490
|
| -------------------- | --------------------------------------------------------- |
|
|
491
491
|
| `refreshVotingPower` | `({ neuronId, }: { neuronId: bigint; }) => Promise<void>` |
|
|
492
492
|
|
|
493
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
493
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L780)
|
|
494
494
|
|
|
495
495
|
##### :gear: mergeMaturity
|
|
496
496
|
|
|
@@ -500,7 +500,7 @@ Merge Maturity of a neuron
|
|
|
500
500
|
| --------------- | ------------------------------------------------------------------------------------------------------- |
|
|
501
501
|
| `mergeMaturity` | `({ neuronId, percentageToMerge, }: { neuronId: bigint; percentageToMerge: number; }) => 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#L802)
|
|
504
504
|
|
|
505
505
|
##### :gear: stakeMaturity
|
|
506
506
|
|
|
@@ -515,7 +515,7 @@ Parameters:
|
|
|
515
515
|
- `neuronId`: The id of the neuron for which to stake the maturity
|
|
516
516
|
- `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
|
|
517
517
|
|
|
518
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
518
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L831)
|
|
519
519
|
|
|
520
520
|
##### :gear: spawnNeuron
|
|
521
521
|
|
|
@@ -525,7 +525,7 @@ Merge Maturity of a neuron
|
|
|
525
525
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
526
526
|
| `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?: Principal or undefined; nonce?: bigint or undefined; }) => Promise<bigint>` |
|
|
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#L853)
|
|
529
529
|
|
|
530
530
|
##### :gear: addHotkey
|
|
531
531
|
|
|
@@ -535,7 +535,7 @@ Add hotkey to neuron
|
|
|
535
535
|
| ----------- | ------------------------------------------------------------------------------------------ |
|
|
536
536
|
| `addHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
|
|
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#L900)
|
|
539
539
|
|
|
540
540
|
##### :gear: removeHotkey
|
|
541
541
|
|
|
@@ -545,7 +545,7 @@ Remove hotkey to neuron
|
|
|
545
545
|
| -------------- | ------------------------------------------------------------------------------------------ |
|
|
546
546
|
| `removeHotkey` | `({ 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#L920)
|
|
549
549
|
|
|
550
550
|
##### :gear: claimOrRefreshNeuronFromAccount
|
|
551
551
|
|
|
@@ -555,7 +555,7 @@ Gets the NeuronID of a newly created neuron.
|
|
|
555
555
|
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
556
556
|
| `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?: Principal or undefined; }) => Promise<bigint or undefined>` |
|
|
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#L938)
|
|
559
559
|
|
|
560
560
|
##### :gear: claimOrRefreshNeuron
|
|
561
561
|
|
|
@@ -566,7 +566,7 @@ Uses query call only.
|
|
|
566
566
|
| ---------------------- | ------------------------------------------------------------------------ |
|
|
567
567
|
| `claimOrRefreshNeuron` | `(request: ClaimOrRefreshNeuronRequest) => Promise<bigint or undefined>` |
|
|
568
568
|
|
|
569
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
569
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L969)
|
|
570
570
|
|
|
571
571
|
##### :gear: getNeuron
|
|
572
572
|
|
|
@@ -576,7 +576,7 @@ Return the data of the neuron provided as id.
|
|
|
576
576
|
| ----------- | ----------------------------------------------------------------------------------------------------------- |
|
|
577
577
|
| `getNeuron` | `({ certified, neuronId, }: { certified: boolean; neuronId: bigint; }) => Promise<NeuronInfo 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#L994)
|
|
580
580
|
|
|
581
581
|
##### :gear: getNetworkEconomicsParameters
|
|
582
582
|
|
|
@@ -586,7 +586,7 @@ Return the [Network Economics](https://github.com/dfinity/ic/blob/d90e934eb440c7
|
|
|
586
586
|
| ------------------------------- | ------------------------------------------------------------------------ |
|
|
587
587
|
| `getNetworkEconomicsParameters` | `({ certified, }: { certified: boolean; }) => Promise<NetworkEconomics>` |
|
|
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#L1015)
|
|
590
590
|
|
|
591
591
|
##### :gear: disburseMaturity
|
|
592
592
|
|
|
@@ -597,7 +597,7 @@ Reference: https://github.com/dfinity/ic/blob/ca2be53acf413bb92478ee7694ac0fb92a
|
|
|
597
597
|
| ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
598
598
|
| `disburseMaturity` | `({ neuronId, percentageToDisburse, }: { neuronId: bigint; percentageToDisburse: number; }) => Promise<void>` |
|
|
599
599
|
|
|
600
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
600
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L1038)
|
|
601
601
|
|
|
602
602
|
### :factory: SnsWasmCanister
|
|
603
603
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit f195ba7 (2025-04-30 tags: release-2025-05-01_03-23-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;
|
|
@@ -487,10 +487,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
487
487
|
'transfer_timestamp' : IDL.Nat64,
|
|
488
488
|
'block_height' : IDL.Nat64,
|
|
489
489
|
});
|
|
490
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
491
|
-
const FollowersMap = IDL.Record({
|
|
492
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
493
|
-
});
|
|
494
490
|
const GovernanceError = IDL.Record({
|
|
495
491
|
'error_message' : IDL.Text,
|
|
496
492
|
'error_type' : IDL.Int32,
|
|
@@ -660,7 +656,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
660
656
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
661
657
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
662
658
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
663
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
664
659
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
665
660
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
666
661
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -1490,10 +1485,6 @@ export const init = ({ IDL }) => {
|
|
|
1490
1485
|
'transfer_timestamp' : IDL.Nat64,
|
|
1491
1486
|
'block_height' : IDL.Nat64,
|
|
1492
1487
|
});
|
|
1493
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
1494
|
-
const FollowersMap = IDL.Record({
|
|
1495
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
1496
|
-
});
|
|
1497
1488
|
const GovernanceError = IDL.Record({
|
|
1498
1489
|
'error_message' : IDL.Text,
|
|
1499
1490
|
'error_type' : IDL.Int32,
|
|
@@ -1663,7 +1654,6 @@ export const init = ({ IDL }) => {
|
|
|
1663
1654
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
1664
1655
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
1665
1656
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
1666
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
1667
1657
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1668
1658
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1669
1659
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -215,12 +215,6 @@ export interface Follow {
|
|
|
215
215
|
export interface Followees {
|
|
216
216
|
followees: Array<NeuronId>;
|
|
217
217
|
}
|
|
218
|
-
export interface Followers {
|
|
219
|
-
followers: Array<NeuronId>;
|
|
220
|
-
}
|
|
221
|
-
export interface FollowersMap {
|
|
222
|
-
followers_map: Array<[bigint, Followers]>;
|
|
223
|
-
}
|
|
224
218
|
export interface GetNeuronsFundAuditInfoRequest {
|
|
225
219
|
nns_proposal_id: [] | [ProposalId];
|
|
226
220
|
}
|
|
@@ -246,7 +240,6 @@ export interface Governance {
|
|
|
246
240
|
latest_reward_event: [] | [RewardEvent];
|
|
247
241
|
to_claim_transfers: Array<NeuronStakeTransfer>;
|
|
248
242
|
short_voting_period_seconds: bigint;
|
|
249
|
-
topic_followee_index: Array<[number, FollowersMap]>;
|
|
250
243
|
proposals: Array<[bigint, ProposalData]>;
|
|
251
244
|
xdr_conversion_rate: [] | [XdrConversionRate];
|
|
252
245
|
in_flight_commands: Array<[bigint, NeuronInFlightCommand]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit f195ba7 (2025-04-30 tags: release-2025-05-01_03-23-base) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -282,14 +282,6 @@ type Followees = record {
|
|
|
282
282
|
followees : vec NeuronId;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
type Followers = record {
|
|
286
|
-
followers : vec NeuronId;
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
type FollowersMap = record {
|
|
290
|
-
followers_map : vec record { nat64; Followers };
|
|
291
|
-
};
|
|
292
|
-
|
|
293
285
|
type GetNeuronsFundAuditInfoRequest = record {
|
|
294
286
|
nns_proposal_id : opt ProposalId;
|
|
295
287
|
};
|
|
@@ -318,7 +310,6 @@ type Governance = record {
|
|
|
318
310
|
latest_reward_event : opt RewardEvent;
|
|
319
311
|
to_claim_transfers : vec NeuronStakeTransfer;
|
|
320
312
|
short_voting_period_seconds : nat64;
|
|
321
|
-
topic_followee_index : vec record { int32; FollowersMap };
|
|
322
313
|
proposals : vec record { nat64; ProposalData };
|
|
323
314
|
xdr_conversion_rate : opt XdrConversionRate;
|
|
324
315
|
in_flight_commands : vec record { nat64; NeuronInFlightCommand };
|
|
@@ -487,10 +487,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
487
487
|
'transfer_timestamp' : IDL.Nat64,
|
|
488
488
|
'block_height' : IDL.Nat64,
|
|
489
489
|
});
|
|
490
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
491
|
-
const FollowersMap = IDL.Record({
|
|
492
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
493
|
-
});
|
|
494
490
|
const GovernanceError = IDL.Record({
|
|
495
491
|
'error_message' : IDL.Text,
|
|
496
492
|
'error_type' : IDL.Int32,
|
|
@@ -660,7 +656,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
660
656
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
661
657
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
662
658
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
663
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
664
659
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
665
660
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
666
661
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -1506,10 +1501,6 @@ export const init = ({ IDL }) => {
|
|
|
1506
1501
|
'transfer_timestamp' : IDL.Nat64,
|
|
1507
1502
|
'block_height' : IDL.Nat64,
|
|
1508
1503
|
});
|
|
1509
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
1510
|
-
const FollowersMap = IDL.Record({
|
|
1511
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
1512
|
-
});
|
|
1513
1504
|
const GovernanceError = IDL.Record({
|
|
1514
1505
|
'error_message' : IDL.Text,
|
|
1515
1506
|
'error_type' : IDL.Int32,
|
|
@@ -1679,7 +1670,6 @@ export const init = ({ IDL }) => {
|
|
|
1679
1670
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
1680
1671
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
1681
1672
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
1682
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
1683
1673
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1684
1674
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1685
1675
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -487,10 +487,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
487
487
|
'transfer_timestamp' : IDL.Nat64,
|
|
488
488
|
'block_height' : IDL.Nat64,
|
|
489
489
|
});
|
|
490
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
491
|
-
const FollowersMap = IDL.Record({
|
|
492
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
493
|
-
});
|
|
494
490
|
const GovernanceError = IDL.Record({
|
|
495
491
|
'error_message' : IDL.Text,
|
|
496
492
|
'error_type' : IDL.Int32,
|
|
@@ -660,7 +656,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
660
656
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
661
657
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
662
658
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
663
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
664
659
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
665
660
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
666
661
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -1491,10 +1486,6 @@ export const init = ({ IDL }) => {
|
|
|
1491
1486
|
'transfer_timestamp' : IDL.Nat64,
|
|
1492
1487
|
'block_height' : IDL.Nat64,
|
|
1493
1488
|
});
|
|
1494
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
1495
|
-
const FollowersMap = IDL.Record({
|
|
1496
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
1497
|
-
});
|
|
1498
1489
|
const GovernanceError = IDL.Record({
|
|
1499
1490
|
'error_message' : IDL.Text,
|
|
1500
1491
|
'error_type' : IDL.Int32,
|
|
@@ -1664,7 +1655,6 @@ export const init = ({ IDL }) => {
|
|
|
1664
1655
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
1665
1656
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
1666
1657
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
1667
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
1668
1658
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1669
1659
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1670
1660
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -215,12 +215,6 @@ export interface Follow {
|
|
|
215
215
|
export interface Followees {
|
|
216
216
|
followees: Array<NeuronId>;
|
|
217
217
|
}
|
|
218
|
-
export interface Followers {
|
|
219
|
-
followers: Array<NeuronId>;
|
|
220
|
-
}
|
|
221
|
-
export interface FollowersMap {
|
|
222
|
-
followers_map: Array<[bigint, Followers]>;
|
|
223
|
-
}
|
|
224
218
|
export interface GetNeuronsFundAuditInfoRequest {
|
|
225
219
|
nns_proposal_id: [] | [ProposalId];
|
|
226
220
|
}
|
|
@@ -246,7 +240,6 @@ export interface Governance {
|
|
|
246
240
|
latest_reward_event: [] | [RewardEvent];
|
|
247
241
|
to_claim_transfers: Array<NeuronStakeTransfer>;
|
|
248
242
|
short_voting_period_seconds: bigint;
|
|
249
|
-
topic_followee_index: Array<[number, FollowersMap]>;
|
|
250
243
|
proposals: Array<[bigint, ProposalData]>;
|
|
251
244
|
xdr_conversion_rate: [] | [XdrConversionRate];
|
|
252
245
|
in_flight_commands: Array<[bigint, NeuronInFlightCommand]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit f195ba7 (2025-04-30 tags: release-2025-05-01_03-23-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -279,16 +279,6 @@ type Followees = record {
|
|
|
279
279
|
followees : vec NeuronId;
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
type Followers = record {
|
|
283
|
-
followers : vec NeuronId;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
type FollowersMap = record {
|
|
287
|
-
followers_map : vec record {
|
|
288
|
-
nat64;
|
|
289
|
-
Followers;
|
|
290
|
-
} };
|
|
291
|
-
|
|
292
282
|
type GetNeuronsFundAuditInfoRequest = record {
|
|
293
283
|
nns_proposal_id : opt ProposalId;
|
|
294
284
|
};
|
|
@@ -317,7 +307,6 @@ type Governance = record {
|
|
|
317
307
|
latest_reward_event : opt RewardEvent;
|
|
318
308
|
to_claim_transfers : vec NeuronStakeTransfer;
|
|
319
309
|
short_voting_period_seconds : nat64;
|
|
320
|
-
topic_followee_index : vec record { int32; FollowersMap };
|
|
321
310
|
proposals : vec record { nat64; ProposalData };
|
|
322
311
|
xdr_conversion_rate : opt XdrConversionRate;
|
|
323
312
|
in_flight_commands : vec record { nat64; NeuronInFlightCommand };
|
|
@@ -487,10 +487,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
487
487
|
'transfer_timestamp' : IDL.Nat64,
|
|
488
488
|
'block_height' : IDL.Nat64,
|
|
489
489
|
});
|
|
490
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
491
|
-
const FollowersMap = IDL.Record({
|
|
492
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
493
|
-
});
|
|
494
490
|
const GovernanceError = IDL.Record({
|
|
495
491
|
'error_message' : IDL.Text,
|
|
496
492
|
'error_type' : IDL.Int32,
|
|
@@ -660,7 +656,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
660
656
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
661
657
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
662
658
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
663
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
664
659
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
665
660
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
666
661
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
@@ -1507,10 +1502,6 @@ export const init = ({ IDL }) => {
|
|
|
1507
1502
|
'transfer_timestamp' : IDL.Nat64,
|
|
1508
1503
|
'block_height' : IDL.Nat64,
|
|
1509
1504
|
});
|
|
1510
|
-
const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
|
|
1511
|
-
const FollowersMap = IDL.Record({
|
|
1512
|
-
'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
|
|
1513
|
-
});
|
|
1514
1505
|
const GovernanceError = IDL.Record({
|
|
1515
1506
|
'error_message' : IDL.Text,
|
|
1516
1507
|
'error_type' : IDL.Int32,
|
|
@@ -1680,7 +1671,6 @@ export const init = ({ IDL }) => {
|
|
|
1680
1671
|
'latest_reward_event' : IDL.Opt(RewardEvent),
|
|
1681
1672
|
'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
|
|
1682
1673
|
'short_voting_period_seconds' : IDL.Nat64,
|
|
1683
|
-
'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
|
|
1684
1674
|
'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1685
1675
|
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1686
1676
|
'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit f195ba7 (2025-04-30 tags: release-2025-05-01_03-23-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
wasm : opt SnsWasm;
|