@dfinity/sns 3.0.2 → 3.0.3

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 (38) hide show
  1. package/dist/candid/sns_governance.certified.idl.js +52 -10
  2. package/dist/candid/sns_governance.d.ts +29 -0
  3. package/dist/candid/sns_governance.did +33 -14
  4. package/dist/candid/sns_governance.idl.js +52 -10
  5. package/dist/candid/sns_governance_test.certified.idl.js +52 -10
  6. package/dist/candid/sns_governance_test.d.ts +29 -0
  7. package/dist/candid/sns_governance_test.did +33 -14
  8. package/dist/candid/sns_governance_test.idl.js +52 -10
  9. package/dist/candid/sns_root.certified.idl.js +16 -1
  10. package/dist/candid/sns_root.d.ts +18 -1
  11. package/dist/candid/sns_root.did +17 -6
  12. package/dist/candid/sns_root.idl.js +16 -1
  13. package/dist/candid/sns_swap.d.ts +3 -0
  14. package/dist/candid/sns_swap.did +6 -6
  15. package/dist/cjs/index.cjs.js +1 -1
  16. package/dist/cjs/index.cjs.js.map +4 -4
  17. package/dist/esm/chunk-3PR6E3PT.js +2 -0
  18. package/dist/esm/chunk-3PR6E3PT.js.map +7 -0
  19. package/dist/esm/chunk-CQAJ2SZB.js +7 -0
  20. package/dist/esm/chunk-CQAJ2SZB.js.map +7 -0
  21. package/dist/esm/{chunk-HI3EK7WH.js → chunk-MWSZCO77.js} +2 -2
  22. package/dist/esm/chunk-RZJ6NMPO.js +2 -0
  23. package/dist/esm/chunk-RZJ6NMPO.js.map +7 -0
  24. package/dist/esm/governance.canister.js +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/index.js.map +3 -3
  27. package/dist/esm/root.canister.js +1 -1
  28. package/dist/esm/sns.js +1 -1
  29. package/dist/esm/sns.wrapper.js +1 -1
  30. package/dist/types/root.canister.d.ts +1 -1
  31. package/package.json +6 -6
  32. package/dist/esm/chunk-HO3ELWLY.js +0 -2
  33. package/dist/esm/chunk-HO3ELWLY.js.map +0 -7
  34. package/dist/esm/chunk-TT4OPWTE.js +0 -2
  35. package/dist/esm/chunk-TT4OPWTE.js.map +0 -7
  36. package/dist/esm/chunk-WQJQSVHV.js +0 -7
  37. package/dist/esm/chunk-WQJQSVHV.js.map +0 -7
  38. /package/dist/esm/{chunk-HI3EK7WH.js.map → chunk-MWSZCO77.js.map} +0 -0
@@ -108,6 +108,31 @@ export const idlFactory = ({ IDL }) => {
108
108
  'error_message' : IDL.Text,
109
109
  'error_type' : IDL.Int32,
110
110
  });
111
+ const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
112
+ const Account = IDL.Record({
113
+ 'owner' : IDL.Opt(IDL.Principal),
114
+ 'subaccount' : IDL.Opt(Subaccount),
115
+ });
116
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
117
+ const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
118
+ const ValuationFactors = IDL.Record({
119
+ 'xdrs_per_icp' : IDL.Opt(Decimal),
120
+ 'icps_per_token' : IDL.Opt(Decimal),
121
+ 'tokens' : IDL.Opt(Tokens),
122
+ });
123
+ const Valuation = IDL.Record({
124
+ 'token' : IDL.Opt(IDL.Int32),
125
+ 'account' : IDL.Opt(Account),
126
+ 'valuation_factors' : IDL.Opt(ValuationFactors),
127
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
128
+ });
129
+ const MintSnsTokensActionAuxiliary = IDL.Record({
130
+ 'valuation' : IDL.Opt(Valuation),
131
+ });
132
+ const ActionAuxiliary = IDL.Variant({
133
+ 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
134
+ 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
135
+ });
111
136
  const Ballot = IDL.Record({
112
137
  'vote' : IDL.Int32,
113
138
  'cast_timestamp_seconds' : IDL.Nat64,
@@ -131,7 +156,6 @@ export const idlFactory = ({ IDL }) => {
131
156
  const RegisterDappCanisters = IDL.Record({
132
157
  'canister_ids' : IDL.Vec(IDL.Principal),
133
158
  });
134
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
135
159
  const TransferSnsTreasuryFunds = IDL.Record({
136
160
  'from_treasury' : IDL.Int32,
137
161
  'to_principal' : IDL.Opt(IDL.Principal),
@@ -200,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
200
224
  'payload_text_rendering' : IDL.Opt(IDL.Text),
201
225
  'action' : IDL.Nat64,
202
226
  'failure_reason' : IDL.Opt(GovernanceError),
227
+ 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
203
228
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
204
229
  'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
205
230
  'reward_event_round' : IDL.Nat64,
@@ -223,10 +248,6 @@ export const idlFactory = ({ IDL }) => {
223
248
  'function_id' : IDL.Nat64,
224
249
  'followees' : IDL.Vec(NeuronId),
225
250
  });
226
- const Account = IDL.Record({
227
- 'owner' : IDL.Opt(IDL.Principal),
228
- 'subaccount' : IDL.Opt(Subaccount),
229
- });
230
251
  const DisburseMaturity = IDL.Record({
231
252
  'to_account' : IDL.Opt(Account),
232
253
  'percentage_to_disburse' : IDL.Nat32,
@@ -660,6 +681,31 @@ export const init = ({ IDL }) => {
660
681
  'error_message' : IDL.Text,
661
682
  'error_type' : IDL.Int32,
662
683
  });
684
+ const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
685
+ const Account = IDL.Record({
686
+ 'owner' : IDL.Opt(IDL.Principal),
687
+ 'subaccount' : IDL.Opt(Subaccount),
688
+ });
689
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
690
+ const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
691
+ const ValuationFactors = IDL.Record({
692
+ 'xdrs_per_icp' : IDL.Opt(Decimal),
693
+ 'icps_per_token' : IDL.Opt(Decimal),
694
+ 'tokens' : IDL.Opt(Tokens),
695
+ });
696
+ const Valuation = IDL.Record({
697
+ 'token' : IDL.Opt(IDL.Int32),
698
+ 'account' : IDL.Opt(Account),
699
+ 'valuation_factors' : IDL.Opt(ValuationFactors),
700
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
701
+ });
702
+ const MintSnsTokensActionAuxiliary = IDL.Record({
703
+ 'valuation' : IDL.Opt(Valuation),
704
+ });
705
+ const ActionAuxiliary = IDL.Variant({
706
+ 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
707
+ 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
708
+ });
663
709
  const Ballot = IDL.Record({
664
710
  'vote' : IDL.Int32,
665
711
  'cast_timestamp_seconds' : IDL.Nat64,
@@ -683,7 +729,6 @@ export const init = ({ IDL }) => {
683
729
  const RegisterDappCanisters = IDL.Record({
684
730
  'canister_ids' : IDL.Vec(IDL.Principal),
685
731
  });
686
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
687
732
  const TransferSnsTreasuryFunds = IDL.Record({
688
733
  'from_treasury' : IDL.Int32,
689
734
  'to_principal' : IDL.Opt(IDL.Principal),
@@ -752,6 +797,7 @@ export const init = ({ IDL }) => {
752
797
  'payload_text_rendering' : IDL.Opt(IDL.Text),
753
798
  'action' : IDL.Nat64,
754
799
  'failure_reason' : IDL.Opt(GovernanceError),
800
+ 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
755
801
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
756
802
  'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
757
803
  'reward_event_round' : IDL.Nat64,
@@ -775,10 +821,6 @@ export const init = ({ IDL }) => {
775
821
  'function_id' : IDL.Nat64,
776
822
  'followees' : IDL.Vec(NeuronId),
777
823
  });
778
- const Account = IDL.Record({
779
- 'owner' : IDL.Opt(IDL.Principal),
780
- 'subaccount' : IDL.Opt(Subaccount),
781
- });
782
824
  const DisburseMaturity = IDL.Record({
783
825
  'to_account' : IDL.Opt(Account),
784
826
  'percentage_to_disburse' : IDL.Nat32,
@@ -1,4 +1,5 @@
1
1
  import type { ActorMethod } from "@dfinity/agent";
2
+ import type { IDL } from "@dfinity/candid";
2
3
  import type { Principal } from "@dfinity/principal";
3
4
 
4
5
  export interface Account {
@@ -25,6 +26,11 @@ export type Action =
25
26
  }
26
27
  | { ManageLedgerParameters: ManageLedgerParameters }
27
28
  | { Motion: Motion };
29
+ export type ActionAuxiliary =
30
+ | {
31
+ TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary;
32
+ }
33
+ | { MintSnsTokens: MintSnsTokensActionAuxiliary };
28
34
  export interface AddNeuronPermissions {
29
35
  permissions_to_add: [] | [NeuronPermissionList];
30
36
  principal_id: [] | [Principal];
@@ -115,6 +121,9 @@ export type Command_2 =
115
121
  export interface Configure {
116
122
  operation: [] | [Operation];
117
123
  }
124
+ export interface Decimal {
125
+ human_readable: [] | [string];
126
+ }
118
127
  export interface DefaultFollowees {
119
128
  followees: Array<[bigint, Followees]>;
120
129
  }
@@ -319,6 +328,9 @@ export interface MintSnsTokens {
319
328
  memo: [] | [bigint];
320
329
  amount_e8s: [] | [bigint];
321
330
  }
331
+ export interface MintSnsTokensActionAuxiliary {
332
+ valuation: [] | [Valuation];
333
+ }
322
334
  export interface Motion {
323
335
  motion_text: string;
324
336
  }
@@ -412,6 +424,7 @@ export interface ProposalData {
412
424
  payload_text_rendering: [] | [string];
413
425
  action: bigint;
414
426
  failure_reason: [] | [GovernanceError];
427
+ action_auxiliary: [] | [ActionAuxiliary];
415
428
  ballots: Array<[string, Ballot]>;
416
429
  minimum_yes_proportion_of_total: [] | [Percentage];
417
430
  reward_event_round: bigint;
@@ -487,6 +500,9 @@ export interface Tally {
487
500
  total: bigint;
488
501
  timestamp_seconds: bigint;
489
502
  }
503
+ export interface Tokens {
504
+ e8s: [] | [bigint];
505
+ }
490
506
  export interface TransferSnsTreasuryFunds {
491
507
  from_treasury: number;
492
508
  to_principal: [] | [Principal];
@@ -506,6 +522,17 @@ export interface UpgradeSnsControlledCanister {
506
522
  canister_id: [] | [Principal];
507
523
  canister_upgrade_arg: [] | [Uint8Array | number[]];
508
524
  }
525
+ export interface Valuation {
526
+ token: [] | [number];
527
+ account: [] | [Account];
528
+ valuation_factors: [] | [ValuationFactors];
529
+ timestamp_seconds: [] | [bigint];
530
+ }
531
+ export interface ValuationFactors {
532
+ xdrs_per_icp: [] | [Decimal];
533
+ icps_per_token: [] | [Decimal];
534
+ tokens: [] | [Tokens];
535
+ }
509
536
  export interface Version {
510
537
  archive_wasm_hash: Uint8Array | number[];
511
538
  root_wasm_hash: Uint8Array | number[];
@@ -552,3 +579,5 @@ export interface _SERVICE {
552
579
  manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
553
580
  set_mode: ActorMethod<[SetMode], {}>;
554
581
  }
582
+ export declare const idlFactory: IDL.InterfaceFactory;
583
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 757c4947d (2024-02-16) 'rs/sns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit ff10ea1db (2024-04-04 tags: release-2024-04-03_23-01-base) '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;
@@ -17,6 +17,10 @@ type Action = variant {
17
17
  ManageLedgerParameters : ManageLedgerParameters;
18
18
  Motion : Motion;
19
19
  };
20
+ type ActionAuxiliary = variant {
21
+ TransferSnsTreasuryFunds : MintSnsTokensActionAuxiliary;
22
+ MintSnsTokens : MintSnsTokensActionAuxiliary;
23
+ };
20
24
  type AddNeuronPermissions = record {
21
25
  permissions_to_add : opt NeuronPermissionList;
22
26
  principal_id : opt principal;
@@ -37,7 +41,7 @@ type CanisterStatusResultV2 = record {
37
41
  cycles : nat;
38
42
  settings : DefiniteCanisterSettingsArgs;
39
43
  idle_cycles_burned_per_day : nat;
40
- module_hash : opt vec nat8;
44
+ module_hash : opt blob;
41
45
  };
42
46
  type CanisterStatusType = variant { stopped; stopping; running };
43
47
  type ChangeAutoStakeMaturity = record {
@@ -98,6 +102,7 @@ type Command_2 = variant {
98
102
  Disburse : Disburse;
99
103
  };
100
104
  type Configure = record { operation : opt Operation };
105
+ type Decimal = record { human_readable : opt text };
101
106
  type DefaultFollowees = record { followees : vec record { nat64; Followees } };
102
107
  type DefiniteCanisterSettingsArgs = record {
103
108
  freezing_threshold : nat;
@@ -131,7 +136,7 @@ type DissolveState = variant {
131
136
  };
132
137
  type ExecuteGenericNervousSystemFunction = record {
133
138
  function_id : nat64;
134
- payload : vec nat8;
139
+ payload : blob;
135
140
  };
136
141
  type FinalizeDisburseMaturity = record {
137
142
  amount_to_be_disbursed_e8s : nat64;
@@ -241,7 +246,7 @@ type ManageDappCanisterSettings = record {
241
246
  compute_allocation : opt nat64;
242
247
  };
243
248
  type ManageLedgerParameters = record { transfer_fee : opt nat64 };
244
- type ManageNeuron = record { subaccount : vec nat8; command : opt Command };
249
+ type ManageNeuron = record { subaccount : blob; command : opt Command };
245
250
  type ManageNeuronResponse = record { command : opt Command_1 };
246
251
  type ManageSnsMetadata = record {
247
252
  url : opt text;
@@ -265,6 +270,7 @@ type MintSnsTokens = record {
265
270
  memo : opt nat64;
266
271
  amount_e8s : opt nat64;
267
272
  };
273
+ type MintSnsTokensActionAuxiliary = record { valuation : opt Valuation };
268
274
  type Motion = record { motion_text : text };
269
275
  type NervousSystemFunction = record {
270
276
  id : nat64;
@@ -311,7 +317,7 @@ type Neuron = record {
311
317
  followees : vec record { nat64; Followees };
312
318
  neuron_fees_e8s : nat64;
313
319
  };
314
- type NeuronId = record { id : vec nat8 };
320
+ type NeuronId = record { id : blob };
315
321
  type NeuronInFlightCommand = record {
316
322
  command : opt Command_2;
317
323
  timestamp : nat64;
@@ -349,6 +355,7 @@ type ProposalData = record {
349
355
  payload_text_rendering : opt text;
350
356
  action : nat64;
351
357
  failure_reason : opt GovernanceError;
358
+ action_auxiliary : opt ActionAuxiliary;
352
359
  ballots : vec record { text; Ballot };
353
360
  minimum_yes_proportion_of_total : opt Percentage;
354
361
  reward_event_round : nat64;
@@ -393,7 +400,7 @@ type StakeMaturityResponse = record {
393
400
  maturity_e8s : nat64;
394
401
  staked_maturity_e8s : nat64;
395
402
  };
396
- type Subaccount = record { subaccount : vec nat8 };
403
+ type Subaccount = record { subaccount : blob };
397
404
  type SwapNeuron = record { id : opt NeuronId; status : int32 };
398
405
  type Tally = record {
399
406
  no : nat64;
@@ -401,6 +408,7 @@ type Tally = record {
401
408
  total : nat64;
402
409
  timestamp_seconds : nat64;
403
410
  };
411
+ type Tokens = record { e8s : opt nat64 };
404
412
  type TransferSnsTreasuryFunds = record {
405
413
  from_treasury : int32;
406
414
  to_principal : opt principal;
@@ -415,18 +423,29 @@ type UpgradeInProgress = record {
415
423
  target_version : opt Version;
416
424
  };
417
425
  type UpgradeSnsControlledCanister = record {
418
- new_canister_wasm : vec nat8;
426
+ new_canister_wasm : blob;
419
427
  mode : opt int32;
420
428
  canister_id : opt principal;
421
- canister_upgrade_arg : opt vec nat8;
429
+ canister_upgrade_arg : opt blob;
430
+ };
431
+ type Valuation = record {
432
+ token : opt int32;
433
+ account : opt Account;
434
+ valuation_factors : opt ValuationFactors;
435
+ timestamp_seconds : opt nat64;
436
+ };
437
+ type ValuationFactors = record {
438
+ xdrs_per_icp : opt Decimal;
439
+ icps_per_token : opt Decimal;
440
+ tokens : opt Tokens;
422
441
  };
423
442
  type Version = record {
424
- archive_wasm_hash : vec nat8;
425
- root_wasm_hash : vec nat8;
426
- swap_wasm_hash : vec nat8;
427
- ledger_wasm_hash : vec nat8;
428
- governance_wasm_hash : vec nat8;
429
- index_wasm_hash : vec nat8;
443
+ archive_wasm_hash : blob;
444
+ root_wasm_hash : blob;
445
+ swap_wasm_hash : blob;
446
+ ledger_wasm_hash : blob;
447
+ governance_wasm_hash : blob;
448
+ index_wasm_hash : blob;
430
449
  };
431
450
  type VotingRewardsParameters = record {
432
451
  final_reward_rate_basis_points : opt nat64;
@@ -108,6 +108,31 @@ export const idlFactory = ({ IDL }) => {
108
108
  'error_message' : IDL.Text,
109
109
  'error_type' : IDL.Int32,
110
110
  });
111
+ const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
112
+ const Account = IDL.Record({
113
+ 'owner' : IDL.Opt(IDL.Principal),
114
+ 'subaccount' : IDL.Opt(Subaccount),
115
+ });
116
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
117
+ const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
118
+ const ValuationFactors = IDL.Record({
119
+ 'xdrs_per_icp' : IDL.Opt(Decimal),
120
+ 'icps_per_token' : IDL.Opt(Decimal),
121
+ 'tokens' : IDL.Opt(Tokens),
122
+ });
123
+ const Valuation = IDL.Record({
124
+ 'token' : IDL.Opt(IDL.Int32),
125
+ 'account' : IDL.Opt(Account),
126
+ 'valuation_factors' : IDL.Opt(ValuationFactors),
127
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
128
+ });
129
+ const MintSnsTokensActionAuxiliary = IDL.Record({
130
+ 'valuation' : IDL.Opt(Valuation),
131
+ });
132
+ const ActionAuxiliary = IDL.Variant({
133
+ 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
134
+ 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
135
+ });
111
136
  const Ballot = IDL.Record({
112
137
  'vote' : IDL.Int32,
113
138
  'cast_timestamp_seconds' : IDL.Nat64,
@@ -131,7 +156,6 @@ export const idlFactory = ({ IDL }) => {
131
156
  const RegisterDappCanisters = IDL.Record({
132
157
  'canister_ids' : IDL.Vec(IDL.Principal),
133
158
  });
134
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
135
159
  const TransferSnsTreasuryFunds = IDL.Record({
136
160
  'from_treasury' : IDL.Int32,
137
161
  'to_principal' : IDL.Opt(IDL.Principal),
@@ -200,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
200
224
  'payload_text_rendering' : IDL.Opt(IDL.Text),
201
225
  'action' : IDL.Nat64,
202
226
  'failure_reason' : IDL.Opt(GovernanceError),
227
+ 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
203
228
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
204
229
  'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
205
230
  'reward_event_round' : IDL.Nat64,
@@ -223,10 +248,6 @@ export const idlFactory = ({ IDL }) => {
223
248
  'function_id' : IDL.Nat64,
224
249
  'followees' : IDL.Vec(NeuronId),
225
250
  });
226
- const Account = IDL.Record({
227
- 'owner' : IDL.Opt(IDL.Principal),
228
- 'subaccount' : IDL.Opt(Subaccount),
229
- });
230
251
  const DisburseMaturity = IDL.Record({
231
252
  'to_account' : IDL.Opt(Account),
232
253
  'percentage_to_disburse' : IDL.Nat32,
@@ -668,6 +689,31 @@ export const init = ({ IDL }) => {
668
689
  'error_message' : IDL.Text,
669
690
  'error_type' : IDL.Int32,
670
691
  });
692
+ const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
693
+ const Account = IDL.Record({
694
+ 'owner' : IDL.Opt(IDL.Principal),
695
+ 'subaccount' : IDL.Opt(Subaccount),
696
+ });
697
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
698
+ const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
699
+ const ValuationFactors = IDL.Record({
700
+ 'xdrs_per_icp' : IDL.Opt(Decimal),
701
+ 'icps_per_token' : IDL.Opt(Decimal),
702
+ 'tokens' : IDL.Opt(Tokens),
703
+ });
704
+ const Valuation = IDL.Record({
705
+ 'token' : IDL.Opt(IDL.Int32),
706
+ 'account' : IDL.Opt(Account),
707
+ 'valuation_factors' : IDL.Opt(ValuationFactors),
708
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
709
+ });
710
+ const MintSnsTokensActionAuxiliary = IDL.Record({
711
+ 'valuation' : IDL.Opt(Valuation),
712
+ });
713
+ const ActionAuxiliary = IDL.Variant({
714
+ 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
715
+ 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
716
+ });
671
717
  const Ballot = IDL.Record({
672
718
  'vote' : IDL.Int32,
673
719
  'cast_timestamp_seconds' : IDL.Nat64,
@@ -691,7 +737,6 @@ export const init = ({ IDL }) => {
691
737
  const RegisterDappCanisters = IDL.Record({
692
738
  'canister_ids' : IDL.Vec(IDL.Principal),
693
739
  });
694
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
695
740
  const TransferSnsTreasuryFunds = IDL.Record({
696
741
  'from_treasury' : IDL.Int32,
697
742
  'to_principal' : IDL.Opt(IDL.Principal),
@@ -760,6 +805,7 @@ export const init = ({ IDL }) => {
760
805
  'payload_text_rendering' : IDL.Opt(IDL.Text),
761
806
  'action' : IDL.Nat64,
762
807
  'failure_reason' : IDL.Opt(GovernanceError),
808
+ 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
763
809
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
764
810
  'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
765
811
  'reward_event_round' : IDL.Nat64,
@@ -783,10 +829,6 @@ export const init = ({ IDL }) => {
783
829
  'function_id' : IDL.Nat64,
784
830
  'followees' : IDL.Vec(NeuronId),
785
831
  });
786
- const Account = IDL.Record({
787
- 'owner' : IDL.Opt(IDL.Principal),
788
- 'subaccount' : IDL.Opt(Subaccount),
789
- });
790
832
  const DisburseMaturity = IDL.Record({
791
833
  'to_account' : IDL.Opt(Account),
792
834
  'percentage_to_disburse' : IDL.Nat32,
@@ -108,6 +108,31 @@ export const idlFactory = ({ IDL }) => {
108
108
  'error_message' : IDL.Text,
109
109
  'error_type' : IDL.Int32,
110
110
  });
111
+ const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
112
+ const Account = IDL.Record({
113
+ 'owner' : IDL.Opt(IDL.Principal),
114
+ 'subaccount' : IDL.Opt(Subaccount),
115
+ });
116
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
117
+ const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
118
+ const ValuationFactors = IDL.Record({
119
+ 'xdrs_per_icp' : IDL.Opt(Decimal),
120
+ 'icps_per_token' : IDL.Opt(Decimal),
121
+ 'tokens' : IDL.Opt(Tokens),
122
+ });
123
+ const Valuation = IDL.Record({
124
+ 'token' : IDL.Opt(IDL.Int32),
125
+ 'account' : IDL.Opt(Account),
126
+ 'valuation_factors' : IDL.Opt(ValuationFactors),
127
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
128
+ });
129
+ const MintSnsTokensActionAuxiliary = IDL.Record({
130
+ 'valuation' : IDL.Opt(Valuation),
131
+ });
132
+ const ActionAuxiliary = IDL.Variant({
133
+ 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
134
+ 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
135
+ });
111
136
  const Ballot = IDL.Record({
112
137
  'vote' : IDL.Int32,
113
138
  'cast_timestamp_seconds' : IDL.Nat64,
@@ -131,7 +156,6 @@ export const idlFactory = ({ IDL }) => {
131
156
  const RegisterDappCanisters = IDL.Record({
132
157
  'canister_ids' : IDL.Vec(IDL.Principal),
133
158
  });
134
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
135
159
  const TransferSnsTreasuryFunds = IDL.Record({
136
160
  'from_treasury' : IDL.Int32,
137
161
  'to_principal' : IDL.Opt(IDL.Principal),
@@ -200,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
200
224
  'payload_text_rendering' : IDL.Opt(IDL.Text),
201
225
  'action' : IDL.Nat64,
202
226
  'failure_reason' : IDL.Opt(GovernanceError),
227
+ 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
203
228
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
204
229
  'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
205
230
  'reward_event_round' : IDL.Nat64,
@@ -223,10 +248,6 @@ export const idlFactory = ({ IDL }) => {
223
248
  'function_id' : IDL.Nat64,
224
249
  'followees' : IDL.Vec(NeuronId),
225
250
  });
226
- const Account = IDL.Record({
227
- 'owner' : IDL.Opt(IDL.Principal),
228
- 'subaccount' : IDL.Opt(Subaccount),
229
- });
230
251
  const DisburseMaturity = IDL.Record({
231
252
  'to_account' : IDL.Opt(Account),
232
253
  'percentage_to_disburse' : IDL.Nat32,
@@ -674,6 +695,31 @@ export const init = ({ IDL }) => {
674
695
  'error_message' : IDL.Text,
675
696
  'error_type' : IDL.Int32,
676
697
  });
698
+ const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
699
+ const Account = IDL.Record({
700
+ 'owner' : IDL.Opt(IDL.Principal),
701
+ 'subaccount' : IDL.Opt(Subaccount),
702
+ });
703
+ const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
704
+ const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
705
+ const ValuationFactors = IDL.Record({
706
+ 'xdrs_per_icp' : IDL.Opt(Decimal),
707
+ 'icps_per_token' : IDL.Opt(Decimal),
708
+ 'tokens' : IDL.Opt(Tokens),
709
+ });
710
+ const Valuation = IDL.Record({
711
+ 'token' : IDL.Opt(IDL.Int32),
712
+ 'account' : IDL.Opt(Account),
713
+ 'valuation_factors' : IDL.Opt(ValuationFactors),
714
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
715
+ });
716
+ const MintSnsTokensActionAuxiliary = IDL.Record({
717
+ 'valuation' : IDL.Opt(Valuation),
718
+ });
719
+ const ActionAuxiliary = IDL.Variant({
720
+ 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
721
+ 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
722
+ });
677
723
  const Ballot = IDL.Record({
678
724
  'vote' : IDL.Int32,
679
725
  'cast_timestamp_seconds' : IDL.Nat64,
@@ -697,7 +743,6 @@ export const init = ({ IDL }) => {
697
743
  const RegisterDappCanisters = IDL.Record({
698
744
  'canister_ids' : IDL.Vec(IDL.Principal),
699
745
  });
700
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
701
746
  const TransferSnsTreasuryFunds = IDL.Record({
702
747
  'from_treasury' : IDL.Int32,
703
748
  'to_principal' : IDL.Opt(IDL.Principal),
@@ -766,6 +811,7 @@ export const init = ({ IDL }) => {
766
811
  'payload_text_rendering' : IDL.Opt(IDL.Text),
767
812
  'action' : IDL.Nat64,
768
813
  'failure_reason' : IDL.Opt(GovernanceError),
814
+ 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
769
815
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
770
816
  'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
771
817
  'reward_event_round' : IDL.Nat64,
@@ -789,10 +835,6 @@ export const init = ({ IDL }) => {
789
835
  'function_id' : IDL.Nat64,
790
836
  'followees' : IDL.Vec(NeuronId),
791
837
  });
792
- const Account = IDL.Record({
793
- 'owner' : IDL.Opt(IDL.Principal),
794
- 'subaccount' : IDL.Opt(Subaccount),
795
- });
796
838
  const DisburseMaturity = IDL.Record({
797
839
  'to_account' : IDL.Opt(Account),
798
840
  'percentage_to_disburse' : IDL.Nat32,
@@ -1,4 +1,5 @@
1
1
  import type { ActorMethod } from "@dfinity/agent";
2
+ import type { IDL } from "@dfinity/candid";
2
3
  import type { Principal } from "@dfinity/principal";
3
4
 
4
5
  export interface Account {
@@ -25,6 +26,11 @@ export type Action =
25
26
  }
26
27
  | { ManageLedgerParameters: ManageLedgerParameters }
27
28
  | { Motion: Motion };
29
+ export type ActionAuxiliary =
30
+ | {
31
+ TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary;
32
+ }
33
+ | { MintSnsTokens: MintSnsTokensActionAuxiliary };
28
34
  export interface AddMaturityRequest {
29
35
  id: [] | [NeuronId];
30
36
  amount_e8s: [] | [bigint];
@@ -122,6 +128,9 @@ export type Command_2 =
122
128
  export interface Configure {
123
129
  operation: [] | [Operation];
124
130
  }
131
+ export interface Decimal {
132
+ human_readable: [] | [string];
133
+ }
125
134
  export interface DefaultFollowees {
126
135
  followees: Array<[bigint, Followees]>;
127
136
  }
@@ -326,6 +335,9 @@ export interface MintSnsTokens {
326
335
  memo: [] | [bigint];
327
336
  amount_e8s: [] | [bigint];
328
337
  }
338
+ export interface MintSnsTokensActionAuxiliary {
339
+ valuation: [] | [Valuation];
340
+ }
329
341
  export interface MintTokensRequest {
330
342
  recipient: [] | [Account];
331
343
  amount_e8s: [] | [bigint];
@@ -423,6 +435,7 @@ export interface ProposalData {
423
435
  payload_text_rendering: [] | [string];
424
436
  action: bigint;
425
437
  failure_reason: [] | [GovernanceError];
438
+ action_auxiliary: [] | [ActionAuxiliary];
426
439
  ballots: Array<[string, Ballot]>;
427
440
  minimum_yes_proportion_of_total: [] | [Percentage];
428
441
  reward_event_round: bigint;
@@ -498,6 +511,9 @@ export interface Tally {
498
511
  total: bigint;
499
512
  timestamp_seconds: bigint;
500
513
  }
514
+ export interface Tokens {
515
+ e8s: [] | [bigint];
516
+ }
501
517
  export interface TransferSnsTreasuryFunds {
502
518
  from_treasury: number;
503
519
  to_principal: [] | [Principal];
@@ -517,6 +533,17 @@ export interface UpgradeSnsControlledCanister {
517
533
  canister_id: [] | [Principal];
518
534
  canister_upgrade_arg: [] | [Uint8Array | number[]];
519
535
  }
536
+ export interface Valuation {
537
+ token: [] | [number];
538
+ account: [] | [Account];
539
+ valuation_factors: [] | [ValuationFactors];
540
+ timestamp_seconds: [] | [bigint];
541
+ }
542
+ export interface ValuationFactors {
543
+ xdrs_per_icp: [] | [Decimal];
544
+ icps_per_token: [] | [Decimal];
545
+ tokens: [] | [Tokens];
546
+ }
520
547
  export interface Version {
521
548
  archive_wasm_hash: Uint8Array | number[];
522
549
  root_wasm_hash: Uint8Array | number[];
@@ -566,3 +593,5 @@ export interface _SERVICE {
566
593
  set_mode: ActorMethod<[SetMode], {}>;
567
594
  update_neuron: ActorMethod<[Neuron], [] | [GovernanceError]>;
568
595
  }
596
+ export declare const idlFactory: IDL.InterfaceFactory;
597
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];