@dfinity/sns 3.2.9 → 3.3.0-next-2025-02-21
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/README.md +37 -26
- package/dist/candid/sns_governance.certified.idl.js +41 -0
- package/dist/candid/sns_governance.d.ts +30 -0
- package/dist/candid/sns_governance.did +36 -1
- package/dist/candid/sns_governance.idl.js +45 -0
- package/dist/candid/sns_governance_test.certified.idl.js +41 -0
- package/dist/candid/sns_governance_test.d.ts +30 -0
- package/dist/candid/sns_governance_test.did +37 -1
- package/dist/candid/sns_governance_test.idl.js +45 -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-PUAIJI6X.js +2 -0
- package/dist/esm/chunk-PUAIJI6X.js.map +7 -0
- package/dist/esm/{chunk-K4OVK5J7.js → chunk-XBBCPB3E.js} +2 -2
- package/dist/esm/chunk-ZISK2527.js +2 -0
- package/dist/esm/chunk-ZISK2527.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/dist/types/governance.canister.d.ts +7 -2
- package/dist/types/types/actions.d.ts +2 -1
- package/dist/types/types/governance.params.d.ts +2 -0
- package/package.json +7 -7
- 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-EHRWZZ5X.js.map +0 -7
- 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-XBBCPB3E.js.map} +0 -0
|
@@ -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
|
}
|
|
@@ -211,6 +212,7 @@ export type FunctionType =
|
|
|
211
212
|
| { NativeNervousSystemFunction: {} }
|
|
212
213
|
| { GenericNervousSystemFunction: GenericNervousSystemFunction };
|
|
213
214
|
export interface GenericNervousSystemFunction {
|
|
215
|
+
topic: [] | [Topic];
|
|
214
216
|
validator_canister_id: [] | [Principal];
|
|
215
217
|
target_canister_id: [] | [Principal];
|
|
216
218
|
validator_method_name: [] | [string];
|
|
@@ -342,6 +344,11 @@ export interface ListProposalsResponse {
|
|
|
342
344
|
include_ballots_by_caller: [] | [boolean];
|
|
343
345
|
proposals: Array<ProposalData>;
|
|
344
346
|
}
|
|
347
|
+
export type ListTopicsRequest = {};
|
|
348
|
+
export interface ListTopicsResponse {
|
|
349
|
+
uncategorized_functions: [] | [Array<NervousSystemFunction>];
|
|
350
|
+
topics: [] | [Array<TopicInfo>];
|
|
351
|
+
}
|
|
345
352
|
export interface ManageDappCanisterSettings {
|
|
346
353
|
freezing_threshold: [] | [bigint];
|
|
347
354
|
wasm_memory_threshold: [] | [bigint];
|
|
@@ -544,6 +551,12 @@ export interface ProposalData {
|
|
|
544
551
|
export interface ProposalId {
|
|
545
552
|
id: bigint;
|
|
546
553
|
}
|
|
554
|
+
export interface QueryStats {
|
|
555
|
+
response_payload_bytes_total: [] | [bigint];
|
|
556
|
+
num_instructions_total: [] | [bigint];
|
|
557
|
+
num_calls_total: [] | [bigint];
|
|
558
|
+
request_payload_bytes_total: [] | [bigint];
|
|
559
|
+
}
|
|
547
560
|
export interface RegisterDappCanisters {
|
|
548
561
|
canister_ids: Array<Principal>;
|
|
549
562
|
}
|
|
@@ -625,6 +638,22 @@ export interface Timers {
|
|
|
625
638
|
export interface Tokens {
|
|
626
639
|
e8s: [] | [bigint];
|
|
627
640
|
}
|
|
641
|
+
export type Topic =
|
|
642
|
+
| { DappCanisterManagement: null }
|
|
643
|
+
| { DaoCommunitySettings: null }
|
|
644
|
+
| { ApplicationBusinessLogic: null }
|
|
645
|
+
| { CriticalDappOperations: null }
|
|
646
|
+
| { TreasuryAssetManagement: null }
|
|
647
|
+
| { Governance: null }
|
|
648
|
+
| { SnsFrameworkManagement: null };
|
|
649
|
+
export interface TopicInfo {
|
|
650
|
+
native_functions: [] | [Array<NervousSystemFunction>];
|
|
651
|
+
topic: [] | [Topic];
|
|
652
|
+
is_critical: [] | [boolean];
|
|
653
|
+
name: [] | [string];
|
|
654
|
+
description: [] | [string];
|
|
655
|
+
custom_functions: [] | [Array<NervousSystemFunction>];
|
|
656
|
+
}
|
|
628
657
|
export interface TransferSnsTreasuryFunds {
|
|
629
658
|
from_treasury: number;
|
|
630
659
|
to_principal: [] | [Principal];
|
|
@@ -756,6 +785,7 @@ export interface _SERVICE {
|
|
|
756
785
|
>;
|
|
757
786
|
list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
|
|
758
787
|
list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>;
|
|
788
|
+
list_topics: ActorMethod<[ListTopicsRequest], ListTopicsResponse>;
|
|
759
789
|
manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
|
|
760
790
|
mint_tokens: ActorMethod<[MintTokensRequest], {}>;
|
|
761
791
|
refresh_cached_upgrade_steps: ActorMethod<[{}], {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 {
|
|
@@ -235,6 +236,7 @@ type GenericNervousSystemFunction = record {
|
|
|
235
236
|
target_canister_id : opt principal;
|
|
236
237
|
validator_method_name : opt text;
|
|
237
238
|
target_method_name : opt text;
|
|
239
|
+
topic: opt Topic;
|
|
238
240
|
};
|
|
239
241
|
|
|
240
242
|
type GetMaturityModulationResponse = record {
|
|
@@ -625,6 +627,13 @@ type ProposalId = record {
|
|
|
625
627
|
id : nat64;
|
|
626
628
|
};
|
|
627
629
|
|
|
630
|
+
type QueryStats = record {
|
|
631
|
+
num_calls_total : opt nat;
|
|
632
|
+
num_instructions_total : opt nat;
|
|
633
|
+
request_payload_bytes_total : opt nat;
|
|
634
|
+
response_payload_bytes_total : opt nat;
|
|
635
|
+
};
|
|
636
|
+
|
|
628
637
|
type RegisterDappCanisters = record {
|
|
629
638
|
canister_ids : vec principal;
|
|
630
639
|
};
|
|
@@ -849,6 +858,32 @@ type GetUpgradeJournalResponse = record {
|
|
|
849
858
|
type AdvanceTargetVersionRequest = record { target_version : opt Version; };
|
|
850
859
|
type AdvanceTargetVersionResponse = record {};
|
|
851
860
|
|
|
861
|
+
|
|
862
|
+
type Topic = variant {
|
|
863
|
+
DaoCommunitySettings;
|
|
864
|
+
SnsFrameworkManagement;
|
|
865
|
+
DappCanisterManagement;
|
|
866
|
+
ApplicationBusinessLogic;
|
|
867
|
+
Governance;
|
|
868
|
+
TreasuryAssetManagement;
|
|
869
|
+
CriticalDappOperations;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
type TopicInfo = record {
|
|
873
|
+
topic : opt Topic;
|
|
874
|
+
name : opt text;
|
|
875
|
+
description : opt text;
|
|
876
|
+
native_functions : opt vec NervousSystemFunction;
|
|
877
|
+
custom_functions : opt vec NervousSystemFunction;
|
|
878
|
+
is_critical : opt bool;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
type ListTopicsRequest = record {};
|
|
882
|
+
type ListTopicsResponse = record {
|
|
883
|
+
topics: opt vec TopicInfo;
|
|
884
|
+
uncategorized_functions: opt vec NervousSystemFunction
|
|
885
|
+
};
|
|
886
|
+
|
|
852
887
|
service : (Governance) -> {
|
|
853
888
|
add_maturity : (AddMaturityRequest) -> (AddMaturityResponse);
|
|
854
889
|
claim_swap_neurons : (ClaimSwapNeuronsRequest) -> (ClaimSwapNeuronsResponse);
|
|
@@ -868,6 +903,7 @@ service : (Governance) -> {
|
|
|
868
903
|
list_nervous_system_functions : () -> (ListNervousSystemFunctionsResponse) query;
|
|
869
904
|
list_neurons : (ListNeurons) -> (ListNeuronsResponse) query;
|
|
870
905
|
list_proposals : (ListProposals) -> (ListProposalsResponse) query;
|
|
906
|
+
list_topics : (ListTopicsRequest) -> (ListTopicsResponse) query;
|
|
871
907
|
manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
|
|
872
908
|
mint_tokens : (MintTokensRequest) -> (record {});
|
|
873
909
|
set_mode : (SetMode) -> (record {});
|
|
@@ -19,7 +19,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
19
19
|
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
20
20
|
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
21
21
|
});
|
|
22
|
+
const Topic = IDL.Variant({
|
|
23
|
+
'DappCanisterManagement' : IDL.Null,
|
|
24
|
+
'DaoCommunitySettings' : IDL.Null,
|
|
25
|
+
'ApplicationBusinessLogic' : IDL.Null,
|
|
26
|
+
'CriticalDappOperations' : IDL.Null,
|
|
27
|
+
'TreasuryAssetManagement' : IDL.Null,
|
|
28
|
+
'Governance' : IDL.Null,
|
|
29
|
+
'SnsFrameworkManagement' : IDL.Null,
|
|
30
|
+
});
|
|
22
31
|
const GenericNervousSystemFunction = IDL.Record({
|
|
32
|
+
'topic' : IDL.Opt(Topic),
|
|
23
33
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
24
34
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
25
35
|
'validator_method_name' : IDL.Opt(IDL.Text),
|
|
@@ -552,11 +562,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
552
562
|
'memory_allocation' : IDL.Nat,
|
|
553
563
|
'compute_allocation' : IDL.Nat,
|
|
554
564
|
});
|
|
565
|
+
const QueryStats = IDL.Record({
|
|
566
|
+
'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
567
|
+
'num_instructions_total' : IDL.Opt(IDL.Nat),
|
|
568
|
+
'num_calls_total' : IDL.Opt(IDL.Nat),
|
|
569
|
+
'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
|
|
570
|
+
});
|
|
555
571
|
const CanisterStatusResultV2 = IDL.Record({
|
|
556
572
|
'status' : CanisterStatusType,
|
|
557
573
|
'memory_size' : IDL.Nat,
|
|
558
574
|
'cycles' : IDL.Nat,
|
|
559
575
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
576
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
560
577
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
561
578
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
562
579
|
});
|
|
@@ -608,6 +625,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
608
625
|
'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
|
|
609
626
|
'proposals' : IDL.Vec(ProposalData),
|
|
610
627
|
});
|
|
628
|
+
const ListTopicsRequest = IDL.Record({});
|
|
629
|
+
const TopicInfo = IDL.Record({
|
|
630
|
+
'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
631
|
+
'topic' : IDL.Opt(Topic),
|
|
632
|
+
'is_critical' : IDL.Opt(IDL.Bool),
|
|
633
|
+
'name' : IDL.Opt(IDL.Text),
|
|
634
|
+
'description' : IDL.Opt(IDL.Text),
|
|
635
|
+
'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
636
|
+
});
|
|
637
|
+
const ListTopicsResponse = IDL.Record({
|
|
638
|
+
'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
639
|
+
'topics' : IDL.Opt(IDL.Vec(TopicInfo)),
|
|
640
|
+
});
|
|
611
641
|
const StakeMaturity = IDL.Record({
|
|
612
642
|
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
|
|
613
643
|
});
|
|
@@ -736,6 +766,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
736
766
|
[ListProposalsResponse],
|
|
737
767
|
['query'],
|
|
738
768
|
),
|
|
769
|
+
'list_topics' : IDL.Func(
|
|
770
|
+
[ListTopicsRequest],
|
|
771
|
+
[ListTopicsResponse],
|
|
772
|
+
['query'],
|
|
773
|
+
),
|
|
739
774
|
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
740
775
|
'mint_tokens' : IDL.Func([MintTokensRequest], [IDL.Record({})], []),
|
|
741
776
|
'refresh_cached_upgrade_steps' : IDL.Func(
|
|
@@ -768,7 +803,17 @@ export const init = ({ IDL }) => {
|
|
|
768
803
|
'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
769
804
|
'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
770
805
|
});
|
|
806
|
+
const Topic = IDL.Variant({
|
|
807
|
+
'DappCanisterManagement' : IDL.Null,
|
|
808
|
+
'DaoCommunitySettings' : IDL.Null,
|
|
809
|
+
'ApplicationBusinessLogic' : IDL.Null,
|
|
810
|
+
'CriticalDappOperations' : IDL.Null,
|
|
811
|
+
'TreasuryAssetManagement' : IDL.Null,
|
|
812
|
+
'Governance' : IDL.Null,
|
|
813
|
+
'SnsFrameworkManagement' : IDL.Null,
|
|
814
|
+
});
|
|
771
815
|
const GenericNervousSystemFunction = IDL.Record({
|
|
816
|
+
'topic' : IDL.Opt(Topic),
|
|
772
817
|
'validator_canister_id' : IDL.Opt(IDL.Principal),
|
|
773
818
|
'target_canister_id' : IDL.Opt(IDL.Principal),
|
|
774
819
|
'validator_method_name' : IDL.Opt(IDL.Text),
|
|
@@ -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 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) '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
|
});
|