@dfinity/nns 8.2.1 → 8.2.2-next-2025-02-04
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 +1 -1
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +3 -0
- package/dist/candid/governance.d.ts +3 -0
- package/dist/candid/governance.did +52 -6
- package/dist/candid/governance.idl.js +3 -0
- package/dist/candid/governance_test.certified.idl.js +3 -0
- package/dist/candid/governance_test.d.ts +3 -0
- package/dist/candid/governance_test.did +4 -1
- package/dist/candid/governance_test.idl.js +3 -0
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +2 -2
- package/dist/esm/chunk-H2XCNJB2.js +19 -0
- package/dist/esm/chunk-H2XCNJB2.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 +2 -2
- package/dist/types/governance.canister.d.ts +1 -1
- package/package.json +7 -7
- package/dist/esm/chunk-IFLPNY6Z.js +0 -19
- package/dist/esm/chunk-IFLPNY6Z.js.map +0 -7
package/README.md
CHANGED
|
@@ -228,7 +228,7 @@ If an array of neuron IDs is provided, precisely those neurons will be fetched.
|
|
|
228
228
|
If `certified` is true, the request is fetched as an update call, otherwise
|
|
229
229
|
it is fetched using a query call.
|
|
230
230
|
|
|
231
|
-
The backend treats `includeEmptyNeurons` as
|
|
231
|
+
The backend treats `includeEmptyNeurons` as false if absent.
|
|
232
232
|
|
|
233
233
|
| Method | Type |
|
|
234
234
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) '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;
|
|
@@ -746,14 +746,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
746
746
|
'known_neurons' : IDL.Vec(KnownNeuron),
|
|
747
747
|
});
|
|
748
748
|
const ListNeurons = IDL.Record({
|
|
749
|
+
'page_size' : IDL.Opt(IDL.Nat64),
|
|
749
750
|
'include_public_neurons_in_full_neurons' : IDL.Opt(IDL.Bool),
|
|
750
751
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
752
|
+
'page_number' : IDL.Opt(IDL.Nat64),
|
|
751
753
|
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
752
754
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
753
755
|
});
|
|
754
756
|
const ListNeuronsResponse = IDL.Record({
|
|
755
757
|
'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
|
|
756
758
|
'full_neurons' : IDL.Vec(Neuron),
|
|
759
|
+
'total_pages_available' : IDL.Opt(IDL.Nat64),
|
|
757
760
|
});
|
|
758
761
|
const DateRangeFilter = IDL.Record({
|
|
759
762
|
'start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
@@ -352,14 +352,17 @@ export interface ListKnownNeuronsResponse {
|
|
|
352
352
|
known_neurons: Array<KnownNeuron>;
|
|
353
353
|
}
|
|
354
354
|
export interface ListNeurons {
|
|
355
|
+
page_size: [] | [bigint];
|
|
355
356
|
include_public_neurons_in_full_neurons: [] | [boolean];
|
|
356
357
|
neuron_ids: BigUint64Array | bigint[];
|
|
358
|
+
page_number: [] | [bigint];
|
|
357
359
|
include_empty_neurons_readable_by_caller: [] | [boolean];
|
|
358
360
|
include_neurons_readable_by_caller: boolean;
|
|
359
361
|
}
|
|
360
362
|
export interface ListNeuronsResponse {
|
|
361
363
|
neuron_infos: Array<[bigint, NeuronInfo]>;
|
|
362
364
|
full_neurons: Array<Neuron>;
|
|
365
|
+
total_pages_available: [] | [bigint];
|
|
363
366
|
}
|
|
364
367
|
export interface ListNodeProviderRewardsRequest {
|
|
365
368
|
date_filter: [] | [DateRangeFilter];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -435,16 +435,38 @@ type ListKnownNeuronsResponse = record {
|
|
|
435
435
|
known_neurons : vec KnownNeuron;
|
|
436
436
|
};
|
|
437
437
|
|
|
438
|
+
// Parameters of the list_neurons method.
|
|
438
439
|
type ListNeurons = record {
|
|
439
|
-
|
|
440
|
+
// These fields select neurons to be in the result set.
|
|
440
441
|
neuron_ids : vec nat64;
|
|
441
|
-
include_empty_neurons_readable_by_caller : opt bool;
|
|
442
442
|
include_neurons_readable_by_caller : bool;
|
|
443
|
+
|
|
444
|
+
// Only has an effect when include_neurons_readable_by_caller.
|
|
445
|
+
include_empty_neurons_readable_by_caller : opt bool;
|
|
446
|
+
|
|
447
|
+
// When a public neuron is a member of the result set, include it in the
|
|
448
|
+
// full_neurons field (of ListNeuronsResponse). This does not affect which
|
|
449
|
+
// neurons are part of the result set.
|
|
450
|
+
include_public_neurons_in_full_neurons : opt bool;
|
|
451
|
+
|
|
452
|
+
page_number: opt nat64;
|
|
453
|
+
page_size: opt nat64;
|
|
443
454
|
};
|
|
444
455
|
|
|
456
|
+
// Output of the list_neurons method.
|
|
445
457
|
type ListNeuronsResponse = record {
|
|
458
|
+
// Per the NeuronInfo type, this is a redacted view of the neurons in the
|
|
459
|
+
// result set consisting of information that require no special privileges to
|
|
460
|
+
// view.
|
|
446
461
|
neuron_infos : vec record { nat64; NeuronInfo };
|
|
462
|
+
|
|
463
|
+
// If the caller has the necessary special privileges (or the neuron is
|
|
464
|
+
// public, and the request sets include_public_neurons_in_full_neurons to
|
|
465
|
+
// true), then all the information about the neurons in the result set is made
|
|
466
|
+
// available here.
|
|
447
467
|
full_neurons : vec Neuron;
|
|
468
|
+
|
|
469
|
+
total_pages_available: opt nat64;
|
|
448
470
|
};
|
|
449
471
|
|
|
450
472
|
type ListNodeProviderRewardsRequest = record {
|
|
@@ -491,6 +513,8 @@ type MakingSnsProposal = record {
|
|
|
491
513
|
proposer_id : opt NeuronId;
|
|
492
514
|
};
|
|
493
515
|
|
|
516
|
+
// Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
|
|
517
|
+
// similar to that, but not actually exactly equivalent.)
|
|
494
518
|
type ManageNeuron = record {
|
|
495
519
|
id : opt NeuronId;
|
|
496
520
|
command : opt Command;
|
|
@@ -516,13 +540,22 @@ type ManageNeuronCommandRequest = variant {
|
|
|
516
540
|
// KEEP THIS IN SYNC WITH COMMAND!
|
|
517
541
|
};
|
|
518
542
|
|
|
543
|
+
// Parameters of the manage_neuron method.
|
|
519
544
|
type ManageNeuronRequest = record {
|
|
520
|
-
|
|
521
|
-
command : opt ManageNeuronCommandRequest;
|
|
545
|
+
// Which neuron to operate on.
|
|
522
546
|
neuron_id_or_subaccount : opt NeuronIdOrSubaccount;
|
|
547
|
+
|
|
548
|
+
// What operation to perform on the neuron.
|
|
549
|
+
command : opt ManageNeuronCommandRequest;
|
|
550
|
+
|
|
551
|
+
// Deprecated. Use neuron_id_or_subaccount instead.
|
|
552
|
+
id : opt NeuronId;
|
|
523
553
|
};
|
|
524
554
|
|
|
555
|
+
// Output of the manage_neuron method.
|
|
525
556
|
type ManageNeuronResponse = record {
|
|
557
|
+
// Corresponds to the command field in ManageNeuronRequest, which determines
|
|
558
|
+
// what operation was performed.
|
|
526
559
|
command : opt Command_1;
|
|
527
560
|
};
|
|
528
561
|
|
|
@@ -728,14 +761,26 @@ type NeuronInFlightCommand = record {
|
|
|
728
761
|
timestamp : nat64;
|
|
729
762
|
};
|
|
730
763
|
|
|
731
|
-
//
|
|
764
|
+
// A limit view of Neuron that allows some aspects of all neurons to be read by
|
|
765
|
+
// anyone (i.e. without having to be the neuron's controller nor one of its
|
|
766
|
+
// hotkeys).
|
|
767
|
+
//
|
|
768
|
+
// As such, the meaning of each field in this type is generally the same as the
|
|
769
|
+
// one of the same (or at least similar) name in Neuron.
|
|
732
770
|
type NeuronInfo = record {
|
|
733
771
|
dissolve_delay_seconds : nat64;
|
|
734
772
|
recent_ballots : vec BallotInfo;
|
|
735
773
|
neuron_type : opt int32;
|
|
736
774
|
created_timestamp_seconds : nat64;
|
|
737
775
|
state : int32;
|
|
776
|
+
|
|
777
|
+
// The amount of ICP (and staked maturity) locked in this neuron.
|
|
778
|
+
//
|
|
779
|
+
// This is the foundation of the neuron's voting power.
|
|
780
|
+
//
|
|
781
|
+
// cached_neuron_stake_e8s - neuron_fees_e8s + staked_maturity_e8s_equivalent
|
|
738
782
|
stake_e8s : nat64;
|
|
783
|
+
|
|
739
784
|
joined_community_fund_timestamp_seconds : opt nat64;
|
|
740
785
|
retrieved_at_timestamp_seconds : nat64;
|
|
741
786
|
visibility : opt int32;
|
|
@@ -750,6 +795,7 @@ type NeuronInfo = record {
|
|
|
750
795
|
// Now that this is set to deciding_voting_power, this actually does get
|
|
751
796
|
// zeroed out.
|
|
752
797
|
voting_power : nat64;
|
|
798
|
+
|
|
753
799
|
voting_power_refreshed_timestamp_seconds : opt nat64;
|
|
754
800
|
deciding_voting_power : opt nat64;
|
|
755
801
|
potential_voting_power : opt nat64;
|
|
@@ -746,14 +746,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
746
746
|
'known_neurons' : IDL.Vec(KnownNeuron),
|
|
747
747
|
});
|
|
748
748
|
const ListNeurons = IDL.Record({
|
|
749
|
+
'page_size' : IDL.Opt(IDL.Nat64),
|
|
749
750
|
'include_public_neurons_in_full_neurons' : IDL.Opt(IDL.Bool),
|
|
750
751
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
752
|
+
'page_number' : IDL.Opt(IDL.Nat64),
|
|
751
753
|
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
752
754
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
753
755
|
});
|
|
754
756
|
const ListNeuronsResponse = IDL.Record({
|
|
755
757
|
'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
|
|
756
758
|
'full_neurons' : IDL.Vec(Neuron),
|
|
759
|
+
'total_pages_available' : IDL.Opt(IDL.Nat64),
|
|
757
760
|
});
|
|
758
761
|
const DateRangeFilter = IDL.Record({
|
|
759
762
|
'start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
@@ -746,14 +746,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
746
746
|
'known_neurons' : IDL.Vec(KnownNeuron),
|
|
747
747
|
});
|
|
748
748
|
const ListNeurons = IDL.Record({
|
|
749
|
+
'page_size' : IDL.Opt(IDL.Nat64),
|
|
749
750
|
'include_public_neurons_in_full_neurons' : IDL.Opt(IDL.Bool),
|
|
750
751
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
752
|
+
'page_number' : IDL.Opt(IDL.Nat64),
|
|
751
753
|
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
752
754
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
753
755
|
});
|
|
754
756
|
const ListNeuronsResponse = IDL.Record({
|
|
755
757
|
'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
|
|
756
758
|
'full_neurons' : IDL.Vec(Neuron),
|
|
759
|
+
'total_pages_available' : IDL.Opt(IDL.Nat64),
|
|
757
760
|
});
|
|
758
761
|
const DateRangeFilter = IDL.Record({
|
|
759
762
|
'start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
@@ -352,14 +352,17 @@ export interface ListKnownNeuronsResponse {
|
|
|
352
352
|
known_neurons: Array<KnownNeuron>;
|
|
353
353
|
}
|
|
354
354
|
export interface ListNeurons {
|
|
355
|
+
page_size: [] | [bigint];
|
|
355
356
|
include_public_neurons_in_full_neurons: [] | [boolean];
|
|
356
357
|
neuron_ids: BigUint64Array | bigint[];
|
|
358
|
+
page_number: [] | [bigint];
|
|
357
359
|
include_empty_neurons_readable_by_caller: [] | [boolean];
|
|
358
360
|
include_neurons_readable_by_caller: boolean;
|
|
359
361
|
}
|
|
360
362
|
export interface ListNeuronsResponse {
|
|
361
363
|
neuron_infos: Array<[bigint, NeuronInfo]>;
|
|
362
364
|
full_neurons: Array<Neuron>;
|
|
365
|
+
total_pages_available: [] | [bigint];
|
|
363
366
|
}
|
|
364
367
|
export interface ListNodeProviderRewardsRequest {
|
|
365
368
|
date_filter: [] | [DateRangeFilter];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -439,11 +439,14 @@ type ListNeurons = record {
|
|
|
439
439
|
neuron_ids : vec nat64;
|
|
440
440
|
include_empty_neurons_readable_by_caller : opt bool;
|
|
441
441
|
include_neurons_readable_by_caller : bool;
|
|
442
|
+
page_number: opt nat64;
|
|
443
|
+
page_size: opt nat64;
|
|
442
444
|
};
|
|
443
445
|
|
|
444
446
|
type ListNeuronsResponse = record {
|
|
445
447
|
neuron_infos : vec record { nat64; NeuronInfo };
|
|
446
448
|
full_neurons : vec Neuron;
|
|
449
|
+
total_pages_available: opt nat64;
|
|
447
450
|
};
|
|
448
451
|
|
|
449
452
|
type ListNodeProviderRewardsRequest = record {
|
|
@@ -746,14 +746,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
746
746
|
'known_neurons' : IDL.Vec(KnownNeuron),
|
|
747
747
|
});
|
|
748
748
|
const ListNeurons = IDL.Record({
|
|
749
|
+
'page_size' : IDL.Opt(IDL.Nat64),
|
|
749
750
|
'include_public_neurons_in_full_neurons' : IDL.Opt(IDL.Bool),
|
|
750
751
|
'neuron_ids' : IDL.Vec(IDL.Nat64),
|
|
752
|
+
'page_number' : IDL.Opt(IDL.Nat64),
|
|
751
753
|
'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
|
|
752
754
|
'include_neurons_readable_by_caller' : IDL.Bool,
|
|
753
755
|
});
|
|
754
756
|
const ListNeuronsResponse = IDL.Record({
|
|
755
757
|
'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
|
|
756
758
|
'full_neurons' : IDL.Vec(Neuron),
|
|
759
|
+
'total_pages_available' : IDL.Opt(IDL.Nat64),
|
|
757
760
|
});
|
|
758
761
|
const DateRangeFilter = IDL.Record({
|
|
759
762
|
'start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit fb16293 (2025-01-22 tags: release-2025-01-30_03-03-hashes-in-blocks) '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;
|