@dfinity/sns 5.0.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -77,7 +77,7 @@ export interface CanisterStatusResultV2 {
77
77
  settings: DefiniteCanisterSettingsArgs;
78
78
  query_stats: [] | [QueryStats];
79
79
  idle_cycles_burned_per_day: bigint;
80
- module_hash: [] | [Uint8Array | number[]];
80
+ module_hash: [] | [Uint8Array];
81
81
  }
82
82
  export type CanisterStatusType =
83
83
  | { stopped: null }
@@ -87,8 +87,8 @@ export interface ChangeAutoStakeMaturity {
87
87
  requested_setting_for_auto_stake_maturity: boolean;
88
88
  }
89
89
  export interface ChunkedCanisterWasm {
90
- wasm_module_hash: Uint8Array | number[];
91
- chunk_hashes_list: Array<Uint8Array | number[]>;
90
+ wasm_module_hash: Uint8Array;
91
+ chunk_hashes_list: Array<Uint8Array>;
92
92
  store_canister_id: [] | [Principal];
93
93
  }
94
94
  export interface ClaimOrRefresh {
@@ -205,7 +205,7 @@ export interface ExecuteExtensionOperation {
205
205
  }
206
206
  export interface ExecuteGenericNervousSystemFunction {
207
207
  function_id: bigint;
208
- payload: Uint8Array | number[];
208
+ payload: Uint8Array;
209
209
  }
210
210
  export interface ExtensionInit {
211
211
  value: [] | [PreciseValue];
@@ -368,7 +368,7 @@ export interface IncreaseDissolveDelay {
368
368
  additional_dissolve_delay_seconds: number;
369
369
  }
370
370
  export interface ListNervousSystemFunctionsResponse {
371
- reserved_ids: BigUint64Array | bigint[];
371
+ reserved_ids: BigUint64Array;
372
372
  functions: Array<NervousSystemFunction>;
373
373
  }
374
374
  export interface ListNeurons {
@@ -380,12 +380,12 @@ export interface ListNeuronsResponse {
380
380
  neurons: Array<Neuron>;
381
381
  }
382
382
  export interface ListProposals {
383
- include_reward_status: Int32Array | number[];
383
+ include_reward_status: Int32Array;
384
384
  before_proposal: [] | [ProposalId];
385
385
  limit: number;
386
- exclude_type: BigUint64Array | bigint[];
386
+ exclude_type: BigUint64Array;
387
387
  include_topics: [] | [Array<TopicSelector>];
388
- include_status: Int32Array | number[];
388
+ include_status: Int32Array;
389
389
  }
390
390
  export interface ListProposalsResponse {
391
391
  include_ballots_by_caller: [] | [boolean];
@@ -414,7 +414,7 @@ export interface ManageLedgerParameters {
414
414
  token_name: [] | [string];
415
415
  }
416
416
  export interface ManageNeuron {
417
- subaccount: Uint8Array | number[];
417
+ subaccount: Uint8Array;
418
418
  command: [] | [Command];
419
419
  }
420
420
  export interface ManageNeuronResponse {
@@ -524,7 +524,7 @@ export interface Neuron {
524
524
  neuron_fees_e8s: bigint;
525
525
  }
526
526
  export interface NeuronId {
527
- id: Uint8Array | number[];
527
+ id: Uint8Array;
528
528
  }
529
529
  export interface NeuronIds {
530
530
  neuron_ids: Array<NeuronId>;
@@ -535,10 +535,10 @@ export interface NeuronInFlightCommand {
535
535
  }
536
536
  export interface NeuronPermission {
537
537
  principal: [] | [Principal];
538
- permission_type: Int32Array | number[];
538
+ permission_type: Int32Array;
539
539
  }
540
540
  export interface NeuronPermissionList {
541
- permissions: Int32Array | number[];
541
+ permissions: Int32Array;
542
542
  }
543
543
  export interface NeuronRecipe {
544
544
  controller: [] | [Principal];
@@ -594,7 +594,7 @@ export type PreciseValue =
594
594
  | { Int: bigint }
595
595
  | { Map: Array<[string, PreciseValue]> }
596
596
  | { Nat: bigint }
597
- | { Blob: Uint8Array | number[] }
597
+ | { Blob: Uint8Array }
598
598
  | { Bool: boolean }
599
599
  | { Text: string }
600
600
  | { Array: Array<PreciseValue> };
@@ -684,12 +684,12 @@ export interface SetTopicsForCustomProposals {
684
684
  custom_function_id_to_topic: Array<[bigint, Topic]>;
685
685
  }
686
686
  export interface SnsVersion {
687
- archive_wasm_hash: [] | [Uint8Array | number[]];
688
- root_wasm_hash: [] | [Uint8Array | number[]];
689
- swap_wasm_hash: [] | [Uint8Array | number[]];
690
- ledger_wasm_hash: [] | [Uint8Array | number[]];
691
- governance_wasm_hash: [] | [Uint8Array | number[]];
692
- index_wasm_hash: [] | [Uint8Array | number[]];
687
+ archive_wasm_hash: [] | [Uint8Array];
688
+ root_wasm_hash: [] | [Uint8Array];
689
+ swap_wasm_hash: [] | [Uint8Array];
690
+ ledger_wasm_hash: [] | [Uint8Array];
691
+ governance_wasm_hash: [] | [Uint8Array];
692
+ index_wasm_hash: [] | [Uint8Array];
693
693
  }
694
694
  export interface Split {
695
695
  memo: bigint;
@@ -706,7 +706,7 @@ export interface StakeMaturityResponse {
706
706
  staked_maturity_e8s: bigint;
707
707
  }
708
708
  export interface Subaccount {
709
- subaccount: Uint8Array | number[];
709
+ subaccount: Uint8Array;
710
710
  }
711
711
  export interface SwapNeuron {
712
712
  id: [] | [NeuronId];
@@ -829,11 +829,11 @@ export interface UpgradeOutcome {
829
829
  human_readable: [] | [string];
830
830
  }
831
831
  export interface UpgradeSnsControlledCanister {
832
- new_canister_wasm: Uint8Array | number[];
832
+ new_canister_wasm: Uint8Array;
833
833
  mode: [] | [number];
834
834
  canister_id: [] | [Principal];
835
835
  chunked_canister_wasm: [] | [ChunkedCanisterWasm];
836
- canister_upgrade_arg: [] | [Uint8Array | number[]];
836
+ canister_upgrade_arg: [] | [Uint8Array];
837
837
  }
838
838
  export interface UpgradeStarted {
839
839
  current_version: [] | [Version];
@@ -864,12 +864,12 @@ export interface ValuationFactors {
864
864
  tokens: [] | [Tokens];
865
865
  }
866
866
  export interface Version {
867
- archive_wasm_hash: Uint8Array | number[];
868
- root_wasm_hash: Uint8Array | number[];
869
- swap_wasm_hash: Uint8Array | number[];
870
- ledger_wasm_hash: Uint8Array | number[];
871
- governance_wasm_hash: Uint8Array | number[];
872
- index_wasm_hash: Uint8Array | number[];
867
+ archive_wasm_hash: Uint8Array;
868
+ root_wasm_hash: Uint8Array;
869
+ swap_wasm_hash: Uint8Array;
870
+ ledger_wasm_hash: Uint8Array;
871
+ governance_wasm_hash: Uint8Array;
872
+ index_wasm_hash: Uint8Array;
873
873
  }
874
874
  export interface Versions {
875
875
  versions: Array<Version>;
@@ -890,9 +890,7 @@ export interface VotingRewardsParameters {
890
890
  export interface WaitForQuietState {
891
891
  current_deadline_timestamp_seconds: bigint;
892
892
  }
893
- export type Wasm =
894
- | { Chunked: ChunkedCanisterWasm }
895
- | { Bytes: Uint8Array | number[] };
893
+ export type Wasm = { Chunked: ChunkedCanisterWasm } | { Bytes: Uint8Array };
896
894
  export interface _SERVICE {
897
895
  claim_swap_neurons: ActorMethod<
898
896
  [ClaimSwapNeuronsRequest],
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 199fb79 (2025-10-29 tags: release-2025-10-30_03-22-base) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/sns/governance/canister/governance.did' by import-candid
2
2
 
3
3
  type Account = record {
4
4
  owner : opt principal;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -91,7 +91,7 @@ export interface CanisterStatusResultV2 {
91
91
  settings: DefiniteCanisterSettingsArgs;
92
92
  query_stats: [] | [QueryStats];
93
93
  idle_cycles_burned_per_day: bigint;
94
- module_hash: [] | [Uint8Array | number[]];
94
+ module_hash: [] | [Uint8Array];
95
95
  }
96
96
  export type CanisterStatusType =
97
97
  | { stopped: null }
@@ -101,8 +101,8 @@ export interface ChangeAutoStakeMaturity {
101
101
  requested_setting_for_auto_stake_maturity: boolean;
102
102
  }
103
103
  export interface ChunkedCanisterWasm {
104
- wasm_module_hash: Uint8Array | number[];
105
- chunk_hashes_list: Array<Uint8Array | number[]>;
104
+ wasm_module_hash: Uint8Array;
105
+ chunk_hashes_list: Array<Uint8Array>;
106
106
  store_canister_id: [] | [Principal];
107
107
  }
108
108
  export interface ClaimOrRefresh {
@@ -219,7 +219,7 @@ export interface ExecuteExtensionOperation {
219
219
  }
220
220
  export interface ExecuteGenericNervousSystemFunction {
221
221
  function_id: bigint;
222
- payload: Uint8Array | number[];
222
+ payload: Uint8Array;
223
223
  }
224
224
  export interface ExtensionInit {
225
225
  value: [] | [PreciseValue];
@@ -382,7 +382,7 @@ export interface IncreaseDissolveDelay {
382
382
  additional_dissolve_delay_seconds: number;
383
383
  }
384
384
  export interface ListNervousSystemFunctionsResponse {
385
- reserved_ids: BigUint64Array | bigint[];
385
+ reserved_ids: BigUint64Array;
386
386
  functions: Array<NervousSystemFunction>;
387
387
  }
388
388
  export interface ListNeurons {
@@ -394,12 +394,12 @@ export interface ListNeuronsResponse {
394
394
  neurons: Array<Neuron>;
395
395
  }
396
396
  export interface ListProposals {
397
- include_reward_status: Int32Array | number[];
397
+ include_reward_status: Int32Array;
398
398
  before_proposal: [] | [ProposalId];
399
399
  limit: number;
400
- exclude_type: BigUint64Array | bigint[];
400
+ exclude_type: BigUint64Array;
401
401
  include_topics: [] | [Array<TopicSelector>];
402
- include_status: Int32Array | number[];
402
+ include_status: Int32Array;
403
403
  }
404
404
  export interface ListProposalsResponse {
405
405
  include_ballots_by_caller: [] | [boolean];
@@ -428,7 +428,7 @@ export interface ManageLedgerParameters {
428
428
  token_name: [] | [string];
429
429
  }
430
430
  export interface ManageNeuron {
431
- subaccount: Uint8Array | number[];
431
+ subaccount: Uint8Array;
432
432
  command: [] | [Command];
433
433
  }
434
434
  export interface ManageNeuronResponse {
@@ -542,7 +542,7 @@ export interface Neuron {
542
542
  neuron_fees_e8s: bigint;
543
543
  }
544
544
  export interface NeuronId {
545
- id: Uint8Array | number[];
545
+ id: Uint8Array;
546
546
  }
547
547
  export interface NeuronIds {
548
548
  neuron_ids: Array<NeuronId>;
@@ -553,10 +553,10 @@ export interface NeuronInFlightCommand {
553
553
  }
554
554
  export interface NeuronPermission {
555
555
  principal: [] | [Principal];
556
- permission_type: Int32Array | number[];
556
+ permission_type: Int32Array;
557
557
  }
558
558
  export interface NeuronPermissionList {
559
- permissions: Int32Array | number[];
559
+ permissions: Int32Array;
560
560
  }
561
561
  export interface NeuronRecipe {
562
562
  controller: [] | [Principal];
@@ -612,7 +612,7 @@ export type PreciseValue =
612
612
  | { Int: bigint }
613
613
  | { Map: Array<[string, PreciseValue]> }
614
614
  | { Nat: bigint }
615
- | { Blob: Uint8Array | number[] }
615
+ | { Blob: Uint8Array }
616
616
  | { Bool: boolean }
617
617
  | { Text: string }
618
618
  | { Array: Array<PreciseValue> };
@@ -702,12 +702,12 @@ export interface SetTopicsForCustomProposals {
702
702
  custom_function_id_to_topic: Array<[bigint, Topic]>;
703
703
  }
704
704
  export interface SnsVersion {
705
- archive_wasm_hash: [] | [Uint8Array | number[]];
706
- root_wasm_hash: [] | [Uint8Array | number[]];
707
- swap_wasm_hash: [] | [Uint8Array | number[]];
708
- ledger_wasm_hash: [] | [Uint8Array | number[]];
709
- governance_wasm_hash: [] | [Uint8Array | number[]];
710
- index_wasm_hash: [] | [Uint8Array | number[]];
705
+ archive_wasm_hash: [] | [Uint8Array];
706
+ root_wasm_hash: [] | [Uint8Array];
707
+ swap_wasm_hash: [] | [Uint8Array];
708
+ ledger_wasm_hash: [] | [Uint8Array];
709
+ governance_wasm_hash: [] | [Uint8Array];
710
+ index_wasm_hash: [] | [Uint8Array];
711
711
  }
712
712
  export interface Split {
713
713
  memo: bigint;
@@ -724,7 +724,7 @@ export interface StakeMaturityResponse {
724
724
  staked_maturity_e8s: bigint;
725
725
  }
726
726
  export interface Subaccount {
727
- subaccount: Uint8Array | number[];
727
+ subaccount: Uint8Array;
728
728
  }
729
729
  export interface SwapNeuron {
730
730
  id: [] | [NeuronId];
@@ -847,11 +847,11 @@ export interface UpgradeOutcome {
847
847
  human_readable: [] | [string];
848
848
  }
849
849
  export interface UpgradeSnsControlledCanister {
850
- new_canister_wasm: Uint8Array | number[];
850
+ new_canister_wasm: Uint8Array;
851
851
  mode: [] | [number];
852
852
  canister_id: [] | [Principal];
853
853
  chunked_canister_wasm: [] | [ChunkedCanisterWasm];
854
- canister_upgrade_arg: [] | [Uint8Array | number[]];
854
+ canister_upgrade_arg: [] | [Uint8Array];
855
855
  }
856
856
  export interface UpgradeStarted {
857
857
  current_version: [] | [Version];
@@ -882,12 +882,12 @@ export interface ValuationFactors {
882
882
  tokens: [] | [Tokens];
883
883
  }
884
884
  export interface Version {
885
- archive_wasm_hash: Uint8Array | number[];
886
- root_wasm_hash: Uint8Array | number[];
887
- swap_wasm_hash: Uint8Array | number[];
888
- ledger_wasm_hash: Uint8Array | number[];
889
- governance_wasm_hash: Uint8Array | number[];
890
- index_wasm_hash: Uint8Array | number[];
885
+ archive_wasm_hash: Uint8Array;
886
+ root_wasm_hash: Uint8Array;
887
+ swap_wasm_hash: Uint8Array;
888
+ ledger_wasm_hash: Uint8Array;
889
+ governance_wasm_hash: Uint8Array;
890
+ index_wasm_hash: Uint8Array;
891
891
  }
892
892
  export interface Versions {
893
893
  versions: Array<Version>;
@@ -908,9 +908,7 @@ export interface VotingRewardsParameters {
908
908
  export interface WaitForQuietState {
909
909
  current_deadline_timestamp_seconds: bigint;
910
910
  }
911
- export type Wasm =
912
- | { Chunked: ChunkedCanisterWasm }
913
- | { Bytes: Uint8Array | number[] };
911
+ export type Wasm = { Chunked: ChunkedCanisterWasm } | { Bytes: Uint8Array };
914
912
  export interface _SERVICE {
915
913
  /**
916
914
  * The following are methods for feature = "test"
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 199fb79 (2025-10-29 tags: release-2025-10-30_03-22-base) 'packages/sns/src/candid/sns_governance_test.did.tmp' by import-candid
1
+ // Generated from IC repo commit 4e64157 (2025-11-17) 'packages/sns/src/candid/sns_governance_test.did.tmp' by import-candid
2
2
 
3
3
  type Account = record {
4
4
  owner : opt principal;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -29,7 +29,7 @@ export interface CanisterStatusResult {
29
29
  settings: DefiniteCanisterSettings;
30
30
  query_stats: [] | [QueryStats];
31
31
  idle_cycles_burned_per_day: [] | [bigint];
32
- module_hash: [] | [Uint8Array | number[]];
32
+ module_hash: [] | [Uint8Array];
33
33
  reserved_cycles: [] | [bigint];
34
34
  }
35
35
  export interface CanisterStatusResultV2 {
@@ -40,7 +40,7 @@ export interface CanisterStatusResultV2 {
40
40
  settings: DefiniteCanisterSettingsArgs;
41
41
  query_stats: [] | [QueryStats];
42
42
  idle_cycles_burned_per_day: bigint;
43
- module_hash: [] | [Uint8Array | number[]];
43
+ module_hash: [] | [Uint8Array];
44
44
  }
45
45
  export type CanisterStatusType =
46
46
  | { stopped: null }
@@ -51,16 +51,16 @@ export interface CanisterSummary {
51
51
  canister_id: [] | [Principal];
52
52
  }
53
53
  export interface ChangeCanisterRequest {
54
- arg: Uint8Array | number[];
55
- wasm_module: Uint8Array | number[];
54
+ arg: Uint8Array;
55
+ wasm_module: Uint8Array;
56
56
  stop_before_installing: boolean;
57
57
  mode: CanisterInstallMode;
58
58
  canister_id: Principal;
59
59
  chunked_canister_wasm: [] | [ChunkedCanisterWasm];
60
60
  }
61
61
  export interface ChunkedCanisterWasm {
62
- wasm_module_hash: Uint8Array | number[];
63
- chunk_hashes_list: Array<Uint8Array | number[]>;
62
+ wasm_module_hash: Uint8Array;
63
+ chunk_hashes_list: Array<Uint8Array>;
64
64
  store_canister_id: Principal;
65
65
  }
66
66
  export interface DefiniteCanisterSettings {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 199fb79 (2025-10-29 tags: release-2025-10-30_03-22-base) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/sns/root/canister/root.did' by import-candid
2
2
 
3
3
  type CanisterCallError = record {
4
4
  code : opt int32;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -26,7 +26,7 @@ export interface CanisterStatusResultV2 {
26
26
  settings: DefiniteCanisterSettingsArgs;
27
27
  query_stats: [] | [QueryStats];
28
28
  idle_cycles_burned_per_day: bigint;
29
- module_hash: [] | [Uint8Array | number[]];
29
+ module_hash: [] | [Uint8Array];
30
30
  }
31
31
  export type CanisterStatusType =
32
32
  | { stopped: null }
@@ -162,7 +162,7 @@ export interface GovernanceError {
162
162
  }
163
163
  export interface Icrc1Account {
164
164
  owner: [] | [Principal];
165
- subaccount: [] | [Uint8Array | number[]];
165
+ subaccount: [] | [Uint8Array];
166
166
  }
167
167
  export interface IdealMatchedParticipationFunction {
168
168
  serialized_representation: [] | [string];
@@ -253,7 +253,7 @@ export interface NeuronBasketConstructionParameters {
253
253
  count: bigint;
254
254
  }
255
255
  export interface NeuronId {
256
- id: Uint8Array | number[];
256
+ id: Uint8Array;
257
257
  }
258
258
  export interface NeuronsFundParticipationConstraints {
259
259
  coefficient_intervals: Array<LinearScalingCoefficient>;
@@ -264,7 +264,7 @@ export interface NeuronsFundParticipationConstraints {
264
264
  | [IdealMatchedParticipationFunction];
265
265
  }
266
266
  export interface NewSaleTicketRequest {
267
- subaccount: [] | [Uint8Array | number[]];
267
+ subaccount: [] | [Uint8Array];
268
268
  amount_icp_e8s: bigint;
269
269
  }
270
270
  export interface NewSaleTicketResponse {
@@ -363,7 +363,7 @@ export interface Swap {
363
363
  purge_old_tickets_last_completion_timestamp_nanoseconds: [] | [bigint];
364
364
  direct_participation_icp_e8s: [] | [bigint];
365
365
  lifecycle: number;
366
- purge_old_tickets_next_principal: [] | [Uint8Array | number[]];
366
+ purge_old_tickets_next_principal: [] | [Uint8Array];
367
367
  decentralization_swap_termination_timestamp_seconds: [] | [bigint];
368
368
  buyers: Array<[string, BuyerState]>;
369
369
  params: [] | [Params];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 199fb79 (2025-10-29 tags: release-2025-10-30_03-22-base) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/sns/swap/canister/swap.did' by import-candid
2
2
 
3
3
  type BuyerState = record {
4
4
  icp : opt TransferableAmount;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export type { Account as SnsAccount, Action as SnsAction, Ballot as SnsBallot, DefaultFollowees as SnsDefaultFollowees, DisburseMaturityInProgress as SnsDisburseMaturityInProgress, Followee as SnsFollowee, FolloweesForTopic as SnsFolloweesForTopic, FunctionType as SnsFunctionType, GetMetadataResponse as SnsGetMetadataResponse, GetMetricsResponse as SnsGetMetricsResponse, ListNervousSystemFunctionsResponse as SnsListNervousSystemFunctionsResponse, ListProposalsResponse as SnsListProposalsResponse, ListTopicsResponse as SnsListTopicsResponse, ManageNeuron as SnsManageNeuron, ManageNeuronResponse as SnsManageNeuronResponse, NervousSystemFunction as SnsNervousSystemFunction, NervousSystemParameters as SnsNervousSystemParameters, Neuron as SnsNeuron, NeuronId as SnsNeuronId, NeuronPermission as SnsNeuronPermission, NeuronPermissionList as SnsNeuronPermissionList, Percentage as SnsPercentage, ProposalData as SnsProposalData, ProposalId as SnsProposalId, RewardEvent as SnsRewardEvent, Tally as SnsTally, Topic as SnsTopic, TopicInfo as SnsTopicInfo, VotingRewardsParameters as SnsVotingRewardsParameters, } from "./candid/sns_governance";
1
+ /**
2
+ * @module api/sns
3
+ */
4
+ export type { Account as SnsAccount, Action as SnsAction, Ballot as SnsBallot, DefaultFollowees as SnsDefaultFollowees, DisburseMaturityInProgress as SnsDisburseMaturityInProgress, Followee as SnsFollowee, FolloweesForTopic as SnsFolloweesForTopic, FunctionType as SnsFunctionType, GetMetadataResponse as SnsGetMetadataResponse, GetMetricsResponse as SnsGetMetricsResponse, ListNervousSystemFunctionsResponse as SnsListNervousSystemFunctionsResponse, ListProposalsResponse as SnsListProposalsResponse, ListTopicsResponse as SnsListTopicsResponse, ManageNeuron as SnsManageNeuron, ManageNeuronResponse as SnsManageNeuronResponse, NervousSystemFunction as SnsNervousSystemFunction, NervousSystemParameters as SnsNervousSystemParameters, Neuron as SnsNeuron, NeuronId as SnsNeuronId, NeuronPermission as SnsNeuronPermission, NeuronPermissionList as SnsNeuronPermissionList, Percentage as SnsPercentage, ProposalData as SnsProposalData, ProposalId as SnsProposalId, RewardEvent as SnsRewardEvent, Tally as SnsTally, Topic as SnsTopic, TopicInfo as SnsTopicInfo, VotingRewardsParameters as SnsVotingRewardsParameters, TransferSnsTreasuryFunds, } from "./candid/sns_governance";
2
5
  export type { CanisterStatusResultV2 as SnsCanisterStatus } from "./candid/sns_root";
3
6
  export type { CfParticipant, FinalizeSwapResponse as SnsFinalizeSwapResponse, GetAutoFinalizationStatusResponse as SnsGetAutoFinalizationStatusResponse, GetBuyerStateRequest as SnsGetBuyerStateRequest, GetBuyerStateResponse as SnsGetBuyerStateResponse, GetDerivedStateResponse as SnsGetDerivedStateResponse, GetInitResponse as SnsGetInitResponse, GetLifecycleResponse as SnsGetLifecycleResponse, GetSaleParametersResponse as SnsGetSaleParametersResponse, InvalidUserAmount as SnsInvalidUserAmount, SnsNeuronRecipe, NeuronsFundParticipationConstraints as SnsNeuronsFundParticipationConstraints, Params as SnsParams, RefreshBuyerTokensResponse as SnsRefreshBuyerTokensResponse, Swap as SnsSwap, BuyerState as SnsSwapBuyerState, DerivedState as SnsSwapDerivedState, Init as SnsSwapInit, Ticket as SnsSwapTicket, TransferableAmount as SnsTransferableAmount, } from "./candid/sns_swap";
4
7
  export { fromCandidAction } from "./converters/governance.converters";