@junobuild/functions 0.5.3 → 0.5.5-next-2026-01-16

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 (79) 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 +5 -5
  5. package/canisters/declarations/_types.d.ts +5 -5
  6. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  7. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +3 -2
  8. package/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  9. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +1 -0
  10. package/canisters/declarations/cmc/cmc.did.idl.d.ts +1 -1
  11. package/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  12. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  13. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.d.ts +26 -0
  14. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  15. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.d.ts +13 -0
  16. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  17. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +21 -4
  18. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  19. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +1 -0
  20. package/canisters/declarations/nns/governance.did.d.ts +54 -30
  21. package/canisters/declarations/nns/governance.did.idl.d.ts +6 -3
  22. package/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  23. package/canisters/declarations/nns/governance_test.did.idl.d.ts +6 -3
  24. package/{src/canisters/declarations/sns/sns_root.did.d.ts → canisters/declarations/sns/root.did.d.ts} +12 -0
  25. package/canisters/declarations/sns/{sns_root.did.idl.d.ts → root.did.idl.d.ts} +5 -1
  26. package/canisters/ic-management/index.js +1 -1
  27. package/canisters/ledger/icp/index.js +1 -1
  28. package/canisters/ledger/icrc/index.d.ts +1 -1
  29. package/canisters/ledger/icrc/index.js +1 -1
  30. package/canisters/ledger/icrc/schemas.d.ts +1 -1
  31. package/canisters/nns/index.js +1 -1
  32. package/canisters/schemas.d.ts +1 -1
  33. package/canisters/sns/index.js +1 -1
  34. package/chunk-CAQXR2VB.js +2 -0
  35. package/chunk-CAQXR2VB.js.map +7 -0
  36. package/package.json +5 -5
  37. package/schemas/satellite.d.ts +1 -1
  38. package/sdk/schemas/controllers.d.ts +1 -1
  39. package/sdk/schemas/db.d.ts +6 -6
  40. package/sdk/schemas/params.d.ts +1 -1
  41. package/sdk/schemas/storage.d.ts +6 -6
  42. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  43. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +44 -22
  44. package/src/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  45. package/src/canisters/declarations/ckbtc/minter.did.idl.js +14 -0
  46. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  47. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +6 -2
  48. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  49. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.js +116 -0
  50. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  51. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.js +34 -0
  52. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  53. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +150 -35
  54. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  55. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +12 -0
  56. package/src/canisters/declarations/nns/governance.did.d.ts +54 -30
  57. package/src/canisters/declarations/nns/governance.did.idl.js +87 -17
  58. package/src/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  59. package/src/canisters/declarations/nns/governance_test.did.idl.js +87 -17
  60. package/{canisters/declarations/sns/sns_root.did.d.ts → src/canisters/declarations/sns/root.did.d.ts} +12 -0
  61. package/src/canisters/declarations/sns/{sns_root.did.idl.js → root.did.idl.js} +38 -8
  62. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  63. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +0 -44
  64. package/chunk-HANEPD6T.js +0 -2
  65. package/chunk-HANEPD6T.js.map +0 -7
  66. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  67. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +0 -274
  68. /package/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  69. /package/canisters/declarations/sns/{sns_governance.did.idl.d.ts → governance.did.idl.d.ts} +0 -0
  70. /package/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  71. /package/canisters/declarations/sns/{sns_governance_test.did.idl.d.ts → governance_test.did.idl.d.ts} +0 -0
  72. /package/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  73. /package/canisters/declarations/sns/{sns_swap.did.idl.d.ts → swap.did.idl.d.ts} +0 -0
  74. /package/src/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  75. /package/src/canisters/declarations/sns/{sns_governance.did.idl.js → governance.did.idl.js} +0 -0
  76. /package/src/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  77. /package/src/canisters/declarations/sns/{sns_governance_test.did.idl.js → governance_test.did.idl.js} +0 -0
  78. /package/src/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  79. /package/src/canisters/declarations/sns/{sns_swap.did.idl.js → swap.did.idl.js} +0 -0
@@ -17,7 +17,7 @@ export interface Account {
17
17
  export interface AccountIdentifier { 'hash' : Uint8Array }
18
18
  export type Action = { 'RegisterKnownNeuron' : KnownNeuron } |
19
19
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
20
- { 'ManageNeuron' : ManageNeuron } |
20
+ { 'ManageNeuron' : ManageNeuronProposal } |
21
21
  { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
22
22
  { 'InstallCode' : InstallCode } |
23
23
  { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
@@ -84,24 +84,6 @@ export interface ClaimOrRefreshNeuronFromAccountResponse {
84
84
  export interface ClaimOrRefreshResponse {
85
85
  'refreshed_neuron_id' : [] | [NeuronId],
86
86
  }
87
- /**
88
- * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
89
- */
90
- export type Command = { 'Spawn' : Spawn } |
91
- { 'Split' : Split } |
92
- { 'Follow' : Follow } |
93
- { 'DisburseMaturity' : DisburseMaturity } |
94
- { 'RefreshVotingPower' : RefreshVotingPower } |
95
- { 'ClaimOrRefresh' : ClaimOrRefresh } |
96
- { 'Configure' : Configure } |
97
- { 'RegisterVote' : RegisterVote } |
98
- { 'Merge' : Merge } |
99
- { 'DisburseToNeuron' : DisburseToNeuron } |
100
- { 'SetFollowing' : SetFollowing } |
101
- { 'MakeProposal' : Proposal } |
102
- { 'StakeMaturity' : StakeMaturity } |
103
- { 'MergeMaturity' : MergeMaturity } |
104
- { 'Disburse' : Disburse };
105
87
  export type Command_1 = { 'Error' : GovernanceError } |
106
88
  { 'Spawn' : SpawnResponse } |
107
89
  { 'Split' : SpawnResponse } |
@@ -245,6 +227,9 @@ export interface GetNeuronsFundAuditInfoRequest {
245
227
  'nns_proposal_id' : [] | [ProposalId],
246
228
  }
247
229
  export interface GetNeuronsFundAuditInfoResponse { 'result' : [] | [Result_6] }
230
+ export interface GetPendingProposalsRequest {
231
+ 'return_self_describing_action' : [] | [boolean],
232
+ }
248
233
  export interface GlobalTimeOfDay {
249
234
  'seconds_after_utc_midnight' : [] | [bigint],
250
235
  }
@@ -370,12 +355,16 @@ export interface KnownNeuron {
370
355
  export interface KnownNeuronData {
371
356
  'name' : string,
372
357
  /**
373
- * The first `opt` makes it so that the field can be renamed/deprecated in the future, and
374
- * the second `opt` makes it so that an older client not recognizing a new variant can still
375
- * get the rest of the `vec`.
358
+ * Topics that the known neuron is committed to always vote on.
359
+ * Note regarding the type: the first `opt` makes it so that the field can be renamed/deprecated
360
+ * in the future, and the second `opt` makes it so that an older client not recognizing a new
361
+ * variant can still get the rest of the `vec`.
376
362
  */
377
363
  'committed_topics' : [] | [Array<[] | [TopicToFollow]>],
378
364
  'description' : [] | [string],
365
+ /**
366
+ * Links related to the known neuron. Can be links to social URLs (OpenChat, X, etc.), or a homepage.
367
+ */
379
368
  'links' : [] | [Array<string>],
380
369
  }
381
370
  export interface LedgerParameters {
@@ -472,6 +461,7 @@ export interface ListNodeProvidersResponse {
472
461
  'node_providers' : Array<NodeProvider>,
473
462
  }
474
463
  export interface ListProposalInfoRequest {
464
+ 'return_self_describing_action' : [] | [boolean],
475
465
  'include_reward_status' : Int32Array,
476
466
  'omit_large_fields' : [] | [boolean],
477
467
  'before_proposal' : [] | [ProposalId],
@@ -494,18 +484,36 @@ export interface MakeProposalResponse {
494
484
  'proposal_id' : [] | [ProposalId],
495
485
  }
496
486
  /**
497
- * Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
498
- * similar to that, but not actually exactly equivalent.)
487
+ * KEEP THIS IN SYNC WITH COMMAND!
488
+ */
489
+ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
490
+ { 'Split' : Split } |
491
+ { 'Follow' : Follow } |
492
+ { 'DisburseMaturity' : DisburseMaturity } |
493
+ { 'RefreshVotingPower' : RefreshVotingPower } |
494
+ { 'ClaimOrRefresh' : ClaimOrRefresh } |
495
+ { 'Configure' : Configure } |
496
+ { 'RegisterVote' : RegisterVote } |
497
+ { 'Merge' : Merge } |
498
+ { 'DisburseToNeuron' : DisburseToNeuron } |
499
+ { 'SetFollowing' : SetFollowing } |
500
+ { 'MakeProposal' : MakeProposalRequest } |
501
+ { 'StakeMaturity' : StakeMaturity } |
502
+ { 'MergeMaturity' : MergeMaturity } |
503
+ { 'Disburse' : Disburse };
504
+ /**
505
+ * Not to be confused with ManageNeuronRequest. This is only used to represent a manage neuron proposal.
506
+ * (Yes, this is very structurally similar to that, but not actually exactly equivalent)
499
507
  */
500
- export interface ManageNeuron {
508
+ export interface ManageNeuronProposal {
501
509
  'id' : [] | [NeuronId],
502
- 'command' : [] | [Command],
510
+ 'command' : [] | [ManageNeuronProposalCommand],
503
511
  'neuron_id_or_subaccount' : [] | [NeuronIdOrSubaccount],
504
512
  }
505
513
  /**
506
- * KEEP THIS IN SYNC WITH COMMAND!
514
+ * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
507
515
  */
508
- export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
516
+ export type ManageNeuronProposalCommand = { 'Spawn' : Spawn } |
509
517
  { 'Split' : Split } |
510
518
  { 'Follow' : Follow } |
511
519
  { 'DisburseMaturity' : DisburseMaturity } |
@@ -516,7 +524,7 @@ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
516
524
  { 'Merge' : Merge } |
517
525
  { 'DisburseToNeuron' : DisburseToNeuron } |
518
526
  { 'SetFollowing' : SetFollowing } |
519
- { 'MakeProposal' : MakeProposalRequest } |
527
+ { 'MakeProposal' : Proposal } |
520
528
  { 'StakeMaturity' : StakeMaturity } |
521
529
  { 'MergeMaturity' : MergeMaturity } |
522
530
  { 'Disburse' : Disburse };
@@ -567,6 +575,7 @@ export interface MergeResponse {
567
575
  'source_neuron_info' : [] | [NeuronInfo],
568
576
  }
569
577
  export interface MonthlyNodeProviderRewards {
578
+ 'algorithm_version' : [] | [number],
570
579
  'minimum_xdr_permyriad_per_icp' : [] | [bigint],
571
580
  'end_date' : [] | [DateUtc],
572
581
  'registry_version' : [] | [bigint],
@@ -878,6 +887,7 @@ export interface Proposal {
878
887
  'title' : [] | [string],
879
888
  'action' : [] | [Action],
880
889
  'summary' : string,
890
+ 'self_describing_action' : [] | [SelfDescribingProposalAction],
881
891
  }
882
892
  export type ProposalActionRequest = { 'RegisterKnownNeuron' : KnownNeuron } |
883
893
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
@@ -1002,6 +1012,17 @@ export interface RewardNodeProviders {
1002
1012
  }
1003
1013
  export interface RewardToAccount { 'to_account' : [] | [AccountIdentifier] }
1004
1014
  export interface RewardToNeuron { 'dissolve_delay_seconds' : bigint }
1015
+ export interface SelfDescribingProposalAction {
1016
+ 'type_description' : [] | [string],
1017
+ 'type_name' : [] | [string],
1018
+ 'value' : [] | [SelfDescribingValue],
1019
+ }
1020
+ export type SelfDescribingValue = { 'Int' : bigint } |
1021
+ { 'Map' : Array<[string, SelfDescribingValue]> } |
1022
+ { 'Nat' : bigint } |
1023
+ { 'Blob' : Uint8Array } |
1024
+ { 'Text' : string } |
1025
+ { 'Array' : Array<SelfDescribingValue> };
1005
1026
  export interface SetDefaultFollowees {
1006
1027
  'default_followees' : Array<[number, Followees]>,
1007
1028
  }
@@ -1214,7 +1235,10 @@ export interface _SERVICE {
1214
1235
  GetNeuronsFundAuditInfoResponse
1215
1236
  >,
1216
1237
  'get_node_provider_by_caller' : ActorMethod<[null], Result_7>,
1217
- 'get_pending_proposals' : ActorMethod<[], Array<ProposalInfo>>,
1238
+ 'get_pending_proposals' : ActorMethod<
1239
+ [[] | [GetPendingProposalsRequest]],
1240
+ Array<ProposalInfo>
1241
+ >,
1218
1242
  'get_proposal_info' : ActorMethod<[bigint], [] | [ProposalInfo]>,
1219
1243
  'get_restore_aging_summary' : ActorMethod<[], RestoreAgingSummary>,
1220
1244
  'list_known_neurons' : ActorMethod<[], ListKnownNeuronsResponse>,
@@ -1,5 +1,6 @@
1
1
  export const ManageNeuronRequest: IDL.RecClass<any>;
2
2
  export const Proposal: IDL.RecClass<any>;
3
+ export const SelfDescribingValue: IDL.RecClass<any>;
3
4
  export const NeuronId: IDL.RecordClass;
4
5
  export const Followees: IDL.RecordClass;
5
6
  export const DateUtc: IDL.RecordClass;
@@ -67,9 +68,9 @@ export const StakeMaturity: IDL.RecordClass;
67
68
  export const MergeMaturity: IDL.RecordClass;
68
69
  export const Amount: IDL.RecordClass;
69
70
  export const Disburse: IDL.RecordClass;
70
- export const Command: IDL.VariantClass;
71
+ export const ManageNeuronProposalCommand: IDL.VariantClass;
71
72
  export const NeuronIdOrSubaccount: IDL.VariantClass;
72
- export const ManageNeuron: IDL.RecordClass;
73
+ export const ManageNeuronProposal: IDL.RecordClass;
73
74
  export const Controllers: IDL.RecordClass;
74
75
  export const CanisterSettings: IDL.RecordClass;
75
76
  export const UpdateCanisterSettings: IDL.RecordClass;
@@ -106,6 +107,7 @@ export const Change: IDL.VariantClass;
106
107
  export const AddOrRemoveNodeProvider: IDL.RecordClass;
107
108
  export const Motion: IDL.RecordClass;
108
109
  export const Action: IDL.VariantClass;
110
+ export const SelfDescribingProposalAction: IDL.RecordClass;
109
111
  export const WaitForQuietState: IDL.RecordClass;
110
112
  export const ProposalData: IDL.RecordClass;
111
113
  export const Command_2: IDL.VariantClass;
@@ -132,6 +134,7 @@ export const Ok: IDL.RecordClass;
132
134
  export const Result_6: IDL.VariantClass;
133
135
  export const GetNeuronsFundAuditInfoResponse: IDL.RecordClass;
134
136
  export const Result_7: IDL.VariantClass;
137
+ export const GetPendingProposalsRequest: IDL.RecordClass;
135
138
  export const ProposalInfo: IDL.RecordClass;
136
139
  export const ListKnownNeuronsResponse: IDL.RecordClass;
137
140
  export const ListNeuronVotesRequest: IDL.RecordClass;
@@ -191,7 +194,7 @@ export const idlService: IDL.ServiceClass<string, {
191
194
  get_neuron_info_by_id_or_subaccount: IDL.FuncClass<[IDL.VariantClass], [IDL.VariantClass]>;
192
195
  get_neurons_fund_audit_info: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
193
196
  get_node_provider_by_caller: IDL.FuncClass<[IDL.NullClass], [IDL.VariantClass]>;
194
- get_pending_proposals: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
197
+ get_pending_proposals: IDL.FuncClass<[IDL.OptClass<Record<string, any>>], [IDL.VecClass<Record<string, any>>]>;
195
198
  get_proposal_info: IDL.FuncClass<[IDL.FixedNatClass], [IDL.OptClass<Record<string, any>>]>;
196
199
  get_restore_aging_summary: IDL.FuncClass<[], [IDL.RecordClass]>;
197
200
  list_known_neurons: IDL.FuncClass<[], [IDL.RecordClass]>;
@@ -17,7 +17,7 @@ export interface Account {
17
17
  export interface AccountIdentifier { 'hash' : Uint8Array }
18
18
  export type Action = { 'RegisterKnownNeuron' : KnownNeuron } |
19
19
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
20
- { 'ManageNeuron' : ManageNeuron } |
20
+ { 'ManageNeuron' : ManageNeuronProposal } |
21
21
  { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
22
22
  { 'InstallCode' : InstallCode } |
23
23
  { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
@@ -84,24 +84,6 @@ export interface ClaimOrRefreshNeuronFromAccountResponse {
84
84
  export interface ClaimOrRefreshResponse {
85
85
  'refreshed_neuron_id' : [] | [NeuronId],
86
86
  }
87
- /**
88
- * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
89
- */
90
- export type Command = { 'Spawn' : Spawn } |
91
- { 'Split' : Split } |
92
- { 'Follow' : Follow } |
93
- { 'DisburseMaturity' : DisburseMaturity } |
94
- { 'RefreshVotingPower' : RefreshVotingPower } |
95
- { 'ClaimOrRefresh' : ClaimOrRefresh } |
96
- { 'Configure' : Configure } |
97
- { 'RegisterVote' : RegisterVote } |
98
- { 'Merge' : Merge } |
99
- { 'DisburseToNeuron' : DisburseToNeuron } |
100
- { 'SetFollowing' : SetFollowing } |
101
- { 'MakeProposal' : Proposal } |
102
- { 'StakeMaturity' : StakeMaturity } |
103
- { 'MergeMaturity' : MergeMaturity } |
104
- { 'Disburse' : Disburse };
105
87
  export type Command_1 = { 'Error' : GovernanceError } |
106
88
  { 'Spawn' : SpawnResponse } |
107
89
  { 'Split' : SpawnResponse } |
@@ -245,6 +227,9 @@ export interface GetNeuronsFundAuditInfoRequest {
245
227
  'nns_proposal_id' : [] | [ProposalId],
246
228
  }
247
229
  export interface GetNeuronsFundAuditInfoResponse { 'result' : [] | [Result_6] }
230
+ export interface GetPendingProposalsRequest {
231
+ 'return_self_describing_action' : [] | [boolean],
232
+ }
248
233
  export interface GlobalTimeOfDay {
249
234
  'seconds_after_utc_midnight' : [] | [bigint],
250
235
  }
@@ -370,12 +355,16 @@ export interface KnownNeuron {
370
355
  export interface KnownNeuronData {
371
356
  'name' : string,
372
357
  /**
373
- * The first `opt` makes it so that the field can be renamed/deprecated in the future, and
374
- * the second `opt` makes it so that an older client not recognizing a new variant can still
375
- * get the rest of the `vec`.
358
+ * Topics that the known neuron is committed to always vote on.
359
+ * Note regarding the type: the first `opt` makes it so that the field can be renamed/deprecated
360
+ * in the future, and the second `opt` makes it so that an older client not recognizing a new
361
+ * variant can still get the rest of the `vec`.
376
362
  */
377
363
  'committed_topics' : [] | [Array<[] | [TopicToFollow]>],
378
364
  'description' : [] | [string],
365
+ /**
366
+ * Links related to the known neuron. Can be links to social URLs (OpenChat, X, etc.), or a homepage.
367
+ */
379
368
  'links' : [] | [Array<string>],
380
369
  }
381
370
  export interface LedgerParameters {
@@ -472,6 +461,7 @@ export interface ListNodeProvidersResponse {
472
461
  'node_providers' : Array<NodeProvider>,
473
462
  }
474
463
  export interface ListProposalInfoRequest {
464
+ 'return_self_describing_action' : [] | [boolean],
475
465
  'include_reward_status' : Int32Array,
476
466
  'omit_large_fields' : [] | [boolean],
477
467
  'before_proposal' : [] | [ProposalId],
@@ -494,18 +484,36 @@ export interface MakeProposalResponse {
494
484
  'proposal_id' : [] | [ProposalId],
495
485
  }
496
486
  /**
497
- * Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
498
- * similar to that, but not actually exactly equivalent.)
487
+ * KEEP THIS IN SYNC WITH COMMAND!
488
+ */
489
+ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
490
+ { 'Split' : Split } |
491
+ { 'Follow' : Follow } |
492
+ { 'DisburseMaturity' : DisburseMaturity } |
493
+ { 'RefreshVotingPower' : RefreshVotingPower } |
494
+ { 'ClaimOrRefresh' : ClaimOrRefresh } |
495
+ { 'Configure' : Configure } |
496
+ { 'RegisterVote' : RegisterVote } |
497
+ { 'Merge' : Merge } |
498
+ { 'DisburseToNeuron' : DisburseToNeuron } |
499
+ { 'SetFollowing' : SetFollowing } |
500
+ { 'MakeProposal' : MakeProposalRequest } |
501
+ { 'StakeMaturity' : StakeMaturity } |
502
+ { 'MergeMaturity' : MergeMaturity } |
503
+ { 'Disburse' : Disburse };
504
+ /**
505
+ * Not to be confused with ManageNeuronRequest. This is only used to represent a manage neuron proposal.
506
+ * (Yes, this is very structurally similar to that, but not actually exactly equivalent)
499
507
  */
500
- export interface ManageNeuron {
508
+ export interface ManageNeuronProposal {
501
509
  'id' : [] | [NeuronId],
502
- 'command' : [] | [Command],
510
+ 'command' : [] | [ManageNeuronProposalCommand],
503
511
  'neuron_id_or_subaccount' : [] | [NeuronIdOrSubaccount],
504
512
  }
505
513
  /**
506
- * KEEP THIS IN SYNC WITH COMMAND!
514
+ * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
507
515
  */
508
- export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
516
+ export type ManageNeuronProposalCommand = { 'Spawn' : Spawn } |
509
517
  { 'Split' : Split } |
510
518
  { 'Follow' : Follow } |
511
519
  { 'DisburseMaturity' : DisburseMaturity } |
@@ -516,7 +524,7 @@ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
516
524
  { 'Merge' : Merge } |
517
525
  { 'DisburseToNeuron' : DisburseToNeuron } |
518
526
  { 'SetFollowing' : SetFollowing } |
519
- { 'MakeProposal' : MakeProposalRequest } |
527
+ { 'MakeProposal' : Proposal } |
520
528
  { 'StakeMaturity' : StakeMaturity } |
521
529
  { 'MergeMaturity' : MergeMaturity } |
522
530
  { 'Disburse' : Disburse };
@@ -567,6 +575,7 @@ export interface MergeResponse {
567
575
  'source_neuron_info' : [] | [NeuronInfo],
568
576
  }
569
577
  export interface MonthlyNodeProviderRewards {
578
+ 'algorithm_version' : [] | [number],
570
579
  'minimum_xdr_permyriad_per_icp' : [] | [bigint],
571
580
  'end_date' : [] | [DateUtc],
572
581
  'registry_version' : [] | [bigint],
@@ -878,6 +887,7 @@ export interface Proposal {
878
887
  'title' : [] | [string],
879
888
  'action' : [] | [Action],
880
889
  'summary' : string,
890
+ 'self_describing_action' : [] | [SelfDescribingProposalAction],
881
891
  }
882
892
  export type ProposalActionRequest = { 'RegisterKnownNeuron' : KnownNeuron } |
883
893
  { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
@@ -1002,6 +1012,17 @@ export interface RewardNodeProviders {
1002
1012
  }
1003
1013
  export interface RewardToAccount { 'to_account' : [] | [AccountIdentifier] }
1004
1014
  export interface RewardToNeuron { 'dissolve_delay_seconds' : bigint }
1015
+ export interface SelfDescribingProposalAction {
1016
+ 'type_description' : [] | [string],
1017
+ 'type_name' : [] | [string],
1018
+ 'value' : [] | [SelfDescribingValue],
1019
+ }
1020
+ export type SelfDescribingValue = { 'Int' : bigint } |
1021
+ { 'Map' : Array<[string, SelfDescribingValue]> } |
1022
+ { 'Nat' : bigint } |
1023
+ { 'Blob' : Uint8Array } |
1024
+ { 'Text' : string } |
1025
+ { 'Array' : Array<SelfDescribingValue> };
1005
1026
  export interface SetDefaultFollowees {
1006
1027
  'default_followees' : Array<[number, Followees]>,
1007
1028
  }
@@ -1214,7 +1235,10 @@ export interface _SERVICE {
1214
1235
  GetNeuronsFundAuditInfoResponse
1215
1236
  >,
1216
1237
  'get_node_provider_by_caller' : ActorMethod<[null], Result_7>,
1217
- 'get_pending_proposals' : ActorMethod<[], Array<ProposalInfo>>,
1238
+ 'get_pending_proposals' : ActorMethod<
1239
+ [[] | [GetPendingProposalsRequest]],
1240
+ Array<ProposalInfo>
1241
+ >,
1218
1242
  'get_proposal_info' : ActorMethod<[bigint], [] | [ProposalInfo]>,
1219
1243
  'get_restore_aging_summary' : ActorMethod<[], RestoreAgingSummary>,
1220
1244
  'list_known_neurons' : ActorMethod<[], ListKnownNeuronsResponse>,
@@ -1,5 +1,6 @@
1
1
  export const ManageNeuronRequest: IDL.RecClass<any>;
2
2
  export const Proposal: IDL.RecClass<any>;
3
+ export const SelfDescribingValue: IDL.RecClass<any>;
3
4
  export const NeuronId: IDL.RecordClass;
4
5
  export const Followees: IDL.RecordClass;
5
6
  export const DateUtc: IDL.RecordClass;
@@ -67,9 +68,9 @@ export const StakeMaturity: IDL.RecordClass;
67
68
  export const MergeMaturity: IDL.RecordClass;
68
69
  export const Amount: IDL.RecordClass;
69
70
  export const Disburse: IDL.RecordClass;
70
- export const Command: IDL.VariantClass;
71
+ export const ManageNeuronProposalCommand: IDL.VariantClass;
71
72
  export const NeuronIdOrSubaccount: IDL.VariantClass;
72
- export const ManageNeuron: IDL.RecordClass;
73
+ export const ManageNeuronProposal: IDL.RecordClass;
73
74
  export const Controllers: IDL.RecordClass;
74
75
  export const CanisterSettings: IDL.RecordClass;
75
76
  export const UpdateCanisterSettings: IDL.RecordClass;
@@ -106,6 +107,7 @@ export const Change: IDL.VariantClass;
106
107
  export const AddOrRemoveNodeProvider: IDL.RecordClass;
107
108
  export const Motion: IDL.RecordClass;
108
109
  export const Action: IDL.VariantClass;
110
+ export const SelfDescribingProposalAction: IDL.RecordClass;
109
111
  export const WaitForQuietState: IDL.RecordClass;
110
112
  export const ProposalData: IDL.RecordClass;
111
113
  export const Command_2: IDL.VariantClass;
@@ -132,6 +134,7 @@ export const Ok: IDL.RecordClass;
132
134
  export const Result_6: IDL.VariantClass;
133
135
  export const GetNeuronsFundAuditInfoResponse: IDL.RecordClass;
134
136
  export const Result_7: IDL.VariantClass;
137
+ export const GetPendingProposalsRequest: IDL.RecordClass;
135
138
  export const ProposalInfo: IDL.RecordClass;
136
139
  export const ListKnownNeuronsResponse: IDL.RecordClass;
137
140
  export const ListNeuronVotesRequest: IDL.RecordClass;
@@ -191,7 +194,7 @@ export const idlService: IDL.ServiceClass<string, {
191
194
  get_neuron_info_by_id_or_subaccount: IDL.FuncClass<[IDL.VariantClass], [IDL.VariantClass]>;
192
195
  get_neurons_fund_audit_info: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
193
196
  get_node_provider_by_caller: IDL.FuncClass<[IDL.NullClass], [IDL.VariantClass]>;
194
- get_pending_proposals: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
197
+ get_pending_proposals: IDL.FuncClass<[IDL.OptClass<Record<string, any>>], [IDL.VecClass<Record<string, any>>]>;
195
198
  get_proposal_info: IDL.FuncClass<[IDL.FixedNatClass], [IDL.OptClass<Record<string, any>>]>;
196
199
  get_restore_aging_summary: IDL.FuncClass<[], [IDL.RecordClass]>;
197
200
  list_known_neurons: IDL.FuncClass<[], [IDL.RecordClass]>;
@@ -59,6 +59,14 @@ export interface ChunkedCanisterWasm {
59
59
  'chunk_hashes_list' : Array<Uint8Array>,
60
60
  'store_canister_id' : Principal,
61
61
  }
62
+ export interface CleanUpFailedRegisterExtensionRequest {
63
+ 'canister_id' : [] | [Principal],
64
+ }
65
+ export interface CleanUpFailedRegisterExtensionResponse {
66
+ 'result' : [] | [CleanUpFailedRegisterExtensionResult],
67
+ }
68
+ export type CleanUpFailedRegisterExtensionResult = { 'Ok' : {} } |
69
+ { 'Err' : CanisterCallError };
62
70
  export interface DefiniteCanisterSettings {
63
71
  'freezing_threshold' : [] | [bigint],
64
72
  'wasm_memory_threshold' : [] | [bigint],
@@ -175,6 +183,10 @@ export interface Timers {
175
183
  export interface _SERVICE {
176
184
  'canister_status' : ActorMethod<[CanisterIdRecord], CanisterStatusResult>,
177
185
  'change_canister' : ActorMethod<[ChangeCanisterRequest], undefined>,
186
+ 'clean_up_failed_register_extension' : ActorMethod<
187
+ [CleanUpFailedRegisterExtensionRequest],
188
+ CleanUpFailedRegisterExtensionResponse
189
+ >,
178
190
  'get_build_metadata' : ActorMethod<[], string>,
179
191
  'get_sns_canisters_summary' : ActorMethod<
180
192
  [GetSnsCanistersSummaryRequest],
@@ -11,6 +11,10 @@ export const CanisterStatusResult: IDL.RecordClass;
11
11
  export const CanisterInstallMode: IDL.VariantClass;
12
12
  export const ChunkedCanisterWasm: IDL.RecordClass;
13
13
  export const ChangeCanisterRequest: IDL.RecordClass;
14
+ export const CleanUpFailedRegisterExtensionRequest: IDL.RecordClass;
15
+ export const CanisterCallError: IDL.RecordClass;
16
+ export const CleanUpFailedRegisterExtensionResult: IDL.VariantClass;
17
+ export const CleanUpFailedRegisterExtensionResponse: IDL.RecordClass;
14
18
  export const GetSnsCanistersSummaryRequest: IDL.RecordClass;
15
19
  export const DefiniteCanisterSettingsArgs: IDL.RecordClass;
16
20
  export const CanisterStatusResultV2: IDL.RecordClass;
@@ -23,7 +27,6 @@ export const ManageDappCanisterSettingsResponse: IDL.RecordClass;
23
27
  export const RegisterDappCanisterRequest: IDL.RecordClass;
24
28
  export const RegisterDappCanistersRequest: IDL.RecordClass;
25
29
  export const RegisterExtensionRequest: IDL.RecordClass;
26
- export const CanisterCallError: IDL.RecordClass;
27
30
  export const RegisterExtensionResult: IDL.VariantClass;
28
31
  export const RegisterExtensionResponse: IDL.RecordClass;
29
32
  export const SetDappControllersRequest: IDL.RecordClass;
@@ -32,6 +35,7 @@ export const SetDappControllersResponse: IDL.RecordClass;
32
35
  export const idlService: IDL.ServiceClass<string, {
33
36
  canister_status: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
34
37
  change_canister: IDL.FuncClass<[IDL.RecordClass], []>;
38
+ clean_up_failed_register_extension: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
35
39
  get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
36
40
  get_sns_canisters_summary: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
37
41
  get_timers: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
@@ -1,2 +1,2 @@
1
- import{f as e}from"../../chunk-HANEPD6T.js";import"../../chunk-4C666HHU.js";export{e as IcManagementIdl};
1
+ import{f as e}from"../../chunk-CAQXR2VB.js";import"../../chunk-4C666HHU.js";export{e as IcManagementIdl};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{b as d}from"../../../chunk-BXZ5PSUW.js";import{a}from"../../../chunk-5NZMOUKF.js";import{g as t}from"../../../chunk-EMQQE34V.js";import{a as p}from"../../../chunk-TZVF5LQY.js";import"../../../chunk-7B6WU32N.js";import{g as i,h as e}from"../../../chunk-HANEPD6T.js";import"../../../chunk-4C666HHU.js";var s=class extends a{constructor(r={}){p.parse(r),super({canisterId:r?.canisterId??d})}transfer=async({args:r})=>await t({canisterId:this.canisterId,method:"transfer",args:[[e.TransferArgs,r]],result:e.TransferResult})};export{i as IcpIndexIdl,s as IcpLedgerCanister,e as IcpLedgerIdl};
1
+ import{b as d}from"../../../chunk-BXZ5PSUW.js";import{a}from"../../../chunk-5NZMOUKF.js";import{g as t}from"../../../chunk-EMQQE34V.js";import{a as p}from"../../../chunk-TZVF5LQY.js";import"../../../chunk-7B6WU32N.js";import{g as i,h as e}from"../../../chunk-CAQXR2VB.js";import"../../../chunk-4C666HHU.js";var s=class extends a{constructor(r={}){p.parse(r),super({canisterId:r?.canisterId??d})}transfer=async({args:r})=>await t({canisterId:this.canisterId,method:"transfer",args:[[e.TransferArgs,r]],result:e.TransferResult})};export{i as IcpIndexIdl,s as IcpLedgerCanister,e as IcpLedgerIdl};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export { IcrcIndexNgIdl, IcrcLedgerIdl, type IcrcIndexNgDid, type IcrcLedgerDid } from '../../declarations';
1
+ export { IcrcIndexIdl, IcrcLedgerIdl, type IcrcIndexDid, type IcrcLedgerDid } from '../../declarations';
2
2
  export { IcrcLedgerCanister } from './ledger.canister';
3
3
  export * from './schemas';
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-5NZMOUKF.js";import{g as c}from"../../../chunk-EMQQE34V.js";import{a as t}from"../../../chunk-TZVF5LQY.js";import"../../../chunk-7B6WU32N.js";import{i as n,j as e}from"../../../chunk-HANEPD6T.js";import"../../../chunk-4C666HHU.js";var i=t.required();var s=class extends a{constructor(r){i.parse(r),super({canisterId:r.canisterId})}icrc1BalanceOf=async({account:r})=>await c({canisterId:this.canisterId,method:"icrc1_balance_of",args:[[e.Account,r]],result:e.Tokens});icrc1Transfer=async({args:r})=>await c({canisterId:this.canisterId,method:"icrc1_transfer",args:[[e.TransferArg,r]],result:e.TransferResult});icrc2TransferFrom=async({args:r})=>await c({canisterId:this.canisterId,method:"icrc2_transfer_from",args:[[e.TransferFromArgs,r]],result:e.TransferFromResult})};export{i as IcrcCanisterOptionsSchema,n as IcrcIndexNgIdl,s as IcrcLedgerCanister,e as IcrcLedgerIdl};
1
+ import{a}from"../../../chunk-5NZMOUKF.js";import{g as c}from"../../../chunk-EMQQE34V.js";import{a as t}from"../../../chunk-TZVF5LQY.js";import"../../../chunk-7B6WU32N.js";import{i as n,j as e}from"../../../chunk-CAQXR2VB.js";import"../../../chunk-4C666HHU.js";var i=t.required();var s=class extends a{constructor(r){i.parse(r),super({canisterId:r.canisterId})}icrc1BalanceOf=async({account:r})=>await c({canisterId:this.canisterId,method:"icrc1_balance_of",args:[[e.Account,r]],result:e.Tokens});icrc1Transfer=async({args:r})=>await c({canisterId:this.canisterId,method:"icrc1_transfer",args:[[e.TransferArg,r]],result:e.TransferResult});icrc2TransferFrom=async({args:r})=>await c({canisterId:this.canisterId,method:"icrc2_transfer_from",args:[[e.TransferFromArgs,r]],result:e.TransferFromResult})};export{i as IcrcCanisterOptionsSchema,n as IcrcIndexIdl,s as IcrcLedgerCanister,e as IcrcLedgerIdl};
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import type * as z from 'zod';
3
3
  * @see CanisterOptions
4
4
  */
5
5
  export declare const IcrcCanisterOptionsSchema: z.ZodObject<{
6
- canisterId: z.ZodNonOptional<z.ZodOptional<z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>>>;
6
+ canisterId: z.ZodNonOptional<z.ZodOptional<z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>>>;
7
7
  }, z.core.$strict>;
8
8
  /**
9
9
  * The options to initialize an Icrc canister.
@@ -1,2 +1,2 @@
1
- import{k as n,l as s}from"../../chunk-HANEPD6T.js";import"../../chunk-4C666HHU.js";export{n as NnsGovernanceIdl,s as NnsSnsWasmIdl};
1
+ import{k as n,l as s}from"../../chunk-CAQXR2VB.js";import"../../chunk-4C666HHU.js";export{n as NnsGovernanceIdl,s as NnsSnsWasmIdl};
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import * as z from 'zod';
3
3
  * @see CanisterOptions
4
4
  */
5
5
  export declare const CanisterOptionsSchema: z.ZodObject<{
6
- canisterId: z.ZodOptional<z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>>;
6
+ canisterId: z.ZodOptional<z.ZodCustom<import("@icp-sdk/core/principal").Principal, import("@icp-sdk/core/principal").Principal>>;
7
7
  }, z.core.$strict>;
8
8
  /**
9
9
  * The options to initialize a canister.
@@ -1,2 +1,2 @@
1
- import{l as n,m as s,n as S,o as e}from"../../chunk-HANEPD6T.js";import"../../chunk-4C666HHU.js";export{n as NnsSnsWasmIdl,s as SnsGovernanceIdl,S as SnsRootIdl,e as SnsSwapIdl};
1
+ import{l as n,m as s,n as S,o as e}from"../../chunk-CAQXR2VB.js";import"../../chunk-4C666HHU.js";export{n as NnsSnsWasmIdl,s as SnsGovernanceIdl,S as SnsRootIdl,e as SnsSwapIdl};
2
2
  //# sourceMappingURL=index.js.map