@dfinity/sns 3.2.2 → 3.2.3-next-2024-11-14

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.
Files changed (40) hide show
  1. package/LICENSE +1 -1
  2. package/dist/candid/sns_governance.certified.idl.js +157 -20
  3. package/dist/candid/sns_governance.d.ts +80 -1
  4. package/dist/candid/sns_governance.did +85 -8
  5. package/dist/candid/sns_governance.idl.js +157 -20
  6. package/dist/candid/sns_governance_test.certified.idl.js +166 -20
  7. package/dist/candid/sns_governance_test.d.ts +88 -1
  8. package/dist/candid/sns_governance_test.did +87 -2
  9. package/dist/candid/sns_governance_test.idl.js +166 -20
  10. package/dist/candid/sns_root.certified.idl.js +15 -0
  11. package/dist/candid/sns_root.d.ts +11 -0
  12. package/dist/candid/sns_root.did +14 -1
  13. package/dist/candid/sns_root.idl.js +15 -0
  14. package/dist/candid/sns_swap.certified.idl.js +9 -0
  15. package/dist/candid/sns_swap.d.ts +11 -0
  16. package/dist/candid/sns_swap.did +14 -1
  17. package/dist/candid/sns_swap.idl.js +9 -0
  18. package/dist/cjs/index.cjs.js +1 -1
  19. package/dist/cjs/index.cjs.js.map +3 -3
  20. package/dist/esm/chunk-BNILACKH.js +2 -0
  21. package/dist/esm/chunk-BNILACKH.js.map +7 -0
  22. package/dist/esm/chunk-GCMQLWR5.js +2 -0
  23. package/dist/esm/chunk-GCMQLWR5.js.map +7 -0
  24. package/dist/esm/{chunk-7V3B657R.js → chunk-XGUZCIOP.js} +2 -2
  25. package/dist/esm/chunk-XKKPAZAY.js +2 -0
  26. package/dist/esm/chunk-XKKPAZAY.js.map +7 -0
  27. package/dist/esm/governance.canister.js +1 -1
  28. package/dist/esm/index.js +1 -1
  29. package/dist/esm/index.js.map +3 -3
  30. package/dist/esm/root.canister.js +1 -1
  31. package/dist/esm/sns.js +1 -1
  32. package/dist/esm/swap.canister.js +1 -1
  33. package/package.json +7 -7
  34. package/dist/esm/chunk-5YPS4ZYR.js +0 -2
  35. package/dist/esm/chunk-5YPS4ZYR.js.map +0 -7
  36. package/dist/esm/chunk-JY2TPU5D.js +0 -2
  37. package/dist/esm/chunk-JY2TPU5D.js.map +0 -7
  38. package/dist/esm/chunk-ODQ7CAD7.js +0 -2
  39. package/dist/esm/chunk-ODQ7CAD7.js.map +0 -7
  40. /package/dist/esm/{chunk-7V3B657R.js.map → chunk-XGUZCIOP.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) '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),
@@ -246,6 +246,11 @@ export const idlFactory = ({ IDL }) => {
246
246
  'neuron_attributes' : IDL.Opt(NeuronAttributes),
247
247
  'investor' : IDL.Opt(Investor),
248
248
  });
249
+ const Timers = IDL.Record({
250
+ 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
251
+ 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
252
+ 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
253
+ });
249
254
  const CfNeuron = IDL.Record({
250
255
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
251
256
  'hotkeys' : IDL.Opt(Principals),
@@ -263,6 +268,7 @@ export const idlFactory = ({ IDL }) => {
263
268
  'next_ticket_id' : IDL.Opt(IDL.Nat64),
264
269
  'decentralization_sale_open_timestamp_seconds' : IDL.Opt(IDL.Nat64),
265
270
  'finalize_swap_in_progress' : IDL.Opt(IDL.Bool),
271
+ 'timers' : IDL.Opt(Timers),
266
272
  'cf_participants' : IDL.Vec(CfParticipant),
267
273
  'init' : IDL.Opt(Init),
268
274
  'already_tried_to_auto_finalize' : IDL.Opt(IDL.Bool),
@@ -291,6 +297,7 @@ export const idlFactory = ({ IDL }) => {
291
297
  'swap' : IDL.Opt(Swap),
292
298
  'derived' : IDL.Opt(DerivedState),
293
299
  });
300
+ const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
294
301
  const ListCommunityFundParticipantsRequest = IDL.Record({
295
302
  'offset' : IDL.Opt(IDL.Nat64),
296
303
  'limit' : IDL.Opt(IDL.Nat32),
@@ -380,6 +387,7 @@ export const idlFactory = ({ IDL }) => {
380
387
  [],
381
388
  ),
382
389
  'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], []),
390
+ 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
383
391
  'list_community_fund_participants' : IDL.Func(
384
392
  [ListCommunityFundParticipantsRequest],
385
393
  [ListCommunityFundParticipantsResponse],
@@ -406,6 +414,7 @@ export const idlFactory = ({ IDL }) => {
406
414
  [RefreshBuyerTokensResponse],
407
415
  [],
408
416
  ),
417
+ 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
409
418
  });
410
419
  };
411
420
  export const init = ({ IDL }) => {
@@ -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;
@@ -325,6 +328,7 @@ export interface Swap {
325
328
  next_ticket_id: [] | [bigint];
326
329
  decentralization_sale_open_timestamp_seconds: [] | [bigint];
327
330
  finalize_swap_in_progress: [] | [boolean];
331
+ timers: [] | [Timers];
328
332
  cf_participants: Array<CfParticipant>;
329
333
  init: [] | [Init];
330
334
  already_tried_to_auto_finalize: [] | [boolean];
@@ -351,6 +355,11 @@ export interface Ticket {
351
355
  account: [] | [Icrc1Account];
352
356
  amount_icp_e8s: bigint;
353
357
  }
358
+ export interface Timers {
359
+ last_spawned_timestamp_seconds: [] | [bigint];
360
+ last_reset_timestamp_seconds: [] | [bigint];
361
+ requires_periodic_tasks: [] | [boolean];
362
+ }
354
363
  export interface TransferableAmount {
355
364
  transfer_fee_paid_e8s: [] | [bigint];
356
365
  transfer_start_timestamp_seconds: bigint;
@@ -377,6 +386,7 @@ export interface _SERVICE {
377
386
  get_open_ticket: ActorMethod<[{}], GetOpenTicketResponse>;
378
387
  get_sale_parameters: ActorMethod<[{}], GetSaleParametersResponse>;
379
388
  get_state: ActorMethod<[{}], GetStateResponse>;
389
+ get_timers: ActorMethod<[{}], GetTimersResponse>;
380
390
  list_community_fund_participants: ActorMethod<
381
391
  [ListCommunityFundParticipantsRequest],
382
392
  ListCommunityFundParticipantsResponse
@@ -395,6 +405,7 @@ export interface _SERVICE {
395
405
  [RefreshBuyerTokensRequest],
396
406
  RefreshBuyerTokensResponse
397
407
  >;
408
+ reset_timers: ActorMethod<[{}], {}>;
398
409
  }
399
410
  export declare const idlFactory: IDL.InterfaceFactory;
400
411
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/sns/swap/canister/swap.did' by import-candid
1
+ // Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) '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;
@@ -413,6 +413,17 @@ type Swap = record {
413
413
  buyers : vec record { text; BuyerState };
414
414
  params : opt Params;
415
415
  open_sns_token_swap_proposal_id : opt nat64;
416
+ timers : opt Timers;
417
+ };
418
+
419
+ type Timers = record {
420
+ requires_periodic_tasks : opt bool;
421
+ last_reset_timestamp_seconds : opt nat64;
422
+ last_spawned_timestamp_seconds : opt nat64;
423
+ };
424
+
425
+ type GetTimersResponse = record {
426
+ timers : opt Timers;
416
427
  };
417
428
 
418
429
  type SweepResult = record {
@@ -467,4 +478,6 @@ service : (Init) -> {
467
478
  refresh_buyer_tokens : (RefreshBuyerTokensRequest) -> (
468
479
  RefreshBuyerTokensResponse,
469
480
  );
481
+ reset_timers : (record {}) -> (record {});
482
+ get_timers : (record {}) -> (GetTimersResponse) query;
470
483
  }
@@ -246,6 +246,11 @@ export const idlFactory = ({ IDL }) => {
246
246
  'neuron_attributes' : IDL.Opt(NeuronAttributes),
247
247
  'investor' : IDL.Opt(Investor),
248
248
  });
249
+ const Timers = IDL.Record({
250
+ 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
251
+ 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
252
+ 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
253
+ });
249
254
  const CfNeuron = IDL.Record({
250
255
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
251
256
  'hotkeys' : IDL.Opt(Principals),
@@ -263,6 +268,7 @@ export const idlFactory = ({ IDL }) => {
263
268
  'next_ticket_id' : IDL.Opt(IDL.Nat64),
264
269
  'decentralization_sale_open_timestamp_seconds' : IDL.Opt(IDL.Nat64),
265
270
  'finalize_swap_in_progress' : IDL.Opt(IDL.Bool),
271
+ 'timers' : IDL.Opt(Timers),
266
272
  'cf_participants' : IDL.Vec(CfParticipant),
267
273
  'init' : IDL.Opt(Init),
268
274
  'already_tried_to_auto_finalize' : IDL.Opt(IDL.Bool),
@@ -291,6 +297,7 @@ export const idlFactory = ({ IDL }) => {
291
297
  'swap' : IDL.Opt(Swap),
292
298
  'derived' : IDL.Opt(DerivedState),
293
299
  });
300
+ const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
294
301
  const ListCommunityFundParticipantsRequest = IDL.Record({
295
302
  'offset' : IDL.Opt(IDL.Nat64),
296
303
  'limit' : IDL.Opt(IDL.Nat32),
@@ -388,6 +395,7 @@ export const idlFactory = ({ IDL }) => {
388
395
  ['query'],
389
396
  ),
390
397
  'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], ['query']),
398
+ 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
391
399
  'list_community_fund_participants' : IDL.Func(
392
400
  [ListCommunityFundParticipantsRequest],
393
401
  [ListCommunityFundParticipantsResponse],
@@ -414,6 +422,7 @@ export const idlFactory = ({ IDL }) => {
414
422
  [RefreshBuyerTokensResponse],
415
423
  [],
416
424
  ),
425
+ 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
417
426
  });
418
427
  };
419
428
  export const init = ({ IDL }) => {