@dfinity/sns 3.1.0 → 3.2.0

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 (39) hide show
  1. package/dist/candid/sns_governance.certified.idl.js +23 -0
  2. package/dist/candid/sns_governance.d.ts +24 -0
  3. package/dist/candid/sns_governance.did +19 -1
  4. package/dist/candid/sns_governance.idl.js +23 -0
  5. package/dist/candid/sns_governance_test.certified.idl.js +23 -0
  6. package/dist/candid/sns_governance_test.d.ts +24 -0
  7. package/dist/candid/sns_governance_test.did +19 -1
  8. package/dist/candid/sns_governance_test.idl.js +23 -0
  9. package/dist/candid/sns_root.certified.idl.js +6 -0
  10. package/dist/candid/sns_root.d.ts +3 -0
  11. package/dist/candid/sns_root.did +4 -1
  12. package/dist/candid/sns_root.idl.js +6 -0
  13. package/dist/candid/sns_swap.certified.idl.js +18 -33
  14. package/dist/candid/sns_swap.d.ts +11 -11
  15. package/dist/candid/sns_swap.did +14 -11
  16. package/dist/candid/sns_swap.idl.js +18 -33
  17. package/dist/cjs/index.cjs.js +1 -1
  18. package/dist/cjs/index.cjs.js.map +3 -3
  19. package/dist/esm/chunk-7CU6QPD4.js +2 -0
  20. package/dist/esm/chunk-7CU6QPD4.js.map +7 -0
  21. package/dist/esm/chunk-C7HBQQIL.js +2 -0
  22. package/dist/esm/chunk-C7HBQQIL.js.map +7 -0
  23. package/dist/esm/chunk-K2WYATWO.js +2 -0
  24. package/dist/esm/chunk-K2WYATWO.js.map +7 -0
  25. package/dist/esm/{chunk-R7I3KJ5Z.js → chunk-TVXJJLBF.js} +2 -2
  26. package/dist/esm/governance.canister.js +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/index.js.map +3 -3
  29. package/dist/esm/root.canister.js +1 -1
  30. package/dist/esm/sns.js +1 -1
  31. package/dist/esm/swap.canister.js +1 -1
  32. package/package.json +6 -6
  33. package/dist/esm/chunk-34CD4QJG.js +0 -2
  34. package/dist/esm/chunk-34CD4QJG.js.map +0 -7
  35. package/dist/esm/chunk-4GE7OJRF.js +0 -2
  36. package/dist/esm/chunk-4GE7OJRF.js.map +0 -7
  37. package/dist/esm/chunk-VUTJEPVF.js +0 -2
  38. package/dist/esm/chunk-VUTJEPVF.js.map +0 -7
  39. /package/dist/esm/{chunk-R7I3KJ5Z.js.map → chunk-TVXJJLBF.js.map} +0 -0
@@ -377,6 +377,28 @@ export const idlFactory = ({ IDL }) => {
377
377
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
378
378
  'genesis_timestamp_seconds' : IDL.Nat64,
379
379
  });
380
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
381
+ const NeuronsFund = IDL.Record({
382
+ 'nns_neuron_hotkeys' : IDL.Opt(Principals),
383
+ 'nns_neuron_controller' : IDL.Opt(IDL.Principal),
384
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
385
+ });
386
+ const Participant = IDL.Variant({
387
+ 'NeuronsFund' : NeuronsFund,
388
+ 'Direct' : IDL.Record({}),
389
+ });
390
+ const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) });
391
+ const NeuronRecipe = IDL.Record({
392
+ 'controller' : IDL.Opt(IDL.Principal),
393
+ 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
394
+ 'participant' : IDL.Opt(Participant),
395
+ 'stake_e8s' : IDL.Opt(IDL.Nat64),
396
+ 'followees' : IDL.Opt(NeuronIds),
397
+ 'neuron_id' : IDL.Opt(NeuronId),
398
+ });
399
+ const NeuronRecipes = IDL.Record({
400
+ 'neuron_recipes' : IDL.Vec(NeuronRecipe),
401
+ });
380
402
  const NeuronParameters = IDL.Record({
381
403
  'controller' : IDL.Opt(IDL.Principal),
382
404
  'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
@@ -387,6 +409,7 @@ export const idlFactory = ({ IDL }) => {
387
409
  'neuron_id' : IDL.Opt(NeuronId),
388
410
  });
389
411
  const ClaimSwapNeuronsRequest = IDL.Record({
412
+ 'neuron_recipes' : IDL.Opt(NeuronRecipes),
390
413
  'neuron_parameters' : IDL.Vec(NeuronParameters),
391
414
  });
392
415
  const SwapNeuron = IDL.Record({
@@ -66,6 +66,7 @@ export interface ClaimOrRefreshResponse {
66
66
  refreshed_neuron_id: [] | [NeuronId];
67
67
  }
68
68
  export interface ClaimSwapNeuronsRequest {
69
+ neuron_recipes: [] | [NeuronRecipes];
69
70
  neuron_parameters: Array<NeuronParameters>;
70
71
  }
71
72
  export interface ClaimSwapNeuronsResponse {
@@ -386,6 +387,9 @@ export interface Neuron {
386
387
  export interface NeuronId {
387
388
  id: Uint8Array | number[];
388
389
  }
390
+ export interface NeuronIds {
391
+ neuron_ids: Array<NeuronId>;
392
+ }
389
393
  export interface NeuronInFlightCommand {
390
394
  command: [] | [Command_2];
391
395
  timestamp: bigint;
@@ -406,6 +410,22 @@ export interface NeuronPermission {
406
410
  export interface NeuronPermissionList {
407
411
  permissions: Int32Array | number[];
408
412
  }
413
+ export interface NeuronRecipe {
414
+ controller: [] | [Principal];
415
+ dissolve_delay_seconds: [] | [bigint];
416
+ participant: [] | [Participant];
417
+ stake_e8s: [] | [bigint];
418
+ followees: [] | [NeuronIds];
419
+ neuron_id: [] | [NeuronId];
420
+ }
421
+ export interface NeuronRecipes {
422
+ neuron_recipes: Array<NeuronRecipe>;
423
+ }
424
+ export interface NeuronsFund {
425
+ nns_neuron_hotkeys: [] | [Principals];
426
+ nns_neuron_controller: [] | [Principal];
427
+ nns_neuron_id: [] | [bigint];
428
+ }
409
429
  export type Operation =
410
430
  | {
411
431
  ChangeAutoStakeMaturity: ChangeAutoStakeMaturity;
@@ -414,9 +434,13 @@ export type Operation =
414
434
  | { StartDissolving: {} }
415
435
  | { IncreaseDissolveDelay: IncreaseDissolveDelay }
416
436
  | { SetDissolveTimestamp: SetDissolveTimestamp };
437
+ export type Participant = { NeuronsFund: NeuronsFund } | { Direct: {} };
417
438
  export interface Percentage {
418
439
  basis_points: [] | [bigint];
419
440
  }
441
+ export interface Principals {
442
+ principals: Array<Principal>;
443
+ }
420
444
  export interface Proposal {
421
445
  url: string;
422
446
  title: string;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-base) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/governance/canister/governance.did' by import-candid
2
2
  type Account = record { owner : opt principal; subaccount : opt Subaccount };
3
3
  type Action = variant {
4
4
  ManageNervousSystemParameters : NervousSystemParameters;
@@ -50,6 +50,7 @@ type ChangeAutoStakeMaturity = record {
50
50
  type ClaimOrRefresh = record { by : opt By };
51
51
  type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId };
52
52
  type ClaimSwapNeuronsRequest = record {
53
+ neuron_recipes : opt NeuronRecipes;
53
54
  neuron_parameters : vec NeuronParameters;
54
55
  };
55
56
  type ClaimSwapNeuronsResponse = record {
@@ -324,6 +325,7 @@ type Neuron = record {
324
325
  neuron_fees_e8s : nat64;
325
326
  };
326
327
  type NeuronId = record { id : blob };
328
+ type NeuronIds = record { neuron_ids : vec NeuronId };
327
329
  type NeuronInFlightCommand = record {
328
330
  command : opt Command_2;
329
331
  timestamp : nat64;
@@ -342,6 +344,20 @@ type NeuronPermission = record {
342
344
  permission_type : vec int32;
343
345
  };
344
346
  type NeuronPermissionList = record { permissions : vec int32 };
347
+ type NeuronRecipe = record {
348
+ controller : opt principal;
349
+ dissolve_delay_seconds : opt nat64;
350
+ participant : opt Participant;
351
+ stake_e8s : opt nat64;
352
+ followees : opt NeuronIds;
353
+ neuron_id : opt NeuronId;
354
+ };
355
+ type NeuronRecipes = record { neuron_recipes : vec NeuronRecipe };
356
+ type NeuronsFund = record {
357
+ nns_neuron_hotkeys : opt Principals;
358
+ nns_neuron_controller : opt principal;
359
+ nns_neuron_id : opt nat64;
360
+ };
345
361
  type Operation = variant {
346
362
  ChangeAutoStakeMaturity : ChangeAutoStakeMaturity;
347
363
  StopDissolving : record {};
@@ -349,7 +365,9 @@ type Operation = variant {
349
365
  IncreaseDissolveDelay : IncreaseDissolveDelay;
350
366
  SetDissolveTimestamp : SetDissolveTimestamp;
351
367
  };
368
+ type Participant = variant { NeuronsFund : NeuronsFund; Direct : record {} };
352
369
  type Percentage = record { basis_points : opt nat64 };
370
+ type Principals = record { principals : vec principal };
353
371
  type Proposal = record {
354
372
  url : text;
355
373
  title : text;
@@ -377,6 +377,28 @@ export const idlFactory = ({ IDL }) => {
377
377
  'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
378
378
  'genesis_timestamp_seconds' : IDL.Nat64,
379
379
  });
380
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
381
+ const NeuronsFund = IDL.Record({
382
+ 'nns_neuron_hotkeys' : IDL.Opt(Principals),
383
+ 'nns_neuron_controller' : IDL.Opt(IDL.Principal),
384
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
385
+ });
386
+ const Participant = IDL.Variant({
387
+ 'NeuronsFund' : NeuronsFund,
388
+ 'Direct' : IDL.Record({}),
389
+ });
390
+ const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) });
391
+ const NeuronRecipe = IDL.Record({
392
+ 'controller' : IDL.Opt(IDL.Principal),
393
+ 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
394
+ 'participant' : IDL.Opt(Participant),
395
+ 'stake_e8s' : IDL.Opt(IDL.Nat64),
396
+ 'followees' : IDL.Opt(NeuronIds),
397
+ 'neuron_id' : IDL.Opt(NeuronId),
398
+ });
399
+ const NeuronRecipes = IDL.Record({
400
+ 'neuron_recipes' : IDL.Vec(NeuronRecipe),
401
+ });
380
402
  const NeuronParameters = IDL.Record({
381
403
  'controller' : IDL.Opt(IDL.Principal),
382
404
  'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
@@ -387,6 +409,7 @@ export const idlFactory = ({ IDL }) => {
387
409
  'neuron_id' : IDL.Opt(NeuronId),
388
410
  });
389
411
  const ClaimSwapNeuronsRequest = IDL.Record({
412
+ 'neuron_recipes' : IDL.Opt(NeuronRecipes),
390
413
  'neuron_parameters' : IDL.Vec(NeuronParameters),
391
414
  });
392
415
  const SwapNeuron = IDL.Record({
@@ -384,6 +384,28 @@ export const idlFactory = ({ IDL }) => {
384
384
  const AddMaturityResponse = IDL.Record({
385
385
  'new_maturity_e8s' : IDL.Opt(IDL.Nat64),
386
386
  });
387
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
388
+ const NeuronsFund = IDL.Record({
389
+ 'nns_neuron_hotkeys' : IDL.Opt(Principals),
390
+ 'nns_neuron_controller' : IDL.Opt(IDL.Principal),
391
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
392
+ });
393
+ const Participant = IDL.Variant({
394
+ 'NeuronsFund' : NeuronsFund,
395
+ 'Direct' : IDL.Record({}),
396
+ });
397
+ const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) });
398
+ const NeuronRecipe = IDL.Record({
399
+ 'controller' : IDL.Opt(IDL.Principal),
400
+ 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
401
+ 'participant' : IDL.Opt(Participant),
402
+ 'stake_e8s' : IDL.Opt(IDL.Nat64),
403
+ 'followees' : IDL.Opt(NeuronIds),
404
+ 'neuron_id' : IDL.Opt(NeuronId),
405
+ });
406
+ const NeuronRecipes = IDL.Record({
407
+ 'neuron_recipes' : IDL.Vec(NeuronRecipe),
408
+ });
387
409
  const NeuronParameters = IDL.Record({
388
410
  'controller' : IDL.Opt(IDL.Principal),
389
411
  'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
@@ -394,6 +416,7 @@ export const idlFactory = ({ IDL }) => {
394
416
  'neuron_id' : IDL.Opt(NeuronId),
395
417
  });
396
418
  const ClaimSwapNeuronsRequest = IDL.Record({
419
+ 'neuron_recipes' : IDL.Opt(NeuronRecipes),
397
420
  'neuron_parameters' : IDL.Vec(NeuronParameters),
398
421
  });
399
422
  const SwapNeuron = IDL.Record({
@@ -73,6 +73,7 @@ export interface ClaimOrRefreshResponse {
73
73
  refreshed_neuron_id: [] | [NeuronId];
74
74
  }
75
75
  export interface ClaimSwapNeuronsRequest {
76
+ neuron_recipes: [] | [NeuronRecipes];
76
77
  neuron_parameters: Array<NeuronParameters>;
77
78
  }
78
79
  export interface ClaimSwapNeuronsResponse {
@@ -397,6 +398,9 @@ export interface Neuron {
397
398
  export interface NeuronId {
398
399
  id: Uint8Array | number[];
399
400
  }
401
+ export interface NeuronIds {
402
+ neuron_ids: Array<NeuronId>;
403
+ }
400
404
  export interface NeuronInFlightCommand {
401
405
  command: [] | [Command_2];
402
406
  timestamp: bigint;
@@ -417,6 +421,22 @@ export interface NeuronPermission {
417
421
  export interface NeuronPermissionList {
418
422
  permissions: Int32Array | number[];
419
423
  }
424
+ export interface NeuronRecipe {
425
+ controller: [] | [Principal];
426
+ dissolve_delay_seconds: [] | [bigint];
427
+ participant: [] | [Participant];
428
+ stake_e8s: [] | [bigint];
429
+ followees: [] | [NeuronIds];
430
+ neuron_id: [] | [NeuronId];
431
+ }
432
+ export interface NeuronRecipes {
433
+ neuron_recipes: Array<NeuronRecipe>;
434
+ }
435
+ export interface NeuronsFund {
436
+ nns_neuron_hotkeys: [] | [Principals];
437
+ nns_neuron_controller: [] | [Principal];
438
+ nns_neuron_id: [] | [bigint];
439
+ }
420
440
  export type Operation =
421
441
  | {
422
442
  ChangeAutoStakeMaturity: ChangeAutoStakeMaturity;
@@ -425,9 +445,13 @@ export type Operation =
425
445
  | { StartDissolving: {} }
426
446
  | { IncreaseDissolveDelay: IncreaseDissolveDelay }
427
447
  | { SetDissolveTimestamp: SetDissolveTimestamp };
448
+ export type Participant = { NeuronsFund: NeuronsFund } | { Direct: {} };
428
449
  export interface Percentage {
429
450
  basis_points: [] | [bigint];
430
451
  }
452
+ export interface Principals {
453
+ principals: Array<Principal>;
454
+ }
431
455
  export interface Proposal {
432
456
  url: string;
433
457
  title: string;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/governance/canister/governance_test.did' by import-candid
2
2
  type Account = record { owner : opt principal; subaccount : opt Subaccount };
3
3
  type Action = variant {
4
4
  ManageNervousSystemParameters : NervousSystemParameters;
@@ -52,6 +52,7 @@ type ChangeAutoStakeMaturity = record {
52
52
  type ClaimOrRefresh = record { by : opt By };
53
53
  type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId };
54
54
  type ClaimSwapNeuronsRequest = record {
55
+ neuron_recipes : opt NeuronRecipes;
55
56
  neuron_parameters : vec NeuronParameters;
56
57
  };
57
58
  type ClaimSwapNeuronsResponse = record {
@@ -330,6 +331,7 @@ type Neuron = record {
330
331
  neuron_fees_e8s : nat64;
331
332
  };
332
333
  type NeuronId = record { id : blob };
334
+ type NeuronIds = record { neuron_ids : vec NeuronId };
333
335
  type NeuronInFlightCommand = record {
334
336
  command : opt Command_2;
335
337
  timestamp : nat64;
@@ -348,6 +350,20 @@ type NeuronPermission = record {
348
350
  permission_type : vec int32;
349
351
  };
350
352
  type NeuronPermissionList = record { permissions : vec int32 };
353
+ type NeuronRecipe = record {
354
+ controller : opt principal;
355
+ dissolve_delay_seconds : opt nat64;
356
+ participant : opt Participant;
357
+ stake_e8s : opt nat64;
358
+ followees : opt NeuronIds;
359
+ neuron_id : opt NeuronId;
360
+ };
361
+ type NeuronRecipes = record { neuron_recipes : vec NeuronRecipe };
362
+ type NeuronsFund = record {
363
+ nns_neuron_hotkeys : opt Principals;
364
+ nns_neuron_controller : opt principal;
365
+ nns_neuron_id : opt nat64;
366
+ };
351
367
  type Operation = variant {
352
368
  ChangeAutoStakeMaturity : ChangeAutoStakeMaturity;
353
369
  StopDissolving : record {};
@@ -355,7 +371,9 @@ type Operation = variant {
355
371
  IncreaseDissolveDelay : IncreaseDissolveDelay;
356
372
  SetDissolveTimestamp : SetDissolveTimestamp;
357
373
  };
374
+ type Participant = variant { NeuronsFund : NeuronsFund; Direct : record {} };
358
375
  type Percentage = record { basis_points : opt nat64 };
376
+ type Principals = record { principals : vec principal };
359
377
  type Proposal = record {
360
378
  url : text;
361
379
  title : text;
@@ -384,6 +384,28 @@ export const idlFactory = ({ IDL }) => {
384
384
  const AddMaturityResponse = IDL.Record({
385
385
  'new_maturity_e8s' : IDL.Opt(IDL.Nat64),
386
386
  });
387
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
388
+ const NeuronsFund = IDL.Record({
389
+ 'nns_neuron_hotkeys' : IDL.Opt(Principals),
390
+ 'nns_neuron_controller' : IDL.Opt(IDL.Principal),
391
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
392
+ });
393
+ const Participant = IDL.Variant({
394
+ 'NeuronsFund' : NeuronsFund,
395
+ 'Direct' : IDL.Record({}),
396
+ });
397
+ const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) });
398
+ const NeuronRecipe = IDL.Record({
399
+ 'controller' : IDL.Opt(IDL.Principal),
400
+ 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
401
+ 'participant' : IDL.Opt(Participant),
402
+ 'stake_e8s' : IDL.Opt(IDL.Nat64),
403
+ 'followees' : IDL.Opt(NeuronIds),
404
+ 'neuron_id' : IDL.Opt(NeuronId),
405
+ });
406
+ const NeuronRecipes = IDL.Record({
407
+ 'neuron_recipes' : IDL.Vec(NeuronRecipe),
408
+ });
387
409
  const NeuronParameters = IDL.Record({
388
410
  'controller' : IDL.Opt(IDL.Principal),
389
411
  'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
@@ -394,6 +416,7 @@ export const idlFactory = ({ IDL }) => {
394
416
  'neuron_id' : IDL.Opt(NeuronId),
395
417
  });
396
418
  const ClaimSwapNeuronsRequest = IDL.Record({
419
+ 'neuron_recipes' : IDL.Opt(NeuronRecipes),
397
420
  'neuron_parameters' : IDL.Vec(NeuronParameters),
398
421
  });
399
422
  const SwapNeuron = IDL.Record({
@@ -16,10 +16,16 @@ export const idlFactory = ({ IDL }) => {
16
16
  'stopping' : IDL.Null,
17
17
  'running' : IDL.Null,
18
18
  });
19
+ const LogVisibility = IDL.Variant({
20
+ 'controllers' : IDL.Null,
21
+ 'public' : IDL.Null,
22
+ });
19
23
  const DefiniteCanisterSettings = IDL.Record({
20
24
  'freezing_threshold' : IDL.Opt(IDL.Nat),
21
25
  'controllers' : IDL.Vec(IDL.Principal),
22
26
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
27
+ 'log_visibility' : IDL.Opt(LogVisibility),
28
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
23
29
  'memory_allocation' : IDL.Opt(IDL.Nat),
24
30
  'compute_allocation' : IDL.Opt(IDL.Nat),
25
31
  });
@@ -51,6 +51,8 @@ export interface DefiniteCanisterSettings {
51
51
  freezing_threshold: [] | [bigint];
52
52
  controllers: Array<Principal>;
53
53
  reserved_cycles_limit: [] | [bigint];
54
+ log_visibility: [] | [LogVisibility];
55
+ wasm_memory_limit: [] | [bigint];
54
56
  memory_allocation: [] | [bigint];
55
57
  compute_allocation: [] | [bigint];
56
58
  }
@@ -85,6 +87,7 @@ export interface ListSnsCanistersResponse {
85
87
  dapps: Array<Principal>;
86
88
  archives: Array<Principal>;
87
89
  }
90
+ export type LogVisibility = { controllers: null } | { public: null };
88
91
  export interface ManageDappCanisterSettingsRequest {
89
92
  freezing_threshold: [] | [bigint];
90
93
  canister_ids: Array<Principal>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-base) 'rs/sns/root/canister/root.did' by import-candid
1
+ // Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) 'rs/sns/root/canister/root.did' by import-candid
2
2
  type CanisterCallError = record { code : opt int32; description : text };
3
3
  type CanisterIdRecord = record { canister_id : principal };
4
4
  type CanisterInstallMode = variant { reinstall; upgrade; install };
@@ -37,6 +37,8 @@ type DefiniteCanisterSettings = record {
37
37
  freezing_threshold : opt nat;
38
38
  controllers : vec principal;
39
39
  reserved_cycles_limit : opt nat;
40
+ log_visibility : opt LogVisibility;
41
+ wasm_memory_limit : opt nat;
40
42
  memory_allocation : opt nat;
41
43
  compute_allocation : opt nat;
42
44
  };
@@ -69,6 +71,7 @@ type ListSnsCanistersResponse = record {
69
71
  dapps : vec principal;
70
72
  archives : vec principal;
71
73
  };
74
+ type LogVisibility = variant { controllers; public };
72
75
  type ManageDappCanisterSettingsRequest = record {
73
76
  freezing_threshold : opt nat64;
74
77
  canister_ids : vec principal;
@@ -16,10 +16,16 @@ export const idlFactory = ({ IDL }) => {
16
16
  'stopping' : IDL.Null,
17
17
  'running' : IDL.Null,
18
18
  });
19
+ const LogVisibility = IDL.Variant({
20
+ 'controllers' : IDL.Null,
21
+ 'public' : IDL.Null,
22
+ });
19
23
  const DefiniteCanisterSettings = IDL.Record({
20
24
  'freezing_threshold' : IDL.Opt(IDL.Nat),
21
25
  'controllers' : IDL.Vec(IDL.Principal),
22
26
  'reserved_cycles_limit' : IDL.Opt(IDL.Nat),
27
+ 'log_visibility' : IDL.Opt(LogVisibility),
28
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
23
29
  'memory_allocation' : IDL.Opt(IDL.Nat),
24
30
  'compute_allocation' : IDL.Opt(IDL.Nat),
25
31
  });
@@ -22,18 +22,6 @@ export const idlFactory = ({ IDL }) => {
22
22
  IdealMatchedParticipationFunction
23
23
  ),
24
24
  });
25
- const CfNeuron = IDL.Record({
26
- 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
27
- 'nns_neuron_id' : IDL.Nat64,
28
- 'amount_icp_e8s' : IDL.Nat64,
29
- });
30
- const CfParticipant = IDL.Record({
31
- 'hotkey_principal' : IDL.Text,
32
- 'cf_neurons' : IDL.Vec(CfNeuron),
33
- });
34
- const NeuronsFundParticipants = IDL.Record({
35
- 'cf_participants' : IDL.Vec(CfParticipant),
36
- });
37
25
  const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
38
26
  const Init = IDL.Record({
39
27
  'nns_proposal_id' : IDL.Opt(IDL.Nat64),
@@ -58,7 +46,6 @@ export const idlFactory = ({ IDL }) => {
58
46
  'neurons_fund_participation_constraints' : IDL.Opt(
59
47
  NeuronsFundParticipationConstraints
60
48
  ),
61
- 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants),
62
49
  'should_auto_finalize' : IDL.Opt(IDL.Bool),
63
50
  'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
64
51
  'sns_governance_canister_id' : IDL.Text,
@@ -240,8 +227,11 @@ export const idlFactory = ({ IDL }) => {
240
227
  'memo' : IDL.Nat64,
241
228
  'followees' : IDL.Vec(NeuronId),
242
229
  });
230
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
243
231
  const CfInvestment = IDL.Record({
232
+ 'controller' : IDL.Opt(IDL.Principal),
244
233
  'hotkey_principal' : IDL.Text,
234
+ 'hotkeys' : IDL.Opt(Principals),
245
235
  'nns_neuron_id' : IDL.Nat64,
246
236
  });
247
237
  const DirectInvestment = IDL.Record({ 'buyer_principal' : IDL.Text });
@@ -255,6 +245,17 @@ export const idlFactory = ({ IDL }) => {
255
245
  'neuron_attributes' : IDL.Opt(NeuronAttributes),
256
246
  'investor' : IDL.Opt(Investor),
257
247
  });
248
+ const CfNeuron = IDL.Record({
249
+ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
250
+ 'hotkeys' : IDL.Opt(Principals),
251
+ 'nns_neuron_id' : IDL.Nat64,
252
+ 'amount_icp_e8s' : IDL.Nat64,
253
+ });
254
+ const CfParticipant = IDL.Record({
255
+ 'controller' : IDL.Opt(IDL.Principal),
256
+ 'hotkey_principal' : IDL.Text,
257
+ 'cf_neurons' : IDL.Vec(CfNeuron),
258
+ });
258
259
  const Swap = IDL.Record({
259
260
  'auto_finalize_swap_response' : IDL.Opt(FinalizeSwapResponse),
260
261
  'neuron_recipes' : IDL.Vec(SnsNeuronRecipe),
@@ -293,6 +294,9 @@ export const idlFactory = ({ IDL }) => {
293
294
  'offset' : IDL.Opt(IDL.Nat64),
294
295
  'limit' : IDL.Opt(IDL.Nat32),
295
296
  });
297
+ const ListCommunityFundParticipantsResponse = IDL.Record({
298
+ 'cf_participants' : IDL.Vec(CfParticipant),
299
+ });
296
300
  const ListDirectParticipantsRequest = IDL.Record({
297
301
  'offset' : IDL.Opt(IDL.Nat32),
298
302
  'limit' : IDL.Opt(IDL.Nat32),
@@ -326,11 +330,6 @@ export const idlFactory = ({ IDL }) => {
326
330
  });
327
331
  const Result_2 = IDL.Variant({ 'Ok' : Ok_2, 'Err' : Err_2 });
328
332
  const NewSaleTicketResponse = IDL.Record({ 'result' : IDL.Opt(Result_2) });
329
- const OpenRequest = IDL.Record({
330
- 'cf_participants' : IDL.Vec(CfParticipant),
331
- 'params' : IDL.Opt(Params),
332
- 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
333
- });
334
333
  const RefreshBuyerTokensRequest = IDL.Record({
335
334
  'confirmation_text' : IDL.Opt(IDL.Text),
336
335
  'buyer' : IDL.Text,
@@ -382,7 +381,7 @@ export const idlFactory = ({ IDL }) => {
382
381
  'get_state' : IDL.Func([IDL.Record({})], [GetStateResponse], []),
383
382
  'list_community_fund_participants' : IDL.Func(
384
383
  [ListCommunityFundParticipantsRequest],
385
- [NeuronsFundParticipants],
384
+ [ListCommunityFundParticipantsResponse],
386
385
  [],
387
386
  ),
388
387
  'list_direct_participants' : IDL.Func(
@@ -401,7 +400,6 @@ export const idlFactory = ({ IDL }) => {
401
400
  [],
402
401
  ),
403
402
  'notify_payment_failure' : IDL.Func([IDL.Record({})], [Ok_2], []),
404
- 'open' : IDL.Func([OpenRequest], [IDL.Record({})], []),
405
403
  'refresh_buyer_tokens' : IDL.Func(
406
404
  [RefreshBuyerTokensRequest],
407
405
  [RefreshBuyerTokensResponse],
@@ -432,18 +430,6 @@ export const init = ({ IDL }) => {
432
430
  IdealMatchedParticipationFunction
433
431
  ),
434
432
  });
435
- const CfNeuron = IDL.Record({
436
- 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
437
- 'nns_neuron_id' : IDL.Nat64,
438
- 'amount_icp_e8s' : IDL.Nat64,
439
- });
440
- const CfParticipant = IDL.Record({
441
- 'hotkey_principal' : IDL.Text,
442
- 'cf_neurons' : IDL.Vec(CfNeuron),
443
- });
444
- const NeuronsFundParticipants = IDL.Record({
445
- 'cf_participants' : IDL.Vec(CfParticipant),
446
- });
447
433
  const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
448
434
  const Init = IDL.Record({
449
435
  'nns_proposal_id' : IDL.Opt(IDL.Nat64),
@@ -468,7 +454,6 @@ export const init = ({ IDL }) => {
468
454
  'neurons_fund_participation_constraints' : IDL.Opt(
469
455
  NeuronsFundParticipationConstraints
470
456
  ),
471
- 'neurons_fund_participants' : IDL.Opt(NeuronsFundParticipants),
472
457
  'should_auto_finalize' : IDL.Opt(IDL.Bool),
473
458
  'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
474
459
  'sns_governance_canister_id' : IDL.Text,
@@ -23,15 +23,19 @@ export type CanisterStatusType =
23
23
  | { stopping: null }
24
24
  | { running: null };
25
25
  export interface CfInvestment {
26
+ controller: [] | [Principal];
26
27
  hotkey_principal: string;
28
+ hotkeys: [] | [Principals];
27
29
  nns_neuron_id: bigint;
28
30
  }
29
31
  export interface CfNeuron {
30
32
  has_created_neuron_recipes: [] | [boolean];
33
+ hotkeys: [] | [Principals];
31
34
  nns_neuron_id: bigint;
32
35
  amount_icp_e8s: bigint;
33
36
  }
34
37
  export interface CfParticipant {
38
+ controller: [] | [Principal];
35
39
  hotkey_principal: string;
36
40
  cf_neurons: Array<CfNeuron>;
37
41
  }
@@ -171,7 +175,6 @@ export interface Init {
171
175
  neurons_fund_participation_constraints:
172
176
  | []
173
177
  | [NeuronsFundParticipationConstraints];
174
- neurons_fund_participants: [] | [NeuronsFundParticipants];
175
178
  should_auto_finalize: [] | [boolean];
176
179
  max_participant_icp_e8s: [] | [bigint];
177
180
  sns_governance_canister_id: string;
@@ -198,6 +201,9 @@ export interface ListCommunityFundParticipantsRequest {
198
201
  offset: [] | [bigint];
199
202
  limit: [] | [number];
200
203
  }
204
+ export interface ListCommunityFundParticipantsResponse {
205
+ cf_participants: Array<CfParticipant>;
206
+ }
201
207
  export interface ListDirectParticipantsRequest {
202
208
  offset: [] | [number];
203
209
  limit: [] | [number];
@@ -224,9 +230,6 @@ export interface NeuronBasketConstructionParameters {
224
230
  export interface NeuronId {
225
231
  id: Uint8Array | number[];
226
232
  }
227
- export interface NeuronsFundParticipants {
228
- cf_participants: Array<CfParticipant>;
229
- }
230
233
  export interface NeuronsFundParticipationConstraints {
231
234
  coefficient_intervals: Array<LinearScalingCoefficient>;
232
235
  max_neurons_fund_participation_icp_e8s: [] | [bigint];
@@ -252,11 +255,6 @@ export interface Ok_1 {
252
255
  export interface Ok_2 {
253
256
  ticket: [] | [Ticket];
254
257
  }
255
- export interface OpenRequest {
256
- cf_participants: Array<CfParticipant>;
257
- params: [] | [Params];
258
- open_sns_token_swap_proposal_id: [] | [bigint];
259
- }
260
258
  export interface Params {
261
259
  min_participant_icp_e8s: bigint;
262
260
  neuron_basket_construction_parameters:
@@ -282,6 +280,9 @@ export type Possibility =
282
280
  export type Possibility_1 = { Ok: Response } | { Err: CanisterCallError };
283
281
  export type Possibility_2 = { Ok: Ok_1 } | { Err: Error };
284
282
  export type Possibility_3 = { Ok: {} } | { Err: CanisterCallError };
283
+ export interface Principals {
284
+ principals: Array<Principal>;
285
+ }
285
286
  export interface RefreshBuyerTokensRequest {
286
287
  confirmation_text: [] | [string];
287
288
  buyer: string;
@@ -377,7 +378,7 @@ export interface _SERVICE {
377
378
  get_state: ActorMethod<[{}], GetStateResponse>;
378
379
  list_community_fund_participants: ActorMethod<
379
380
  [ListCommunityFundParticipantsRequest],
380
- NeuronsFundParticipants
381
+ ListCommunityFundParticipantsResponse
381
382
  >;
382
383
  list_direct_participants: ActorMethod<
383
384
  [ListDirectParticipantsRequest],
@@ -389,7 +390,6 @@ export interface _SERVICE {
389
390
  >;
390
391
  new_sale_ticket: ActorMethod<[NewSaleTicketRequest], NewSaleTicketResponse>;
391
392
  notify_payment_failure: ActorMethod<[{}], Ok_2>;
392
- open: ActorMethod<[OpenRequest], {}>;
393
393
  refresh_buyer_tokens: ActorMethod<
394
394
  [RefreshBuyerTokensRequest],
395
395
  RefreshBuyerTokensResponse