@dfinity/sns 4.1.2 → 5.0.0-next-2025-10-20.1

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 (76) hide show
  1. package/README.md +1 -1
  2. package/dist/candid/sns_governance.certified.idl.d.ts +1 -1
  3. package/dist/candid/sns_governance.certified.idl.js +1003 -1005
  4. package/dist/candid/sns_governance.d.ts +11 -3
  5. package/dist/candid/sns_governance.idl.d.ts +1 -1
  6. package/dist/candid/sns_governance.idl.js +1011 -1021
  7. package/dist/candid/sns_governance_test.certified.idl.d.ts +1 -1
  8. package/dist/candid/sns_governance_test.certified.idl.js +1021 -1023
  9. package/dist/candid/sns_governance_test.d.ts +11 -3
  10. package/dist/candid/sns_governance_test.idl.d.ts +1 -1
  11. package/dist/candid/sns_governance_test.idl.js +1029 -1039
  12. package/dist/candid/sns_root.certified.idl.d.ts +1 -1
  13. package/dist/candid/sns_root.certified.idl.js +183 -177
  14. package/dist/candid/sns_root.d.ts +11 -3
  15. package/dist/candid/sns_root.idl.d.ts +1 -1
  16. package/dist/candid/sns_root.idl.js +183 -177
  17. package/dist/candid/sns_swap.certified.idl.d.ts +1 -1
  18. package/dist/candid/sns_swap.certified.idl.js +359 -355
  19. package/dist/candid/sns_swap.d.ts +11 -3
  20. package/dist/candid/sns_swap.idl.d.ts +1 -1
  21. package/dist/candid/sns_swap.idl.js +367 -363
  22. package/dist/{types/converters → converters}/governance.converters.d.ts +1 -1
  23. package/dist/{types/converters → converters}/swap.converters.d.ts +1 -1
  24. package/dist/{types/errors → errors}/swap.errors.d.ts +1 -1
  25. package/dist/{types/governance.canister.d.ts → governance.canister.d.ts} +1 -1
  26. package/dist/{types/governance_test.canister.d.ts → governance_test.canister.d.ts} +1 -1
  27. package/dist/{types/index.d.ts → index.d.ts} +3 -3
  28. package/dist/index.js +7 -1
  29. package/dist/index.js.map +7 -0
  30. package/dist/index.mjs +9 -0
  31. package/dist/index.mjs.map +7 -0
  32. package/dist/{types/root.canister.d.ts → root.canister.d.ts} +1 -1
  33. package/dist/{types/sns.d.ts → sns.d.ts} +2 -2
  34. package/dist/{types/sns.wrapper.d.ts → sns.wrapper.d.ts} +3 -3
  35. package/dist/{types/swap.canister.d.ts → swap.canister.d.ts} +1 -1
  36. package/dist/types/{types/actions.d.ts → actions.d.ts} +2 -2
  37. package/dist/types/{types/canister.options.d.ts → canister.options.d.ts} +1 -1
  38. package/dist/types/{types/governance.params.d.ts → governance.params.d.ts} +2 -2
  39. package/dist/types/{types/governance_test.params.d.ts → governance_test.params.d.ts} +1 -1
  40. package/dist/{types/utils → utils}/governance.utils.d.ts +1 -1
  41. package/package.json +23 -12
  42. package/dist/cjs/index.cjs.js +0 -7
  43. package/dist/cjs/index.cjs.js.map +0 -7
  44. package/dist/esm/chunk-4E6G4JED.js +0 -2
  45. package/dist/esm/chunk-4E6G4JED.js.map +0 -7
  46. package/dist/esm/chunk-4INNMFYU.js +0 -2
  47. package/dist/esm/chunk-4INNMFYU.js.map +0 -7
  48. package/dist/esm/chunk-4OISOQSJ.js +0 -2
  49. package/dist/esm/chunk-4OISOQSJ.js.map +0 -7
  50. package/dist/esm/chunk-BJBCLIED.js +0 -2
  51. package/dist/esm/chunk-BJBCLIED.js.map +0 -7
  52. package/dist/esm/chunk-EYIWJ4DL.js +0 -2
  53. package/dist/esm/chunk-EYIWJ4DL.js.map +0 -7
  54. package/dist/esm/chunk-Y6XGADSI.js +0 -7
  55. package/dist/esm/chunk-Y6XGADSI.js.map +0 -7
  56. package/dist/esm/governance.canister.js +0 -2
  57. package/dist/esm/governance.canister.js.map +0 -7
  58. package/dist/esm/index.js +0 -2
  59. package/dist/esm/index.js.map +0 -7
  60. package/dist/esm/root.canister.js +0 -2
  61. package/dist/esm/root.canister.js.map +0 -7
  62. package/dist/esm/sns.js +0 -2
  63. package/dist/esm/sns.js.map +0 -7
  64. package/dist/esm/sns.wrapper.js +0 -2
  65. package/dist/esm/sns.wrapper.js.map +0 -7
  66. package/dist/esm/swap.canister.js +0 -2
  67. package/dist/esm/swap.canister.js.map +0 -7
  68. package/dist/index.cjs.js +0 -1
  69. /package/dist/{types/constants → constants}/governance.constants.d.ts +0 -0
  70. /package/dist/{types/enums → enums}/governance.enums.d.ts +0 -0
  71. /package/dist/{types/enums → enums}/swap.enums.d.ts +0 -0
  72. /package/dist/{types/errors → errors}/common.errors.d.ts +0 -0
  73. /package/dist/{types/errors → errors}/governance.errors.d.ts +0 -0
  74. /package/dist/types/{types/common.d.ts → common.d.ts} +0 -0
  75. /package/dist/types/{types/swap.params.d.ts → swap.params.d.ts} +0 -0
  76. /package/dist/{types/utils → utils}/error.utils.d.ts +0 -0
@@ -1,1450 +1,1440 @@
1
- /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance.did */
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
6
+ // You should NOT make any changes in this file as it will be overwritten.
7
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
+
2
9
  export const idlFactory = ({ IDL }) => {
3
10
  const PreciseValue = IDL.Rec();
4
11
  const Timers = IDL.Record({
5
- 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
6
- 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
7
- 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
12
+ last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
13
+ last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
14
+ requires_periodic_tasks: IDL.Opt(IDL.Bool),
8
15
  });
9
16
  const Version = IDL.Record({
10
- 'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
11
- 'root_wasm_hash' : IDL.Vec(IDL.Nat8),
12
- 'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
13
- 'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
14
- 'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
15
- 'index_wasm_hash' : IDL.Vec(IDL.Nat8),
16
- });
17
- const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
17
+ archive_wasm_hash: IDL.Vec(IDL.Nat8),
18
+ root_wasm_hash: IDL.Vec(IDL.Nat8),
19
+ swap_wasm_hash: IDL.Vec(IDL.Nat8),
20
+ ledger_wasm_hash: IDL.Vec(IDL.Nat8),
21
+ governance_wasm_hash: IDL.Vec(IDL.Nat8),
22
+ index_wasm_hash: IDL.Vec(IDL.Nat8),
23
+ });
24
+ const Versions = IDL.Record({ versions: IDL.Vec(Version) });
18
25
  const CachedUpgradeSteps = IDL.Record({
19
- 'upgrade_steps' : IDL.Opt(Versions),
20
- 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
21
- 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
26
+ upgrade_steps: IDL.Opt(Versions),
27
+ response_timestamp_seconds: IDL.Opt(IDL.Nat64),
28
+ requested_timestamp_seconds: IDL.Opt(IDL.Nat64),
22
29
  });
23
30
  const Topic = IDL.Variant({
24
- 'DappCanisterManagement' : IDL.Null,
25
- 'DaoCommunitySettings' : IDL.Null,
26
- 'ApplicationBusinessLogic' : IDL.Null,
27
- 'CriticalDappOperations' : IDL.Null,
28
- 'TreasuryAssetManagement' : IDL.Null,
29
- 'Governance' : IDL.Null,
30
- 'SnsFrameworkManagement' : IDL.Null,
31
+ DappCanisterManagement: IDL.Null,
32
+ DaoCommunitySettings: IDL.Null,
33
+ ApplicationBusinessLogic: IDL.Null,
34
+ CriticalDappOperations: IDL.Null,
35
+ TreasuryAssetManagement: IDL.Null,
36
+ Governance: IDL.Null,
37
+ SnsFrameworkManagement: IDL.Null,
31
38
  });
32
39
  const GenericNervousSystemFunction = IDL.Record({
33
- 'topic' : IDL.Opt(Topic),
34
- 'validator_canister_id' : IDL.Opt(IDL.Principal),
35
- 'target_canister_id' : IDL.Opt(IDL.Principal),
36
- 'validator_method_name' : IDL.Opt(IDL.Text),
37
- 'target_method_name' : IDL.Opt(IDL.Text),
40
+ topic: IDL.Opt(Topic),
41
+ validator_canister_id: IDL.Opt(IDL.Principal),
42
+ target_canister_id: IDL.Opt(IDL.Principal),
43
+ validator_method_name: IDL.Opt(IDL.Text),
44
+ target_method_name: IDL.Opt(IDL.Text),
38
45
  });
39
46
  const FunctionType = IDL.Variant({
40
- 'NativeNervousSystemFunction' : IDL.Record({}),
41
- 'GenericNervousSystemFunction' : GenericNervousSystemFunction,
47
+ NativeNervousSystemFunction: IDL.Record({}),
48
+ GenericNervousSystemFunction: GenericNervousSystemFunction,
42
49
  });
43
50
  const NervousSystemFunction = IDL.Record({
44
- 'id' : IDL.Nat64,
45
- 'name' : IDL.Text,
46
- 'description' : IDL.Opt(IDL.Text),
47
- 'function_type' : IDL.Opt(FunctionType),
51
+ id: IDL.Nat64,
52
+ name: IDL.Text,
53
+ description: IDL.Opt(IDL.Text),
54
+ function_type: IDL.Opt(FunctionType),
48
55
  });
49
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
56
+ const Subaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
50
57
  const Account = IDL.Record({
51
- 'owner' : IDL.Opt(IDL.Principal),
52
- 'subaccount' : IDL.Opt(Subaccount),
58
+ owner: IDL.Opt(IDL.Principal),
59
+ subaccount: IDL.Opt(Subaccount),
53
60
  });
54
61
  const TreasuryMetrics = IDL.Record({
55
- 'name' : IDL.Opt(IDL.Text),
56
- 'original_amount_e8s' : IDL.Opt(IDL.Nat64),
57
- 'amount_e8s' : IDL.Opt(IDL.Nat64),
58
- 'account' : IDL.Opt(Account),
59
- 'ledger_canister_id' : IDL.Opt(IDL.Principal),
60
- 'treasury' : IDL.Int32,
61
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
62
+ name: IDL.Opt(IDL.Text),
63
+ original_amount_e8s: IDL.Opt(IDL.Nat64),
64
+ amount_e8s: IDL.Opt(IDL.Nat64),
65
+ account: IDL.Opt(Account),
66
+ ledger_canister_id: IDL.Opt(IDL.Principal),
67
+ treasury: IDL.Int32,
68
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
62
69
  });
63
70
  const VotingPowerMetrics = IDL.Record({
64
- 'governance_total_potential_voting_power' : IDL.Opt(IDL.Nat64),
65
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
71
+ governance_total_potential_voting_power: IDL.Opt(IDL.Nat64),
72
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
66
73
  });
67
74
  const GovernanceCachedMetrics = IDL.Record({
68
- 'treasury_metrics' : IDL.Vec(TreasuryMetrics),
69
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
70
- IDL.Tuple(IDL.Nat64, IDL.Float64)
75
+ treasury_metrics: IDL.Vec(TreasuryMetrics),
76
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(
77
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
71
78
  ),
72
- 'garbage_collectable_neurons_count' : IDL.Nat64,
73
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
74
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
75
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
79
+ garbage_collectable_neurons_count: IDL.Nat64,
80
+ neurons_with_invalid_stake_count: IDL.Nat64,
81
+ not_dissolving_neurons_count_buckets: IDL.Vec(
82
+ IDL.Tuple(IDL.Nat64, IDL.Nat64),
76
83
  ),
77
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
78
- 'dissolved_neurons_count' : IDL.Nat64,
79
- 'total_staked_e8s' : IDL.Nat64,
80
- 'total_supply_governance_tokens' : IDL.Nat64,
81
- 'voting_power_metrics' : IDL.Opt(VotingPowerMetrics),
82
- 'not_dissolving_neurons_count' : IDL.Nat64,
83
- 'dissolved_neurons_e8s' : IDL.Nat64,
84
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
85
- 'dissolving_neurons_count_buckets' : IDL.Vec(
86
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
87
- ),
88
- 'dissolving_neurons_count' : IDL.Nat64,
89
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
90
- IDL.Tuple(IDL.Nat64, IDL.Float64)
91
- ),
92
- 'timestamp_seconds' : IDL.Nat64,
84
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
85
+ dissolved_neurons_count: IDL.Nat64,
86
+ total_staked_e8s: IDL.Nat64,
87
+ total_supply_governance_tokens: IDL.Nat64,
88
+ voting_power_metrics: IDL.Opt(VotingPowerMetrics),
89
+ not_dissolving_neurons_count: IDL.Nat64,
90
+ dissolved_neurons_e8s: IDL.Nat64,
91
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
92
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
93
+ dissolving_neurons_count: IDL.Nat64,
94
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
95
+ timestamp_seconds: IDL.Nat64,
93
96
  });
94
97
  const MaturityModulation = IDL.Record({
95
- 'current_basis_points' : IDL.Opt(IDL.Int32),
96
- 'updated_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
98
+ current_basis_points: IDL.Opt(IDL.Int32),
99
+ updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
97
100
  });
98
101
  const TargetVersionSet = IDL.Record({
99
- 'old_target_version' : IDL.Opt(Version),
100
- 'new_target_version' : IDL.Opt(Version),
101
- 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
102
+ old_target_version: IDL.Opt(Version),
103
+ new_target_version: IDL.Opt(Version),
104
+ is_advanced_automatically: IDL.Opt(IDL.Bool),
102
105
  });
103
106
  const UpgradeStepsReset = IDL.Record({
104
- 'human_readable' : IDL.Opt(IDL.Text),
105
- 'upgrade_steps' : IDL.Opt(Versions),
107
+ human_readable: IDL.Opt(IDL.Text),
108
+ upgrade_steps: IDL.Opt(Versions),
106
109
  });
107
110
  const UpgradeOutcome = IDL.Record({
108
- 'status' : IDL.Opt(
111
+ status: IDL.Opt(
109
112
  IDL.Variant({
110
- 'Success' : IDL.Record({}),
111
- 'Timeout' : IDL.Record({}),
112
- 'ExternalFailure' : IDL.Record({}),
113
- 'InvalidState' : IDL.Record({ 'version' : IDL.Opt(Version) }),
114
- })
113
+ Success: IDL.Record({}),
114
+ Timeout: IDL.Record({}),
115
+ ExternalFailure: IDL.Record({}),
116
+ InvalidState: IDL.Record({ version: IDL.Opt(Version) }),
117
+ }),
115
118
  ),
116
- 'human_readable' : IDL.Opt(IDL.Text),
119
+ human_readable: IDL.Opt(IDL.Text),
117
120
  });
118
- const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
121
+ const ProposalId = IDL.Record({ id: IDL.Nat64 });
119
122
  const UpgradeStarted = IDL.Record({
120
- 'current_version' : IDL.Opt(Version),
121
- 'expected_version' : IDL.Opt(Version),
122
- 'reason' : IDL.Opt(
123
+ current_version: IDL.Opt(Version),
124
+ expected_version: IDL.Opt(Version),
125
+ reason: IDL.Opt(
123
126
  IDL.Variant({
124
- 'UpgradeSnsToNextVersionProposal' : ProposalId,
125
- 'BehindTargetVersion' : IDL.Record({}),
126
- })
127
+ UpgradeSnsToNextVersionProposal: ProposalId,
128
+ BehindTargetVersion: IDL.Record({}),
129
+ }),
127
130
  ),
128
131
  });
129
132
  const UpgradeStepsRefreshed = IDL.Record({
130
- 'upgrade_steps' : IDL.Opt(Versions),
133
+ upgrade_steps: IDL.Opt(Versions),
131
134
  });
132
135
  const TargetVersionReset = IDL.Record({
133
- 'human_readable' : IDL.Opt(IDL.Text),
134
- 'old_target_version' : IDL.Opt(Version),
135
- 'new_target_version' : IDL.Opt(Version),
136
+ human_readable: IDL.Opt(IDL.Text),
137
+ old_target_version: IDL.Opt(Version),
138
+ new_target_version: IDL.Opt(Version),
136
139
  });
137
140
  const UpgradeJournalEntry = IDL.Record({
138
- 'event' : IDL.Opt(
141
+ event: IDL.Opt(
139
142
  IDL.Variant({
140
- 'TargetVersionSet' : TargetVersionSet,
141
- 'UpgradeStepsReset' : UpgradeStepsReset,
142
- 'UpgradeOutcome' : UpgradeOutcome,
143
- 'UpgradeStarted' : UpgradeStarted,
144
- 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed,
145
- 'TargetVersionReset' : TargetVersionReset,
146
- })
143
+ TargetVersionSet: TargetVersionSet,
144
+ UpgradeStepsReset: UpgradeStepsReset,
145
+ UpgradeOutcome: UpgradeOutcome,
146
+ UpgradeStarted: UpgradeStarted,
147
+ UpgradeStepsRefreshed: UpgradeStepsRefreshed,
148
+ TargetVersionReset: TargetVersionReset,
149
+ }),
147
150
  ),
148
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
151
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
149
152
  });
150
153
  const UpgradeJournal = IDL.Record({
151
- 'entries' : IDL.Vec(UpgradeJournalEntry),
154
+ entries: IDL.Vec(UpgradeJournalEntry),
152
155
  });
153
- const NeuronId = IDL.Record({ 'id' : IDL.Vec(IDL.Nat8) });
154
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
156
+ const NeuronId = IDL.Record({ id: IDL.Vec(IDL.Nat8) });
157
+ const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
155
158
  const DefaultFollowees = IDL.Record({
156
- 'followees' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
159
+ followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
157
160
  });
158
161
  const NeuronPermissionList = IDL.Record({
159
- 'permissions' : IDL.Vec(IDL.Int32),
162
+ permissions: IDL.Vec(IDL.Int32),
160
163
  });
161
164
  const VotingRewardsParameters = IDL.Record({
162
- 'final_reward_rate_basis_points' : IDL.Opt(IDL.Nat64),
163
- 'initial_reward_rate_basis_points' : IDL.Opt(IDL.Nat64),
164
- 'reward_rate_transition_duration_seconds' : IDL.Opt(IDL.Nat64),
165
- 'round_duration_seconds' : IDL.Opt(IDL.Nat64),
165
+ final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
166
+ initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
167
+ reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
168
+ round_duration_seconds: IDL.Opt(IDL.Nat64),
166
169
  });
167
170
  const NervousSystemParameters = IDL.Record({
168
- 'default_followees' : IDL.Opt(DefaultFollowees),
169
- 'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
170
- 'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
171
- 'max_followees_per_function' : IDL.Opt(IDL.Nat64),
172
- 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
173
- 'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
174
- 'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
175
- 'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
176
- 'initial_voting_period_seconds' : IDL.Opt(IDL.Nat64),
177
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
178
- 'reject_cost_e8s' : IDL.Opt(IDL.Nat64),
179
- 'max_proposals_to_keep_per_action' : IDL.Opt(IDL.Nat32),
180
- 'wait_for_quiet_deadline_increase_seconds' : IDL.Opt(IDL.Nat64),
181
- 'max_number_of_neurons' : IDL.Opt(IDL.Nat64),
182
- 'transaction_fee_e8s' : IDL.Opt(IDL.Nat64),
183
- 'max_number_of_proposals_with_ballots' : IDL.Opt(IDL.Nat64),
184
- 'max_age_bonus_percentage' : IDL.Opt(IDL.Nat64),
185
- 'neuron_grantable_permissions' : IDL.Opt(NeuronPermissionList),
186
- 'voting_rewards_parameters' : IDL.Opt(VotingRewardsParameters),
187
- 'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
188
- 'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
171
+ default_followees: IDL.Opt(DefaultFollowees),
172
+ max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
173
+ max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
174
+ max_followees_per_function: IDL.Opt(IDL.Nat64),
175
+ automatically_advance_target_version: IDL.Opt(IDL.Bool),
176
+ neuron_claimer_permissions: IDL.Opt(NeuronPermissionList),
177
+ neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
178
+ max_neuron_age_for_age_bonus: IDL.Opt(IDL.Nat64),
179
+ initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
180
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
181
+ reject_cost_e8s: IDL.Opt(IDL.Nat64),
182
+ max_proposals_to_keep_per_action: IDL.Opt(IDL.Nat32),
183
+ wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
184
+ max_number_of_neurons: IDL.Opt(IDL.Nat64),
185
+ transaction_fee_e8s: IDL.Opt(IDL.Nat64),
186
+ max_number_of_proposals_with_ballots: IDL.Opt(IDL.Nat64),
187
+ max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
188
+ neuron_grantable_permissions: IDL.Opt(NeuronPermissionList),
189
+ voting_rewards_parameters: IDL.Opt(VotingRewardsParameters),
190
+ maturity_modulation_disabled: IDL.Opt(IDL.Bool),
191
+ max_number_of_principals_per_neuron: IDL.Opt(IDL.Nat64),
189
192
  });
190
193
  const RewardEvent = IDL.Record({
191
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
192
- 'actual_timestamp_seconds' : IDL.Nat64,
193
- 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
194
- 'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
195
- 'distributed_e8s_equivalent' : IDL.Nat64,
196
- 'round' : IDL.Nat64,
197
- 'settled_proposals' : IDL.Vec(ProposalId),
194
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
195
+ actual_timestamp_seconds: IDL.Nat64,
196
+ end_timestamp_seconds: IDL.Opt(IDL.Nat64),
197
+ total_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
198
+ distributed_e8s_equivalent: IDL.Nat64,
199
+ round: IDL.Nat64,
200
+ settled_proposals: IDL.Vec(ProposalId),
198
201
  });
199
202
  const PendingVersion = IDL.Record({
200
- 'mark_failed_at_seconds' : IDL.Nat64,
201
- 'checking_upgrade_lock' : IDL.Nat64,
202
- 'proposal_id' : IDL.Opt(IDL.Nat64),
203
- 'target_version' : IDL.Opt(Version),
203
+ mark_failed_at_seconds: IDL.Nat64,
204
+ checking_upgrade_lock: IDL.Nat64,
205
+ proposal_id: IDL.Opt(IDL.Nat64),
206
+ target_version: IDL.Opt(Version),
204
207
  });
205
208
  const GovernanceError = IDL.Record({
206
- 'error_message' : IDL.Text,
207
- 'error_type' : IDL.Int32,
209
+ error_message: IDL.Text,
210
+ error_type: IDL.Int32,
208
211
  });
209
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
210
- const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
212
+ const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
213
+ const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
211
214
  const ValuationFactors = IDL.Record({
212
- 'xdrs_per_icp' : IDL.Opt(Decimal),
213
- 'icps_per_token' : IDL.Opt(Decimal),
214
- 'tokens' : IDL.Opt(Tokens),
215
+ xdrs_per_icp: IDL.Opt(Decimal),
216
+ icps_per_token: IDL.Opt(Decimal),
217
+ tokens: IDL.Opt(Tokens),
215
218
  });
216
219
  const Valuation = IDL.Record({
217
- 'token' : IDL.Opt(IDL.Int32),
218
- 'account' : IDL.Opt(Account),
219
- 'valuation_factors' : IDL.Opt(ValuationFactors),
220
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
220
+ token: IDL.Opt(IDL.Int32),
221
+ account: IDL.Opt(Account),
222
+ valuation_factors: IDL.Opt(ValuationFactors),
223
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
221
224
  });
222
225
  const MintSnsTokensActionAuxiliary = IDL.Record({
223
- 'valuation' : IDL.Opt(Valuation),
226
+ valuation: IDL.Opt(Valuation),
224
227
  });
225
228
  const SnsVersion = IDL.Record({
226
- 'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
227
- 'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
228
- 'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
229
- 'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
230
- 'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
231
- 'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
229
+ archive_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
230
+ root_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
231
+ swap_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
232
+ ledger_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
233
+ governance_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
234
+ index_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
232
235
  });
233
236
  const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
234
- 'target_version' : IDL.Opt(SnsVersion),
237
+ target_version: IDL.Opt(SnsVersion),
235
238
  });
236
239
  const ActionAuxiliary = IDL.Variant({
237
- 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
238
- 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
239
- 'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
240
+ TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary,
241
+ MintSnsTokens: MintSnsTokensActionAuxiliary,
242
+ AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary,
240
243
  });
241
244
  const Ballot = IDL.Record({
242
- 'vote' : IDL.Int32,
243
- 'cast_timestamp_seconds' : IDL.Nat64,
244
- 'voting_power' : IDL.Nat64,
245
+ vote: IDL.Int32,
246
+ cast_timestamp_seconds: IDL.Nat64,
247
+ voting_power: IDL.Nat64,
245
248
  });
246
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
249
+ const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
247
250
  const Tally = IDL.Record({
248
- 'no' : IDL.Nat64,
249
- 'yes' : IDL.Nat64,
250
- 'total' : IDL.Nat64,
251
- 'timestamp_seconds' : IDL.Nat64,
251
+ no: IDL.Nat64,
252
+ yes: IDL.Nat64,
253
+ total: IDL.Nat64,
254
+ timestamp_seconds: IDL.Nat64,
252
255
  });
253
256
  const ManageDappCanisterSettings = IDL.Record({
254
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
255
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
256
- 'canister_ids' : IDL.Vec(IDL.Principal),
257
- 'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
258
- 'log_visibility' : IDL.Opt(IDL.Int32),
259
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
260
- 'memory_allocation' : IDL.Opt(IDL.Nat64),
261
- 'compute_allocation' : IDL.Opt(IDL.Nat64),
257
+ freezing_threshold: IDL.Opt(IDL.Nat64),
258
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
259
+ canister_ids: IDL.Vec(IDL.Principal),
260
+ reserved_cycles_limit: IDL.Opt(IDL.Nat64),
261
+ log_visibility: IDL.Opt(IDL.Int32),
262
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
263
+ memory_allocation: IDL.Opt(IDL.Nat64),
264
+ compute_allocation: IDL.Opt(IDL.Nat64),
262
265
  });
263
266
  PreciseValue.fill(
264
267
  IDL.Variant({
265
- 'Int' : IDL.Int64,
266
- 'Map' : IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
267
- 'Nat' : IDL.Nat64,
268
- 'Blob' : IDL.Vec(IDL.Nat8),
269
- 'Bool' : IDL.Bool,
270
- 'Text' : IDL.Text,
271
- 'Array' : IDL.Vec(PreciseValue),
272
- })
268
+ Int: IDL.Int64,
269
+ Map: IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
270
+ Nat: IDL.Nat64,
271
+ Blob: IDL.Vec(IDL.Nat8),
272
+ Bool: IDL.Bool,
273
+ Text: IDL.Text,
274
+ Array: IDL.Vec(PreciseValue),
275
+ }),
273
276
  );
274
- const ExtensionOperationArg = IDL.Record({ 'value' : IDL.Opt(PreciseValue) });
277
+ const ExtensionOperationArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
275
278
  const ExecuteExtensionOperation = IDL.Record({
276
- 'extension_canister_id' : IDL.Opt(IDL.Principal),
277
- 'operation_name' : IDL.Opt(IDL.Text),
278
- 'operation_arg' : IDL.Opt(ExtensionOperationArg),
279
+ extension_canister_id: IDL.Opt(IDL.Principal),
280
+ operation_name: IDL.Opt(IDL.Text),
281
+ operation_arg: IDL.Opt(ExtensionOperationArg),
279
282
  });
280
283
  const ChunkedCanisterWasm = IDL.Record({
281
- 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
282
- 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
283
- 'store_canister_id' : IDL.Opt(IDL.Principal),
284
+ wasm_module_hash: IDL.Vec(IDL.Nat8),
285
+ chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
286
+ store_canister_id: IDL.Opt(IDL.Principal),
284
287
  });
285
288
  const Wasm = IDL.Variant({
286
- 'Chunked' : ChunkedCanisterWasm,
287
- 'Bytes' : IDL.Vec(IDL.Nat8),
289
+ Chunked: ChunkedCanisterWasm,
290
+ Bytes: IDL.Vec(IDL.Nat8),
288
291
  });
289
- const ExtensionUpgradeArg = IDL.Record({ 'value' : IDL.Opt(PreciseValue) });
292
+ const ExtensionUpgradeArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
290
293
  const UpgradeExtension = IDL.Record({
291
- 'extension_canister_id' : IDL.Opt(IDL.Principal),
292
- 'wasm' : IDL.Opt(Wasm),
293
- 'canister_upgrade_arg' : IDL.Opt(ExtensionUpgradeArg),
294
+ extension_canister_id: IDL.Opt(IDL.Principal),
295
+ wasm: IDL.Opt(Wasm),
296
+ canister_upgrade_arg: IDL.Opt(ExtensionUpgradeArg),
294
297
  });
295
298
  const SetTopicsForCustomProposals = IDL.Record({
296
- 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
299
+ custom_function_id_to_topic: IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
297
300
  });
298
- const ExtensionInit = IDL.Record({ 'value' : IDL.Opt(PreciseValue) });
301
+ const ExtensionInit = IDL.Record({ value: IDL.Opt(PreciseValue) });
299
302
  const RegisterExtension = IDL.Record({
300
- 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
301
- 'extension_init' : IDL.Opt(ExtensionInit),
303
+ chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
304
+ extension_init: IDL.Opt(ExtensionInit),
302
305
  });
303
306
  const RegisterDappCanisters = IDL.Record({
304
- 'canister_ids' : IDL.Vec(IDL.Principal),
307
+ canister_ids: IDL.Vec(IDL.Principal),
305
308
  });
306
309
  const TransferSnsTreasuryFunds = IDL.Record({
307
- 'from_treasury' : IDL.Int32,
308
- 'to_principal' : IDL.Opt(IDL.Principal),
309
- 'to_subaccount' : IDL.Opt(Subaccount),
310
- 'memo' : IDL.Opt(IDL.Nat64),
311
- 'amount_e8s' : IDL.Nat64,
310
+ from_treasury: IDL.Int32,
311
+ to_principal: IDL.Opt(IDL.Principal),
312
+ to_subaccount: IDL.Opt(Subaccount),
313
+ memo: IDL.Opt(IDL.Nat64),
314
+ amount_e8s: IDL.Nat64,
312
315
  });
313
316
  const UpgradeSnsControlledCanister = IDL.Record({
314
- 'new_canister_wasm' : IDL.Vec(IDL.Nat8),
315
- 'mode' : IDL.Opt(IDL.Int32),
316
- 'canister_id' : IDL.Opt(IDL.Principal),
317
- 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
318
- 'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
317
+ new_canister_wasm: IDL.Vec(IDL.Nat8),
318
+ mode: IDL.Opt(IDL.Int32),
319
+ canister_id: IDL.Opt(IDL.Principal),
320
+ chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
321
+ canister_upgrade_arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
319
322
  });
320
323
  const DeregisterDappCanisters = IDL.Record({
321
- 'canister_ids' : IDL.Vec(IDL.Principal),
322
- 'new_controllers' : IDL.Vec(IDL.Principal),
324
+ canister_ids: IDL.Vec(IDL.Principal),
325
+ new_controllers: IDL.Vec(IDL.Principal),
323
326
  });
324
327
  const MintSnsTokens = IDL.Record({
325
- 'to_principal' : IDL.Opt(IDL.Principal),
326
- 'to_subaccount' : IDL.Opt(Subaccount),
327
- 'memo' : IDL.Opt(IDL.Nat64),
328
- 'amount_e8s' : IDL.Opt(IDL.Nat64),
328
+ to_principal: IDL.Opt(IDL.Principal),
329
+ to_subaccount: IDL.Opt(Subaccount),
330
+ memo: IDL.Opt(IDL.Nat64),
331
+ amount_e8s: IDL.Opt(IDL.Nat64),
329
332
  });
330
333
  const AdvanceSnsTargetVersion = IDL.Record({
331
- 'new_target' : IDL.Opt(SnsVersion),
334
+ new_target: IDL.Opt(SnsVersion),
332
335
  });
333
336
  const ManageSnsMetadata = IDL.Record({
334
- 'url' : IDL.Opt(IDL.Text),
335
- 'logo' : IDL.Opt(IDL.Text),
336
- 'name' : IDL.Opt(IDL.Text),
337
- 'description' : IDL.Opt(IDL.Text),
337
+ url: IDL.Opt(IDL.Text),
338
+ logo: IDL.Opt(IDL.Text),
339
+ name: IDL.Opt(IDL.Text),
340
+ description: IDL.Opt(IDL.Text),
338
341
  });
339
342
  const ExecuteGenericNervousSystemFunction = IDL.Record({
340
- 'function_id' : IDL.Nat64,
341
- 'payload' : IDL.Vec(IDL.Nat8),
343
+ function_id: IDL.Nat64,
344
+ payload: IDL.Vec(IDL.Nat8),
342
345
  });
343
346
  const ManageLedgerParameters = IDL.Record({
344
- 'token_symbol' : IDL.Opt(IDL.Text),
345
- 'transfer_fee' : IDL.Opt(IDL.Nat64),
346
- 'token_logo' : IDL.Opt(IDL.Text),
347
- 'token_name' : IDL.Opt(IDL.Text),
347
+ token_symbol: IDL.Opt(IDL.Text),
348
+ transfer_fee: IDL.Opt(IDL.Nat64),
349
+ token_logo: IDL.Opt(IDL.Text),
350
+ token_name: IDL.Opt(IDL.Text),
348
351
  });
349
- const Motion = IDL.Record({ 'motion_text' : IDL.Text });
352
+ const Motion = IDL.Record({ motion_text: IDL.Text });
350
353
  const Action = IDL.Variant({
351
- 'ManageNervousSystemParameters' : NervousSystemParameters,
352
- 'AddGenericNervousSystemFunction' : NervousSystemFunction,
353
- 'ManageDappCanisterSettings' : ManageDappCanisterSettings,
354
- 'ExecuteExtensionOperation' : ExecuteExtensionOperation,
355
- 'UpgradeExtension' : UpgradeExtension,
356
- 'RemoveGenericNervousSystemFunction' : IDL.Nat64,
357
- 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
358
- 'RegisterExtension' : RegisterExtension,
359
- 'UpgradeSnsToNextVersion' : IDL.Record({}),
360
- 'RegisterDappCanisters' : RegisterDappCanisters,
361
- 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
362
- 'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
363
- 'DeregisterDappCanisters' : DeregisterDappCanisters,
364
- 'MintSnsTokens' : MintSnsTokens,
365
- 'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
366
- 'Unspecified' : IDL.Record({}),
367
- 'ManageSnsMetadata' : ManageSnsMetadata,
368
- 'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
369
- 'ManageLedgerParameters' : ManageLedgerParameters,
370
- 'Motion' : Motion,
354
+ ManageNervousSystemParameters: NervousSystemParameters,
355
+ AddGenericNervousSystemFunction: NervousSystemFunction,
356
+ ManageDappCanisterSettings: ManageDappCanisterSettings,
357
+ ExecuteExtensionOperation: ExecuteExtensionOperation,
358
+ UpgradeExtension: UpgradeExtension,
359
+ RemoveGenericNervousSystemFunction: IDL.Nat64,
360
+ SetTopicsForCustomProposals: SetTopicsForCustomProposals,
361
+ RegisterExtension: RegisterExtension,
362
+ UpgradeSnsToNextVersion: IDL.Record({}),
363
+ RegisterDappCanisters: RegisterDappCanisters,
364
+ TransferSnsTreasuryFunds: TransferSnsTreasuryFunds,
365
+ UpgradeSnsControlledCanister: UpgradeSnsControlledCanister,
366
+ DeregisterDappCanisters: DeregisterDappCanisters,
367
+ MintSnsTokens: MintSnsTokens,
368
+ AdvanceSnsTargetVersion: AdvanceSnsTargetVersion,
369
+ Unspecified: IDL.Record({}),
370
+ ManageSnsMetadata: ManageSnsMetadata,
371
+ ExecuteGenericNervousSystemFunction: ExecuteGenericNervousSystemFunction,
372
+ ManageLedgerParameters: ManageLedgerParameters,
373
+ Motion: Motion,
371
374
  });
372
375
  const Proposal = IDL.Record({
373
- 'url' : IDL.Text,
374
- 'title' : IDL.Text,
375
- 'action' : IDL.Opt(Action),
376
- 'summary' : IDL.Text,
376
+ url: IDL.Text,
377
+ title: IDL.Text,
378
+ action: IDL.Opt(Action),
379
+ summary: IDL.Text,
377
380
  });
378
381
  const WaitForQuietState = IDL.Record({
379
- 'current_deadline_timestamp_seconds' : IDL.Nat64,
382
+ current_deadline_timestamp_seconds: IDL.Nat64,
380
383
  });
381
384
  const ProposalData = IDL.Record({
382
- 'id' : IDL.Opt(ProposalId),
383
- 'payload_text_rendering' : IDL.Opt(IDL.Text),
384
- 'topic' : IDL.Opt(Topic),
385
- 'action' : IDL.Nat64,
386
- 'failure_reason' : IDL.Opt(GovernanceError),
387
- 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
388
- 'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
389
- 'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
390
- 'reward_event_round' : IDL.Nat64,
391
- 'failed_timestamp_seconds' : IDL.Nat64,
392
- 'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
393
- 'proposal_creation_timestamp_seconds' : IDL.Nat64,
394
- 'initial_voting_period_seconds' : IDL.Nat64,
395
- 'reject_cost_e8s' : IDL.Nat64,
396
- 'latest_tally' : IDL.Opt(Tally),
397
- 'wait_for_quiet_deadline_increase_seconds' : IDL.Nat64,
398
- 'decided_timestamp_seconds' : IDL.Nat64,
399
- 'proposal' : IDL.Opt(Proposal),
400
- 'proposer' : IDL.Opt(NeuronId),
401
- 'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
402
- 'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
403
- 'is_eligible_for_rewards' : IDL.Bool,
404
- 'executed_timestamp_seconds' : IDL.Nat64,
405
- });
406
- const Split = IDL.Record({ 'memo' : IDL.Nat64, 'amount_e8s' : IDL.Nat64 });
385
+ id: IDL.Opt(ProposalId),
386
+ payload_text_rendering: IDL.Opt(IDL.Text),
387
+ topic: IDL.Opt(Topic),
388
+ action: IDL.Nat64,
389
+ failure_reason: IDL.Opt(GovernanceError),
390
+ action_auxiliary: IDL.Opt(ActionAuxiliary),
391
+ ballots: IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
392
+ minimum_yes_proportion_of_total: IDL.Opt(Percentage),
393
+ reward_event_round: IDL.Nat64,
394
+ failed_timestamp_seconds: IDL.Nat64,
395
+ reward_event_end_timestamp_seconds: IDL.Opt(IDL.Nat64),
396
+ proposal_creation_timestamp_seconds: IDL.Nat64,
397
+ initial_voting_period_seconds: IDL.Nat64,
398
+ reject_cost_e8s: IDL.Nat64,
399
+ latest_tally: IDL.Opt(Tally),
400
+ wait_for_quiet_deadline_increase_seconds: IDL.Nat64,
401
+ decided_timestamp_seconds: IDL.Nat64,
402
+ proposal: IDL.Opt(Proposal),
403
+ proposer: IDL.Opt(NeuronId),
404
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
405
+ minimum_yes_proportion_of_exercised: IDL.Opt(Percentage),
406
+ is_eligible_for_rewards: IDL.Bool,
407
+ executed_timestamp_seconds: IDL.Nat64,
408
+ });
409
+ const Split = IDL.Record({ memo: IDL.Nat64, amount_e8s: IDL.Nat64 });
407
410
  const Follow = IDL.Record({
408
- 'function_id' : IDL.Nat64,
409
- 'followees' : IDL.Vec(NeuronId),
411
+ function_id: IDL.Nat64,
412
+ followees: IDL.Vec(NeuronId),
410
413
  });
411
414
  const DisburseMaturity = IDL.Record({
412
- 'to_account' : IDL.Opt(Account),
413
- 'percentage_to_disburse' : IDL.Nat32,
415
+ to_account: IDL.Opt(Account),
416
+ percentage_to_disburse: IDL.Nat32,
414
417
  });
415
418
  const ChangeAutoStakeMaturity = IDL.Record({
416
- 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
419
+ requested_setting_for_auto_stake_maturity: IDL.Bool,
417
420
  });
418
421
  const IncreaseDissolveDelay = IDL.Record({
419
- 'additional_dissolve_delay_seconds' : IDL.Nat32,
422
+ additional_dissolve_delay_seconds: IDL.Nat32,
420
423
  });
421
424
  const SetDissolveTimestamp = IDL.Record({
422
- 'dissolve_timestamp_seconds' : IDL.Nat64,
425
+ dissolve_timestamp_seconds: IDL.Nat64,
423
426
  });
424
427
  const Operation = IDL.Variant({
425
- 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
426
- 'StopDissolving' : IDL.Record({}),
427
- 'StartDissolving' : IDL.Record({}),
428
- 'IncreaseDissolveDelay' : IncreaseDissolveDelay,
429
- 'SetDissolveTimestamp' : SetDissolveTimestamp,
428
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
429
+ StopDissolving: IDL.Record({}),
430
+ StartDissolving: IDL.Record({}),
431
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
432
+ SetDissolveTimestamp: SetDissolveTimestamp,
430
433
  });
431
- const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
434
+ const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
432
435
  const RegisterVote = IDL.Record({
433
- 'vote' : IDL.Int32,
434
- 'proposal' : IDL.Opt(ProposalId),
436
+ vote: IDL.Int32,
437
+ proposal: IDL.Opt(ProposalId),
435
438
  });
436
439
  const Followee = IDL.Record({
437
- 'alias' : IDL.Opt(IDL.Text),
438
- 'neuron_id' : IDL.Opt(NeuronId),
440
+ alias: IDL.Opt(IDL.Text),
441
+ neuron_id: IDL.Opt(NeuronId),
439
442
  });
440
443
  const FolloweesForTopic = IDL.Record({
441
- 'topic' : IDL.Opt(Topic),
442
- 'followees' : IDL.Vec(Followee),
444
+ topic: IDL.Opt(Topic),
445
+ followees: IDL.Vec(Followee),
443
446
  });
444
447
  const SetFollowing = IDL.Record({
445
- 'topic_following' : IDL.Vec(FolloweesForTopic),
448
+ topic_following: IDL.Vec(FolloweesForTopic),
446
449
  });
447
450
  const FinalizeDisburseMaturity = IDL.Record({
448
- 'amount_to_be_disbursed_e8s' : IDL.Nat64,
449
- 'to_account' : IDL.Opt(Account),
451
+ amount_to_be_disbursed_e8s: IDL.Nat64,
452
+ to_account: IDL.Opt(Account),
450
453
  });
451
454
  const MemoAndController = IDL.Record({
452
- 'controller' : IDL.Opt(IDL.Principal),
453
- 'memo' : IDL.Nat64,
455
+ controller: IDL.Opt(IDL.Principal),
456
+ memo: IDL.Nat64,
454
457
  });
455
458
  const By = IDL.Variant({
456
- 'MemoAndController' : MemoAndController,
457
- 'NeuronId' : IDL.Record({}),
459
+ MemoAndController: MemoAndController,
460
+ NeuronId: IDL.Record({}),
458
461
  });
459
- const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
462
+ const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
460
463
  const RemoveNeuronPermissions = IDL.Record({
461
- 'permissions_to_remove' : IDL.Opt(NeuronPermissionList),
462
- 'principal_id' : IDL.Opt(IDL.Principal),
464
+ permissions_to_remove: IDL.Opt(NeuronPermissionList),
465
+ principal_id: IDL.Opt(IDL.Principal),
463
466
  });
464
467
  const AddNeuronPermissions = IDL.Record({
465
- 'permissions_to_add' : IDL.Opt(NeuronPermissionList),
466
- 'principal_id' : IDL.Opt(IDL.Principal),
468
+ permissions_to_add: IDL.Opt(NeuronPermissionList),
469
+ principal_id: IDL.Opt(IDL.Principal),
467
470
  });
468
- const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
469
- const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
471
+ const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
472
+ const Amount = IDL.Record({ e8s: IDL.Nat64 });
470
473
  const Disburse = IDL.Record({
471
- 'to_account' : IDL.Opt(Account),
472
- 'amount' : IDL.Opt(Amount),
474
+ to_account: IDL.Opt(Account),
475
+ amount: IDL.Opt(Amount),
473
476
  });
474
477
  const Command_2 = IDL.Variant({
475
- 'Split' : Split,
476
- 'Follow' : Follow,
477
- 'DisburseMaturity' : DisburseMaturity,
478
- 'Configure' : Configure,
479
- 'RegisterVote' : RegisterVote,
480
- 'SetFollowing' : SetFollowing,
481
- 'SyncCommand' : IDL.Record({}),
482
- 'MakeProposal' : Proposal,
483
- 'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
484
- 'ClaimOrRefreshNeuron' : ClaimOrRefresh,
485
- 'RemoveNeuronPermissions' : RemoveNeuronPermissions,
486
- 'AddNeuronPermissions' : AddNeuronPermissions,
487
- 'MergeMaturity' : MergeMaturity,
488
- 'Disburse' : Disburse,
478
+ Split: Split,
479
+ Follow: Follow,
480
+ DisburseMaturity: DisburseMaturity,
481
+ Configure: Configure,
482
+ RegisterVote: RegisterVote,
483
+ SetFollowing: SetFollowing,
484
+ SyncCommand: IDL.Record({}),
485
+ MakeProposal: Proposal,
486
+ FinalizeDisburseMaturity: FinalizeDisburseMaturity,
487
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
488
+ RemoveNeuronPermissions: RemoveNeuronPermissions,
489
+ AddNeuronPermissions: AddNeuronPermissions,
490
+ MergeMaturity: MergeMaturity,
491
+ Disburse: Disburse,
489
492
  });
490
493
  const NeuronInFlightCommand = IDL.Record({
491
- 'command' : IDL.Opt(Command_2),
492
- 'timestamp' : IDL.Nat64,
494
+ command: IDL.Opt(Command_2),
495
+ timestamp: IDL.Nat64,
493
496
  });
494
497
  const NeuronPermission = IDL.Record({
495
- 'principal' : IDL.Opt(IDL.Principal),
496
- 'permission_type' : IDL.Vec(IDL.Int32),
498
+ principal: IDL.Opt(IDL.Principal),
499
+ permission_type: IDL.Vec(IDL.Int32),
497
500
  });
498
501
  const DissolveState = IDL.Variant({
499
- 'DissolveDelaySeconds' : IDL.Nat64,
500
- 'WhenDissolvedTimestampSeconds' : IDL.Nat64,
502
+ DissolveDelaySeconds: IDL.Nat64,
503
+ WhenDissolvedTimestampSeconds: IDL.Nat64,
501
504
  });
502
505
  const DisburseMaturityInProgress = IDL.Record({
503
- 'timestamp_of_disbursement_seconds' : IDL.Nat64,
504
- 'amount_e8s' : IDL.Nat64,
505
- 'account_to_disburse_to' : IDL.Opt(Account),
506
- 'finalize_disbursement_timestamp_seconds' : IDL.Opt(IDL.Nat64),
506
+ timestamp_of_disbursement_seconds: IDL.Nat64,
507
+ amount_e8s: IDL.Nat64,
508
+ account_to_disburse_to: IDL.Opt(Account),
509
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
507
510
  });
508
511
  const Neuron = IDL.Record({
509
- 'id' : IDL.Opt(NeuronId),
510
- 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
511
- 'permissions' : IDL.Vec(NeuronPermission),
512
- 'maturity_e8s_equivalent' : IDL.Nat64,
513
- 'cached_neuron_stake_e8s' : IDL.Nat64,
514
- 'created_timestamp_seconds' : IDL.Nat64,
515
- 'topic_followees' : IDL.Opt(
512
+ id: IDL.Opt(NeuronId),
513
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
514
+ permissions: IDL.Vec(NeuronPermission),
515
+ maturity_e8s_equivalent: IDL.Nat64,
516
+ cached_neuron_stake_e8s: IDL.Nat64,
517
+ created_timestamp_seconds: IDL.Nat64,
518
+ topic_followees: IDL.Opt(
516
519
  IDL.Record({
517
- 'topic_id_to_followees' : IDL.Vec(
518
- IDL.Tuple(IDL.Int32, FolloweesForTopic)
519
- ),
520
- })
520
+ topic_id_to_followees: IDL.Vec(IDL.Tuple(IDL.Int32, FolloweesForTopic)),
521
+ }),
521
522
  ),
522
- 'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
523
- 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
524
- 'aging_since_timestamp_seconds' : IDL.Nat64,
525
- 'dissolve_state' : IDL.Opt(DissolveState),
526
- 'voting_power_percentage_multiplier' : IDL.Nat64,
527
- 'vesting_period_seconds' : IDL.Opt(IDL.Nat64),
528
- 'disburse_maturity_in_progress' : IDL.Vec(DisburseMaturityInProgress),
529
- 'followees' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
530
- 'neuron_fees_e8s' : IDL.Nat64,
523
+ source_nns_neuron_id: IDL.Opt(IDL.Nat64),
524
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
525
+ aging_since_timestamp_seconds: IDL.Nat64,
526
+ dissolve_state: IDL.Opt(DissolveState),
527
+ voting_power_percentage_multiplier: IDL.Nat64,
528
+ vesting_period_seconds: IDL.Opt(IDL.Nat64),
529
+ disburse_maturity_in_progress: IDL.Vec(DisburseMaturityInProgress),
530
+ followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
531
+ neuron_fees_e8s: IDL.Nat64,
531
532
  });
532
533
  const Governance = IDL.Record({
533
- 'root_canister_id' : IDL.Opt(IDL.Principal),
534
- 'timers' : IDL.Opt(Timers),
535
- 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
536
- 'id_to_nervous_system_functions' : IDL.Vec(
537
- IDL.Tuple(IDL.Nat64, NervousSystemFunction)
534
+ root_canister_id: IDL.Opt(IDL.Principal),
535
+ timers: IDL.Opt(Timers),
536
+ cached_upgrade_steps: IDL.Opt(CachedUpgradeSteps),
537
+ id_to_nervous_system_functions: IDL.Vec(
538
+ IDL.Tuple(IDL.Nat64, NervousSystemFunction),
538
539
  ),
539
- 'metrics' : IDL.Opt(GovernanceCachedMetrics),
540
- 'maturity_modulation' : IDL.Opt(MaturityModulation),
541
- 'upgrade_journal' : IDL.Opt(UpgradeJournal),
542
- 'mode' : IDL.Int32,
543
- 'parameters' : IDL.Opt(NervousSystemParameters),
544
- 'is_finalizing_disburse_maturity' : IDL.Opt(IDL.Bool),
545
- 'deployed_version' : IDL.Opt(Version),
546
- 'sns_initialization_parameters' : IDL.Text,
547
- 'latest_reward_event' : IDL.Opt(RewardEvent),
548
- 'pending_version' : IDL.Opt(PendingVersion),
549
- 'swap_canister_id' : IDL.Opt(IDL.Principal),
550
- 'ledger_canister_id' : IDL.Opt(IDL.Principal),
551
- 'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
552
- 'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
553
- 'sns_metadata' : IDL.Opt(ManageSnsMetadata),
554
- 'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
555
- 'target_version' : IDL.Opt(Version),
556
- 'genesis_timestamp_seconds' : IDL.Nat64,
557
- });
558
- const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
540
+ metrics: IDL.Opt(GovernanceCachedMetrics),
541
+ maturity_modulation: IDL.Opt(MaturityModulation),
542
+ upgrade_journal: IDL.Opt(UpgradeJournal),
543
+ mode: IDL.Int32,
544
+ parameters: IDL.Opt(NervousSystemParameters),
545
+ is_finalizing_disburse_maturity: IDL.Opt(IDL.Bool),
546
+ deployed_version: IDL.Opt(Version),
547
+ sns_initialization_parameters: IDL.Text,
548
+ latest_reward_event: IDL.Opt(RewardEvent),
549
+ pending_version: IDL.Opt(PendingVersion),
550
+ swap_canister_id: IDL.Opt(IDL.Principal),
551
+ ledger_canister_id: IDL.Opt(IDL.Principal),
552
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
553
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
554
+ sns_metadata: IDL.Opt(ManageSnsMetadata),
555
+ neurons: IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
556
+ target_version: IDL.Opt(Version),
557
+ genesis_timestamp_seconds: IDL.Nat64,
558
+ });
559
+ const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
559
560
  const NeuronsFund = IDL.Record({
560
- 'nns_neuron_hotkeys' : IDL.Opt(Principals),
561
- 'nns_neuron_controller' : IDL.Opt(IDL.Principal),
562
- 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
561
+ nns_neuron_hotkeys: IDL.Opt(Principals),
562
+ nns_neuron_controller: IDL.Opt(IDL.Principal),
563
+ nns_neuron_id: IDL.Opt(IDL.Nat64),
563
564
  });
564
565
  const Participant = IDL.Variant({
565
- 'NeuronsFund' : NeuronsFund,
566
- 'Direct' : IDL.Record({}),
566
+ NeuronsFund: NeuronsFund,
567
+ Direct: IDL.Record({}),
567
568
  });
568
- const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) });
569
+ const NeuronIds = IDL.Record({ neuron_ids: IDL.Vec(NeuronId) });
569
570
  const NeuronRecipe = IDL.Record({
570
- 'controller' : IDL.Opt(IDL.Principal),
571
- 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
572
- 'participant' : IDL.Opt(Participant),
573
- 'stake_e8s' : IDL.Opt(IDL.Nat64),
574
- 'followees' : IDL.Opt(NeuronIds),
575
- 'neuron_id' : IDL.Opt(NeuronId),
571
+ controller: IDL.Opt(IDL.Principal),
572
+ dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
573
+ participant: IDL.Opt(Participant),
574
+ stake_e8s: IDL.Opt(IDL.Nat64),
575
+ followees: IDL.Opt(NeuronIds),
576
+ neuron_id: IDL.Opt(NeuronId),
576
577
  });
577
578
  const NeuronRecipes = IDL.Record({
578
- 'neuron_recipes' : IDL.Vec(NeuronRecipe),
579
+ neuron_recipes: IDL.Vec(NeuronRecipe),
579
580
  });
580
581
  const ClaimSwapNeuronsRequest = IDL.Record({
581
- 'neuron_recipes' : IDL.Opt(NeuronRecipes),
582
+ neuron_recipes: IDL.Opt(NeuronRecipes),
582
583
  });
583
584
  const SwapNeuron = IDL.Record({
584
- 'id' : IDL.Opt(NeuronId),
585
- 'status' : IDL.Int32,
585
+ id: IDL.Opt(NeuronId),
586
+ status: IDL.Int32,
586
587
  });
587
588
  const ClaimedSwapNeurons = IDL.Record({
588
- 'swap_neurons' : IDL.Vec(SwapNeuron),
589
+ swap_neurons: IDL.Vec(SwapNeuron),
589
590
  });
590
591
  const ClaimSwapNeuronsResult = IDL.Variant({
591
- 'Ok' : ClaimedSwapNeurons,
592
- 'Err' : IDL.Int32,
592
+ Ok: ClaimedSwapNeurons,
593
+ Err: IDL.Int32,
593
594
  });
594
595
  const ClaimSwapNeuronsResponse = IDL.Record({
595
- 'claim_swap_neurons_result' : IDL.Opt(ClaimSwapNeuronsResult),
596
+ claim_swap_neurons_result: IDL.Opt(ClaimSwapNeuronsResult),
596
597
  });
597
598
  const GetMaturityModulationResponse = IDL.Record({
598
- 'maturity_modulation' : IDL.Opt(MaturityModulation),
599
+ maturity_modulation: IDL.Opt(MaturityModulation),
599
600
  });
600
601
  const GetMetadataResponse = IDL.Record({
601
- 'url' : IDL.Opt(IDL.Text),
602
- 'logo' : IDL.Opt(IDL.Text),
603
- 'name' : IDL.Opt(IDL.Text),
604
- 'description' : IDL.Opt(IDL.Text),
602
+ url: IDL.Opt(IDL.Text),
603
+ logo: IDL.Opt(IDL.Text),
604
+ name: IDL.Opt(IDL.Text),
605
+ description: IDL.Opt(IDL.Text),
605
606
  });
606
607
  const GetMetricsRequest = IDL.Record({
607
- 'time_window_seconds' : IDL.Opt(IDL.Nat64),
608
+ time_window_seconds: IDL.Opt(IDL.Nat64),
608
609
  });
609
610
  const Metrics = IDL.Record({
610
- 'treasury_metrics' : IDL.Opt(IDL.Vec(TreasuryMetrics)),
611
- 'voting_power_metrics' : IDL.Opt(VotingPowerMetrics),
612
- 'last_ledger_block_timestamp' : IDL.Opt(IDL.Nat64),
613
- 'num_recently_executed_proposals' : IDL.Opt(IDL.Nat64),
614
- 'num_recently_submitted_proposals' : IDL.Opt(IDL.Nat64),
615
- 'genesis_timestamp_seconds' : IDL.Opt(IDL.Nat64),
611
+ treasury_metrics: IDL.Opt(IDL.Vec(TreasuryMetrics)),
612
+ voting_power_metrics: IDL.Opt(VotingPowerMetrics),
613
+ last_ledger_block_timestamp: IDL.Opt(IDL.Nat64),
614
+ num_recently_executed_proposals: IDL.Opt(IDL.Nat64),
615
+ num_recently_submitted_proposals: IDL.Opt(IDL.Nat64),
616
+ genesis_timestamp_seconds: IDL.Opt(IDL.Nat64),
616
617
  });
617
618
  const GetMetricsResult = IDL.Variant({
618
- 'Ok' : Metrics,
619
- 'Err' : GovernanceError,
619
+ Ok: Metrics,
620
+ Err: GovernanceError,
620
621
  });
621
622
  const GetMetricsResponse = IDL.Record({
622
- 'get_metrics_result' : IDL.Opt(GetMetricsResult),
623
+ get_metrics_result: IDL.Opt(GetMetricsResult),
623
624
  });
624
- const GetModeResponse = IDL.Record({ 'mode' : IDL.Opt(IDL.Int32) });
625
- const GetNeuron = IDL.Record({ 'neuron_id' : IDL.Opt(NeuronId) });
626
- const Result = IDL.Variant({ 'Error' : GovernanceError, 'Neuron' : Neuron });
627
- const GetNeuronResponse = IDL.Record({ 'result' : IDL.Opt(Result) });
628
- const GetProposal = IDL.Record({ 'proposal_id' : IDL.Opt(ProposalId) });
625
+ const GetModeResponse = IDL.Record({ mode: IDL.Opt(IDL.Int32) });
626
+ const GetNeuron = IDL.Record({ neuron_id: IDL.Opt(NeuronId) });
627
+ const Result = IDL.Variant({ Error: GovernanceError, Neuron: Neuron });
628
+ const GetNeuronResponse = IDL.Record({ result: IDL.Opt(Result) });
629
+ const GetProposal = IDL.Record({ proposal_id: IDL.Opt(ProposalId) });
629
630
  const Result_1 = IDL.Variant({
630
- 'Error' : GovernanceError,
631
- 'Proposal' : ProposalData,
631
+ Error: GovernanceError,
632
+ Proposal: ProposalData,
632
633
  });
633
- const GetProposalResponse = IDL.Record({ 'result' : IDL.Opt(Result_1) });
634
+ const GetProposalResponse = IDL.Record({ result: IDL.Opt(Result_1) });
634
635
  const MemoryMetrics = IDL.Record({
635
- 'wasm_binary_size' : IDL.Opt(IDL.Nat),
636
- 'wasm_chunk_store_size' : IDL.Opt(IDL.Nat),
637
- 'canister_history_size' : IDL.Opt(IDL.Nat),
638
- 'stable_memory_size' : IDL.Opt(IDL.Nat),
639
- 'snapshots_size' : IDL.Opt(IDL.Nat),
640
- 'wasm_memory_size' : IDL.Opt(IDL.Nat),
641
- 'global_memory_size' : IDL.Opt(IDL.Nat),
642
- 'custom_sections_size' : IDL.Opt(IDL.Nat),
636
+ wasm_binary_size: IDL.Opt(IDL.Nat),
637
+ wasm_chunk_store_size: IDL.Opt(IDL.Nat),
638
+ canister_history_size: IDL.Opt(IDL.Nat),
639
+ stable_memory_size: IDL.Opt(IDL.Nat),
640
+ snapshots_size: IDL.Opt(IDL.Nat),
641
+ wasm_memory_size: IDL.Opt(IDL.Nat),
642
+ global_memory_size: IDL.Opt(IDL.Nat),
643
+ custom_sections_size: IDL.Opt(IDL.Nat),
643
644
  });
644
645
  const CanisterStatusType = IDL.Variant({
645
- 'stopped' : IDL.Null,
646
- 'stopping' : IDL.Null,
647
- 'running' : IDL.Null,
646
+ stopped: IDL.Null,
647
+ stopping: IDL.Null,
648
+ running: IDL.Null,
648
649
  });
649
650
  const DefiniteCanisterSettingsArgs = IDL.Record({
650
- 'freezing_threshold' : IDL.Nat,
651
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),
652
- 'controllers' : IDL.Vec(IDL.Principal),
653
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat),
654
- 'memory_allocation' : IDL.Nat,
655
- 'compute_allocation' : IDL.Nat,
651
+ freezing_threshold: IDL.Nat,
652
+ wasm_memory_threshold: IDL.Opt(IDL.Nat),
653
+ controllers: IDL.Vec(IDL.Principal),
654
+ wasm_memory_limit: IDL.Opt(IDL.Nat),
655
+ memory_allocation: IDL.Nat,
656
+ compute_allocation: IDL.Nat,
656
657
  });
657
658
  const QueryStats = IDL.Record({
658
- 'response_payload_bytes_total' : IDL.Opt(IDL.Nat),
659
- 'num_instructions_total' : IDL.Opt(IDL.Nat),
660
- 'num_calls_total' : IDL.Opt(IDL.Nat),
661
- 'request_payload_bytes_total' : IDL.Opt(IDL.Nat),
659
+ response_payload_bytes_total: IDL.Opt(IDL.Nat),
660
+ num_instructions_total: IDL.Opt(IDL.Nat),
661
+ num_calls_total: IDL.Opt(IDL.Nat),
662
+ request_payload_bytes_total: IDL.Opt(IDL.Nat),
662
663
  });
663
664
  const CanisterStatusResultV2 = IDL.Record({
664
- 'memory_metrics' : IDL.Opt(MemoryMetrics),
665
- 'status' : CanisterStatusType,
666
- 'memory_size' : IDL.Nat,
667
- 'cycles' : IDL.Nat,
668
- 'settings' : DefiniteCanisterSettingsArgs,
669
- 'query_stats' : IDL.Opt(QueryStats),
670
- 'idle_cycles_burned_per_day' : IDL.Nat,
671
- 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
665
+ memory_metrics: IDL.Opt(MemoryMetrics),
666
+ status: CanisterStatusType,
667
+ memory_size: IDL.Nat,
668
+ cycles: IDL.Nat,
669
+ settings: DefiniteCanisterSettingsArgs,
670
+ query_stats: IDL.Opt(QueryStats),
671
+ idle_cycles_burned_per_day: IDL.Nat,
672
+ module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
672
673
  });
673
674
  const GetRunningSnsVersionResponse = IDL.Record({
674
- 'deployed_version' : IDL.Opt(Version),
675
- 'pending_version' : IDL.Opt(
675
+ deployed_version: IDL.Opt(Version),
676
+ pending_version: IDL.Opt(
676
677
  IDL.Record({
677
- 'mark_failed_at_seconds' : IDL.Nat64,
678
- 'checking_upgrade_lock' : IDL.Nat64,
679
- 'proposal_id' : IDL.Nat64,
680
- 'target_version' : IDL.Opt(Version),
681
- })
678
+ mark_failed_at_seconds: IDL.Nat64,
679
+ checking_upgrade_lock: IDL.Nat64,
680
+ proposal_id: IDL.Nat64,
681
+ target_version: IDL.Opt(Version),
682
+ }),
682
683
  ),
683
684
  });
684
685
  const GetSnsInitializationParametersResponse = IDL.Record({
685
- 'sns_initialization_parameters' : IDL.Text,
686
+ sns_initialization_parameters: IDL.Text,
686
687
  });
687
- const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
688
+ const GetTimersResponse = IDL.Record({ timers: IDL.Opt(Timers) });
688
689
  const GetUpgradeJournalRequest = IDL.Record({
689
- 'offset' : IDL.Opt(IDL.Nat64),
690
- 'limit' : IDL.Opt(IDL.Nat64),
690
+ offset: IDL.Opt(IDL.Nat64),
691
+ limit: IDL.Opt(IDL.Nat64),
691
692
  });
692
693
  const GetUpgradeJournalResponse = IDL.Record({
693
- 'upgrade_journal' : IDL.Opt(UpgradeJournal),
694
- 'upgrade_steps' : IDL.Opt(Versions),
695
- 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
696
- 'deployed_version' : IDL.Opt(Version),
697
- 'target_version' : IDL.Opt(Version),
698
- 'upgrade_journal_entry_count' : IDL.Opt(IDL.Nat64),
694
+ upgrade_journal: IDL.Opt(UpgradeJournal),
695
+ upgrade_steps: IDL.Opt(Versions),
696
+ response_timestamp_seconds: IDL.Opt(IDL.Nat64),
697
+ deployed_version: IDL.Opt(Version),
698
+ target_version: IDL.Opt(Version),
699
+ upgrade_journal_entry_count: IDL.Opt(IDL.Nat64),
699
700
  });
700
701
  const ListNervousSystemFunctionsResponse = IDL.Record({
701
- 'reserved_ids' : IDL.Vec(IDL.Nat64),
702
- 'functions' : IDL.Vec(NervousSystemFunction),
702
+ reserved_ids: IDL.Vec(IDL.Nat64),
703
+ functions: IDL.Vec(NervousSystemFunction),
703
704
  });
704
705
  const ListNeurons = IDL.Record({
705
- 'of_principal' : IDL.Opt(IDL.Principal),
706
- 'limit' : IDL.Nat32,
707
- 'start_page_at' : IDL.Opt(NeuronId),
706
+ of_principal: IDL.Opt(IDL.Principal),
707
+ limit: IDL.Nat32,
708
+ start_page_at: IDL.Opt(NeuronId),
708
709
  });
709
- const ListNeuronsResponse = IDL.Record({ 'neurons' : IDL.Vec(Neuron) });
710
- const TopicSelector = IDL.Record({ 'topic' : IDL.Opt(Topic) });
710
+ const ListNeuronsResponse = IDL.Record({ neurons: IDL.Vec(Neuron) });
711
+ const TopicSelector = IDL.Record({ topic: IDL.Opt(Topic) });
711
712
  const ListProposals = IDL.Record({
712
- 'include_reward_status' : IDL.Vec(IDL.Int32),
713
- 'before_proposal' : IDL.Opt(ProposalId),
714
- 'limit' : IDL.Nat32,
715
- 'exclude_type' : IDL.Vec(IDL.Nat64),
716
- 'include_topics' : IDL.Opt(IDL.Vec(TopicSelector)),
717
- 'include_status' : IDL.Vec(IDL.Int32),
713
+ include_reward_status: IDL.Vec(IDL.Int32),
714
+ before_proposal: IDL.Opt(ProposalId),
715
+ limit: IDL.Nat32,
716
+ exclude_type: IDL.Vec(IDL.Nat64),
717
+ include_topics: IDL.Opt(IDL.Vec(TopicSelector)),
718
+ include_status: IDL.Vec(IDL.Int32),
718
719
  });
719
720
  const ListProposalsResponse = IDL.Record({
720
- 'include_ballots_by_caller' : IDL.Opt(IDL.Bool),
721
- 'proposals' : IDL.Vec(ProposalData),
722
- 'include_topic_filtering' : IDL.Opt(IDL.Bool),
721
+ include_ballots_by_caller: IDL.Opt(IDL.Bool),
722
+ proposals: IDL.Vec(ProposalData),
723
+ include_topic_filtering: IDL.Opt(IDL.Bool),
723
724
  });
724
725
  const ListTopicsRequest = IDL.Record({});
725
726
  const ExtensionOperationType = IDL.Variant({
726
- 'TreasuryManagerWithdraw' : IDL.Null,
727
- 'TreasuryManagerDeposit' : IDL.Null,
727
+ TreasuryManagerWithdraw: IDL.Null,
728
+ TreasuryManagerDeposit: IDL.Null,
728
729
  });
729
- const ExtensionType = IDL.Variant({ 'TreasuryManager' : IDL.Null });
730
+ const ExtensionType = IDL.Variant({ TreasuryManager: IDL.Null });
730
731
  const ExtensionOperationSpec = IDL.Record({
731
- 'topic' : IDL.Opt(Topic),
732
- 'operation_type' : IDL.Opt(ExtensionOperationType),
733
- 'description' : IDL.Opt(IDL.Text),
734
- 'extension_type' : IDL.Opt(ExtensionType),
732
+ topic: IDL.Opt(Topic),
733
+ operation_type: IDL.Opt(ExtensionOperationType),
734
+ description: IDL.Opt(IDL.Text),
735
+ extension_type: IDL.Opt(ExtensionType),
735
736
  });
736
737
  const RegisteredExtensionOperationSpec = IDL.Record({
737
- 'spec' : IDL.Opt(ExtensionOperationSpec),
738
- 'canister_id' : IDL.Opt(IDL.Principal),
738
+ spec: IDL.Opt(ExtensionOperationSpec),
739
+ canister_id: IDL.Opt(IDL.Principal),
739
740
  });
740
741
  const TopicInfo = IDL.Record({
741
- 'extension_operations' : IDL.Opt(IDL.Vec(RegisteredExtensionOperationSpec)),
742
- 'native_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
743
- 'topic' : IDL.Opt(Topic),
744
- 'is_critical' : IDL.Opt(IDL.Bool),
745
- 'name' : IDL.Opt(IDL.Text),
746
- 'description' : IDL.Opt(IDL.Text),
747
- 'custom_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
742
+ extension_operations: IDL.Opt(IDL.Vec(RegisteredExtensionOperationSpec)),
743
+ native_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
744
+ topic: IDL.Opt(Topic),
745
+ is_critical: IDL.Opt(IDL.Bool),
746
+ name: IDL.Opt(IDL.Text),
747
+ description: IDL.Opt(IDL.Text),
748
+ custom_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
748
749
  });
749
750
  const ListTopicsResponse = IDL.Record({
750
- 'uncategorized_functions' : IDL.Opt(IDL.Vec(NervousSystemFunction)),
751
- 'topics' : IDL.Opt(IDL.Vec(TopicInfo)),
751
+ uncategorized_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
752
+ topics: IDL.Opt(IDL.Vec(TopicInfo)),
752
753
  });
753
754
  const StakeMaturity = IDL.Record({
754
- 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
755
+ percentage_to_stake: IDL.Opt(IDL.Nat32),
755
756
  });
756
757
  const Command = IDL.Variant({
757
- 'Split' : Split,
758
- 'Follow' : Follow,
759
- 'DisburseMaturity' : DisburseMaturity,
760
- 'ClaimOrRefresh' : ClaimOrRefresh,
761
- 'Configure' : Configure,
762
- 'RegisterVote' : RegisterVote,
763
- 'SetFollowing' : SetFollowing,
764
- 'MakeProposal' : Proposal,
765
- 'StakeMaturity' : StakeMaturity,
766
- 'RemoveNeuronPermissions' : RemoveNeuronPermissions,
767
- 'AddNeuronPermissions' : AddNeuronPermissions,
768
- 'MergeMaturity' : MergeMaturity,
769
- 'Disburse' : Disburse,
758
+ Split: Split,
759
+ Follow: Follow,
760
+ DisburseMaturity: DisburseMaturity,
761
+ ClaimOrRefresh: ClaimOrRefresh,
762
+ Configure: Configure,
763
+ RegisterVote: RegisterVote,
764
+ SetFollowing: SetFollowing,
765
+ MakeProposal: Proposal,
766
+ StakeMaturity: StakeMaturity,
767
+ RemoveNeuronPermissions: RemoveNeuronPermissions,
768
+ AddNeuronPermissions: AddNeuronPermissions,
769
+ MergeMaturity: MergeMaturity,
770
+ Disburse: Disburse,
770
771
  });
771
772
  const ManageNeuron = IDL.Record({
772
- 'subaccount' : IDL.Vec(IDL.Nat8),
773
- 'command' : IDL.Opt(Command),
773
+ subaccount: IDL.Vec(IDL.Nat8),
774
+ command: IDL.Opt(Command),
774
775
  });
775
- const SplitResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) });
776
+ const SplitResponse = IDL.Record({ created_neuron_id: IDL.Opt(NeuronId) });
776
777
  const DisburseMaturityResponse = IDL.Record({
777
- 'amount_disbursed_e8s' : IDL.Nat64,
778
- 'amount_deducted_e8s' : IDL.Opt(IDL.Nat64),
778
+ amount_disbursed_e8s: IDL.Nat64,
779
+ amount_deducted_e8s: IDL.Opt(IDL.Nat64),
779
780
  });
780
781
  const ClaimOrRefreshResponse = IDL.Record({
781
- 'refreshed_neuron_id' : IDL.Opt(NeuronId),
782
+ refreshed_neuron_id: IDL.Opt(NeuronId),
782
783
  });
783
784
  const StakeMaturityResponse = IDL.Record({
784
- 'maturity_e8s' : IDL.Nat64,
785
- 'staked_maturity_e8s' : IDL.Nat64,
785
+ maturity_e8s: IDL.Nat64,
786
+ staked_maturity_e8s: IDL.Nat64,
786
787
  });
787
788
  const MergeMaturityResponse = IDL.Record({
788
- 'merged_maturity_e8s' : IDL.Nat64,
789
- 'new_stake_e8s' : IDL.Nat64,
789
+ merged_maturity_e8s: IDL.Nat64,
790
+ new_stake_e8s: IDL.Nat64,
790
791
  });
791
- const DisburseResponse = IDL.Record({ 'transfer_block_height' : IDL.Nat64 });
792
+ const DisburseResponse = IDL.Record({ transfer_block_height: IDL.Nat64 });
792
793
  const Command_1 = IDL.Variant({
793
- 'Error' : GovernanceError,
794
- 'Split' : SplitResponse,
795
- 'Follow' : IDL.Record({}),
796
- 'DisburseMaturity' : DisburseMaturityResponse,
797
- 'ClaimOrRefresh' : ClaimOrRefreshResponse,
798
- 'Configure' : IDL.Record({}),
799
- 'RegisterVote' : IDL.Record({}),
800
- 'SetFollowing' : IDL.Record({}),
801
- 'MakeProposal' : GetProposal,
802
- 'RemoveNeuronPermission' : IDL.Record({}),
803
- 'StakeMaturity' : StakeMaturityResponse,
804
- 'MergeMaturity' : MergeMaturityResponse,
805
- 'Disburse' : DisburseResponse,
806
- 'AddNeuronPermission' : IDL.Record({}),
807
- });
808
- const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
809
- const SetMode = IDL.Record({ 'mode' : IDL.Int32 });
794
+ Error: GovernanceError,
795
+ Split: SplitResponse,
796
+ Follow: IDL.Record({}),
797
+ DisburseMaturity: DisburseMaturityResponse,
798
+ ClaimOrRefresh: ClaimOrRefreshResponse,
799
+ Configure: IDL.Record({}),
800
+ RegisterVote: IDL.Record({}),
801
+ SetFollowing: IDL.Record({}),
802
+ MakeProposal: GetProposal,
803
+ RemoveNeuronPermission: IDL.Record({}),
804
+ StakeMaturity: StakeMaturityResponse,
805
+ MergeMaturity: MergeMaturityResponse,
806
+ Disburse: DisburseResponse,
807
+ AddNeuronPermission: IDL.Record({}),
808
+ });
809
+ const ManageNeuronResponse = IDL.Record({ command: IDL.Opt(Command_1) });
810
+ const SetMode = IDL.Record({ mode: IDL.Int32 });
811
+
810
812
  return IDL.Service({
811
- 'claim_swap_neurons' : IDL.Func(
812
- [ClaimSwapNeuronsRequest],
813
- [ClaimSwapNeuronsResponse],
814
- [],
815
- ),
816
- 'fail_stuck_upgrade_in_progress' : IDL.Func(
817
- [IDL.Record({})],
818
- [IDL.Record({})],
819
- [],
820
- ),
821
- 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),
822
- 'get_latest_reward_event' : IDL.Func([], [RewardEvent], ['query']),
823
- 'get_maturity_modulation' : IDL.Func(
824
- [IDL.Record({})],
825
- [GetMaturityModulationResponse],
826
- [],
827
- ),
828
- 'get_metadata' : IDL.Func(
829
- [IDL.Record({})],
830
- [GetMetadataResponse],
831
- ['query'],
832
- ),
833
- 'get_metrics' : IDL.Func(
834
- [GetMetricsRequest],
835
- [GetMetricsResponse],
836
- ['composite_query'],
837
- ),
838
- 'get_metrics_replicated' : IDL.Func(
839
- [GetMetricsRequest],
840
- [GetMetricsResponse],
841
- [],
842
- ),
843
- 'get_mode' : IDL.Func([IDL.Record({})], [GetModeResponse], ['query']),
844
- 'get_nervous_system_parameters' : IDL.Func(
845
- [IDL.Null],
846
- [NervousSystemParameters],
847
- ['query'],
848
- ),
849
- 'get_neuron' : IDL.Func([GetNeuron], [GetNeuronResponse], ['query']),
850
- 'get_proposal' : IDL.Func([GetProposal], [GetProposalResponse], ['query']),
851
- 'get_root_canister_status' : IDL.Func(
852
- [IDL.Null],
853
- [CanisterStatusResultV2],
854
- [],
855
- ),
856
- 'get_running_sns_version' : IDL.Func(
857
- [IDL.Record({})],
858
- [GetRunningSnsVersionResponse],
859
- ['query'],
860
- ),
861
- 'get_sns_initialization_parameters' : IDL.Func(
862
- [IDL.Record({})],
863
- [GetSnsInitializationParametersResponse],
864
- ['query'],
865
- ),
866
- 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),
867
- 'get_upgrade_journal' : IDL.Func(
868
- [GetUpgradeJournalRequest],
869
- [GetUpgradeJournalResponse],
870
- ['query'],
871
- ),
872
- 'list_nervous_system_functions' : IDL.Func(
873
- [],
874
- [ListNervousSystemFunctionsResponse],
875
- ['query'],
876
- ),
877
- 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
878
- 'list_proposals' : IDL.Func(
879
- [ListProposals],
880
- [ListProposalsResponse],
881
- ['query'],
882
- ),
883
- 'list_topics' : IDL.Func(
884
- [ListTopicsRequest],
885
- [ListTopicsResponse],
886
- ['query'],
887
- ),
888
- 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
889
- 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
890
- 'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
813
+ claim_swap_neurons: IDL.Func(
814
+ [ClaimSwapNeuronsRequest],
815
+ [ClaimSwapNeuronsResponse],
816
+ [],
817
+ ),
818
+ fail_stuck_upgrade_in_progress: IDL.Func(
819
+ [IDL.Record({})],
820
+ [IDL.Record({})],
821
+ [],
822
+ ),
823
+ get_build_metadata: IDL.Func([], [IDL.Text], ["query"]),
824
+ get_latest_reward_event: IDL.Func([], [RewardEvent], ["query"]),
825
+ get_maturity_modulation: IDL.Func(
826
+ [IDL.Record({})],
827
+ [GetMaturityModulationResponse],
828
+ [],
829
+ ),
830
+ get_metadata: IDL.Func([IDL.Record({})], [GetMetadataResponse], ["query"]),
831
+ get_metrics: IDL.Func(
832
+ [GetMetricsRequest],
833
+ [GetMetricsResponse],
834
+ ["composite_query"],
835
+ ),
836
+ get_metrics_replicated: IDL.Func(
837
+ [GetMetricsRequest],
838
+ [GetMetricsResponse],
839
+ [],
840
+ ),
841
+ get_mode: IDL.Func([IDL.Record({})], [GetModeResponse], ["query"]),
842
+ get_nervous_system_parameters: IDL.Func(
843
+ [IDL.Null],
844
+ [NervousSystemParameters],
845
+ ["query"],
846
+ ),
847
+ get_neuron: IDL.Func([GetNeuron], [GetNeuronResponse], ["query"]),
848
+ get_proposal: IDL.Func([GetProposal], [GetProposalResponse], ["query"]),
849
+ get_root_canister_status: IDL.Func(
850
+ [IDL.Null],
851
+ [CanisterStatusResultV2],
852
+ [],
853
+ ),
854
+ get_running_sns_version: IDL.Func(
855
+ [IDL.Record({})],
856
+ [GetRunningSnsVersionResponse],
857
+ ["query"],
858
+ ),
859
+ get_sns_initialization_parameters: IDL.Func(
860
+ [IDL.Record({})],
861
+ [GetSnsInitializationParametersResponse],
862
+ ["query"],
863
+ ),
864
+ get_timers: IDL.Func([IDL.Record({})], [GetTimersResponse], ["query"]),
865
+ get_upgrade_journal: IDL.Func(
866
+ [GetUpgradeJournalRequest],
867
+ [GetUpgradeJournalResponse],
868
+ ["query"],
869
+ ),
870
+ list_nervous_system_functions: IDL.Func(
871
+ [],
872
+ [ListNervousSystemFunctionsResponse],
873
+ ["query"],
874
+ ),
875
+ list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], ["query"]),
876
+ list_proposals: IDL.Func(
877
+ [ListProposals],
878
+ [ListProposalsResponse],
879
+ ["query"],
880
+ ),
881
+ list_topics: IDL.Func([ListTopicsRequest], [ListTopicsResponse], ["query"]),
882
+ manage_neuron: IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
883
+ reset_timers: IDL.Func([IDL.Record({})], [IDL.Record({})], []),
884
+ set_mode: IDL.Func([SetMode], [IDL.Record({})], []),
891
885
  });
892
886
  };
887
+
893
888
  export const init = ({ IDL }) => {
894
889
  const PreciseValue = IDL.Rec();
895
890
  const Timers = IDL.Record({
896
- 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
897
- 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
898
- 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),
891
+ last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
892
+ last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
893
+ requires_periodic_tasks: IDL.Opt(IDL.Bool),
899
894
  });
900
895
  const Version = IDL.Record({
901
- 'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
902
- 'root_wasm_hash' : IDL.Vec(IDL.Nat8),
903
- 'swap_wasm_hash' : IDL.Vec(IDL.Nat8),
904
- 'ledger_wasm_hash' : IDL.Vec(IDL.Nat8),
905
- 'governance_wasm_hash' : IDL.Vec(IDL.Nat8),
906
- 'index_wasm_hash' : IDL.Vec(IDL.Nat8),
907
- });
908
- const Versions = IDL.Record({ 'versions' : IDL.Vec(Version) });
896
+ archive_wasm_hash: IDL.Vec(IDL.Nat8),
897
+ root_wasm_hash: IDL.Vec(IDL.Nat8),
898
+ swap_wasm_hash: IDL.Vec(IDL.Nat8),
899
+ ledger_wasm_hash: IDL.Vec(IDL.Nat8),
900
+ governance_wasm_hash: IDL.Vec(IDL.Nat8),
901
+ index_wasm_hash: IDL.Vec(IDL.Nat8),
902
+ });
903
+ const Versions = IDL.Record({ versions: IDL.Vec(Version) });
909
904
  const CachedUpgradeSteps = IDL.Record({
910
- 'upgrade_steps' : IDL.Opt(Versions),
911
- 'response_timestamp_seconds' : IDL.Opt(IDL.Nat64),
912
- 'requested_timestamp_seconds' : IDL.Opt(IDL.Nat64),
905
+ upgrade_steps: IDL.Opt(Versions),
906
+ response_timestamp_seconds: IDL.Opt(IDL.Nat64),
907
+ requested_timestamp_seconds: IDL.Opt(IDL.Nat64),
913
908
  });
914
909
  const Topic = IDL.Variant({
915
- 'DappCanisterManagement' : IDL.Null,
916
- 'DaoCommunitySettings' : IDL.Null,
917
- 'ApplicationBusinessLogic' : IDL.Null,
918
- 'CriticalDappOperations' : IDL.Null,
919
- 'TreasuryAssetManagement' : IDL.Null,
920
- 'Governance' : IDL.Null,
921
- 'SnsFrameworkManagement' : IDL.Null,
910
+ DappCanisterManagement: IDL.Null,
911
+ DaoCommunitySettings: IDL.Null,
912
+ ApplicationBusinessLogic: IDL.Null,
913
+ CriticalDappOperations: IDL.Null,
914
+ TreasuryAssetManagement: IDL.Null,
915
+ Governance: IDL.Null,
916
+ SnsFrameworkManagement: IDL.Null,
922
917
  });
923
918
  const GenericNervousSystemFunction = IDL.Record({
924
- 'topic' : IDL.Opt(Topic),
925
- 'validator_canister_id' : IDL.Opt(IDL.Principal),
926
- 'target_canister_id' : IDL.Opt(IDL.Principal),
927
- 'validator_method_name' : IDL.Opt(IDL.Text),
928
- 'target_method_name' : IDL.Opt(IDL.Text),
919
+ topic: IDL.Opt(Topic),
920
+ validator_canister_id: IDL.Opt(IDL.Principal),
921
+ target_canister_id: IDL.Opt(IDL.Principal),
922
+ validator_method_name: IDL.Opt(IDL.Text),
923
+ target_method_name: IDL.Opt(IDL.Text),
929
924
  });
930
925
  const FunctionType = IDL.Variant({
931
- 'NativeNervousSystemFunction' : IDL.Record({}),
932
- 'GenericNervousSystemFunction' : GenericNervousSystemFunction,
926
+ NativeNervousSystemFunction: IDL.Record({}),
927
+ GenericNervousSystemFunction: GenericNervousSystemFunction,
933
928
  });
934
929
  const NervousSystemFunction = IDL.Record({
935
- 'id' : IDL.Nat64,
936
- 'name' : IDL.Text,
937
- 'description' : IDL.Opt(IDL.Text),
938
- 'function_type' : IDL.Opt(FunctionType),
930
+ id: IDL.Nat64,
931
+ name: IDL.Text,
932
+ description: IDL.Opt(IDL.Text),
933
+ function_type: IDL.Opt(FunctionType),
939
934
  });
940
- const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
935
+ const Subaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
941
936
  const Account = IDL.Record({
942
- 'owner' : IDL.Opt(IDL.Principal),
943
- 'subaccount' : IDL.Opt(Subaccount),
937
+ owner: IDL.Opt(IDL.Principal),
938
+ subaccount: IDL.Opt(Subaccount),
944
939
  });
945
940
  const TreasuryMetrics = IDL.Record({
946
- 'name' : IDL.Opt(IDL.Text),
947
- 'original_amount_e8s' : IDL.Opt(IDL.Nat64),
948
- 'amount_e8s' : IDL.Opt(IDL.Nat64),
949
- 'account' : IDL.Opt(Account),
950
- 'ledger_canister_id' : IDL.Opt(IDL.Principal),
951
- 'treasury' : IDL.Int32,
952
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
941
+ name: IDL.Opt(IDL.Text),
942
+ original_amount_e8s: IDL.Opt(IDL.Nat64),
943
+ amount_e8s: IDL.Opt(IDL.Nat64),
944
+ account: IDL.Opt(Account),
945
+ ledger_canister_id: IDL.Opt(IDL.Principal),
946
+ treasury: IDL.Int32,
947
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
953
948
  });
954
949
  const VotingPowerMetrics = IDL.Record({
955
- 'governance_total_potential_voting_power' : IDL.Opt(IDL.Nat64),
956
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
950
+ governance_total_potential_voting_power: IDL.Opt(IDL.Nat64),
951
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
957
952
  });
958
953
  const GovernanceCachedMetrics = IDL.Record({
959
- 'treasury_metrics' : IDL.Vec(TreasuryMetrics),
960
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
961
- IDL.Tuple(IDL.Nat64, IDL.Float64)
962
- ),
963
- 'garbage_collectable_neurons_count' : IDL.Nat64,
964
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
965
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
966
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
954
+ treasury_metrics: IDL.Vec(TreasuryMetrics),
955
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(
956
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
967
957
  ),
968
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
969
- 'dissolved_neurons_count' : IDL.Nat64,
970
- 'total_staked_e8s' : IDL.Nat64,
971
- 'total_supply_governance_tokens' : IDL.Nat64,
972
- 'voting_power_metrics' : IDL.Opt(VotingPowerMetrics),
973
- 'not_dissolving_neurons_count' : IDL.Nat64,
974
- 'dissolved_neurons_e8s' : IDL.Nat64,
975
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
976
- 'dissolving_neurons_count_buckets' : IDL.Vec(
977
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
958
+ garbage_collectable_neurons_count: IDL.Nat64,
959
+ neurons_with_invalid_stake_count: IDL.Nat64,
960
+ not_dissolving_neurons_count_buckets: IDL.Vec(
961
+ IDL.Tuple(IDL.Nat64, IDL.Nat64),
978
962
  ),
979
- 'dissolving_neurons_count' : IDL.Nat64,
980
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
981
- IDL.Tuple(IDL.Nat64, IDL.Float64)
982
- ),
983
- 'timestamp_seconds' : IDL.Nat64,
963
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
964
+ dissolved_neurons_count: IDL.Nat64,
965
+ total_staked_e8s: IDL.Nat64,
966
+ total_supply_governance_tokens: IDL.Nat64,
967
+ voting_power_metrics: IDL.Opt(VotingPowerMetrics),
968
+ not_dissolving_neurons_count: IDL.Nat64,
969
+ dissolved_neurons_e8s: IDL.Nat64,
970
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
971
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
972
+ dissolving_neurons_count: IDL.Nat64,
973
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
974
+ timestamp_seconds: IDL.Nat64,
984
975
  });
985
976
  const MaturityModulation = IDL.Record({
986
- 'current_basis_points' : IDL.Opt(IDL.Int32),
987
- 'updated_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
977
+ current_basis_points: IDL.Opt(IDL.Int32),
978
+ updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
988
979
  });
989
980
  const TargetVersionSet = IDL.Record({
990
- 'old_target_version' : IDL.Opt(Version),
991
- 'new_target_version' : IDL.Opt(Version),
992
- 'is_advanced_automatically' : IDL.Opt(IDL.Bool),
981
+ old_target_version: IDL.Opt(Version),
982
+ new_target_version: IDL.Opt(Version),
983
+ is_advanced_automatically: IDL.Opt(IDL.Bool),
993
984
  });
994
985
  const UpgradeStepsReset = IDL.Record({
995
- 'human_readable' : IDL.Opt(IDL.Text),
996
- 'upgrade_steps' : IDL.Opt(Versions),
986
+ human_readable: IDL.Opt(IDL.Text),
987
+ upgrade_steps: IDL.Opt(Versions),
997
988
  });
998
989
  const UpgradeOutcome = IDL.Record({
999
- 'status' : IDL.Opt(
990
+ status: IDL.Opt(
1000
991
  IDL.Variant({
1001
- 'Success' : IDL.Record({}),
1002
- 'Timeout' : IDL.Record({}),
1003
- 'ExternalFailure' : IDL.Record({}),
1004
- 'InvalidState' : IDL.Record({ 'version' : IDL.Opt(Version) }),
1005
- })
992
+ Success: IDL.Record({}),
993
+ Timeout: IDL.Record({}),
994
+ ExternalFailure: IDL.Record({}),
995
+ InvalidState: IDL.Record({ version: IDL.Opt(Version) }),
996
+ }),
1006
997
  ),
1007
- 'human_readable' : IDL.Opt(IDL.Text),
998
+ human_readable: IDL.Opt(IDL.Text),
1008
999
  });
1009
- const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1000
+ const ProposalId = IDL.Record({ id: IDL.Nat64 });
1010
1001
  const UpgradeStarted = IDL.Record({
1011
- 'current_version' : IDL.Opt(Version),
1012
- 'expected_version' : IDL.Opt(Version),
1013
- 'reason' : IDL.Opt(
1002
+ current_version: IDL.Opt(Version),
1003
+ expected_version: IDL.Opt(Version),
1004
+ reason: IDL.Opt(
1014
1005
  IDL.Variant({
1015
- 'UpgradeSnsToNextVersionProposal' : ProposalId,
1016
- 'BehindTargetVersion' : IDL.Record({}),
1017
- })
1006
+ UpgradeSnsToNextVersionProposal: ProposalId,
1007
+ BehindTargetVersion: IDL.Record({}),
1008
+ }),
1018
1009
  ),
1019
1010
  });
1020
1011
  const UpgradeStepsRefreshed = IDL.Record({
1021
- 'upgrade_steps' : IDL.Opt(Versions),
1012
+ upgrade_steps: IDL.Opt(Versions),
1022
1013
  });
1023
1014
  const TargetVersionReset = IDL.Record({
1024
- 'human_readable' : IDL.Opt(IDL.Text),
1025
- 'old_target_version' : IDL.Opt(Version),
1026
- 'new_target_version' : IDL.Opt(Version),
1015
+ human_readable: IDL.Opt(IDL.Text),
1016
+ old_target_version: IDL.Opt(Version),
1017
+ new_target_version: IDL.Opt(Version),
1027
1018
  });
1028
1019
  const UpgradeJournalEntry = IDL.Record({
1029
- 'event' : IDL.Opt(
1020
+ event: IDL.Opt(
1030
1021
  IDL.Variant({
1031
- 'TargetVersionSet' : TargetVersionSet,
1032
- 'UpgradeStepsReset' : UpgradeStepsReset,
1033
- 'UpgradeOutcome' : UpgradeOutcome,
1034
- 'UpgradeStarted' : UpgradeStarted,
1035
- 'UpgradeStepsRefreshed' : UpgradeStepsRefreshed,
1036
- 'TargetVersionReset' : TargetVersionReset,
1037
- })
1022
+ TargetVersionSet: TargetVersionSet,
1023
+ UpgradeStepsReset: UpgradeStepsReset,
1024
+ UpgradeOutcome: UpgradeOutcome,
1025
+ UpgradeStarted: UpgradeStarted,
1026
+ UpgradeStepsRefreshed: UpgradeStepsRefreshed,
1027
+ TargetVersionReset: TargetVersionReset,
1028
+ }),
1038
1029
  ),
1039
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1030
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
1040
1031
  });
1041
1032
  const UpgradeJournal = IDL.Record({
1042
- 'entries' : IDL.Vec(UpgradeJournalEntry),
1033
+ entries: IDL.Vec(UpgradeJournalEntry),
1043
1034
  });
1044
- const NeuronId = IDL.Record({ 'id' : IDL.Vec(IDL.Nat8) });
1045
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
1035
+ const NeuronId = IDL.Record({ id: IDL.Vec(IDL.Nat8) });
1036
+ const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
1046
1037
  const DefaultFollowees = IDL.Record({
1047
- 'followees' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
1038
+ followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
1048
1039
  });
1049
1040
  const NeuronPermissionList = IDL.Record({
1050
- 'permissions' : IDL.Vec(IDL.Int32),
1041
+ permissions: IDL.Vec(IDL.Int32),
1051
1042
  });
1052
1043
  const VotingRewardsParameters = IDL.Record({
1053
- 'final_reward_rate_basis_points' : IDL.Opt(IDL.Nat64),
1054
- 'initial_reward_rate_basis_points' : IDL.Opt(IDL.Nat64),
1055
- 'reward_rate_transition_duration_seconds' : IDL.Opt(IDL.Nat64),
1056
- 'round_duration_seconds' : IDL.Opt(IDL.Nat64),
1044
+ final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
1045
+ initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
1046
+ reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
1047
+ round_duration_seconds: IDL.Opt(IDL.Nat64),
1057
1048
  });
1058
1049
  const NervousSystemParameters = IDL.Record({
1059
- 'default_followees' : IDL.Opt(DefaultFollowees),
1060
- 'max_dissolve_delay_seconds' : IDL.Opt(IDL.Nat64),
1061
- 'max_dissolve_delay_bonus_percentage' : IDL.Opt(IDL.Nat64),
1062
- 'max_followees_per_function' : IDL.Opt(IDL.Nat64),
1063
- 'automatically_advance_target_version' : IDL.Opt(IDL.Bool),
1064
- 'neuron_claimer_permissions' : IDL.Opt(NeuronPermissionList),
1065
- 'neuron_minimum_stake_e8s' : IDL.Opt(IDL.Nat64),
1066
- 'max_neuron_age_for_age_bonus' : IDL.Opt(IDL.Nat64),
1067
- 'initial_voting_period_seconds' : IDL.Opt(IDL.Nat64),
1068
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1069
- 'reject_cost_e8s' : IDL.Opt(IDL.Nat64),
1070
- 'max_proposals_to_keep_per_action' : IDL.Opt(IDL.Nat32),
1071
- 'wait_for_quiet_deadline_increase_seconds' : IDL.Opt(IDL.Nat64),
1072
- 'max_number_of_neurons' : IDL.Opt(IDL.Nat64),
1073
- 'transaction_fee_e8s' : IDL.Opt(IDL.Nat64),
1074
- 'max_number_of_proposals_with_ballots' : IDL.Opt(IDL.Nat64),
1075
- 'max_age_bonus_percentage' : IDL.Opt(IDL.Nat64),
1076
- 'neuron_grantable_permissions' : IDL.Opt(NeuronPermissionList),
1077
- 'voting_rewards_parameters' : IDL.Opt(VotingRewardsParameters),
1078
- 'maturity_modulation_disabled' : IDL.Opt(IDL.Bool),
1079
- 'max_number_of_principals_per_neuron' : IDL.Opt(IDL.Nat64),
1050
+ default_followees: IDL.Opt(DefaultFollowees),
1051
+ max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
1052
+ max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
1053
+ max_followees_per_function: IDL.Opt(IDL.Nat64),
1054
+ automatically_advance_target_version: IDL.Opt(IDL.Bool),
1055
+ neuron_claimer_permissions: IDL.Opt(NeuronPermissionList),
1056
+ neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
1057
+ max_neuron_age_for_age_bonus: IDL.Opt(IDL.Nat64),
1058
+ initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
1059
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
1060
+ reject_cost_e8s: IDL.Opt(IDL.Nat64),
1061
+ max_proposals_to_keep_per_action: IDL.Opt(IDL.Nat32),
1062
+ wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
1063
+ max_number_of_neurons: IDL.Opt(IDL.Nat64),
1064
+ transaction_fee_e8s: IDL.Opt(IDL.Nat64),
1065
+ max_number_of_proposals_with_ballots: IDL.Opt(IDL.Nat64),
1066
+ max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
1067
+ neuron_grantable_permissions: IDL.Opt(NeuronPermissionList),
1068
+ voting_rewards_parameters: IDL.Opt(VotingRewardsParameters),
1069
+ maturity_modulation_disabled: IDL.Opt(IDL.Bool),
1070
+ max_number_of_principals_per_neuron: IDL.Opt(IDL.Nat64),
1080
1071
  });
1081
1072
  const RewardEvent = IDL.Record({
1082
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1083
- 'actual_timestamp_seconds' : IDL.Nat64,
1084
- 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1085
- 'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1086
- 'distributed_e8s_equivalent' : IDL.Nat64,
1087
- 'round' : IDL.Nat64,
1088
- 'settled_proposals' : IDL.Vec(ProposalId),
1073
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
1074
+ actual_timestamp_seconds: IDL.Nat64,
1075
+ end_timestamp_seconds: IDL.Opt(IDL.Nat64),
1076
+ total_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
1077
+ distributed_e8s_equivalent: IDL.Nat64,
1078
+ round: IDL.Nat64,
1079
+ settled_proposals: IDL.Vec(ProposalId),
1089
1080
  });
1090
1081
  const PendingVersion = IDL.Record({
1091
- 'mark_failed_at_seconds' : IDL.Nat64,
1092
- 'checking_upgrade_lock' : IDL.Nat64,
1093
- 'proposal_id' : IDL.Opt(IDL.Nat64),
1094
- 'target_version' : IDL.Opt(Version),
1082
+ mark_failed_at_seconds: IDL.Nat64,
1083
+ checking_upgrade_lock: IDL.Nat64,
1084
+ proposal_id: IDL.Opt(IDL.Nat64),
1085
+ target_version: IDL.Opt(Version),
1095
1086
  });
1096
1087
  const GovernanceError = IDL.Record({
1097
- 'error_message' : IDL.Text,
1098
- 'error_type' : IDL.Int32,
1088
+ error_message: IDL.Text,
1089
+ error_type: IDL.Int32,
1099
1090
  });
1100
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
1101
- const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
1091
+ const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
1092
+ const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
1102
1093
  const ValuationFactors = IDL.Record({
1103
- 'xdrs_per_icp' : IDL.Opt(Decimal),
1104
- 'icps_per_token' : IDL.Opt(Decimal),
1105
- 'tokens' : IDL.Opt(Tokens),
1094
+ xdrs_per_icp: IDL.Opt(Decimal),
1095
+ icps_per_token: IDL.Opt(Decimal),
1096
+ tokens: IDL.Opt(Tokens),
1106
1097
  });
1107
1098
  const Valuation = IDL.Record({
1108
- 'token' : IDL.Opt(IDL.Int32),
1109
- 'account' : IDL.Opt(Account),
1110
- 'valuation_factors' : IDL.Opt(ValuationFactors),
1111
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1099
+ token: IDL.Opt(IDL.Int32),
1100
+ account: IDL.Opt(Account),
1101
+ valuation_factors: IDL.Opt(ValuationFactors),
1102
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
1112
1103
  });
1113
1104
  const MintSnsTokensActionAuxiliary = IDL.Record({
1114
- 'valuation' : IDL.Opt(Valuation),
1105
+ valuation: IDL.Opt(Valuation),
1115
1106
  });
1116
1107
  const SnsVersion = IDL.Record({
1117
- 'archive_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1118
- 'root_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1119
- 'swap_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1120
- 'ledger_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1121
- 'governance_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1122
- 'index_wasm_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1108
+ archive_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1109
+ root_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1110
+ swap_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1111
+ ledger_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1112
+ governance_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1113
+ index_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1123
1114
  });
1124
1115
  const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
1125
- 'target_version' : IDL.Opt(SnsVersion),
1116
+ target_version: IDL.Opt(SnsVersion),
1126
1117
  });
1127
1118
  const ActionAuxiliary = IDL.Variant({
1128
- 'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
1129
- 'MintSnsTokens' : MintSnsTokensActionAuxiliary,
1130
- 'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersionActionAuxiliary,
1119
+ TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary,
1120
+ MintSnsTokens: MintSnsTokensActionAuxiliary,
1121
+ AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary,
1131
1122
  });
1132
1123
  const Ballot = IDL.Record({
1133
- 'vote' : IDL.Int32,
1134
- 'cast_timestamp_seconds' : IDL.Nat64,
1135
- 'voting_power' : IDL.Nat64,
1124
+ vote: IDL.Int32,
1125
+ cast_timestamp_seconds: IDL.Nat64,
1126
+ voting_power: IDL.Nat64,
1136
1127
  });
1137
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
1128
+ const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
1138
1129
  const Tally = IDL.Record({
1139
- 'no' : IDL.Nat64,
1140
- 'yes' : IDL.Nat64,
1141
- 'total' : IDL.Nat64,
1142
- 'timestamp_seconds' : IDL.Nat64,
1130
+ no: IDL.Nat64,
1131
+ yes: IDL.Nat64,
1132
+ total: IDL.Nat64,
1133
+ timestamp_seconds: IDL.Nat64,
1143
1134
  });
1144
1135
  const ManageDappCanisterSettings = IDL.Record({
1145
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1146
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1147
- 'canister_ids' : IDL.Vec(IDL.Principal),
1148
- 'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
1149
- 'log_visibility' : IDL.Opt(IDL.Int32),
1150
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
1151
- 'memory_allocation' : IDL.Opt(IDL.Nat64),
1152
- 'compute_allocation' : IDL.Opt(IDL.Nat64),
1136
+ freezing_threshold: IDL.Opt(IDL.Nat64),
1137
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
1138
+ canister_ids: IDL.Vec(IDL.Principal),
1139
+ reserved_cycles_limit: IDL.Opt(IDL.Nat64),
1140
+ log_visibility: IDL.Opt(IDL.Int32),
1141
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
1142
+ memory_allocation: IDL.Opt(IDL.Nat64),
1143
+ compute_allocation: IDL.Opt(IDL.Nat64),
1153
1144
  });
1154
1145
  PreciseValue.fill(
1155
1146
  IDL.Variant({
1156
- 'Int' : IDL.Int64,
1157
- 'Map' : IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
1158
- 'Nat' : IDL.Nat64,
1159
- 'Blob' : IDL.Vec(IDL.Nat8),
1160
- 'Bool' : IDL.Bool,
1161
- 'Text' : IDL.Text,
1162
- 'Array' : IDL.Vec(PreciseValue),
1163
- })
1147
+ Int: IDL.Int64,
1148
+ Map: IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
1149
+ Nat: IDL.Nat64,
1150
+ Blob: IDL.Vec(IDL.Nat8),
1151
+ Bool: IDL.Bool,
1152
+ Text: IDL.Text,
1153
+ Array: IDL.Vec(PreciseValue),
1154
+ }),
1164
1155
  );
1165
- const ExtensionOperationArg = IDL.Record({ 'value' : IDL.Opt(PreciseValue) });
1156
+ const ExtensionOperationArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
1166
1157
  const ExecuteExtensionOperation = IDL.Record({
1167
- 'extension_canister_id' : IDL.Opt(IDL.Principal),
1168
- 'operation_name' : IDL.Opt(IDL.Text),
1169
- 'operation_arg' : IDL.Opt(ExtensionOperationArg),
1158
+ extension_canister_id: IDL.Opt(IDL.Principal),
1159
+ operation_name: IDL.Opt(IDL.Text),
1160
+ operation_arg: IDL.Opt(ExtensionOperationArg),
1170
1161
  });
1171
1162
  const ChunkedCanisterWasm = IDL.Record({
1172
- 'wasm_module_hash' : IDL.Vec(IDL.Nat8),
1173
- 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),
1174
- 'store_canister_id' : IDL.Opt(IDL.Principal),
1163
+ wasm_module_hash: IDL.Vec(IDL.Nat8),
1164
+ chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
1165
+ store_canister_id: IDL.Opt(IDL.Principal),
1175
1166
  });
1176
1167
  const Wasm = IDL.Variant({
1177
- 'Chunked' : ChunkedCanisterWasm,
1178
- 'Bytes' : IDL.Vec(IDL.Nat8),
1168
+ Chunked: ChunkedCanisterWasm,
1169
+ Bytes: IDL.Vec(IDL.Nat8),
1179
1170
  });
1180
- const ExtensionUpgradeArg = IDL.Record({ 'value' : IDL.Opt(PreciseValue) });
1171
+ const ExtensionUpgradeArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
1181
1172
  const UpgradeExtension = IDL.Record({
1182
- 'extension_canister_id' : IDL.Opt(IDL.Principal),
1183
- 'wasm' : IDL.Opt(Wasm),
1184
- 'canister_upgrade_arg' : IDL.Opt(ExtensionUpgradeArg),
1173
+ extension_canister_id: IDL.Opt(IDL.Principal),
1174
+ wasm: IDL.Opt(Wasm),
1175
+ canister_upgrade_arg: IDL.Opt(ExtensionUpgradeArg),
1185
1176
  });
1186
1177
  const SetTopicsForCustomProposals = IDL.Record({
1187
- 'custom_function_id_to_topic' : IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1178
+ custom_function_id_to_topic: IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
1188
1179
  });
1189
- const ExtensionInit = IDL.Record({ 'value' : IDL.Opt(PreciseValue) });
1180
+ const ExtensionInit = IDL.Record({ value: IDL.Opt(PreciseValue) });
1190
1181
  const RegisterExtension = IDL.Record({
1191
- 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
1192
- 'extension_init' : IDL.Opt(ExtensionInit),
1182
+ chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
1183
+ extension_init: IDL.Opt(ExtensionInit),
1193
1184
  });
1194
1185
  const RegisterDappCanisters = IDL.Record({
1195
- 'canister_ids' : IDL.Vec(IDL.Principal),
1186
+ canister_ids: IDL.Vec(IDL.Principal),
1196
1187
  });
1197
1188
  const TransferSnsTreasuryFunds = IDL.Record({
1198
- 'from_treasury' : IDL.Int32,
1199
- 'to_principal' : IDL.Opt(IDL.Principal),
1200
- 'to_subaccount' : IDL.Opt(Subaccount),
1201
- 'memo' : IDL.Opt(IDL.Nat64),
1202
- 'amount_e8s' : IDL.Nat64,
1189
+ from_treasury: IDL.Int32,
1190
+ to_principal: IDL.Opt(IDL.Principal),
1191
+ to_subaccount: IDL.Opt(Subaccount),
1192
+ memo: IDL.Opt(IDL.Nat64),
1193
+ amount_e8s: IDL.Nat64,
1203
1194
  });
1204
1195
  const UpgradeSnsControlledCanister = IDL.Record({
1205
- 'new_canister_wasm' : IDL.Vec(IDL.Nat8),
1206
- 'mode' : IDL.Opt(IDL.Int32),
1207
- 'canister_id' : IDL.Opt(IDL.Principal),
1208
- 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),
1209
- 'canister_upgrade_arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1196
+ new_canister_wasm: IDL.Vec(IDL.Nat8),
1197
+ mode: IDL.Opt(IDL.Int32),
1198
+ canister_id: IDL.Opt(IDL.Principal),
1199
+ chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
1200
+ canister_upgrade_arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
1210
1201
  });
1211
1202
  const DeregisterDappCanisters = IDL.Record({
1212
- 'canister_ids' : IDL.Vec(IDL.Principal),
1213
- 'new_controllers' : IDL.Vec(IDL.Principal),
1203
+ canister_ids: IDL.Vec(IDL.Principal),
1204
+ new_controllers: IDL.Vec(IDL.Principal),
1214
1205
  });
1215
1206
  const MintSnsTokens = IDL.Record({
1216
- 'to_principal' : IDL.Opt(IDL.Principal),
1217
- 'to_subaccount' : IDL.Opt(Subaccount),
1218
- 'memo' : IDL.Opt(IDL.Nat64),
1219
- 'amount_e8s' : IDL.Opt(IDL.Nat64),
1207
+ to_principal: IDL.Opt(IDL.Principal),
1208
+ to_subaccount: IDL.Opt(Subaccount),
1209
+ memo: IDL.Opt(IDL.Nat64),
1210
+ amount_e8s: IDL.Opt(IDL.Nat64),
1220
1211
  });
1221
1212
  const AdvanceSnsTargetVersion = IDL.Record({
1222
- 'new_target' : IDL.Opt(SnsVersion),
1213
+ new_target: IDL.Opt(SnsVersion),
1223
1214
  });
1224
1215
  const ManageSnsMetadata = IDL.Record({
1225
- 'url' : IDL.Opt(IDL.Text),
1226
- 'logo' : IDL.Opt(IDL.Text),
1227
- 'name' : IDL.Opt(IDL.Text),
1228
- 'description' : IDL.Opt(IDL.Text),
1216
+ url: IDL.Opt(IDL.Text),
1217
+ logo: IDL.Opt(IDL.Text),
1218
+ name: IDL.Opt(IDL.Text),
1219
+ description: IDL.Opt(IDL.Text),
1229
1220
  });
1230
1221
  const ExecuteGenericNervousSystemFunction = IDL.Record({
1231
- 'function_id' : IDL.Nat64,
1232
- 'payload' : IDL.Vec(IDL.Nat8),
1222
+ function_id: IDL.Nat64,
1223
+ payload: IDL.Vec(IDL.Nat8),
1233
1224
  });
1234
1225
  const ManageLedgerParameters = IDL.Record({
1235
- 'token_symbol' : IDL.Opt(IDL.Text),
1236
- 'transfer_fee' : IDL.Opt(IDL.Nat64),
1237
- 'token_logo' : IDL.Opt(IDL.Text),
1238
- 'token_name' : IDL.Opt(IDL.Text),
1226
+ token_symbol: IDL.Opt(IDL.Text),
1227
+ transfer_fee: IDL.Opt(IDL.Nat64),
1228
+ token_logo: IDL.Opt(IDL.Text),
1229
+ token_name: IDL.Opt(IDL.Text),
1239
1230
  });
1240
- const Motion = IDL.Record({ 'motion_text' : IDL.Text });
1231
+ const Motion = IDL.Record({ motion_text: IDL.Text });
1241
1232
  const Action = IDL.Variant({
1242
- 'ManageNervousSystemParameters' : NervousSystemParameters,
1243
- 'AddGenericNervousSystemFunction' : NervousSystemFunction,
1244
- 'ManageDappCanisterSettings' : ManageDappCanisterSettings,
1245
- 'ExecuteExtensionOperation' : ExecuteExtensionOperation,
1246
- 'UpgradeExtension' : UpgradeExtension,
1247
- 'RemoveGenericNervousSystemFunction' : IDL.Nat64,
1248
- 'SetTopicsForCustomProposals' : SetTopicsForCustomProposals,
1249
- 'RegisterExtension' : RegisterExtension,
1250
- 'UpgradeSnsToNextVersion' : IDL.Record({}),
1251
- 'RegisterDappCanisters' : RegisterDappCanisters,
1252
- 'TransferSnsTreasuryFunds' : TransferSnsTreasuryFunds,
1253
- 'UpgradeSnsControlledCanister' : UpgradeSnsControlledCanister,
1254
- 'DeregisterDappCanisters' : DeregisterDappCanisters,
1255
- 'MintSnsTokens' : MintSnsTokens,
1256
- 'AdvanceSnsTargetVersion' : AdvanceSnsTargetVersion,
1257
- 'Unspecified' : IDL.Record({}),
1258
- 'ManageSnsMetadata' : ManageSnsMetadata,
1259
- 'ExecuteGenericNervousSystemFunction' : ExecuteGenericNervousSystemFunction,
1260
- 'ManageLedgerParameters' : ManageLedgerParameters,
1261
- 'Motion' : Motion,
1233
+ ManageNervousSystemParameters: NervousSystemParameters,
1234
+ AddGenericNervousSystemFunction: NervousSystemFunction,
1235
+ ManageDappCanisterSettings: ManageDappCanisterSettings,
1236
+ ExecuteExtensionOperation: ExecuteExtensionOperation,
1237
+ UpgradeExtension: UpgradeExtension,
1238
+ RemoveGenericNervousSystemFunction: IDL.Nat64,
1239
+ SetTopicsForCustomProposals: SetTopicsForCustomProposals,
1240
+ RegisterExtension: RegisterExtension,
1241
+ UpgradeSnsToNextVersion: IDL.Record({}),
1242
+ RegisterDappCanisters: RegisterDappCanisters,
1243
+ TransferSnsTreasuryFunds: TransferSnsTreasuryFunds,
1244
+ UpgradeSnsControlledCanister: UpgradeSnsControlledCanister,
1245
+ DeregisterDappCanisters: DeregisterDappCanisters,
1246
+ MintSnsTokens: MintSnsTokens,
1247
+ AdvanceSnsTargetVersion: AdvanceSnsTargetVersion,
1248
+ Unspecified: IDL.Record({}),
1249
+ ManageSnsMetadata: ManageSnsMetadata,
1250
+ ExecuteGenericNervousSystemFunction: ExecuteGenericNervousSystemFunction,
1251
+ ManageLedgerParameters: ManageLedgerParameters,
1252
+ Motion: Motion,
1262
1253
  });
1263
1254
  const Proposal = IDL.Record({
1264
- 'url' : IDL.Text,
1265
- 'title' : IDL.Text,
1266
- 'action' : IDL.Opt(Action),
1267
- 'summary' : IDL.Text,
1255
+ url: IDL.Text,
1256
+ title: IDL.Text,
1257
+ action: IDL.Opt(Action),
1258
+ summary: IDL.Text,
1268
1259
  });
1269
1260
  const WaitForQuietState = IDL.Record({
1270
- 'current_deadline_timestamp_seconds' : IDL.Nat64,
1261
+ current_deadline_timestamp_seconds: IDL.Nat64,
1271
1262
  });
1272
1263
  const ProposalData = IDL.Record({
1273
- 'id' : IDL.Opt(ProposalId),
1274
- 'payload_text_rendering' : IDL.Opt(IDL.Text),
1275
- 'topic' : IDL.Opt(Topic),
1276
- 'action' : IDL.Nat64,
1277
- 'failure_reason' : IDL.Opt(GovernanceError),
1278
- 'action_auxiliary' : IDL.Opt(ActionAuxiliary),
1279
- 'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
1280
- 'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
1281
- 'reward_event_round' : IDL.Nat64,
1282
- 'failed_timestamp_seconds' : IDL.Nat64,
1283
- 'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1284
- 'proposal_creation_timestamp_seconds' : IDL.Nat64,
1285
- 'initial_voting_period_seconds' : IDL.Nat64,
1286
- 'reject_cost_e8s' : IDL.Nat64,
1287
- 'latest_tally' : IDL.Opt(Tally),
1288
- 'wait_for_quiet_deadline_increase_seconds' : IDL.Nat64,
1289
- 'decided_timestamp_seconds' : IDL.Nat64,
1290
- 'proposal' : IDL.Opt(Proposal),
1291
- 'proposer' : IDL.Opt(NeuronId),
1292
- 'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
1293
- 'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
1294
- 'is_eligible_for_rewards' : IDL.Bool,
1295
- 'executed_timestamp_seconds' : IDL.Nat64,
1296
- });
1297
- const Split = IDL.Record({ 'memo' : IDL.Nat64, 'amount_e8s' : IDL.Nat64 });
1264
+ id: IDL.Opt(ProposalId),
1265
+ payload_text_rendering: IDL.Opt(IDL.Text),
1266
+ topic: IDL.Opt(Topic),
1267
+ action: IDL.Nat64,
1268
+ failure_reason: IDL.Opt(GovernanceError),
1269
+ action_auxiliary: IDL.Opt(ActionAuxiliary),
1270
+ ballots: IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
1271
+ minimum_yes_proportion_of_total: IDL.Opt(Percentage),
1272
+ reward_event_round: IDL.Nat64,
1273
+ failed_timestamp_seconds: IDL.Nat64,
1274
+ reward_event_end_timestamp_seconds: IDL.Opt(IDL.Nat64),
1275
+ proposal_creation_timestamp_seconds: IDL.Nat64,
1276
+ initial_voting_period_seconds: IDL.Nat64,
1277
+ reject_cost_e8s: IDL.Nat64,
1278
+ latest_tally: IDL.Opt(Tally),
1279
+ wait_for_quiet_deadline_increase_seconds: IDL.Nat64,
1280
+ decided_timestamp_seconds: IDL.Nat64,
1281
+ proposal: IDL.Opt(Proposal),
1282
+ proposer: IDL.Opt(NeuronId),
1283
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
1284
+ minimum_yes_proportion_of_exercised: IDL.Opt(Percentage),
1285
+ is_eligible_for_rewards: IDL.Bool,
1286
+ executed_timestamp_seconds: IDL.Nat64,
1287
+ });
1288
+ const Split = IDL.Record({ memo: IDL.Nat64, amount_e8s: IDL.Nat64 });
1298
1289
  const Follow = IDL.Record({
1299
- 'function_id' : IDL.Nat64,
1300
- 'followees' : IDL.Vec(NeuronId),
1290
+ function_id: IDL.Nat64,
1291
+ followees: IDL.Vec(NeuronId),
1301
1292
  });
1302
1293
  const DisburseMaturity = IDL.Record({
1303
- 'to_account' : IDL.Opt(Account),
1304
- 'percentage_to_disburse' : IDL.Nat32,
1294
+ to_account: IDL.Opt(Account),
1295
+ percentage_to_disburse: IDL.Nat32,
1305
1296
  });
1306
1297
  const ChangeAutoStakeMaturity = IDL.Record({
1307
- 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
1298
+ requested_setting_for_auto_stake_maturity: IDL.Bool,
1308
1299
  });
1309
1300
  const IncreaseDissolveDelay = IDL.Record({
1310
- 'additional_dissolve_delay_seconds' : IDL.Nat32,
1301
+ additional_dissolve_delay_seconds: IDL.Nat32,
1311
1302
  });
1312
1303
  const SetDissolveTimestamp = IDL.Record({
1313
- 'dissolve_timestamp_seconds' : IDL.Nat64,
1304
+ dissolve_timestamp_seconds: IDL.Nat64,
1314
1305
  });
1315
1306
  const Operation = IDL.Variant({
1316
- 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
1317
- 'StopDissolving' : IDL.Record({}),
1318
- 'StartDissolving' : IDL.Record({}),
1319
- 'IncreaseDissolveDelay' : IncreaseDissolveDelay,
1320
- 'SetDissolveTimestamp' : SetDissolveTimestamp,
1307
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
1308
+ StopDissolving: IDL.Record({}),
1309
+ StartDissolving: IDL.Record({}),
1310
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
1311
+ SetDissolveTimestamp: SetDissolveTimestamp,
1321
1312
  });
1322
- const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1313
+ const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
1323
1314
  const RegisterVote = IDL.Record({
1324
- 'vote' : IDL.Int32,
1325
- 'proposal' : IDL.Opt(ProposalId),
1315
+ vote: IDL.Int32,
1316
+ proposal: IDL.Opt(ProposalId),
1326
1317
  });
1327
1318
  const Followee = IDL.Record({
1328
- 'alias' : IDL.Opt(IDL.Text),
1329
- 'neuron_id' : IDL.Opt(NeuronId),
1319
+ alias: IDL.Opt(IDL.Text),
1320
+ neuron_id: IDL.Opt(NeuronId),
1330
1321
  });
1331
1322
  const FolloweesForTopic = IDL.Record({
1332
- 'topic' : IDL.Opt(Topic),
1333
- 'followees' : IDL.Vec(Followee),
1323
+ topic: IDL.Opt(Topic),
1324
+ followees: IDL.Vec(Followee),
1334
1325
  });
1335
1326
  const SetFollowing = IDL.Record({
1336
- 'topic_following' : IDL.Vec(FolloweesForTopic),
1327
+ topic_following: IDL.Vec(FolloweesForTopic),
1337
1328
  });
1338
1329
  const FinalizeDisburseMaturity = IDL.Record({
1339
- 'amount_to_be_disbursed_e8s' : IDL.Nat64,
1340
- 'to_account' : IDL.Opt(Account),
1330
+ amount_to_be_disbursed_e8s: IDL.Nat64,
1331
+ to_account: IDL.Opt(Account),
1341
1332
  });
1342
1333
  const MemoAndController = IDL.Record({
1343
- 'controller' : IDL.Opt(IDL.Principal),
1344
- 'memo' : IDL.Nat64,
1334
+ controller: IDL.Opt(IDL.Principal),
1335
+ memo: IDL.Nat64,
1345
1336
  });
1346
1337
  const By = IDL.Variant({
1347
- 'MemoAndController' : MemoAndController,
1348
- 'NeuronId' : IDL.Record({}),
1338
+ MemoAndController: MemoAndController,
1339
+ NeuronId: IDL.Record({}),
1349
1340
  });
1350
- const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
1341
+ const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
1351
1342
  const RemoveNeuronPermissions = IDL.Record({
1352
- 'permissions_to_remove' : IDL.Opt(NeuronPermissionList),
1353
- 'principal_id' : IDL.Opt(IDL.Principal),
1343
+ permissions_to_remove: IDL.Opt(NeuronPermissionList),
1344
+ principal_id: IDL.Opt(IDL.Principal),
1354
1345
  });
1355
1346
  const AddNeuronPermissions = IDL.Record({
1356
- 'permissions_to_add' : IDL.Opt(NeuronPermissionList),
1357
- 'principal_id' : IDL.Opt(IDL.Principal),
1347
+ permissions_to_add: IDL.Opt(NeuronPermissionList),
1348
+ principal_id: IDL.Opt(IDL.Principal),
1358
1349
  });
1359
- const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
1360
- const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
1350
+ const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
1351
+ const Amount = IDL.Record({ e8s: IDL.Nat64 });
1361
1352
  const Disburse = IDL.Record({
1362
- 'to_account' : IDL.Opt(Account),
1363
- 'amount' : IDL.Opt(Amount),
1353
+ to_account: IDL.Opt(Account),
1354
+ amount: IDL.Opt(Amount),
1364
1355
  });
1365
1356
  const Command_2 = IDL.Variant({
1366
- 'Split' : Split,
1367
- 'Follow' : Follow,
1368
- 'DisburseMaturity' : DisburseMaturity,
1369
- 'Configure' : Configure,
1370
- 'RegisterVote' : RegisterVote,
1371
- 'SetFollowing' : SetFollowing,
1372
- 'SyncCommand' : IDL.Record({}),
1373
- 'MakeProposal' : Proposal,
1374
- 'FinalizeDisburseMaturity' : FinalizeDisburseMaturity,
1375
- 'ClaimOrRefreshNeuron' : ClaimOrRefresh,
1376
- 'RemoveNeuronPermissions' : RemoveNeuronPermissions,
1377
- 'AddNeuronPermissions' : AddNeuronPermissions,
1378
- 'MergeMaturity' : MergeMaturity,
1379
- 'Disburse' : Disburse,
1357
+ Split: Split,
1358
+ Follow: Follow,
1359
+ DisburseMaturity: DisburseMaturity,
1360
+ Configure: Configure,
1361
+ RegisterVote: RegisterVote,
1362
+ SetFollowing: SetFollowing,
1363
+ SyncCommand: IDL.Record({}),
1364
+ MakeProposal: Proposal,
1365
+ FinalizeDisburseMaturity: FinalizeDisburseMaturity,
1366
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
1367
+ RemoveNeuronPermissions: RemoveNeuronPermissions,
1368
+ AddNeuronPermissions: AddNeuronPermissions,
1369
+ MergeMaturity: MergeMaturity,
1370
+ Disburse: Disburse,
1380
1371
  });
1381
1372
  const NeuronInFlightCommand = IDL.Record({
1382
- 'command' : IDL.Opt(Command_2),
1383
- 'timestamp' : IDL.Nat64,
1373
+ command: IDL.Opt(Command_2),
1374
+ timestamp: IDL.Nat64,
1384
1375
  });
1385
1376
  const NeuronPermission = IDL.Record({
1386
- 'principal' : IDL.Opt(IDL.Principal),
1387
- 'permission_type' : IDL.Vec(IDL.Int32),
1377
+ principal: IDL.Opt(IDL.Principal),
1378
+ permission_type: IDL.Vec(IDL.Int32),
1388
1379
  });
1389
1380
  const DissolveState = IDL.Variant({
1390
- 'DissolveDelaySeconds' : IDL.Nat64,
1391
- 'WhenDissolvedTimestampSeconds' : IDL.Nat64,
1381
+ DissolveDelaySeconds: IDL.Nat64,
1382
+ WhenDissolvedTimestampSeconds: IDL.Nat64,
1392
1383
  });
1393
1384
  const DisburseMaturityInProgress = IDL.Record({
1394
- 'timestamp_of_disbursement_seconds' : IDL.Nat64,
1395
- 'amount_e8s' : IDL.Nat64,
1396
- 'account_to_disburse_to' : IDL.Opt(Account),
1397
- 'finalize_disbursement_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1385
+ timestamp_of_disbursement_seconds: IDL.Nat64,
1386
+ amount_e8s: IDL.Nat64,
1387
+ account_to_disburse_to: IDL.Opt(Account),
1388
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
1398
1389
  });
1399
1390
  const Neuron = IDL.Record({
1400
- 'id' : IDL.Opt(NeuronId),
1401
- 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1402
- 'permissions' : IDL.Vec(NeuronPermission),
1403
- 'maturity_e8s_equivalent' : IDL.Nat64,
1404
- 'cached_neuron_stake_e8s' : IDL.Nat64,
1405
- 'created_timestamp_seconds' : IDL.Nat64,
1406
- 'topic_followees' : IDL.Opt(
1391
+ id: IDL.Opt(NeuronId),
1392
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1393
+ permissions: IDL.Vec(NeuronPermission),
1394
+ maturity_e8s_equivalent: IDL.Nat64,
1395
+ cached_neuron_stake_e8s: IDL.Nat64,
1396
+ created_timestamp_seconds: IDL.Nat64,
1397
+ topic_followees: IDL.Opt(
1407
1398
  IDL.Record({
1408
- 'topic_id_to_followees' : IDL.Vec(
1409
- IDL.Tuple(IDL.Int32, FolloweesForTopic)
1410
- ),
1411
- })
1399
+ topic_id_to_followees: IDL.Vec(IDL.Tuple(IDL.Int32, FolloweesForTopic)),
1400
+ }),
1412
1401
  ),
1413
- 'source_nns_neuron_id' : IDL.Opt(IDL.Nat64),
1414
- 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
1415
- 'aging_since_timestamp_seconds' : IDL.Nat64,
1416
- 'dissolve_state' : IDL.Opt(DissolveState),
1417
- 'voting_power_percentage_multiplier' : IDL.Nat64,
1418
- 'vesting_period_seconds' : IDL.Opt(IDL.Nat64),
1419
- 'disburse_maturity_in_progress' : IDL.Vec(DisburseMaturityInProgress),
1420
- 'followees' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
1421
- 'neuron_fees_e8s' : IDL.Nat64,
1402
+ source_nns_neuron_id: IDL.Opt(IDL.Nat64),
1403
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
1404
+ aging_since_timestamp_seconds: IDL.Nat64,
1405
+ dissolve_state: IDL.Opt(DissolveState),
1406
+ voting_power_percentage_multiplier: IDL.Nat64,
1407
+ vesting_period_seconds: IDL.Opt(IDL.Nat64),
1408
+ disburse_maturity_in_progress: IDL.Vec(DisburseMaturityInProgress),
1409
+ followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
1410
+ neuron_fees_e8s: IDL.Nat64,
1422
1411
  });
1423
1412
  const Governance = IDL.Record({
1424
- 'root_canister_id' : IDL.Opt(IDL.Principal),
1425
- 'timers' : IDL.Opt(Timers),
1426
- 'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
1427
- 'id_to_nervous_system_functions' : IDL.Vec(
1428
- IDL.Tuple(IDL.Nat64, NervousSystemFunction)
1413
+ root_canister_id: IDL.Opt(IDL.Principal),
1414
+ timers: IDL.Opt(Timers),
1415
+ cached_upgrade_steps: IDL.Opt(CachedUpgradeSteps),
1416
+ id_to_nervous_system_functions: IDL.Vec(
1417
+ IDL.Tuple(IDL.Nat64, NervousSystemFunction),
1429
1418
  ),
1430
- 'metrics' : IDL.Opt(GovernanceCachedMetrics),
1431
- 'maturity_modulation' : IDL.Opt(MaturityModulation),
1432
- 'upgrade_journal' : IDL.Opt(UpgradeJournal),
1433
- 'mode' : IDL.Int32,
1434
- 'parameters' : IDL.Opt(NervousSystemParameters),
1435
- 'is_finalizing_disburse_maturity' : IDL.Opt(IDL.Bool),
1436
- 'deployed_version' : IDL.Opt(Version),
1437
- 'sns_initialization_parameters' : IDL.Text,
1438
- 'latest_reward_event' : IDL.Opt(RewardEvent),
1439
- 'pending_version' : IDL.Opt(PendingVersion),
1440
- 'swap_canister_id' : IDL.Opt(IDL.Principal),
1441
- 'ledger_canister_id' : IDL.Opt(IDL.Principal),
1442
- 'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1443
- 'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
1444
- 'sns_metadata' : IDL.Opt(ManageSnsMetadata),
1445
- 'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
1446
- 'target_version' : IDL.Opt(Version),
1447
- 'genesis_timestamp_seconds' : IDL.Nat64,
1448
- });
1419
+ metrics: IDL.Opt(GovernanceCachedMetrics),
1420
+ maturity_modulation: IDL.Opt(MaturityModulation),
1421
+ upgrade_journal: IDL.Opt(UpgradeJournal),
1422
+ mode: IDL.Int32,
1423
+ parameters: IDL.Opt(NervousSystemParameters),
1424
+ is_finalizing_disburse_maturity: IDL.Opt(IDL.Bool),
1425
+ deployed_version: IDL.Opt(Version),
1426
+ sns_initialization_parameters: IDL.Text,
1427
+ latest_reward_event: IDL.Opt(RewardEvent),
1428
+ pending_version: IDL.Opt(PendingVersion),
1429
+ swap_canister_id: IDL.Opt(IDL.Principal),
1430
+ ledger_canister_id: IDL.Opt(IDL.Principal),
1431
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1432
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
1433
+ sns_metadata: IDL.Opt(ManageSnsMetadata),
1434
+ neurons: IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
1435
+ target_version: IDL.Opt(Version),
1436
+ genesis_timestamp_seconds: IDL.Nat64,
1437
+ });
1438
+
1449
1439
  return [Governance];
1450
1440
  };