@junobuild/functions 0.8.3 → 0.8.4-next-2026-04-17

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.
Files changed (76) hide show
  1. package/canisters/ckbtc/index.js +1 -1
  2. package/canisters/cketh/index.js +1 -1
  3. package/canisters/cmc/index.js +1 -1
  4. package/canisters/declarations/_idl.d.ts +2 -1
  5. package/canisters/declarations/_types.d.ts +2 -1
  6. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
  7. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +2 -0
  8. package/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
  9. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +9 -0
  10. package/canisters/declarations/cketh/minter.did.d.ts +140 -0
  11. package/canisters/declarations/cketh/minter.did.idl.d.ts +8 -0
  12. package/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
  13. package/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.d.ts +82 -0
  14. package/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
  15. package/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
  16. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +5 -1
  17. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
  18. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
  19. package/canisters/declarations/nns/governance.did.d.ts +100 -0
  20. package/canisters/declarations/nns/governance.did.idl.d.ts +11 -0
  21. package/canisters/declarations/nns/governance_test.did.d.ts +100 -0
  22. package/canisters/declarations/nns/governance_test.did.idl.d.ts +11 -0
  23. package/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
  24. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +1 -0
  25. package/canisters/declarations/sns/governance.did.d.ts +4 -0
  26. package/canisters/declarations/sns/governance.did.idl.d.ts +1 -0
  27. package/canisters/declarations/sns/governance_test.did.d.ts +4 -0
  28. package/canisters/declarations/sns/governance_test.did.idl.d.ts +1 -0
  29. package/canisters/ic-management/index.js +1 -1
  30. package/canisters/ledger/cycles/index.d.ts +1 -0
  31. package/canisters/ledger/cycles/index.js +2 -0
  32. package/canisters/ledger/cycles/index.js.map +7 -0
  33. package/canisters/ledger/icp/index.d.ts +1 -0
  34. package/canisters/ledger/icp/index.js +1 -1
  35. package/canisters/ledger/icp/index.js.map +4 -4
  36. package/canisters/ledger/icp/ledger.canister.d.ts +5 -5
  37. package/canisters/ledger/icp/schema.d.ts +152 -0
  38. package/canisters/ledger/icrc/index.d.ts +1 -1
  39. package/canisters/ledger/icrc/index.js +1 -1
  40. package/canisters/ledger/icrc/index.js.map +4 -4
  41. package/canisters/ledger/icrc/ledger.canister.d.ts +13 -14
  42. package/canisters/ledger/icrc/schema.d.ts +351 -0
  43. package/canisters/nns/index.js +1 -1
  44. package/canisters/sns/index.js +1 -1
  45. package/chunk-I3WMKZTG.js +2 -0
  46. package/chunk-I3WMKZTG.js.map +7 -0
  47. package/package.json +10 -6
  48. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
  49. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +16 -0
  50. package/src/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
  51. package/src/canisters/declarations/ckbtc/minter.did.idl.js +118 -0
  52. package/src/canisters/declarations/cketh/minter.did.d.ts +140 -0
  53. package/src/canisters/declarations/cketh/minter.did.idl.js +78 -0
  54. package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
  55. package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.js +806 -0
  56. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
  57. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +32 -8
  58. package/src/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
  59. package/src/canisters/declarations/ledger-icp/index.did.idl.js +32 -5
  60. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
  61. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +2 -0
  62. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
  63. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +2 -0
  64. package/src/canisters/declarations/nns/governance.did.d.ts +100 -0
  65. package/src/canisters/declarations/nns/governance.did.idl.js +132 -0
  66. package/src/canisters/declarations/nns/governance_test.did.d.ts +100 -0
  67. package/src/canisters/declarations/nns/governance_test.did.idl.js +132 -0
  68. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
  69. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +8 -0
  70. package/src/canisters/declarations/sns/governance.did.d.ts +4 -0
  71. package/src/canisters/declarations/sns/governance.did.idl.js +12 -0
  72. package/src/canisters/declarations/sns/governance_test.did.d.ts +4 -0
  73. package/src/canisters/declarations/sns/governance_test.did.idl.js +12 -0
  74. package/canisters/ledger/icrc/schemas.d.ts +0 -11
  75. package/chunk-I4MVAQHI.js +0 -2
  76. package/chunk-I4MVAQHI.js.map +0 -7
@@ -403,6 +403,25 @@ export const ManageNeuronProposal = IDL.Record({
403
403
  command: IDL.Opt(ManageNeuronProposalCommand),
404
404
  neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
405
405
  });
406
+ export const LoadCanisterSnapshot = IDL.Record({
407
+ canister_id: IDL.Opt(IDL.Principal),
408
+ snapshot_id: IDL.Opt(IDL.Vec(IDL.Nat8))
409
+ });
410
+ export const GuestLaunchMeasurementMetadata = IDL.Record({
411
+ kernel_cmdline: IDL.Opt(IDL.Text)
412
+ });
413
+ export const GuestLaunchMeasurement = IDL.Record({
414
+ metadata: IDL.Opt(GuestLaunchMeasurementMetadata),
415
+ measurement: IDL.Opt(IDL.Vec(IDL.Nat8))
416
+ });
417
+ export const GuestLaunchMeasurements = IDL.Record({
418
+ guest_launch_measurements: IDL.Opt(IDL.Vec(GuestLaunchMeasurement))
419
+ });
420
+ export const BlessAlternativeGuestOsVersion = IDL.Record({
421
+ rootfs_hash: IDL.Opt(IDL.Text),
422
+ chip_ids: IDL.Opt(IDL.Vec(IDL.Vec(IDL.Nat8))),
423
+ base_guest_launch_measurements: IDL.Opt(GuestLaunchMeasurements)
424
+ });
406
425
  export const Controllers = IDL.Record({
407
426
  controllers: IDL.Vec(IDL.Principal)
408
427
  });
@@ -427,12 +446,19 @@ export const InstallCode = IDL.Record({
427
446
  install_mode: IDL.Opt(IDL.Int32)
428
447
  });
429
448
  export const DeregisterKnownNeuron = IDL.Record({id: IDL.Opt(NeuronId)});
449
+ export const TakeCanisterSnapshot = IDL.Record({
450
+ replace_snapshot: IDL.Opt(IDL.Vec(IDL.Nat8)),
451
+ canister_id: IDL.Opt(IDL.Principal)
452
+ });
430
453
  export const StopOrStartCanister = IDL.Record({
431
454
  action: IDL.Opt(IDL.Int32),
432
455
  canister_id: IDL.Opt(IDL.Principal)
433
456
  });
434
457
  export const Duration = IDL.Record({seconds: IDL.Opt(IDL.Nat64)});
435
458
  export const Tokens = IDL.Record({e8s: IDL.Opt(IDL.Nat64)});
459
+ export const CustomProposalCriticality = IDL.Record({
460
+ additional_critical_native_action_ids: IDL.Opt(IDL.Vec(IDL.Nat64))
461
+ });
436
462
  export const VotingRewardParameters = IDL.Record({
437
463
  reward_rate_transition_duration: IDL.Opt(Duration),
438
464
  initial_reward_rate: IDL.Opt(Percentage),
@@ -447,6 +473,7 @@ export const GovernanceParameters = IDL.Record({
447
473
  neuron_minimum_stake: IDL.Opt(Tokens),
448
474
  proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
449
475
  proposal_initial_voting_period: IDL.Opt(Duration),
476
+ custom_proposal_criticality: IDL.Opt(CustomProposalCriticality),
450
477
  proposal_rejection_fee: IDL.Opt(Tokens),
451
478
  voting_reward_parameters: IDL.Opt(VotingRewardParameters)
452
479
  });
@@ -567,9 +594,12 @@ export const Action = IDL.Variant({
567
594
  RegisterKnownNeuron: KnownNeuron,
568
595
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
569
596
  ManageNeuron: ManageNeuronProposal,
597
+ LoadCanisterSnapshot: LoadCanisterSnapshot,
598
+ BlessAlternativeGuestOsVersion: BlessAlternativeGuestOsVersion,
570
599
  UpdateCanisterSettings: UpdateCanisterSettings,
571
600
  InstallCode: InstallCode,
572
601
  DeregisterKnownNeuron: DeregisterKnownNeuron,
602
+ TakeCanisterSnapshot: TakeCanisterSnapshot,
573
603
  StopOrStartCanister: StopOrStartCanister,
574
604
  CreateServiceNervousSystem: CreateServiceNervousSystem,
575
605
  ExecuteNnsFunction: ExecuteNnsFunction,
@@ -589,6 +619,8 @@ SelfDescribingValue.fill(
589
619
  Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
590
620
  Nat: IDL.Nat,
591
621
  Blob: IDL.Vec(IDL.Nat8),
622
+ Bool: IDL.Bool,
623
+ Null: IDL.Null,
592
624
  Text: IDL.Text,
593
625
  Array: IDL.Vec(SelfDescribingValue)
594
626
  })
@@ -718,6 +750,20 @@ export const Result_1 = IDL.Variant({
718
750
  export const ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
719
751
  result: IDL.Opt(Result_1)
720
752
  });
753
+ export const CreateNeuronRequest = IDL.Record({
754
+ controller: IDL.Opt(IDL.Principal),
755
+ source_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
756
+ dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
757
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
758
+ amount_e8s: IDL.Opt(IDL.Nat64),
759
+ followees: IDL.Opt(SetFollowing),
760
+ dissolving: IDL.Opt(IDL.Bool)
761
+ });
762
+ export const CreatedNeuron = IDL.Record({neuron_id: IDL.Opt(NeuronId)});
763
+ export const CreateNeuronResponse = IDL.Variant({
764
+ Ok: CreatedNeuron,
765
+ Err: GovernanceError
766
+ });
721
767
  export const Result_2 = IDL.Variant({Ok: Neuron, Err: GovernanceError});
722
768
  export const Result_3 = IDL.Variant({
723
769
  Ok: GovernanceCachedMetrics,
@@ -878,9 +924,12 @@ export const ProposalActionRequest = IDL.Variant({
878
924
  RegisterKnownNeuron: KnownNeuron,
879
925
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
880
926
  ManageNeuron: ManageNeuronRequest,
927
+ LoadCanisterSnapshot: LoadCanisterSnapshot,
928
+ BlessAlternativeGuestOsVersion: BlessAlternativeGuestOsVersion,
881
929
  UpdateCanisterSettings: UpdateCanisterSettings,
882
930
  InstallCode: InstallCodeRequest,
883
931
  DeregisterKnownNeuron: DeregisterKnownNeuron,
932
+ TakeCanisterSnapshot: TakeCanisterSnapshot,
884
933
  StopOrStartCanister: StopOrStartCanister,
885
934
  CreateServiceNervousSystem: CreateServiceNervousSystem,
886
935
  ExecuteNnsFunction: ExecuteNnsFunction,
@@ -1025,6 +1074,7 @@ export const idlService = IDL.Service({
1025
1074
  [ClaimOrRefreshNeuronFromAccountResponse],
1026
1075
  []
1027
1076
  ),
1077
+ create_neuron: IDL.Func([CreateNeuronRequest], [CreateNeuronResponse], []),
1028
1078
  get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
1029
1079
  get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], ['query']),
1030
1080
  get_full_neuron_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_2], ['query']),
@@ -1469,6 +1519,25 @@ export const idlFactory = ({IDL}) => {
1469
1519
  command: IDL.Opt(ManageNeuronProposalCommand),
1470
1520
  neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
1471
1521
  });
1522
+ const LoadCanisterSnapshot = IDL.Record({
1523
+ canister_id: IDL.Opt(IDL.Principal),
1524
+ snapshot_id: IDL.Opt(IDL.Vec(IDL.Nat8))
1525
+ });
1526
+ const GuestLaunchMeasurementMetadata = IDL.Record({
1527
+ kernel_cmdline: IDL.Opt(IDL.Text)
1528
+ });
1529
+ const GuestLaunchMeasurement = IDL.Record({
1530
+ metadata: IDL.Opt(GuestLaunchMeasurementMetadata),
1531
+ measurement: IDL.Opt(IDL.Vec(IDL.Nat8))
1532
+ });
1533
+ const GuestLaunchMeasurements = IDL.Record({
1534
+ guest_launch_measurements: IDL.Opt(IDL.Vec(GuestLaunchMeasurement))
1535
+ });
1536
+ const BlessAlternativeGuestOsVersion = IDL.Record({
1537
+ rootfs_hash: IDL.Opt(IDL.Text),
1538
+ chip_ids: IDL.Opt(IDL.Vec(IDL.Vec(IDL.Nat8))),
1539
+ base_guest_launch_measurements: IDL.Opt(GuestLaunchMeasurements)
1540
+ });
1472
1541
  const Controllers = IDL.Record({controllers: IDL.Vec(IDL.Principal)});
1473
1542
  const CanisterSettings = IDL.Record({
1474
1543
  freezing_threshold: IDL.Opt(IDL.Nat64),
@@ -1491,12 +1560,19 @@ export const idlFactory = ({IDL}) => {
1491
1560
  install_mode: IDL.Opt(IDL.Int32)
1492
1561
  });
1493
1562
  const DeregisterKnownNeuron = IDL.Record({id: IDL.Opt(NeuronId)});
1563
+ const TakeCanisterSnapshot = IDL.Record({
1564
+ replace_snapshot: IDL.Opt(IDL.Vec(IDL.Nat8)),
1565
+ canister_id: IDL.Opt(IDL.Principal)
1566
+ });
1494
1567
  const StopOrStartCanister = IDL.Record({
1495
1568
  action: IDL.Opt(IDL.Int32),
1496
1569
  canister_id: IDL.Opt(IDL.Principal)
1497
1570
  });
1498
1571
  const Duration = IDL.Record({seconds: IDL.Opt(IDL.Nat64)});
1499
1572
  const Tokens = IDL.Record({e8s: IDL.Opt(IDL.Nat64)});
1573
+ const CustomProposalCriticality = IDL.Record({
1574
+ additional_critical_native_action_ids: IDL.Opt(IDL.Vec(IDL.Nat64))
1575
+ });
1500
1576
  const VotingRewardParameters = IDL.Record({
1501
1577
  reward_rate_transition_duration: IDL.Opt(Duration),
1502
1578
  initial_reward_rate: IDL.Opt(Percentage),
@@ -1511,6 +1587,7 @@ export const idlFactory = ({IDL}) => {
1511
1587
  neuron_minimum_stake: IDL.Opt(Tokens),
1512
1588
  proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
1513
1589
  proposal_initial_voting_period: IDL.Opt(Duration),
1590
+ custom_proposal_criticality: IDL.Opt(CustomProposalCriticality),
1514
1591
  proposal_rejection_fee: IDL.Opt(Tokens),
1515
1592
  voting_reward_parameters: IDL.Opt(VotingRewardParameters)
1516
1593
  });
@@ -1629,9 +1706,12 @@ export const idlFactory = ({IDL}) => {
1629
1706
  RegisterKnownNeuron: KnownNeuron,
1630
1707
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1631
1708
  ManageNeuron: ManageNeuronProposal,
1709
+ LoadCanisterSnapshot: LoadCanisterSnapshot,
1710
+ BlessAlternativeGuestOsVersion: BlessAlternativeGuestOsVersion,
1632
1711
  UpdateCanisterSettings: UpdateCanisterSettings,
1633
1712
  InstallCode: InstallCode,
1634
1713
  DeregisterKnownNeuron: DeregisterKnownNeuron,
1714
+ TakeCanisterSnapshot: TakeCanisterSnapshot,
1635
1715
  StopOrStartCanister: StopOrStartCanister,
1636
1716
  CreateServiceNervousSystem: CreateServiceNervousSystem,
1637
1717
  ExecuteNnsFunction: ExecuteNnsFunction,
@@ -1651,6 +1731,8 @@ export const idlFactory = ({IDL}) => {
1651
1731
  Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
1652
1732
  Nat: IDL.Nat,
1653
1733
  Blob: IDL.Vec(IDL.Nat8),
1734
+ Bool: IDL.Bool,
1735
+ Null: IDL.Null,
1654
1736
  Text: IDL.Text,
1655
1737
  Array: IDL.Vec(SelfDescribingValue)
1656
1738
  })
@@ -1780,6 +1862,20 @@ export const idlFactory = ({IDL}) => {
1780
1862
  const ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
1781
1863
  result: IDL.Opt(Result_1)
1782
1864
  });
1865
+ const CreateNeuronRequest = IDL.Record({
1866
+ controller: IDL.Opt(IDL.Principal),
1867
+ source_subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
1868
+ dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
1869
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
1870
+ amount_e8s: IDL.Opt(IDL.Nat64),
1871
+ followees: IDL.Opt(SetFollowing),
1872
+ dissolving: IDL.Opt(IDL.Bool)
1873
+ });
1874
+ const CreatedNeuron = IDL.Record({neuron_id: IDL.Opt(NeuronId)});
1875
+ const CreateNeuronResponse = IDL.Variant({
1876
+ Ok: CreatedNeuron,
1877
+ Err: GovernanceError
1878
+ });
1783
1879
  const Result_2 = IDL.Variant({Ok: Neuron, Err: GovernanceError});
1784
1880
  const Result_3 = IDL.Variant({
1785
1881
  Ok: GovernanceCachedMetrics,
@@ -1935,9 +2031,12 @@ export const idlFactory = ({IDL}) => {
1935
2031
  RegisterKnownNeuron: KnownNeuron,
1936
2032
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1937
2033
  ManageNeuron: ManageNeuronRequest,
2034
+ LoadCanisterSnapshot: LoadCanisterSnapshot,
2035
+ BlessAlternativeGuestOsVersion: BlessAlternativeGuestOsVersion,
1938
2036
  UpdateCanisterSettings: UpdateCanisterSettings,
1939
2037
  InstallCode: InstallCodeRequest,
1940
2038
  DeregisterKnownNeuron: DeregisterKnownNeuron,
2039
+ TakeCanisterSnapshot: TakeCanisterSnapshot,
1941
2040
  StopOrStartCanister: StopOrStartCanister,
1942
2041
  CreateServiceNervousSystem: CreateServiceNervousSystem,
1943
2042
  ExecuteNnsFunction: ExecuteNnsFunction,
@@ -2076,6 +2175,7 @@ export const idlFactory = ({IDL}) => {
2076
2175
  [ClaimOrRefreshNeuronFromAccountResponse],
2077
2176
  []
2078
2177
  ),
2178
+ create_neuron: IDL.Func([CreateNeuronRequest], [CreateNeuronResponse], []),
2079
2179
  get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
2080
2180
  get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], ['query']),
2081
2181
  get_full_neuron_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_2], ['query']),
@@ -2518,6 +2618,25 @@ export const init = ({IDL}) => {
2518
2618
  command: IDL.Opt(ManageNeuronProposalCommand),
2519
2619
  neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
2520
2620
  });
2621
+ const LoadCanisterSnapshot = IDL.Record({
2622
+ canister_id: IDL.Opt(IDL.Principal),
2623
+ snapshot_id: IDL.Opt(IDL.Vec(IDL.Nat8))
2624
+ });
2625
+ const GuestLaunchMeasurementMetadata = IDL.Record({
2626
+ kernel_cmdline: IDL.Opt(IDL.Text)
2627
+ });
2628
+ const GuestLaunchMeasurement = IDL.Record({
2629
+ metadata: IDL.Opt(GuestLaunchMeasurementMetadata),
2630
+ measurement: IDL.Opt(IDL.Vec(IDL.Nat8))
2631
+ });
2632
+ const GuestLaunchMeasurements = IDL.Record({
2633
+ guest_launch_measurements: IDL.Opt(IDL.Vec(GuestLaunchMeasurement))
2634
+ });
2635
+ const BlessAlternativeGuestOsVersion = IDL.Record({
2636
+ rootfs_hash: IDL.Opt(IDL.Text),
2637
+ chip_ids: IDL.Opt(IDL.Vec(IDL.Vec(IDL.Nat8))),
2638
+ base_guest_launch_measurements: IDL.Opt(GuestLaunchMeasurements)
2639
+ });
2521
2640
  const Controllers = IDL.Record({controllers: IDL.Vec(IDL.Principal)});
2522
2641
  const CanisterSettings = IDL.Record({
2523
2642
  freezing_threshold: IDL.Opt(IDL.Nat64),
@@ -2540,12 +2659,19 @@ export const init = ({IDL}) => {
2540
2659
  install_mode: IDL.Opt(IDL.Int32)
2541
2660
  });
2542
2661
  const DeregisterKnownNeuron = IDL.Record({id: IDL.Opt(NeuronId)});
2662
+ const TakeCanisterSnapshot = IDL.Record({
2663
+ replace_snapshot: IDL.Opt(IDL.Vec(IDL.Nat8)),
2664
+ canister_id: IDL.Opt(IDL.Principal)
2665
+ });
2543
2666
  const StopOrStartCanister = IDL.Record({
2544
2667
  action: IDL.Opt(IDL.Int32),
2545
2668
  canister_id: IDL.Opt(IDL.Principal)
2546
2669
  });
2547
2670
  const Duration = IDL.Record({seconds: IDL.Opt(IDL.Nat64)});
2548
2671
  const Tokens = IDL.Record({e8s: IDL.Opt(IDL.Nat64)});
2672
+ const CustomProposalCriticality = IDL.Record({
2673
+ additional_critical_native_action_ids: IDL.Opt(IDL.Vec(IDL.Nat64))
2674
+ });
2549
2675
  const VotingRewardParameters = IDL.Record({
2550
2676
  reward_rate_transition_duration: IDL.Opt(Duration),
2551
2677
  initial_reward_rate: IDL.Opt(Percentage),
@@ -2560,6 +2686,7 @@ export const init = ({IDL}) => {
2560
2686
  neuron_minimum_stake: IDL.Opt(Tokens),
2561
2687
  proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
2562
2688
  proposal_initial_voting_period: IDL.Opt(Duration),
2689
+ custom_proposal_criticality: IDL.Opt(CustomProposalCriticality),
2563
2690
  proposal_rejection_fee: IDL.Opt(Tokens),
2564
2691
  voting_reward_parameters: IDL.Opt(VotingRewardParameters)
2565
2692
  });
@@ -2678,9 +2805,12 @@ export const init = ({IDL}) => {
2678
2805
  RegisterKnownNeuron: KnownNeuron,
2679
2806
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
2680
2807
  ManageNeuron: ManageNeuronProposal,
2808
+ LoadCanisterSnapshot: LoadCanisterSnapshot,
2809
+ BlessAlternativeGuestOsVersion: BlessAlternativeGuestOsVersion,
2681
2810
  UpdateCanisterSettings: UpdateCanisterSettings,
2682
2811
  InstallCode: InstallCode,
2683
2812
  DeregisterKnownNeuron: DeregisterKnownNeuron,
2813
+ TakeCanisterSnapshot: TakeCanisterSnapshot,
2684
2814
  StopOrStartCanister: StopOrStartCanister,
2685
2815
  CreateServiceNervousSystem: CreateServiceNervousSystem,
2686
2816
  ExecuteNnsFunction: ExecuteNnsFunction,
@@ -2700,6 +2830,8 @@ export const init = ({IDL}) => {
2700
2830
  Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
2701
2831
  Nat: IDL.Nat,
2702
2832
  Blob: IDL.Vec(IDL.Nat8),
2833
+ Bool: IDL.Bool,
2834
+ Null: IDL.Null,
2703
2835
  Text: IDL.Text,
2704
2836
  Array: IDL.Vec(SelfDescribingValue)
2705
2837
  })
@@ -18,9 +18,12 @@ export interface AccountIdentifier { 'hash' : Uint8Array }
18
18
  export type Action = { 'RegisterKnownNeuron' : KnownNeuron } |
19
19
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
20
20
  { 'ManageNeuron' : ManageNeuronProposal } |
21
+ { 'LoadCanisterSnapshot' : LoadCanisterSnapshot } |
22
+ { 'BlessAlternativeGuestOsVersion' : BlessAlternativeGuestOsVersion } |
21
23
  { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
22
24
  { 'InstallCode' : InstallCode } |
23
25
  { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
26
+ { 'TakeCanisterSnapshot' : TakeCanisterSnapshot } |
24
27
  { 'StopOrStartCanister' : StopOrStartCanister } |
25
28
  { 'CreateServiceNervousSystem' : CreateServiceNervousSystem } |
26
29
  { 'ExecuteNnsFunction' : ExecuteNnsFunction } |
@@ -42,6 +45,29 @@ export interface BallotInfo {
42
45
  'vote' : number,
43
46
  'proposal_id' : [] | [ProposalId],
44
47
  }
48
+ /**
49
+ * Declares an approved set of alternative replica virtual machine software for
50
+ * disaster recovery purposes.
51
+ */
52
+ export interface BlessAlternativeGuestOsVersion {
53
+ /**
54
+ * Hexadecimal fingerprint of the recovery rootfs.
55
+ * Must contain only hexadecimal characters (0-9, A-F, a-f).
56
+ */
57
+ 'rootfs_hash' : [] | [string],
58
+ /**
59
+ * AMD Secure Processor chip IDs that are allowed to run this software.
60
+ * Each chip ID must be exactly 64 bytes.
61
+ */
62
+ 'chip_ids' : [] | [Array<Uint8Array>],
63
+ /**
64
+ * The version being replaced by this (alternative version) must match this
65
+ * field (or one of the possibilities therein).
66
+ *
67
+ * (Here, we refer to the version being replaced as the "base" version.)
68
+ */
69
+ 'base_guest_launch_measurements' : [] | [GuestLaunchMeasurements],
70
+ }
45
71
  export type By = { 'NeuronIdOrSubaccount' : {} } |
46
72
  { 'MemoAndController' : ClaimOrRefreshNeuronFromAccount } |
47
73
  { 'Memo' : bigint };
@@ -122,6 +148,42 @@ export interface Committed_1 {
122
148
  export interface Configure { 'operation' : [] | [Operation] }
123
149
  export interface Controllers { 'controllers' : Array<Principal> }
124
150
  export interface Countries { 'iso_codes' : Array<string> }
151
+ /**
152
+ * Request to create a new neuron using ICRC-2 transfer_from.
153
+ * The caller must have previously approved the governance canister to spend the specified amount.
154
+ */
155
+ export interface CreateNeuronRequest {
156
+ /**
157
+ * The controller of the new neuron. Defaults to the caller.
158
+ */
159
+ 'controller' : [] | [Principal],
160
+ /**
161
+ * The subaccount of the caller to transfer ICP from. Defaults to the default subaccount.
162
+ */
163
+ 'source_subaccount' : [] | [Uint8Array],
164
+ /**
165
+ * The dissolve delay in seconds. Defaults to 7 days. Clamped to [0, 8 years].
166
+ */
167
+ 'dissolve_delay_seconds' : [] | [bigint],
168
+ /**
169
+ * Whether to automatically stake maturity. Defaults to false.
170
+ */
171
+ 'auto_stake_maturity' : [] | [boolean],
172
+ /**
173
+ * Required. The amount of ICP to stake in e8s.
174
+ */
175
+ 'amount_e8s' : [] | [bigint],
176
+ /**
177
+ * The followees to set for the new neuron. Defaults to the network's default followees.
178
+ */
179
+ 'followees' : [] | [SetFollowing],
180
+ /**
181
+ * Whether the neuron should start dissolving immediately. Defaults to false.
182
+ */
183
+ 'dissolving' : [] | [boolean],
184
+ }
185
+ export type CreateNeuronResponse = { 'Ok' : CreatedNeuron } |
186
+ { 'Err' : GovernanceError };
125
187
  export interface CreateServiceNervousSystem {
126
188
  'url' : [] | [string],
127
189
  'governance_parameters' : [] | [GovernanceParameters],
@@ -134,6 +196,10 @@ export interface CreateServiceNervousSystem {
134
196
  'swap_parameters' : [] | [SwapParameters],
135
197
  'initial_token_distribution' : [] | [InitialTokenDistribution],
136
198
  }
199
+ export interface CreatedNeuron { 'neuron_id' : [] | [NeuronId] }
200
+ export interface CustomProposalCriticality {
201
+ 'additional_critical_native_action_ids' : [] | [BigUint64Array],
202
+ }
137
203
  export interface DateRangeFilter {
138
204
  'start_timestamp_seconds' : [] | [bigint],
139
205
  'end_timestamp_seconds' : [] | [bigint],
@@ -319,9 +385,29 @@ export interface GovernanceParameters {
319
385
  'neuron_minimum_stake' : [] | [Tokens],
320
386
  'proposal_wait_for_quiet_deadline_increase' : [] | [Duration],
321
387
  'proposal_initial_voting_period' : [] | [Duration],
388
+ 'custom_proposal_criticality' : [] | [CustomProposalCriticality],
322
389
  'proposal_rejection_fee' : [] | [Tokens],
323
390
  'voting_reward_parameters' : [] | [VotingRewardParameters],
324
391
  }
392
+ export interface GuestLaunchMeasurement {
393
+ /**
394
+ * Metadata associated with the measurement.
395
+ */
396
+ 'metadata' : [] | [GuestLaunchMeasurementMetadata],
397
+ /**
398
+ * SEV-SNP measurement (48 bytes).
399
+ */
400
+ 'measurement' : [] | [Uint8Array],
401
+ }
402
+ export interface GuestLaunchMeasurementMetadata {
403
+ /**
404
+ * Kernel command line used for this measurement.
405
+ */
406
+ 'kernel_cmdline' : [] | [string],
407
+ }
408
+ export interface GuestLaunchMeasurements {
409
+ 'guest_launch_measurements' : [] | [Array<GuestLaunchMeasurement>],
410
+ }
325
411
  export interface IdealMatchedParticipationFunction {
326
412
  'serialized_representation' : [] | [string],
327
413
  }
@@ -473,6 +559,10 @@ export interface ListProposalInfoRequest {
473
559
  export interface ListProposalInfoResponse {
474
560
  'proposal_info' : Array<ProposalInfo>,
475
561
  }
562
+ export interface LoadCanisterSnapshot {
563
+ 'canister_id' : [] | [Principal],
564
+ 'snapshot_id' : [] | [Uint8Array],
565
+ }
476
566
  export interface MakeProposalRequest {
477
567
  'url' : string,
478
568
  'title' : [] | [string],
@@ -892,9 +982,12 @@ export interface Proposal {
892
982
  export type ProposalActionRequest = { 'RegisterKnownNeuron' : KnownNeuron } |
893
983
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
894
984
  { 'ManageNeuron' : ManageNeuronRequest } |
985
+ { 'LoadCanisterSnapshot' : LoadCanisterSnapshot } |
986
+ { 'BlessAlternativeGuestOsVersion' : BlessAlternativeGuestOsVersion } |
895
987
  { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
896
988
  { 'InstallCode' : InstallCodeRequest } |
897
989
  { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
990
+ { 'TakeCanisterSnapshot' : TakeCanisterSnapshot } |
898
991
  { 'StopOrStartCanister' : StopOrStartCanister } |
899
992
  { 'CreateServiceNervousSystem' : CreateServiceNervousSystem } |
900
993
  { 'ExecuteNnsFunction' : ExecuteNnsFunction } |
@@ -1021,6 +1114,8 @@ export type SelfDescribingValue = { 'Int' : bigint } |
1021
1114
  { 'Map' : Array<[string, SelfDescribingValue]> } |
1022
1115
  { 'Nat' : bigint } |
1023
1116
  { 'Blob' : Uint8Array } |
1117
+ { 'Bool' : boolean } |
1118
+ { 'Null' : null } |
1024
1119
  { 'Text' : string } |
1025
1120
  { 'Array' : Array<SelfDescribingValue> };
1026
1121
  export interface SetDefaultFollowees {
@@ -1101,6 +1196,10 @@ export interface SwapParticipationLimits {
1101
1196
  'min_direct_participation_icp_e8s' : [] | [bigint],
1102
1197
  'max_direct_participation_icp_e8s' : [] | [bigint],
1103
1198
  }
1199
+ export interface TakeCanisterSnapshot {
1200
+ 'replace_snapshot' : [] | [Uint8Array],
1201
+ 'canister_id' : [] | [Principal],
1202
+ }
1104
1203
  export interface Tally {
1105
1204
  'no' : bigint,
1106
1205
  'yes' : bigint,
@@ -1206,6 +1305,7 @@ export interface _SERVICE {
1206
1305
  [ClaimOrRefreshNeuronFromAccount],
1207
1306
  ClaimOrRefreshNeuronFromAccountResponse
1208
1307
  >,
1308
+ 'create_neuron' : ActorMethod<[CreateNeuronRequest], CreateNeuronResponse>,
1209
1309
  'get_build_metadata' : ActorMethod<[], string>,
1210
1310
  'get_full_neuron' : ActorMethod<[bigint], Result_2>,
1211
1311
  'get_full_neuron_by_id_or_subaccount' : ActorMethod<