@dfinity/sns 6.0.1-next-2025-12-08.1 → 6.0.1-next-2025-12-10.1
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/index.d.ts +54 -19
- package/dist/index.js +1 -6
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -8
- package/dist/candid/sns_governance.certified.idl.d.ts +0 -2
- package/dist/candid/sns_governance.certified.idl.js +0 -1432
- package/dist/candid/sns_governance.d.ts +0 -933
- package/dist/candid/sns_governance.did +0 -1069
- package/dist/candid/sns_governance.idl.d.ts +0 -2
- package/dist/candid/sns_governance.idl.js +0 -1440
- package/dist/candid/sns_governance_test.certified.idl.d.ts +0 -2
- package/dist/candid/sns_governance_test.certified.idl.js +0 -1460
- package/dist/candid/sns_governance_test.d.ts +0 -962
- package/dist/candid/sns_governance_test.did +0 -1094
- package/dist/candid/sns_governance_test.idl.d.ts +0 -2
- package/dist/candid/sns_governance_test.idl.js +0 -1468
- package/dist/candid/sns_root.certified.idl.d.ts +0 -2
- package/dist/candid/sns_root.certified.idl.js +0 -266
- package/dist/candid/sns_root.d.ts +0 -225
- package/dist/candid/sns_root.did +0 -245
- package/dist/candid/sns_root.idl.d.ts +0 -2
- package/dist/candid/sns_root.idl.js +0 -266
- package/dist/candid/sns_swap.certified.idl.d.ts +0 -2
- package/dist/candid/sns_swap.certified.idl.js +0 -499
- package/dist/candid/sns_swap.d.ts +0 -438
- package/dist/candid/sns_swap.did +0 -505
- package/dist/candid/sns_swap.idl.d.ts +0 -2
- package/dist/candid/sns_swap.idl.js +0 -507
- package/dist/constants/governance.constants.d.ts +0 -8
- package/dist/converters/governance.converters.d.ts +0 -22
- package/dist/converters/swap.converters.d.ts +0 -3
- package/dist/enums/governance.enums.d.ts +0 -35
- package/dist/enums/swap.enums.d.ts +0 -22
- package/dist/errors/common.errors.d.ts +0 -4
- package/dist/errors/governance.errors.d.ts +0 -2
- package/dist/errors/swap.errors.d.ts +0 -16
- package/dist/governance.canister.d.ts +0 -138
- package/dist/governance_test.canister.d.ts +0 -16
- package/dist/root.canister.d.ts +0 -19
- package/dist/sns.d.ts +0 -21
- package/dist/sns.wrapper.d.ts +0 -160
- package/dist/swap.canister.d.ts +0 -47
- package/dist/types/actions.d.ts +0 -191
- package/dist/types/canister.options.d.ts +0 -5
- package/dist/types/common.d.ts +0 -2
- package/dist/types/governance.params.d.ts +0 -151
- package/dist/types/governance_test.params.d.ts +0 -7
- package/dist/types/swap.params.d.ts +0 -8
- package/dist/utils/error.utils.d.ts +0 -12
- package/dist/utils/governance.utils.d.ts +0 -14
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
|
-
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
-
|
|
9
|
-
export const idlFactory = ({ IDL }) => {
|
|
10
|
-
const Timers = IDL.Record({
|
|
11
|
-
last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
12
|
-
last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
13
|
-
requires_periodic_tasks: IDL.Opt(IDL.Bool),
|
|
14
|
-
});
|
|
15
|
-
const Extensions = IDL.Record({
|
|
16
|
-
extension_canister_ids: IDL.Vec(IDL.Principal),
|
|
17
|
-
});
|
|
18
|
-
const SnsRootCanister = IDL.Record({
|
|
19
|
-
dapp_canister_ids: IDL.Vec(IDL.Principal),
|
|
20
|
-
timers: IDL.Opt(Timers),
|
|
21
|
-
testflight: IDL.Bool,
|
|
22
|
-
extensions: IDL.Opt(Extensions),
|
|
23
|
-
archive_canister_ids: IDL.Vec(IDL.Principal),
|
|
24
|
-
governance_canister_id: IDL.Opt(IDL.Principal),
|
|
25
|
-
index_canister_id: IDL.Opt(IDL.Principal),
|
|
26
|
-
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
27
|
-
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
28
|
-
});
|
|
29
|
-
const CanisterIdRecord = IDL.Record({ canister_id: IDL.Principal });
|
|
30
|
-
const MemoryMetrics = IDL.Record({
|
|
31
|
-
wasm_binary_size: IDL.Opt(IDL.Nat),
|
|
32
|
-
wasm_chunk_store_size: IDL.Opt(IDL.Nat),
|
|
33
|
-
canister_history_size: IDL.Opt(IDL.Nat),
|
|
34
|
-
stable_memory_size: IDL.Opt(IDL.Nat),
|
|
35
|
-
snapshots_size: IDL.Opt(IDL.Nat),
|
|
36
|
-
wasm_memory_size: IDL.Opt(IDL.Nat),
|
|
37
|
-
global_memory_size: IDL.Opt(IDL.Nat),
|
|
38
|
-
custom_sections_size: IDL.Opt(IDL.Nat),
|
|
39
|
-
});
|
|
40
|
-
const CanisterStatusType = IDL.Variant({
|
|
41
|
-
stopped: IDL.Null,
|
|
42
|
-
stopping: IDL.Null,
|
|
43
|
-
running: IDL.Null,
|
|
44
|
-
});
|
|
45
|
-
const LogVisibility = IDL.Variant({
|
|
46
|
-
controllers: IDL.Null,
|
|
47
|
-
public: IDL.Null,
|
|
48
|
-
allowed_viewers: IDL.Vec(IDL.Principal),
|
|
49
|
-
});
|
|
50
|
-
const DefiniteCanisterSettings = IDL.Record({
|
|
51
|
-
freezing_threshold: IDL.Opt(IDL.Nat),
|
|
52
|
-
wasm_memory_threshold: IDL.Opt(IDL.Nat),
|
|
53
|
-
controllers: IDL.Vec(IDL.Principal),
|
|
54
|
-
reserved_cycles_limit: IDL.Opt(IDL.Nat),
|
|
55
|
-
log_visibility: IDL.Opt(LogVisibility),
|
|
56
|
-
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
57
|
-
memory_allocation: IDL.Opt(IDL.Nat),
|
|
58
|
-
compute_allocation: IDL.Opt(IDL.Nat),
|
|
59
|
-
});
|
|
60
|
-
const QueryStats = IDL.Record({
|
|
61
|
-
response_payload_bytes_total: IDL.Opt(IDL.Nat),
|
|
62
|
-
num_instructions_total: IDL.Opt(IDL.Nat),
|
|
63
|
-
num_calls_total: IDL.Opt(IDL.Nat),
|
|
64
|
-
request_payload_bytes_total: IDL.Opt(IDL.Nat),
|
|
65
|
-
});
|
|
66
|
-
const CanisterStatusResult = IDL.Record({
|
|
67
|
-
memory_metrics: IDL.Opt(MemoryMetrics),
|
|
68
|
-
status: CanisterStatusType,
|
|
69
|
-
memory_size: IDL.Nat,
|
|
70
|
-
cycles: IDL.Nat,
|
|
71
|
-
settings: DefiniteCanisterSettings,
|
|
72
|
-
query_stats: IDL.Opt(QueryStats),
|
|
73
|
-
idle_cycles_burned_per_day: IDL.Opt(IDL.Nat),
|
|
74
|
-
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
75
|
-
reserved_cycles: IDL.Opt(IDL.Nat),
|
|
76
|
-
});
|
|
77
|
-
const CanisterInstallMode = IDL.Variant({
|
|
78
|
-
reinstall: IDL.Null,
|
|
79
|
-
upgrade: IDL.Null,
|
|
80
|
-
install: IDL.Null,
|
|
81
|
-
});
|
|
82
|
-
const ChunkedCanisterWasm = IDL.Record({
|
|
83
|
-
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
84
|
-
chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
85
|
-
store_canister_id: IDL.Principal,
|
|
86
|
-
});
|
|
87
|
-
const ChangeCanisterRequest = IDL.Record({
|
|
88
|
-
arg: IDL.Vec(IDL.Nat8),
|
|
89
|
-
wasm_module: IDL.Vec(IDL.Nat8),
|
|
90
|
-
stop_before_installing: IDL.Bool,
|
|
91
|
-
mode: CanisterInstallMode,
|
|
92
|
-
canister_id: IDL.Principal,
|
|
93
|
-
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
94
|
-
});
|
|
95
|
-
const CleanUpFailedRegisterExtensionRequest = IDL.Record({
|
|
96
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
97
|
-
});
|
|
98
|
-
const CanisterCallError = IDL.Record({
|
|
99
|
-
code: IDL.Opt(IDL.Int32),
|
|
100
|
-
description: IDL.Text,
|
|
101
|
-
});
|
|
102
|
-
const CleanUpFailedRegisterExtensionResult = IDL.Variant({
|
|
103
|
-
Ok: IDL.Record({}),
|
|
104
|
-
Err: CanisterCallError,
|
|
105
|
-
});
|
|
106
|
-
const CleanUpFailedRegisterExtensionResponse = IDL.Record({
|
|
107
|
-
result: IDL.Opt(CleanUpFailedRegisterExtensionResult),
|
|
108
|
-
});
|
|
109
|
-
const GetSnsCanistersSummaryRequest = IDL.Record({
|
|
110
|
-
update_canister_list: IDL.Opt(IDL.Bool),
|
|
111
|
-
});
|
|
112
|
-
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
113
|
-
freezing_threshold: IDL.Nat,
|
|
114
|
-
wasm_memory_threshold: IDL.Opt(IDL.Nat),
|
|
115
|
-
controllers: IDL.Vec(IDL.Principal),
|
|
116
|
-
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
117
|
-
memory_allocation: IDL.Nat,
|
|
118
|
-
compute_allocation: IDL.Nat,
|
|
119
|
-
});
|
|
120
|
-
const CanisterStatusResultV2 = IDL.Record({
|
|
121
|
-
memory_metrics: IDL.Opt(MemoryMetrics),
|
|
122
|
-
status: CanisterStatusType,
|
|
123
|
-
memory_size: IDL.Nat,
|
|
124
|
-
cycles: IDL.Nat,
|
|
125
|
-
settings: DefiniteCanisterSettingsArgs,
|
|
126
|
-
query_stats: IDL.Opt(QueryStats),
|
|
127
|
-
idle_cycles_burned_per_day: IDL.Nat,
|
|
128
|
-
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
129
|
-
});
|
|
130
|
-
const CanisterSummary = IDL.Record({
|
|
131
|
-
status: IDL.Opt(CanisterStatusResultV2),
|
|
132
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
133
|
-
});
|
|
134
|
-
const GetSnsCanistersSummaryResponse = IDL.Record({
|
|
135
|
-
root: IDL.Opt(CanisterSummary),
|
|
136
|
-
swap: IDL.Opt(CanisterSummary),
|
|
137
|
-
ledger: IDL.Opt(CanisterSummary),
|
|
138
|
-
index: IDL.Opt(CanisterSummary),
|
|
139
|
-
governance: IDL.Opt(CanisterSummary),
|
|
140
|
-
dapps: IDL.Vec(CanisterSummary),
|
|
141
|
-
archives: IDL.Vec(CanisterSummary),
|
|
142
|
-
});
|
|
143
|
-
const GetTimersResponse = IDL.Record({ timers: IDL.Opt(Timers) });
|
|
144
|
-
const ListSnsCanistersResponse = IDL.Record({
|
|
145
|
-
root: IDL.Opt(IDL.Principal),
|
|
146
|
-
swap: IDL.Opt(IDL.Principal),
|
|
147
|
-
extensions: IDL.Opt(Extensions),
|
|
148
|
-
ledger: IDL.Opt(IDL.Principal),
|
|
149
|
-
index: IDL.Opt(IDL.Principal),
|
|
150
|
-
governance: IDL.Opt(IDL.Principal),
|
|
151
|
-
dapps: IDL.Vec(IDL.Principal),
|
|
152
|
-
archives: IDL.Vec(IDL.Principal),
|
|
153
|
-
});
|
|
154
|
-
const ManageDappCanisterSettingsRequest = IDL.Record({
|
|
155
|
-
freezing_threshold: IDL.Opt(IDL.Nat64),
|
|
156
|
-
wasm_memory_threshold: IDL.Opt(IDL.Nat64),
|
|
157
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
158
|
-
reserved_cycles_limit: IDL.Opt(IDL.Nat64),
|
|
159
|
-
log_visibility: IDL.Opt(IDL.Int32),
|
|
160
|
-
wasm_memory_limit: IDL.Opt(IDL.Nat64),
|
|
161
|
-
memory_allocation: IDL.Opt(IDL.Nat64),
|
|
162
|
-
compute_allocation: IDL.Opt(IDL.Nat64),
|
|
163
|
-
});
|
|
164
|
-
const ManageDappCanisterSettingsResponse = IDL.Record({
|
|
165
|
-
failure_reason: IDL.Opt(IDL.Text),
|
|
166
|
-
});
|
|
167
|
-
const RegisterDappCanisterRequest = IDL.Record({
|
|
168
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
169
|
-
});
|
|
170
|
-
const RegisterDappCanistersRequest = IDL.Record({
|
|
171
|
-
canister_ids: IDL.Vec(IDL.Principal),
|
|
172
|
-
});
|
|
173
|
-
const RegisterExtensionRequest = IDL.Record({
|
|
174
|
-
canister_id: IDL.Opt(IDL.Principal),
|
|
175
|
-
});
|
|
176
|
-
const RegisterExtensionResult = IDL.Variant({
|
|
177
|
-
Ok: IDL.Record({}),
|
|
178
|
-
Err: CanisterCallError,
|
|
179
|
-
});
|
|
180
|
-
const RegisterExtensionResponse = IDL.Record({
|
|
181
|
-
result: IDL.Opt(RegisterExtensionResult),
|
|
182
|
-
});
|
|
183
|
-
const SetDappControllersRequest = IDL.Record({
|
|
184
|
-
canister_ids: IDL.Opt(RegisterDappCanistersRequest),
|
|
185
|
-
controller_principal_ids: IDL.Vec(IDL.Principal),
|
|
186
|
-
});
|
|
187
|
-
const FailedUpdate = IDL.Record({
|
|
188
|
-
err: IDL.Opt(CanisterCallError),
|
|
189
|
-
dapp_canister_id: IDL.Opt(IDL.Principal),
|
|
190
|
-
});
|
|
191
|
-
const SetDappControllersResponse = IDL.Record({
|
|
192
|
-
failed_updates: IDL.Vec(FailedUpdate),
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
return IDL.Service({
|
|
196
|
-
canister_status: IDL.Func([CanisterIdRecord], [CanisterStatusResult], []),
|
|
197
|
-
change_canister: IDL.Func([ChangeCanisterRequest], [], []),
|
|
198
|
-
clean_up_failed_register_extension: IDL.Func(
|
|
199
|
-
[CleanUpFailedRegisterExtensionRequest],
|
|
200
|
-
[CleanUpFailedRegisterExtensionResponse],
|
|
201
|
-
[],
|
|
202
|
-
),
|
|
203
|
-
get_build_metadata: IDL.Func([], [IDL.Text], []),
|
|
204
|
-
get_sns_canisters_summary: IDL.Func(
|
|
205
|
-
[GetSnsCanistersSummaryRequest],
|
|
206
|
-
[GetSnsCanistersSummaryResponse],
|
|
207
|
-
[],
|
|
208
|
-
),
|
|
209
|
-
get_timers: IDL.Func([IDL.Record({})], [GetTimersResponse], []),
|
|
210
|
-
list_sns_canisters: IDL.Func(
|
|
211
|
-
[IDL.Record({})],
|
|
212
|
-
[ListSnsCanistersResponse],
|
|
213
|
-
[],
|
|
214
|
-
),
|
|
215
|
-
manage_dapp_canister_settings: IDL.Func(
|
|
216
|
-
[ManageDappCanisterSettingsRequest],
|
|
217
|
-
[ManageDappCanisterSettingsResponse],
|
|
218
|
-
[],
|
|
219
|
-
),
|
|
220
|
-
register_dapp_canister: IDL.Func(
|
|
221
|
-
[RegisterDappCanisterRequest],
|
|
222
|
-
[IDL.Record({})],
|
|
223
|
-
[],
|
|
224
|
-
),
|
|
225
|
-
register_dapp_canisters: IDL.Func(
|
|
226
|
-
[RegisterDappCanistersRequest],
|
|
227
|
-
[IDL.Record({})],
|
|
228
|
-
[],
|
|
229
|
-
),
|
|
230
|
-
register_extension: IDL.Func(
|
|
231
|
-
[RegisterExtensionRequest],
|
|
232
|
-
[RegisterExtensionResponse],
|
|
233
|
-
[],
|
|
234
|
-
),
|
|
235
|
-
reset_timers: IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
236
|
-
set_dapp_controllers: IDL.Func(
|
|
237
|
-
[SetDappControllersRequest],
|
|
238
|
-
[SetDappControllersResponse],
|
|
239
|
-
[],
|
|
240
|
-
),
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
export const init = ({ IDL }) => {
|
|
245
|
-
const Timers = IDL.Record({
|
|
246
|
-
last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
247
|
-
last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
248
|
-
requires_periodic_tasks: IDL.Opt(IDL.Bool),
|
|
249
|
-
});
|
|
250
|
-
const Extensions = IDL.Record({
|
|
251
|
-
extension_canister_ids: IDL.Vec(IDL.Principal),
|
|
252
|
-
});
|
|
253
|
-
const SnsRootCanister = IDL.Record({
|
|
254
|
-
dapp_canister_ids: IDL.Vec(IDL.Principal),
|
|
255
|
-
timers: IDL.Opt(Timers),
|
|
256
|
-
testflight: IDL.Bool,
|
|
257
|
-
extensions: IDL.Opt(Extensions),
|
|
258
|
-
archive_canister_ids: IDL.Vec(IDL.Principal),
|
|
259
|
-
governance_canister_id: IDL.Opt(IDL.Principal),
|
|
260
|
-
index_canister_id: IDL.Opt(IDL.Principal),
|
|
261
|
-
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
262
|
-
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
return [SnsRootCanister];
|
|
266
|
-
};
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
|
-
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
-
|
|
9
|
-
import type { ActorMethod } from "@icp-sdk/core/agent";
|
|
10
|
-
import type { IDL } from "@icp-sdk/core/candid";
|
|
11
|
-
import type { Principal } from "@icp-sdk/core/principal";
|
|
12
|
-
|
|
13
|
-
export interface CanisterCallError {
|
|
14
|
-
code: [] | [number];
|
|
15
|
-
description: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CanisterIdRecord {
|
|
18
|
-
canister_id: Principal;
|
|
19
|
-
}
|
|
20
|
-
export type CanisterInstallMode =
|
|
21
|
-
| { reinstall: null }
|
|
22
|
-
| { upgrade: null }
|
|
23
|
-
| { install: null };
|
|
24
|
-
export interface CanisterStatusResult {
|
|
25
|
-
memory_metrics: [] | [MemoryMetrics];
|
|
26
|
-
status: CanisterStatusType;
|
|
27
|
-
memory_size: bigint;
|
|
28
|
-
cycles: bigint;
|
|
29
|
-
settings: DefiniteCanisterSettings;
|
|
30
|
-
query_stats: [] | [QueryStats];
|
|
31
|
-
idle_cycles_burned_per_day: [] | [bigint];
|
|
32
|
-
module_hash: [] | [Uint8Array];
|
|
33
|
-
reserved_cycles: [] | [bigint];
|
|
34
|
-
}
|
|
35
|
-
export interface CanisterStatusResultV2 {
|
|
36
|
-
memory_metrics: [] | [MemoryMetrics];
|
|
37
|
-
status: CanisterStatusType;
|
|
38
|
-
memory_size: bigint;
|
|
39
|
-
cycles: bigint;
|
|
40
|
-
settings: DefiniteCanisterSettingsArgs;
|
|
41
|
-
query_stats: [] | [QueryStats];
|
|
42
|
-
idle_cycles_burned_per_day: bigint;
|
|
43
|
-
module_hash: [] | [Uint8Array];
|
|
44
|
-
}
|
|
45
|
-
export type CanisterStatusType =
|
|
46
|
-
| { stopped: null }
|
|
47
|
-
| { stopping: null }
|
|
48
|
-
| { running: null };
|
|
49
|
-
export interface CanisterSummary {
|
|
50
|
-
status: [] | [CanisterStatusResultV2];
|
|
51
|
-
canister_id: [] | [Principal];
|
|
52
|
-
}
|
|
53
|
-
export interface ChangeCanisterRequest {
|
|
54
|
-
arg: Uint8Array;
|
|
55
|
-
wasm_module: Uint8Array;
|
|
56
|
-
stop_before_installing: boolean;
|
|
57
|
-
mode: CanisterInstallMode;
|
|
58
|
-
canister_id: Principal;
|
|
59
|
-
chunked_canister_wasm: [] | [ChunkedCanisterWasm];
|
|
60
|
-
}
|
|
61
|
-
export interface ChunkedCanisterWasm {
|
|
62
|
-
wasm_module_hash: Uint8Array;
|
|
63
|
-
chunk_hashes_list: Array<Uint8Array>;
|
|
64
|
-
store_canister_id: Principal;
|
|
65
|
-
}
|
|
66
|
-
export interface CleanUpFailedRegisterExtensionRequest {
|
|
67
|
-
canister_id: [] | [Principal];
|
|
68
|
-
}
|
|
69
|
-
export interface CleanUpFailedRegisterExtensionResponse {
|
|
70
|
-
result: [] | [CleanUpFailedRegisterExtensionResult];
|
|
71
|
-
}
|
|
72
|
-
export type CleanUpFailedRegisterExtensionResult =
|
|
73
|
-
| { Ok: {} }
|
|
74
|
-
| { Err: CanisterCallError };
|
|
75
|
-
export interface DefiniteCanisterSettings {
|
|
76
|
-
freezing_threshold: [] | [bigint];
|
|
77
|
-
wasm_memory_threshold: [] | [bigint];
|
|
78
|
-
controllers: Array<Principal>;
|
|
79
|
-
reserved_cycles_limit: [] | [bigint];
|
|
80
|
-
log_visibility: [] | [LogVisibility];
|
|
81
|
-
wasm_memory_limit: [] | [bigint];
|
|
82
|
-
memory_allocation: [] | [bigint];
|
|
83
|
-
compute_allocation: [] | [bigint];
|
|
84
|
-
}
|
|
85
|
-
export interface DefiniteCanisterSettingsArgs {
|
|
86
|
-
freezing_threshold: bigint;
|
|
87
|
-
wasm_memory_threshold: [] | [bigint];
|
|
88
|
-
controllers: Array<Principal>;
|
|
89
|
-
wasm_memory_limit: [] | [bigint];
|
|
90
|
-
memory_allocation: bigint;
|
|
91
|
-
compute_allocation: bigint;
|
|
92
|
-
}
|
|
93
|
-
export interface Extensions {
|
|
94
|
-
extension_canister_ids: Array<Principal>;
|
|
95
|
-
}
|
|
96
|
-
export interface FailedUpdate {
|
|
97
|
-
err: [] | [CanisterCallError];
|
|
98
|
-
dapp_canister_id: [] | [Principal];
|
|
99
|
-
}
|
|
100
|
-
export interface GetSnsCanistersSummaryRequest {
|
|
101
|
-
update_canister_list: [] | [boolean];
|
|
102
|
-
}
|
|
103
|
-
export interface GetSnsCanistersSummaryResponse {
|
|
104
|
-
root: [] | [CanisterSummary];
|
|
105
|
-
swap: [] | [CanisterSummary];
|
|
106
|
-
ledger: [] | [CanisterSummary];
|
|
107
|
-
index: [] | [CanisterSummary];
|
|
108
|
-
governance: [] | [CanisterSummary];
|
|
109
|
-
dapps: Array<CanisterSummary>;
|
|
110
|
-
archives: Array<CanisterSummary>;
|
|
111
|
-
}
|
|
112
|
-
export interface GetTimersResponse {
|
|
113
|
-
timers: [] | [Timers];
|
|
114
|
-
}
|
|
115
|
-
export interface ListSnsCanistersResponse {
|
|
116
|
-
root: [] | [Principal];
|
|
117
|
-
swap: [] | [Principal];
|
|
118
|
-
extensions: [] | [Extensions];
|
|
119
|
-
ledger: [] | [Principal];
|
|
120
|
-
index: [] | [Principal];
|
|
121
|
-
governance: [] | [Principal];
|
|
122
|
-
dapps: Array<Principal>;
|
|
123
|
-
archives: Array<Principal>;
|
|
124
|
-
}
|
|
125
|
-
export type LogVisibility =
|
|
126
|
-
| { controllers: null }
|
|
127
|
-
| { public: null }
|
|
128
|
-
| { allowed_viewers: Array<Principal> };
|
|
129
|
-
export interface ManageDappCanisterSettingsRequest {
|
|
130
|
-
freezing_threshold: [] | [bigint];
|
|
131
|
-
wasm_memory_threshold: [] | [bigint];
|
|
132
|
-
canister_ids: Array<Principal>;
|
|
133
|
-
reserved_cycles_limit: [] | [bigint];
|
|
134
|
-
log_visibility: [] | [number];
|
|
135
|
-
wasm_memory_limit: [] | [bigint];
|
|
136
|
-
memory_allocation: [] | [bigint];
|
|
137
|
-
compute_allocation: [] | [bigint];
|
|
138
|
-
}
|
|
139
|
-
export interface ManageDappCanisterSettingsResponse {
|
|
140
|
-
failure_reason: [] | [string];
|
|
141
|
-
}
|
|
142
|
-
export interface MemoryMetrics {
|
|
143
|
-
wasm_binary_size: [] | [bigint];
|
|
144
|
-
wasm_chunk_store_size: [] | [bigint];
|
|
145
|
-
canister_history_size: [] | [bigint];
|
|
146
|
-
stable_memory_size: [] | [bigint];
|
|
147
|
-
snapshots_size: [] | [bigint];
|
|
148
|
-
wasm_memory_size: [] | [bigint];
|
|
149
|
-
global_memory_size: [] | [bigint];
|
|
150
|
-
custom_sections_size: [] | [bigint];
|
|
151
|
-
}
|
|
152
|
-
export interface QueryStats {
|
|
153
|
-
response_payload_bytes_total: [] | [bigint];
|
|
154
|
-
num_instructions_total: [] | [bigint];
|
|
155
|
-
num_calls_total: [] | [bigint];
|
|
156
|
-
request_payload_bytes_total: [] | [bigint];
|
|
157
|
-
}
|
|
158
|
-
export interface RegisterDappCanisterRequest {
|
|
159
|
-
canister_id: [] | [Principal];
|
|
160
|
-
}
|
|
161
|
-
export interface RegisterDappCanistersRequest {
|
|
162
|
-
canister_ids: Array<Principal>;
|
|
163
|
-
}
|
|
164
|
-
export interface RegisterExtensionRequest {
|
|
165
|
-
canister_id: [] | [Principal];
|
|
166
|
-
}
|
|
167
|
-
export interface RegisterExtensionResponse {
|
|
168
|
-
result: [] | [RegisterExtensionResult];
|
|
169
|
-
}
|
|
170
|
-
export type RegisterExtensionResult = { Ok: {} } | { Err: CanisterCallError };
|
|
171
|
-
export interface SetDappControllersRequest {
|
|
172
|
-
canister_ids: [] | [RegisterDappCanistersRequest];
|
|
173
|
-
controller_principal_ids: Array<Principal>;
|
|
174
|
-
}
|
|
175
|
-
export interface SetDappControllersResponse {
|
|
176
|
-
failed_updates: Array<FailedUpdate>;
|
|
177
|
-
}
|
|
178
|
-
export interface SnsRootCanister {
|
|
179
|
-
dapp_canister_ids: Array<Principal>;
|
|
180
|
-
timers: [] | [Timers];
|
|
181
|
-
testflight: boolean;
|
|
182
|
-
extensions: [] | [Extensions];
|
|
183
|
-
archive_canister_ids: Array<Principal>;
|
|
184
|
-
governance_canister_id: [] | [Principal];
|
|
185
|
-
index_canister_id: [] | [Principal];
|
|
186
|
-
swap_canister_id: [] | [Principal];
|
|
187
|
-
ledger_canister_id: [] | [Principal];
|
|
188
|
-
}
|
|
189
|
-
export interface Timers {
|
|
190
|
-
last_spawned_timestamp_seconds: [] | [bigint];
|
|
191
|
-
last_reset_timestamp_seconds: [] | [bigint];
|
|
192
|
-
requires_periodic_tasks: [] | [boolean];
|
|
193
|
-
}
|
|
194
|
-
export interface _SERVICE {
|
|
195
|
-
canister_status: ActorMethod<[CanisterIdRecord], CanisterStatusResult>;
|
|
196
|
-
change_canister: ActorMethod<[ChangeCanisterRequest], undefined>;
|
|
197
|
-
clean_up_failed_register_extension: ActorMethod<
|
|
198
|
-
[CleanUpFailedRegisterExtensionRequest],
|
|
199
|
-
CleanUpFailedRegisterExtensionResponse
|
|
200
|
-
>;
|
|
201
|
-
get_build_metadata: ActorMethod<[], string>;
|
|
202
|
-
get_sns_canisters_summary: ActorMethod<
|
|
203
|
-
[GetSnsCanistersSummaryRequest],
|
|
204
|
-
GetSnsCanistersSummaryResponse
|
|
205
|
-
>;
|
|
206
|
-
get_timers: ActorMethod<[{}], GetTimersResponse>;
|
|
207
|
-
list_sns_canisters: ActorMethod<[{}], ListSnsCanistersResponse>;
|
|
208
|
-
manage_dapp_canister_settings: ActorMethod<
|
|
209
|
-
[ManageDappCanisterSettingsRequest],
|
|
210
|
-
ManageDappCanisterSettingsResponse
|
|
211
|
-
>;
|
|
212
|
-
register_dapp_canister: ActorMethod<[RegisterDappCanisterRequest], {}>;
|
|
213
|
-
register_dapp_canisters: ActorMethod<[RegisterDappCanistersRequest], {}>;
|
|
214
|
-
register_extension: ActorMethod<
|
|
215
|
-
[RegisterExtensionRequest],
|
|
216
|
-
RegisterExtensionResponse
|
|
217
|
-
>;
|
|
218
|
-
reset_timers: ActorMethod<[{}], {}>;
|
|
219
|
-
set_dapp_controllers: ActorMethod<
|
|
220
|
-
[SetDappControllersRequest],
|
|
221
|
-
SetDappControllersResponse
|
|
222
|
-
>;
|
|
223
|
-
}
|
|
224
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
225
|
-
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|