@dfinity/sns 3.7.1-next-2025-07-21 → 3.7.1-next-2025-08-11
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.
- package/dist/candid/sns_governance.certified.idl.js +41 -16
- package/dist/candid/sns_governance.d.ts +20 -0
- package/dist/candid/sns_governance.did +26 -1
- package/dist/candid/sns_governance.idl.js +41 -16
- package/dist/candid/sns_governance_test.certified.idl.js +41 -16
- package/dist/candid/sns_governance_test.d.ts +20 -0
- package/dist/candid/sns_governance_test.did +26 -1
- package/dist/candid/sns_governance_test.idl.js +41 -16
- package/dist/candid/sns_root.certified.idl.js +12 -0
- package/dist/candid/sns_root.d.ts +12 -0
- package/dist/candid/sns_root.did +14 -1
- package/dist/candid/sns_root.idl.js +12 -0
- package/dist/candid/sns_swap.certified.idl.js +11 -0
- package/dist/candid/sns_swap.d.ts +11 -0
- package/dist/candid/sns_swap.did +13 -1
- package/dist/candid/sns_swap.idl.js +11 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-4E6G4JED.js +2 -0
- package/dist/esm/chunk-4E6G4JED.js.map +7 -0
- package/dist/esm/chunk-EYIWJ4DL.js +2 -0
- package/dist/esm/chunk-EYIWJ4DL.js.map +7 -0
- package/dist/esm/{chunk-HR66NP6Z.js → chunk-FRCSR552.js} +2 -2
- package/dist/esm/chunk-QXELTIRL.js +2 -0
- package/dist/esm/chunk-QXELTIRL.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/swap.canister.js +1 -1
- package/package.json +1 -1
- package/dist/esm/chunk-GDLCZEM5.js +0 -2
- package/dist/esm/chunk-GDLCZEM5.js.map +0 -7
- package/dist/esm/chunk-IMCH2CXJ.js +0 -2
- package/dist/esm/chunk-IMCH2CXJ.js.map +0 -7
- package/dist/esm/chunk-L3XCDVTR.js +0 -2
- package/dist/esm/chunk-L3XCDVTR.js.map +0 -7
- /package/dist/esm/{chunk-HR66NP6Z.js.map → chunk-FRCSR552.js.map} +0 -0
|
@@ -20,6 +20,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
20
20
|
'ledger_canister_id' : IDL.Opt(IDL.Principal),
|
|
21
21
|
});
|
|
22
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
|
+
});
|
|
23
33
|
const CanisterStatusType = IDL.Variant({
|
|
24
34
|
'stopped' : IDL.Null,
|
|
25
35
|
'stopping' : IDL.Null,
|
|
@@ -47,6 +57,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
47
57
|
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
48
58
|
});
|
|
49
59
|
const CanisterStatusResult = IDL.Record({
|
|
60
|
+
'memory_metrics' : IDL.Opt(MemoryMetrics),
|
|
50
61
|
'status' : CanisterStatusType,
|
|
51
62
|
'memory_size' : IDL.Nat,
|
|
52
63
|
'cycles' : IDL.Nat,
|
|
@@ -86,6 +97,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
86
97
|
'compute_allocation' : IDL.Nat,
|
|
87
98
|
});
|
|
88
99
|
const CanisterStatusResultV2 = IDL.Record({
|
|
100
|
+
'memory_metrics' : IDL.Opt(MemoryMetrics),
|
|
89
101
|
'status' : CanisterStatusType,
|
|
90
102
|
'memory_size' : IDL.Nat,
|
|
91
103
|
'cycles' : IDL.Nat,
|
|
@@ -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;
|
|
@@ -120,6 +122,16 @@ export interface ManageDappCanisterSettingsRequest {
|
|
|
120
122
|
export interface ManageDappCanisterSettingsResponse {
|
|
121
123
|
failure_reason: [] | [string];
|
|
122
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
|
+
}
|
|
123
135
|
export interface QueryStats {
|
|
124
136
|
response_payload_bytes_total: [] | [bigint];
|
|
125
137
|
num_instructions_total: [] | [bigint];
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
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 {
|
|
@@ -20,6 +20,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
20
20
|
'ledger_canister_id' : IDL.Opt(IDL.Principal),
|
|
21
21
|
});
|
|
22
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
|
+
});
|
|
23
33
|
const CanisterStatusType = IDL.Variant({
|
|
24
34
|
'stopped' : IDL.Null,
|
|
25
35
|
'stopping' : IDL.Null,
|
|
@@ -47,6 +57,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
47
57
|
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
48
58
|
});
|
|
49
59
|
const CanisterStatusResult = IDL.Record({
|
|
60
|
+
'memory_metrics' : IDL.Opt(MemoryMetrics),
|
|
50
61
|
'status' : CanisterStatusType,
|
|
51
62
|
'memory_size' : IDL.Nat,
|
|
52
63
|
'cycles' : IDL.Nat,
|
|
@@ -86,6 +97,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
86
97
|
'compute_allocation' : IDL.Nat,
|
|
87
98
|
});
|
|
88
99
|
const CanisterStatusResultV2 = IDL.Record({
|
|
100
|
+
'memory_metrics' : IDL.Opt(MemoryMetrics),
|
|
89
101
|
'status' : CanisterStatusType,
|
|
90
102
|
'memory_size' : IDL.Nat,
|
|
91
103
|
'cycles' : IDL.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,
|
|
@@ -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;
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
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,
|