@dfinity/sns 3.2.8 → 3.2.9-next-2025-02-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 +11 -0
- package/dist/candid/sns_governance.d.ts +9 -0
- package/dist/candid/sns_governance.did +11 -1
- package/dist/candid/sns_governance.idl.js +11 -0
- package/dist/candid/sns_governance_test.certified.idl.js +11 -0
- package/dist/candid/sns_governance_test.d.ts +9 -0
- package/dist/candid/sns_governance_test.did +11 -1
- package/dist/candid/sns_governance_test.idl.js +11 -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-5ZINPFQJ.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-WN7KNJGB.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/types/actions.d.ts +1 -0
- package/package.json +7 -7
- package/dist/esm/chunk-A7UJA62V.js +0 -2
- package/dist/esm/chunk-A7UJA62V.js.map +0 -7
- package/dist/esm/chunk-BKBI2NNR.js +0 -2
- package/dist/esm/chunk-BKBI2NNR.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-5ZINPFQJ.js.map → chunk-BA2F4FQ5.js.map} +0 -0
|
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
67
67
|
const TargetVersionSet = IDL.Record({
|
|
68
68
|
'old_target_version' : IDL.Opt(Version),
|
|
69
69
|
'new_target_version' : IDL.Opt(Version),
|
|
70
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
70
71
|
});
|
|
71
72
|
const UpgradeStepsReset = IDL.Record({
|
|
72
73
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
137
138
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
138
139
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
139
140
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
141
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
140
142
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
141
143
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
142
144
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -539,11 +541,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
539
541
|
'memory_allocation' : IDL.Nat,
|
|
540
542
|
'compute_allocation' : IDL.Nat,
|
|
541
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
|
+
});
|
|
542
550
|
const CanisterStatusResultV2 = IDL.Record({
|
|
543
551
|
'status' : CanisterStatusType,
|
|
544
552
|
'memory_size' : IDL.Nat,
|
|
545
553
|
'cycles' : IDL.Nat,
|
|
546
554
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
555
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
547
556
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
548
557
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
549
558
|
});
|
|
@@ -778,6 +787,7 @@ export const init = ({ IDL }) => {
|
|
|
778
787
|
const TargetVersionSet = IDL.Record({
|
|
779
788
|
'old_target_version' : IDL.Opt(Version),
|
|
780
789
|
'new_target_version' : IDL.Opt(Version),
|
|
790
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
781
791
|
});
|
|
782
792
|
const UpgradeStepsReset = IDL.Record({
|
|
783
793
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -848,6 +858,7 @@ export const init = ({ IDL }) => {
|
|
|
848
858
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
849
859
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
850
860
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
861
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
851
862
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
852
863
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
853
864
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -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
|
}
|
|
@@ -398,6 +399,7 @@ export interface NervousSystemParameters {
|
|
|
398
399
|
max_dissolve_delay_seconds: [] | [bigint];
|
|
399
400
|
max_dissolve_delay_bonus_percentage: [] | [bigint];
|
|
400
401
|
max_followees_per_function: [] | [bigint];
|
|
402
|
+
automatically_advance_target_version: [] | [boolean];
|
|
401
403
|
neuron_claimer_permissions: [] | [NeuronPermissionList];
|
|
402
404
|
neuron_minimum_stake_e8s: [] | [bigint];
|
|
403
405
|
max_neuron_age_for_age_bonus: [] | [bigint];
|
|
@@ -528,6 +530,12 @@ export interface ProposalData {
|
|
|
528
530
|
export interface ProposalId {
|
|
529
531
|
id: bigint;
|
|
530
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
|
+
}
|
|
531
539
|
export interface RegisterDappCanisters {
|
|
532
540
|
canister_ids: Array<Principal>;
|
|
533
541
|
}
|
|
@@ -599,6 +607,7 @@ export interface TargetVersionReset {
|
|
|
599
607
|
export interface TargetVersionSet {
|
|
600
608
|
old_target_version: [] | [Version];
|
|
601
609
|
new_target_version: [] | [Version];
|
|
610
|
+
is_advanced_automatically: [] | [boolean];
|
|
602
611
|
}
|
|
603
612
|
export interface Timers {
|
|
604
613
|
last_spawned_timestamp_seconds: [] | [bigint];
|
|
@@ -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 {
|
|
@@ -482,6 +483,7 @@ type NervousSystemParameters = record {
|
|
|
482
483
|
voting_rewards_parameters : opt VotingRewardsParameters;
|
|
483
484
|
maturity_modulation_disabled : opt bool;
|
|
484
485
|
max_number_of_principals_per_neuron : opt nat64;
|
|
486
|
+
automatically_advance_target_version : opt bool;
|
|
485
487
|
};
|
|
486
488
|
|
|
487
489
|
type Neuron = record {
|
|
@@ -610,6 +612,13 @@ type ProposalId = record {
|
|
|
610
612
|
id : nat64;
|
|
611
613
|
};
|
|
612
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
|
+
|
|
613
622
|
type RegisterDappCanisters = record {
|
|
614
623
|
canister_ids : vec principal;
|
|
615
624
|
};
|
|
@@ -785,6 +794,7 @@ type UpgradeStepsReset = record {
|
|
|
785
794
|
type TargetVersionSet = record {
|
|
786
795
|
new_target_version : opt Version;
|
|
787
796
|
old_target_version : opt Version;
|
|
797
|
+
is_advanced_automatically : opt bool;
|
|
788
798
|
};
|
|
789
799
|
|
|
790
800
|
type TargetVersionReset = record {
|
|
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
67
67
|
const TargetVersionSet = IDL.Record({
|
|
68
68
|
'old_target_version' : IDL.Opt(Version),
|
|
69
69
|
'new_target_version' : IDL.Opt(Version),
|
|
70
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
70
71
|
});
|
|
71
72
|
const UpgradeStepsReset = IDL.Record({
|
|
72
73
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
137
138
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
138
139
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
139
140
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
141
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
140
142
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
141
143
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
142
144
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -539,11 +541,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
539
541
|
'memory_allocation' : IDL.Nat,
|
|
540
542
|
'compute_allocation' : IDL.Nat,
|
|
541
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
|
+
});
|
|
542
550
|
const CanisterStatusResultV2 = IDL.Record({
|
|
543
551
|
'status' : CanisterStatusType,
|
|
544
552
|
'memory_size' : IDL.Nat,
|
|
545
553
|
'cycles' : IDL.Nat,
|
|
546
554
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
555
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
547
556
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
548
557
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
549
558
|
});
|
|
@@ -786,6 +795,7 @@ export const init = ({ IDL }) => {
|
|
|
786
795
|
const TargetVersionSet = IDL.Record({
|
|
787
796
|
'old_target_version' : IDL.Opt(Version),
|
|
788
797
|
'new_target_version' : IDL.Opt(Version),
|
|
798
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
789
799
|
});
|
|
790
800
|
const UpgradeStepsReset = IDL.Record({
|
|
791
801
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -856,6 +866,7 @@ export const init = ({ IDL }) => {
|
|
|
856
866
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
857
867
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
858
868
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
869
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
859
870
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
860
871
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
861
872
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
67
67
|
const TargetVersionSet = IDL.Record({
|
|
68
68
|
'old_target_version' : IDL.Opt(Version),
|
|
69
69
|
'new_target_version' : IDL.Opt(Version),
|
|
70
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
70
71
|
});
|
|
71
72
|
const UpgradeStepsReset = IDL.Record({
|
|
72
73
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
137
138
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
138
139
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
139
140
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
141
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
140
142
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
141
143
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
142
144
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -550,11 +552,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
552
|
'memory_allocation' : IDL.Nat,
|
|
551
553
|
'compute_allocation' : IDL.Nat,
|
|
552
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
|
+
});
|
|
553
561
|
const CanisterStatusResultV2 = IDL.Record({
|
|
554
562
|
'status' : CanisterStatusType,
|
|
555
563
|
'memory_size' : IDL.Nat,
|
|
556
564
|
'cycles' : IDL.Nat,
|
|
557
565
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
566
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
558
567
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
559
568
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
560
569
|
});
|
|
@@ -806,6 +815,7 @@ export const init = ({ IDL }) => {
|
|
|
806
815
|
const TargetVersionSet = IDL.Record({
|
|
807
816
|
'old_target_version' : IDL.Opt(Version),
|
|
808
817
|
'new_target_version' : IDL.Opt(Version),
|
|
818
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
809
819
|
});
|
|
810
820
|
const UpgradeStepsReset = IDL.Record({
|
|
811
821
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -876,6 +886,7 @@ export const init = ({ IDL }) => {
|
|
|
876
886
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
877
887
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
878
888
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
889
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
879
890
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
880
891
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
881
892
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -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
|
}
|
|
@@ -413,6 +414,7 @@ export interface NervousSystemParameters {
|
|
|
413
414
|
max_dissolve_delay_seconds: [] | [bigint];
|
|
414
415
|
max_dissolve_delay_bonus_percentage: [] | [bigint];
|
|
415
416
|
max_followees_per_function: [] | [bigint];
|
|
417
|
+
automatically_advance_target_version: [] | [boolean];
|
|
416
418
|
neuron_claimer_permissions: [] | [NeuronPermissionList];
|
|
417
419
|
neuron_minimum_stake_e8s: [] | [bigint];
|
|
418
420
|
max_neuron_age_for_age_bonus: [] | [bigint];
|
|
@@ -543,6 +545,12 @@ export interface ProposalData {
|
|
|
543
545
|
export interface ProposalId {
|
|
544
546
|
id: bigint;
|
|
545
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
|
+
}
|
|
546
554
|
export interface RegisterDappCanisters {
|
|
547
555
|
canister_ids: Array<Principal>;
|
|
548
556
|
}
|
|
@@ -614,6 +622,7 @@ export interface TargetVersionReset {
|
|
|
614
622
|
export interface TargetVersionSet {
|
|
615
623
|
old_target_version: [] | [Version];
|
|
616
624
|
new_target_version: [] | [Version];
|
|
625
|
+
is_advanced_automatically: [] | [boolean];
|
|
617
626
|
}
|
|
618
627
|
export interface Timers {
|
|
619
628
|
last_spawned_timestamp_seconds: [] | [bigint];
|
|
@@ -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 {
|
|
@@ -496,6 +497,7 @@ type NervousSystemParameters = record {
|
|
|
496
497
|
voting_rewards_parameters : opt VotingRewardsParameters;
|
|
497
498
|
maturity_modulation_disabled : opt bool;
|
|
498
499
|
max_number_of_principals_per_neuron : opt nat64;
|
|
500
|
+
automatically_advance_target_version : opt bool;
|
|
499
501
|
};
|
|
500
502
|
|
|
501
503
|
type Neuron = record {
|
|
@@ -624,6 +626,13 @@ type ProposalId = record {
|
|
|
624
626
|
id : nat64;
|
|
625
627
|
};
|
|
626
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
|
+
|
|
627
636
|
type RegisterDappCanisters = record {
|
|
628
637
|
canister_ids : vec principal;
|
|
629
638
|
};
|
|
@@ -799,6 +808,7 @@ type UpgradeStepsReset = record {
|
|
|
799
808
|
type TargetVersionSet = record {
|
|
800
809
|
new_target_version : opt Version;
|
|
801
810
|
old_target_version : opt Version;
|
|
811
|
+
is_advanced_automatically : opt bool;
|
|
802
812
|
};
|
|
803
813
|
|
|
804
814
|
type TargetVersionReset = record {
|
|
@@ -67,6 +67,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
67
67
|
const TargetVersionSet = IDL.Record({
|
|
68
68
|
'old_target_version' : IDL.Opt(Version),
|
|
69
69
|
'new_target_version' : IDL.Opt(Version),
|
|
70
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
70
71
|
});
|
|
71
72
|
const UpgradeStepsReset = IDL.Record({
|
|
72
73
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -137,6 +138,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
137
138
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
138
139
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
139
140
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
141
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
140
142
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
141
143
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
142
144
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -550,11 +552,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
552
|
'memory_allocation' : IDL.Nat,
|
|
551
553
|
'compute_allocation' : IDL.Nat,
|
|
552
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
|
+
});
|
|
553
561
|
const CanisterStatusResultV2 = IDL.Record({
|
|
554
562
|
'status' : CanisterStatusType,
|
|
555
563
|
'memory_size' : IDL.Nat,
|
|
556
564
|
'cycles' : IDL.Nat,
|
|
557
565
|
'settings' : DefiniteCanisterSettingsArgs,
|
|
566
|
+
'query_stats' : IDL.Opt(QueryStats),
|
|
558
567
|
'idle_cycles_burned_per_day' : IDL.Nat,
|
|
559
568
|
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
560
569
|
});
|
|
@@ -814,6 +823,7 @@ export const init = ({ IDL }) => {
|
|
|
814
823
|
const TargetVersionSet = IDL.Record({
|
|
815
824
|
'old_target_version' : IDL.Opt(Version),
|
|
816
825
|
'new_target_version' : IDL.Opt(Version),
|
|
826
|
+
'is_advanced_automatically' : IDL.Opt(IDL.Bool),
|
|
817
827
|
});
|
|
818
828
|
const UpgradeStepsReset = IDL.Record({
|
|
819
829
|
'human_readable' : IDL.Opt(IDL.Text),
|
|
@@ -884,6 +894,7 @@ export const init = ({ IDL }) => {
|
|
|
884
894
|
'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
|
|
885
895
|
'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
|
|
886
896
|
'max_followees_per_function' : IDL.Opt(IDL.Nat64),
|
|
897
|
+
'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
|
|
887
898
|
'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
|
|
888
899
|
'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
|
|
889
900
|
'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
|
|
@@ -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
|
});
|