@dfinity/sns 3.2.9 → 3.2.10
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 +7 -0
- package/dist/candid/sns_governance.d.ts +7 -0
- package/dist/candid/sns_governance.did +9 -1
- package/dist/candid/sns_governance.idl.js +7 -0
- package/dist/candid/sns_governance_test.certified.idl.js +7 -0
- package/dist/candid/sns_governance_test.d.ts +7 -0
- package/dist/candid/sns_governance_test.did +9 -1
- package/dist/candid/sns_governance_test.idl.js +7 -0
- package/dist/candid/sns_root.certified.idl.js +9 -0
- package/dist/candid/sns_root.d.ts +12 -1
- package/dist/candid/sns_root.did +11 -1
- package/dist/candid/sns_root.idl.js +9 -0
- package/dist/candid/sns_swap.certified.idl.js +7 -0
- package/dist/candid/sns_swap.d.ts +7 -0
- package/dist/candid/sns_swap.did +9 -1
- package/dist/candid/sns_swap.idl.js +7 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-7RSE53BN.js +2 -0
- package/dist/esm/chunk-7RSE53BN.js.map +7 -0
- package/dist/esm/{chunk-K4OVK5J7.js → chunk-BA2F4FQ5.js} +2 -2
- package/dist/esm/chunk-PUAIJI6X.js +2 -0
- package/dist/esm/chunk-PUAIJI6X.js.map +7 -0
- package/dist/esm/chunk-WN7KNJGB.js +2 -0
- package/dist/esm/{chunk-EHRWZZ5X.js.map → chunk-WN7KNJGB.js.map} +3 -3
- 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 +3 -3
- package/dist/esm/chunk-BKBI2NNR.js +0 -2
- package/dist/esm/chunk-BKBI2NNR.js.map +0 -7
- package/dist/esm/chunk-EHRWZZ5X.js +0 -2
- package/dist/esm/chunk-NXIGASUA.js +0 -2
- package/dist/esm/chunk-NXIGASUA.js.map +0 -7
- /package/dist/esm/{chunk-K4OVK5J7.js.map → chunk-BA2F4FQ5.js.map} +0 -0
|
@@ -541,11 +541,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
541
541
|
'memory_allocation' : IDL.Nat,
|
|
542
542
|
'compute_allocation' : IDL.Nat,
|
|
543
543
|
});
|
|
544
|
+
const QueryStats = IDL.Record({
|
|
545
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
546
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
547
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
548
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
549
|
+
});
|
|
544
550
|
const CanisterStatusResultV2 = IDL.Record({
|
|
545
551
|
'status' : CanisterStatusType,
|
|
546
552
|
'memory_size' : IDL.Nat,
|
|
547
553
|
'cycles' : IDL.Nat,
|
|
548
554
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
555
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
549
556
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
550
557
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
551
558
|
});
|
|
@@ -62,6 +62,7 @@ export interface CanisterStatusResultV2 {
|
|
|
62
62
|
memory_size: bigint;
|
|
63
63
|
cycles: bigint;
|
|
64
64
|
settings: DefiniteCanisterSettingsArgs;
|
|
65
|
+
query_stats: [] | [QueryStats];
|
|
65
66
|
idle_cycles_burned_per_day: bigint;
|
|
66
67
|
module_hash: [] | [Uint8Array | number[]];
|
|
67
68
|
}
|
|
@@ -529,6 +530,12 @@ export interface ProposalData {
|
|
|
529
530
|
export interface ProposalId {
|
|
530
531
|
id: bigint;
|
|
531
532
|
}
|
|
533
|
+
export interface QueryStats {
|
|
534
|
+
response_payload_bytes_total: [] | [bigint];
|
|
535
|
+
num_instructions_total: [] | [bigint];
|
|
536
|
+
num_calls_total: [] | [bigint];
|
|
537
|
+
request_payload_bytes_total: [] | [bigint];
|
|
538
|
+
}
|
|
532
539
|
export interface RegisterDappCanisters {
|
|
533
540
|
canister_ids: Array<Principal>;
|
|
534
541
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -56,6 +56,7 @@ type CanisterStatusResultV2 = record {
|
|
|
56
56
|
settings : DefiniteCanisterSettingsArgs;
|
|
57
57
|
idle_cycles_burned_per_day : nat;
|
|
58
58
|
module_hash : opt blob;
|
|
59
|
+
query_stats : opt QueryStats;
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
type CanisterStatusType = variant {
|
|
@@ -611,6 +612,13 @@ type ProposalId = record {
|
|
|
611
612
|
id : nat64;
|
|
612
613
|
};
|
|
613
614
|
|
|
615
|
+
type QueryStats = record {
|
|
616
|
+
num_calls_total : opt nat;
|
|
617
|
+
num_instructions_total : opt nat;
|
|
618
|
+
request_payload_bytes_total : opt nat;
|
|
619
|
+
response_payload_bytes_total : opt nat;
|
|
620
|
+
};
|
|
621
|
+
|
|
614
622
|
type RegisterDappCanisters = record {
|
|
615
623
|
canister_ids : vec principal;
|
|
616
624
|
};
|
|
@@ -541,11 +541,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
541
541
|
'memory_allocation' : IDL.Nat,
|
|
542
542
|
'compute_allocation' : IDL.Nat,
|
|
543
543
|
});
|
|
544
|
+
const QueryStats = IDL.Record({
|
|
545
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
546
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
547
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
548
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
549
|
+
});
|
|
544
550
|
const CanisterStatusResultV2 = IDL.Record({
|
|
545
551
|
'status' : CanisterStatusType,
|
|
546
552
|
'memory_size' : IDL.Nat,
|
|
547
553
|
'cycles' : IDL.Nat,
|
|
548
554
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
555
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
549
556
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
550
557
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
551
558
|
});
|
|
@@ -552,11 +552,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
552
552
|
'memory_allocation' : IDL.Nat,
|
|
553
553
|
'compute_allocation' : IDL.Nat,
|
|
554
554
|
});
|
|
555
|
+
const QueryStats = IDL.Record({
|
|
556
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
557
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
558
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
559
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
560
|
+
});
|
|
555
561
|
const CanisterStatusResultV2 = IDL.Record({
|
|
556
562
|
'status' : CanisterStatusType,
|
|
557
563
|
'memory_size' : IDL.Nat,
|
|
558
564
|
'cycles' : IDL.Nat,
|
|
559
565
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
566
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
560
567
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
561
568
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
562
569
|
});
|
|
@@ -73,6 +73,7 @@ export interface CanisterStatusResultV2 {
|
|
|
73
73
|
memory_size: bigint;
|
|
74
74
|
cycles: bigint;
|
|
75
75
|
settings: DefiniteCanisterSettingsArgs;
|
|
76
|
+
query_stats: [] | [QueryStats];
|
|
76
77
|
idle_cycles_burned_per_day: bigint;
|
|
77
78
|
module_hash: [] | [Uint8Array | number[]];
|
|
78
79
|
}
|
|
@@ -544,6 +545,12 @@ export interface ProposalData {
|
|
|
544
545
|
export interface ProposalId {
|
|
545
546
|
id: bigint;
|
|
546
547
|
}
|
|
548
|
+
export interface QueryStats {
|
|
549
|
+
response_payload_bytes_total: [] | [bigint];
|
|
550
|
+
num_instructions_total: [] | [bigint];
|
|
551
|
+
num_calls_total: [] | [bigint];
|
|
552
|
+
request_payload_bytes_total: [] | [bigint];
|
|
553
|
+
}
|
|
547
554
|
export interface RegisterDappCanisters {
|
|
548
555
|
canister_ids: Array<Principal>;
|
|
549
556
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -65,6 +65,7 @@ type CanisterStatusResultV2 = record {
|
|
|
65
65
|
settings : DefiniteCanisterSettingsArgs;
|
|
66
66
|
idle_cycles_burned_per_day : nat;
|
|
67
67
|
module_hash : opt blob;
|
|
68
|
+
query_stats : opt QueryStats;
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
type CanisterStatusType = variant {
|
|
@@ -625,6 +626,13 @@ type ProposalId = record {
|
|
|
625
626
|
id : nat64;
|
|
626
627
|
};
|
|
627
628
|
|
|
629
|
+
type QueryStats = record {
|
|
630
|
+
num_calls_total : opt nat;
|
|
631
|
+
num_instructions_total : opt nat;
|
|
632
|
+
request_payload_bytes_total : opt nat;
|
|
633
|
+
response_payload_bytes_total : opt nat;
|
|
634
|
+
};
|
|
635
|
+
|
|
628
636
|
type RegisterDappCanisters = record {
|
|
629
637
|
canister_ids : vec principal;
|
|
630
638
|
};
|
|
@@ -552,11 +552,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
552
552
|
'memory_allocation' : IDL.Nat,
|
|
553
553
|
'compute_allocation' : IDL.Nat,
|
|
554
554
|
});
|
|
555
|
+
const QueryStats = IDL.Record({
|
|
556
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
557
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
558
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
559
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
560
|
+
});
|
|
555
561
|
const CanisterStatusResultV2 = IDL.Record({
|
|
556
562
|
'status' : CanisterStatusType,
|
|
557
563
|
'memory_size' : IDL.Nat,
|
|
558
564
|
'cycles' : IDL.Nat,
|
|
559
565
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
566
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
560
567
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
561
568
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
562
569
|
});
|
|
@@ -24,6 +24,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
24
24
|
const LogVisibility = IDL.Variant({
|
|
25
25
|
'controllers' : IDL.Null,
|
|
26
26
|
'public' : IDL.Null,
|
|
27
|
+
'allowed_viewers' : IDL.Vec(IDL.Principal),
|
|
27
28
|
});
|
|
28
29
|
const DefiniteCanisterSettings = IDL.Record({
|
|
29
30
|
'freezing_threshold' : IDL.Opt(IDL.Nat),
|
|
@@ -35,11 +36,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
35
36
|
'memory_allocation' : IDL.Opt(IDL.Nat),
|
|
36
37
|
'compute_allocation' : IDL.Opt(IDL.Nat),
|
|
37
38
|
});
|
|
39
|
+
const QueryStats = IDL.Record({
|
|
40
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
41
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
42
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
43
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
44
|
+
});
|
|
38
45
|
const CanisterStatusResult = IDL.Record({
|
|
39
46
|
'status' : CanisterStatusType,
|
|
40
47
|
'memory_size' : IDL.Nat,
|
|
41
48
|
'cycles' : IDL.Nat,
|
|
42
49
|
'settings' : DefiniteCanisterSettings,
|
|
50
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
43
51
|
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat),
|
|
44
52
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
45
53
|
'reserved_cycles' : IDL.Opt(IDL.Nat),
|
|
@@ -80,6 +88,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
80
88
|
'memory_size' : IDL.Nat,
|
|
81
89
|
'cycles' : IDL.Nat,
|
|
82
90
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
91
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
83
92
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
84
93
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
85
94
|
});
|
|
@@ -18,6 +18,7 @@ export interface CanisterStatusResult {
|
|
|
18
18
|
memory_size: bigint;
|
|
19
19
|
cycles: bigint;
|
|
20
20
|
settings: DefiniteCanisterSettings;
|
|
21
|
+
query_stats: [] | [QueryStats];
|
|
21
22
|
idle_cycles_burned_per_day: [] | [bigint];
|
|
22
23
|
module_hash: [] | [Uint8Array | number[]];
|
|
23
24
|
reserved_cycles: [] | [bigint];
|
|
@@ -27,6 +28,7 @@ export interface CanisterStatusResultV2 {
|
|
|
27
28
|
memory_size: bigint;
|
|
28
29
|
cycles: bigint;
|
|
29
30
|
settings: DefiniteCanisterSettingsArgs;
|
|
31
|
+
query_stats: [] | [QueryStats];
|
|
30
32
|
idle_cycles_burned_per_day: bigint;
|
|
31
33
|
module_hash: [] | [Uint8Array | number[]];
|
|
32
34
|
}
|
|
@@ -99,7 +101,10 @@ export interface ListSnsCanistersResponse {
|
|
|
99
101
|
dapps: Array<Principal>;
|
|
100
102
|
archives: Array<Principal>;
|
|
101
103
|
}
|
|
102
|
-
export type LogVisibility =
|
|
104
|
+
export type LogVisibility =
|
|
105
|
+
| { controllers: null }
|
|
106
|
+
| { public: null }
|
|
107
|
+
| { allowed_viewers: Array<Principal> };
|
|
103
108
|
export interface ManageDappCanisterSettingsRequest {
|
|
104
109
|
freezing_threshold: [] | [bigint];
|
|
105
110
|
wasm_memory_threshold: [] | [bigint];
|
|
@@ -113,6 +118,12 @@ export interface ManageDappCanisterSettingsRequest {
|
|
|
113
118
|
export interface ManageDappCanisterSettingsResponse {
|
|
114
119
|
failure_reason: [] | [string];
|
|
115
120
|
}
|
|
121
|
+
export interface QueryStats {
|
|
122
|
+
response_payload_bytes_total: [] | [bigint];
|
|
123
|
+
num_instructions_total: [] | [bigint];
|
|
124
|
+
num_calls_total: [] | [bigint];
|
|
125
|
+
request_payload_bytes_total: [] | [bigint];
|
|
126
|
+
}
|
|
116
127
|
export interface RegisterDappCanisterRequest {
|
|
117
128
|
canister_id: [] | [Principal];
|
|
118
129
|
}
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
2
|
type CanisterCallError = record {
|
|
3
3
|
code : opt int32;
|
|
4
4
|
description : text;
|
|
@@ -22,6 +22,7 @@ type CanisterStatusResult = record {
|
|
|
22
22
|
idle_cycles_burned_per_day : opt nat;
|
|
23
23
|
module_hash : opt blob;
|
|
24
24
|
reserved_cycles : opt nat;
|
|
25
|
+
query_stats : opt QueryStats;
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
type CanisterStatusResultV2 = record {
|
|
@@ -31,6 +32,7 @@ type CanisterStatusResultV2 = record {
|
|
|
31
32
|
settings : DefiniteCanisterSettingsArgs;
|
|
32
33
|
idle_cycles_burned_per_day : nat;
|
|
33
34
|
module_hash : opt blob;
|
|
35
|
+
query_stats : opt QueryStats;
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
type CanisterStatusType = variant {
|
|
@@ -81,6 +83,13 @@ type DefiniteCanisterSettingsArgs = record {
|
|
|
81
83
|
wasm_memory_threshold : opt nat;
|
|
82
84
|
};
|
|
83
85
|
|
|
86
|
+
type QueryStats = record {
|
|
87
|
+
num_calls_total : opt nat;
|
|
88
|
+
num_instructions_total : opt nat;
|
|
89
|
+
request_payload_bytes_total : opt nat;
|
|
90
|
+
response_payload_bytes_total : opt nat;
|
|
91
|
+
};
|
|
92
|
+
|
|
84
93
|
type FailedUpdate = record {
|
|
85
94
|
err : opt CanisterCallError;
|
|
86
95
|
dapp_canister_id : opt principal;
|
|
@@ -113,6 +122,7 @@ type ListSnsCanistersResponse = record {
|
|
|
113
122
|
type LogVisibility = variant {
|
|
114
123
|
controllers;
|
|
115
124
|
public;
|
|
125
|
+
allowed_viewers: vec principal;
|
|
116
126
|
};
|
|
117
127
|
|
|
118
128
|
type ManageDappCanisterSettingsRequest = record {
|
|
@@ -24,6 +24,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
24
24
|
const LogVisibility = IDL.Variant({
|
|
25
25
|
'controllers' : IDL.Null,
|
|
26
26
|
'public' : IDL.Null,
|
|
27
|
+
'allowed_viewers' : IDL.Vec(IDL.Principal),
|
|
27
28
|
});
|
|
28
29
|
const DefiniteCanisterSettings = IDL.Record({
|
|
29
30
|
'freezing_threshold' : IDL.Opt(IDL.Nat),
|
|
@@ -35,11 +36,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
35
36
|
'memory_allocation' : IDL.Opt(IDL.Nat),
|
|
36
37
|
'compute_allocation' : IDL.Opt(IDL.Nat),
|
|
37
38
|
});
|
|
39
|
+
const QueryStats = IDL.Record({
|
|
40
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
41
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
42
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
43
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
44
|
+
});
|
|
38
45
|
const CanisterStatusResult = IDL.Record({
|
|
39
46
|
'status' : CanisterStatusType,
|
|
40
47
|
'memory_size' : IDL.Nat,
|
|
41
48
|
'cycles' : IDL.Nat,
|
|
42
49
|
'settings' : DefiniteCanisterSettings,
|
|
50
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
43
51
|
'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat),
|
|
44
52
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
45
53
|
'reserved_cycles' : IDL.Opt(IDL.Nat),
|
|
@@ -80,6 +88,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
80
88
|
'memory_size' : IDL.Nat,
|
|
81
89
|
'cycles' : IDL.Nat,
|
|
82
90
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
91
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
83
92
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
84
93
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
85
94
|
});
|
|
@@ -170,11 +170,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
170
170
|
'memory_allocation' : IDL.Nat,
|
|
171
171
|
'compute_allocation' : IDL.Nat,
|
|
172
172
|
});
|
|
173
|
+
const QueryStats = IDL.Record({
|
|
174
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
175
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
176
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
177
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
178
|
+
});
|
|
173
179
|
const CanisterStatusResultV2 = IDL.Record({
|
|
174
180
|
'status' : CanisterStatusType,
|
|
175
181
|
'memory_size' : IDL.Nat,
|
|
176
182
|
'cycles' : IDL.Nat,
|
|
177
183
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
184
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
178
185
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
179
186
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
180
187
|
});
|
|
@@ -15,6 +15,7 @@ export interface CanisterStatusResultV2 {
|
|
|
15
15
|
memory_size: bigint;
|
|
16
16
|
cycles: bigint;
|
|
17
17
|
settings: DefiniteCanisterSettingsArgs;
|
|
18
|
+
query_stats: [] | [QueryStats];
|
|
18
19
|
idle_cycles_burned_per_day: bigint;
|
|
19
20
|
module_hash: [] | [Uint8Array | number[]];
|
|
20
21
|
}
|
|
@@ -288,6 +289,12 @@ export type Possibility_3 = { Ok: {} } | { Err: CanisterCallError };
|
|
|
288
289
|
export interface Principals {
|
|
289
290
|
principals: Array<Principal>;
|
|
290
291
|
}
|
|
292
|
+
export interface QueryStats {
|
|
293
|
+
response_payload_bytes_total: [] | [bigint];
|
|
294
|
+
num_instructions_total: [] | [bigint];
|
|
295
|
+
num_calls_total: [] | [bigint];
|
|
296
|
+
request_payload_bytes_total: [] | [bigint];
|
|
297
|
+
}
|
|
291
298
|
export interface RefreshBuyerTokensRequest {
|
|
292
299
|
confirmation_text: [] | [string];
|
|
293
300
|
buyer: string;
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 14c8f44 (2025-02-07 tags: release-2025-02-06_12-26-revert-hashes-in-blocks) '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,13 @@ type CanisterCallError = record {
|
|
|
9
9
|
description : text;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
+
type QueryStats = record {
|
|
13
|
+
num_calls_total : opt nat;
|
|
14
|
+
num_instructions_total : opt nat;
|
|
15
|
+
request_payload_bytes_total : opt nat;
|
|
16
|
+
response_payload_bytes_total : opt nat;
|
|
17
|
+
};
|
|
18
|
+
|
|
12
19
|
type CanisterStatusResultV2 = record {
|
|
13
20
|
status : CanisterStatusType;
|
|
14
21
|
memory_size : nat;
|
|
@@ -16,6 +23,7 @@ type CanisterStatusResultV2 = record {
|
|
|
16
23
|
settings : DefiniteCanisterSettingsArgs;
|
|
17
24
|
idle_cycles_burned_per_day : nat;
|
|
18
25
|
module_hash : opt blob;
|
|
26
|
+
query_stats : opt QueryStats;
|
|
19
27
|
};
|
|
20
28
|
|
|
21
29
|
type CanisterStatusType = variant {
|
|
@@ -170,11 +170,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
170
170
|
'memory_allocation' : IDL.Nat,
|
|
171
171
|
'compute_allocation' : IDL.Nat,
|
|
172
172
|
});
|
|
173
|
+
const QueryStats = IDL.Record({
|
|
174
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
175
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
176
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
177
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
178
|
+
});
|
|
173
179
|
const CanisterStatusResultV2 = IDL.Record({
|
|
174
180
|
'status' : CanisterStatusType,
|
|
175
181
|
'memory_size' : IDL.Nat,
|
|
176
182
|
'cycles' : IDL.Nat,
|
|
177
183
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
184
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
178
185
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
179
186
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
180
187
|
});
|