@dfinity/nns 5.2.0 → 6.0.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 +46 -35
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +152 -10
- package/dist/candid/governance.d.ts +114 -3
- package/dist/candid/governance.did +107 -4
- package/dist/candid/governance.idl.js +152 -10
- package/dist/candid/governance_test.certified.idl.js +152 -10
- package/dist/candid/governance_test.d.ts +114 -3
- package/dist/candid/governance_test.did +107 -4
- package/dist/candid/governance_test.idl.js +152 -10
- package/dist/candid/sns_wasm.certified.idl.js +0 -13
- package/dist/candid/sns_wasm.d.ts +0 -13
- package/dist/candid/sns_wasm.did +1 -12
- package/dist/candid/sns_wasm.idl.js +0 -13
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-3GMJYFVP.js +2 -0
- package/dist/esm/chunk-3GMJYFVP.js.map +7 -0
- package/dist/esm/chunk-L6YE6E7N.js +19 -0
- package/dist/esm/chunk-L6YE6E7N.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/esm/sns_wasm.canister.js +1 -1
- package/dist/types/canisters/governance/request.converters.d.ts +10 -5
- package/dist/types/canisters/governance/services.d.ts +3 -3
- package/dist/types/enums/governance.enums.d.ts +32 -6
- package/dist/types/governance.canister.d.ts +9 -2
- package/dist/types/types/governance_converters.d.ts +108 -2
- package/package.json +6 -6
- package/dist/esm/chunk-RRSEQTKA.js +0 -2
- package/dist/esm/chunk-RRSEQTKA.js.map +0 -7
- package/dist/esm/chunk-ZSTGGZGS.js +0 -19
- package/dist/esm/chunk-ZSTGGZGS.js.map +0 -7
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ Parameters:
|
|
|
155
155
|
|
|
156
156
|
### :factory: GovernanceCanister
|
|
157
157
|
|
|
158
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
158
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L94)
|
|
159
159
|
|
|
160
160
|
#### Methods
|
|
161
161
|
|
|
@@ -173,6 +173,7 @@ Parameters:
|
|
|
173
173
|
- [joinCommunityFund](#gear-joincommunityfund)
|
|
174
174
|
- [autoStakeMaturity](#gear-autostakematurity)
|
|
175
175
|
- [leaveCommunityFund](#gear-leavecommunityfund)
|
|
176
|
+
- [setVisibility](#gear-setvisibility)
|
|
176
177
|
- [setNodeProviderAccount](#gear-setnodeprovideraccount)
|
|
177
178
|
- [mergeNeurons](#gear-mergeneurons)
|
|
178
179
|
- [simulateMergeNeurons](#gear-simulatemergeneurons)
|
|
@@ -197,7 +198,7 @@ Parameters:
|
|
|
197
198
|
| -------- | ------------------------------------------------------------- |
|
|
198
199
|
| `create` | `(options?: GovernanceCanisterOptions) => GovernanceCanister` |
|
|
199
200
|
|
|
200
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
201
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L109)
|
|
201
202
|
|
|
202
203
|
##### :gear: listNeurons
|
|
203
204
|
|
|
@@ -210,11 +211,11 @@ it is fetched using a query call.
|
|
|
210
211
|
|
|
211
212
|
The backend treats `includeEmptyNeurons` as true if absent.
|
|
212
213
|
|
|
213
|
-
| Method | Type
|
|
214
|
-
| ------------- |
|
|
215
|
-
| `listNeurons` | `({ certified, neuronIds, includeEmptyNeurons, }: { certified: boolean; neuronIds?: bigint[] or undefined; includeEmptyNeurons?: boolean or undefined; }) => Promise<NeuronInfo[]>` |
|
|
214
|
+
| Method | Type |
|
|
215
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
216
|
+
| `listNeurons` | `({ certified, neuronIds, includeEmptyNeurons, includePublicNeurons, }: { certified: boolean; neuronIds?: bigint[] or undefined; includeEmptyNeurons?: boolean or undefined; includePublicNeurons?: boolean or undefined; }) => Promise<NeuronInfo[]>` |
|
|
216
217
|
|
|
217
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
218
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L149)
|
|
218
219
|
|
|
219
220
|
##### :gear: listKnownNeurons
|
|
220
221
|
|
|
@@ -228,7 +229,7 @@ it is fetched using a query call.
|
|
|
228
229
|
| ------------------ | ------------------------------------------------- |
|
|
229
230
|
| `listKnownNeurons` | `(certified?: boolean) => Promise<KnownNeuron[]>` |
|
|
230
231
|
|
|
231
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
232
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L192)
|
|
232
233
|
|
|
233
234
|
##### :gear: getLastestRewardEvent
|
|
234
235
|
|
|
@@ -241,7 +242,7 @@ it's fetched using a query call.
|
|
|
241
242
|
| ----------------------- | ----------------------------------------------- |
|
|
242
243
|
| `getLastestRewardEvent` | `(certified?: boolean) => Promise<RewardEvent>` |
|
|
243
244
|
|
|
244
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
245
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L214)
|
|
245
246
|
|
|
246
247
|
##### :gear: listProposals
|
|
247
248
|
|
|
@@ -260,7 +261,7 @@ Parameters:
|
|
|
260
261
|
- `request`: the options to list the proposals (limit number of results, topics to search for, etc.)
|
|
261
262
|
- `certified`: query or update calls
|
|
262
263
|
|
|
263
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
264
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L230)
|
|
264
265
|
|
|
265
266
|
##### :gear: stakeNeuron
|
|
266
267
|
|
|
@@ -268,7 +269,7 @@ Parameters:
|
|
|
268
269
|
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
269
270
|
| `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<...>` |
|
|
270
271
|
|
|
271
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
272
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L249)
|
|
272
273
|
|
|
273
274
|
##### :gear: stakeNeuronIcrc1
|
|
274
275
|
|
|
@@ -276,7 +277,7 @@ Parameters:
|
|
|
276
277
|
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
277
278
|
| `stakeNeuronIcrc1` | `({ stake, principal, fromSubAccount, ledgerCanister, createdAt, fee, }: { stake: bigint; principal: Principal; fromSubAccount?: Uint8Array or undefined; ledgerCanister: LedgerCanister; createdAt?: bigint or undefined; fee?: bigint or undefined; }) => Promise<...>` |
|
|
278
279
|
|
|
279
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
280
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L315)
|
|
280
281
|
|
|
281
282
|
##### :gear: increaseDissolveDelay
|
|
282
283
|
|
|
@@ -286,7 +287,7 @@ Increases dissolve delay of a neuron
|
|
|
286
287
|
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
287
288
|
| `increaseDissolveDelay` | `({ neuronId, additionalDissolveDelaySeconds, }: { neuronId: bigint; additionalDissolveDelaySeconds: number; }) => Promise<void>` |
|
|
288
289
|
|
|
289
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
290
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L380)
|
|
290
291
|
|
|
291
292
|
##### :gear: setDissolveDelay
|
|
292
293
|
|
|
@@ -297,7 +298,7 @@ The new date is now + dissolveDelaySeconds.
|
|
|
297
298
|
| ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
298
299
|
| `setDissolveDelay` | `({ neuronId, dissolveDelaySeconds, }: { neuronId: bigint; dissolveDelaySeconds: number; }) => Promise<void>` |
|
|
299
300
|
|
|
300
|
-
[: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#L406)
|
|
301
302
|
|
|
302
303
|
##### :gear: startDissolving
|
|
303
304
|
|
|
@@ -307,7 +308,7 @@ Start dissolving process of a neuron
|
|
|
307
308
|
| ----------------- | ------------------------------------- |
|
|
308
309
|
| `startDissolving` | `(neuronId: bigint) => Promise<void>` |
|
|
309
310
|
|
|
310
|
-
[: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#L429)
|
|
311
312
|
|
|
312
313
|
##### :gear: stopDissolving
|
|
313
314
|
|
|
@@ -317,7 +318,7 @@ Stop dissolving process of a neuron
|
|
|
317
318
|
| ---------------- | ------------------------------------- |
|
|
318
319
|
| `stopDissolving` | `(neuronId: bigint) => Promise<void>` |
|
|
319
320
|
|
|
320
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
321
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L443)
|
|
321
322
|
|
|
322
323
|
##### :gear: joinCommunityFund
|
|
323
324
|
|
|
@@ -327,7 +328,7 @@ Neuron joins the community fund
|
|
|
327
328
|
| ------------------- | ------------------------------------- |
|
|
328
329
|
| `joinCommunityFund` | `(neuronId: bigint) => Promise<void>` |
|
|
329
330
|
|
|
330
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
331
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L457)
|
|
331
332
|
|
|
332
333
|
##### :gear: autoStakeMaturity
|
|
333
334
|
|
|
@@ -342,7 +343,7 @@ Parameters:
|
|
|
342
343
|
- `neuronId`: The id of the neuron for which to request a change of the auto stake feature
|
|
343
344
|
- `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
|
|
344
345
|
|
|
345
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
346
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L475)
|
|
346
347
|
|
|
347
348
|
##### :gear: leaveCommunityFund
|
|
348
349
|
|
|
@@ -352,7 +353,17 @@ Neuron leaves the community fund
|
|
|
352
353
|
| -------------------- | ------------------------------------- |
|
|
353
354
|
| `leaveCommunityFund` | `(neuronId: bigint) => Promise<void>` |
|
|
354
355
|
|
|
355
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
356
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L490)
|
|
357
|
+
|
|
358
|
+
##### :gear: setVisibility
|
|
359
|
+
|
|
360
|
+
Set visibility of a neuron
|
|
361
|
+
|
|
362
|
+
| Method | Type |
|
|
363
|
+
| --------------- | ------------------------------------------------------------------- |
|
|
364
|
+
| `setVisibility` | `(neuronId: bigint, visibility: NeuronVisibility) => Promise<void>` |
|
|
365
|
+
|
|
366
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L504)
|
|
356
367
|
|
|
357
368
|
##### :gear: setNodeProviderAccount
|
|
358
369
|
|
|
@@ -363,7 +374,7 @@ Where the reward is paid to.
|
|
|
363
374
|
| ------------------------ | ---------------------------------------------- |
|
|
364
375
|
| `setNodeProviderAccount` | `(accountIdentifier: string) => Promise<void>` |
|
|
365
376
|
|
|
366
|
-
[: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#L524)
|
|
367
378
|
|
|
368
379
|
##### :gear: mergeNeurons
|
|
369
380
|
|
|
@@ -373,7 +384,7 @@ Merge two neurons
|
|
|
373
384
|
| -------------- | --------------------------------------------------------------------------------- |
|
|
374
385
|
| `mergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<void>` |
|
|
375
386
|
|
|
376
|
-
[: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#L544)
|
|
377
388
|
|
|
378
389
|
##### :gear: simulateMergeNeurons
|
|
379
390
|
|
|
@@ -383,7 +394,7 @@ Simulate merging two neurons
|
|
|
383
394
|
| ---------------------- | --------------------------------------------------------------------------------------- |
|
|
384
395
|
| `simulateMergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<NeuronInfo>` |
|
|
385
396
|
|
|
386
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
397
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L561)
|
|
387
398
|
|
|
388
399
|
##### :gear: splitNeuron
|
|
389
400
|
|
|
@@ -393,7 +404,7 @@ Splits a neuron creating a new one
|
|
|
393
404
|
| ------------- | ----------------------------------------------------------------------------------- |
|
|
394
405
|
| `splitNeuron` | `({ neuronId, amount, }: { neuronId: bigint; amount: bigint; }) => Promise<bigint>` |
|
|
395
406
|
|
|
396
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
407
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L606)
|
|
397
408
|
|
|
398
409
|
##### :gear: getProposal
|
|
399
410
|
|
|
@@ -406,7 +417,7 @@ it is fetched using a query call.
|
|
|
406
417
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
407
418
|
| `getProposal` | `({ proposalId, certified, }: { proposalId: bigint; certified?: boolean or undefined; }) => Promise<ProposalInfo or undefined>` |
|
|
408
419
|
|
|
409
|
-
[: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#L646)
|
|
410
421
|
|
|
411
422
|
##### :gear: makeProposal
|
|
412
423
|
|
|
@@ -416,7 +427,7 @@ Create new proposal
|
|
|
416
427
|
| -------------- | ---------------------------------------------------------------- |
|
|
417
428
|
| `makeProposal` | `(request: MakeProposalRequest) => Promise<bigint or undefined>` |
|
|
418
429
|
|
|
419
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
430
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L664)
|
|
420
431
|
|
|
421
432
|
##### :gear: registerVote
|
|
422
433
|
|
|
@@ -426,7 +437,7 @@ Registers vote for a proposal from the neuron passed.
|
|
|
426
437
|
| -------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
427
438
|
| `registerVote` | `({ neuronId, vote, proposalId, }: { neuronId: bigint; vote: Vote; proposalId: bigint; }) => Promise<void>` |
|
|
428
439
|
|
|
429
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
440
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L685)
|
|
430
441
|
|
|
431
442
|
##### :gear: setFollowees
|
|
432
443
|
|
|
@@ -436,7 +447,7 @@ Edit neuron followees per topic
|
|
|
436
447
|
| -------------- | ------------------------------------------------- |
|
|
437
448
|
| `setFollowees` | `(followRequest: FollowRequest) => Promise<void>` |
|
|
438
449
|
|
|
439
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
450
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L707)
|
|
440
451
|
|
|
441
452
|
##### :gear: disburse
|
|
442
453
|
|
|
@@ -446,7 +457,7 @@ Disburse neuron on Account
|
|
|
446
457
|
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
447
458
|
| `disburse` | `({ neuronId, toAccountId, amount, }: { neuronId: bigint; toAccountId?: string or undefined; amount?: bigint or undefined; }) => Promise<void>` |
|
|
448
459
|
|
|
449
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
460
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L722)
|
|
450
461
|
|
|
451
462
|
##### :gear: mergeMaturity
|
|
452
463
|
|
|
@@ -456,7 +467,7 @@ Merge Maturity of a neuron
|
|
|
456
467
|
| --------------- | ------------------------------------------------------------------------------------------------------- |
|
|
457
468
|
| `mergeMaturity` | `({ neuronId, percentageToMerge, }: { neuronId: bigint; percentageToMerge: number; }) => Promise<void>` |
|
|
458
469
|
|
|
459
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
470
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L758)
|
|
460
471
|
|
|
461
472
|
##### :gear: stakeMaturity
|
|
462
473
|
|
|
@@ -471,7 +482,7 @@ Parameters:
|
|
|
471
482
|
- `neuronId`: The id of the neuron for which to stake the maturity
|
|
472
483
|
- `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
|
|
473
484
|
|
|
474
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
485
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L787)
|
|
475
486
|
|
|
476
487
|
##### :gear: spawnNeuron
|
|
477
488
|
|
|
@@ -481,7 +492,7 @@ Merge Maturity of a neuron
|
|
|
481
492
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
482
493
|
| `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?: Principal or undefined; nonce?: bigint or undefined; }) => Promise<bigint>` |
|
|
483
494
|
|
|
484
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
495
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L809)
|
|
485
496
|
|
|
486
497
|
##### :gear: addHotkey
|
|
487
498
|
|
|
@@ -491,7 +502,7 @@ Add hotkey to neuron
|
|
|
491
502
|
| ----------- | ------------------------------------------------------------------------------------------ |
|
|
492
503
|
| `addHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
|
|
493
504
|
|
|
494
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
505
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L856)
|
|
495
506
|
|
|
496
507
|
##### :gear: removeHotkey
|
|
497
508
|
|
|
@@ -501,7 +512,7 @@ Remove hotkey to neuron
|
|
|
501
512
|
| -------------- | ------------------------------------------------------------------------------------------ |
|
|
502
513
|
| `removeHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
|
|
503
514
|
|
|
504
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
515
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L876)
|
|
505
516
|
|
|
506
517
|
##### :gear: claimOrRefreshNeuronFromAccount
|
|
507
518
|
|
|
@@ -511,7 +522,7 @@ Gets the NeuronID of a newly created neuron.
|
|
|
511
522
|
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
512
523
|
| `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?: Principal or undefined; }) => Promise<bigint or undefined>` |
|
|
513
524
|
|
|
514
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
525
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L894)
|
|
515
526
|
|
|
516
527
|
##### :gear: claimOrRefreshNeuron
|
|
517
528
|
|
|
@@ -522,7 +533,7 @@ Uses query call only.
|
|
|
522
533
|
| ---------------------- | ------------------------------------------------------------------------ |
|
|
523
534
|
| `claimOrRefreshNeuron` | `(request: ClaimOrRefreshNeuronRequest) => Promise<bigint or undefined>` |
|
|
524
535
|
|
|
525
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
536
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L925)
|
|
526
537
|
|
|
527
538
|
##### :gear: getNeuron
|
|
528
539
|
|
|
@@ -532,7 +543,7 @@ Return the data of the neuron provided as id.
|
|
|
532
543
|
| ----------- | ----------------------------------------------------------------------------------------------------------- |
|
|
533
544
|
| `getNeuron` | `({ certified, neuronId, }: { certified: boolean; neuronId: bigint; }) => Promise<NeuronInfo or undefined>` |
|
|
534
545
|
|
|
535
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
546
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L976)
|
|
536
547
|
|
|
537
548
|
### :factory: SnsWasmCanister
|
|
538
549
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) '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;
|