@dfinity/sns 3.2.3 → 3.2.4
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 +121 -6
- package/dist/candid/sns_governance.d.ts +62 -1
- package/dist/candid/sns_governance.did +69 -9
- package/dist/candid/sns_governance.idl.js +121 -6
- package/dist/candid/sns_governance_test.certified.idl.js +121 -6
- package/dist/candid/sns_governance_test.d.ts +62 -1
- package/dist/candid/sns_governance_test.did +66 -2
- package/dist/candid/sns_governance_test.idl.js +121 -6
- package/dist/candid/sns_root.certified.idl.js +15 -0
- package/dist/candid/sns_root.d.ts +11 -0
- package/dist/candid/sns_root.did +14 -1
- package/dist/candid/sns_root.idl.js +15 -0
- package/dist/candid/sns_swap.certified.idl.js +2 -0
- package/dist/candid/sns_swap.d.ts +4 -0
- package/dist/candid/sns_swap.did +6 -1
- package/dist/candid/sns_swap.idl.js +2 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-BNILACKH.js +2 -0
- package/dist/esm/chunk-BNILACKH.js.map +7 -0
- package/dist/esm/chunk-LCH6N5XY.js +2 -0
- package/dist/esm/chunk-LCH6N5XY.js.map +7 -0
- package/dist/esm/{chunk-UV6BDZNF.js → chunk-X7UB3EAO.js} +2 -2
- package/dist/esm/chunk-XKKPAZAY.js +2 -0
- package/dist/esm/chunk-XKKPAZAY.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/package.json +3 -3
- package/dist/esm/chunk-4I3PWDTO.js +0 -2
- package/dist/esm/chunk-4I3PWDTO.js.map +0 -7
- package/dist/esm/chunk-5YPS4ZYR.js +0 -2
- package/dist/esm/chunk-5YPS4ZYR.js.map +0 -7
- package/dist/esm/chunk-I6XQKGWZ.js +0 -2
- package/dist/esm/chunk-I6XQKGWZ.js.map +0 -7
- /package/dist/esm/{chunk-UV6BDZNF.js.map → chunk-X7UB3EAO.js.map} +0 -0
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_root.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
|
+
const Timers = IDL.Record({
|
|
4
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
5
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
|
+
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
7
|
+
});
|
|
3
8
|
const SnsRootCanister = IDL.Record({
|
|
4
9
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
10
|
+
'timers' : IDL.Opt(Timers),
|
|
5
11
|
'testflight' : IDL.Bool,
|
|
6
12
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
7
13
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -82,6 +88,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
82
88
|
'dapps' : IDL.Vec(CanisterSummary),
|
|
83
89
|
'archives' : IDL.Vec(CanisterSummary),
|
|
84
90
|
});
|
|
91
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
85
92
|
const ListSnsCanistersResponse = IDL.Record({
|
|
86
93
|
'root' : IDL.Opt(IDL.Principal),
|
|
87
94
|
'swap' : IDL.Opt(IDL.Principal),
|
|
@@ -137,6 +144,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
137
144
|
[GetSnsCanistersSummaryResponse],
|
|
138
145
|
[],
|
|
139
146
|
),
|
|
147
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
|
|
140
148
|
'list_sns_canisters' : IDL.Func(
|
|
141
149
|
[IDL.Record({})],
|
|
142
150
|
[ListSnsCanistersResponse],
|
|
@@ -157,6 +165,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
157
165
|
[IDL.Record({})],
|
|
158
166
|
[],
|
|
159
167
|
),
|
|
168
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
160
169
|
'set_dapp_controllers' : IDL.Func(
|
|
161
170
|
[SetDappControllersRequest],
|
|
162
171
|
[SetDappControllersResponse],
|
|
@@ -165,8 +174,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
174
|
});
|
|
166
175
|
};
|
|
167
176
|
export const init = ({ IDL }) => {
|
|
177
|
+
const Timers = IDL.Record({
|
|
178
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
179
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
180
|
+
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
181
|
+
});
|
|
168
182
|
const SnsRootCanister = IDL.Record({
|
|
169
183
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
184
|
+
'timers' : IDL.Opt(Timers),
|
|
170
185
|
'testflight' : IDL.Bool,
|
|
171
186
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
172
187
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -79,6 +79,9 @@ export interface GetSnsCanistersSummaryResponse {
|
|
|
79
79
|
dapps: Array<CanisterSummary>;
|
|
80
80
|
archives: Array<CanisterSummary>;
|
|
81
81
|
}
|
|
82
|
+
export interface GetTimersResponse {
|
|
83
|
+
timers: [] | [Timers];
|
|
84
|
+
}
|
|
82
85
|
export interface ListSnsCanistersResponse {
|
|
83
86
|
root: [] | [Principal];
|
|
84
87
|
swap: [] | [Principal];
|
|
@@ -116,6 +119,7 @@ export interface SetDappControllersResponse {
|
|
|
116
119
|
}
|
|
117
120
|
export interface SnsRootCanister {
|
|
118
121
|
dapp_canister_ids: Array<Principal>;
|
|
122
|
+
timers: [] | [Timers];
|
|
119
123
|
testflight: boolean;
|
|
120
124
|
archive_canister_ids: Array<Principal>;
|
|
121
125
|
governance_canister_id: [] | [Principal];
|
|
@@ -123,6 +127,11 @@ export interface SnsRootCanister {
|
|
|
123
127
|
swap_canister_id: [] | [Principal];
|
|
124
128
|
ledger_canister_id: [] | [Principal];
|
|
125
129
|
}
|
|
130
|
+
export interface Timers {
|
|
131
|
+
last_spawned_timestamp_seconds: [] | [bigint];
|
|
132
|
+
last_reset_timestamp_seconds: [] | [bigint];
|
|
133
|
+
requires_periodic_tasks: [] | [boolean];
|
|
134
|
+
}
|
|
126
135
|
export interface _SERVICE {
|
|
127
136
|
canister_status: ActorMethod<[CanisterIdRecord], CanisterStatusResult>;
|
|
128
137
|
change_canister: ActorMethod<[ChangeCanisterRequest], undefined>;
|
|
@@ -131,6 +140,7 @@ export interface _SERVICE {
|
|
|
131
140
|
[GetSnsCanistersSummaryRequest],
|
|
132
141
|
GetSnsCanistersSummaryResponse
|
|
133
142
|
>;
|
|
143
|
+
get_timers: ActorMethod<[{}], GetTimersResponse>;
|
|
134
144
|
list_sns_canisters: ActorMethod<[{}], ListSnsCanistersResponse>;
|
|
135
145
|
manage_dapp_canister_settings: ActorMethod<
|
|
136
146
|
[ManageDappCanisterSettingsRequest],
|
|
@@ -138,6 +148,7 @@ export interface _SERVICE {
|
|
|
138
148
|
>;
|
|
139
149
|
register_dapp_canister: ActorMethod<[RegisterDappCanisterRequest], {}>;
|
|
140
150
|
register_dapp_canisters: ActorMethod<[RegisterDappCanistersRequest], {}>;
|
|
151
|
+
reset_timers: ActorMethod<[{}], {}>;
|
|
141
152
|
set_dapp_controllers: ActorMethod<
|
|
142
153
|
[SetDappControllersRequest],
|
|
143
154
|
SetDappControllersResponse
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit cb3cb61 (2024-11-14 tags: release-2024-11-14_03-07-base) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
2
|
type CanisterCallError = record {
|
|
3
3
|
code : opt int32;
|
|
4
4
|
description : text;
|
|
@@ -145,6 +145,17 @@ type SnsRootCanister = record {
|
|
|
145
145
|
index_canister_id : opt principal;
|
|
146
146
|
swap_canister_id : opt principal;
|
|
147
147
|
ledger_canister_id : opt principal;
|
|
148
|
+
timers : opt Timers;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type Timers = record {
|
|
152
|
+
requires_periodic_tasks : opt bool;
|
|
153
|
+
last_reset_timestamp_seconds : opt nat64;
|
|
154
|
+
last_spawned_timestamp_seconds : opt nat64;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
type GetTimersResponse = record {
|
|
158
|
+
timers : opt Timers;
|
|
148
159
|
};
|
|
149
160
|
|
|
150
161
|
service : (SnsRootCanister) -> {
|
|
@@ -163,4 +174,6 @@ service : (SnsRootCanister) -> {
|
|
|
163
174
|
set_dapp_controllers : (SetDappControllersRequest) -> (
|
|
164
175
|
SetDappControllersResponse,
|
|
165
176
|
);
|
|
177
|
+
reset_timers : (record {}) -> (record {});
|
|
178
|
+
get_timers : (record {}) -> (GetTimersResponse) query;
|
|
166
179
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_root.did */
|
|
2
2
|
export const idlFactory = ({ IDL }) => {
|
|
3
|
+
const Timers = IDL.Record({
|
|
4
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
5
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
6
|
+
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
7
|
+
});
|
|
3
8
|
const SnsRootCanister = IDL.Record({
|
|
4
9
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
10
|
+
'timers' : IDL.Opt(Timers),
|
|
5
11
|
'testflight' : IDL.Bool,
|
|
6
12
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
7
13
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -82,6 +88,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
82
88
|
'dapps' : IDL.Vec(CanisterSummary),
|
|
83
89
|
'archives' : IDL.Vec(CanisterSummary),
|
|
84
90
|
});
|
|
91
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
85
92
|
const ListSnsCanistersResponse = IDL.Record({
|
|
86
93
|
'root' : IDL.Opt(IDL.Principal),
|
|
87
94
|
'swap' : IDL.Opt(IDL.Principal),
|
|
@@ -137,6 +144,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
137
144
|
[GetSnsCanistersSummaryResponse],
|
|
138
145
|
[],
|
|
139
146
|
),
|
|
147
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
|
|
140
148
|
'list_sns_canisters' : IDL.Func(
|
|
141
149
|
[IDL.Record({})],
|
|
142
150
|
[ListSnsCanistersResponse],
|
|
@@ -157,6 +165,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
157
165
|
[IDL.Record({})],
|
|
158
166
|
[],
|
|
159
167
|
),
|
|
168
|
+
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
160
169
|
'set_dapp_controllers' : IDL.Func(
|
|
161
170
|
[SetDappControllersRequest],
|
|
162
171
|
[SetDappControllersResponse],
|
|
@@ -165,8 +174,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
174
|
});
|
|
166
175
|
};
|
|
167
176
|
export const init = ({ IDL }) => {
|
|
177
|
+
const Timers = IDL.Record({
|
|
178
|
+
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
179
|
+
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
180
|
+
'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
|
|
181
|
+
});
|
|
168
182
|
const SnsRootCanister = IDL.Record({
|
|
169
183
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
184
|
+
'timers' : IDL.Opt(Timers),
|
|
170
185
|
'testflight' : IDL.Bool,
|
|
171
186
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
172
187
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -297,6 +297,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
297
297
|
'swap' : IDL.Opt(Swap),
|
|
298
298
|
'derived' : IDL.Opt(DerivedState),
|
|
299
299
|
});
|
|
300
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
300
301
|
const ListCommunityFundParticipantsRequest = IDL.Record({
|
|
301
302
|
'offset' : IDL.Opt(IDL.Nat64),
|
|
302
303
|
'limit' : IDL.Opt(IDL.Nat32),
|
|
@@ -386,6 +387,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
386
387
|
[],
|
|
387
388
|
),
|
|
388
389
|
'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], []),
|
|
390
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
|
|
389
391
|
'list_community_fund_participants' : IDL.Func(
|
|
390
392
|
[ListCommunityFundParticipantsRequest],
|
|
391
393
|
[ListCommunityFundParticipantsResponse],
|
|
@@ -142,6 +142,9 @@ export interface GetStateResponse {
|
|
|
142
142
|
swap: [] | [Swap];
|
|
143
143
|
derived: [] | [DerivedState];
|
|
144
144
|
}
|
|
145
|
+
export interface GetTimersResponse {
|
|
146
|
+
timers: [] | [Timers];
|
|
147
|
+
}
|
|
145
148
|
export interface GovernanceError {
|
|
146
149
|
error_message: string;
|
|
147
150
|
error_type: number;
|
|
@@ -383,6 +386,7 @@ export interface _SERVICE {
|
|
|
383
386
|
get_open_ticket: ActorMethod<[{}], GetOpenTicketResponse>;
|
|
384
387
|
get_sale_parameters: ActorMethod<[{}], GetSaleParametersResponse>;
|
|
385
388
|
get_state: ActorMethod<[{}], GetStateResponse>;
|
|
389
|
+
get_timers: ActorMethod<[{}], GetTimersResponse>;
|
|
386
390
|
list_community_fund_participants: ActorMethod<
|
|
387
391
|
[ListCommunityFundParticipantsRequest],
|
|
388
392
|
ListCommunityFundParticipantsResponse
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit cb3cb61 (2024-11-14 tags: release-2024-11-14_03-07-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;
|
|
@@ -422,6 +422,10 @@ type Timers = record {
|
|
|
422
422
|
last_spawned_timestamp_seconds : opt nat64;
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
+
type GetTimersResponse = record {
|
|
426
|
+
timers : opt Timers;
|
|
427
|
+
};
|
|
428
|
+
|
|
425
429
|
type SweepResult = record {
|
|
426
430
|
failure : nat32;
|
|
427
431
|
skipped : nat32;
|
|
@@ -475,4 +479,5 @@ service : (Init) -> {
|
|
|
475
479
|
RefreshBuyerTokensResponse,
|
|
476
480
|
);
|
|
477
481
|
reset_timers : (record {}) -> (record {});
|
|
482
|
+
get_timers : (record {}) -> (GetTimersResponse) query;
|
|
478
483
|
}
|
|
@@ -297,6 +297,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
297
297
|
'swap' : IDL.Opt(Swap),
|
|
298
298
|
'derived' : IDL.Opt(DerivedState),
|
|
299
299
|
});
|
|
300
|
+
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
|
|
300
301
|
const ListCommunityFundParticipantsRequest = IDL.Record({
|
|
301
302
|
'offset' : IDL.Opt(IDL.Nat64),
|
|
302
303
|
'limit' : IDL.Opt(IDL.Nat32),
|
|
@@ -394,6 +395,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
394
395
|
['query'],
|
|
395
396
|
),
|
|
396
397
|
'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], ['query']),
|
|
398
|
+
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
|
|
397
399
|
'list_community_fund_participants' : IDL.Func(
|
|
398
400
|
[ListCommunityFundParticipantsRequest],
|
|
399
401
|
[ListCommunityFundParticipantsResponse],
|