@dfinity/sns 3.7.1-beta-2025-07-18 → 3.7.1-beta-2025-07-23
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.did +1 -1
- package/dist/candid/sns_governance_test.did +1 -1
- package/dist/candid/sns_root.certified.idl.js +27 -3
- package/dist/candid/sns_root.d.ts +16 -0
- package/dist/candid/sns_root.did +21 -1
- package/dist/candid/sns_root.idl.js +27 -3
- package/dist/candid/sns_swap.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/{chunk-2WM2BPXJ.js → chunk-IGMC3TOF.js} +2 -2
- package/dist/esm/chunk-L3XCDVTR.js +2 -0
- package/dist/esm/chunk-L3XCDVTR.js.map +7 -0
- package/dist/esm/chunk-Y6XGADSI.js +7 -0
- package/dist/esm/chunk-Y6XGADSI.js.map +7 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/package.json +2 -2
- package/dist/esm/chunk-C4535TGA.js +0 -7
- package/dist/esm/chunk-C4535TGA.js.map +0 -7
- package/dist/esm/chunk-RABWAJNE.js +0 -2
- package/dist/esm/chunk-RABWAJNE.js.map +0 -7
- /package/dist/esm/{chunk-2WM2BPXJ.js.map → chunk-IGMC3TOF.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 143a635 (2025-07-17 tags: release-2025-07-17_11-23-base) 'rs/sns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type Account = record {
|
|
3
3
|
owner : opt principal;
|
|
4
4
|
subaccount : opt Subaccount;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 143a635 (2025-07-17 tags: release-2025-07-17_11-23-base) '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;
|
|
@@ -5,10 +5,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
5
5
|
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
6
|
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
7
7
|
});
|
|
8
|
+
const Extensions = IDL.Record({
|
|
9
|
+
'extension_canister_ids' : IDL.Vec(IDL.Principal),
|
|
10
|
+
});
|
|
8
11
|
const SnsRootCanister = IDL.Record({
|
|
9
12
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
10
13
|
'timers' : IDL.Opt(Timers),
|
|
11
14
|
'testflight' : IDL.Bool,
|
|
15
|
+
'extensions' : IDL.Opt(Extensions),
|
|
12
16
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
13
17
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
14
18
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -107,6 +111,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
107
111
|
const ListSnsCanistersResponse = IDL.Record({
|
|
108
112
|
'root' : IDL.Opt(IDL.Principal),
|
|
109
113
|
'swap' : IDL.Opt(IDL.Principal),
|
|
114
|
+
'extensions' : IDL.Opt(Extensions),
|
|
110
115
|
'ledger' : IDL.Opt(IDL.Principal),
|
|
111
116
|
'index' : IDL.Opt(IDL.Principal),
|
|
112
117
|
'governance' : IDL.Opt(IDL.Principal),
|
|
@@ -132,14 +137,24 @@ export const idlFactory = ({ IDL }) => {
|
|
|
132
137
|
const RegisterDappCanistersRequest = IDL.Record({
|
|
133
138
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
134
139
|
});
|
|
135
|
-
const
|
|
136
|
-
'
|
|
137
|
-
'controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
140
|
+
const RegisterExtensionRequest = IDL.Record({
|
|
141
|
+
'canister_id' : IDL.Opt(IDL.Principal),
|
|
138
142
|
});
|
|
139
143
|
const CanisterCallError = IDL.Record({
|
|
140
144
|
'code' : IDL.Opt(IDL.Int32),
|
|
141
145
|
'description' : IDL.Text,
|
|
142
146
|
});
|
|
147
|
+
const RegisterExtensionResult = IDL.Variant({
|
|
148
|
+
'Ok' : IDL.Record({}),
|
|
149
|
+
'Err' : CanisterCallError,
|
|
150
|
+
});
|
|
151
|
+
const RegisterExtensionResponse = IDL.Record({
|
|
152
|
+
'result' : IDL.Opt(RegisterExtensionResult),
|
|
153
|
+
});
|
|
154
|
+
const SetDappControllersRequest = IDL.Record({
|
|
155
|
+
'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
|
|
156
|
+
'controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
157
|
+
});
|
|
143
158
|
const FailedUpdate = IDL.Record({
|
|
144
159
|
'err' : IDL.Opt(CanisterCallError),
|
|
145
160
|
'dapp_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -181,6 +196,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
181
196
|
[IDL.Record({})],
|
|
182
197
|
[],
|
|
183
198
|
),
|
|
199
|
+
'register_extension' : IDL.Func(
|
|
200
|
+
[RegisterExtensionRequest],
|
|
201
|
+
[RegisterExtensionResponse],
|
|
202
|
+
[],
|
|
203
|
+
),
|
|
184
204
|
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
185
205
|
'set_dapp_controllers' : IDL.Func(
|
|
186
206
|
[SetDappControllersRequest],
|
|
@@ -195,10 +215,14 @@ export const init = ({ IDL }) => {
|
|
|
195
215
|
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
196
216
|
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
197
217
|
});
|
|
218
|
+
const Extensions = IDL.Record({
|
|
219
|
+
'extension_canister_ids' : IDL.Vec(IDL.Principal),
|
|
220
|
+
});
|
|
198
221
|
const SnsRootCanister = IDL.Record({
|
|
199
222
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
200
223
|
'timers' : IDL.Opt(Timers),
|
|
201
224
|
'testflight' : IDL.Bool,
|
|
225
|
+
'extensions' : IDL.Opt(Extensions),
|
|
202
226
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
203
227
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
204
228
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -71,6 +71,9 @@ export interface DefiniteCanisterSettingsArgs {
|
|
|
71
71
|
memory_allocation: bigint;
|
|
72
72
|
compute_allocation: bigint;
|
|
73
73
|
}
|
|
74
|
+
export interface Extensions {
|
|
75
|
+
extension_canister_ids: Array<Principal>;
|
|
76
|
+
}
|
|
74
77
|
export interface FailedUpdate {
|
|
75
78
|
err: [] | [CanisterCallError];
|
|
76
79
|
dapp_canister_id: [] | [Principal];
|
|
@@ -93,6 +96,7 @@ export interface GetTimersResponse {
|
|
|
93
96
|
export interface ListSnsCanistersResponse {
|
|
94
97
|
root: [] | [Principal];
|
|
95
98
|
swap: [] | [Principal];
|
|
99
|
+
extensions: [] | [Extensions];
|
|
96
100
|
ledger: [] | [Principal];
|
|
97
101
|
index: [] | [Principal];
|
|
98
102
|
governance: [] | [Principal];
|
|
@@ -128,6 +132,13 @@ export interface RegisterDappCanisterRequest {
|
|
|
128
132
|
export interface RegisterDappCanistersRequest {
|
|
129
133
|
canister_ids: Array<Principal>;
|
|
130
134
|
}
|
|
135
|
+
export interface RegisterExtensionRequest {
|
|
136
|
+
canister_id: [] | [Principal];
|
|
137
|
+
}
|
|
138
|
+
export interface RegisterExtensionResponse {
|
|
139
|
+
result: [] | [RegisterExtensionResult];
|
|
140
|
+
}
|
|
141
|
+
export type RegisterExtensionResult = { Ok: {} } | { Err: CanisterCallError };
|
|
131
142
|
export interface SetDappControllersRequest {
|
|
132
143
|
canister_ids: [] | [RegisterDappCanistersRequest];
|
|
133
144
|
controller_principal_ids: Array<Principal>;
|
|
@@ -139,6 +150,7 @@ export interface SnsRootCanister {
|
|
|
139
150
|
dapp_canister_ids: Array<Principal>;
|
|
140
151
|
timers: [] | [Timers];
|
|
141
152
|
testflight: boolean;
|
|
153
|
+
extensions: [] | [Extensions];
|
|
142
154
|
archive_canister_ids: Array<Principal>;
|
|
143
155
|
governance_canister_id: [] | [Principal];
|
|
144
156
|
index_canister_id: [] | [Principal];
|
|
@@ -166,6 +178,10 @@ export interface _SERVICE {
|
|
|
166
178
|
>;
|
|
167
179
|
register_dapp_canister: ActorMethod<[RegisterDappCanisterRequest], {}>;
|
|
168
180
|
register_dapp_canisters: ActorMethod<[RegisterDappCanistersRequest], {}>;
|
|
181
|
+
register_extension: ActorMethod<
|
|
182
|
+
[RegisterExtensionRequest],
|
|
183
|
+
RegisterExtensionResponse
|
|
184
|
+
>;
|
|
169
185
|
reset_timers: ActorMethod<[{}], {}>;
|
|
170
186
|
set_dapp_controllers: ActorMethod<
|
|
171
187
|
[SetDappControllersRequest],
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 143a635 (2025-07-17 tags: release-2025-07-17_11-23-base) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
2
|
type CanisterCallError = record {
|
|
3
3
|
code : opt int32;
|
|
4
4
|
description : text;
|
|
@@ -114,6 +114,7 @@ type ListSnsCanistersResponse = record {
|
|
|
114
114
|
index : opt principal;
|
|
115
115
|
governance : opt principal;
|
|
116
116
|
dapps : vec principal;
|
|
117
|
+
extensions : opt Extensions;
|
|
117
118
|
archives : vec principal;
|
|
118
119
|
};
|
|
119
120
|
|
|
@@ -138,6 +139,19 @@ type ManageDappCanisterSettingsResponse = record {
|
|
|
138
139
|
failure_reason : opt text;
|
|
139
140
|
};
|
|
140
141
|
|
|
142
|
+
type RegisterExtensionRequest = record {
|
|
143
|
+
canister_id : opt principal;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
type RegisterExtensionResult = variant {
|
|
147
|
+
Ok : record {};
|
|
148
|
+
Err : CanisterCallError;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type RegisterExtensionResponse = record {
|
|
152
|
+
result : opt RegisterExtensionResult;
|
|
153
|
+
};
|
|
154
|
+
|
|
141
155
|
type RegisterDappCanisterRequest = record {
|
|
142
156
|
canister_id : opt principal;
|
|
143
157
|
};
|
|
@@ -155,8 +169,13 @@ type SetDappControllersResponse = record {
|
|
|
155
169
|
failed_updates : vec FailedUpdate;
|
|
156
170
|
};
|
|
157
171
|
|
|
172
|
+
type Extensions = record {
|
|
173
|
+
extension_canister_ids : vec principal;
|
|
174
|
+
};
|
|
175
|
+
|
|
158
176
|
type SnsRootCanister = record {
|
|
159
177
|
dapp_canister_ids : vec principal;
|
|
178
|
+
extensions : opt Extensions;
|
|
160
179
|
testflight : bool;
|
|
161
180
|
archive_canister_ids : vec principal;
|
|
162
181
|
governance_canister_id : opt principal;
|
|
@@ -187,6 +206,7 @@ service : (SnsRootCanister) -> {
|
|
|
187
206
|
manage_dapp_canister_settings : (ManageDappCanisterSettingsRequest) -> (
|
|
188
207
|
ManageDappCanisterSettingsResponse,
|
|
189
208
|
);
|
|
209
|
+
register_extension : (RegisterExtensionRequest) -> (RegisterExtensionResponse);
|
|
190
210
|
register_dapp_canister : (RegisterDappCanisterRequest) -> (record {});
|
|
191
211
|
register_dapp_canisters : (RegisterDappCanistersRequest) -> (record {});
|
|
192
212
|
set_dapp_controllers : (SetDappControllersRequest) -> (
|
|
@@ -5,10 +5,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
5
5
|
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
6
|
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
7
7
|
});
|
|
8
|
+
const Extensions = IDL.Record({
|
|
9
|
+
'extension_canister_ids' : IDL.Vec(IDL.Principal),
|
|
10
|
+
});
|
|
8
11
|
const SnsRootCanister = IDL.Record({
|
|
9
12
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
10
13
|
'timers' : IDL.Opt(Timers),
|
|
11
14
|
'testflight' : IDL.Bool,
|
|
15
|
+
'extensions' : IDL.Opt(Extensions),
|
|
12
16
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
13
17
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
14
18
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -107,6 +111,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
107
111
|
const ListSnsCanistersResponse = IDL.Record({
|
|
108
112
|
'root' : IDL.Opt(IDL.Principal),
|
|
109
113
|
'swap' : IDL.Opt(IDL.Principal),
|
|
114
|
+
'extensions' : IDL.Opt(Extensions),
|
|
110
115
|
'ledger' : IDL.Opt(IDL.Principal),
|
|
111
116
|
'index' : IDL.Opt(IDL.Principal),
|
|
112
117
|
'governance' : IDL.Opt(IDL.Principal),
|
|
@@ -132,14 +137,24 @@ export const idlFactory = ({ IDL }) => {
|
|
|
132
137
|
const RegisterDappCanistersRequest = IDL.Record({
|
|
133
138
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
134
139
|
});
|
|
135
|
-
const
|
|
136
|
-
'
|
|
137
|
-
'controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
140
|
+
const RegisterExtensionRequest = IDL.Record({
|
|
141
|
+
'canister_id' : IDL.Opt(IDL.Principal),
|
|
138
142
|
});
|
|
139
143
|
const CanisterCallError = IDL.Record({
|
|
140
144
|
'code' : IDL.Opt(IDL.Int32),
|
|
141
145
|
'description' : IDL.Text,
|
|
142
146
|
});
|
|
147
|
+
const RegisterExtensionResult = IDL.Variant({
|
|
148
|
+
'Ok' : IDL.Record({}),
|
|
149
|
+
'Err' : CanisterCallError,
|
|
150
|
+
});
|
|
151
|
+
const RegisterExtensionResponse = IDL.Record({
|
|
152
|
+
'result' : IDL.Opt(RegisterExtensionResult),
|
|
153
|
+
});
|
|
154
|
+
const SetDappControllersRequest = IDL.Record({
|
|
155
|
+
'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),
|
|
156
|
+
'controller_principal_ids' : IDL.Vec(IDL.Principal),
|
|
157
|
+
});
|
|
143
158
|
const FailedUpdate = IDL.Record({
|
|
144
159
|
'err' : IDL.Opt(CanisterCallError),
|
|
145
160
|
'dapp_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -181,6 +196,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
181
196
|
[IDL.Record({})],
|
|
182
197
|
[],
|
|
183
198
|
),
|
|
199
|
+
'register_extension' : IDL.Func(
|
|
200
|
+
[RegisterExtensionRequest],
|
|
201
|
+
[RegisterExtensionResponse],
|
|
202
|
+
[],
|
|
203
|
+
),
|
|
184
204
|
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
185
205
|
'set_dapp_controllers' : IDL.Func(
|
|
186
206
|
[SetDappControllersRequest],
|
|
@@ -195,10 +215,14 @@ export const init = ({ IDL }) => {
|
|
|
195
215
|
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
196
216
|
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
197
217
|
});
|
|
218
|
+
const Extensions = IDL.Record({
|
|
219
|
+
'extension_canister_ids' : IDL.Vec(IDL.Principal),
|
|
220
|
+
});
|
|
198
221
|
const SnsRootCanister = IDL.Record({
|
|
199
222
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
200
223
|
'timers' : IDL.Opt(Timers),
|
|
201
224
|
'testflight' : IDL.Bool,
|
|
225
|
+
'extensions' : IDL.Opt(Extensions),
|
|
202
226
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
203
227
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
204
228
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 143a635 (2025-07-17 tags: release-2025-07-17_11-23-base) '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;
|