@dfinity/sns 3.7.1 → 3.8.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.
Files changed (44) hide show
  1. package/dist/candid/sns_governance.certified.idl.js +41 -16
  2. package/dist/candid/sns_governance.d.ts +20 -0
  3. package/dist/candid/sns_governance.did +26 -1
  4. package/dist/candid/sns_governance.idl.js +41 -16
  5. package/dist/candid/sns_governance_test.certified.idl.js +41 -16
  6. package/dist/candid/sns_governance_test.d.ts +20 -0
  7. package/dist/candid/sns_governance_test.did +26 -1
  8. package/dist/candid/sns_governance_test.idl.js +41 -16
  9. package/dist/candid/sns_root.certified.idl.js +39 -3
  10. package/dist/candid/sns_root.d.ts +28 -0
  11. package/dist/candid/sns_root.did +34 -1
  12. package/dist/candid/sns_root.idl.js +39 -3
  13. package/dist/candid/sns_swap.certified.idl.js +11 -0
  14. package/dist/candid/sns_swap.d.ts +11 -0
  15. package/dist/candid/sns_swap.did +13 -1
  16. package/dist/candid/sns_swap.idl.js +11 -0
  17. package/dist/cjs/index.cjs.js +1 -1
  18. package/dist/cjs/index.cjs.js.map +4 -4
  19. package/dist/esm/chunk-2I22CLP7.js +7 -0
  20. package/dist/esm/chunk-2I22CLP7.js.map +7 -0
  21. package/dist/esm/chunk-4E6G4JED.js +2 -0
  22. package/dist/esm/chunk-4E6G4JED.js.map +7 -0
  23. package/dist/esm/chunk-EYIWJ4DL.js +2 -0
  24. package/dist/esm/chunk-EYIWJ4DL.js.map +7 -0
  25. package/dist/esm/{chunk-HZ2HBDQO.js → chunk-FRCSR552.js} +2 -2
  26. package/dist/esm/chunk-QXELTIRL.js +2 -0
  27. package/dist/esm/chunk-QXELTIRL.js.map +7 -0
  28. package/dist/esm/governance.canister.js +1 -1
  29. package/dist/esm/index.js +1 -1
  30. package/dist/esm/index.js.map +3 -3
  31. package/dist/esm/root.canister.js +1 -1
  32. package/dist/esm/sns.js +1 -1
  33. package/dist/esm/sns.wrapper.js +1 -1
  34. package/dist/esm/swap.canister.js +1 -1
  35. package/package.json +4 -4
  36. package/dist/esm/chunk-GDLCZEM5.js +0 -2
  37. package/dist/esm/chunk-GDLCZEM5.js.map +0 -7
  38. package/dist/esm/chunk-IMCH2CXJ.js +0 -2
  39. package/dist/esm/chunk-IMCH2CXJ.js.map +0 -7
  40. package/dist/esm/chunk-Q5AEWMZX.js +0 -7
  41. package/dist/esm/chunk-Q5AEWMZX.js.map +0 -7
  42. package/dist/esm/chunk-RABWAJNE.js +0 -2
  43. package/dist/esm/chunk-RABWAJNE.js.map +0 -7
  44. /package/dist/esm/{chunk-HZ2HBDQO.js.map → chunk-FRCSR552.js.map} +0 -0
@@ -5,10 +5,14 @@ export const idlFactory = ({ IDL }) => {
5
5
  'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
6
6
  'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
7
7
  });
8
+ const Extensions = IDL.Record({
9
+ 'extension_canister_ids' : IDL.Vec(IDL.Principal),
10
+ });
8
11
  const SnsRootCanister = IDL.Record({
9
12
  'dapp_canister_ids' : IDL.Vec(IDL.Principal),
10
13
  'timers' : IDL.Opt(Timers),
11
14
  'testflight' : IDL.Bool,
15
+ 'extensions' : IDL.Opt(Extensions),
12
16
  'archive_canister_ids' : IDL.Vec(IDL.Principal),
13
17
  'governance_canister_id' : IDL.Opt(IDL.Principal),
14
18
  'index_canister_id' : IDL.Opt(IDL.Principal),
@@ -16,6 +20,16 @@ export const idlFactory = ({ IDL }) => {
16
20
  'ledger_canister_id' : IDL.Opt(IDL.Principal),
17
21
  });
18
22
  const CanisterIdRecord = IDL.Record({ 'canister_id' : IDL.Principal });
23
+ 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),
32
+ });
19
33
  const CanisterStatusType = IDL.Variant({
20
34
  'stopped' : IDL.Null,
21
35
  'stopping' : IDL.Null,
@@ -43,6 +57,7 @@ export const idlFactory = ({ IDL }) => {
43
57
  'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
44
58
  });
45
59
  const CanisterStatusResult = IDL.Record({
60
+ 'memory_metrics' : IDL.Opt(MemoryMetrics),
46
61
  'status' : CanisterStatusType,
47
62
  'memory_size' : IDL.Nat,
48
63
  'cycles' : IDL.Nat,
@@ -82,6 +97,7 @@ export const idlFactory = ({ IDL }) => {
82
97
  'compute_allocation' : IDL.Nat,
83
98
  });
84
99
  const CanisterStatusResultV2 = IDL.Record({
100
+ 'memory_metrics' : IDL.Opt(MemoryMetrics),
85
101
  'status' : CanisterStatusType,
86
102
  'memory_size' : IDL.Nat,
87
103
  'cycles' : IDL.Nat,
@@ -107,6 +123,7 @@ export const idlFactory = ({ IDL }) => {
107
123
  const ListSnsCanistersResponse = IDL.Record({
108
124
  'root' : IDL.Opt(IDL.Principal),
109
125
  'swap' : IDL.Opt(IDL.Principal),
126
+ 'extensions' : IDL.Opt(Extensions),
110
127
  'ledger' : IDL.Opt(IDL.Principal),
111
128
  'index' : IDL.Opt(IDL.Principal),
112
129
  'governance' : IDL.Opt(IDL.Principal),
@@ -132,14 +149,24 @@ export const idlFactory = ({ IDL }) => {
132
149
  const RegisterDappCanistersRequest = IDL.Record({
133
150
  'canister_ids' : IDL.Vec(IDL.Principal),
134
151
  });
135
- const SetDappControllersRequest = IDL.Record({
136
- 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
137
- 'controller_principal_ids' : IDL.Vec(IDL.Principal),
152
+ const RegisterExtensionRequest = IDL.Record({
153
+ 'canister_id' : IDL.Opt(IDL.Principal),
138
154
  });
139
155
  const CanisterCallError = IDL.Record({
140
156
  'code' : IDL.Opt(IDL.Int32),
141
157
  'description' : IDL.Text,
142
158
  });
159
+ const RegisterExtensionResult = IDL.Variant({
160
+ 'Ok' : IDL.Record({}),
161
+ 'Err' : CanisterCallError,
162
+ });
163
+ const RegisterExtensionResponse = IDL.Record({
164
+ 'result' : IDL.Opt(RegisterExtensionResult),
165
+ });
166
+ const SetDappControllersRequest = IDL.Record({
167
+ 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
168
+ 'controller_principal_ids' : IDL.Vec(IDL.Principal),
169
+ });
143
170
  const FailedUpdate = IDL.Record({
144
171
  'err' : IDL.Opt(CanisterCallError),
145
172
  'dapp_canister_id' : IDL.Opt(IDL.Principal),
@@ -181,6 +208,11 @@ export const idlFactory = ({ IDL }) => {
181
208
  [IDL.Record({})],
182
209
  [],
183
210
  ),
211
+ 'register_extension' : IDL.Func(
212
+ [RegisterExtensionRequest],
213
+ [RegisterExtensionResponse],
214
+ [],
215
+ ),
184
216
  'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
185
217
  'set_dapp_controllers' : IDL.Func(
186
218
  [SetDappControllersRequest],
@@ -195,10 +227,14 @@ export const init = ({ IDL }) => {
195
227
  'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
196
228
  'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
197
229
  });
230
+ const Extensions = IDL.Record({
231
+ 'extension_canister_ids' : IDL.Vec(IDL.Principal),
232
+ });
198
233
  const SnsRootCanister = IDL.Record({
199
234
  'dapp_canister_ids' : IDL.Vec(IDL.Principal),
200
235
  'timers' : IDL.Opt(Timers),
201
236
  'testflight' : IDL.Bool,
237
+ 'extensions' : IDL.Opt(Extensions),
202
238
  'archive_canister_ids' : IDL.Vec(IDL.Principal),
203
239
  'governance_canister_id' : IDL.Opt(IDL.Principal),
204
240
  'index_canister_id' : IDL.Opt(IDL.Principal),
@@ -14,6 +14,7 @@ export type CanisterInstallMode =
14
14
  | { upgrade: null }
15
15
  | { install: null };
16
16
  export interface CanisterStatusResult {
17
+ memory_metrics: [] | [MemoryMetrics];
17
18
  status: CanisterStatusType;
18
19
  memory_size: bigint;
19
20
  cycles: bigint;
@@ -24,6 +25,7 @@ export interface CanisterStatusResult {
24
25
  reserved_cycles: [] | [bigint];
25
26
  }
26
27
  export interface CanisterStatusResultV2 {
28
+ memory_metrics: [] | [MemoryMetrics];
27
29
  status: CanisterStatusType;
28
30
  memory_size: bigint;
29
31
  cycles: bigint;
@@ -71,6 +73,9 @@ export interface DefiniteCanisterSettingsArgs {
71
73
  memory_allocation: bigint;
72
74
  compute_allocation: bigint;
73
75
  }
76
+ export interface Extensions {
77
+ extension_canister_ids: Array<Principal>;
78
+ }
74
79
  export interface FailedUpdate {
75
80
  err: [] | [CanisterCallError];
76
81
  dapp_canister_id: [] | [Principal];
@@ -93,6 +98,7 @@ export interface GetTimersResponse {
93
98
  export interface ListSnsCanistersResponse {
94
99
  root: [] | [Principal];
95
100
  swap: [] | [Principal];
101
+ extensions: [] | [Extensions];
96
102
  ledger: [] | [Principal];
97
103
  index: [] | [Principal];
98
104
  governance: [] | [Principal];
@@ -116,6 +122,16 @@ export interface ManageDappCanisterSettingsRequest {
116
122
  export interface ManageDappCanisterSettingsResponse {
117
123
  failure_reason: [] | [string];
118
124
  }
125
+ export interface MemoryMetrics {
126
+ wasm_binary_size: [] | [bigint];
127
+ wasm_chunk_store_size: [] | [bigint];
128
+ canister_history_size: [] | [bigint];
129
+ stable_memory_size: [] | [bigint];
130
+ snapshots_size: [] | [bigint];
131
+ wasm_memory_size: [] | [bigint];
132
+ global_memory_size: [] | [bigint];
133
+ custom_sections_size: [] | [bigint];
134
+ }
119
135
  export interface QueryStats {
120
136
  response_payload_bytes_total: [] | [bigint];
121
137
  num_instructions_total: [] | [bigint];
@@ -128,6 +144,13 @@ export interface RegisterDappCanisterRequest {
128
144
  export interface RegisterDappCanistersRequest {
129
145
  canister_ids: Array<Principal>;
130
146
  }
147
+ export interface RegisterExtensionRequest {
148
+ canister_id: [] | [Principal];
149
+ }
150
+ export interface RegisterExtensionResponse {
151
+ result: [] | [RegisterExtensionResult];
152
+ }
153
+ export type RegisterExtensionResult = { Ok: {} } | { Err: CanisterCallError };
131
154
  export interface SetDappControllersRequest {
132
155
  canister_ids: [] | [RegisterDappCanistersRequest];
133
156
  controller_principal_ids: Array<Principal>;
@@ -139,6 +162,7 @@ export interface SnsRootCanister {
139
162
  dapp_canister_ids: Array<Principal>;
140
163
  timers: [] | [Timers];
141
164
  testflight: boolean;
165
+ extensions: [] | [Extensions];
142
166
  archive_canister_ids: Array<Principal>;
143
167
  governance_canister_id: [] | [Principal];
144
168
  index_canister_id: [] | [Principal];
@@ -166,6 +190,10 @@ export interface _SERVICE {
166
190
  >;
167
191
  register_dapp_canister: ActorMethod<[RegisterDappCanisterRequest], {}>;
168
192
  register_dapp_canisters: ActorMethod<[RegisterDappCanistersRequest], {}>;
193
+ register_extension: ActorMethod<
194
+ [RegisterExtensionRequest],
195
+ RegisterExtensionResponse
196
+ >;
169
197
  reset_timers: ActorMethod<[{}], {}>;
170
198
  set_dapp_controllers: ActorMethod<
171
199
  [SetDappControllersRequest],
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 5f36668c9b (2025-07-11) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit 047925d (2025-08-06 tags: release-2025-08-07_03-33-base) 'rs/sns/root/canister/root.did' by import-candid
2
2
  type CanisterCallError = record {
3
3
  code : opt int32;
4
4
  description : text;
@@ -14,6 +14,17 @@ type CanisterInstallMode = variant {
14
14
  install;
15
15
  };
16
16
 
17
+ type MemoryMetrics = record {
18
+ wasm_memory_size : opt nat;
19
+ stable_memory_size : opt nat;
20
+ global_memory_size : opt nat;
21
+ wasm_binary_size : opt nat;
22
+ custom_sections_size : opt nat;
23
+ canister_history_size : opt nat;
24
+ wasm_chunk_store_size : opt nat;
25
+ snapshots_size : opt nat;
26
+ };
27
+
17
28
  type CanisterStatusResult = record {
18
29
  status : CanisterStatusType;
19
30
  memory_size : nat;
@@ -23,6 +34,7 @@ type CanisterStatusResult = record {
23
34
  module_hash : opt blob;
24
35
  reserved_cycles : opt nat;
25
36
  query_stats : opt QueryStats;
37
+ memory_metrics : opt MemoryMetrics;
26
38
  };
27
39
 
28
40
  type CanisterStatusResultV2 = record {
@@ -33,6 +45,7 @@ type CanisterStatusResultV2 = record {
33
45
  idle_cycles_burned_per_day : nat;
34
46
  module_hash : opt blob;
35
47
  query_stats : opt QueryStats;
48
+ memory_metrics : opt MemoryMetrics;
36
49
  };
37
50
 
38
51
  type CanisterStatusType = variant {
@@ -114,6 +127,7 @@ type ListSnsCanistersResponse = record {
114
127
  index : opt principal;
115
128
  governance : opt principal;
116
129
  dapps : vec principal;
130
+ extensions : opt Extensions;
117
131
  archives : vec principal;
118
132
  };
119
133
 
@@ -138,6 +152,19 @@ type ManageDappCanisterSettingsResponse = record {
138
152
  failure_reason : opt text;
139
153
  };
140
154
 
155
+ type RegisterExtensionRequest = record {
156
+ canister_id : opt principal;
157
+ };
158
+
159
+ type RegisterExtensionResult = variant {
160
+ Ok : record {};
161
+ Err : CanisterCallError;
162
+ };
163
+
164
+ type RegisterExtensionResponse = record {
165
+ result : opt RegisterExtensionResult;
166
+ };
167
+
141
168
  type RegisterDappCanisterRequest = record {
142
169
  canister_id : opt principal;
143
170
  };
@@ -155,8 +182,13 @@ type SetDappControllersResponse = record {
155
182
  failed_updates : vec FailedUpdate;
156
183
  };
157
184
 
185
+ type Extensions = record {
186
+ extension_canister_ids : vec principal;
187
+ };
188
+
158
189
  type SnsRootCanister = record {
159
190
  dapp_canister_ids : vec principal;
191
+ extensions : opt Extensions;
160
192
  testflight : bool;
161
193
  archive_canister_ids : vec principal;
162
194
  governance_canister_id : opt principal;
@@ -187,6 +219,7 @@ service : (SnsRootCanister) -> {
187
219
  manage_dapp_canister_settings : (ManageDappCanisterSettingsRequest) -> (
188
220
  ManageDappCanisterSettingsResponse,
189
221
  );
222
+ register_extension : (RegisterExtensionRequest) -> (RegisterExtensionResponse);
190
223
  register_dapp_canister : (RegisterDappCanisterRequest) -> (record {});
191
224
  register_dapp_canisters : (RegisterDappCanistersRequest) -> (record {});
192
225
  set_dapp_controllers : (SetDappControllersRequest) -> (
@@ -5,10 +5,14 @@ export const idlFactory = ({ IDL }) => {
5
5
  'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
6
6
  'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
7
7
  });
8
+ const Extensions = IDL.Record({
9
+ 'extension_canister_ids' : IDL.Vec(IDL.Principal),
10
+ });
8
11
  const SnsRootCanister = IDL.Record({
9
12
  'dapp_canister_ids' : IDL.Vec(IDL.Principal),
10
13
  'timers' : IDL.Opt(Timers),
11
14
  'testflight' : IDL.Bool,
15
+ 'extensions' : IDL.Opt(Extensions),
12
16
  'archive_canister_ids' : IDL.Vec(IDL.Principal),
13
17
  'governance_canister_id' : IDL.Opt(IDL.Principal),
14
18
  'index_canister_id' : IDL.Opt(IDL.Principal),
@@ -16,6 +20,16 @@ export const idlFactory = ({ IDL }) => {
16
20
  'ledger_canister_id' : IDL.Opt(IDL.Principal),
17
21
  });
18
22
  const CanisterIdRecord = IDL.Record({ 'canister_id' : IDL.Principal });
23
+ 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),
32
+ });
19
33
  const CanisterStatusType = IDL.Variant({
20
34
  'stopped' : IDL.Null,
21
35
  'stopping' : IDL.Null,
@@ -43,6 +57,7 @@ export const idlFactory = ({ IDL }) => {
43
57
  'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
44
58
  });
45
59
  const CanisterStatusResult = IDL.Record({
60
+ 'memory_metrics' : IDL.Opt(MemoryMetrics),
46
61
  'status' : CanisterStatusType,
47
62
  'memory_size' : IDL.Nat,
48
63
  'cycles' : IDL.Nat,
@@ -82,6 +97,7 @@ export const idlFactory = ({ IDL }) => {
82
97
  'compute_allocation' : IDL.Nat,
83
98
  });
84
99
  const CanisterStatusResultV2 = IDL.Record({
100
+ 'memory_metrics' : IDL.Opt(MemoryMetrics),
85
101
  'status' : CanisterStatusType,
86
102
  'memory_size' : IDL.Nat,
87
103
  'cycles' : IDL.Nat,
@@ -107,6 +123,7 @@ export const idlFactory = ({ IDL }) => {
107
123
  const ListSnsCanistersResponse = IDL.Record({
108
124
  'root' : IDL.Opt(IDL.Principal),
109
125
  'swap' : IDL.Opt(IDL.Principal),
126
+ 'extensions' : IDL.Opt(Extensions),
110
127
  'ledger' : IDL.Opt(IDL.Principal),
111
128
  'index' : IDL.Opt(IDL.Principal),
112
129
  'governance' : IDL.Opt(IDL.Principal),
@@ -132,14 +149,24 @@ export const idlFactory = ({ IDL }) => {
132
149
  const RegisterDappCanistersRequest = IDL.Record({
133
150
  'canister_ids' : IDL.Vec(IDL.Principal),
134
151
  });
135
- const SetDappControllersRequest = IDL.Record({
136
- 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
137
- 'controller_principal_ids' : IDL.Vec(IDL.Principal),
152
+ const RegisterExtensionRequest = IDL.Record({
153
+ 'canister_id' : IDL.Opt(IDL.Principal),
138
154
  });
139
155
  const CanisterCallError = IDL.Record({
140
156
  'code' : IDL.Opt(IDL.Int32),
141
157
  'description' : IDL.Text,
142
158
  });
159
+ const RegisterExtensionResult = IDL.Variant({
160
+ 'Ok' : IDL.Record({}),
161
+ 'Err' : CanisterCallError,
162
+ });
163
+ const RegisterExtensionResponse = IDL.Record({
164
+ 'result' : IDL.Opt(RegisterExtensionResult),
165
+ });
166
+ const SetDappControllersRequest = IDL.Record({
167
+ 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
168
+ 'controller_principal_ids' : IDL.Vec(IDL.Principal),
169
+ });
143
170
  const FailedUpdate = IDL.Record({
144
171
  'err' : IDL.Opt(CanisterCallError),
145
172
  'dapp_canister_id' : IDL.Opt(IDL.Principal),
@@ -181,6 +208,11 @@ export const idlFactory = ({ IDL }) => {
181
208
  [IDL.Record({})],
182
209
  [],
183
210
  ),
211
+ 'register_extension' : IDL.Func(
212
+ [RegisterExtensionRequest],
213
+ [RegisterExtensionResponse],
214
+ [],
215
+ ),
184
216
  'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
185
217
  'set_dapp_controllers' : IDL.Func(
186
218
  [SetDappControllersRequest],
@@ -195,10 +227,14 @@ export const init = ({ IDL }) => {
195
227
  'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
196
228
  'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
197
229
  });
230
+ const Extensions = IDL.Record({
231
+ 'extension_canister_ids' : IDL.Vec(IDL.Principal),
232
+ });
198
233
  const SnsRootCanister = IDL.Record({
199
234
  'dapp_canister_ids' : IDL.Vec(IDL.Principal),
200
235
  'timers' : IDL.Opt(Timers),
201
236
  'testflight' : IDL.Bool,
237
+ 'extensions' : IDL.Opt(Extensions),
202
238
  'archive_canister_ids' : IDL.Vec(IDL.Principal),
203
239
  'governance_canister_id' : IDL.Opt(IDL.Principal),
204
240
  'index_canister_id' : IDL.Opt(IDL.Principal),
@@ -157,6 +157,16 @@ export const idlFactory = ({ IDL }) => {
157
157
  'buyer_state' : IDL.Opt(BuyerState),
158
158
  });
159
159
  const GetBuyersTotalResponse = IDL.Record({ 'buyers_total' : IDL.Nat64 });
160
+ const MemoryMetrics = IDL.Record({
161
+ 'wasm_binary_size' : IDL.Opt(IDL.Nat),
162
+ 'wasm_chunk_store_size' : IDL.Opt(IDL.Nat),
163
+ 'canister_history_size' : IDL.Opt(IDL.Nat),
164
+ 'stable_memory_size' : IDL.Opt(IDL.Nat),
165
+ 'snapshots_size' : IDL.Opt(IDL.Nat),
166
+ 'wasm_memory_size' : IDL.Opt(IDL.Nat),
167
+ 'global_memory_size' : IDL.Opt(IDL.Nat),
168
+ 'custom_sections_size' : IDL.Opt(IDL.Nat),
169
+ });
160
170
  const CanisterStatusType = IDL.Variant({
161
171
  'stopped' : IDL.Null,
162
172
  'stopping' : IDL.Null,
@@ -177,6 +187,7 @@ export const idlFactory = ({ IDL }) => {
177
187
  'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
178
188
  });
179
189
  const CanisterStatusResultV2 = IDL.Record({
190
+ 'memory_metrics' : IDL.Opt(MemoryMetrics),
180
191
  'status' : CanisterStatusType,
181
192
  'memory_size' : IDL.Nat,
182
193
  'cycles' : IDL.Nat,
@@ -11,6 +11,7 @@ export interface CanisterCallError {
11
11
  description: string;
12
12
  }
13
13
  export interface CanisterStatusResultV2 {
14
+ memory_metrics: [] | [MemoryMetrics];
14
15
  status: CanisterStatusType;
15
16
  memory_size: bigint;
16
17
  cycles: bigint;
@@ -224,6 +225,16 @@ export interface ListSnsNeuronRecipesRequest {
224
225
  export interface ListSnsNeuronRecipesResponse {
225
226
  sns_neuron_recipes: Array<SnsNeuronRecipe>;
226
227
  }
228
+ export interface MemoryMetrics {
229
+ wasm_binary_size: [] | [bigint];
230
+ wasm_chunk_store_size: [] | [bigint];
231
+ canister_history_size: [] | [bigint];
232
+ stable_memory_size: [] | [bigint];
233
+ snapshots_size: [] | [bigint];
234
+ wasm_memory_size: [] | [bigint];
235
+ global_memory_size: [] | [bigint];
236
+ custom_sections_size: [] | [bigint];
237
+ }
227
238
  export interface NeuronAttributes {
228
239
  dissolve_delay_seconds: bigint;
229
240
  memo: bigint;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 5f36668c9b (2025-07-11) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit 047925d (2025-08-06 tags: release-2025-08-07_03-33-base) 'rs/sns/swap/canister/swap.did' by import-candid
2
2
  type BuyerState = record {
3
3
  icp : opt TransferableAmount;
4
4
  has_created_neuron_recipes : opt bool;
@@ -9,6 +9,17 @@ type CanisterCallError = record {
9
9
  description : text;
10
10
  };
11
11
 
12
+ type MemoryMetrics = record {
13
+ wasm_memory_size : opt nat;
14
+ stable_memory_size : opt nat;
15
+ global_memory_size : opt nat;
16
+ wasm_binary_size : opt nat;
17
+ custom_sections_size : opt nat;
18
+ canister_history_size : opt nat;
19
+ wasm_chunk_store_size : opt nat;
20
+ snapshots_size : opt nat;
21
+ };
22
+
12
23
  type QueryStats = record {
13
24
  num_calls_total : opt nat;
14
25
  num_instructions_total : opt nat;
@@ -19,6 +30,7 @@ type QueryStats = record {
19
30
  type CanisterStatusResultV2 = record {
20
31
  status : CanisterStatusType;
21
32
  memory_size : nat;
33
+ memory_metrics : opt MemoryMetrics;
22
34
  cycles : nat;
23
35
  settings : DefiniteCanisterSettingsArgs;
24
36
  idle_cycles_burned_per_day : nat;
@@ -157,6 +157,16 @@ export const idlFactory = ({ IDL }) => {
157
157
  'buyer_state' : IDL.Opt(BuyerState),
158
158
  });
159
159
  const GetBuyersTotalResponse = IDL.Record({ 'buyers_total' : IDL.Nat64 });
160
+ const MemoryMetrics = IDL.Record({
161
+ 'wasm_binary_size' : IDL.Opt(IDL.Nat),
162
+ 'wasm_chunk_store_size' : IDL.Opt(IDL.Nat),
163
+ 'canister_history_size' : IDL.Opt(IDL.Nat),
164
+ 'stable_memory_size' : IDL.Opt(IDL.Nat),
165
+ 'snapshots_size' : IDL.Opt(IDL.Nat),
166
+ 'wasm_memory_size' : IDL.Opt(IDL.Nat),
167
+ 'global_memory_size' : IDL.Opt(IDL.Nat),
168
+ 'custom_sections_size' : IDL.Opt(IDL.Nat),
169
+ });
160
170
  const CanisterStatusType = IDL.Variant({
161
171
  'stopped' : IDL.Null,
162
172
  'stopping' : IDL.Null,
@@ -177,6 +187,7 @@ export const idlFactory = ({ IDL }) => {
177
187
  'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
178
188
  });
179
189
  const CanisterStatusResultV2 = IDL.Record({
190
+ 'memory_metrics' : IDL.Opt(MemoryMetrics),
180
191
  'status' : CanisterStatusType,
181
192
  'memory_size' : IDL.Nat,
182
193
  'cycles' : IDL.Nat,