@dfinity/sns 6.0.0 → 6.0.1-next-2025-11-26
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 +5 -962
- package/dist/candid/sns_governance.did +1 -1
- package/dist/candid/sns_governance_test.did +1 -1
- package/dist/candid/sns_root.certified.idl.js +19 -4
- package/dist/candid/sns_root.d.ts +13 -0
- package/dist/candid/sns_root.did +15 -1
- package/dist/candid/sns_root.idl.js +19 -4
- package/dist/candid/sns_swap.did +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 948d5b9 (2025-11-19 tags: release-2025-11-20_03-21-base) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
2
|
|
|
3
3
|
type Account = record {
|
|
4
4
|
owner : opt principal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 5e10dc3 (2025-11-24) 'packages/sns/src/candid/sns_governance_test.did.tmp' by import-candid
|
|
2
2
|
|
|
3
3
|
type Account = record {
|
|
4
4
|
owner : opt principal;
|
|
@@ -92,6 +92,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
92
92
|
canister_id: IDL.Principal,
|
|
93
93
|
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
94
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
|
+
});
|
|
95
109
|
const GetSnsCanistersSummaryRequest = IDL.Record({
|
|
96
110
|
update_canister_list: IDL.Opt(IDL.Bool),
|
|
97
111
|
});
|
|
@@ -159,10 +173,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
159
173
|
const RegisterExtensionRequest = IDL.Record({
|
|
160
174
|
canister_id: IDL.Opt(IDL.Principal),
|
|
161
175
|
});
|
|
162
|
-
const CanisterCallError = IDL.Record({
|
|
163
|
-
code: IDL.Opt(IDL.Int32),
|
|
164
|
-
description: IDL.Text,
|
|
165
|
-
});
|
|
166
176
|
const RegisterExtensionResult = IDL.Variant({
|
|
167
177
|
Ok: IDL.Record({}),
|
|
168
178
|
Err: CanisterCallError,
|
|
@@ -185,6 +195,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
185
195
|
return IDL.Service({
|
|
186
196
|
canister_status: IDL.Func([CanisterIdRecord], [CanisterStatusResult], []),
|
|
187
197
|
change_canister: IDL.Func([ChangeCanisterRequest], [], []),
|
|
198
|
+
clean_up_failed_register_extension: IDL.Func(
|
|
199
|
+
[CleanUpFailedRegisterExtensionRequest],
|
|
200
|
+
[CleanUpFailedRegisterExtensionResponse],
|
|
201
|
+
[],
|
|
202
|
+
),
|
|
188
203
|
get_build_metadata: IDL.Func([], [IDL.Text], []),
|
|
189
204
|
get_sns_canisters_summary: IDL.Func(
|
|
190
205
|
[GetSnsCanistersSummaryRequest],
|
|
@@ -63,6 +63,15 @@ export interface ChunkedCanisterWasm {
|
|
|
63
63
|
chunk_hashes_list: Array<Uint8Array>;
|
|
64
64
|
store_canister_id: Principal;
|
|
65
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 };
|
|
66
75
|
export interface DefiniteCanisterSettings {
|
|
67
76
|
freezing_threshold: [] | [bigint];
|
|
68
77
|
wasm_memory_threshold: [] | [bigint];
|
|
@@ -185,6 +194,10 @@ export interface Timers {
|
|
|
185
194
|
export interface _SERVICE {
|
|
186
195
|
canister_status: ActorMethod<[CanisterIdRecord], CanisterStatusResult>;
|
|
187
196
|
change_canister: ActorMethod<[ChangeCanisterRequest], undefined>;
|
|
197
|
+
clean_up_failed_register_extension: ActorMethod<
|
|
198
|
+
[CleanUpFailedRegisterExtensionRequest],
|
|
199
|
+
CleanUpFailedRegisterExtensionResponse
|
|
200
|
+
>;
|
|
188
201
|
get_build_metadata: ActorMethod<[], string>;
|
|
189
202
|
get_sns_canisters_summary: ActorMethod<
|
|
190
203
|
[GetSnsCanistersSummaryRequest],
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 948d5b9 (2025-11-19 tags: release-2025-11-20_03-21-base) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
2
|
|
|
3
3
|
type CanisterCallError = record {
|
|
4
4
|
code : opt int32;
|
|
@@ -166,6 +166,19 @@ type RegisterExtensionResponse = record {
|
|
|
166
166
|
result : opt RegisterExtensionResult;
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
+
type CleanUpFailedRegisterExtensionRequest = record {
|
|
170
|
+
canister_id : opt principal;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
type CleanUpFailedRegisterExtensionResult = variant {
|
|
174
|
+
Ok : record {};
|
|
175
|
+
Err : CanisterCallError;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
type CleanUpFailedRegisterExtensionResponse = record {
|
|
179
|
+
result : opt CleanUpFailedRegisterExtensionResult;
|
|
180
|
+
};
|
|
181
|
+
|
|
169
182
|
type RegisterDappCanisterRequest = record {
|
|
170
183
|
canister_id : opt principal;
|
|
171
184
|
};
|
|
@@ -212,6 +225,7 @@ type GetTimersResponse = record {
|
|
|
212
225
|
service : (SnsRootCanister) -> {
|
|
213
226
|
canister_status : (CanisterIdRecord) -> (CanisterStatusResult);
|
|
214
227
|
change_canister : (ChangeCanisterRequest) -> ();
|
|
228
|
+
clean_up_failed_register_extension : (CleanUpFailedRegisterExtensionRequest) -> (CleanUpFailedRegisterExtensionResponse);
|
|
215
229
|
get_build_metadata : () -> (text) query;
|
|
216
230
|
get_sns_canisters_summary : (GetSnsCanistersSummaryRequest) -> (
|
|
217
231
|
GetSnsCanistersSummaryResponse,
|
|
@@ -92,6 +92,20 @@ export const idlFactory = ({ IDL }) => {
|
|
|
92
92
|
canister_id: IDL.Principal,
|
|
93
93
|
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
94
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
|
+
});
|
|
95
109
|
const GetSnsCanistersSummaryRequest = IDL.Record({
|
|
96
110
|
update_canister_list: IDL.Opt(IDL.Bool),
|
|
97
111
|
});
|
|
@@ -159,10 +173,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
159
173
|
const RegisterExtensionRequest = IDL.Record({
|
|
160
174
|
canister_id: IDL.Opt(IDL.Principal),
|
|
161
175
|
});
|
|
162
|
-
const CanisterCallError = IDL.Record({
|
|
163
|
-
code: IDL.Opt(IDL.Int32),
|
|
164
|
-
description: IDL.Text,
|
|
165
|
-
});
|
|
166
176
|
const RegisterExtensionResult = IDL.Variant({
|
|
167
177
|
Ok: IDL.Record({}),
|
|
168
178
|
Err: CanisterCallError,
|
|
@@ -185,6 +195,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
185
195
|
return IDL.Service({
|
|
186
196
|
canister_status: IDL.Func([CanisterIdRecord], [CanisterStatusResult], []),
|
|
187
197
|
change_canister: IDL.Func([ChangeCanisterRequest], [], []),
|
|
198
|
+
clean_up_failed_register_extension: IDL.Func(
|
|
199
|
+
[CleanUpFailedRegisterExtensionRequest],
|
|
200
|
+
[CleanUpFailedRegisterExtensionResponse],
|
|
201
|
+
[],
|
|
202
|
+
),
|
|
188
203
|
get_build_metadata: IDL.Func([], [IDL.Text], ["query"]),
|
|
189
204
|
get_sns_canisters_summary: IDL.Func(
|
|
190
205
|
[GetSnsCanistersSummaryRequest],
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 948d5b9 (2025-11-19 tags: release-2025-11-20_03-21-base) 'rs/sns/swap/canister/swap.did' by import-candid
|
|
2
2
|
|
|
3
3
|
type BuyerState = record {
|
|
4
4
|
icp : opt TransferableAmount;
|