@dfinity/nns 10.0.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -36
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +764 -763
- package/dist/candid/governance.d.ts +7 -6
- package/dist/candid/governance.did +22 -10
- package/dist/candid/governance.idl.js +780 -779
- package/dist/candid/governance_test.certified.idl.js +765 -764
- package/dist/candid/governance_test.d.ts +7 -6
- package/dist/candid/governance_test.did +22 -10
- package/dist/candid/governance_test.idl.js +781 -780
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-ZJT35CRS.js +8 -0
- package/dist/esm/chunk-ZJT35CRS.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/types/canisters/governance/request.converters.d.ts +2 -1
- package/dist/types/governance.canister.d.ts +2 -1
- package/dist/types/types/governance_converters.d.ts +9 -0
- package/package.json +1 -1
- package/dist/esm/chunk-HKHWC73M.js +0 -8
- package/dist/esm/chunk-HKHWC73M.js.map +0 -7
|
@@ -15,6 +15,7 @@ export type Action =
|
|
|
15
15
|
| { ManageNeuron: ManageNeuron }
|
|
16
16
|
| { UpdateCanisterSettings: UpdateCanisterSettings }
|
|
17
17
|
| { InstallCode: InstallCode }
|
|
18
|
+
| { DeregisterKnownNeuron: DeregisterKnownNeuron }
|
|
18
19
|
| { StopOrStartCanister: StopOrStartCanister }
|
|
19
20
|
| { CreateServiceNervousSystem: CreateServiceNervousSystem }
|
|
20
21
|
| { ExecuteNnsFunction: ExecuteNnsFunction }
|
|
@@ -174,6 +175,9 @@ export interface DateRangeFilter {
|
|
|
174
175
|
export interface Decimal {
|
|
175
176
|
human_readable: [] | [string];
|
|
176
177
|
}
|
|
178
|
+
export interface DeregisterKnownNeuron {
|
|
179
|
+
id: [] | [NeuronId];
|
|
180
|
+
}
|
|
177
181
|
export interface DerivedProposalInformation {
|
|
178
182
|
swap_background_information: [] | [SwapBackgroundInformation];
|
|
179
183
|
}
|
|
@@ -239,7 +243,6 @@ export interface GlobalTimeOfDay {
|
|
|
239
243
|
}
|
|
240
244
|
export interface Governance {
|
|
241
245
|
default_followees: Array<[number, Followees]>;
|
|
242
|
-
making_sns_proposal: [] | [MakingSnsProposal];
|
|
243
246
|
most_recent_monthly_node_provider_rewards: [] | [MonthlyNodeProviderRewards];
|
|
244
247
|
maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
|
|
245
248
|
wait_for_quiet_threshold_seconds: bigint;
|
|
@@ -360,6 +363,7 @@ export interface KnownNeuron {
|
|
|
360
363
|
export interface KnownNeuronData {
|
|
361
364
|
name: string;
|
|
362
365
|
description: [] | [string];
|
|
366
|
+
links: [] | [Array<string>];
|
|
363
367
|
}
|
|
364
368
|
export interface LedgerParameters {
|
|
365
369
|
transaction_fee: [] | [Tokens];
|
|
@@ -415,11 +419,6 @@ export interface MakeProposalResponse {
|
|
|
415
419
|
message: [] | [string];
|
|
416
420
|
proposal_id: [] | [ProposalId];
|
|
417
421
|
}
|
|
418
|
-
export interface MakingSnsProposal {
|
|
419
|
-
proposal: [] | [Proposal];
|
|
420
|
-
caller: [] | [Principal];
|
|
421
|
-
proposer_id: [] | [NeuronId];
|
|
422
|
-
}
|
|
423
422
|
export interface ManageNeuron {
|
|
424
423
|
id: [] | [NeuronId];
|
|
425
424
|
command: [] | [Command];
|
|
@@ -706,6 +705,7 @@ export type ProposalActionRequest =
|
|
|
706
705
|
| { ManageNeuron: ManageNeuronRequest }
|
|
707
706
|
| { UpdateCanisterSettings: UpdateCanisterSettings }
|
|
708
707
|
| { InstallCode: InstallCodeRequest }
|
|
708
|
+
| { DeregisterKnownNeuron: DeregisterKnownNeuron }
|
|
709
709
|
| { StopOrStartCanister: StopOrStartCanister }
|
|
710
710
|
| { CreateServiceNervousSystem: CreateServiceNervousSystem }
|
|
711
711
|
| { ExecuteNnsFunction: ExecuteNnsFunction }
|
|
@@ -860,6 +860,7 @@ export interface SpawnResponse {
|
|
|
860
860
|
created_neuron_id: [] | [NeuronId];
|
|
861
861
|
}
|
|
862
862
|
export interface Split {
|
|
863
|
+
memo: [] | [bigint];
|
|
863
864
|
amount_e8s: bigint;
|
|
864
865
|
}
|
|
865
866
|
export interface StakeMaturity {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 206b61a (2025-09-25 tags: release-2025-09-25_09-52-base) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
type Action = variant {
|
|
7
7
|
RegisterKnownNeuron : KnownNeuron;
|
|
8
|
+
DeregisterKnownNeuron : DeregisterKnownNeuron;
|
|
8
9
|
ManageNeuron : ManageNeuron;
|
|
9
10
|
UpdateCanisterSettings : UpdateCanisterSettings;
|
|
10
11
|
InstallCode : InstallCode;
|
|
@@ -312,7 +313,6 @@ type GlobalTimeOfDay = record {
|
|
|
312
313
|
|
|
313
314
|
type Governance = record {
|
|
314
315
|
default_followees : vec record { int32; Followees };
|
|
315
|
-
making_sns_proposal : opt MakingSnsProposal;
|
|
316
316
|
most_recent_monthly_node_provider_rewards : opt MonthlyNodeProviderRewards;
|
|
317
317
|
maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
|
|
318
318
|
wait_for_quiet_threshold_seconds : nat64;
|
|
@@ -442,9 +442,14 @@ type KnownNeuron = record {
|
|
|
442
442
|
known_neuron_data : opt KnownNeuronData;
|
|
443
443
|
};
|
|
444
444
|
|
|
445
|
+
type DeregisterKnownNeuron = record {
|
|
446
|
+
id : opt NeuronId;
|
|
447
|
+
};
|
|
448
|
+
|
|
445
449
|
type KnownNeuronData = record {
|
|
446
450
|
name : text;
|
|
447
451
|
description : opt text;
|
|
452
|
+
links : opt vec text;
|
|
448
453
|
};
|
|
449
454
|
|
|
450
455
|
type LedgerParameters = record {
|
|
@@ -535,12 +540,6 @@ type MakeProposalResponse = record {
|
|
|
535
540
|
proposal_id : opt ProposalId;
|
|
536
541
|
};
|
|
537
542
|
|
|
538
|
-
type MakingSnsProposal = record {
|
|
539
|
-
proposal : opt Proposal;
|
|
540
|
-
caller : opt principal;
|
|
541
|
-
proposer_id : opt NeuronId;
|
|
542
|
-
};
|
|
543
|
-
|
|
544
543
|
// Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
|
|
545
544
|
// similar to that, but not actually exactly equivalent.)
|
|
546
545
|
type ManageNeuron = record {
|
|
@@ -985,6 +984,7 @@ type Proposal = record {
|
|
|
985
984
|
|
|
986
985
|
type ProposalActionRequest = variant {
|
|
987
986
|
RegisterKnownNeuron : KnownNeuron;
|
|
987
|
+
DeregisterKnownNeuron : DeregisterKnownNeuron;
|
|
988
988
|
ManageNeuron : ManageNeuronRequest;
|
|
989
989
|
UpdateCanisterSettings : UpdateCanisterSettings;
|
|
990
990
|
InstallCode : InstallCodeRequest;
|
|
@@ -1016,8 +1016,19 @@ type FulfillSubnetRentalRequest = record {
|
|
|
1016
1016
|
//
|
|
1017
1017
|
// This must be approved by a prior proposal to bless an IC OS version.
|
|
1018
1018
|
//
|
|
1019
|
-
// This is a
|
|
1020
|
-
// character hexidecimal string.)
|
|
1019
|
+
// This is a FULL git commit ID in the ic repo. (Therefore, it must be a 40
|
|
1020
|
+
// character hexidecimal string, not an abbreviated git commit ID.)
|
|
1021
|
+
//
|
|
1022
|
+
// One way to find a suitable value is with the following command:
|
|
1023
|
+
//
|
|
1024
|
+
// ic-admin \
|
|
1025
|
+
// get-subnet 0 \
|
|
1026
|
+
// --nns-urls https://nns.ic0.app \
|
|
1027
|
+
// | grep replica_version_id
|
|
1028
|
+
//
|
|
1029
|
+
// Where to obtain a recent version of ic-admin:
|
|
1030
|
+
//
|
|
1031
|
+
// https://github.com/dfinity/ic/releases/latest
|
|
1021
1032
|
replica_version_id : opt text;
|
|
1022
1033
|
};
|
|
1023
1034
|
|
|
@@ -1219,6 +1230,7 @@ type SpawnResponse = record {
|
|
|
1219
1230
|
|
|
1220
1231
|
type Split = record {
|
|
1221
1232
|
amount_e8s : nat64;
|
|
1233
|
+
memo : opt nat64;
|
|
1222
1234
|
};
|
|
1223
1235
|
|
|
1224
1236
|
type StakeMaturity = record {
|