@dfinity/nns 5.1.2 → 5.2.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 +37 -35
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +70 -13
- package/dist/candid/governance.d.ts +26 -5
- package/dist/candid/governance.did +25 -4
- package/dist/candid/governance.idl.js +70 -13
- package/dist/candid/governance_test.certified.idl.js +70 -13
- package/dist/candid/governance_test.d.ts +26 -5
- package/dist/candid/governance_test.did +25 -4
- package/dist/candid/governance_test.idl.js +70 -13
- package/dist/candid/old_list_neurons_service.certified.idl.d.ts +2 -0
- package/dist/candid/old_list_neurons_service.certified.idl.js +78 -0
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-ZSTGGZGS.js +19 -0
- package/dist/esm/chunk-ZSTGGZGS.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 +4 -1
- package/dist/types/canisters/governance/response.converters.d.ts +8 -1
- package/dist/types/enums/governance.enums.d.ts +3 -1
- package/dist/types/governance.canister.d.ts +4 -1
- package/dist/types/governance_test.canister.d.ts +2 -1
- package/dist/types/types/governance.options.d.ts +2 -0
- package/package.json +6 -6
- package/dist/esm/chunk-AN6DZS5M.js +0 -19
- package/dist/esm/chunk-AN6DZS5M.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#L93)
|
|
159
159
|
|
|
160
160
|
#### Methods
|
|
161
161
|
|
|
@@ -197,7 +197,7 @@ Parameters:
|
|
|
197
197
|
| -------- | ------------------------------------------------------------- |
|
|
198
198
|
| `create` | `(options?: GovernanceCanisterOptions) => GovernanceCanister` |
|
|
199
199
|
|
|
200
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
200
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L108)
|
|
201
201
|
|
|
202
202
|
##### :gear: listNeurons
|
|
203
203
|
|
|
@@ -208,11 +208,13 @@ If an array of neuron IDs is provided, precisely those neurons will be fetched.
|
|
|
208
208
|
If `certified` is true, the request is fetched as an update call, otherwise
|
|
209
209
|
it is fetched using a query call.
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
| ------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
213
|
-
| `listNeurons` | `({ certified, neuronIds, }: { certified: boolean; neuronIds?: bigint[] or undefined; }) => Promise<NeuronInfo[]>` |
|
|
211
|
+
The backend treats `includeEmptyNeurons` as true if absent.
|
|
214
212
|
|
|
215
|
-
|
|
213
|
+
| Method | Type |
|
|
214
|
+
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
215
|
+
| `listNeurons` | `({ certified, neuronIds, includeEmptyNeurons, }: { certified: boolean; neuronIds?: bigint[] or undefined; includeEmptyNeurons?: boolean or undefined; }) => Promise<NeuronInfo[]>` |
|
|
216
|
+
|
|
217
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L148)
|
|
216
218
|
|
|
217
219
|
##### :gear: listKnownNeurons
|
|
218
220
|
|
|
@@ -226,7 +228,7 @@ it is fetched using a query call.
|
|
|
226
228
|
| ------------------ | ------------------------------------------------- |
|
|
227
229
|
| `listKnownNeurons` | `(certified?: boolean) => Promise<KnownNeuron[]>` |
|
|
228
230
|
|
|
229
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
231
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L181)
|
|
230
232
|
|
|
231
233
|
##### :gear: getLastestRewardEvent
|
|
232
234
|
|
|
@@ -239,7 +241,7 @@ it's fetched using a query call.
|
|
|
239
241
|
| ----------------------- | ----------------------------------------------- |
|
|
240
242
|
| `getLastestRewardEvent` | `(certified?: boolean) => Promise<RewardEvent>` |
|
|
241
243
|
|
|
242
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
244
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L203)
|
|
243
245
|
|
|
244
246
|
##### :gear: listProposals
|
|
245
247
|
|
|
@@ -258,7 +260,7 @@ Parameters:
|
|
|
258
260
|
- `request`: the options to list the proposals (limit number of results, topics to search for, etc.)
|
|
259
261
|
- `certified`: query or update calls
|
|
260
262
|
|
|
261
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
263
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L219)
|
|
262
264
|
|
|
263
265
|
##### :gear: stakeNeuron
|
|
264
266
|
|
|
@@ -266,7 +268,7 @@ Parameters:
|
|
|
266
268
|
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
267
269
|
| `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<...>` |
|
|
268
270
|
|
|
269
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
271
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L238)
|
|
270
272
|
|
|
271
273
|
##### :gear: stakeNeuronIcrc1
|
|
272
274
|
|
|
@@ -274,7 +276,7 @@ Parameters:
|
|
|
274
276
|
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
275
277
|
| `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<...>` |
|
|
276
278
|
|
|
277
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
279
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L304)
|
|
278
280
|
|
|
279
281
|
##### :gear: increaseDissolveDelay
|
|
280
282
|
|
|
@@ -284,7 +286,7 @@ Increases dissolve delay of a neuron
|
|
|
284
286
|
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
285
287
|
| `increaseDissolveDelay` | `({ neuronId, additionalDissolveDelaySeconds, }: { neuronId: bigint; additionalDissolveDelaySeconds: number; }) => Promise<void>` |
|
|
286
288
|
|
|
287
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
289
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L369)
|
|
288
290
|
|
|
289
291
|
##### :gear: setDissolveDelay
|
|
290
292
|
|
|
@@ -295,7 +297,7 @@ The new date is now + dissolveDelaySeconds.
|
|
|
295
297
|
| ------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
296
298
|
| `setDissolveDelay` | `({ neuronId, dissolveDelaySeconds, }: { neuronId: bigint; dissolveDelaySeconds: number; }) => Promise<void>` |
|
|
297
299
|
|
|
298
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
300
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L395)
|
|
299
301
|
|
|
300
302
|
##### :gear: startDissolving
|
|
301
303
|
|
|
@@ -305,7 +307,7 @@ Start dissolving process of a neuron
|
|
|
305
307
|
| ----------------- | ------------------------------------- |
|
|
306
308
|
| `startDissolving` | `(neuronId: bigint) => Promise<void>` |
|
|
307
309
|
|
|
308
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
310
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L418)
|
|
309
311
|
|
|
310
312
|
##### :gear: stopDissolving
|
|
311
313
|
|
|
@@ -315,7 +317,7 @@ Stop dissolving process of a neuron
|
|
|
315
317
|
| ---------------- | ------------------------------------- |
|
|
316
318
|
| `stopDissolving` | `(neuronId: bigint) => Promise<void>` |
|
|
317
319
|
|
|
318
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
320
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L432)
|
|
319
321
|
|
|
320
322
|
##### :gear: joinCommunityFund
|
|
321
323
|
|
|
@@ -325,7 +327,7 @@ Neuron joins the community fund
|
|
|
325
327
|
| ------------------- | ------------------------------------- |
|
|
326
328
|
| `joinCommunityFund` | `(neuronId: bigint) => Promise<void>` |
|
|
327
329
|
|
|
328
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
330
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L446)
|
|
329
331
|
|
|
330
332
|
##### :gear: autoStakeMaturity
|
|
331
333
|
|
|
@@ -340,7 +342,7 @@ Parameters:
|
|
|
340
342
|
- `neuronId`: The id of the neuron for which to request a change of the auto stake feature
|
|
341
343
|
- `autoStake`: `true` to enable the auto-stake maturity for this neuron, `false` to turn it off
|
|
342
344
|
|
|
343
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
345
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L464)
|
|
344
346
|
|
|
345
347
|
##### :gear: leaveCommunityFund
|
|
346
348
|
|
|
@@ -350,7 +352,7 @@ Neuron leaves the community fund
|
|
|
350
352
|
| -------------------- | ------------------------------------- |
|
|
351
353
|
| `leaveCommunityFund` | `(neuronId: bigint) => Promise<void>` |
|
|
352
354
|
|
|
353
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
355
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L479)
|
|
354
356
|
|
|
355
357
|
##### :gear: setNodeProviderAccount
|
|
356
358
|
|
|
@@ -361,7 +363,7 @@ Where the reward is paid to.
|
|
|
361
363
|
| ------------------------ | ---------------------------------------------- |
|
|
362
364
|
| `setNodeProviderAccount` | `(accountIdentifier: string) => Promise<void>` |
|
|
363
365
|
|
|
364
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
366
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L496)
|
|
365
367
|
|
|
366
368
|
##### :gear: mergeNeurons
|
|
367
369
|
|
|
@@ -371,7 +373,7 @@ Merge two neurons
|
|
|
371
373
|
| -------------- | --------------------------------------------------------------------------------- |
|
|
372
374
|
| `mergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<void>` |
|
|
373
375
|
|
|
374
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
376
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L516)
|
|
375
377
|
|
|
376
378
|
##### :gear: simulateMergeNeurons
|
|
377
379
|
|
|
@@ -381,7 +383,7 @@ Simulate merging two neurons
|
|
|
381
383
|
| ---------------------- | --------------------------------------------------------------------------------------- |
|
|
382
384
|
| `simulateMergeNeurons` | `(request: { sourceNeuronId: bigint; targetNeuronId: bigint; }) => Promise<NeuronInfo>` |
|
|
383
385
|
|
|
384
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
386
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L533)
|
|
385
387
|
|
|
386
388
|
##### :gear: splitNeuron
|
|
387
389
|
|
|
@@ -391,7 +393,7 @@ Splits a neuron creating a new one
|
|
|
391
393
|
| ------------- | ----------------------------------------------------------------------------------- |
|
|
392
394
|
| `splitNeuron` | `({ neuronId, amount, }: { neuronId: bigint; amount: bigint; }) => Promise<bigint>` |
|
|
393
395
|
|
|
394
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
396
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L578)
|
|
395
397
|
|
|
396
398
|
##### :gear: getProposal
|
|
397
399
|
|
|
@@ -404,7 +406,7 @@ it is fetched using a query call.
|
|
|
404
406
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
405
407
|
| `getProposal` | `({ proposalId, certified, }: { proposalId: bigint; certified?: boolean or undefined; }) => Promise<ProposalInfo or undefined>` |
|
|
406
408
|
|
|
407
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
409
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L618)
|
|
408
410
|
|
|
409
411
|
##### :gear: makeProposal
|
|
410
412
|
|
|
@@ -414,7 +416,7 @@ Create new proposal
|
|
|
414
416
|
| -------------- | ---------------------------------------------------------------- |
|
|
415
417
|
| `makeProposal` | `(request: MakeProposalRequest) => Promise<bigint or undefined>` |
|
|
416
418
|
|
|
417
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
419
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L636)
|
|
418
420
|
|
|
419
421
|
##### :gear: registerVote
|
|
420
422
|
|
|
@@ -424,7 +426,7 @@ Registers vote for a proposal from the neuron passed.
|
|
|
424
426
|
| -------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
425
427
|
| `registerVote` | `({ neuronId, vote, proposalId, }: { neuronId: bigint; vote: Vote; proposalId: bigint; }) => Promise<void>` |
|
|
426
428
|
|
|
427
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
429
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L657)
|
|
428
430
|
|
|
429
431
|
##### :gear: setFollowees
|
|
430
432
|
|
|
@@ -434,7 +436,7 @@ Edit neuron followees per topic
|
|
|
434
436
|
| -------------- | ------------------------------------------------- |
|
|
435
437
|
| `setFollowees` | `(followRequest: FollowRequest) => Promise<void>` |
|
|
436
438
|
|
|
437
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
439
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L679)
|
|
438
440
|
|
|
439
441
|
##### :gear: disburse
|
|
440
442
|
|
|
@@ -444,7 +446,7 @@ Disburse neuron on Account
|
|
|
444
446
|
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
445
447
|
| `disburse` | `({ neuronId, toAccountId, amount, }: { neuronId: bigint; toAccountId?: string or undefined; amount?: bigint or undefined; }) => Promise<void>` |
|
|
446
448
|
|
|
447
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
449
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L694)
|
|
448
450
|
|
|
449
451
|
##### :gear: mergeMaturity
|
|
450
452
|
|
|
@@ -454,7 +456,7 @@ Merge Maturity of a neuron
|
|
|
454
456
|
| --------------- | ------------------------------------------------------------------------------------------------------- |
|
|
455
457
|
| `mergeMaturity` | `({ neuronId, percentageToMerge, }: { neuronId: bigint; percentageToMerge: number; }) => Promise<void>` |
|
|
456
458
|
|
|
457
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
459
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L730)
|
|
458
460
|
|
|
459
461
|
##### :gear: stakeMaturity
|
|
460
462
|
|
|
@@ -469,7 +471,7 @@ Parameters:
|
|
|
469
471
|
- `neuronId`: The id of the neuron for which to stake the maturity
|
|
470
472
|
- `percentageToStake`: Optional. Percentage of the current maturity to stake. If not provided, all of the neuron's current maturity will be staked.
|
|
471
473
|
|
|
472
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
474
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L759)
|
|
473
475
|
|
|
474
476
|
##### :gear: spawnNeuron
|
|
475
477
|
|
|
@@ -479,7 +481,7 @@ Merge Maturity of a neuron
|
|
|
479
481
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
480
482
|
| `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?: Principal or undefined; nonce?: bigint or undefined; }) => Promise<bigint>` |
|
|
481
483
|
|
|
482
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
484
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L781)
|
|
483
485
|
|
|
484
486
|
##### :gear: addHotkey
|
|
485
487
|
|
|
@@ -489,7 +491,7 @@ Add hotkey to neuron
|
|
|
489
491
|
| ----------- | ------------------------------------------------------------------------------------------ |
|
|
490
492
|
| `addHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
|
|
491
493
|
|
|
492
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
494
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L828)
|
|
493
495
|
|
|
494
496
|
##### :gear: removeHotkey
|
|
495
497
|
|
|
@@ -499,7 +501,7 @@ Remove hotkey to neuron
|
|
|
499
501
|
| -------------- | ------------------------------------------------------------------------------------------ |
|
|
500
502
|
| `removeHotkey` | `({ neuronId, principal, }: { neuronId: bigint; principal: Principal; }) => Promise<void>` |
|
|
501
503
|
|
|
502
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
504
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L848)
|
|
503
505
|
|
|
504
506
|
##### :gear: claimOrRefreshNeuronFromAccount
|
|
505
507
|
|
|
@@ -509,7 +511,7 @@ Gets the NeuronID of a newly created neuron.
|
|
|
509
511
|
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
510
512
|
| `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?: Principal or undefined; }) => Promise<bigint or undefined>` |
|
|
511
513
|
|
|
512
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
514
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L866)
|
|
513
515
|
|
|
514
516
|
##### :gear: claimOrRefreshNeuron
|
|
515
517
|
|
|
@@ -520,7 +522,7 @@ Uses query call only.
|
|
|
520
522
|
| ---------------------- | ------------------------------------------------------------------------ |
|
|
521
523
|
| `claimOrRefreshNeuron` | `(request: ClaimOrRefreshNeuronRequest) => Promise<bigint or undefined>` |
|
|
522
524
|
|
|
523
|
-
[: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#L897)
|
|
524
526
|
|
|
525
527
|
##### :gear: getNeuron
|
|
526
528
|
|
|
@@ -530,7 +532,7 @@ Return the data of the neuron provided as id.
|
|
|
530
532
|
| ----------- | ----------------------------------------------------------------------------------------------------------- |
|
|
531
533
|
| `getNeuron` | `({ certified, neuronId, }: { certified: boolean; neuronId: bigint; }) => Promise<NeuronInfo or undefined>` |
|
|
532
534
|
|
|
533
|
-
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#
|
|
535
|
+
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L948)
|
|
534
536
|
|
|
535
537
|
### :factory: SnsWasmCanister
|
|
536
538
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-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;
|
|
@@ -308,9 +308,34 @@ export const idlFactory = ({ IDL }) => {
|
|
|
308
308
|
'caller' : IDL.Opt(IDL.Principal),
|
|
309
309
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
310
310
|
});
|
|
311
|
-
const
|
|
311
|
+
const XdrConversionRate = IDL.Record({
|
|
312
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
313
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
314
|
+
});
|
|
315
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
316
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
317
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
318
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
312
319
|
'timestamp' : IDL.Nat64,
|
|
313
320
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
321
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
322
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
323
|
+
});
|
|
324
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
325
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
326
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
327
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
328
|
+
),
|
|
329
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
330
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
331
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
332
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
333
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
334
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
335
|
+
),
|
|
336
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
337
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
338
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
314
339
|
});
|
|
315
340
|
const GovernanceCachedMetrics = IDL.Record({
|
|
316
341
|
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
@@ -337,6 +362,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
337
362
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
338
363
|
'total_locked_e8s' : IDL.Nat64,
|
|
339
364
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
365
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
366
|
+
IDL.Nat64
|
|
367
|
+
),
|
|
340
368
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
341
369
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
342
370
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -344,6 +372,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
344
372
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
345
373
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
346
374
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
375
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
347
376
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
348
377
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
349
378
|
),
|
|
@@ -357,6 +386,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
357
386
|
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
358
387
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
359
388
|
),
|
|
389
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
390
|
+
NeuronSubsetMetrics
|
|
391
|
+
),
|
|
360
392
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
361
393
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
362
394
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -518,10 +550,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
518
550
|
IDL.Nat64
|
|
519
551
|
),
|
|
520
552
|
});
|
|
521
|
-
const XdrConversionRate = IDL.Record({
|
|
522
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
523
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
524
|
-
});
|
|
525
553
|
const Command_2 = IDL.Variant({
|
|
526
554
|
'Spawn' : NeuronId,
|
|
527
555
|
'Split' : Split,
|
|
@@ -572,7 +600,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
572
600
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
573
601
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
574
602
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
575
|
-
|
|
603
|
+
MonthlyNodeProviderRewards
|
|
576
604
|
),
|
|
577
605
|
'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
|
|
578
606
|
IDL.Nat64
|
|
@@ -670,6 +698,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
670
698
|
});
|
|
671
699
|
const ListNeurons = IDL.Record({
|
|
672
700
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
701
|
+
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
673
702
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
674
703
|
});
|
|
675
704
|
const ListNeuronsResponse = IDL.Record({
|
|
@@ -795,7 +824,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
795
824
|
'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
|
|
796
825
|
'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
|
|
797
826
|
[],
|
|
798
|
-
[IDL.Opt(
|
|
827
|
+
[IDL.Opt(MonthlyNodeProviderRewards)],
|
|
799
828
|
[],
|
|
800
829
|
),
|
|
801
830
|
'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
|
|
@@ -1152,9 +1181,34 @@ export const init = ({ IDL }) => {
|
|
|
1152
1181
|
'caller' : IDL.Opt(IDL.Principal),
|
|
1153
1182
|
'proposer_id' : IDL.Opt(NeuronId),
|
|
1154
1183
|
});
|
|
1155
|
-
const
|
|
1184
|
+
const XdrConversionRate = IDL.Record({
|
|
1185
|
+
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1186
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1187
|
+
});
|
|
1188
|
+
const MonthlyNodeProviderRewards = IDL.Record({
|
|
1189
|
+
'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1190
|
+
'registry_version' : IDL.Opt(IDL.Nat64),
|
|
1191
|
+
'node_providers' : IDL.Vec(NodeProvider),
|
|
1156
1192
|
'timestamp' : IDL.Nat64,
|
|
1157
1193
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1194
|
+
'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
|
|
1195
|
+
'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
|
|
1196
|
+
});
|
|
1197
|
+
const NeuronSubsetMetrics = IDL.Record({
|
|
1198
|
+
'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1199
|
+
'maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1200
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1201
|
+
),
|
|
1202
|
+
'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1203
|
+
'total_staked_e8s' : IDL.Opt(IDL.Nat64),
|
|
1204
|
+
'count' : IDL.Opt(IDL.Nat64),
|
|
1205
|
+
'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1206
|
+
'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
|
|
1207
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
1208
|
+
),
|
|
1209
|
+
'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1210
|
+
'total_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1211
|
+
'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
1158
1212
|
});
|
|
1159
1213
|
const GovernanceCachedMetrics = IDL.Record({
|
|
1160
1214
|
'total_maturity_e8s_equivalent' : IDL.Nat64,
|
|
@@ -1181,6 +1235,9 @@ export const init = ({ IDL }) => {
|
|
|
1181
1235
|
'not_dissolving_neurons_count' : IDL.Nat64,
|
|
1182
1236
|
'total_locked_e8s' : IDL.Nat64,
|
|
1183
1237
|
'neurons_fund_total_active_neurons' : IDL.Nat64,
|
|
1238
|
+
'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
|
|
1239
|
+
IDL.Nat64
|
|
1240
|
+
),
|
|
1184
1241
|
'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
|
|
1185
1242
|
'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1186
1243
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1188,6 +1245,7 @@ export const init = ({ IDL }) => {
|
|
|
1188
1245
|
'total_staked_e8s_ect' : IDL.Nat64,
|
|
1189
1246
|
'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
|
|
1190
1247
|
'dissolved_neurons_e8s' : IDL.Nat64,
|
|
1248
|
+
'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
|
|
1191
1249
|
'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
|
|
1192
1250
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1193
1251
|
),
|
|
@@ -1201,6 +1259,9 @@ export const init = ({ IDL }) => {
|
|
|
1201
1259
|
'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
|
|
1202
1260
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
1203
1261
|
),
|
|
1262
|
+
'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
|
|
1263
|
+
NeuronSubsetMetrics
|
|
1264
|
+
),
|
|
1204
1265
|
'dissolving_neurons_count' : IDL.Nat64,
|
|
1205
1266
|
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
1206
1267
|
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
@@ -1362,10 +1423,6 @@ export const init = ({ IDL }) => {
|
|
|
1362
1423
|
IDL.Nat64
|
|
1363
1424
|
),
|
|
1364
1425
|
});
|
|
1365
|
-
const XdrConversionRate = IDL.Record({
|
|
1366
|
-
'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
|
|
1367
|
-
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1368
|
-
});
|
|
1369
1426
|
const Command_2 = IDL.Variant({
|
|
1370
1427
|
'Spawn' : NeuronId,
|
|
1371
1428
|
'Split' : Split,
|
|
@@ -1416,7 +1473,7 @@ export const init = ({ IDL }) => {
|
|
|
1416
1473
|
'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1417
1474
|
'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
|
|
1418
1475
|
'most_recent_monthly_node_provider_rewards' : IDL.Opt(
|
|
1419
|
-
|
|
1476
|
+
MonthlyNodeProviderRewards
|
|
1420
1477
|
),
|
|
1421
1478
|
'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
|
|
1422
1479
|
IDL.Nat64
|
|
@@ -208,9 +208,7 @@ export interface GlobalTimeOfDay {
|
|
|
208
208
|
export interface Governance {
|
|
209
209
|
default_followees: Array<[number, Followees]>;
|
|
210
210
|
making_sns_proposal: [] | [MakingSnsProposal];
|
|
211
|
-
most_recent_monthly_node_provider_rewards:
|
|
212
|
-
| []
|
|
213
|
-
| [MostRecentMonthlyNodeProviderRewards];
|
|
211
|
+
most_recent_monthly_node_provider_rewards: [] | [MonthlyNodeProviderRewards];
|
|
214
212
|
maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
|
|
215
213
|
wait_for_quiet_threshold_seconds: bigint;
|
|
216
214
|
metrics: [] | [GovernanceCachedMetrics];
|
|
@@ -252,11 +250,13 @@ export interface GovernanceCachedMetrics {
|
|
|
252
250
|
not_dissolving_neurons_count: bigint;
|
|
253
251
|
total_locked_e8s: bigint;
|
|
254
252
|
neurons_fund_total_active_neurons: bigint;
|
|
253
|
+
total_voting_power_non_self_authenticating_controller: [] | [bigint];
|
|
255
254
|
total_staked_maturity_e8s_equivalent: bigint;
|
|
256
255
|
not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
|
|
257
256
|
total_staked_e8s_ect: bigint;
|
|
258
257
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
|
|
259
258
|
dissolved_neurons_e8s: bigint;
|
|
259
|
+
total_staked_e8s_non_self_authenticating_controller: [] | [bigint];
|
|
260
260
|
dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
|
|
261
261
|
neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
|
|
262
262
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
|
|
@@ -264,6 +264,9 @@ export interface GovernanceCachedMetrics {
|
|
|
264
264
|
>;
|
|
265
265
|
dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
|
|
266
266
|
dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
|
|
267
|
+
non_self_authenticating_controller_neuron_subset_metrics:
|
|
268
|
+
| []
|
|
269
|
+
| [NeuronSubsetMetrics];
|
|
267
270
|
dissolving_neurons_count: bigint;
|
|
268
271
|
dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
|
|
269
272
|
total_staked_maturity_e8s_equivalent_seed: bigint;
|
|
@@ -321,6 +324,7 @@ export interface ListKnownNeuronsResponse {
|
|
|
321
324
|
}
|
|
322
325
|
export interface ListNeurons {
|
|
323
326
|
neuron_ids: BigUint64Array | bigint[];
|
|
327
|
+
include_empty_neurons_readable_by_caller: [] | [boolean];
|
|
324
328
|
include_neurons_readable_by_caller: boolean;
|
|
325
329
|
}
|
|
326
330
|
export interface ListNeuronsResponse {
|
|
@@ -384,9 +388,14 @@ export interface Migrations {
|
|
|
384
388
|
neuron_indexes_migration: [] | [Migration];
|
|
385
389
|
copy_inactive_neurons_to_stable_memory_migration: [] | [Migration];
|
|
386
390
|
}
|
|
387
|
-
export interface
|
|
391
|
+
export interface MonthlyNodeProviderRewards {
|
|
392
|
+
minimum_xdr_permyriad_per_icp: [] | [bigint];
|
|
393
|
+
registry_version: [] | [bigint];
|
|
394
|
+
node_providers: Array<NodeProvider>;
|
|
388
395
|
timestamp: bigint;
|
|
389
396
|
rewards: Array<RewardNodeProvider>;
|
|
397
|
+
xdr_conversion_rate: [] | [XdrConversionRate];
|
|
398
|
+
maximum_node_provider_rewards_e8s: [] | [bigint];
|
|
390
399
|
}
|
|
391
400
|
export interface Motion {
|
|
392
401
|
motion_text: string;
|
|
@@ -472,6 +481,18 @@ export interface NeuronStakeTransfer {
|
|
|
472
481
|
transfer_timestamp: bigint;
|
|
473
482
|
block_height: bigint;
|
|
474
483
|
}
|
|
484
|
+
export interface NeuronSubsetMetrics {
|
|
485
|
+
total_maturity_e8s_equivalent: [] | [bigint];
|
|
486
|
+
maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
|
|
487
|
+
voting_power_buckets: Array<[bigint, bigint]>;
|
|
488
|
+
total_staked_e8s: [] | [bigint];
|
|
489
|
+
count: [] | [bigint];
|
|
490
|
+
total_staked_maturity_e8s_equivalent: [] | [bigint];
|
|
491
|
+
staked_maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
|
|
492
|
+
staked_e8s_buckets: Array<[bigint, bigint]>;
|
|
493
|
+
total_voting_power: [] | [bigint];
|
|
494
|
+
count_buckets: Array<[bigint, bigint]>;
|
|
495
|
+
}
|
|
475
496
|
export interface NeuronsFundAuditInfo {
|
|
476
497
|
final_neurons_fund_participation: [] | [NeuronsFundParticipation];
|
|
477
498
|
initial_neurons_fund_participation: [] | [NeuronsFundParticipation];
|
|
@@ -793,7 +814,7 @@ export interface _SERVICE {
|
|
|
793
814
|
get_monthly_node_provider_rewards: ActorMethod<[], Result_4>;
|
|
794
815
|
get_most_recent_monthly_node_provider_rewards: ActorMethod<
|
|
795
816
|
[],
|
|
796
|
-
[] | [
|
|
817
|
+
[] | [MonthlyNodeProviderRewards]
|
|
797
818
|
>;
|
|
798
819
|
get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
|
|
799
820
|
get_neuron_ids: ActorMethod<[], BigUint64Array | bigint[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-base) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record { hash : blob };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
RegisterKnownNeuron : KnownNeuron;
|
|
@@ -159,7 +159,7 @@ type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
|
|
|
159
159
|
type Governance = record {
|
|
160
160
|
default_followees : vec record { int32; Followees };
|
|
161
161
|
making_sns_proposal : opt MakingSnsProposal;
|
|
162
|
-
most_recent_monthly_node_provider_rewards : opt
|
|
162
|
+
most_recent_monthly_node_provider_rewards : opt MonthlyNodeProviderRewards;
|
|
163
163
|
maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
|
|
164
164
|
wait_for_quiet_threshold_seconds : nat64;
|
|
165
165
|
metrics : opt GovernanceCachedMetrics;
|
|
@@ -202,11 +202,13 @@ type GovernanceCachedMetrics = record {
|
|
|
202
202
|
not_dissolving_neurons_count : nat64;
|
|
203
203
|
total_locked_e8s : nat64;
|
|
204
204
|
neurons_fund_total_active_neurons : nat64;
|
|
205
|
+
total_voting_power_non_self_authenticating_controller : opt nat64;
|
|
205
206
|
total_staked_maturity_e8s_equivalent : nat64;
|
|
206
207
|
not_dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
|
|
207
208
|
total_staked_e8s_ect : nat64;
|
|
208
209
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
|
|
209
210
|
dissolved_neurons_e8s : nat64;
|
|
211
|
+
total_staked_e8s_non_self_authenticating_controller : opt nat64;
|
|
210
212
|
dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
|
|
211
213
|
neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
|
|
212
214
|
not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
|
|
@@ -215,6 +217,7 @@ type GovernanceCachedMetrics = record {
|
|
|
215
217
|
};
|
|
216
218
|
dissolving_neurons_count_buckets : vec record { nat64; nat64 };
|
|
217
219
|
dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
|
|
220
|
+
non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
|
|
218
221
|
dissolving_neurons_count : nat64;
|
|
219
222
|
dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
|
|
220
223
|
total_staked_maturity_e8s_equivalent_seed : nat64;
|
|
@@ -262,6 +265,7 @@ type LedgerParameters = record {
|
|
|
262
265
|
type ListKnownNeuronsResponse = record { known_neurons : vec KnownNeuron };
|
|
263
266
|
type ListNeurons = record {
|
|
264
267
|
neuron_ids : vec nat64;
|
|
268
|
+
include_empty_neurons_readable_by_caller : opt bool;
|
|
265
269
|
include_neurons_readable_by_caller : bool;
|
|
266
270
|
};
|
|
267
271
|
type ListNeuronsResponse = record {
|
|
@@ -315,9 +319,14 @@ type Migrations = record {
|
|
|
315
319
|
neuron_indexes_migration : opt Migration;
|
|
316
320
|
copy_inactive_neurons_to_stable_memory_migration : opt Migration;
|
|
317
321
|
};
|
|
318
|
-
type
|
|
322
|
+
type MonthlyNodeProviderRewards = record {
|
|
323
|
+
minimum_xdr_permyriad_per_icp : opt nat64;
|
|
324
|
+
registry_version : opt nat64;
|
|
325
|
+
node_providers : vec NodeProvider;
|
|
319
326
|
timestamp : nat64;
|
|
320
327
|
rewards : vec RewardNodeProvider;
|
|
328
|
+
xdr_conversion_rate : opt XdrConversionRate;
|
|
329
|
+
maximum_node_provider_rewards_e8s : opt nat64;
|
|
321
330
|
};
|
|
322
331
|
type Motion = record { motion_text : text };
|
|
323
332
|
type NetworkEconomics = record {
|
|
@@ -397,6 +406,18 @@ type NeuronStakeTransfer = record {
|
|
|
397
406
|
transfer_timestamp : nat64;
|
|
398
407
|
block_height : nat64;
|
|
399
408
|
};
|
|
409
|
+
type NeuronSubsetMetrics = record {
|
|
410
|
+
total_maturity_e8s_equivalent : opt nat64;
|
|
411
|
+
maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
|
|
412
|
+
voting_power_buckets : vec record { nat64; nat64 };
|
|
413
|
+
total_staked_e8s : opt nat64;
|
|
414
|
+
count : opt nat64;
|
|
415
|
+
total_staked_maturity_e8s_equivalent : opt nat64;
|
|
416
|
+
staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
|
|
417
|
+
staked_e8s_buckets : vec record { nat64; nat64 };
|
|
418
|
+
total_voting_power : opt nat64;
|
|
419
|
+
count_buckets : vec record { nat64; nat64 };
|
|
420
|
+
};
|
|
400
421
|
type NeuronsFundAuditInfo = record {
|
|
401
422
|
final_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
402
423
|
initial_neurons_fund_participation : opt NeuronsFundParticipation;
|
|
@@ -672,7 +693,7 @@ service : (Governance) -> {
|
|
|
672
693
|
get_metrics : () -> (Result_3) query;
|
|
673
694
|
get_monthly_node_provider_rewards : () -> (Result_4);
|
|
674
695
|
get_most_recent_monthly_node_provider_rewards : () -> (
|
|
675
|
-
opt
|
|
696
|
+
opt MonthlyNodeProviderRewards,
|
|
676
697
|
) query;
|
|
677
698
|
get_network_economics_parameters : () -> (NetworkEconomics) query;
|
|
678
699
|
get_neuron_ids : () -> (vec nat64) query;
|