@dfinity/sns 4.1.2 → 5.0.0-next-2025-10-20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/dist/candid/sns_governance.certified.idl.d.ts +1 -1
  3. package/dist/candid/sns_governance.certified.idl.js +1003 -1005
  4. package/dist/candid/sns_governance.d.ts +11 -3
  5. package/dist/candid/sns_governance.idl.d.ts +1 -1
  6. package/dist/candid/sns_governance.idl.js +1011 -1021
  7. package/dist/candid/sns_governance_test.certified.idl.d.ts +1 -1
  8. package/dist/candid/sns_governance_test.certified.idl.js +1021 -1023
  9. package/dist/candid/sns_governance_test.d.ts +11 -3
  10. package/dist/candid/sns_governance_test.idl.d.ts +1 -1
  11. package/dist/candid/sns_governance_test.idl.js +1029 -1039
  12. package/dist/candid/sns_root.certified.idl.d.ts +1 -1
  13. package/dist/candid/sns_root.certified.idl.js +183 -177
  14. package/dist/candid/sns_root.d.ts +11 -3
  15. package/dist/candid/sns_root.idl.d.ts +1 -1
  16. package/dist/candid/sns_root.idl.js +183 -177
  17. package/dist/candid/sns_swap.certified.idl.d.ts +1 -1
  18. package/dist/candid/sns_swap.certified.idl.js +359 -355
  19. package/dist/candid/sns_swap.d.ts +11 -3
  20. package/dist/candid/sns_swap.idl.d.ts +1 -1
  21. package/dist/candid/sns_swap.idl.js +367 -363
  22. package/dist/{types/converters → converters}/governance.converters.d.ts +1 -1
  23. package/dist/{types/converters → converters}/swap.converters.d.ts +1 -1
  24. package/dist/{types/errors → errors}/swap.errors.d.ts +1 -1
  25. package/dist/{types/governance.canister.d.ts → governance.canister.d.ts} +1 -1
  26. package/dist/{types/governance_test.canister.d.ts → governance_test.canister.d.ts} +1 -1
  27. package/dist/{types/index.d.ts → index.d.ts} +3 -3
  28. package/dist/index.js +7 -1
  29. package/dist/index.js.map +7 -0
  30. package/dist/index.mjs +9 -0
  31. package/dist/index.mjs.map +7 -0
  32. package/dist/{types/root.canister.d.ts → root.canister.d.ts} +1 -1
  33. package/dist/{types/sns.d.ts → sns.d.ts} +2 -2
  34. package/dist/{types/sns.wrapper.d.ts → sns.wrapper.d.ts} +3 -3
  35. package/dist/{types/swap.canister.d.ts → swap.canister.d.ts} +1 -1
  36. package/dist/types/{types/actions.d.ts → actions.d.ts} +2 -2
  37. package/dist/types/{types/canister.options.d.ts → canister.options.d.ts} +1 -1
  38. package/dist/types/{types/governance.params.d.ts → governance.params.d.ts} +2 -2
  39. package/dist/types/{types/governance_test.params.d.ts → governance_test.params.d.ts} +1 -1
  40. package/dist/{types/utils → utils}/governance.utils.d.ts +1 -1
  41. package/package.json +23 -12
  42. package/dist/cjs/index.cjs.js +0 -7
  43. package/dist/cjs/index.cjs.js.map +0 -7
  44. package/dist/esm/chunk-4E6G4JED.js +0 -2
  45. package/dist/esm/chunk-4E6G4JED.js.map +0 -7
  46. package/dist/esm/chunk-4INNMFYU.js +0 -2
  47. package/dist/esm/chunk-4INNMFYU.js.map +0 -7
  48. package/dist/esm/chunk-4OISOQSJ.js +0 -2
  49. package/dist/esm/chunk-4OISOQSJ.js.map +0 -7
  50. package/dist/esm/chunk-BJBCLIED.js +0 -2
  51. package/dist/esm/chunk-BJBCLIED.js.map +0 -7
  52. package/dist/esm/chunk-EYIWJ4DL.js +0 -2
  53. package/dist/esm/chunk-EYIWJ4DL.js.map +0 -7
  54. package/dist/esm/chunk-Y6XGADSI.js +0 -7
  55. package/dist/esm/chunk-Y6XGADSI.js.map +0 -7
  56. package/dist/esm/governance.canister.js +0 -2
  57. package/dist/esm/governance.canister.js.map +0 -7
  58. package/dist/esm/index.js +0 -2
  59. package/dist/esm/index.js.map +0 -7
  60. package/dist/esm/root.canister.js +0 -2
  61. package/dist/esm/root.canister.js.map +0 -7
  62. package/dist/esm/sns.js +0 -2
  63. package/dist/esm/sns.js.map +0 -7
  64. package/dist/esm/sns.wrapper.js +0 -2
  65. package/dist/esm/sns.wrapper.js.map +0 -7
  66. package/dist/esm/swap.canister.js +0 -2
  67. package/dist/esm/swap.canister.js.map +0 -7
  68. package/dist/index.cjs.js +0 -1
  69. /package/dist/{types/constants → constants}/governance.constants.d.ts +0 -0
  70. /package/dist/{types/enums → enums}/governance.enums.d.ts +0 -0
  71. /package/dist/{types/enums → enums}/swap.enums.d.ts +0 -0
  72. /package/dist/{types/errors → errors}/common.errors.d.ts +0 -0
  73. /package/dist/{types/errors → errors}/governance.errors.d.ts +0 -0
  74. /package/dist/types/{types/common.d.ts → common.d.ts} +0 -0
  75. /package/dist/types/{types/swap.params.d.ts → swap.params.d.ts} +0 -0
  76. /package/dist/{types/utils → utils}/error.utils.d.ts +0 -0
@@ -1,245 +1,251 @@
1
- /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_root.did */
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
6
+ // You should NOT make any changes in this file as it will be overwritten.
7
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
+
2
9
  export const idlFactory = ({ IDL }) => {
3
10
  const Timers = IDL.Record({
4
- 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
5
- 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
6
- 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
11
+ last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
12
+ last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
13
+ requires_periodic_tasks: IDL.Opt(IDL.Bool),
7
14
  });
8
15
  const Extensions = IDL.Record({
9
- 'extension_canister_ids' : IDL.Vec(IDL.Principal),
16
+ extension_canister_ids: IDL.Vec(IDL.Principal),
10
17
  });
11
18
  const SnsRootCanister = IDL.Record({
12
- 'dapp_canister_ids' : IDL.Vec(IDL.Principal),
13
- 'timers' : IDL.Opt(Timers),
14
- 'testflight' : IDL.Bool,
15
- 'extensions' : IDL.Opt(Extensions),
16
- 'archive_canister_ids' : IDL.Vec(IDL.Principal),
17
- 'governance_canister_id' : IDL.Opt(IDL.Principal),
18
- 'index_canister_id' : IDL.Opt(IDL.Principal),
19
- 'swap_canister_id' : IDL.Opt(IDL.Principal),
20
- 'ledger_canister_id' : IDL.Opt(IDL.Principal),
21
- });
22
- const CanisterIdRecord = IDL.Record({ 'canister_id' : IDL.Principal });
19
+ dapp_canister_ids: IDL.Vec(IDL.Principal),
20
+ timers: IDL.Opt(Timers),
21
+ testflight: IDL.Bool,
22
+ extensions: IDL.Opt(Extensions),
23
+ archive_canister_ids: IDL.Vec(IDL.Principal),
24
+ governance_canister_id: IDL.Opt(IDL.Principal),
25
+ index_canister_id: IDL.Opt(IDL.Principal),
26
+ swap_canister_id: IDL.Opt(IDL.Principal),
27
+ ledger_canister_id: IDL.Opt(IDL.Principal),
28
+ });
29
+ const CanisterIdRecord = IDL.Record({ canister_id: IDL.Principal });
23
30
  const MemoryMetrics = IDL.Record({
24
- 'wasm_binary_size' : IDL.Opt(IDL.Nat),
25
- 'wasm_chunk_store_size' : IDL.Opt(IDL.Nat),
26
- 'canister_history_size' : IDL.Opt(IDL.Nat),
27
- 'stable_memory_size' : IDL.Opt(IDL.Nat),
28
- 'snapshots_size' : IDL.Opt(IDL.Nat),
29
- 'wasm_memory_size' : IDL.Opt(IDL.Nat),
30
- 'global_memory_size' : IDL.Opt(IDL.Nat),
31
- 'custom_sections_size' : IDL.Opt(IDL.Nat),
31
+ wasm_binary_size: IDL.Opt(IDL.Nat),
32
+ wasm_chunk_store_size: IDL.Opt(IDL.Nat),
33
+ canister_history_size: IDL.Opt(IDL.Nat),
34
+ stable_memory_size: IDL.Opt(IDL.Nat),
35
+ snapshots_size: IDL.Opt(IDL.Nat),
36
+ wasm_memory_size: IDL.Opt(IDL.Nat),
37
+ global_memory_size: IDL.Opt(IDL.Nat),
38
+ custom_sections_size: IDL.Opt(IDL.Nat),
32
39
  });
33
40
  const CanisterStatusType = IDL.Variant({
34
- 'stopped' : IDL.Null,
35
- 'stopping' : IDL.Null,
36
- 'running' : IDL.Null,
41
+ stopped: IDL.Null,
42
+ stopping: IDL.Null,
43
+ running: IDL.Null,
37
44
  });
38
45
  const LogVisibility = IDL.Variant({
39
- 'controllers' : IDL.Null,
40
- 'public' : IDL.Null,
41
- 'allowed_viewers' : IDL.Vec(IDL.Principal),
46
+ controllers: IDL.Null,
47
+ public: IDL.Null,
48
+ allowed_viewers: IDL.Vec(IDL.Principal),
42
49
  });
43
50
  const DefiniteCanisterSettings = IDL.Record({
44
- 'freezing_threshold' : IDL.Opt(IDL.Nat),
45
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
46
- 'controllers' : IDL.Vec(IDL.Principal),
47
- 'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
48
- 'log_visibility' : IDL.Opt(LogVisibility),
49
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
50
- 'memory_allocation' : IDL.Opt(IDL.Nat),
51
- 'compute_allocation' : IDL.Opt(IDL.Nat),
51
+ freezing_threshold: IDL.Opt(IDL.Nat),
52
+ wasm_memory_threshold: IDL.Opt(IDL.Nat),
53
+ controllers: IDL.Vec(IDL.Principal),
54
+ reserved_cycles_limit: IDL.Opt(IDL.Nat),
55
+ log_visibility: IDL.Opt(LogVisibility),
56
+ wasm_memory_limit: IDL.Opt(IDL.Nat),
57
+ memory_allocation: IDL.Opt(IDL.Nat),
58
+ compute_allocation: IDL.Opt(IDL.Nat),
52
59
  });
53
60
  const QueryStats = IDL.Record({
54
- 'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
55
- 'num_instructions_total' : IDL.Opt(IDL.Nat),
56
- 'num_calls_total' : IDL.Opt(IDL.Nat),
57
- 'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
61
+ response_payload_bytes_total: IDL.Opt(IDL.Nat),
62
+ num_instructions_total: IDL.Opt(IDL.Nat),
63
+ num_calls_total: IDL.Opt(IDL.Nat),
64
+ request_payload_bytes_total: IDL.Opt(IDL.Nat),
58
65
  });
59
66
  const CanisterStatusResult = IDL.Record({
60
- 'memory_metrics' : IDL.Opt(MemoryMetrics),
61
- 'status' : CanisterStatusType,
62
- 'memory_size' : IDL.Nat,
63
- 'cycles' : IDL.Nat,
64
- 'settings' : DefiniteCanisterSettings,
65
- 'query_stats' : IDL.Opt(QueryStats),
66
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat),
67
- 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
68
- 'reserved_cycles' : IDL.Opt(IDL.Nat),
67
+ memory_metrics: IDL.Opt(MemoryMetrics),
68
+ status: CanisterStatusType,
69
+ memory_size: IDL.Nat,
70
+ cycles: IDL.Nat,
71
+ settings: DefiniteCanisterSettings,
72
+ query_stats: IDL.Opt(QueryStats),
73
+ idle_cycles_burned_per_day: IDL.Opt(IDL.Nat),
74
+ module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
75
+ reserved_cycles: IDL.Opt(IDL.Nat),
69
76
  });
70
77
  const CanisterInstallMode = IDL.Variant({
71
- 'reinstall' : IDL.Null,
72
- 'upgrade' : IDL.Null,
73
- 'install' : IDL.Null,
78
+ reinstall: IDL.Null,
79
+ upgrade: IDL.Null,
80
+ install: IDL.Null,
74
81
  });
75
82
  const ChunkedCanisterWasm = IDL.Record({
76
- 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
77
- 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
78
- 'store_canister_id' : IDL.Principal,
83
+ wasm_module_hash: IDL.Vec(IDL.Nat8),
84
+ chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
85
+ store_canister_id: IDL.Principal,
79
86
  });
80
87
  const ChangeCanisterRequest = IDL.Record({
81
- 'arg' : IDL.Vec(IDL.Nat8),
82
- 'wasm_module' : IDL.Vec(IDL.Nat8),
83
- 'stop_before_installing' : IDL.Bool,
84
- 'mode' : CanisterInstallMode,
85
- 'canister_id' : IDL.Principal,
86
- 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
88
+ arg: IDL.Vec(IDL.Nat8),
89
+ wasm_module: IDL.Vec(IDL.Nat8),
90
+ stop_before_installing: IDL.Bool,
91
+ mode: CanisterInstallMode,
92
+ canister_id: IDL.Principal,
93
+ chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
87
94
  });
88
95
  const GetSnsCanistersSummaryRequest = IDL.Record({
89
- 'update_canister_list' : IDL.Opt(IDL.Bool),
96
+ update_canister_list: IDL.Opt(IDL.Bool),
90
97
  });
91
98
  const DefiniteCanisterSettingsArgs = IDL.Record({
92
- 'freezing_threshold' : IDL.Nat,
93
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
94
- 'controllers' : IDL.Vec(IDL.Principal),
95
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
96
- 'memory_allocation' : IDL.Nat,
97
- 'compute_allocation' : IDL.Nat,
99
+ freezing_threshold: IDL.Nat,
100
+ wasm_memory_threshold: IDL.Opt(IDL.Nat),
101
+ controllers: IDL.Vec(IDL.Principal),
102
+ wasm_memory_limit: IDL.Opt(IDL.Nat),
103
+ memory_allocation: IDL.Nat,
104
+ compute_allocation: IDL.Nat,
98
105
  });
99
106
  const CanisterStatusResultV2 = IDL.Record({
100
- 'memory_metrics' : IDL.Opt(MemoryMetrics),
101
- 'status' : CanisterStatusType,
102
- 'memory_size' : IDL.Nat,
103
- 'cycles' : IDL.Nat,
104
- 'settings' : DefiniteCanisterSettingsArgs,
105
- 'query_stats' : IDL.Opt(QueryStats),
106
- 'idle_cycles_burned_per_day' : IDL.Nat,
107
- 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
107
+ memory_metrics: IDL.Opt(MemoryMetrics),
108
+ status: CanisterStatusType,
109
+ memory_size: IDL.Nat,
110
+ cycles: IDL.Nat,
111
+ settings: DefiniteCanisterSettingsArgs,
112
+ query_stats: IDL.Opt(QueryStats),
113
+ idle_cycles_burned_per_day: IDL.Nat,
114
+ module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
108
115
  });
109
116
  const CanisterSummary = IDL.Record({
110
- 'status' : IDL.Opt(CanisterStatusResultV2),
111
- 'canister_id' : IDL.Opt(IDL.Principal),
117
+ status: IDL.Opt(CanisterStatusResultV2),
118
+ canister_id: IDL.Opt(IDL.Principal),
112
119
  });
113
120
  const GetSnsCanistersSummaryResponse = IDL.Record({
114
- 'root' : IDL.Opt(CanisterSummary),
115
- 'swap' : IDL.Opt(CanisterSummary),
116
- 'ledger' : IDL.Opt(CanisterSummary),
117
- 'index' : IDL.Opt(CanisterSummary),
118
- 'governance' : IDL.Opt(CanisterSummary),
119
- 'dapps' : IDL.Vec(CanisterSummary),
120
- 'archives' : IDL.Vec(CanisterSummary),
121
- });
122
- const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
121
+ root: IDL.Opt(CanisterSummary),
122
+ swap: IDL.Opt(CanisterSummary),
123
+ ledger: IDL.Opt(CanisterSummary),
124
+ index: IDL.Opt(CanisterSummary),
125
+ governance: IDL.Opt(CanisterSummary),
126
+ dapps: IDL.Vec(CanisterSummary),
127
+ archives: IDL.Vec(CanisterSummary),
128
+ });
129
+ const GetTimersResponse = IDL.Record({ timers: IDL.Opt(Timers) });
123
130
  const ListSnsCanistersResponse = IDL.Record({
124
- 'root' : IDL.Opt(IDL.Principal),
125
- 'swap' : IDL.Opt(IDL.Principal),
126
- 'extensions' : IDL.Opt(Extensions),
127
- 'ledger' : IDL.Opt(IDL.Principal),
128
- 'index' : IDL.Opt(IDL.Principal),
129
- 'governance' : IDL.Opt(IDL.Principal),
130
- 'dapps' : IDL.Vec(IDL.Principal),
131
- 'archives' : IDL.Vec(IDL.Principal),
131
+ root: IDL.Opt(IDL.Principal),
132
+ swap: IDL.Opt(IDL.Principal),
133
+ extensions: IDL.Opt(Extensions),
134
+ ledger: IDL.Opt(IDL.Principal),
135
+ index: IDL.Opt(IDL.Principal),
136
+ governance: IDL.Opt(IDL.Principal),
137
+ dapps: IDL.Vec(IDL.Principal),
138
+ archives: IDL.Vec(IDL.Principal),
132
139
  });
133
140
  const ManageDappCanisterSettingsRequest = IDL.Record({
134
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
135
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
136
- 'canister_ids' : IDL.Vec(IDL.Principal),
137
- 'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
138
- 'log_visibility' : IDL.Opt(IDL.Int32),
139
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
140
- 'memory_allocation' : IDL.Opt(IDL.Nat64),
141
- 'compute_allocation' : IDL.Opt(IDL.Nat64),
141
+ freezing_threshold: IDL.Opt(IDL.Nat64),
142
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
143
+ canister_ids: IDL.Vec(IDL.Principal),
144
+ reserved_cycles_limit: IDL.Opt(IDL.Nat64),
145
+ log_visibility: IDL.Opt(IDL.Int32),
146
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
147
+ memory_allocation: IDL.Opt(IDL.Nat64),
148
+ compute_allocation: IDL.Opt(IDL.Nat64),
142
149
  });
143
150
  const ManageDappCanisterSettingsResponse = IDL.Record({
144
- 'failure_reason' : IDL.Opt(IDL.Text),
151
+ failure_reason: IDL.Opt(IDL.Text),
145
152
  });
146
153
  const RegisterDappCanisterRequest = IDL.Record({
147
- 'canister_id' : IDL.Opt(IDL.Principal),
154
+ canister_id: IDL.Opt(IDL.Principal),
148
155
  });
149
156
  const RegisterDappCanistersRequest = IDL.Record({
150
- 'canister_ids' : IDL.Vec(IDL.Principal),
157
+ canister_ids: IDL.Vec(IDL.Principal),
151
158
  });
152
159
  const RegisterExtensionRequest = IDL.Record({
153
- 'canister_id' : IDL.Opt(IDL.Principal),
160
+ canister_id: IDL.Opt(IDL.Principal),
154
161
  });
155
162
  const CanisterCallError = IDL.Record({
156
- 'code' : IDL.Opt(IDL.Int32),
157
- 'description' : IDL.Text,
163
+ code: IDL.Opt(IDL.Int32),
164
+ description: IDL.Text,
158
165
  });
159
166
  const RegisterExtensionResult = IDL.Variant({
160
- 'Ok' : IDL.Record({}),
161
- 'Err' : CanisterCallError,
167
+ Ok: IDL.Record({}),
168
+ Err: CanisterCallError,
162
169
  });
163
170
  const RegisterExtensionResponse = IDL.Record({
164
- 'result' : IDL.Opt(RegisterExtensionResult),
171
+ result: IDL.Opt(RegisterExtensionResult),
165
172
  });
166
173
  const SetDappControllersRequest = IDL.Record({
167
- 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
168
- 'controller_principal_ids' : IDL.Vec(IDL.Principal),
174
+ canister_ids: IDL.Opt(RegisterDappCanistersRequest),
175
+ controller_principal_ids: IDL.Vec(IDL.Principal),
169
176
  });
170
177
  const FailedUpdate = IDL.Record({
171
- 'err' : IDL.Opt(CanisterCallError),
172
- 'dapp_canister_id' : IDL.Opt(IDL.Principal),
178
+ err: IDL.Opt(CanisterCallError),
179
+ dapp_canister_id: IDL.Opt(IDL.Principal),
173
180
  });
174
181
  const SetDappControllersResponse = IDL.Record({
175
- 'failed_updates' : IDL.Vec(FailedUpdate),
182
+ failed_updates: IDL.Vec(FailedUpdate),
176
183
  });
184
+
177
185
  return IDL.Service({
178
- 'canister_status' : IDL.Func(
179
- [CanisterIdRecord],
180
- [CanisterStatusResult],
181
- [],
182
- ),
183
- 'change_canister' : IDL.Func([ChangeCanisterRequest], [], []),
184
- 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),
185
- 'get_sns_canisters_summary' : IDL.Func(
186
- [GetSnsCanistersSummaryRequest],
187
- [GetSnsCanistersSummaryResponse],
188
- [],
189
- ),
190
- 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
191
- 'list_sns_canisters' : IDL.Func(
192
- [IDL.Record({})],
193
- [ListSnsCanistersResponse],
194
- ['query'],
195
- ),
196
- 'manage_dapp_canister_settings' : IDL.Func(
197
- [ManageDappCanisterSettingsRequest],
198
- [ManageDappCanisterSettingsResponse],
199
- [],
200
- ),
201
- 'register_dapp_canister' : IDL.Func(
202
- [RegisterDappCanisterRequest],
203
- [IDL.Record({})],
204
- [],
205
- ),
206
- 'register_dapp_canisters' : IDL.Func(
207
- [RegisterDappCanistersRequest],
208
- [IDL.Record({})],
209
- [],
210
- ),
211
- 'register_extension' : IDL.Func(
212
- [RegisterExtensionRequest],
213
- [RegisterExtensionResponse],
214
- [],
215
- ),
216
- 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
217
- 'set_dapp_controllers' : IDL.Func(
218
- [SetDappControllersRequest],
219
- [SetDappControllersResponse],
220
- [],
221
- ),
186
+ canister_status: IDL.Func([CanisterIdRecord], [CanisterStatusResult], []),
187
+ change_canister: IDL.Func([ChangeCanisterRequest], [], []),
188
+ get_build_metadata: IDL.Func([], [IDL.Text], ["query"]),
189
+ get_sns_canisters_summary: IDL.Func(
190
+ [GetSnsCanistersSummaryRequest],
191
+ [GetSnsCanistersSummaryResponse],
192
+ [],
193
+ ),
194
+ get_timers: IDL.Func([IDL.Record({})], [GetTimersResponse], ["query"]),
195
+ list_sns_canisters: IDL.Func(
196
+ [IDL.Record({})],
197
+ [ListSnsCanistersResponse],
198
+ ["query"],
199
+ ),
200
+ manage_dapp_canister_settings: IDL.Func(
201
+ [ManageDappCanisterSettingsRequest],
202
+ [ManageDappCanisterSettingsResponse],
203
+ [],
204
+ ),
205
+ register_dapp_canister: IDL.Func(
206
+ [RegisterDappCanisterRequest],
207
+ [IDL.Record({})],
208
+ [],
209
+ ),
210
+ register_dapp_canisters: IDL.Func(
211
+ [RegisterDappCanistersRequest],
212
+ [IDL.Record({})],
213
+ [],
214
+ ),
215
+ register_extension: IDL.Func(
216
+ [RegisterExtensionRequest],
217
+ [RegisterExtensionResponse],
218
+ [],
219
+ ),
220
+ reset_timers: IDL.Func([IDL.Record({})], [IDL.Record({})], []),
221
+ set_dapp_controllers: IDL.Func(
222
+ [SetDappControllersRequest],
223
+ [SetDappControllersResponse],
224
+ [],
225
+ ),
222
226
  });
223
227
  };
228
+
224
229
  export const init = ({ IDL }) => {
225
230
  const Timers = IDL.Record({
226
- 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
227
- 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
228
- 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
231
+ last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
232
+ last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
233
+ requires_periodic_tasks: IDL.Opt(IDL.Bool),
229
234
  });
230
235
  const Extensions = IDL.Record({
231
- 'extension_canister_ids' : IDL.Vec(IDL.Principal),
236
+ extension_canister_ids: IDL.Vec(IDL.Principal),
232
237
  });
233
238
  const SnsRootCanister = IDL.Record({
234
- 'dapp_canister_ids' : IDL.Vec(IDL.Principal),
235
- 'timers' : IDL.Opt(Timers),
236
- 'testflight' : IDL.Bool,
237
- 'extensions' : IDL.Opt(Extensions),
238
- 'archive_canister_ids' : IDL.Vec(IDL.Principal),
239
- 'governance_canister_id' : IDL.Opt(IDL.Principal),
240
- 'index_canister_id' : IDL.Opt(IDL.Principal),
241
- 'swap_canister_id' : IDL.Opt(IDL.Principal),
242
- 'ledger_canister_id' : IDL.Opt(IDL.Principal),
243
- });
239
+ dapp_canister_ids: IDL.Vec(IDL.Principal),
240
+ timers: IDL.Opt(Timers),
241
+ testflight: IDL.Bool,
242
+ extensions: IDL.Opt(Extensions),
243
+ archive_canister_ids: IDL.Vec(IDL.Principal),
244
+ governance_canister_id: IDL.Opt(IDL.Principal),
245
+ index_canister_id: IDL.Opt(IDL.Principal),
246
+ swap_canister_id: IDL.Opt(IDL.Principal),
247
+ ledger_canister_id: IDL.Opt(IDL.Principal),
248
+ });
249
+
244
250
  return [SnsRootCanister];
245
251
  };
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@dfinity/candid";
1
+ import type { IDL } from "@icp-sdk/core/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;