@dfinity/nns 5.0.0 → 5.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.
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 30a4021 (2024-03-28 tags: release-2024-03-27_23-01-p2p) 'rs/nns/gtc/canister/gtc.did' by import-candid
1
+ // Generated from IC repo commit 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) '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;
@@ -369,6 +369,16 @@ export const idlFactory = ({ IDL }) => {
369
369
  'timestamp_seconds' : IDL.Nat64,
370
370
  'seed_neuron_count' : IDL.Nat64,
371
371
  });
372
+ const RestoreAgingNeuronGroup = IDL.Record({
373
+ 'count' : IDL.Opt(IDL.Nat64),
374
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
375
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
376
+ 'group_type' : IDL.Int32,
377
+ });
378
+ const RestoreAgingSummary = IDL.Record({
379
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
380
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
381
+ });
372
382
  const RewardEvent = IDL.Record({
373
383
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
374
384
  'day_after_genesis' : IDL.Nat64,
@@ -573,6 +583,7 @@ export const idlFactory = ({ IDL }) => {
573
583
  'node_providers' : IDL.Vec(NodeProvider),
574
584
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
575
585
  'economics' : IDL.Opt(NetworkEconomics),
586
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
576
587
  'spawning_neurons' : IDL.Opt(IDL.Bool),
577
588
  'latest_reward_event' : IDL.Opt(RewardEvent),
578
589
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -803,6 +814,7 @@ export const idlFactory = ({ IDL }) => {
803
814
  'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
804
815
  'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
805
816
  'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
817
+ 'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
806
818
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
807
819
  'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
808
820
  'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
@@ -1201,6 +1213,16 @@ export const init = ({ IDL }) => {
1201
1213
  'timestamp_seconds' : IDL.Nat64,
1202
1214
  'seed_neuron_count' : IDL.Nat64,
1203
1215
  });
1216
+ const RestoreAgingNeuronGroup = IDL.Record({
1217
+ 'count' : IDL.Opt(IDL.Nat64),
1218
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1219
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1220
+ 'group_type' : IDL.Int32,
1221
+ });
1222
+ const RestoreAgingSummary = IDL.Record({
1223
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1224
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1225
+ });
1204
1226
  const RewardEvent = IDL.Record({
1205
1227
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1206
1228
  'day_after_genesis' : IDL.Nat64,
@@ -1405,6 +1427,7 @@ export const init = ({ IDL }) => {
1405
1427
  'node_providers' : IDL.Vec(NodeProvider),
1406
1428
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
1407
1429
  'economics' : IDL.Opt(NetworkEconomics),
1430
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
1408
1431
  'spawning_neurons' : IDL.Opt(IDL.Bool),
1409
1432
  'latest_reward_event' : IDL.Opt(RewardEvent),
1410
1433
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -218,6 +218,7 @@ export interface Governance {
218
218
  node_providers: Array<NodeProvider>;
219
219
  cached_daily_maturity_modulation_basis_points: [] | [number];
220
220
  economics: [] | [NetworkEconomics];
221
+ restore_aging_summary: [] | [RestoreAgingSummary];
221
222
  spawning_neurons: [] | [boolean];
222
223
  latest_reward_event: [] | [RewardEvent];
223
224
  to_claim_transfers: Array<NeuronStakeTransfer>;
@@ -618,6 +619,16 @@ export interface RegisterVote {
618
619
  export interface RemoveHotKey {
619
620
  hot_key_to_remove: [] | [Principal];
620
621
  }
622
+ export interface RestoreAgingNeuronGroup {
623
+ count: [] | [bigint];
624
+ previous_total_stake_e8s: [] | [bigint];
625
+ current_total_stake_e8s: [] | [bigint];
626
+ group_type: number;
627
+ }
628
+ export interface RestoreAgingSummary {
629
+ groups: Array<RestoreAgingNeuronGroup>;
630
+ timestamp_seconds: [] | [bigint];
631
+ }
621
632
  export type Result = { Ok: null } | { Err: GovernanceError };
622
633
  export type Result_1 = { Error: GovernanceError } | { NeuronId: NeuronId };
623
634
  export type Result_10 = { Ok: Ok_1 } | { Err: GovernanceError };
@@ -798,6 +809,7 @@ export interface _SERVICE {
798
809
  get_node_provider_by_caller: ActorMethod<[null], Result_7>;
799
810
  get_pending_proposals: ActorMethod<[], Array<ProposalInfo>>;
800
811
  get_proposal_info: ActorMethod<[bigint], [] | [ProposalInfo]>;
812
+ get_restore_aging_summary: ActorMethod<[], RestoreAgingSummary>;
801
813
  list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>;
802
814
  list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
803
815
  list_node_providers: ActorMethod<[], ListNodeProvidersResponse>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 30a4021 (2024-03-28 tags: release-2024-03-27_23-01-p2p) 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) '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;
@@ -167,6 +167,7 @@ type Governance = record {
167
167
  node_providers : vec NodeProvider;
168
168
  cached_daily_maturity_modulation_basis_points : opt int32;
169
169
  economics : opt NetworkEconomics;
170
+ restore_aging_summary : opt RestoreAgingSummary;
170
171
  spawning_neurons : opt bool;
171
172
  latest_reward_event : opt RewardEvent;
172
173
  to_claim_transfers : vec NeuronStakeTransfer;
@@ -527,6 +528,16 @@ type ProposalInfo = record {
527
528
  };
528
529
  type RegisterVote = record { vote : int32; proposal : opt NeuronId };
529
530
  type RemoveHotKey = record { hot_key_to_remove : opt principal };
531
+ type RestoreAgingNeuronGroup = record {
532
+ count : opt nat64;
533
+ previous_total_stake_e8s : opt nat64;
534
+ current_total_stake_e8s : opt nat64;
535
+ group_type : int32;
536
+ };
537
+ type RestoreAgingSummary = record {
538
+ groups : vec RestoreAgingNeuronGroup;
539
+ timestamp_seconds : opt nat64;
540
+ };
530
541
  type Result = variant { Ok; Err : GovernanceError };
531
542
  type Result_1 = variant { Error : GovernanceError; NeuronId : NeuronId };
532
543
  type Result_10 = variant { Ok : Ok_1; Err : GovernanceError };
@@ -675,6 +686,7 @@ service : (Governance) -> {
675
686
  get_node_provider_by_caller : (null) -> (Result_7) query;
676
687
  get_pending_proposals : () -> (vec ProposalInfo) query;
677
688
  get_proposal_info : (nat64) -> (opt ProposalInfo) query;
689
+ get_restore_aging_summary : () -> (RestoreAgingSummary) query;
678
690
  list_known_neurons : () -> (ListKnownNeuronsResponse) query;
679
691
  list_neurons : (ListNeurons) -> (ListNeuronsResponse) query;
680
692
  list_node_providers : () -> (ListNodeProvidersResponse) query;
@@ -369,6 +369,16 @@ export const idlFactory = ({ IDL }) => {
369
369
  'timestamp_seconds' : IDL.Nat64,
370
370
  'seed_neuron_count' : IDL.Nat64,
371
371
  });
372
+ const RestoreAgingNeuronGroup = IDL.Record({
373
+ 'count' : IDL.Opt(IDL.Nat64),
374
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
375
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
376
+ 'group_type' : IDL.Int32,
377
+ });
378
+ const RestoreAgingSummary = IDL.Record({
379
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
380
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
381
+ });
372
382
  const RewardEvent = IDL.Record({
373
383
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
374
384
  'day_after_genesis' : IDL.Nat64,
@@ -573,6 +583,7 @@ export const idlFactory = ({ IDL }) => {
573
583
  'node_providers' : IDL.Vec(NodeProvider),
574
584
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
575
585
  'economics' : IDL.Opt(NetworkEconomics),
586
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
576
587
  'spawning_neurons' : IDL.Opt(IDL.Bool),
577
588
  'latest_reward_event' : IDL.Opt(RewardEvent),
578
589
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -811,6 +822,11 @@ export const idlFactory = ({ IDL }) => {
811
822
  [IDL.Opt(ProposalInfo)],
812
823
  ['query'],
813
824
  ),
825
+ 'get_restore_aging_summary' : IDL.Func(
826
+ [],
827
+ [RestoreAgingSummary],
828
+ ['query'],
829
+ ),
814
830
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
815
831
  'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
816
832
  'list_node_providers' : IDL.Func(
@@ -1213,6 +1229,16 @@ export const init = ({ IDL }) => {
1213
1229
  'timestamp_seconds' : IDL.Nat64,
1214
1230
  'seed_neuron_count' : IDL.Nat64,
1215
1231
  });
1232
+ const RestoreAgingNeuronGroup = IDL.Record({
1233
+ 'count' : IDL.Opt(IDL.Nat64),
1234
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1235
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1236
+ 'group_type' : IDL.Int32,
1237
+ });
1238
+ const RestoreAgingSummary = IDL.Record({
1239
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1240
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1241
+ });
1216
1242
  const RewardEvent = IDL.Record({
1217
1243
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1218
1244
  'day_after_genesis' : IDL.Nat64,
@@ -1417,6 +1443,7 @@ export const init = ({ IDL }) => {
1417
1443
  'node_providers' : IDL.Vec(NodeProvider),
1418
1444
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
1419
1445
  'economics' : IDL.Opt(NetworkEconomics),
1446
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
1420
1447
  'spawning_neurons' : IDL.Opt(IDL.Bool),
1421
1448
  'latest_reward_event' : IDL.Opt(RewardEvent),
1422
1449
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -369,6 +369,16 @@ export const idlFactory = ({ IDL }) => {
369
369
  'timestamp_seconds' : IDL.Nat64,
370
370
  'seed_neuron_count' : IDL.Nat64,
371
371
  });
372
+ const RestoreAgingNeuronGroup = IDL.Record({
373
+ 'count' : IDL.Opt(IDL.Nat64),
374
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
375
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
376
+ 'group_type' : IDL.Int32,
377
+ });
378
+ const RestoreAgingSummary = IDL.Record({
379
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
380
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
381
+ });
372
382
  const RewardEvent = IDL.Record({
373
383
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
374
384
  'day_after_genesis' : IDL.Nat64,
@@ -573,6 +583,7 @@ export const idlFactory = ({ IDL }) => {
573
583
  'node_providers' : IDL.Vec(NodeProvider),
574
584
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
575
585
  'economics' : IDL.Opt(NetworkEconomics),
586
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
576
587
  'spawning_neurons' : IDL.Opt(IDL.Bool),
577
588
  'latest_reward_event' : IDL.Opt(RewardEvent),
578
589
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -803,6 +814,7 @@ export const idlFactory = ({ IDL }) => {
803
814
  'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
804
815
  'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
805
816
  'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
817
+ 'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
806
818
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
807
819
  'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
808
820
  'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
@@ -1202,6 +1214,16 @@ export const init = ({ IDL }) => {
1202
1214
  'timestamp_seconds' : IDL.Nat64,
1203
1215
  'seed_neuron_count' : IDL.Nat64,
1204
1216
  });
1217
+ const RestoreAgingNeuronGroup = IDL.Record({
1218
+ 'count' : IDL.Opt(IDL.Nat64),
1219
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1220
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1221
+ 'group_type' : IDL.Int32,
1222
+ });
1223
+ const RestoreAgingSummary = IDL.Record({
1224
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1225
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1226
+ });
1205
1227
  const RewardEvent = IDL.Record({
1206
1228
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1207
1229
  'day_after_genesis' : IDL.Nat64,
@@ -1406,6 +1428,7 @@ export const init = ({ IDL }) => {
1406
1428
  'node_providers' : IDL.Vec(NodeProvider),
1407
1429
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
1408
1430
  'economics' : IDL.Opt(NetworkEconomics),
1431
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
1409
1432
  'spawning_neurons' : IDL.Opt(IDL.Bool),
1410
1433
  'latest_reward_event' : IDL.Opt(RewardEvent),
1411
1434
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -218,6 +218,7 @@ export interface Governance {
218
218
  node_providers: Array<NodeProvider>;
219
219
  cached_daily_maturity_modulation_basis_points: [] | [number];
220
220
  economics: [] | [NetworkEconomics];
221
+ restore_aging_summary: [] | [RestoreAgingSummary];
221
222
  spawning_neurons: [] | [boolean];
222
223
  latest_reward_event: [] | [RewardEvent];
223
224
  to_claim_transfers: Array<NeuronStakeTransfer>;
@@ -618,6 +619,16 @@ export interface RegisterVote {
618
619
  export interface RemoveHotKey {
619
620
  hot_key_to_remove: [] | [Principal];
620
621
  }
622
+ export interface RestoreAgingNeuronGroup {
623
+ count: [] | [bigint];
624
+ previous_total_stake_e8s: [] | [bigint];
625
+ current_total_stake_e8s: [] | [bigint];
626
+ group_type: number;
627
+ }
628
+ export interface RestoreAgingSummary {
629
+ groups: Array<RestoreAgingNeuronGroup>;
630
+ timestamp_seconds: [] | [bigint];
631
+ }
621
632
  export type Result = { Ok: null } | { Err: GovernanceError };
622
633
  export type Result_1 = { Error: GovernanceError } | { NeuronId: NeuronId };
623
634
  export type Result_10 = { Ok: Ok_1 } | { Err: GovernanceError };
@@ -798,6 +809,7 @@ export interface _SERVICE {
798
809
  get_node_provider_by_caller: ActorMethod<[null], Result_7>;
799
810
  get_pending_proposals: ActorMethod<[], Array<ProposalInfo>>;
800
811
  get_proposal_info: ActorMethod<[bigint], [] | [ProposalInfo]>;
812
+ get_restore_aging_summary: ActorMethod<[], RestoreAgingSummary>;
801
813
  list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>;
802
814
  list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
803
815
  list_node_providers: ActorMethod<[], ListNodeProvidersResponse>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 30a4021 (2024-03-28 tags: release-2024-03-27_23-01-p2p) 'rs/nns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) 'rs/nns/governance/canister/governance_test.did' by import-candid
2
2
  type AccountIdentifier = record { hash : blob };
3
3
  type Action = variant {
4
4
  RegisterKnownNeuron : KnownNeuron;
@@ -167,6 +167,7 @@ type Governance = record {
167
167
  node_providers : vec NodeProvider;
168
168
  cached_daily_maturity_modulation_basis_points : opt int32;
169
169
  economics : opt NetworkEconomics;
170
+ restore_aging_summary : opt RestoreAgingSummary;
170
171
  spawning_neurons : opt bool;
171
172
  latest_reward_event : opt RewardEvent;
172
173
  to_claim_transfers : vec NeuronStakeTransfer;
@@ -527,6 +528,16 @@ type ProposalInfo = record {
527
528
  };
528
529
  type RegisterVote = record { vote : int32; proposal : opt NeuronId };
529
530
  type RemoveHotKey = record { hot_key_to_remove : opt principal };
531
+ type RestoreAgingNeuronGroup = record {
532
+ count : opt nat64;
533
+ previous_total_stake_e8s : opt nat64;
534
+ current_total_stake_e8s : opt nat64;
535
+ group_type : int32;
536
+ };
537
+ type RestoreAgingSummary = record {
538
+ groups : vec RestoreAgingNeuronGroup;
539
+ timestamp_seconds : opt nat64;
540
+ };
530
541
  type Result = variant { Ok; Err : GovernanceError };
531
542
  type Result_1 = variant { Error : GovernanceError; NeuronId : NeuronId };
532
543
  type Result_10 = variant { Ok : Ok_1; Err : GovernanceError };
@@ -675,6 +686,7 @@ service : (Governance) -> {
675
686
  get_node_provider_by_caller : (null) -> (Result_7) query;
676
687
  get_pending_proposals : () -> (vec ProposalInfo) query;
677
688
  get_proposal_info : (nat64) -> (opt ProposalInfo) query;
689
+ get_restore_aging_summary : () -> (RestoreAgingSummary) query;
678
690
  list_known_neurons : () -> (ListKnownNeuronsResponse) query;
679
691
  list_neurons : (ListNeurons) -> (ListNeuronsResponse) query;
680
692
  list_node_providers : () -> (ListNodeProvidersResponse) query;
@@ -369,6 +369,16 @@ export const idlFactory = ({ IDL }) => {
369
369
  'timestamp_seconds' : IDL.Nat64,
370
370
  'seed_neuron_count' : IDL.Nat64,
371
371
  });
372
+ const RestoreAgingNeuronGroup = IDL.Record({
373
+ 'count' : IDL.Opt(IDL.Nat64),
374
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
375
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
376
+ 'group_type' : IDL.Int32,
377
+ });
378
+ const RestoreAgingSummary = IDL.Record({
379
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
380
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
381
+ });
372
382
  const RewardEvent = IDL.Record({
373
383
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
374
384
  'day_after_genesis' : IDL.Nat64,
@@ -573,6 +583,7 @@ export const idlFactory = ({ IDL }) => {
573
583
  'node_providers' : IDL.Vec(NodeProvider),
574
584
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
575
585
  'economics' : IDL.Opt(NetworkEconomics),
586
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
576
587
  'spawning_neurons' : IDL.Opt(IDL.Bool),
577
588
  'latest_reward_event' : IDL.Opt(RewardEvent),
578
589
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -811,6 +822,11 @@ export const idlFactory = ({ IDL }) => {
811
822
  [IDL.Opt(ProposalInfo)],
812
823
  ['query'],
813
824
  ),
825
+ 'get_restore_aging_summary' : IDL.Func(
826
+ [],
827
+ [RestoreAgingSummary],
828
+ ['query'],
829
+ ),
814
830
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
815
831
  'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
816
832
  'list_node_providers' : IDL.Func(
@@ -1214,6 +1230,16 @@ export const init = ({ IDL }) => {
1214
1230
  'timestamp_seconds' : IDL.Nat64,
1215
1231
  'seed_neuron_count' : IDL.Nat64,
1216
1232
  });
1233
+ const RestoreAgingNeuronGroup = IDL.Record({
1234
+ 'count' : IDL.Opt(IDL.Nat64),
1235
+ 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1236
+ 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1237
+ 'group_type' : IDL.Int32,
1238
+ });
1239
+ const RestoreAgingSummary = IDL.Record({
1240
+ 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1241
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1242
+ });
1217
1243
  const RewardEvent = IDL.Record({
1218
1244
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1219
1245
  'day_after_genesis' : IDL.Nat64,
@@ -1418,6 +1444,7 @@ export const init = ({ IDL }) => {
1418
1444
  'node_providers' : IDL.Vec(NodeProvider),
1419
1445
  'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
1420
1446
  'economics' : IDL.Opt(NetworkEconomics),
1447
+ 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
1421
1448
  'spawning_neurons' : IDL.Opt(IDL.Bool),
1422
1449
  'latest_reward_event' : IDL.Opt(RewardEvent),
1423
1450
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
@@ -7,6 +7,7 @@ export const idlFactory = ({ IDL }) => {
7
7
  });
8
8
  const SnsWasm = IDL.Record({
9
9
  'wasm' : IDL.Vec(IDL.Nat8),
10
+ 'proposal_id' : IDL.Opt(IDL.Nat64),
10
11
  'canister_type' : IDL.Int32,
11
12
  });
12
13
  const AddWasmRequest = IDL.Record({
@@ -191,6 +192,17 @@ export const idlFactory = ({ IDL }) => {
191
192
  });
192
193
  const GetWasmRequest = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
193
194
  const GetWasmResponse = IDL.Record({ 'wasm' : IDL.Opt(SnsWasm) });
195
+ const GetWasmMetadataRequest = IDL.Record({
196
+ 'hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
197
+ });
198
+ const MetadataSection = IDL.Record({
199
+ 'contents' : IDL.Opt(IDL.Vec(IDL.Nat8)),
200
+ 'name' : IDL.Opt(IDL.Text),
201
+ 'visibility' : IDL.Opt(IDL.Text),
202
+ });
203
+ const Ok = IDL.Record({ 'sections' : IDL.Vec(MetadataSection) });
204
+ const Result_1 = IDL.Variant({ 'Ok' : Ok, 'Error' : SnsWasmError });
205
+ const GetWasmMetadataResponse = IDL.Record({ 'result' : IDL.Opt(Result_1) });
194
206
  const SnsUpgrade = IDL.Record({
195
207
  'next_version' : IDL.Opt(SnsVersion),
196
208
  'current_version' : IDL.Opt(SnsVersion),
@@ -276,6 +288,11 @@ export const idlFactory = ({ IDL }) => {
276
288
  [],
277
289
  ),
278
290
  'get_wasm' : IDL.Func([GetWasmRequest], [GetWasmResponse], []),
291
+ 'get_wasm_metadata' : IDL.Func(
292
+ [GetWasmMetadataRequest],
293
+ [GetWasmMetadataResponse],
294
+ [],
295
+ ),
279
296
  'insert_upgrade_path_entries' : IDL.Func(
280
297
  [InsertUpgradePathEntriesRequest],
281
298
  [InsertUpgradePathEntriesResponse],
@@ -84,6 +84,12 @@ export interface GetNextSnsVersionResponse {
84
84
  export interface GetSnsSubnetIdsResponse {
85
85
  sns_subnet_ids: Array<Principal>;
86
86
  }
87
+ export interface GetWasmMetadataRequest {
88
+ hash: [] | [Uint8Array | number[]];
89
+ }
90
+ export interface GetWasmMetadataResponse {
91
+ result: [] | [Result_1];
92
+ }
87
93
  export interface GetWasmRequest {
88
94
  hash: Uint8Array | number[];
89
95
  }
@@ -125,6 +131,11 @@ export interface ListUpgradeStepsRequest {
125
131
  export interface ListUpgradeStepsResponse {
126
132
  steps: Array<ListUpgradeStep>;
127
133
  }
134
+ export interface MetadataSection {
135
+ contents: [] | [Uint8Array | number[]];
136
+ name: [] | [string];
137
+ visibility: [] | [string];
138
+ }
128
139
  export interface NeuronBasketConstructionParameters {
129
140
  dissolve_delay_interval_seconds: bigint;
130
141
  count: bigint;
@@ -147,6 +158,9 @@ export interface NeuronsFundParticipationConstraints {
147
158
  | []
148
159
  | [IdealMatchedParticipationFunction];
149
160
  }
161
+ export interface Ok {
162
+ sections: Array<MetadataSection>;
163
+ }
150
164
  export interface PrettySnsVersion {
151
165
  archive_wasm_hash: string;
152
166
  root_wasm_hash: string;
@@ -156,6 +170,7 @@ export interface PrettySnsVersion {
156
170
  index_wasm_hash: string;
157
171
  }
158
172
  export type Result = { Error: SnsWasmError } | { Hash: Uint8Array | number[] };
173
+ export type Result_1 = { Ok: Ok } | { Error: SnsWasmError };
159
174
  export interface SnsCanisterIds {
160
175
  root: [] | [Principal];
161
176
  swap: [] | [Principal];
@@ -222,6 +237,7 @@ export interface SnsVersion {
222
237
  }
223
238
  export interface SnsWasm {
224
239
  wasm: Uint8Array | number[];
240
+ proposal_id: [] | [bigint];
225
241
  canister_type: number;
226
242
  }
227
243
  export interface SnsWasmCanisterInitPayload {
@@ -271,6 +287,10 @@ export interface _SERVICE {
271
287
  >;
272
288
  get_sns_subnet_ids: ActorMethod<[{}], GetSnsSubnetIdsResponse>;
273
289
  get_wasm: ActorMethod<[GetWasmRequest], GetWasmResponse>;
290
+ get_wasm_metadata: ActorMethod<
291
+ [GetWasmMetadataRequest],
292
+ GetWasmMetadataResponse
293
+ >;
274
294
  insert_upgrade_path_entries: ActorMethod<
275
295
  [InsertUpgradePathEntriesRequest],
276
296
  InsertUpgradePathEntriesResponse
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 30a4021 (2024-03-28 tags: release-2024-03-27_23-01-p2p) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
1
+ // Generated from IC repo commit 9866a6f (2024-04-24 tags: release-2024-05-09_23-02-storage-layer) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
2
2
  type AddWasmRequest = record { hash : blob; wasm : opt SnsWasm };
3
3
  type AddWasmResponse = record { result : opt Result };
4
4
  type AirdropDistribution = record { airdrop_neurons : vec NeuronDistribution };
@@ -59,6 +59,8 @@ type GetNextSnsVersionRequest = record {
59
59
  };
60
60
  type GetNextSnsVersionResponse = record { next_version : opt SnsVersion };
61
61
  type GetSnsSubnetIdsResponse = record { sns_subnet_ids : vec principal };
62
+ type GetWasmMetadataRequest = record { hash : opt blob };
63
+ type GetWasmMetadataResponse = record { result : opt Result_1 };
62
64
  type GetWasmRequest = record { hash : blob };
63
65
  type GetWasmResponse = record { wasm : opt SnsWasm };
64
66
  type IdealMatchedParticipationFunction = record {
@@ -90,6 +92,11 @@ type ListUpgradeStepsRequest = record {
90
92
  sns_governance_canister_id : opt principal;
91
93
  };
92
94
  type ListUpgradeStepsResponse = record { steps : vec ListUpgradeStep };
95
+ type MetadataSection = record {
96
+ contents : opt blob;
97
+ name : opt text;
98
+ visibility : opt text;
99
+ };
93
100
  type NeuronBasketConstructionParameters = record {
94
101
  dissolve_delay_interval_seconds : nat64;
95
102
  count : nat64;
@@ -108,6 +115,7 @@ type NeuronsFundParticipationConstraints = record {
108
115
  min_direct_participation_threshold_icp_e8s : opt nat64;
109
116
  ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
110
117
  };
118
+ type Ok = record { sections : vec MetadataSection };
111
119
  type PrettySnsVersion = record {
112
120
  archive_wasm_hash : text;
113
121
  root_wasm_hash : text;
@@ -117,6 +125,7 @@ type PrettySnsVersion = record {
117
125
  index_wasm_hash : text;
118
126
  };
119
127
  type Result = variant { Error : SnsWasmError; Hash : blob };
128
+ type Result_1 = variant { Ok : Ok; Error : SnsWasmError };
120
129
  type SnsCanisterIds = record {
121
130
  root : opt principal;
122
131
  swap : opt principal;
@@ -177,7 +186,11 @@ type SnsVersion = record {
177
186
  governance_wasm_hash : blob;
178
187
  index_wasm_hash : blob;
179
188
  };
180
- type SnsWasm = record { wasm : blob; canister_type : int32 };
189
+ type SnsWasm = record {
190
+ wasm : blob;
191
+ proposal_id : opt nat64;
192
+ canister_type : int32;
193
+ };
181
194
  type SnsWasmCanisterInitPayload = record {
182
195
  allowed_principals : vec principal;
183
196
  access_controls_enabled : bool;
@@ -218,6 +231,9 @@ service : (SnsWasmCanisterInitPayload) -> {
218
231
  ) query;
219
232
  get_sns_subnet_ids : (record {}) -> (GetSnsSubnetIdsResponse) query;
220
233
  get_wasm : (GetWasmRequest) -> (GetWasmResponse) query;
234
+ get_wasm_metadata : (GetWasmMetadataRequest) -> (
235
+ GetWasmMetadataResponse,
236
+ ) query;
221
237
  insert_upgrade_path_entries : (InsertUpgradePathEntriesRequest) -> (
222
238
  InsertUpgradePathEntriesResponse,
223
239
  );
@@ -7,6 +7,7 @@ export const idlFactory = ({ IDL }) => {
7
7
  });
8
8
  const SnsWasm = IDL.Record({
9
9
  'wasm' : IDL.Vec(IDL.Nat8),
10
+ 'proposal_id' : IDL.Opt(IDL.Nat64),
10
11
  'canister_type' : IDL.Int32,
11
12
  });
12
13
  const AddWasmRequest = IDL.Record({
@@ -191,6 +192,17 @@ export const idlFactory = ({ IDL }) => {
191
192
  });
192
193
  const GetWasmRequest = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
193
194
  const GetWasmResponse = IDL.Record({ 'wasm' : IDL.Opt(SnsWasm) });
195
+ const GetWasmMetadataRequest = IDL.Record({
196
+ 'hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
197
+ });
198
+ const MetadataSection = IDL.Record({
199
+ 'contents' : IDL.Opt(IDL.Vec(IDL.Nat8)),
200
+ 'name' : IDL.Opt(IDL.Text),
201
+ 'visibility' : IDL.Opt(IDL.Text),
202
+ });
203
+ const Ok = IDL.Record({ 'sections' : IDL.Vec(MetadataSection) });
204
+ const Result_1 = IDL.Variant({ 'Ok' : Ok, 'Error' : SnsWasmError });
205
+ const GetWasmMetadataResponse = IDL.Record({ 'result' : IDL.Opt(Result_1) });
194
206
  const SnsUpgrade = IDL.Record({
195
207
  'next_version' : IDL.Opt(SnsVersion),
196
208
  'current_version' : IDL.Opt(SnsVersion),
@@ -276,6 +288,11 @@ export const idlFactory = ({ IDL }) => {
276
288
  ['query'],
277
289
  ),
278
290
  'get_wasm' : IDL.Func([GetWasmRequest], [GetWasmResponse], ['query']),
291
+ 'get_wasm_metadata' : IDL.Func(
292
+ [GetWasmMetadataRequest],
293
+ [GetWasmMetadataResponse],
294
+ ['query'],
295
+ ),
279
296
  'insert_upgrade_path_entries' : IDL.Func(
280
297
  [InsertUpgradePathEntriesRequest],
281
298
  [InsertUpgradePathEntriesResponse],