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

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 (85) hide show
  1. package/canisters/ckbtc/index.js +1 -1
  2. package/canisters/cketh/index.js +1 -1
  3. package/canisters/cmc/cmc.canister.d.ts +6 -6
  4. package/canisters/cmc/index.d.ts +1 -0
  5. package/canisters/cmc/index.js +1 -1
  6. package/canisters/cmc/index.js.map +4 -4
  7. package/canisters/cmc/schema.d.ts +92 -0
  8. package/canisters/declarations/_idl.d.ts +2 -1
  9. package/canisters/declarations/_types.d.ts +2 -1
  10. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
  11. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +2 -0
  12. package/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
  13. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +9 -0
  14. package/canisters/declarations/cketh/minter.did.d.ts +140 -0
  15. package/canisters/declarations/cketh/minter.did.idl.d.ts +8 -0
  16. package/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
  17. package/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.d.ts +82 -0
  18. package/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
  19. package/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
  20. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +5 -1
  21. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
  22. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
  23. package/canisters/declarations/nns/governance.did.d.ts +100 -0
  24. package/canisters/declarations/nns/governance.did.idl.d.ts +11 -0
  25. package/canisters/declarations/nns/governance_test.did.d.ts +100 -0
  26. package/canisters/declarations/nns/governance_test.did.idl.d.ts +11 -0
  27. package/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
  28. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +1 -0
  29. package/canisters/declarations/sns/governance.did.d.ts +4 -0
  30. package/canisters/declarations/sns/governance.did.idl.d.ts +1 -0
  31. package/canisters/declarations/sns/governance_test.did.d.ts +4 -0
  32. package/canisters/declarations/sns/governance_test.did.idl.d.ts +1 -0
  33. package/canisters/ic-management/index.js +1 -1
  34. package/canisters/index.d.ts +1 -1
  35. package/canisters/index.js +1 -1
  36. package/canisters/ledger/cycles/index.d.ts +1 -0
  37. package/canisters/ledger/cycles/index.js +2 -0
  38. package/canisters/ledger/cycles/index.js.map +7 -0
  39. package/canisters/ledger/icp/index.d.ts +1 -0
  40. package/canisters/ledger/icp/index.js +1 -1
  41. package/canisters/ledger/icp/index.js.map +4 -4
  42. package/canisters/ledger/icp/ledger.canister.d.ts +6 -6
  43. package/canisters/ledger/icp/schema.d.ts +152 -0
  44. package/canisters/ledger/icrc/index.d.ts +1 -1
  45. package/canisters/ledger/icrc/index.js +1 -1
  46. package/canisters/ledger/icrc/index.js.map +4 -4
  47. package/canisters/ledger/icrc/ledger.canister.d.ts +13 -14
  48. package/canisters/ledger/icrc/schema.d.ts +351 -0
  49. package/canisters/nns/index.js +1 -1
  50. package/canisters/sns/index.js +1 -1
  51. package/chunk-I3WMKZTG.js +2 -0
  52. package/chunk-I3WMKZTG.js.map +7 -0
  53. package/{chunk-X3EF7OU6.js → chunk-JI3RCRR6.js} +1 -1
  54. package/{chunk-X3EF7OU6.js.map → chunk-JI3RCRR6.js.map} +1 -1
  55. package/package.json +10 -6
  56. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +8 -0
  57. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +16 -0
  58. package/src/canisters/declarations/ckbtc/minter.did.d.ts +190 -0
  59. package/src/canisters/declarations/ckbtc/minter.did.idl.js +118 -0
  60. package/src/canisters/declarations/cketh/minter.did.d.ts +140 -0
  61. package/src/canisters/declarations/cketh/minter.did.idl.js +78 -0
  62. package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.d.ts +413 -0
  63. package/src/canisters/declarations/cycles-ledger/cycles-ledger.did.idl.js +806 -0
  64. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +18 -4
  65. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +32 -8
  66. package/src/canisters/declarations/ledger-icp/index.did.d.ts +20 -1
  67. package/src/canisters/declarations/ledger-icp/index.did.idl.js +32 -5
  68. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +1 -0
  69. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +2 -0
  70. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +1 -0
  71. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +2 -0
  72. package/src/canisters/declarations/nns/governance.did.d.ts +100 -0
  73. package/src/canisters/declarations/nns/governance.did.idl.js +132 -0
  74. package/src/canisters/declarations/nns/governance_test.did.d.ts +100 -0
  75. package/src/canisters/declarations/nns/governance_test.did.idl.js +132 -0
  76. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +4 -0
  77. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +8 -0
  78. package/src/canisters/declarations/sns/governance.did.d.ts +4 -0
  79. package/src/canisters/declarations/sns/governance.did.idl.js +12 -0
  80. package/src/canisters/declarations/sns/governance_test.did.d.ts +4 -0
  81. package/src/canisters/declarations/sns/governance_test.did.idl.js +12 -0
  82. package/canisters/ledger/icrc/schemas.d.ts +0 -11
  83. package/chunk-I4MVAQHI.js +0 -2
  84. package/chunk-I4MVAQHI.js.map +0 -7
  85. /package/canisters/{schemas.d.ts → schema.d.ts} +0 -0
@@ -155,13 +155,25 @@ export type change_details = {
155
155
  'snapshot_id' : snapshot_id,
156
156
  }
157
157
  } |
158
+ {
159
+ 'rename_canister' : {
160
+ 'rename_to' : {
161
+ 'canister_id' : canister_id,
162
+ 'version' : bigint,
163
+ 'total_num_changes' : bigint,
164
+ },
165
+ 'canister_id' : canister_id,
166
+ 'requested_by' : Principal,
167
+ 'total_num_changes' : bigint,
168
+ }
169
+ } |
158
170
  { 'controllers_change' : { 'controllers' : Array<Principal> } } |
159
171
  { 'code_uninstall' : null };
160
172
  export type change_origin = { 'from_user' : { 'user_id' : Principal } } |
161
173
  {
162
174
  'from_canister' : {
163
175
  'canister_version' : [] | [bigint],
164
- 'canister_id' : Principal,
176
+ 'canister_id' : canister_id,
165
177
  }
166
178
  };
167
179
  export interface chunk_hash { 'hash' : Uint8Array }
@@ -207,8 +219,10 @@ export interface http_header { 'value' : string, 'name' : string }
207
219
  export interface http_request_args {
208
220
  'url' : string,
209
221
  'method' : { 'get' : null } |
222
+ { 'put' : null } |
210
223
  { 'head' : null } |
211
- { 'post' : null },
224
+ { 'post' : null } |
225
+ { 'delete' : null },
212
226
  'max_response_bytes' : [] | [bigint],
213
227
  'body' : [] | [Uint8Array],
214
228
  'transform' : [] | [
@@ -366,7 +380,7 @@ export interface uninstall_code_args {
366
380
  'sender_canister_version' : [] | [bigint],
367
381
  }
368
382
  export interface update_settings_args {
369
- 'canister_id' : Principal,
383
+ 'canister_id' : canister_id,
370
384
  'settings' : canister_settings,
371
385
  'sender_canister_version' : [] | [bigint],
372
386
  }
@@ -405,7 +419,7 @@ export interface upload_canister_snapshot_metadata_response {
405
419
  }
406
420
  export interface upload_chunk_args {
407
421
  'chunk' : Uint8Array,
408
- 'canister_id' : Principal,
422
+ 'canister_id' : canister_id,
409
423
  }
410
424
  export type upload_chunk_result = chunk_hash;
411
425
  export interface utxo {
@@ -59,7 +59,17 @@ export interface HttpResponse {
59
59
  'headers' : Array<[string, string]>,
60
60
  'status_code' : number,
61
61
  }
62
- export interface InitArg { 'ledger_id' : Principal }
62
+ export type IndexArg = { 'Upgrade' : UpgradeArg } |
63
+ { 'Init' : InitArg };
64
+ export interface InitArg {
65
+ 'ledger_id' : Principal,
66
+ /**
67
+ * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
68
+ * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
69
+ * A higher values means that it takes longer for new blocks to show up in the index.
70
+ */
71
+ 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
72
+ }
63
73
  export type Operation = {
64
74
  'Approve' : {
65
75
  'fee' : Tokens,
@@ -97,6 +107,15 @@ export interface TransactionWithId {
97
107
  'id' : bigint,
98
108
  'transaction' : Transaction,
99
109
  }
110
+ export interface UpgradeArg {
111
+ 'ledger_id' : [] | [Principal],
112
+ /**
113
+ * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
114
+ * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
115
+ * A higher values means that it takes longer for new blocks to show up in the index.
116
+ */
117
+ 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
118
+ }
100
119
  export interface _SERVICE {
101
120
  'get_account_identifier_balance' : ActorMethod<[string], bigint>,
102
121
  'get_account_identifier_transactions' : ActorMethod<
@@ -1,4 +1,6 @@
1
+ export const UpgradeArg: IDL.RecordClass;
1
2
  export const InitArg: IDL.RecordClass;
3
+ export const IndexArg: IDL.VariantClass;
2
4
  export const GetAccountIdentifierTransactionsArgs: IDL.RecordClass;
3
5
  export const Tokens: IDL.RecordClass;
4
6
  export const TimeStamp: IDL.RecordClass;
@@ -25,7 +27,9 @@ export const idlService: IDL.ServiceClass<string, {
25
27
  ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
26
28
  status: IDL.FuncClass<[], [IDL.RecordClass]>;
27
29
  }>;
28
- export const idlInitArgs: IDL.RecordClass[];
30
+ export const idlInitArgs: IDL.OptClass<{
31
+ [x: string]: any;
32
+ }>[];
29
33
  export function idlFactory({ IDL }: {
30
34
  IDL: any;
31
35
  }): any;
@@ -36,6 +36,7 @@ export interface Burn {
36
36
  }
37
37
  export interface FeeCollector {
38
38
  'ts' : [] | [bigint],
39
+ 'mthd' : [] | [string],
39
40
  'fee_collector' : [] | [Account],
40
41
  'caller' : [] | [Principal],
41
42
  }
@@ -122,6 +122,7 @@ export type Duration = bigint;
122
122
  export interface FeatureFlags { 'icrc2' : boolean }
123
123
  export interface FeeCollector {
124
124
  'ts' : [] | [bigint],
125
+ 'mthd' : [] | [string],
125
126
  'fee_collector' : [] | [Account],
126
127
  'caller' : [] | [Principal],
127
128
  }
@@ -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<
@@ -71,14 +71,21 @@ export const Disburse: IDL.RecordClass;
71
71
  export const ManageNeuronProposalCommand: IDL.VariantClass;
72
72
  export const NeuronIdOrSubaccount: IDL.VariantClass;
73
73
  export const ManageNeuronProposal: IDL.RecordClass;
74
+ export const LoadCanisterSnapshot: IDL.RecordClass;
75
+ export const GuestLaunchMeasurementMetadata: IDL.RecordClass;
76
+ export const GuestLaunchMeasurement: IDL.RecordClass;
77
+ export const GuestLaunchMeasurements: IDL.RecordClass;
78
+ export const BlessAlternativeGuestOsVersion: IDL.RecordClass;
74
79
  export const Controllers: IDL.RecordClass;
75
80
  export const CanisterSettings: IDL.RecordClass;
76
81
  export const UpdateCanisterSettings: IDL.RecordClass;
77
82
  export const InstallCode: IDL.RecordClass;
78
83
  export const DeregisterKnownNeuron: IDL.RecordClass;
84
+ export const TakeCanisterSnapshot: IDL.RecordClass;
79
85
  export const StopOrStartCanister: IDL.RecordClass;
80
86
  export const Duration: IDL.RecordClass;
81
87
  export const Tokens: IDL.RecordClass;
88
+ export const CustomProposalCriticality: IDL.RecordClass;
82
89
  export const VotingRewardParameters: IDL.RecordClass;
83
90
  export const GovernanceParameters: IDL.RecordClass;
84
91
  export const Image: IDL.RecordClass;
@@ -120,6 +127,9 @@ export const Governance: IDL.RecordClass;
120
127
  export const Result: IDL.VariantClass;
121
128
  export const Result_1: IDL.VariantClass;
122
129
  export const ClaimOrRefreshNeuronFromAccountResponse: IDL.RecordClass;
130
+ export const CreateNeuronRequest: IDL.RecordClass;
131
+ export const CreatedNeuron: IDL.RecordClass;
132
+ export const CreateNeuronResponse: IDL.VariantClass;
123
133
  export const Result_2: IDL.VariantClass;
124
134
  export const Result_3: IDL.VariantClass;
125
135
  export const Result_4: IDL.VariantClass;
@@ -180,6 +190,7 @@ export const UpdateNodeProvider: IDL.RecordClass;
180
190
  export const idlService: IDL.ServiceClass<string, {
181
191
  claim_gtc_neurons: IDL.FuncClass<[IDL.PrincipalClass, IDL.VecClass<Record<string, any>>], [IDL.VariantClass]>;
182
192
  claim_or_refresh_neuron_from_account: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
193
+ create_neuron: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
183
194
  get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
184
195
  get_full_neuron: IDL.FuncClass<[IDL.FixedNatClass], [IDL.VariantClass]>;
185
196
  get_full_neuron_by_id_or_subaccount: IDL.FuncClass<[IDL.VariantClass], [IDL.VariantClass]>;
@@ -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<
@@ -71,14 +71,21 @@ export const Disburse: IDL.RecordClass;
71
71
  export const ManageNeuronProposalCommand: IDL.VariantClass;
72
72
  export const NeuronIdOrSubaccount: IDL.VariantClass;
73
73
  export const ManageNeuronProposal: IDL.RecordClass;
74
+ export const LoadCanisterSnapshot: IDL.RecordClass;
75
+ export const GuestLaunchMeasurementMetadata: IDL.RecordClass;
76
+ export const GuestLaunchMeasurement: IDL.RecordClass;
77
+ export const GuestLaunchMeasurements: IDL.RecordClass;
78
+ export const BlessAlternativeGuestOsVersion: IDL.RecordClass;
74
79
  export const Controllers: IDL.RecordClass;
75
80
  export const CanisterSettings: IDL.RecordClass;
76
81
  export const UpdateCanisterSettings: IDL.RecordClass;
77
82
  export const InstallCode: IDL.RecordClass;
78
83
  export const DeregisterKnownNeuron: IDL.RecordClass;
84
+ export const TakeCanisterSnapshot: IDL.RecordClass;
79
85
  export const StopOrStartCanister: IDL.RecordClass;
80
86
  export const Duration: IDL.RecordClass;
81
87
  export const Tokens: IDL.RecordClass;
88
+ export const CustomProposalCriticality: IDL.RecordClass;
82
89
  export const VotingRewardParameters: IDL.RecordClass;
83
90
  export const GovernanceParameters: IDL.RecordClass;
84
91
  export const Image: IDL.RecordClass;
@@ -120,6 +127,9 @@ export const Governance: IDL.RecordClass;
120
127
  export const Result: IDL.VariantClass;
121
128
  export const Result_1: IDL.VariantClass;
122
129
  export const ClaimOrRefreshNeuronFromAccountResponse: IDL.RecordClass;
130
+ export const CreateNeuronRequest: IDL.RecordClass;
131
+ export const CreatedNeuron: IDL.RecordClass;
132
+ export const CreateNeuronResponse: IDL.VariantClass;
123
133
  export const Result_2: IDL.VariantClass;
124
134
  export const Result_3: IDL.VariantClass;
125
135
  export const Result_4: IDL.VariantClass;
@@ -180,6 +190,7 @@ export const UpdateNodeProvider: IDL.RecordClass;
180
190
  export const idlService: IDL.ServiceClass<string, {
181
191
  claim_gtc_neurons: IDL.FuncClass<[IDL.PrincipalClass, IDL.VecClass<Record<string, any>>], [IDL.VariantClass]>;
182
192
  claim_or_refresh_neuron_from_account: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
193
+ create_neuron: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
183
194
  get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
184
195
  get_full_neuron: IDL.FuncClass<[IDL.FixedNatClass], [IDL.VariantClass]>;
185
196
  get_full_neuron_by_id_or_subaccount: IDL.FuncClass<[IDL.VariantClass], [IDL.VariantClass]>;
@@ -18,6 +18,9 @@ export interface AddWasmRequest {
18
18
  export interface AddWasmResponse { 'result' : [] | [Result] }
19
19
  export interface Canister { 'id' : [] | [Principal] }
20
20
  export interface Countries { 'iso_codes' : Array<string> }
21
+ export interface CustomProposalCriticality {
22
+ 'additional_critical_native_action_ids' : BigUint64Array,
23
+ }
21
24
  export interface DappCanisters { 'canisters' : Array<Canister> }
22
25
  export interface DappCanistersTransferResult {
23
26
  'restored_dapp_canisters' : Array<Canister>,
@@ -179,6 +182,7 @@ export interface SnsInitPayload {
179
182
  'wait_for_quiet_deadline_increase_seconds' : [] | [bigint],
180
183
  'transaction_fee_e8s' : [] | [bigint],
181
184
  'dapp_canisters' : [] | [DappCanisters],
185
+ 'custom_proposal_criticality' : [] | [CustomProposalCriticality],
182
186
  'neurons_fund_participation_constraints' : [] | [
183
187
  NeuronsFundParticipationConstraints
184
188
  ],
@@ -7,6 +7,7 @@ export const AddWasmResponse: IDL.RecordClass;
7
7
  export const NeuronBasketConstructionParameters: IDL.RecordClass;
8
8
  export const Canister: IDL.RecordClass;
9
9
  export const DappCanisters: IDL.RecordClass;
10
+ export const CustomProposalCriticality: IDL.RecordClass;
10
11
  export const LinearScalingCoefficient: IDL.RecordClass;
11
12
  export const IdealMatchedParticipationFunction: IDL.RecordClass;
12
13
  export const NeuronsFundParticipationConstraints: IDL.RecordClass;
@@ -140,6 +140,9 @@ export type Command_2 = { 'Split' : Split } |
140
140
  { 'MergeMaturity' : MergeMaturity } |
141
141
  { 'Disburse' : Disburse };
142
142
  export interface Configure { 'operation' : [] | [Operation] }
143
+ export interface CustomProposalCriticality {
144
+ 'additional_critical_native_action_ids' : BigUint64Array,
145
+ }
143
146
  export interface Decimal { 'human_readable' : [] | [string] }
144
147
  export interface DefaultFollowees { 'followees' : Array<[bigint, Followees]> }
145
148
  export interface DefiniteCanisterSettingsArgs {
@@ -438,6 +441,7 @@ export interface NervousSystemParameters {
438
441
  'wait_for_quiet_deadline_increase_seconds' : [] | [bigint],
439
442
  'max_number_of_neurons' : [] | [bigint],
440
443
  'transaction_fee_e8s' : [] | [bigint],
444
+ 'custom_proposal_criticality' : [] | [CustomProposalCriticality],
441
445
  'max_number_of_proposals_with_ballots' : [] | [bigint],
442
446
  'max_age_bonus_percentage' : [] | [bigint],
443
447
  'neuron_grantable_permissions' : [] | [NeuronPermissionList],
@@ -26,6 +26,7 @@ export const NeuronId: IDL.RecordClass;
26
26
  export const Followees: IDL.RecordClass;
27
27
  export const DefaultFollowees: IDL.RecordClass;
28
28
  export const NeuronPermissionList: IDL.RecordClass;
29
+ export const CustomProposalCriticality: IDL.RecordClass;
29
30
  export const VotingRewardsParameters: IDL.RecordClass;
30
31
  export const NervousSystemParameters: IDL.RecordClass;
31
32
  export const RewardEvent: IDL.RecordClass;
@@ -152,6 +152,9 @@ export type Command_2 = { 'Split' : Split } |
152
152
  { 'MergeMaturity' : MergeMaturity } |
153
153
  { 'Disburse' : Disburse };
154
154
  export interface Configure { 'operation' : [] | [Operation] }
155
+ export interface CustomProposalCriticality {
156
+ 'additional_critical_native_action_ids' : BigUint64Array,
157
+ }
155
158
  export interface Decimal { 'human_readable' : [] | [string] }
156
159
  export interface DefaultFollowees { 'followees' : Array<[bigint, Followees]> }
157
160
  export interface DefiniteCanisterSettingsArgs {
@@ -454,6 +457,7 @@ export interface NervousSystemParameters {
454
457
  'wait_for_quiet_deadline_increase_seconds' : [] | [bigint],
455
458
  'max_number_of_neurons' : [] | [bigint],
456
459
  'transaction_fee_e8s' : [] | [bigint],
460
+ 'custom_proposal_criticality' : [] | [CustomProposalCriticality],
457
461
  'max_number_of_proposals_with_ballots' : [] | [bigint],
458
462
  'max_age_bonus_percentage' : [] | [bigint],
459
463
  'neuron_grantable_permissions' : [] | [NeuronPermissionList],
@@ -26,6 +26,7 @@ export const NeuronId: IDL.RecordClass;
26
26
  export const Followees: IDL.RecordClass;
27
27
  export const DefaultFollowees: IDL.RecordClass;
28
28
  export const NeuronPermissionList: IDL.RecordClass;
29
+ export const CustomProposalCriticality: IDL.RecordClass;
29
30
  export const VotingRewardsParameters: IDL.RecordClass;
30
31
  export const NervousSystemParameters: IDL.RecordClass;
31
32
  export const RewardEvent: IDL.RecordClass;
@@ -1,2 +1,2 @@
1
- import{f as e}from"../../chunk-I4MVAQHI.js";import"../../chunk-4C666HHU.js";export{e as IcManagementIdl};
1
+ import{g as e}from"../../chunk-I3WMKZTG.js";import"../../chunk-4C666HHU.js";export{e as IcManagementIdl};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export * from './schemas';
1
+ export * from './schema';
@@ -1,2 +1,2 @@
1
- import{a as o}from"../chunk-X3EF7OU6.js";import"../chunk-4C666HHU.js";export{o as CanisterOptionsSchema};
1
+ import{a as o}from"../chunk-JI3RCRR6.js";import"../chunk-4C666HHU.js";export{o as CanisterOptionsSchema};
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ export { CyclesLedgerIdl, type CyclesLedgerDid } from '../../declarations';
@@ -0,0 +1,2 @@
1
+ import{f as e}from"../../../chunk-I3WMKZTG.js";import"../../../chunk-4C666HHU.js";export{e as CyclesLedgerIdl};
2
+ //# sourceMappingURL=index.js.map