@dfinity/nns 10.4.0 → 11.0.0-next-2025-10-20

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 (64) hide show
  1. package/README.md +8 -8
  2. package/dist/candid/genesis_token.certified.idl.d.ts +1 -1
  3. package/dist/candid/genesis_token.certified.idl.js +41 -30
  4. package/dist/candid/genesis_token.d.ts +11 -3
  5. package/dist/candid/genesis_token.idl.d.ts +1 -1
  6. package/dist/candid/genesis_token.idl.js +41 -30
  7. package/dist/candid/governance.certified.idl.d.ts +1 -1
  8. package/dist/candid/governance.certified.idl.js +1272 -1304
  9. package/dist/candid/governance.d.ts +11 -3
  10. package/dist/candid/governance.idl.d.ts +1 -1
  11. package/dist/candid/governance.idl.js +1280 -1320
  12. package/dist/candid/governance_test.certified.idl.d.ts +1 -1
  13. package/dist/candid/governance_test.certified.idl.js +1273 -1305
  14. package/dist/candid/governance_test.d.ts +11 -3
  15. package/dist/candid/governance_test.idl.d.ts +1 -1
  16. package/dist/candid/governance_test.idl.js +1281 -1321
  17. package/dist/candid/old_list_neurons_service.certified.idl.js +60 -60
  18. package/dist/candid/sns_wasm.certified.idl.d.ts +1 -1
  19. package/dist/candid/sns_wasm.certified.idl.js +230 -224
  20. package/dist/candid/sns_wasm.d.ts +11 -3
  21. package/dist/candid/sns_wasm.idl.d.ts +1 -1
  22. package/dist/candid/sns_wasm.idl.js +230 -224
  23. package/dist/{types/canisters → canisters}/governance/request.converters.d.ts +2 -2
  24. package/dist/{types/canisters → canisters}/governance/response.converters.d.ts +2 -2
  25. package/dist/{types/canisters → canisters}/governance/services.d.ts +1 -1
  26. package/dist/{types/constants → constants}/canister_ids.d.ts +1 -1
  27. package/dist/{types/errors → errors}/governance.errors.d.ts +1 -1
  28. package/dist/{types/genesis_token.canister.d.ts → genesis_token.canister.d.ts} +1 -1
  29. package/dist/{types/governance.canister.d.ts → governance.canister.d.ts} +2 -2
  30. package/dist/{types/governance_test.canister.d.ts → governance_test.canister.d.ts} +2 -2
  31. package/dist/{types/index.d.ts → index.d.ts} +2 -2
  32. package/dist/index.js +8 -1
  33. package/dist/index.js.map +7 -0
  34. package/dist/index.mjs +10 -0
  35. package/dist/index.mjs.map +7 -0
  36. package/dist/{types/sns_wasm.canister.d.ts → sns_wasm.canister.d.ts} +1 -1
  37. package/dist/types/{types/governance.options.d.ts → governance.options.d.ts} +2 -2
  38. package/dist/types/{types/governance_converters.d.ts → governance_converters.d.ts} +2 -2
  39. package/dist/types/{types/sns_wasm.options.d.ts → sns_wasm.options.d.ts} +1 -1
  40. package/dist/{types/utils → utils}/account_identifier.utils.d.ts +1 -1
  41. package/dist/{types/utils → utils}/neurons.utils.d.ts +1 -1
  42. package/package.json +23 -12
  43. package/dist/cjs/index.cjs.js +0 -8
  44. package/dist/cjs/index.cjs.js.map +0 -7
  45. package/dist/esm/chunk-6RTK3IEW.js +0 -2
  46. package/dist/esm/chunk-6RTK3IEW.js.map +0 -7
  47. package/dist/esm/chunk-GJ7FSPCW.js +0 -2
  48. package/dist/esm/chunk-GJ7FSPCW.js.map +0 -7
  49. package/dist/esm/chunk-HK4WSMGK.js +0 -8
  50. package/dist/esm/chunk-HK4WSMGK.js.map +0 -7
  51. package/dist/esm/chunk-W6BBRGPQ.js +0 -2
  52. package/dist/esm/chunk-W6BBRGPQ.js.map +0 -7
  53. package/dist/esm/genesis_token.canister.js +0 -2
  54. package/dist/esm/genesis_token.canister.js.map +0 -7
  55. package/dist/esm/governance.canister.js +0 -2
  56. package/dist/esm/governance.canister.js.map +0 -7
  57. package/dist/esm/index.js +0 -2
  58. package/dist/esm/index.js.map +0 -7
  59. package/dist/esm/sns_wasm.canister.js +0 -2
  60. package/dist/esm/sns_wasm.canister.js.map +0 -7
  61. package/dist/index.cjs.js +0 -1
  62. /package/dist/{types/constants → constants}/constants.d.ts +0 -0
  63. /package/dist/{types/enums → enums}/governance.enums.d.ts +0 -0
  64. /package/dist/types/{types/common.d.ts → common.d.ts} +0 -0
@@ -1,1795 +1,1755 @@
1
- /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/nns/candid/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 ManageNeuronRequest = IDL.Rec();
4
11
  const Proposal = IDL.Rec();
5
- const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
6
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
7
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
12
+ const NeuronId = IDL.Record({ id: IDL.Nat64 });
13
+ const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
14
+ const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
8
15
  const NodeProvider = IDL.Record({
9
- 'id' : IDL.Opt(IDL.Principal),
10
- 'reward_account' : IDL.Opt(AccountIdentifier),
16
+ id: IDL.Opt(IDL.Principal),
17
+ reward_account: IDL.Opt(AccountIdentifier),
11
18
  });
12
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
19
+ const RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
13
20
  const RewardToAccount = IDL.Record({
14
- 'to_account' : IDL.Opt(AccountIdentifier),
21
+ to_account: IDL.Opt(AccountIdentifier),
15
22
  });
16
23
  const RewardMode = IDL.Variant({
17
- 'RewardToNeuron' : RewardToNeuron,
18
- 'RewardToAccount' : RewardToAccount,
24
+ RewardToNeuron: RewardToNeuron,
25
+ RewardToAccount: RewardToAccount,
19
26
  });
20
27
  const RewardNodeProvider = IDL.Record({
21
- 'node_provider' : IDL.Opt(NodeProvider),
22
- 'reward_mode' : IDL.Opt(RewardMode),
23
- 'amount_e8s' : IDL.Nat64,
28
+ node_provider: IDL.Opt(NodeProvider),
29
+ reward_mode: IDL.Opt(RewardMode),
30
+ amount_e8s: IDL.Nat64,
24
31
  });
25
32
  const XdrConversionRate = IDL.Record({
26
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
27
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
33
+ xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
34
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
28
35
  });
29
36
  const MonthlyNodeProviderRewards = IDL.Record({
30
- 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
31
- 'registry_version' : IDL.Opt(IDL.Nat64),
32
- 'node_providers' : IDL.Vec(NodeProvider),
33
- 'timestamp' : IDL.Nat64,
34
- 'rewards' : IDL.Vec(RewardNodeProvider),
35
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
36
- 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
37
+ minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
38
+ registry_version: IDL.Opt(IDL.Nat64),
39
+ node_providers: IDL.Vec(NodeProvider),
40
+ timestamp: IDL.Nat64,
41
+ rewards: IDL.Vec(RewardNodeProvider),
42
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
43
+ maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64),
37
44
  });
38
45
  const NeuronSubsetMetrics = IDL.Record({
39
- 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
40
- 'maturity_e8s_equivalent_buckets' : IDL.Vec(
41
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
46
+ total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
47
+ maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
48
+ voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
49
+ total_staked_e8s: IDL.Opt(IDL.Nat64),
50
+ count: IDL.Opt(IDL.Nat64),
51
+ deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
52
+ total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
53
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
54
+ total_deciding_voting_power: IDL.Opt(IDL.Nat64),
55
+ staked_maturity_e8s_equivalent_buckets: IDL.Vec(
56
+ IDL.Tuple(IDL.Nat64, IDL.Nat64),
42
57
  ),
43
- 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
44
- 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
45
- 'count' : IDL.Opt(IDL.Nat64),
46
- 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
47
- 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
48
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
49
- 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
50
- 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
51
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
52
- ),
53
- 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
54
- 'total_voting_power' : IDL.Opt(IDL.Nat64),
55
- 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
56
- 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
58
+ staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
59
+ total_voting_power: IDL.Opt(IDL.Nat64),
60
+ potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
61
+ count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
57
62
  });
58
63
  const GovernanceCachedMetrics = IDL.Record({
59
- 'total_maturity_e8s_equivalent' : IDL.Nat64,
60
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
61
- IDL.Tuple(IDL.Nat64, IDL.Float64)
62
- ),
63
- 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
64
- 'garbage_collectable_neurons_count' : IDL.Nat64,
65
- 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
66
- IDL.Tuple(IDL.Nat64, IDL.Float64)
67
- ),
68
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
69
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
70
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
71
- ),
72
- 'ect_neuron_count' : IDL.Nat64,
73
- 'total_supply_icp' : IDL.Nat64,
74
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
75
- 'dissolved_neurons_count' : IDL.Nat64,
76
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
77
- 'total_staked_e8s_seed' : IDL.Nat64,
78
- 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
79
- 'total_staked_e8s' : IDL.Nat64,
80
- 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
81
- NeuronSubsetMetrics
82
- ),
83
- 'not_dissolving_neurons_count' : IDL.Nat64,
84
- 'total_locked_e8s' : IDL.Nat64,
85
- 'neurons_fund_total_active_neurons' : IDL.Nat64,
86
- 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
87
- IDL.Nat64
64
+ total_maturity_e8s_equivalent: IDL.Nat64,
65
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(
66
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
88
67
  ),
89
- 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
90
- 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
91
- IDL.Tuple(IDL.Nat64, IDL.Float64)
68
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
69
+ garbage_collectable_neurons_count: IDL.Nat64,
70
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
71
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
92
72
  ),
93
- 'spawning_neurons_count' : IDL.Nat64,
94
- 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
95
- NeuronSubsetMetrics
73
+ neurons_with_invalid_stake_count: IDL.Nat64,
74
+ not_dissolving_neurons_count_buckets: IDL.Vec(
75
+ IDL.Tuple(IDL.Nat64, IDL.Nat64),
96
76
  ),
97
- 'total_staked_e8s_ect' : IDL.Nat64,
98
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
99
- 'dissolved_neurons_e8s' : IDL.Nat64,
100
- 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
101
- 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
102
- IDL.Tuple(IDL.Nat64, IDL.Float64)
77
+ ect_neuron_count: IDL.Nat64,
78
+ total_supply_icp: IDL.Nat64,
79
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
80
+ dissolved_neurons_count: IDL.Nat64,
81
+ community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
82
+ total_staked_e8s_seed: IDL.Nat64,
83
+ total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
84
+ total_staked_e8s: IDL.Nat64,
85
+ fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
86
+ not_dissolving_neurons_count: IDL.Nat64,
87
+ total_locked_e8s: IDL.Nat64,
88
+ neurons_fund_total_active_neurons: IDL.Nat64,
89
+ total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
90
+ total_staked_maturity_e8s_equivalent: IDL.Nat64,
91
+ not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(
92
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
103
93
  ),
104
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
105
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
106
- IDL.Tuple(IDL.Nat64, IDL.Float64)
94
+ spawning_neurons_count: IDL.Nat64,
95
+ declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
96
+ total_staked_e8s_ect: IDL.Nat64,
97
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
98
+ dissolved_neurons_e8s: IDL.Nat64,
99
+ total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
100
+ dissolving_neurons_e8s_buckets_seed: IDL.Vec(
101
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
107
102
  ),
108
- 'dissolving_neurons_count_buckets' : IDL.Vec(
109
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
103
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
104
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
105
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
110
106
  ),
111
- 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
112
- IDL.Tuple(IDL.Nat64, IDL.Float64)
107
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
108
+ dissolving_neurons_e8s_buckets_ect: IDL.Vec(
109
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
113
110
  ),
114
- 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
115
- NeuronSubsetMetrics
111
+ non_self_authenticating_controller_neuron_subset_metrics:
112
+ IDL.Opt(NeuronSubsetMetrics),
113
+ dissolving_neurons_count: IDL.Nat64,
114
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
115
+ total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
116
+ community_fund_total_staked_e8s: IDL.Nat64,
117
+ not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(
118
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
116
119
  ),
117
- 'dissolving_neurons_count' : IDL.Nat64,
118
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
119
- IDL.Tuple(IDL.Nat64, IDL.Float64)
120
- ),
121
- 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
122
- 'community_fund_total_staked_e8s' : IDL.Nat64,
123
- 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
124
- IDL.Tuple(IDL.Nat64, IDL.Float64)
125
- ),
126
- 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
127
- 'timestamp_seconds' : IDL.Nat64,
128
- 'seed_neuron_count' : IDL.Nat64,
120
+ public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
121
+ timestamp_seconds: IDL.Nat64,
122
+ seed_neuron_count: IDL.Nat64,
129
123
  });
130
124
  const VotingPowerEconomics = IDL.Record({
131
- 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
132
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
133
- 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
125
+ start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
126
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
127
+ clear_following_after_seconds: IDL.Opt(IDL.Nat64),
134
128
  });
135
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
136
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
129
+ const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
130
+ const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
137
131
  const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
138
- 'contribution_threshold_xdr' : IDL.Opt(Decimal),
139
- 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
140
- 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
132
+ contribution_threshold_xdr: IDL.Opt(Decimal),
133
+ one_third_participation_milestone_xdr: IDL.Opt(Decimal),
134
+ full_participation_milestone_xdr: IDL.Opt(Decimal),
141
135
  });
142
136
  const NeuronsFundEconomics = IDL.Record({
143
- 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
144
- 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
145
- NeuronsFundMatchedFundingCurveCoefficients
137
+ maximum_icp_xdr_rate: IDL.Opt(Percentage),
138
+ neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
139
+ NeuronsFundMatchedFundingCurveCoefficients,
146
140
  ),
147
- 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
148
- 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
141
+ max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
142
+ minimum_icp_xdr_rate: IDL.Opt(Percentage),
149
143
  });
150
144
  const NetworkEconomics = IDL.Record({
151
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
152
- 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
153
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
154
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
155
- 'reject_cost_e8s' : IDL.Nat64,
156
- 'transaction_fee_e8s' : IDL.Nat64,
157
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
158
- 'minimum_icp_xdr_rate' : IDL.Nat64,
159
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
160
- 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
145
+ neuron_minimum_stake_e8s: IDL.Nat64,
146
+ voting_power_economics: IDL.Opt(VotingPowerEconomics),
147
+ max_proposals_to_keep_per_topic: IDL.Nat32,
148
+ neuron_management_fee_per_proposal_e8s: IDL.Nat64,
149
+ reject_cost_e8s: IDL.Nat64,
150
+ transaction_fee_e8s: IDL.Nat64,
151
+ neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
152
+ minimum_icp_xdr_rate: IDL.Nat64,
153
+ maximum_node_provider_rewards_e8s: IDL.Nat64,
154
+ neurons_fund_economics: IDL.Opt(NeuronsFundEconomics),
161
155
  });
162
156
  const RestoreAgingNeuronGroup = IDL.Record({
163
- 'count' : IDL.Opt(IDL.Nat64),
164
- 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
165
- 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
166
- 'group_type' : IDL.Int32,
157
+ count: IDL.Opt(IDL.Nat64),
158
+ previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
159
+ current_total_stake_e8s: IDL.Opt(IDL.Nat64),
160
+ group_type: IDL.Int32,
167
161
  });
168
162
  const RestoreAgingSummary = IDL.Record({
169
- 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
170
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
163
+ groups: IDL.Vec(RestoreAgingNeuronGroup),
164
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
171
165
  });
172
- const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
166
+ const ProposalId = IDL.Record({ id: IDL.Nat64 });
173
167
  const RewardEvent = IDL.Record({
174
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
175
- 'day_after_genesis' : IDL.Nat64,
176
- 'actual_timestamp_seconds' : IDL.Nat64,
177
- 'total_available_e8s_equivalent' : IDL.Nat64,
178
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
179
- 'distributed_e8s_equivalent' : IDL.Nat64,
180
- 'settled_proposals' : IDL.Vec(ProposalId),
168
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
169
+ day_after_genesis: IDL.Nat64,
170
+ actual_timestamp_seconds: IDL.Nat64,
171
+ total_available_e8s_equivalent: IDL.Nat64,
172
+ latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
173
+ distributed_e8s_equivalent: IDL.Nat64,
174
+ settled_proposals: IDL.Vec(ProposalId),
181
175
  });
182
176
  const NeuronStakeTransfer = IDL.Record({
183
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
184
- 'neuron_stake_e8s' : IDL.Nat64,
185
- 'from' : IDL.Opt(IDL.Principal),
186
- 'memo' : IDL.Nat64,
187
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
188
- 'transfer_timestamp' : IDL.Nat64,
189
- 'block_height' : IDL.Nat64,
177
+ to_subaccount: IDL.Vec(IDL.Nat8),
178
+ neuron_stake_e8s: IDL.Nat64,
179
+ from: IDL.Opt(IDL.Principal),
180
+ memo: IDL.Nat64,
181
+ from_subaccount: IDL.Vec(IDL.Nat8),
182
+ transfer_timestamp: IDL.Nat64,
183
+ block_height: IDL.Nat64,
190
184
  });
191
185
  const GovernanceError = IDL.Record({
192
- 'error_message' : IDL.Text,
193
- 'error_type' : IDL.Int32,
186
+ error_message: IDL.Text,
187
+ error_type: IDL.Int32,
194
188
  });
195
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
189
+ const Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
196
190
  const SwapParticipationLimits = IDL.Record({
197
- 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
198
- 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
199
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
200
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
191
+ min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
192
+ max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
193
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
194
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
201
195
  });
202
196
  const NeuronsFundNeuronPortion = IDL.Record({
203
- 'controller' : IDL.Opt(IDL.Principal),
204
- 'hotkeys' : IDL.Vec(IDL.Principal),
205
- 'is_capped' : IDL.Opt(IDL.Bool),
206
- 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
207
- 'nns_neuron_id' : IDL.Opt(NeuronId),
208
- 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
197
+ controller: IDL.Opt(IDL.Principal),
198
+ hotkeys: IDL.Vec(IDL.Principal),
199
+ is_capped: IDL.Opt(IDL.Bool),
200
+ maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
201
+ nns_neuron_id: IDL.Opt(NeuronId),
202
+ amount_icp_e8s: IDL.Opt(IDL.Nat64),
209
203
  });
210
204
  const NeuronsFundSnapshot = IDL.Record({
211
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
205
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion),
212
206
  });
213
207
  const IdealMatchedParticipationFunction = IDL.Record({
214
- 'serialized_representation' : IDL.Opt(IDL.Text),
208
+ serialized_representation: IDL.Opt(IDL.Text),
215
209
  });
216
210
  const NeuronsFundParticipation = IDL.Record({
217
- 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
218
- 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
219
- 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
220
- 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
221
- 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
222
- 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
223
- 'ideal_matched_participation_function' : IDL.Opt(
224
- IdealMatchedParticipationFunction
211
+ total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
212
+ intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
213
+ direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
214
+ swap_participation_limits: IDL.Opt(SwapParticipationLimits),
215
+ max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
216
+ neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
217
+ ideal_matched_participation_function: IDL.Opt(
218
+ IdealMatchedParticipationFunction,
225
219
  ),
226
- 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
220
+ allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
227
221
  });
228
222
  const NeuronsFundData = IDL.Record({
229
- 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
230
- 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
231
- 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
223
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
224
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
225
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
232
226
  });
233
227
  const CanisterStatusResultV2 = IDL.Record({
234
- 'status' : IDL.Opt(IDL.Int32),
235
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
236
- 'controllers' : IDL.Vec(IDL.Principal),
237
- 'memory_size' : IDL.Opt(IDL.Nat64),
238
- 'cycles' : IDL.Opt(IDL.Nat64),
239
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
240
- 'module_hash' : IDL.Vec(IDL.Nat8),
228
+ status: IDL.Opt(IDL.Int32),
229
+ freezing_threshold: IDL.Opt(IDL.Nat64),
230
+ controllers: IDL.Vec(IDL.Principal),
231
+ memory_size: IDL.Opt(IDL.Nat64),
232
+ cycles: IDL.Opt(IDL.Nat64),
233
+ idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
234
+ module_hash: IDL.Vec(IDL.Nat8),
241
235
  });
242
236
  const CanisterSummary = IDL.Record({
243
- 'status' : IDL.Opt(CanisterStatusResultV2),
244
- 'canister_id' : IDL.Opt(IDL.Principal),
237
+ status: IDL.Opt(CanisterStatusResultV2),
238
+ canister_id: IDL.Opt(IDL.Principal),
245
239
  });
246
240
  const SwapBackgroundInformation = IDL.Record({
247
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
248
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
249
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
250
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
251
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
252
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
253
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
254
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
241
+ ledger_index_canister_summary: IDL.Opt(CanisterSummary),
242
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
243
+ ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
244
+ ledger_canister_summary: IDL.Opt(CanisterSummary),
245
+ swap_canister_summary: IDL.Opt(CanisterSummary),
246
+ governance_canister_summary: IDL.Opt(CanisterSummary),
247
+ root_canister_summary: IDL.Opt(CanisterSummary),
248
+ dapp_canister_summaries: IDL.Vec(CanisterSummary),
255
249
  });
256
250
  const DerivedProposalInformation = IDL.Record({
257
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
251
+ swap_background_information: IDL.Opt(SwapBackgroundInformation),
258
252
  });
259
253
  const Tally = IDL.Record({
260
- 'no' : IDL.Nat64,
261
- 'yes' : IDL.Nat64,
262
- 'total' : IDL.Nat64,
263
- 'timestamp_seconds' : IDL.Nat64,
254
+ no: IDL.Nat64,
255
+ yes: IDL.Nat64,
256
+ total: IDL.Nat64,
257
+ timestamp_seconds: IDL.Nat64,
264
258
  });
265
259
  const TopicToFollow = IDL.Variant({
266
- 'Kyc' : IDL.Null,
267
- 'ServiceNervousSystemManagement' : IDL.Null,
268
- 'ApiBoundaryNodeManagement' : IDL.Null,
269
- 'ApplicationCanisterManagement' : IDL.Null,
270
- 'SubnetRental' : IDL.Null,
271
- 'NeuronManagement' : IDL.Null,
272
- 'NodeProviderRewards' : IDL.Null,
273
- 'SubnetManagement' : IDL.Null,
274
- 'ExchangeRate' : IDL.Null,
275
- 'CatchAll' : IDL.Null,
276
- 'NodeAdmin' : IDL.Null,
277
- 'IcOsVersionElection' : IDL.Null,
278
- 'ProtocolCanisterManagement' : IDL.Null,
279
- 'NetworkEconomics' : IDL.Null,
280
- 'IcOsVersionDeployment' : IDL.Null,
281
- 'ParticipantManagement' : IDL.Null,
282
- 'Governance' : IDL.Null,
283
- 'SnsAndCommunityFund' : IDL.Null,
260
+ Kyc: IDL.Null,
261
+ ServiceNervousSystemManagement: IDL.Null,
262
+ ApiBoundaryNodeManagement: IDL.Null,
263
+ ApplicationCanisterManagement: IDL.Null,
264
+ SubnetRental: IDL.Null,
265
+ NeuronManagement: IDL.Null,
266
+ NodeProviderRewards: IDL.Null,
267
+ SubnetManagement: IDL.Null,
268
+ ExchangeRate: IDL.Null,
269
+ CatchAll: IDL.Null,
270
+ NodeAdmin: IDL.Null,
271
+ IcOsVersionElection: IDL.Null,
272
+ ProtocolCanisterManagement: IDL.Null,
273
+ NetworkEconomics: IDL.Null,
274
+ IcOsVersionDeployment: IDL.Null,
275
+ ParticipantManagement: IDL.Null,
276
+ Governance: IDL.Null,
277
+ SnsAndCommunityFund: IDL.Null,
284
278
  });
285
279
  const KnownNeuronData = IDL.Record({
286
- 'name' : IDL.Text,
287
- 'committed_topics' : IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
288
- 'description' : IDL.Opt(IDL.Text),
289
- 'links' : IDL.Opt(IDL.Vec(IDL.Text)),
280
+ name: IDL.Text,
281
+ committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
282
+ description: IDL.Opt(IDL.Text),
283
+ links: IDL.Opt(IDL.Vec(IDL.Text)),
290
284
  });
291
285
  const KnownNeuron = IDL.Record({
292
- 'id' : IDL.Opt(NeuronId),
293
- 'known_neuron_data' : IDL.Opt(KnownNeuronData),
286
+ id: IDL.Opt(NeuronId),
287
+ known_neuron_data: IDL.Opt(KnownNeuronData),
294
288
  });
295
289
  const FulfillSubnetRentalRequest = IDL.Record({
296
- 'user' : IDL.Opt(IDL.Principal),
297
- 'replica_version_id' : IDL.Opt(IDL.Text),
298
- 'node_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
290
+ user: IDL.Opt(IDL.Principal),
291
+ replica_version_id: IDL.Opt(IDL.Text),
292
+ node_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
299
293
  });
300
294
  const Spawn = IDL.Record({
301
- 'percentage_to_spawn' : IDL.Opt(IDL.Nat32),
302
- 'new_controller' : IDL.Opt(IDL.Principal),
303
- 'nonce' : IDL.Opt(IDL.Nat64),
295
+ percentage_to_spawn: IDL.Opt(IDL.Nat32),
296
+ new_controller: IDL.Opt(IDL.Principal),
297
+ nonce: IDL.Opt(IDL.Nat64),
304
298
  });
305
299
  const Split = IDL.Record({
306
- 'memo' : IDL.Opt(IDL.Nat64),
307
- 'amount_e8s' : IDL.Nat64,
300
+ memo: IDL.Opt(IDL.Nat64),
301
+ amount_e8s: IDL.Nat64,
308
302
  });
309
303
  const Follow = IDL.Record({
310
- 'topic' : IDL.Int32,
311
- 'followees' : IDL.Vec(NeuronId),
304
+ topic: IDL.Int32,
305
+ followees: IDL.Vec(NeuronId),
312
306
  });
313
307
  const Account = IDL.Record({
314
- 'owner' : IDL.Opt(IDL.Principal),
315
- 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
308
+ owner: IDL.Opt(IDL.Principal),
309
+ subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
316
310
  });
317
311
  const DisburseMaturity = IDL.Record({
318
- 'to_account_identifier' : IDL.Opt(AccountIdentifier),
319
- 'to_account' : IDL.Opt(Account),
320
- 'percentage_to_disburse' : IDL.Nat32,
312
+ to_account_identifier: IDL.Opt(AccountIdentifier),
313
+ to_account: IDL.Opt(Account),
314
+ percentage_to_disburse: IDL.Nat32,
321
315
  });
322
316
  const RefreshVotingPower = IDL.Record({});
323
317
  const ClaimOrRefreshNeuronFromAccount = IDL.Record({
324
- 'controller' : IDL.Opt(IDL.Principal),
325
- 'memo' : IDL.Nat64,
318
+ controller: IDL.Opt(IDL.Principal),
319
+ memo: IDL.Nat64,
326
320
  });
327
321
  const By = IDL.Variant({
328
- 'NeuronIdOrSubaccount' : IDL.Record({}),
329
- 'MemoAndController' : ClaimOrRefreshNeuronFromAccount,
330
- 'Memo' : IDL.Nat64,
322
+ NeuronIdOrSubaccount: IDL.Record({}),
323
+ MemoAndController: ClaimOrRefreshNeuronFromAccount,
324
+ Memo: IDL.Nat64,
331
325
  });
332
- const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
326
+ const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
333
327
  const RemoveHotKey = IDL.Record({
334
- 'hot_key_to_remove' : IDL.Opt(IDL.Principal),
328
+ hot_key_to_remove: IDL.Opt(IDL.Principal),
335
329
  });
336
- const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
330
+ const AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
337
331
  const ChangeAutoStakeMaturity = IDL.Record({
338
- 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
332
+ requested_setting_for_auto_stake_maturity: IDL.Bool,
339
333
  });
340
334
  const IncreaseDissolveDelay = IDL.Record({
341
- 'additional_dissolve_delay_seconds' : IDL.Nat32,
335
+ additional_dissolve_delay_seconds: IDL.Nat32,
342
336
  });
343
- const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
337
+ const SetVisibility = IDL.Record({ visibility: IDL.Opt(IDL.Int32) });
344
338
  const SetDissolveTimestamp = IDL.Record({
345
- 'dissolve_timestamp_seconds' : IDL.Nat64,
339
+ dissolve_timestamp_seconds: IDL.Nat64,
346
340
  });
347
341
  const Operation = IDL.Variant({
348
- 'RemoveHotKey' : RemoveHotKey,
349
- 'AddHotKey' : AddHotKey,
350
- 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
351
- 'StopDissolving' : IDL.Record({}),
352
- 'StartDissolving' : IDL.Record({}),
353
- 'IncreaseDissolveDelay' : IncreaseDissolveDelay,
354
- 'SetVisibility' : SetVisibility,
355
- 'JoinCommunityFund' : IDL.Record({}),
356
- 'LeaveCommunityFund' : IDL.Record({}),
357
- 'SetDissolveTimestamp' : SetDissolveTimestamp,
358
- });
359
- const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
342
+ RemoveHotKey: RemoveHotKey,
343
+ AddHotKey: AddHotKey,
344
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
345
+ StopDissolving: IDL.Record({}),
346
+ StartDissolving: IDL.Record({}),
347
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
348
+ SetVisibility: SetVisibility,
349
+ JoinCommunityFund: IDL.Record({}),
350
+ LeaveCommunityFund: IDL.Record({}),
351
+ SetDissolveTimestamp: SetDissolveTimestamp,
352
+ });
353
+ const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
360
354
  const RegisterVote = IDL.Record({
361
- 'vote' : IDL.Int32,
362
- 'proposal' : IDL.Opt(ProposalId),
355
+ vote: IDL.Int32,
356
+ proposal: IDL.Opt(ProposalId),
363
357
  });
364
- const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
358
+ const Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
365
359
  const DisburseToNeuron = IDL.Record({
366
- 'dissolve_delay_seconds' : IDL.Nat64,
367
- 'kyc_verified' : IDL.Bool,
368
- 'amount_e8s' : IDL.Nat64,
369
- 'new_controller' : IDL.Opt(IDL.Principal),
370
- 'nonce' : IDL.Nat64,
360
+ dissolve_delay_seconds: IDL.Nat64,
361
+ kyc_verified: IDL.Bool,
362
+ amount_e8s: IDL.Nat64,
363
+ new_controller: IDL.Opt(IDL.Principal),
364
+ nonce: IDL.Nat64,
371
365
  });
372
366
  const FolloweesForTopic = IDL.Record({
373
- 'topic' : IDL.Opt(IDL.Int32),
374
- 'followees' : IDL.Opt(IDL.Vec(NeuronId)),
367
+ topic: IDL.Opt(IDL.Int32),
368
+ followees: IDL.Opt(IDL.Vec(NeuronId)),
375
369
  });
376
370
  const SetFollowing = IDL.Record({
377
- 'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
371
+ topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic)),
378
372
  });
379
373
  const StakeMaturity = IDL.Record({
380
- 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
374
+ percentage_to_stake: IDL.Opt(IDL.Nat32),
381
375
  });
382
- const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
383
- const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
376
+ const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
377
+ const Amount = IDL.Record({ e8s: IDL.Nat64 });
384
378
  const Disburse = IDL.Record({
385
- 'to_account' : IDL.Opt(AccountIdentifier),
386
- 'amount' : IDL.Opt(Amount),
379
+ to_account: IDL.Opt(AccountIdentifier),
380
+ amount: IDL.Opt(Amount),
387
381
  });
388
382
  const Command = IDL.Variant({
389
- 'Spawn' : Spawn,
390
- 'Split' : Split,
391
- 'Follow' : Follow,
392
- 'DisburseMaturity' : DisburseMaturity,
393
- 'RefreshVotingPower' : RefreshVotingPower,
394
- 'ClaimOrRefresh' : ClaimOrRefresh,
395
- 'Configure' : Configure,
396
- 'RegisterVote' : RegisterVote,
397
- 'Merge' : Merge,
398
- 'DisburseToNeuron' : DisburseToNeuron,
399
- 'SetFollowing' : SetFollowing,
400
- 'MakeProposal' : Proposal,
401
- 'StakeMaturity' : StakeMaturity,
402
- 'MergeMaturity' : MergeMaturity,
403
- 'Disburse' : Disburse,
383
+ Spawn: Spawn,
384
+ Split: Split,
385
+ Follow: Follow,
386
+ DisburseMaturity: DisburseMaturity,
387
+ RefreshVotingPower: RefreshVotingPower,
388
+ ClaimOrRefresh: ClaimOrRefresh,
389
+ Configure: Configure,
390
+ RegisterVote: RegisterVote,
391
+ Merge: Merge,
392
+ DisburseToNeuron: DisburseToNeuron,
393
+ SetFollowing: SetFollowing,
394
+ MakeProposal: Proposal,
395
+ StakeMaturity: StakeMaturity,
396
+ MergeMaturity: MergeMaturity,
397
+ Disburse: Disburse,
404
398
  });
405
399
  const NeuronIdOrSubaccount = IDL.Variant({
406
- 'Subaccount' : IDL.Vec(IDL.Nat8),
407
- 'NeuronId' : NeuronId,
400
+ Subaccount: IDL.Vec(IDL.Nat8),
401
+ NeuronId: NeuronId,
408
402
  });
409
403
  const ManageNeuron = IDL.Record({
410
- 'id' : IDL.Opt(NeuronId),
411
- 'command' : IDL.Opt(Command),
412
- 'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
404
+ id: IDL.Opt(NeuronId),
405
+ command: IDL.Opt(Command),
406
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
413
407
  });
414
- const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
408
+ const Controllers = IDL.Record({ controllers: IDL.Vec(IDL.Principal) });
415
409
  const CanisterSettings = IDL.Record({
416
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
417
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
418
- 'controllers' : IDL.Opt(Controllers),
419
- 'log_visibility' : IDL.Opt(IDL.Int32),
420
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
421
- 'memory_allocation' : IDL.Opt(IDL.Nat64),
422
- 'compute_allocation' : IDL.Opt(IDL.Nat64),
410
+ freezing_threshold: IDL.Opt(IDL.Nat64),
411
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
412
+ controllers: IDL.Opt(Controllers),
413
+ log_visibility: IDL.Opt(IDL.Int32),
414
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
415
+ memory_allocation: IDL.Opt(IDL.Nat64),
416
+ compute_allocation: IDL.Opt(IDL.Nat64),
423
417
  });
424
418
  const UpdateCanisterSettings = IDL.Record({
425
- 'canister_id' : IDL.Opt(IDL.Principal),
426
- 'settings' : IDL.Opt(CanisterSettings),
419
+ canister_id: IDL.Opt(IDL.Principal),
420
+ settings: IDL.Opt(CanisterSettings),
427
421
  });
428
422
  const InstallCode = IDL.Record({
429
- 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
430
- 'wasm_module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
431
- 'canister_id' : IDL.Opt(IDL.Principal),
432
- 'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
433
- 'install_mode' : IDL.Opt(IDL.Int32),
423
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
424
+ wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
425
+ canister_id: IDL.Opt(IDL.Principal),
426
+ arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
427
+ install_mode: IDL.Opt(IDL.Int32),
434
428
  });
435
- const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
429
+ const DeregisterKnownNeuron = IDL.Record({ id: IDL.Opt(NeuronId) });
436
430
  const StopOrStartCanister = IDL.Record({
437
- 'action' : IDL.Opt(IDL.Int32),
438
- 'canister_id' : IDL.Opt(IDL.Principal),
431
+ action: IDL.Opt(IDL.Int32),
432
+ canister_id: IDL.Opt(IDL.Principal),
439
433
  });
440
- const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
441
- const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
434
+ const Duration = IDL.Record({ seconds: IDL.Opt(IDL.Nat64) });
435
+ const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
442
436
  const VotingRewardParameters = IDL.Record({
443
- 'reward_rate_transition_duration' : IDL.Opt(Duration),
444
- 'initial_reward_rate' : IDL.Opt(Percentage),
445
- 'final_reward_rate' : IDL.Opt(Percentage),
437
+ reward_rate_transition_duration: IDL.Opt(Duration),
438
+ initial_reward_rate: IDL.Opt(Percentage),
439
+ final_reward_rate: IDL.Opt(Percentage),
446
440
  });
447
441
  const GovernanceParameters = IDL.Record({
448
- 'neuron_maximum_dissolve_delay_bonus' : IDL.Opt(Percentage),
449
- 'neuron_maximum_age_for_age_bonus' : IDL.Opt(Duration),
450
- 'neuron_maximum_dissolve_delay' : IDL.Opt(Duration),
451
- 'neuron_minimum_dissolve_delay_to_vote' : IDL.Opt(Duration),
452
- 'neuron_maximum_age_bonus' : IDL.Opt(Percentage),
453
- 'neuron_minimum_stake' : IDL.Opt(Tokens),
454
- 'proposal_wait_for_quiet_deadline_increase' : IDL.Opt(Duration),
455
- 'proposal_initial_voting_period' : IDL.Opt(Duration),
456
- 'proposal_rejection_fee' : IDL.Opt(Tokens),
457
- 'voting_reward_parameters' : IDL.Opt(VotingRewardParameters),
458
- });
459
- const Image = IDL.Record({ 'base64_encoding' : IDL.Opt(IDL.Text) });
442
+ neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
443
+ neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
444
+ neuron_maximum_dissolve_delay: IDL.Opt(Duration),
445
+ neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
446
+ neuron_maximum_age_bonus: IDL.Opt(Percentage),
447
+ neuron_minimum_stake: IDL.Opt(Tokens),
448
+ proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
449
+ proposal_initial_voting_period: IDL.Opt(Duration),
450
+ proposal_rejection_fee: IDL.Opt(Tokens),
451
+ voting_reward_parameters: IDL.Opt(VotingRewardParameters),
452
+ });
453
+ const Image = IDL.Record({ base64_encoding: IDL.Opt(IDL.Text) });
460
454
  const LedgerParameters = IDL.Record({
461
- 'transaction_fee' : IDL.Opt(Tokens),
462
- 'token_symbol' : IDL.Opt(IDL.Text),
463
- 'token_logo' : IDL.Opt(Image),
464
- 'token_name' : IDL.Opt(IDL.Text),
455
+ transaction_fee: IDL.Opt(Tokens),
456
+ token_symbol: IDL.Opt(IDL.Text),
457
+ token_logo: IDL.Opt(Image),
458
+ token_name: IDL.Opt(IDL.Text),
465
459
  });
466
- const Canister = IDL.Record({ 'id' : IDL.Opt(IDL.Principal) });
460
+ const Canister = IDL.Record({ id: IDL.Opt(IDL.Principal) });
467
461
  const NeuronBasketConstructionParameters = IDL.Record({
468
- 'dissolve_delay_interval' : IDL.Opt(Duration),
469
- 'count' : IDL.Opt(IDL.Nat64),
462
+ dissolve_delay_interval: IDL.Opt(Duration),
463
+ count: IDL.Opt(IDL.Nat64),
470
464
  });
471
465
  const GlobalTimeOfDay = IDL.Record({
472
- 'seconds_after_utc_midnight' : IDL.Opt(IDL.Nat64),
466
+ seconds_after_utc_midnight: IDL.Opt(IDL.Nat64),
473
467
  });
474
- const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
468
+ const Countries = IDL.Record({ iso_codes: IDL.Vec(IDL.Text) });
475
469
  const SwapParameters = IDL.Record({
476
- 'minimum_participants' : IDL.Opt(IDL.Nat64),
477
- 'neurons_fund_participation' : IDL.Opt(IDL.Bool),
478
- 'duration' : IDL.Opt(Duration),
479
- 'neuron_basket_construction_parameters' : IDL.Opt(
480
- NeuronBasketConstructionParameters
470
+ minimum_participants: IDL.Opt(IDL.Nat64),
471
+ neurons_fund_participation: IDL.Opt(IDL.Bool),
472
+ duration: IDL.Opt(Duration),
473
+ neuron_basket_construction_parameters: IDL.Opt(
474
+ NeuronBasketConstructionParameters,
481
475
  ),
482
- 'confirmation_text' : IDL.Opt(IDL.Text),
483
- 'maximum_participant_icp' : IDL.Opt(Tokens),
484
- 'minimum_icp' : IDL.Opt(Tokens),
485
- 'minimum_direct_participation_icp' : IDL.Opt(Tokens),
486
- 'minimum_participant_icp' : IDL.Opt(Tokens),
487
- 'start_time' : IDL.Opt(GlobalTimeOfDay),
488
- 'maximum_direct_participation_icp' : IDL.Opt(Tokens),
489
- 'maximum_icp' : IDL.Opt(Tokens),
490
- 'neurons_fund_investment_icp' : IDL.Opt(Tokens),
491
- 'restricted_countries' : IDL.Opt(Countries),
492
- });
493
- const SwapDistribution = IDL.Record({ 'total' : IDL.Opt(Tokens) });
476
+ confirmation_text: IDL.Opt(IDL.Text),
477
+ maximum_participant_icp: IDL.Opt(Tokens),
478
+ minimum_icp: IDL.Opt(Tokens),
479
+ minimum_direct_participation_icp: IDL.Opt(Tokens),
480
+ minimum_participant_icp: IDL.Opt(Tokens),
481
+ start_time: IDL.Opt(GlobalTimeOfDay),
482
+ maximum_direct_participation_icp: IDL.Opt(Tokens),
483
+ maximum_icp: IDL.Opt(Tokens),
484
+ neurons_fund_investment_icp: IDL.Opt(Tokens),
485
+ restricted_countries: IDL.Opt(Countries),
486
+ });
487
+ const SwapDistribution = IDL.Record({ total: IDL.Opt(Tokens) });
494
488
  const NeuronDistribution = IDL.Record({
495
- 'controller' : IDL.Opt(IDL.Principal),
496
- 'dissolve_delay' : IDL.Opt(Duration),
497
- 'memo' : IDL.Opt(IDL.Nat64),
498
- 'vesting_period' : IDL.Opt(Duration),
499
- 'stake' : IDL.Opt(Tokens),
489
+ controller: IDL.Opt(IDL.Principal),
490
+ dissolve_delay: IDL.Opt(Duration),
491
+ memo: IDL.Opt(IDL.Nat64),
492
+ vesting_period: IDL.Opt(Duration),
493
+ stake: IDL.Opt(Tokens),
500
494
  });
501
495
  const DeveloperDistribution = IDL.Record({
502
- 'developer_neurons' : IDL.Vec(NeuronDistribution),
496
+ developer_neurons: IDL.Vec(NeuronDistribution),
503
497
  });
504
498
  const InitialTokenDistribution = IDL.Record({
505
- 'treasury_distribution' : IDL.Opt(SwapDistribution),
506
- 'developer_distribution' : IDL.Opt(DeveloperDistribution),
507
- 'swap_distribution' : IDL.Opt(SwapDistribution),
499
+ treasury_distribution: IDL.Opt(SwapDistribution),
500
+ developer_distribution: IDL.Opt(DeveloperDistribution),
501
+ swap_distribution: IDL.Opt(SwapDistribution),
508
502
  });
509
503
  const CreateServiceNervousSystem = IDL.Record({
510
- 'url' : IDL.Opt(IDL.Text),
511
- 'governance_parameters' : IDL.Opt(GovernanceParameters),
512
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
513
- 'logo' : IDL.Opt(Image),
514
- 'name' : IDL.Opt(IDL.Text),
515
- 'ledger_parameters' : IDL.Opt(LedgerParameters),
516
- 'description' : IDL.Opt(IDL.Text),
517
- 'dapp_canisters' : IDL.Vec(Canister),
518
- 'swap_parameters' : IDL.Opt(SwapParameters),
519
- 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
504
+ url: IDL.Opt(IDL.Text),
505
+ governance_parameters: IDL.Opt(GovernanceParameters),
506
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
507
+ logo: IDL.Opt(Image),
508
+ name: IDL.Opt(IDL.Text),
509
+ ledger_parameters: IDL.Opt(LedgerParameters),
510
+ description: IDL.Opt(IDL.Text),
511
+ dapp_canisters: IDL.Vec(Canister),
512
+ swap_parameters: IDL.Opt(SwapParameters),
513
+ initial_token_distribution: IDL.Opt(InitialTokenDistribution),
520
514
  });
521
515
  const ExecuteNnsFunction = IDL.Record({
522
- 'nns_function' : IDL.Int32,
523
- 'payload' : IDL.Vec(IDL.Nat8),
516
+ nns_function: IDL.Int32,
517
+ payload: IDL.Vec(IDL.Nat8),
524
518
  });
525
519
  const NeuronBasketConstructionParameters_1 = IDL.Record({
526
- 'dissolve_delay_interval_seconds' : IDL.Nat64,
527
- 'count' : IDL.Nat64,
520
+ dissolve_delay_interval_seconds: IDL.Nat64,
521
+ count: IDL.Nat64,
528
522
  });
529
523
  const Params = IDL.Record({
530
- 'min_participant_icp_e8s' : IDL.Nat64,
531
- 'neuron_basket_construction_parameters' : IDL.Opt(
532
- NeuronBasketConstructionParameters_1
524
+ min_participant_icp_e8s: IDL.Nat64,
525
+ neuron_basket_construction_parameters: IDL.Opt(
526
+ NeuronBasketConstructionParameters_1,
533
527
  ),
534
- 'max_icp_e8s' : IDL.Nat64,
535
- 'swap_due_timestamp_seconds' : IDL.Nat64,
536
- 'min_participants' : IDL.Nat32,
537
- 'sns_token_e8s' : IDL.Nat64,
538
- 'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
539
- 'max_participant_icp_e8s' : IDL.Nat64,
540
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
541
- 'min_icp_e8s' : IDL.Nat64,
542
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
528
+ max_icp_e8s: IDL.Nat64,
529
+ swap_due_timestamp_seconds: IDL.Nat64,
530
+ min_participants: IDL.Nat32,
531
+ sns_token_e8s: IDL.Nat64,
532
+ sale_delay_seconds: IDL.Opt(IDL.Nat64),
533
+ max_participant_icp_e8s: IDL.Nat64,
534
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
535
+ min_icp_e8s: IDL.Nat64,
536
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
543
537
  });
544
538
  const OpenSnsTokenSwap = IDL.Record({
545
- 'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
546
- 'target_swap_canister_id' : IDL.Opt(IDL.Principal),
547
- 'params' : IDL.Opt(Params),
539
+ community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
540
+ target_swap_canister_id: IDL.Opt(IDL.Principal),
541
+ params: IDL.Opt(Params),
548
542
  });
549
543
  const TimeWindow = IDL.Record({
550
- 'start_timestamp_seconds' : IDL.Nat64,
551
- 'end_timestamp_seconds' : IDL.Nat64,
544
+ start_timestamp_seconds: IDL.Nat64,
545
+ end_timestamp_seconds: IDL.Nat64,
552
546
  });
553
547
  const SetOpenTimeWindowRequest = IDL.Record({
554
- 'open_time_window' : IDL.Opt(TimeWindow),
548
+ open_time_window: IDL.Opt(TimeWindow),
555
549
  });
556
550
  const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
557
- 'request' : IDL.Opt(SetOpenTimeWindowRequest),
558
- 'swap_canister_id' : IDL.Opt(IDL.Principal),
551
+ request: IDL.Opt(SetOpenTimeWindowRequest),
552
+ swap_canister_id: IDL.Opt(IDL.Principal),
559
553
  });
560
554
  const SetDefaultFollowees = IDL.Record({
561
- 'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
555
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
562
556
  });
563
557
  const RewardNodeProviders = IDL.Record({
564
- 'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
565
- 'rewards' : IDL.Vec(RewardNodeProvider),
558
+ use_registry_derived_rewards: IDL.Opt(IDL.Bool),
559
+ rewards: IDL.Vec(RewardNodeProvider),
566
560
  });
567
- const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
561
+ const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
568
562
  const Change = IDL.Variant({
569
- 'ToRemove' : NodeProvider,
570
- 'ToAdd' : NodeProvider,
563
+ ToRemove: NodeProvider,
564
+ ToAdd: NodeProvider,
571
565
  });
572
- const AddOrRemoveNodeProvider = IDL.Record({ 'change' : IDL.Opt(Change) });
573
- const Motion = IDL.Record({ 'motion_text' : IDL.Text });
566
+ const AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
567
+ const Motion = IDL.Record({ motion_text: IDL.Text });
574
568
  const Action = IDL.Variant({
575
- 'RegisterKnownNeuron' : KnownNeuron,
576
- 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest,
577
- 'ManageNeuron' : ManageNeuron,
578
- 'UpdateCanisterSettings' : UpdateCanisterSettings,
579
- 'InstallCode' : InstallCode,
580
- 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
581
- 'StopOrStartCanister' : StopOrStartCanister,
582
- 'CreateServiceNervousSystem' : CreateServiceNervousSystem,
583
- 'ExecuteNnsFunction' : ExecuteNnsFunction,
584
- 'RewardNodeProvider' : RewardNodeProvider,
585
- 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
586
- 'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
587
- 'SetDefaultFollowees' : SetDefaultFollowees,
588
- 'RewardNodeProviders' : RewardNodeProviders,
589
- 'ManageNetworkEconomics' : NetworkEconomics,
590
- 'ApproveGenesisKyc' : Principals,
591
- 'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
592
- 'Motion' : Motion,
569
+ RegisterKnownNeuron: KnownNeuron,
570
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
571
+ ManageNeuron: ManageNeuron,
572
+ UpdateCanisterSettings: UpdateCanisterSettings,
573
+ InstallCode: InstallCode,
574
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
575
+ StopOrStartCanister: StopOrStartCanister,
576
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
577
+ ExecuteNnsFunction: ExecuteNnsFunction,
578
+ RewardNodeProvider: RewardNodeProvider,
579
+ OpenSnsTokenSwap: OpenSnsTokenSwap,
580
+ SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
581
+ SetDefaultFollowees: SetDefaultFollowees,
582
+ RewardNodeProviders: RewardNodeProviders,
583
+ ManageNetworkEconomics: NetworkEconomics,
584
+ ApproveGenesisKyc: Principals,
585
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
586
+ Motion: Motion,
593
587
  });
594
588
  Proposal.fill(
595
589
  IDL.Record({
596
- 'url' : IDL.Text,
597
- 'title' : IDL.Opt(IDL.Text),
598
- 'action' : IDL.Opt(Action),
599
- 'summary' : IDL.Text,
600
- })
590
+ url: IDL.Text,
591
+ title: IDL.Opt(IDL.Text),
592
+ action: IDL.Opt(Action),
593
+ summary: IDL.Text,
594
+ }),
601
595
  );
602
596
  const WaitForQuietState = IDL.Record({
603
- 'current_deadline_timestamp_seconds' : IDL.Nat64,
597
+ current_deadline_timestamp_seconds: IDL.Nat64,
604
598
  });
605
599
  const ProposalData = IDL.Record({
606
- 'id' : IDL.Opt(ProposalId),
607
- 'topic' : IDL.Opt(IDL.Int32),
608
- 'failure_reason' : IDL.Opt(GovernanceError),
609
- 'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
610
- 'proposal_timestamp_seconds' : IDL.Nat64,
611
- 'reward_event_round' : IDL.Nat64,
612
- 'failed_timestamp_seconds' : IDL.Nat64,
613
- 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
614
- 'reject_cost_e8s' : IDL.Nat64,
615
- 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
616
- 'latest_tally' : IDL.Opt(Tally),
617
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
618
- 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
619
- 'decided_timestamp_seconds' : IDL.Nat64,
620
- 'proposal' : IDL.Opt(Proposal),
621
- 'proposer' : IDL.Opt(NeuronId),
622
- 'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
623
- 'executed_timestamp_seconds' : IDL.Nat64,
624
- 'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
625
- IDL.Nat64
626
- ),
600
+ id: IDL.Opt(ProposalId),
601
+ topic: IDL.Opt(IDL.Int32),
602
+ failure_reason: IDL.Opt(GovernanceError),
603
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
604
+ proposal_timestamp_seconds: IDL.Nat64,
605
+ reward_event_round: IDL.Nat64,
606
+ failed_timestamp_seconds: IDL.Nat64,
607
+ neurons_fund_data: IDL.Opt(NeuronsFundData),
608
+ reject_cost_e8s: IDL.Nat64,
609
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
610
+ latest_tally: IDL.Opt(Tally),
611
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
612
+ sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
613
+ decided_timestamp_seconds: IDL.Nat64,
614
+ proposal: IDL.Opt(Proposal),
615
+ proposer: IDL.Opt(NeuronId),
616
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
617
+ executed_timestamp_seconds: IDL.Nat64,
618
+ original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
627
619
  });
628
620
  const Command_2 = IDL.Variant({
629
- 'Spawn' : NeuronId,
630
- 'Split' : Split,
631
- 'Configure' : Configure,
632
- 'Merge' : Merge,
633
- 'DisburseToNeuron' : DisburseToNeuron,
634
- 'SyncCommand' : IDL.Record({}),
635
- 'ClaimOrRefreshNeuron' : ClaimOrRefresh,
636
- 'MergeMaturity' : MergeMaturity,
637
- 'Disburse' : Disburse,
621
+ Spawn: NeuronId,
622
+ Split: Split,
623
+ Configure: Configure,
624
+ Merge: Merge,
625
+ DisburseToNeuron: DisburseToNeuron,
626
+ SyncCommand: IDL.Record({}),
627
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
628
+ MergeMaturity: MergeMaturity,
629
+ Disburse: Disburse,
638
630
  });
639
631
  const NeuronInFlightCommand = IDL.Record({
640
- 'command' : IDL.Opt(Command_2),
641
- 'timestamp' : IDL.Nat64,
632
+ command: IDL.Opt(Command_2),
633
+ timestamp: IDL.Nat64,
642
634
  });
643
635
  const BallotInfo = IDL.Record({
644
- 'vote' : IDL.Int32,
645
- 'proposal_id' : IDL.Opt(ProposalId),
636
+ vote: IDL.Int32,
637
+ proposal_id: IDL.Opt(ProposalId),
646
638
  });
647
639
  const MaturityDisbursement = IDL.Record({
648
- 'account_identifier_to_disburse_to' : IDL.Opt(AccountIdentifier),
649
- 'timestamp_of_disbursement_seconds' : IDL.Opt(IDL.Nat64),
650
- 'amount_e8s' : IDL.Opt(IDL.Nat64),
651
- 'account_to_disburse_to' : IDL.Opt(Account),
652
- 'finalize_disbursement_timestamp_seconds' : IDL.Opt(IDL.Nat64),
640
+ account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
641
+ timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
642
+ amount_e8s: IDL.Opt(IDL.Nat64),
643
+ account_to_disburse_to: IDL.Opt(Account),
644
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
653
645
  });
654
646
  const DissolveState = IDL.Variant({
655
- 'DissolveDelaySeconds' : IDL.Nat64,
656
- 'WhenDissolvedTimestampSeconds' : IDL.Nat64,
647
+ DissolveDelaySeconds: IDL.Nat64,
648
+ WhenDissolvedTimestampSeconds: IDL.Nat64,
657
649
  });
658
650
  const Neuron = IDL.Record({
659
- 'id' : IDL.Opt(NeuronId),
660
- 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
661
- 'controller' : IDL.Opt(IDL.Principal),
662
- 'recent_ballots' : IDL.Vec(BallotInfo),
663
- 'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
664
- 'kyc_verified' : IDL.Bool,
665
- 'potential_voting_power' : IDL.Opt(IDL.Nat64),
666
- 'neuron_type' : IDL.Opt(IDL.Int32),
667
- 'not_for_profit' : IDL.Bool,
668
- 'maturity_e8s_equivalent' : IDL.Nat64,
669
- 'deciding_voting_power' : IDL.Opt(IDL.Nat64),
670
- 'cached_neuron_stake_e8s' : IDL.Nat64,
671
- 'created_timestamp_seconds' : IDL.Nat64,
672
- 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
673
- 'aging_since_timestamp_seconds' : IDL.Nat64,
674
- 'hot_keys' : IDL.Vec(IDL.Principal),
675
- 'account' : IDL.Vec(IDL.Nat8),
676
- 'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
677
- 'maturity_disbursements_in_progress' : IDL.Opt(
678
- IDL.Vec(MaturityDisbursement)
679
- ),
680
- 'dissolve_state' : IDL.Opt(DissolveState),
681
- 'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
682
- 'neuron_fees_e8s' : IDL.Nat64,
683
- 'visibility' : IDL.Opt(IDL.Int32),
684
- 'transfer' : IDL.Opt(NeuronStakeTransfer),
685
- 'known_neuron_data' : IDL.Opt(KnownNeuronData),
686
- 'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
651
+ id: IDL.Opt(NeuronId),
652
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
653
+ controller: IDL.Opt(IDL.Principal),
654
+ recent_ballots: IDL.Vec(BallotInfo),
655
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
656
+ kyc_verified: IDL.Bool,
657
+ potential_voting_power: IDL.Opt(IDL.Nat64),
658
+ neuron_type: IDL.Opt(IDL.Int32),
659
+ not_for_profit: IDL.Bool,
660
+ maturity_e8s_equivalent: IDL.Nat64,
661
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
662
+ cached_neuron_stake_e8s: IDL.Nat64,
663
+ created_timestamp_seconds: IDL.Nat64,
664
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
665
+ aging_since_timestamp_seconds: IDL.Nat64,
666
+ hot_keys: IDL.Vec(IDL.Principal),
667
+ account: IDL.Vec(IDL.Nat8),
668
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
669
+ maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
670
+ dissolve_state: IDL.Opt(DissolveState),
671
+ followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
672
+ neuron_fees_e8s: IDL.Nat64,
673
+ visibility: IDL.Opt(IDL.Int32),
674
+ transfer: IDL.Opt(NeuronStakeTransfer),
675
+ known_neuron_data: IDL.Opt(KnownNeuronData),
676
+ spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
687
677
  });
688
678
  const Governance = IDL.Record({
689
- 'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
690
- 'most_recent_monthly_node_provider_rewards' : IDL.Opt(
691
- MonthlyNodeProviderRewards
679
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
680
+ most_recent_monthly_node_provider_rewards: IDL.Opt(
681
+ MonthlyNodeProviderRewards,
692
682
  ),
693
- 'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
694
- IDL.Nat64
695
- ),
696
- 'wait_for_quiet_threshold_seconds' : IDL.Nat64,
697
- 'metrics' : IDL.Opt(GovernanceCachedMetrics),
698
- 'neuron_management_voting_period_seconds' : IDL.Opt(IDL.Nat64),
699
- 'node_providers' : IDL.Vec(NodeProvider),
700
- 'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
701
- 'economics' : IDL.Opt(NetworkEconomics),
702
- 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
703
- 'spawning_neurons' : IDL.Opt(IDL.Bool),
704
- 'latest_reward_event' : IDL.Opt(RewardEvent),
705
- 'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
706
- 'short_voting_period_seconds' : IDL.Nat64,
707
- 'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
708
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
709
- 'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
710
- 'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
711
- 'genesis_timestamp_seconds' : IDL.Nat64,
712
- });
713
- const Result = IDL.Variant({ 'Ok' : IDL.Null, 'Err' : GovernanceError });
683
+ maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
684
+ wait_for_quiet_threshold_seconds: IDL.Nat64,
685
+ metrics: IDL.Opt(GovernanceCachedMetrics),
686
+ neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
687
+ node_providers: IDL.Vec(NodeProvider),
688
+ cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
689
+ economics: IDL.Opt(NetworkEconomics),
690
+ restore_aging_summary: IDL.Opt(RestoreAgingSummary),
691
+ spawning_neurons: IDL.Opt(IDL.Bool),
692
+ latest_reward_event: IDL.Opt(RewardEvent),
693
+ to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
694
+ short_voting_period_seconds: IDL.Nat64,
695
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
696
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
697
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
698
+ neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
699
+ genesis_timestamp_seconds: IDL.Nat64,
700
+ });
701
+ const Result = IDL.Variant({ Ok: IDL.Null, Err: GovernanceError });
714
702
  const Result_1 = IDL.Variant({
715
- 'Error' : GovernanceError,
716
- 'NeuronId' : NeuronId,
703
+ Error: GovernanceError,
704
+ NeuronId: NeuronId,
717
705
  });
718
706
  const ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
719
- 'result' : IDL.Opt(Result_1),
707
+ result: IDL.Opt(Result_1),
720
708
  });
721
- const Result_2 = IDL.Variant({ 'Ok' : Neuron, 'Err' : GovernanceError });
709
+ const Result_2 = IDL.Variant({ Ok: Neuron, Err: GovernanceError });
722
710
  const Result_3 = IDL.Variant({
723
- 'Ok' : GovernanceCachedMetrics,
724
- 'Err' : GovernanceError,
711
+ Ok: GovernanceCachedMetrics,
712
+ Err: GovernanceError,
725
713
  });
726
714
  const Result_4 = IDL.Variant({
727
- 'Ok' : MonthlyNodeProviderRewards,
728
- 'Err' : GovernanceError,
715
+ Ok: MonthlyNodeProviderRewards,
716
+ Err: GovernanceError,
729
717
  });
730
718
  const GetNeuronIndexRequest = IDL.Record({
731
- 'page_size' : IDL.Opt(IDL.Nat32),
732
- 'exclusive_start_neuron_id' : IDL.Opt(NeuronId),
719
+ page_size: IDL.Opt(IDL.Nat32),
720
+ exclusive_start_neuron_id: IDL.Opt(NeuronId),
733
721
  });
734
722
  const NeuronInfo = IDL.Record({
735
- 'dissolve_delay_seconds' : IDL.Nat64,
736
- 'recent_ballots' : IDL.Vec(BallotInfo),
737
- 'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
738
- 'potential_voting_power' : IDL.Opt(IDL.Nat64),
739
- 'neuron_type' : IDL.Opt(IDL.Int32),
740
- 'deciding_voting_power' : IDL.Opt(IDL.Nat64),
741
- 'created_timestamp_seconds' : IDL.Nat64,
742
- 'state' : IDL.Int32,
743
- 'stake_e8s' : IDL.Nat64,
744
- 'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
745
- 'retrieved_at_timestamp_seconds' : IDL.Nat64,
746
- 'visibility' : IDL.Opt(IDL.Int32),
747
- 'known_neuron_data' : IDL.Opt(KnownNeuronData),
748
- 'voting_power' : IDL.Nat64,
749
- 'age_seconds' : IDL.Nat64,
750
- });
751
- const NeuronIndexData = IDL.Record({ 'neurons' : IDL.Vec(NeuronInfo) });
723
+ dissolve_delay_seconds: IDL.Nat64,
724
+ recent_ballots: IDL.Vec(BallotInfo),
725
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
726
+ potential_voting_power: IDL.Opt(IDL.Nat64),
727
+ neuron_type: IDL.Opt(IDL.Int32),
728
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
729
+ created_timestamp_seconds: IDL.Nat64,
730
+ state: IDL.Int32,
731
+ stake_e8s: IDL.Nat64,
732
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
733
+ retrieved_at_timestamp_seconds: IDL.Nat64,
734
+ visibility: IDL.Opt(IDL.Int32),
735
+ known_neuron_data: IDL.Opt(KnownNeuronData),
736
+ voting_power: IDL.Nat64,
737
+ age_seconds: IDL.Nat64,
738
+ });
739
+ const NeuronIndexData = IDL.Record({ neurons: IDL.Vec(NeuronInfo) });
752
740
  const GetNeuronIndexResult = IDL.Variant({
753
- 'Ok' : NeuronIndexData,
754
- 'Err' : GovernanceError,
741
+ Ok: NeuronIndexData,
742
+ Err: GovernanceError,
755
743
  });
756
- const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
744
+ const Result_5 = IDL.Variant({ Ok: NeuronInfo, Err: GovernanceError });
757
745
  const GetNeuronsFundAuditInfoRequest = IDL.Record({
758
- 'nns_proposal_id' : IDL.Opt(ProposalId),
746
+ nns_proposal_id: IDL.Opt(ProposalId),
759
747
  });
760
748
  const NeuronsFundAuditInfo = IDL.Record({
761
- 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
762
- 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
763
- 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
749
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
750
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
751
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
764
752
  });
765
753
  const Ok = IDL.Record({
766
- 'neurons_fund_audit_info' : IDL.Opt(NeuronsFundAuditInfo),
754
+ neurons_fund_audit_info: IDL.Opt(NeuronsFundAuditInfo),
767
755
  });
768
- const Result_6 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
756
+ const Result_6 = IDL.Variant({ Ok: Ok, Err: GovernanceError });
769
757
  const GetNeuronsFundAuditInfoResponse = IDL.Record({
770
- 'result' : IDL.Opt(Result_6),
758
+ result: IDL.Opt(Result_6),
771
759
  });
772
760
  const Result_7 = IDL.Variant({
773
- 'Ok' : NodeProvider,
774
- 'Err' : GovernanceError,
761
+ Ok: NodeProvider,
762
+ Err: GovernanceError,
775
763
  });
776
764
  const ProposalInfo = IDL.Record({
777
- 'id' : IDL.Opt(ProposalId),
778
- 'status' : IDL.Int32,
779
- 'topic' : IDL.Int32,
780
- 'failure_reason' : IDL.Opt(GovernanceError),
781
- 'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
782
- 'proposal_timestamp_seconds' : IDL.Nat64,
783
- 'reward_event_round' : IDL.Nat64,
784
- 'deadline_timestamp_seconds' : IDL.Opt(IDL.Nat64),
785
- 'failed_timestamp_seconds' : IDL.Nat64,
786
- 'reject_cost_e8s' : IDL.Nat64,
787
- 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
788
- 'latest_tally' : IDL.Opt(Tally),
789
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
790
- 'reward_status' : IDL.Int32,
791
- 'decided_timestamp_seconds' : IDL.Nat64,
792
- 'proposal' : IDL.Opt(Proposal),
793
- 'proposer' : IDL.Opt(NeuronId),
794
- 'executed_timestamp_seconds' : IDL.Nat64,
765
+ id: IDL.Opt(ProposalId),
766
+ status: IDL.Int32,
767
+ topic: IDL.Int32,
768
+ failure_reason: IDL.Opt(GovernanceError),
769
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
770
+ proposal_timestamp_seconds: IDL.Nat64,
771
+ reward_event_round: IDL.Nat64,
772
+ deadline_timestamp_seconds: IDL.Opt(IDL.Nat64),
773
+ failed_timestamp_seconds: IDL.Nat64,
774
+ reject_cost_e8s: IDL.Nat64,
775
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
776
+ latest_tally: IDL.Opt(Tally),
777
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
778
+ reward_status: IDL.Int32,
779
+ decided_timestamp_seconds: IDL.Nat64,
780
+ proposal: IDL.Opt(Proposal),
781
+ proposer: IDL.Opt(NeuronId),
782
+ executed_timestamp_seconds: IDL.Nat64,
795
783
  });
796
784
  const ListKnownNeuronsResponse = IDL.Record({
797
- 'known_neurons' : IDL.Vec(KnownNeuron),
785
+ known_neurons: IDL.Vec(KnownNeuron),
798
786
  });
799
- const NeuronSubaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
787
+ const NeuronSubaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
800
788
  const ListNeurons = IDL.Record({
801
- 'page_size' : IDL.Opt(IDL.Nat64),
802
- 'include_public_neurons_in_full_neurons' : IDL.Opt(IDL.Bool),
803
- 'neuron_ids' : IDL.Vec(IDL.Nat64),
804
- 'page_number' : IDL.Opt(IDL.Nat64),
805
- 'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
806
- 'neuron_subaccounts' : IDL.Opt(IDL.Vec(NeuronSubaccount)),
807
- 'include_neurons_readable_by_caller' : IDL.Bool,
789
+ page_size: IDL.Opt(IDL.Nat64),
790
+ include_public_neurons_in_full_neurons: IDL.Opt(IDL.Bool),
791
+ neuron_ids: IDL.Vec(IDL.Nat64),
792
+ page_number: IDL.Opt(IDL.Nat64),
793
+ include_empty_neurons_readable_by_caller: IDL.Opt(IDL.Bool),
794
+ neuron_subaccounts: IDL.Opt(IDL.Vec(NeuronSubaccount)),
795
+ include_neurons_readable_by_caller: IDL.Bool,
808
796
  });
809
797
  const ListNeuronsResponse = IDL.Record({
810
- 'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
811
- 'full_neurons' : IDL.Vec(Neuron),
812
- 'total_pages_available' : IDL.Opt(IDL.Nat64),
798
+ neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
799
+ full_neurons: IDL.Vec(Neuron),
800
+ total_pages_available: IDL.Opt(IDL.Nat64),
813
801
  });
814
802
  const DateRangeFilter = IDL.Record({
815
- 'start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
816
- 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
803
+ start_timestamp_seconds: IDL.Opt(IDL.Nat64),
804
+ end_timestamp_seconds: IDL.Opt(IDL.Nat64),
817
805
  });
818
806
  const ListNodeProviderRewardsRequest = IDL.Record({
819
- 'date_filter' : IDL.Opt(DateRangeFilter),
807
+ date_filter: IDL.Opt(DateRangeFilter),
820
808
  });
821
809
  const ListNodeProviderRewardsResponse = IDL.Record({
822
- 'rewards' : IDL.Vec(MonthlyNodeProviderRewards),
810
+ rewards: IDL.Vec(MonthlyNodeProviderRewards),
823
811
  });
824
812
  const ListNodeProvidersResponse = IDL.Record({
825
- 'node_providers' : IDL.Vec(NodeProvider),
813
+ node_providers: IDL.Vec(NodeProvider),
826
814
  });
827
815
  const ListProposalInfo = IDL.Record({
828
- 'include_reward_status' : IDL.Vec(IDL.Int32),
829
- 'omit_large_fields' : IDL.Opt(IDL.Bool),
830
- 'before_proposal' : IDL.Opt(ProposalId),
831
- 'limit' : IDL.Nat32,
832
- 'exclude_topic' : IDL.Vec(IDL.Int32),
833
- 'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
834
- 'include_status' : IDL.Vec(IDL.Int32),
816
+ include_reward_status: IDL.Vec(IDL.Int32),
817
+ omit_large_fields: IDL.Opt(IDL.Bool),
818
+ before_proposal: IDL.Opt(ProposalId),
819
+ limit: IDL.Nat32,
820
+ exclude_topic: IDL.Vec(IDL.Int32),
821
+ include_all_manage_neuron_proposals: IDL.Opt(IDL.Bool),
822
+ include_status: IDL.Vec(IDL.Int32),
835
823
  });
836
824
  const ListProposalInfoResponse = IDL.Record({
837
- 'proposal_info' : IDL.Vec(ProposalInfo),
825
+ proposal_info: IDL.Vec(ProposalInfo),
838
826
  });
839
827
  const InstallCodeRequest = IDL.Record({
840
- 'arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
841
- 'wasm_module' : IDL.Opt(IDL.Vec(IDL.Nat8)),
842
- 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
843
- 'canister_id' : IDL.Opt(IDL.Principal),
844
- 'install_mode' : IDL.Opt(IDL.Int32),
828
+ arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
829
+ wasm_module: IDL.Opt(IDL.Vec(IDL.Nat8)),
830
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
831
+ canister_id: IDL.Opt(IDL.Principal),
832
+ install_mode: IDL.Opt(IDL.Int32),
845
833
  });
846
834
  const ProposalActionRequest = IDL.Variant({
847
- 'RegisterKnownNeuron' : KnownNeuron,
848
- 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest,
849
- 'ManageNeuron' : ManageNeuronRequest,
850
- 'UpdateCanisterSettings' : UpdateCanisterSettings,
851
- 'InstallCode' : InstallCodeRequest,
852
- 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
853
- 'StopOrStartCanister' : StopOrStartCanister,
854
- 'CreateServiceNervousSystem' : CreateServiceNervousSystem,
855
- 'ExecuteNnsFunction' : ExecuteNnsFunction,
856
- 'RewardNodeProvider' : RewardNodeProvider,
857
- 'RewardNodeProviders' : RewardNodeProviders,
858
- 'ManageNetworkEconomics' : NetworkEconomics,
859
- 'ApproveGenesisKyc' : Principals,
860
- 'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
861
- 'Motion' : Motion,
835
+ RegisterKnownNeuron: KnownNeuron,
836
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
837
+ ManageNeuron: ManageNeuronRequest,
838
+ UpdateCanisterSettings: UpdateCanisterSettings,
839
+ InstallCode: InstallCodeRequest,
840
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
841
+ StopOrStartCanister: StopOrStartCanister,
842
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
843
+ ExecuteNnsFunction: ExecuteNnsFunction,
844
+ RewardNodeProvider: RewardNodeProvider,
845
+ RewardNodeProviders: RewardNodeProviders,
846
+ ManageNetworkEconomics: NetworkEconomics,
847
+ ApproveGenesisKyc: Principals,
848
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
849
+ Motion: Motion,
862
850
  });
863
851
  const MakeProposalRequest = IDL.Record({
864
- 'url' : IDL.Text,
865
- 'title' : IDL.Opt(IDL.Text),
866
- 'action' : IDL.Opt(ProposalActionRequest),
867
- 'summary' : IDL.Text,
852
+ url: IDL.Text,
853
+ title: IDL.Opt(IDL.Text),
854
+ action: IDL.Opt(ProposalActionRequest),
855
+ summary: IDL.Text,
868
856
  });
869
857
  const ManageNeuronCommandRequest = IDL.Variant({
870
- 'Spawn' : Spawn,
871
- 'Split' : Split,
872
- 'Follow' : Follow,
873
- 'DisburseMaturity' : DisburseMaturity,
874
- 'RefreshVotingPower' : RefreshVotingPower,
875
- 'ClaimOrRefresh' : ClaimOrRefresh,
876
- 'Configure' : Configure,
877
- 'RegisterVote' : RegisterVote,
878
- 'Merge' : Merge,
879
- 'DisburseToNeuron' : DisburseToNeuron,
880
- 'SetFollowing' : SetFollowing,
881
- 'MakeProposal' : MakeProposalRequest,
882
- 'StakeMaturity' : StakeMaturity,
883
- 'MergeMaturity' : MergeMaturity,
884
- 'Disburse' : Disburse,
858
+ Spawn: Spawn,
859
+ Split: Split,
860
+ Follow: Follow,
861
+ DisburseMaturity: DisburseMaturity,
862
+ RefreshVotingPower: RefreshVotingPower,
863
+ ClaimOrRefresh: ClaimOrRefresh,
864
+ Configure: Configure,
865
+ RegisterVote: RegisterVote,
866
+ Merge: Merge,
867
+ DisburseToNeuron: DisburseToNeuron,
868
+ SetFollowing: SetFollowing,
869
+ MakeProposal: MakeProposalRequest,
870
+ StakeMaturity: StakeMaturity,
871
+ MergeMaturity: MergeMaturity,
872
+ Disburse: Disburse,
885
873
  });
886
874
  ManageNeuronRequest.fill(
887
875
  IDL.Record({
888
- 'id' : IDL.Opt(NeuronId),
889
- 'command' : IDL.Opt(ManageNeuronCommandRequest),
890
- 'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
891
- })
876
+ id: IDL.Opt(NeuronId),
877
+ command: IDL.Opt(ManageNeuronCommandRequest),
878
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
879
+ }),
892
880
  );
893
- const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) });
881
+ const SpawnResponse = IDL.Record({ created_neuron_id: IDL.Opt(NeuronId) });
894
882
  const DisburseMaturityResponse = IDL.Record({
895
- 'amount_disbursed_e8s' : IDL.Opt(IDL.Nat64),
883
+ amount_disbursed_e8s: IDL.Opt(IDL.Nat64),
896
884
  });
897
885
  const RefreshVotingPowerResponse = IDL.Record({});
898
886
  const ClaimOrRefreshResponse = IDL.Record({
899
- 'refreshed_neuron_id' : IDL.Opt(NeuronId),
887
+ refreshed_neuron_id: IDL.Opt(NeuronId),
900
888
  });
901
889
  const MergeResponse = IDL.Record({
902
- 'target_neuron' : IDL.Opt(Neuron),
903
- 'source_neuron' : IDL.Opt(Neuron),
904
- 'target_neuron_info' : IDL.Opt(NeuronInfo),
905
- 'source_neuron_info' : IDL.Opt(NeuronInfo),
890
+ target_neuron: IDL.Opt(Neuron),
891
+ source_neuron: IDL.Opt(Neuron),
892
+ target_neuron_info: IDL.Opt(NeuronInfo),
893
+ source_neuron_info: IDL.Opt(NeuronInfo),
906
894
  });
907
895
  const SetFollowingResponse = IDL.Record({});
908
896
  const MakeProposalResponse = IDL.Record({
909
- 'message' : IDL.Opt(IDL.Text),
910
- 'proposal_id' : IDL.Opt(ProposalId),
897
+ message: IDL.Opt(IDL.Text),
898
+ proposal_id: IDL.Opt(ProposalId),
911
899
  });
912
900
  const StakeMaturityResponse = IDL.Record({
913
- 'maturity_e8s' : IDL.Nat64,
914
- 'staked_maturity_e8s' : IDL.Nat64,
901
+ maturity_e8s: IDL.Nat64,
902
+ staked_maturity_e8s: IDL.Nat64,
915
903
  });
916
904
  const MergeMaturityResponse = IDL.Record({
917
- 'merged_maturity_e8s' : IDL.Nat64,
918
- 'new_stake_e8s' : IDL.Nat64,
905
+ merged_maturity_e8s: IDL.Nat64,
906
+ new_stake_e8s: IDL.Nat64,
919
907
  });
920
- const DisburseResponse = IDL.Record({ 'transfer_block_height' : IDL.Nat64 });
908
+ const DisburseResponse = IDL.Record({ transfer_block_height: IDL.Nat64 });
921
909
  const Command_1 = IDL.Variant({
922
- 'Error' : GovernanceError,
923
- 'Spawn' : SpawnResponse,
924
- 'Split' : SpawnResponse,
925
- 'Follow' : IDL.Record({}),
926
- 'DisburseMaturity' : DisburseMaturityResponse,
927
- 'RefreshVotingPower' : RefreshVotingPowerResponse,
928
- 'ClaimOrRefresh' : ClaimOrRefreshResponse,
929
- 'Configure' : IDL.Record({}),
930
- 'RegisterVote' : IDL.Record({}),
931
- 'Merge' : MergeResponse,
932
- 'DisburseToNeuron' : SpawnResponse,
933
- 'SetFollowing' : SetFollowingResponse,
934
- 'MakeProposal' : MakeProposalResponse,
935
- 'StakeMaturity' : StakeMaturityResponse,
936
- 'MergeMaturity' : MergeMaturityResponse,
937
- 'Disburse' : DisburseResponse,
938
- });
939
- const ManageNeuronResponse = IDL.Record({ 'command' : IDL.Opt(Command_1) });
910
+ Error: GovernanceError,
911
+ Spawn: SpawnResponse,
912
+ Split: SpawnResponse,
913
+ Follow: IDL.Record({}),
914
+ DisburseMaturity: DisburseMaturityResponse,
915
+ RefreshVotingPower: RefreshVotingPowerResponse,
916
+ ClaimOrRefresh: ClaimOrRefreshResponse,
917
+ Configure: IDL.Record({}),
918
+ RegisterVote: IDL.Record({}),
919
+ Merge: MergeResponse,
920
+ DisburseToNeuron: SpawnResponse,
921
+ SetFollowing: SetFollowingResponse,
922
+ MakeProposal: MakeProposalResponse,
923
+ StakeMaturity: StakeMaturityResponse,
924
+ MergeMaturity: MergeMaturityResponse,
925
+ Disburse: DisburseResponse,
926
+ });
927
+ const ManageNeuronResponse = IDL.Record({ command: IDL.Opt(Command_1) });
940
928
  const Committed = IDL.Record({
941
- 'total_direct_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
942
- 'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
943
- 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
929
+ total_direct_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
930
+ total_neurons_fund_contribution_icp_e8s: IDL.Opt(IDL.Nat64),
931
+ sns_governance_canister_id: IDL.Opt(IDL.Principal),
944
932
  });
945
933
  const Result_8 = IDL.Variant({
946
- 'Committed' : Committed,
947
- 'Aborted' : IDL.Record({}),
934
+ Committed: Committed,
935
+ Aborted: IDL.Record({}),
948
936
  });
949
937
  const SettleCommunityFundParticipation = IDL.Record({
950
- 'result' : IDL.Opt(Result_8),
951
- 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
938
+ result: IDL.Opt(Result_8),
939
+ open_sns_token_swap_proposal_id: IDL.Opt(IDL.Nat64),
952
940
  });
953
941
  const Committed_1 = IDL.Record({
954
- 'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
955
- 'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
956
- 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
942
+ total_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
943
+ total_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
944
+ sns_governance_canister_id: IDL.Opt(IDL.Principal),
957
945
  });
958
946
  const Result_9 = IDL.Variant({
959
- 'Committed' : Committed_1,
960
- 'Aborted' : IDL.Record({}),
947
+ Committed: Committed_1,
948
+ Aborted: IDL.Record({}),
961
949
  });
962
950
  const SettleNeuronsFundParticipationRequest = IDL.Record({
963
- 'result' : IDL.Opt(Result_9),
964
- 'nns_proposal_id' : IDL.Opt(IDL.Nat64),
951
+ result: IDL.Opt(Result_9),
952
+ nns_proposal_id: IDL.Opt(IDL.Nat64),
965
953
  });
966
954
  const NeuronsFundNeuron = IDL.Record({
967
- 'controller' : IDL.Opt(IDL.Principal),
968
- 'hotkeys' : IDL.Opt(Principals),
969
- 'is_capped' : IDL.Opt(IDL.Bool),
970
- 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
971
- 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
955
+ controller: IDL.Opt(IDL.Principal),
956
+ hotkeys: IDL.Opt(Principals),
957
+ is_capped: IDL.Opt(IDL.Bool),
958
+ nns_neuron_id: IDL.Opt(IDL.Nat64),
959
+ amount_icp_e8s: IDL.Opt(IDL.Nat64),
972
960
  });
973
961
  const Ok_1 = IDL.Record({
974
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
962
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuron),
975
963
  });
976
- const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
964
+ const Result_10 = IDL.Variant({ Ok: Ok_1, Err: GovernanceError });
977
965
  const SettleNeuronsFundParticipationResponse = IDL.Record({
978
- 'result' : IDL.Opt(Result_10),
966
+ result: IDL.Opt(Result_10),
979
967
  });
980
968
  const UpdateNodeProvider = IDL.Record({
981
- 'reward_account' : IDL.Opt(AccountIdentifier),
969
+ reward_account: IDL.Opt(AccountIdentifier),
982
970
  });
971
+
983
972
  return IDL.Service({
984
- 'claim_gtc_neurons' : IDL.Func(
985
- [IDL.Principal, IDL.Vec(NeuronId)],
986
- [Result],
987
- [],
988
- ),
989
- 'claim_or_refresh_neuron_from_account' : IDL.Func(
990
- [ClaimOrRefreshNeuronFromAccount],
991
- [ClaimOrRefreshNeuronFromAccountResponse],
992
- [],
993
- ),
994
- 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),
995
- 'get_full_neuron' : IDL.Func([IDL.Nat64], [Result_2], ['query']),
996
- 'get_full_neuron_by_id_or_subaccount' : IDL.Func(
997
- [NeuronIdOrSubaccount],
998
- [Result_2],
999
- ['query'],
1000
- ),
1001
- 'get_latest_reward_event' : IDL.Func([], [RewardEvent], ['query']),
1002
- 'get_metrics' : IDL.Func([], [Result_3], ['query']),
1003
- 'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
1004
- 'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
1005
- [],
1006
- [IDL.Opt(MonthlyNodeProviderRewards)],
1007
- ['query'],
1008
- ),
1009
- 'get_network_economics_parameters' : IDL.Func(
1010
- [],
1011
- [NetworkEconomics],
1012
- ['query'],
1013
- ),
1014
- 'get_neuron_ids' : IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
1015
- 'get_neuron_index' : IDL.Func(
1016
- [GetNeuronIndexRequest],
1017
- [GetNeuronIndexResult],
1018
- ['query'],
1019
- ),
1020
- 'get_neuron_info' : IDL.Func([IDL.Nat64], [Result_5], ['query']),
1021
- 'get_neuron_info_by_id_or_subaccount' : IDL.Func(
1022
- [NeuronIdOrSubaccount],
1023
- [Result_5],
1024
- ['query'],
1025
- ),
1026
- 'get_neurons_fund_audit_info' : IDL.Func(
1027
- [GetNeuronsFundAuditInfoRequest],
1028
- [GetNeuronsFundAuditInfoResponse],
1029
- ['query'],
1030
- ),
1031
- 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], ['query']),
1032
- 'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
1033
- 'get_proposal_info' : IDL.Func(
1034
- [IDL.Nat64],
1035
- [IDL.Opt(ProposalInfo)],
1036
- ['query'],
1037
- ),
1038
- 'get_restore_aging_summary' : IDL.Func(
1039
- [],
1040
- [RestoreAgingSummary],
1041
- ['query'],
1042
- ),
1043
- 'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
1044
- 'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
1045
- 'list_node_provider_rewards' : IDL.Func(
1046
- [ListNodeProviderRewardsRequest],
1047
- [ListNodeProviderRewardsResponse],
1048
- ['query'],
1049
- ),
1050
- 'list_node_providers' : IDL.Func(
1051
- [],
1052
- [ListNodeProvidersResponse],
1053
- ['query'],
1054
- ),
1055
- 'list_proposals' : IDL.Func(
1056
- [ListProposalInfo],
1057
- [ListProposalInfoResponse],
1058
- ['query'],
1059
- ),
1060
- 'manage_neuron' : IDL.Func(
1061
- [ManageNeuronRequest],
1062
- [ManageNeuronResponse],
1063
- [],
1064
- ),
1065
- 'settle_community_fund_participation' : IDL.Func(
1066
- [SettleCommunityFundParticipation],
1067
- [Result],
1068
- [],
1069
- ),
1070
- 'settle_neurons_fund_participation' : IDL.Func(
1071
- [SettleNeuronsFundParticipationRequest],
1072
- [SettleNeuronsFundParticipationResponse],
1073
- [],
1074
- ),
1075
- 'simulate_manage_neuron' : IDL.Func(
1076
- [ManageNeuronRequest],
1077
- [ManageNeuronResponse],
1078
- [],
1079
- ),
1080
- 'transfer_gtc_neuron' : IDL.Func([NeuronId, NeuronId], [Result], []),
1081
- 'update_node_provider' : IDL.Func([UpdateNodeProvider], [Result], []),
973
+ claim_gtc_neurons: IDL.Func(
974
+ [IDL.Principal, IDL.Vec(NeuronId)],
975
+ [Result],
976
+ [],
977
+ ),
978
+ claim_or_refresh_neuron_from_account: IDL.Func(
979
+ [ClaimOrRefreshNeuronFromAccount],
980
+ [ClaimOrRefreshNeuronFromAccountResponse],
981
+ [],
982
+ ),
983
+ get_build_metadata: IDL.Func([], [IDL.Text], ["query"]),
984
+ get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], ["query"]),
985
+ get_full_neuron_by_id_or_subaccount: IDL.Func(
986
+ [NeuronIdOrSubaccount],
987
+ [Result_2],
988
+ ["query"],
989
+ ),
990
+ get_latest_reward_event: IDL.Func([], [RewardEvent], ["query"]),
991
+ get_metrics: IDL.Func([], [Result_3], ["query"]),
992
+ get_monthly_node_provider_rewards: IDL.Func([], [Result_4], []),
993
+ get_most_recent_monthly_node_provider_rewards: IDL.Func(
994
+ [],
995
+ [IDL.Opt(MonthlyNodeProviderRewards)],
996
+ ["query"],
997
+ ),
998
+ get_network_economics_parameters: IDL.Func(
999
+ [],
1000
+ [NetworkEconomics],
1001
+ ["query"],
1002
+ ),
1003
+ get_neuron_ids: IDL.Func([], [IDL.Vec(IDL.Nat64)], ["query"]),
1004
+ get_neuron_index: IDL.Func(
1005
+ [GetNeuronIndexRequest],
1006
+ [GetNeuronIndexResult],
1007
+ ["query"],
1008
+ ),
1009
+ get_neuron_info: IDL.Func([IDL.Nat64], [Result_5], ["query"]),
1010
+ get_neuron_info_by_id_or_subaccount: IDL.Func(
1011
+ [NeuronIdOrSubaccount],
1012
+ [Result_5],
1013
+ ["query"],
1014
+ ),
1015
+ get_neurons_fund_audit_info: IDL.Func(
1016
+ [GetNeuronsFundAuditInfoRequest],
1017
+ [GetNeuronsFundAuditInfoResponse],
1018
+ ["query"],
1019
+ ),
1020
+ get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], ["query"]),
1021
+ get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], ["query"]),
1022
+ get_proposal_info: IDL.Func(
1023
+ [IDL.Nat64],
1024
+ [IDL.Opt(ProposalInfo)],
1025
+ ["query"],
1026
+ ),
1027
+ get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], ["query"]),
1028
+ list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], ["query"]),
1029
+ list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], ["query"]),
1030
+ list_node_provider_rewards: IDL.Func(
1031
+ [ListNodeProviderRewardsRequest],
1032
+ [ListNodeProviderRewardsResponse],
1033
+ ["query"],
1034
+ ),
1035
+ list_node_providers: IDL.Func([], [ListNodeProvidersResponse], ["query"]),
1036
+ list_proposals: IDL.Func(
1037
+ [ListProposalInfo],
1038
+ [ListProposalInfoResponse],
1039
+ ["query"],
1040
+ ),
1041
+ manage_neuron: IDL.Func([ManageNeuronRequest], [ManageNeuronResponse], []),
1042
+ settle_community_fund_participation: IDL.Func(
1043
+ [SettleCommunityFundParticipation],
1044
+ [Result],
1045
+ [],
1046
+ ),
1047
+ settle_neurons_fund_participation: IDL.Func(
1048
+ [SettleNeuronsFundParticipationRequest],
1049
+ [SettleNeuronsFundParticipationResponse],
1050
+ [],
1051
+ ),
1052
+ simulate_manage_neuron: IDL.Func(
1053
+ [ManageNeuronRequest],
1054
+ [ManageNeuronResponse],
1055
+ [],
1056
+ ),
1057
+ transfer_gtc_neuron: IDL.Func([NeuronId, NeuronId], [Result], []),
1058
+ update_node_provider: IDL.Func([UpdateNodeProvider], [Result], []),
1082
1059
  });
1083
1060
  };
1061
+
1084
1062
  export const init = ({ IDL }) => {
1085
1063
  const Proposal = IDL.Rec();
1086
- const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
1087
- const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
1088
- const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
1064
+ const NeuronId = IDL.Record({ id: IDL.Nat64 });
1065
+ const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
1066
+ const AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
1089
1067
  const NodeProvider = IDL.Record({
1090
- 'id' : IDL.Opt(IDL.Principal),
1091
- 'reward_account' : IDL.Opt(AccountIdentifier),
1068
+ id: IDL.Opt(IDL.Principal),
1069
+ reward_account: IDL.Opt(AccountIdentifier),
1092
1070
  });
1093
- const RewardToNeuron = IDL.Record({ 'dissolve_delay_seconds' : IDL.Nat64 });
1071
+ const RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
1094
1072
  const RewardToAccount = IDL.Record({
1095
- 'to_account' : IDL.Opt(AccountIdentifier),
1073
+ to_account: IDL.Opt(AccountIdentifier),
1096
1074
  });
1097
1075
  const RewardMode = IDL.Variant({
1098
- 'RewardToNeuron' : RewardToNeuron,
1099
- 'RewardToAccount' : RewardToAccount,
1076
+ RewardToNeuron: RewardToNeuron,
1077
+ RewardToAccount: RewardToAccount,
1100
1078
  });
1101
1079
  const RewardNodeProvider = IDL.Record({
1102
- 'node_provider' : IDL.Opt(NodeProvider),
1103
- 'reward_mode' : IDL.Opt(RewardMode),
1104
- 'amount_e8s' : IDL.Nat64,
1080
+ node_provider: IDL.Opt(NodeProvider),
1081
+ reward_mode: IDL.Opt(RewardMode),
1082
+ amount_e8s: IDL.Nat64,
1105
1083
  });
1106
1084
  const XdrConversionRate = IDL.Record({
1107
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1108
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1085
+ xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1086
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
1109
1087
  });
1110
1088
  const MonthlyNodeProviderRewards = IDL.Record({
1111
- 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1112
- 'registry_version' : IDL.Opt(IDL.Nat64),
1113
- 'node_providers' : IDL.Vec(NodeProvider),
1114
- 'timestamp' : IDL.Nat64,
1115
- 'rewards' : IDL.Vec(RewardNodeProvider),
1116
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1117
- 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1089
+ minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1090
+ registry_version: IDL.Opt(IDL.Nat64),
1091
+ node_providers: IDL.Vec(NodeProvider),
1092
+ timestamp: IDL.Nat64,
1093
+ rewards: IDL.Vec(RewardNodeProvider),
1094
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1095
+ maximum_node_provider_rewards_e8s: IDL.Opt(IDL.Nat64),
1118
1096
  });
1119
1097
  const NeuronSubsetMetrics = IDL.Record({
1120
- 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1121
- 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1122
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1123
- ),
1124
- 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1125
- 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1126
- 'count' : IDL.Opt(IDL.Nat64),
1127
- 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1128
- 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1129
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1130
- 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1131
- 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1132
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1098
+ total_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1099
+ maturity_e8s_equivalent_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1100
+ voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1101
+ total_staked_e8s: IDL.Opt(IDL.Nat64),
1102
+ count: IDL.Opt(IDL.Nat64),
1103
+ deciding_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1104
+ total_staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1105
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
1106
+ total_deciding_voting_power: IDL.Opt(IDL.Nat64),
1107
+ staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1108
+ IDL.Tuple(IDL.Nat64, IDL.Nat64),
1133
1109
  ),
1134
- 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1135
- 'total_voting_power' : IDL.Opt(IDL.Nat64),
1136
- 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1137
- 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1110
+ staked_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1111
+ total_voting_power: IDL.Opt(IDL.Nat64),
1112
+ potential_voting_power_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1113
+ count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1138
1114
  });
1139
1115
  const GovernanceCachedMetrics = IDL.Record({
1140
- 'total_maturity_e8s_equivalent' : IDL.Nat64,
1141
- 'not_dissolving_neurons_e8s_buckets' : IDL.Vec(
1142
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1143
- ),
1144
- 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1145
- 'garbage_collectable_neurons_count' : IDL.Nat64,
1146
- 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1147
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1148
- ),
1149
- 'neurons_with_invalid_stake_count' : IDL.Nat64,
1150
- 'not_dissolving_neurons_count_buckets' : IDL.Vec(
1151
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1116
+ total_maturity_e8s_equivalent: IDL.Nat64,
1117
+ not_dissolving_neurons_e8s_buckets: IDL.Vec(
1118
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1152
1119
  ),
1153
- 'ect_neuron_count' : IDL.Nat64,
1154
- 'total_supply_icp' : IDL.Nat64,
1155
- 'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1156
- 'dissolved_neurons_count' : IDL.Nat64,
1157
- 'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1158
- 'total_staked_e8s_seed' : IDL.Nat64,
1159
- 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1160
- 'total_staked_e8s' : IDL.Nat64,
1161
- 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1162
- NeuronSubsetMetrics
1120
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1121
+ garbage_collectable_neurons_count: IDL.Nat64,
1122
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1123
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1163
1124
  ),
1164
- 'not_dissolving_neurons_count' : IDL.Nat64,
1165
- 'total_locked_e8s' : IDL.Nat64,
1166
- 'neurons_fund_total_active_neurons' : IDL.Nat64,
1167
- 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1168
- IDL.Nat64
1125
+ neurons_with_invalid_stake_count: IDL.Nat64,
1126
+ not_dissolving_neurons_count_buckets: IDL.Vec(
1127
+ IDL.Tuple(IDL.Nat64, IDL.Nat64),
1169
1128
  ),
1170
- 'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1171
- 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1172
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1129
+ ect_neuron_count: IDL.Nat64,
1130
+ total_supply_icp: IDL.Nat64,
1131
+ neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
1132
+ dissolved_neurons_count: IDL.Nat64,
1133
+ community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
1134
+ total_staked_e8s_seed: IDL.Nat64,
1135
+ total_staked_maturity_e8s_equivalent_ect: IDL.Nat64,
1136
+ total_staked_e8s: IDL.Nat64,
1137
+ fully_lost_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1138
+ not_dissolving_neurons_count: IDL.Nat64,
1139
+ total_locked_e8s: IDL.Nat64,
1140
+ neurons_fund_total_active_neurons: IDL.Nat64,
1141
+ total_voting_power_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1142
+ total_staked_maturity_e8s_equivalent: IDL.Nat64,
1143
+ not_dissolving_neurons_e8s_buckets_ect: IDL.Vec(
1144
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1173
1145
  ),
1174
- 'spawning_neurons_count' : IDL.Nat64,
1175
- 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1176
- NeuronSubsetMetrics
1146
+ spawning_neurons_count: IDL.Nat64,
1147
+ declining_voting_power_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1148
+ total_staked_e8s_ect: IDL.Nat64,
1149
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: IDL.Nat64,
1150
+ dissolved_neurons_e8s: IDL.Nat64,
1151
+ total_staked_e8s_non_self_authenticating_controller: IDL.Opt(IDL.Nat64),
1152
+ dissolving_neurons_e8s_buckets_seed: IDL.Vec(
1153
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1177
1154
  ),
1178
- 'total_staked_e8s_ect' : IDL.Nat64,
1179
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1180
- 'dissolved_neurons_e8s' : IDL.Nat64,
1181
- 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1182
- 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1183
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1155
+ neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
1156
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: IDL.Vec(
1157
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1184
1158
  ),
1185
- 'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1186
- 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1187
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1159
+ dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1160
+ dissolving_neurons_e8s_buckets_ect: IDL.Vec(
1161
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1188
1162
  ),
1189
- 'dissolving_neurons_count_buckets' : IDL.Vec(
1190
- IDL.Tuple(IDL.Nat64, IDL.Nat64)
1163
+ non_self_authenticating_controller_neuron_subset_metrics:
1164
+ IDL.Opt(NeuronSubsetMetrics),
1165
+ dissolving_neurons_count: IDL.Nat64,
1166
+ dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
1167
+ total_staked_maturity_e8s_equivalent_seed: IDL.Nat64,
1168
+ community_fund_total_staked_e8s: IDL.Nat64,
1169
+ not_dissolving_neurons_e8s_buckets_seed: IDL.Vec(
1170
+ IDL.Tuple(IDL.Nat64, IDL.Float64),
1191
1171
  ),
1192
- 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1193
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1194
- ),
1195
- 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1196
- NeuronSubsetMetrics
1197
- ),
1198
- 'dissolving_neurons_count' : IDL.Nat64,
1199
- 'dissolving_neurons_e8s_buckets' : IDL.Vec(
1200
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1201
- ),
1202
- 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1203
- 'community_fund_total_staked_e8s' : IDL.Nat64,
1204
- 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1205
- IDL.Tuple(IDL.Nat64, IDL.Float64)
1206
- ),
1207
- 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1208
- 'timestamp_seconds' : IDL.Nat64,
1209
- 'seed_neuron_count' : IDL.Nat64,
1172
+ public_neuron_subset_metrics: IDL.Opt(NeuronSubsetMetrics),
1173
+ timestamp_seconds: IDL.Nat64,
1174
+ seed_neuron_count: IDL.Nat64,
1210
1175
  });
1211
1176
  const VotingPowerEconomics = IDL.Record({
1212
- 'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
1213
- 'neuron_minimum_dissolve_delay_to_vote_seconds' : IDL.Opt(IDL.Nat64),
1214
- 'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
1177
+ start_reducing_voting_power_after_seconds: IDL.Opt(IDL.Nat64),
1178
+ neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
1179
+ clear_following_after_seconds: IDL.Opt(IDL.Nat64),
1215
1180
  });
1216
- const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
1217
- const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
1181
+ const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
1182
+ const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
1218
1183
  const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
1219
- 'contribution_threshold_xdr' : IDL.Opt(Decimal),
1220
- 'one_third_participation_milestone_xdr' : IDL.Opt(Decimal),
1221
- 'full_participation_milestone_xdr' : IDL.Opt(Decimal),
1184
+ contribution_threshold_xdr: IDL.Opt(Decimal),
1185
+ one_third_participation_milestone_xdr: IDL.Opt(Decimal),
1186
+ full_participation_milestone_xdr: IDL.Opt(Decimal),
1222
1187
  });
1223
1188
  const NeuronsFundEconomics = IDL.Record({
1224
- 'maximum_icp_xdr_rate' : IDL.Opt(Percentage),
1225
- 'neurons_fund_matched_funding_curve_coefficients' : IDL.Opt(
1226
- NeuronsFundMatchedFundingCurveCoefficients
1189
+ maximum_icp_xdr_rate: IDL.Opt(Percentage),
1190
+ neurons_fund_matched_funding_curve_coefficients: IDL.Opt(
1191
+ NeuronsFundMatchedFundingCurveCoefficients,
1227
1192
  ),
1228
- 'max_theoretical_neurons_fund_participation_amount_xdr' : IDL.Opt(Decimal),
1229
- 'minimum_icp_xdr_rate' : IDL.Opt(Percentage),
1193
+ max_theoretical_neurons_fund_participation_amount_xdr: IDL.Opt(Decimal),
1194
+ minimum_icp_xdr_rate: IDL.Opt(Percentage),
1230
1195
  });
1231
1196
  const NetworkEconomics = IDL.Record({
1232
- 'neuron_minimum_stake_e8s' : IDL.Nat64,
1233
- 'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
1234
- 'max_proposals_to_keep_per_topic' : IDL.Nat32,
1235
- 'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
1236
- 'reject_cost_e8s' : IDL.Nat64,
1237
- 'transaction_fee_e8s' : IDL.Nat64,
1238
- 'neuron_spawn_dissolve_delay_seconds' : IDL.Nat64,
1239
- 'minimum_icp_xdr_rate' : IDL.Nat64,
1240
- 'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1241
- 'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1197
+ neuron_minimum_stake_e8s: IDL.Nat64,
1198
+ voting_power_economics: IDL.Opt(VotingPowerEconomics),
1199
+ max_proposals_to_keep_per_topic: IDL.Nat32,
1200
+ neuron_management_fee_per_proposal_e8s: IDL.Nat64,
1201
+ reject_cost_e8s: IDL.Nat64,
1202
+ transaction_fee_e8s: IDL.Nat64,
1203
+ neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
1204
+ minimum_icp_xdr_rate: IDL.Nat64,
1205
+ maximum_node_provider_rewards_e8s: IDL.Nat64,
1206
+ neurons_fund_economics: IDL.Opt(NeuronsFundEconomics),
1242
1207
  });
1243
1208
  const RestoreAgingNeuronGroup = IDL.Record({
1244
- 'count' : IDL.Opt(IDL.Nat64),
1245
- 'previous_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1246
- 'current_total_stake_e8s' : IDL.Opt(IDL.Nat64),
1247
- 'group_type' : IDL.Int32,
1209
+ count: IDL.Opt(IDL.Nat64),
1210
+ previous_total_stake_e8s: IDL.Opt(IDL.Nat64),
1211
+ current_total_stake_e8s: IDL.Opt(IDL.Nat64),
1212
+ group_type: IDL.Int32,
1248
1213
  });
1249
1214
  const RestoreAgingSummary = IDL.Record({
1250
- 'groups' : IDL.Vec(RestoreAgingNeuronGroup),
1251
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1215
+ groups: IDL.Vec(RestoreAgingNeuronGroup),
1216
+ timestamp_seconds: IDL.Opt(IDL.Nat64),
1252
1217
  });
1253
- const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
1218
+ const ProposalId = IDL.Record({ id: IDL.Nat64 });
1254
1219
  const RewardEvent = IDL.Record({
1255
- 'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
1256
- 'day_after_genesis' : IDL.Nat64,
1257
- 'actual_timestamp_seconds' : IDL.Nat64,
1258
- 'total_available_e8s_equivalent' : IDL.Nat64,
1259
- 'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1260
- 'distributed_e8s_equivalent' : IDL.Nat64,
1261
- 'settled_proposals' : IDL.Vec(ProposalId),
1220
+ rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
1221
+ day_after_genesis: IDL.Nat64,
1222
+ actual_timestamp_seconds: IDL.Nat64,
1223
+ total_available_e8s_equivalent: IDL.Nat64,
1224
+ latest_round_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
1225
+ distributed_e8s_equivalent: IDL.Nat64,
1226
+ settled_proposals: IDL.Vec(ProposalId),
1262
1227
  });
1263
1228
  const NeuronStakeTransfer = IDL.Record({
1264
- 'to_subaccount' : IDL.Vec(IDL.Nat8),
1265
- 'neuron_stake_e8s' : IDL.Nat64,
1266
- 'from' : IDL.Opt(IDL.Principal),
1267
- 'memo' : IDL.Nat64,
1268
- 'from_subaccount' : IDL.Vec(IDL.Nat8),
1269
- 'transfer_timestamp' : IDL.Nat64,
1270
- 'block_height' : IDL.Nat64,
1229
+ to_subaccount: IDL.Vec(IDL.Nat8),
1230
+ neuron_stake_e8s: IDL.Nat64,
1231
+ from: IDL.Opt(IDL.Principal),
1232
+ memo: IDL.Nat64,
1233
+ from_subaccount: IDL.Vec(IDL.Nat8),
1234
+ transfer_timestamp: IDL.Nat64,
1235
+ block_height: IDL.Nat64,
1271
1236
  });
1272
1237
  const GovernanceError = IDL.Record({
1273
- 'error_message' : IDL.Text,
1274
- 'error_type' : IDL.Int32,
1238
+ error_message: IDL.Text,
1239
+ error_type: IDL.Int32,
1275
1240
  });
1276
- const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1241
+ const Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
1277
1242
  const SwapParticipationLimits = IDL.Record({
1278
- 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1279
- 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1280
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1281
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1243
+ min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1244
+ max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
1245
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1246
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1282
1247
  });
1283
1248
  const NeuronsFundNeuronPortion = IDL.Record({
1284
- 'controller' : IDL.Opt(IDL.Principal),
1285
- 'hotkeys' : IDL.Vec(IDL.Principal),
1286
- 'is_capped' : IDL.Opt(IDL.Bool),
1287
- 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1288
- 'nns_neuron_id' : IDL.Opt(NeuronId),
1289
- 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
1249
+ controller: IDL.Opt(IDL.Principal),
1250
+ hotkeys: IDL.Vec(IDL.Principal),
1251
+ is_capped: IDL.Opt(IDL.Bool),
1252
+ maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1253
+ nns_neuron_id: IDL.Opt(NeuronId),
1254
+ amount_icp_e8s: IDL.Opt(IDL.Nat64),
1290
1255
  });
1291
1256
  const NeuronsFundSnapshot = IDL.Record({
1292
- 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
1257
+ neurons_fund_neuron_portions: IDL.Vec(NeuronsFundNeuronPortion),
1293
1258
  });
1294
1259
  const IdealMatchedParticipationFunction = IDL.Record({
1295
- 'serialized_representation' : IDL.Opt(IDL.Text),
1260
+ serialized_representation: IDL.Opt(IDL.Text),
1296
1261
  });
1297
1262
  const NeuronsFundParticipation = IDL.Record({
1298
- 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1299
- 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1300
- 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1301
- 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1302
- 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1303
- 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1304
- 'ideal_matched_participation_function' : IDL.Opt(
1305
- IdealMatchedParticipationFunction
1263
+ total_maturity_equivalent_icp_e8s: IDL.Opt(IDL.Nat64),
1264
+ intended_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1265
+ direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1266
+ swap_participation_limits: IDL.Opt(SwapParticipationLimits),
1267
+ max_neurons_fund_swap_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1268
+ neurons_fund_reserves: IDL.Opt(NeuronsFundSnapshot),
1269
+ ideal_matched_participation_function: IDL.Opt(
1270
+ IdealMatchedParticipationFunction,
1306
1271
  ),
1307
- 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1272
+ allocated_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1308
1273
  });
1309
1274
  const NeuronsFundData = IDL.Record({
1310
- 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1311
- 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1312
- 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1275
+ final_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1276
+ initial_neurons_fund_participation: IDL.Opt(NeuronsFundParticipation),
1277
+ neurons_fund_refunds: IDL.Opt(NeuronsFundSnapshot),
1313
1278
  });
1314
1279
  const CanisterStatusResultV2 = IDL.Record({
1315
- 'status' : IDL.Opt(IDL.Int32),
1316
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1317
- 'controllers' : IDL.Vec(IDL.Principal),
1318
- 'memory_size' : IDL.Opt(IDL.Nat64),
1319
- 'cycles' : IDL.Opt(IDL.Nat64),
1320
- 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat64),
1321
- 'module_hash' : IDL.Vec(IDL.Nat8),
1280
+ status: IDL.Opt(IDL.Int32),
1281
+ freezing_threshold: IDL.Opt(IDL.Nat64),
1282
+ controllers: IDL.Vec(IDL.Principal),
1283
+ memory_size: IDL.Opt(IDL.Nat64),
1284
+ cycles: IDL.Opt(IDL.Nat64),
1285
+ idle_cycles_burned_per_day: IDL.Opt(IDL.Nat64),
1286
+ module_hash: IDL.Vec(IDL.Nat8),
1322
1287
  });
1323
1288
  const CanisterSummary = IDL.Record({
1324
- 'status' : IDL.Opt(CanisterStatusResultV2),
1325
- 'canister_id' : IDL.Opt(IDL.Principal),
1289
+ status: IDL.Opt(CanisterStatusResultV2),
1290
+ canister_id: IDL.Opt(IDL.Principal),
1326
1291
  });
1327
1292
  const SwapBackgroundInformation = IDL.Record({
1328
- 'ledger_index_canister_summary' : IDL.Opt(CanisterSummary),
1329
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1330
- 'ledger_archive_canister_summaries' : IDL.Vec(CanisterSummary),
1331
- 'ledger_canister_summary' : IDL.Opt(CanisterSummary),
1332
- 'swap_canister_summary' : IDL.Opt(CanisterSummary),
1333
- 'governance_canister_summary' : IDL.Opt(CanisterSummary),
1334
- 'root_canister_summary' : IDL.Opt(CanisterSummary),
1335
- 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),
1293
+ ledger_index_canister_summary: IDL.Opt(CanisterSummary),
1294
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1295
+ ledger_archive_canister_summaries: IDL.Vec(CanisterSummary),
1296
+ ledger_canister_summary: IDL.Opt(CanisterSummary),
1297
+ swap_canister_summary: IDL.Opt(CanisterSummary),
1298
+ governance_canister_summary: IDL.Opt(CanisterSummary),
1299
+ root_canister_summary: IDL.Opt(CanisterSummary),
1300
+ dapp_canister_summaries: IDL.Vec(CanisterSummary),
1336
1301
  });
1337
1302
  const DerivedProposalInformation = IDL.Record({
1338
- 'swap_background_information' : IDL.Opt(SwapBackgroundInformation),
1303
+ swap_background_information: IDL.Opt(SwapBackgroundInformation),
1339
1304
  });
1340
1305
  const Tally = IDL.Record({
1341
- 'no' : IDL.Nat64,
1342
- 'yes' : IDL.Nat64,
1343
- 'total' : IDL.Nat64,
1344
- 'timestamp_seconds' : IDL.Nat64,
1306
+ no: IDL.Nat64,
1307
+ yes: IDL.Nat64,
1308
+ total: IDL.Nat64,
1309
+ timestamp_seconds: IDL.Nat64,
1345
1310
  });
1346
1311
  const TopicToFollow = IDL.Variant({
1347
- 'Kyc' : IDL.Null,
1348
- 'ServiceNervousSystemManagement' : IDL.Null,
1349
- 'ApiBoundaryNodeManagement' : IDL.Null,
1350
- 'ApplicationCanisterManagement' : IDL.Null,
1351
- 'SubnetRental' : IDL.Null,
1352
- 'NeuronManagement' : IDL.Null,
1353
- 'NodeProviderRewards' : IDL.Null,
1354
- 'SubnetManagement' : IDL.Null,
1355
- 'ExchangeRate' : IDL.Null,
1356
- 'CatchAll' : IDL.Null,
1357
- 'NodeAdmin' : IDL.Null,
1358
- 'IcOsVersionElection' : IDL.Null,
1359
- 'ProtocolCanisterManagement' : IDL.Null,
1360
- 'NetworkEconomics' : IDL.Null,
1361
- 'IcOsVersionDeployment' : IDL.Null,
1362
- 'ParticipantManagement' : IDL.Null,
1363
- 'Governance' : IDL.Null,
1364
- 'SnsAndCommunityFund' : IDL.Null,
1312
+ Kyc: IDL.Null,
1313
+ ServiceNervousSystemManagement: IDL.Null,
1314
+ ApiBoundaryNodeManagement: IDL.Null,
1315
+ ApplicationCanisterManagement: IDL.Null,
1316
+ SubnetRental: IDL.Null,
1317
+ NeuronManagement: IDL.Null,
1318
+ NodeProviderRewards: IDL.Null,
1319
+ SubnetManagement: IDL.Null,
1320
+ ExchangeRate: IDL.Null,
1321
+ CatchAll: IDL.Null,
1322
+ NodeAdmin: IDL.Null,
1323
+ IcOsVersionElection: IDL.Null,
1324
+ ProtocolCanisterManagement: IDL.Null,
1325
+ NetworkEconomics: IDL.Null,
1326
+ IcOsVersionDeployment: IDL.Null,
1327
+ ParticipantManagement: IDL.Null,
1328
+ Governance: IDL.Null,
1329
+ SnsAndCommunityFund: IDL.Null,
1365
1330
  });
1366
1331
  const KnownNeuronData = IDL.Record({
1367
- 'name' : IDL.Text,
1368
- 'committed_topics' : IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
1369
- 'description' : IDL.Opt(IDL.Text),
1370
- 'links' : IDL.Opt(IDL.Vec(IDL.Text)),
1332
+ name: IDL.Text,
1333
+ committed_topics: IDL.Opt(IDL.Vec(IDL.Opt(TopicToFollow))),
1334
+ description: IDL.Opt(IDL.Text),
1335
+ links: IDL.Opt(IDL.Vec(IDL.Text)),
1371
1336
  });
1372
1337
  const KnownNeuron = IDL.Record({
1373
- 'id' : IDL.Opt(NeuronId),
1374
- 'known_neuron_data' : IDL.Opt(KnownNeuronData),
1338
+ id: IDL.Opt(NeuronId),
1339
+ known_neuron_data: IDL.Opt(KnownNeuronData),
1375
1340
  });
1376
1341
  const FulfillSubnetRentalRequest = IDL.Record({
1377
- 'user' : IDL.Opt(IDL.Principal),
1378
- 'replica_version_id' : IDL.Opt(IDL.Text),
1379
- 'node_ids' : IDL.Opt(IDL.Vec(IDL.Principal)),
1342
+ user: IDL.Opt(IDL.Principal),
1343
+ replica_version_id: IDL.Opt(IDL.Text),
1344
+ node_ids: IDL.Opt(IDL.Vec(IDL.Principal)),
1380
1345
  });
1381
1346
  const Spawn = IDL.Record({
1382
- 'percentage_to_spawn' : IDL.Opt(IDL.Nat32),
1383
- 'new_controller' : IDL.Opt(IDL.Principal),
1384
- 'nonce' : IDL.Opt(IDL.Nat64),
1347
+ percentage_to_spawn: IDL.Opt(IDL.Nat32),
1348
+ new_controller: IDL.Opt(IDL.Principal),
1349
+ nonce: IDL.Opt(IDL.Nat64),
1385
1350
  });
1386
1351
  const Split = IDL.Record({
1387
- 'memo' : IDL.Opt(IDL.Nat64),
1388
- 'amount_e8s' : IDL.Nat64,
1352
+ memo: IDL.Opt(IDL.Nat64),
1353
+ amount_e8s: IDL.Nat64,
1389
1354
  });
1390
1355
  const Follow = IDL.Record({
1391
- 'topic' : IDL.Int32,
1392
- 'followees' : IDL.Vec(NeuronId),
1356
+ topic: IDL.Int32,
1357
+ followees: IDL.Vec(NeuronId),
1393
1358
  });
1394
1359
  const Account = IDL.Record({
1395
- 'owner' : IDL.Opt(IDL.Principal),
1396
- 'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1360
+ owner: IDL.Opt(IDL.Principal),
1361
+ subaccount: IDL.Opt(IDL.Vec(IDL.Nat8)),
1397
1362
  });
1398
1363
  const DisburseMaturity = IDL.Record({
1399
- 'to_account_identifier' : IDL.Opt(AccountIdentifier),
1400
- 'to_account' : IDL.Opt(Account),
1401
- 'percentage_to_disburse' : IDL.Nat32,
1364
+ to_account_identifier: IDL.Opt(AccountIdentifier),
1365
+ to_account: IDL.Opt(Account),
1366
+ percentage_to_disburse: IDL.Nat32,
1402
1367
  });
1403
1368
  const RefreshVotingPower = IDL.Record({});
1404
1369
  const ClaimOrRefreshNeuronFromAccount = IDL.Record({
1405
- 'controller' : IDL.Opt(IDL.Principal),
1406
- 'memo' : IDL.Nat64,
1370
+ controller: IDL.Opt(IDL.Principal),
1371
+ memo: IDL.Nat64,
1407
1372
  });
1408
1373
  const By = IDL.Variant({
1409
- 'NeuronIdOrSubaccount' : IDL.Record({}),
1410
- 'MemoAndController' : ClaimOrRefreshNeuronFromAccount,
1411
- 'Memo' : IDL.Nat64,
1374
+ NeuronIdOrSubaccount: IDL.Record({}),
1375
+ MemoAndController: ClaimOrRefreshNeuronFromAccount,
1376
+ Memo: IDL.Nat64,
1412
1377
  });
1413
- const ClaimOrRefresh = IDL.Record({ 'by' : IDL.Opt(By) });
1378
+ const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
1414
1379
  const RemoveHotKey = IDL.Record({
1415
- 'hot_key_to_remove' : IDL.Opt(IDL.Principal),
1380
+ hot_key_to_remove: IDL.Opt(IDL.Principal),
1416
1381
  });
1417
- const AddHotKey = IDL.Record({ 'new_hot_key' : IDL.Opt(IDL.Principal) });
1382
+ const AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
1418
1383
  const ChangeAutoStakeMaturity = IDL.Record({
1419
- 'requested_setting_for_auto_stake_maturity' : IDL.Bool,
1384
+ requested_setting_for_auto_stake_maturity: IDL.Bool,
1420
1385
  });
1421
1386
  const IncreaseDissolveDelay = IDL.Record({
1422
- 'additional_dissolve_delay_seconds' : IDL.Nat32,
1387
+ additional_dissolve_delay_seconds: IDL.Nat32,
1423
1388
  });
1424
- const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
1389
+ const SetVisibility = IDL.Record({ visibility: IDL.Opt(IDL.Int32) });
1425
1390
  const SetDissolveTimestamp = IDL.Record({
1426
- 'dissolve_timestamp_seconds' : IDL.Nat64,
1391
+ dissolve_timestamp_seconds: IDL.Nat64,
1427
1392
  });
1428
1393
  const Operation = IDL.Variant({
1429
- 'RemoveHotKey' : RemoveHotKey,
1430
- 'AddHotKey' : AddHotKey,
1431
- 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity,
1432
- 'StopDissolving' : IDL.Record({}),
1433
- 'StartDissolving' : IDL.Record({}),
1434
- 'IncreaseDissolveDelay' : IncreaseDissolveDelay,
1435
- 'SetVisibility' : SetVisibility,
1436
- 'JoinCommunityFund' : IDL.Record({}),
1437
- 'LeaveCommunityFund' : IDL.Record({}),
1438
- 'SetDissolveTimestamp' : SetDissolveTimestamp,
1439
- });
1440
- const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
1394
+ RemoveHotKey: RemoveHotKey,
1395
+ AddHotKey: AddHotKey,
1396
+ ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
1397
+ StopDissolving: IDL.Record({}),
1398
+ StartDissolving: IDL.Record({}),
1399
+ IncreaseDissolveDelay: IncreaseDissolveDelay,
1400
+ SetVisibility: SetVisibility,
1401
+ JoinCommunityFund: IDL.Record({}),
1402
+ LeaveCommunityFund: IDL.Record({}),
1403
+ SetDissolveTimestamp: SetDissolveTimestamp,
1404
+ });
1405
+ const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
1441
1406
  const RegisterVote = IDL.Record({
1442
- 'vote' : IDL.Int32,
1443
- 'proposal' : IDL.Opt(ProposalId),
1407
+ vote: IDL.Int32,
1408
+ proposal: IDL.Opt(ProposalId),
1444
1409
  });
1445
- const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
1410
+ const Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
1446
1411
  const DisburseToNeuron = IDL.Record({
1447
- 'dissolve_delay_seconds' : IDL.Nat64,
1448
- 'kyc_verified' : IDL.Bool,
1449
- 'amount_e8s' : IDL.Nat64,
1450
- 'new_controller' : IDL.Opt(IDL.Principal),
1451
- 'nonce' : IDL.Nat64,
1412
+ dissolve_delay_seconds: IDL.Nat64,
1413
+ kyc_verified: IDL.Bool,
1414
+ amount_e8s: IDL.Nat64,
1415
+ new_controller: IDL.Opt(IDL.Principal),
1416
+ nonce: IDL.Nat64,
1452
1417
  });
1453
1418
  const FolloweesForTopic = IDL.Record({
1454
- 'topic' : IDL.Opt(IDL.Int32),
1455
- 'followees' : IDL.Opt(IDL.Vec(NeuronId)),
1419
+ topic: IDL.Opt(IDL.Int32),
1420
+ followees: IDL.Opt(IDL.Vec(NeuronId)),
1456
1421
  });
1457
1422
  const SetFollowing = IDL.Record({
1458
- 'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
1423
+ topic_following: IDL.Opt(IDL.Vec(FolloweesForTopic)),
1459
1424
  });
1460
1425
  const StakeMaturity = IDL.Record({
1461
- 'percentage_to_stake' : IDL.Opt(IDL.Nat32),
1426
+ percentage_to_stake: IDL.Opt(IDL.Nat32),
1462
1427
  });
1463
- const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
1464
- const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
1428
+ const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
1429
+ const Amount = IDL.Record({ e8s: IDL.Nat64 });
1465
1430
  const Disburse = IDL.Record({
1466
- 'to_account' : IDL.Opt(AccountIdentifier),
1467
- 'amount' : IDL.Opt(Amount),
1431
+ to_account: IDL.Opt(AccountIdentifier),
1432
+ amount: IDL.Opt(Amount),
1468
1433
  });
1469
1434
  const Command = IDL.Variant({
1470
- 'Spawn' : Spawn,
1471
- 'Split' : Split,
1472
- 'Follow' : Follow,
1473
- 'DisburseMaturity' : DisburseMaturity,
1474
- 'RefreshVotingPower' : RefreshVotingPower,
1475
- 'ClaimOrRefresh' : ClaimOrRefresh,
1476
- 'Configure' : Configure,
1477
- 'RegisterVote' : RegisterVote,
1478
- 'Merge' : Merge,
1479
- 'DisburseToNeuron' : DisburseToNeuron,
1480
- 'SetFollowing' : SetFollowing,
1481
- 'MakeProposal' : Proposal,
1482
- 'StakeMaturity' : StakeMaturity,
1483
- 'MergeMaturity' : MergeMaturity,
1484
- 'Disburse' : Disburse,
1435
+ Spawn: Spawn,
1436
+ Split: Split,
1437
+ Follow: Follow,
1438
+ DisburseMaturity: DisburseMaturity,
1439
+ RefreshVotingPower: RefreshVotingPower,
1440
+ ClaimOrRefresh: ClaimOrRefresh,
1441
+ Configure: Configure,
1442
+ RegisterVote: RegisterVote,
1443
+ Merge: Merge,
1444
+ DisburseToNeuron: DisburseToNeuron,
1445
+ SetFollowing: SetFollowing,
1446
+ MakeProposal: Proposal,
1447
+ StakeMaturity: StakeMaturity,
1448
+ MergeMaturity: MergeMaturity,
1449
+ Disburse: Disburse,
1485
1450
  });
1486
1451
  const NeuronIdOrSubaccount = IDL.Variant({
1487
- 'Subaccount' : IDL.Vec(IDL.Nat8),
1488
- 'NeuronId' : NeuronId,
1452
+ Subaccount: IDL.Vec(IDL.Nat8),
1453
+ NeuronId: NeuronId,
1489
1454
  });
1490
1455
  const ManageNeuron = IDL.Record({
1491
- 'id' : IDL.Opt(NeuronId),
1492
- 'command' : IDL.Opt(Command),
1493
- 'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
1456
+ id: IDL.Opt(NeuronId),
1457
+ command: IDL.Opt(Command),
1458
+ neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount),
1494
1459
  });
1495
- const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1460
+ const Controllers = IDL.Record({ controllers: IDL.Vec(IDL.Principal) });
1496
1461
  const CanisterSettings = IDL.Record({
1497
- 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1498
- 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1499
- 'controllers' : IDL.Opt(Controllers),
1500
- 'log_visibility' : IDL.Opt(IDL.Int32),
1501
- 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
1502
- 'memory_allocation' : IDL.Opt(IDL.Nat64),
1503
- 'compute_allocation' : IDL.Opt(IDL.Nat64),
1462
+ freezing_threshold: IDL.Opt(IDL.Nat64),
1463
+ wasm_memory_threshold: IDL.Opt(IDL.Nat64),
1464
+ controllers: IDL.Opt(Controllers),
1465
+ log_visibility: IDL.Opt(IDL.Int32),
1466
+ wasm_memory_limit: IDL.Opt(IDL.Nat64),
1467
+ memory_allocation: IDL.Opt(IDL.Nat64),
1468
+ compute_allocation: IDL.Opt(IDL.Nat64),
1504
1469
  });
1505
1470
  const UpdateCanisterSettings = IDL.Record({
1506
- 'canister_id' : IDL.Opt(IDL.Principal),
1507
- 'settings' : IDL.Opt(CanisterSettings),
1471
+ canister_id: IDL.Opt(IDL.Principal),
1472
+ settings: IDL.Opt(CanisterSettings),
1508
1473
  });
1509
1474
  const InstallCode = IDL.Record({
1510
- 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
1511
- 'wasm_module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1512
- 'canister_id' : IDL.Opt(IDL.Principal),
1513
- 'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1514
- 'install_mode' : IDL.Opt(IDL.Int32),
1475
+ skip_stopping_before_installing: IDL.Opt(IDL.Bool),
1476
+ wasm_module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1477
+ canister_id: IDL.Opt(IDL.Principal),
1478
+ arg_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
1479
+ install_mode: IDL.Opt(IDL.Int32),
1515
1480
  });
1516
- const DeregisterKnownNeuron = IDL.Record({ 'id' : IDL.Opt(NeuronId) });
1481
+ const DeregisterKnownNeuron = IDL.Record({ id: IDL.Opt(NeuronId) });
1517
1482
  const StopOrStartCanister = IDL.Record({
1518
- 'action' : IDL.Opt(IDL.Int32),
1519
- 'canister_id' : IDL.Opt(IDL.Principal),
1483
+ action: IDL.Opt(IDL.Int32),
1484
+ canister_id: IDL.Opt(IDL.Principal),
1520
1485
  });
1521
- const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
1522
- const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
1486
+ const Duration = IDL.Record({ seconds: IDL.Opt(IDL.Nat64) });
1487
+ const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
1523
1488
  const VotingRewardParameters = IDL.Record({
1524
- 'reward_rate_transition_duration' : IDL.Opt(Duration),
1525
- 'initial_reward_rate' : IDL.Opt(Percentage),
1526
- 'final_reward_rate' : IDL.Opt(Percentage),
1489
+ reward_rate_transition_duration: IDL.Opt(Duration),
1490
+ initial_reward_rate: IDL.Opt(Percentage),
1491
+ final_reward_rate: IDL.Opt(Percentage),
1527
1492
  });
1528
1493
  const GovernanceParameters = IDL.Record({
1529
- 'neuron_maximum_dissolve_delay_bonus' : IDL.Opt(Percentage),
1530
- 'neuron_maximum_age_for_age_bonus' : IDL.Opt(Duration),
1531
- 'neuron_maximum_dissolve_delay' : IDL.Opt(Duration),
1532
- 'neuron_minimum_dissolve_delay_to_vote' : IDL.Opt(Duration),
1533
- 'neuron_maximum_age_bonus' : IDL.Opt(Percentage),
1534
- 'neuron_minimum_stake' : IDL.Opt(Tokens),
1535
- 'proposal_wait_for_quiet_deadline_increase' : IDL.Opt(Duration),
1536
- 'proposal_initial_voting_period' : IDL.Opt(Duration),
1537
- 'proposal_rejection_fee' : IDL.Opt(Tokens),
1538
- 'voting_reward_parameters' : IDL.Opt(VotingRewardParameters),
1539
- });
1540
- const Image = IDL.Record({ 'base64_encoding' : IDL.Opt(IDL.Text) });
1494
+ neuron_maximum_dissolve_delay_bonus: IDL.Opt(Percentage),
1495
+ neuron_maximum_age_for_age_bonus: IDL.Opt(Duration),
1496
+ neuron_maximum_dissolve_delay: IDL.Opt(Duration),
1497
+ neuron_minimum_dissolve_delay_to_vote: IDL.Opt(Duration),
1498
+ neuron_maximum_age_bonus: IDL.Opt(Percentage),
1499
+ neuron_minimum_stake: IDL.Opt(Tokens),
1500
+ proposal_wait_for_quiet_deadline_increase: IDL.Opt(Duration),
1501
+ proposal_initial_voting_period: IDL.Opt(Duration),
1502
+ proposal_rejection_fee: IDL.Opt(Tokens),
1503
+ voting_reward_parameters: IDL.Opt(VotingRewardParameters),
1504
+ });
1505
+ const Image = IDL.Record({ base64_encoding: IDL.Opt(IDL.Text) });
1541
1506
  const LedgerParameters = IDL.Record({
1542
- 'transaction_fee' : IDL.Opt(Tokens),
1543
- 'token_symbol' : IDL.Opt(IDL.Text),
1544
- 'token_logo' : IDL.Opt(Image),
1545
- 'token_name' : IDL.Opt(IDL.Text),
1507
+ transaction_fee: IDL.Opt(Tokens),
1508
+ token_symbol: IDL.Opt(IDL.Text),
1509
+ token_logo: IDL.Opt(Image),
1510
+ token_name: IDL.Opt(IDL.Text),
1546
1511
  });
1547
- const Canister = IDL.Record({ 'id' : IDL.Opt(IDL.Principal) });
1512
+ const Canister = IDL.Record({ id: IDL.Opt(IDL.Principal) });
1548
1513
  const NeuronBasketConstructionParameters = IDL.Record({
1549
- 'dissolve_delay_interval' : IDL.Opt(Duration),
1550
- 'count' : IDL.Opt(IDL.Nat64),
1514
+ dissolve_delay_interval: IDL.Opt(Duration),
1515
+ count: IDL.Opt(IDL.Nat64),
1551
1516
  });
1552
1517
  const GlobalTimeOfDay = IDL.Record({
1553
- 'seconds_after_utc_midnight' : IDL.Opt(IDL.Nat64),
1518
+ seconds_after_utc_midnight: IDL.Opt(IDL.Nat64),
1554
1519
  });
1555
- const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
1520
+ const Countries = IDL.Record({ iso_codes: IDL.Vec(IDL.Text) });
1556
1521
  const SwapParameters = IDL.Record({
1557
- 'minimum_participants' : IDL.Opt(IDL.Nat64),
1558
- 'neurons_fund_participation' : IDL.Opt(IDL.Bool),
1559
- 'duration' : IDL.Opt(Duration),
1560
- 'neuron_basket_construction_parameters' : IDL.Opt(
1561
- NeuronBasketConstructionParameters
1522
+ minimum_participants: IDL.Opt(IDL.Nat64),
1523
+ neurons_fund_participation: IDL.Opt(IDL.Bool),
1524
+ duration: IDL.Opt(Duration),
1525
+ neuron_basket_construction_parameters: IDL.Opt(
1526
+ NeuronBasketConstructionParameters,
1562
1527
  ),
1563
- 'confirmation_text' : IDL.Opt(IDL.Text),
1564
- 'maximum_participant_icp' : IDL.Opt(Tokens),
1565
- 'minimum_icp' : IDL.Opt(Tokens),
1566
- 'minimum_direct_participation_icp' : IDL.Opt(Tokens),
1567
- 'minimum_participant_icp' : IDL.Opt(Tokens),
1568
- 'start_time' : IDL.Opt(GlobalTimeOfDay),
1569
- 'maximum_direct_participation_icp' : IDL.Opt(Tokens),
1570
- 'maximum_icp' : IDL.Opt(Tokens),
1571
- 'neurons_fund_investment_icp' : IDL.Opt(Tokens),
1572
- 'restricted_countries' : IDL.Opt(Countries),
1573
- });
1574
- const SwapDistribution = IDL.Record({ 'total' : IDL.Opt(Tokens) });
1528
+ confirmation_text: IDL.Opt(IDL.Text),
1529
+ maximum_participant_icp: IDL.Opt(Tokens),
1530
+ minimum_icp: IDL.Opt(Tokens),
1531
+ minimum_direct_participation_icp: IDL.Opt(Tokens),
1532
+ minimum_participant_icp: IDL.Opt(Tokens),
1533
+ start_time: IDL.Opt(GlobalTimeOfDay),
1534
+ maximum_direct_participation_icp: IDL.Opt(Tokens),
1535
+ maximum_icp: IDL.Opt(Tokens),
1536
+ neurons_fund_investment_icp: IDL.Opt(Tokens),
1537
+ restricted_countries: IDL.Opt(Countries),
1538
+ });
1539
+ const SwapDistribution = IDL.Record({ total: IDL.Opt(Tokens) });
1575
1540
  const NeuronDistribution = IDL.Record({
1576
- 'controller' : IDL.Opt(IDL.Principal),
1577
- 'dissolve_delay' : IDL.Opt(Duration),
1578
- 'memo' : IDL.Opt(IDL.Nat64),
1579
- 'vesting_period' : IDL.Opt(Duration),
1580
- 'stake' : IDL.Opt(Tokens),
1541
+ controller: IDL.Opt(IDL.Principal),
1542
+ dissolve_delay: IDL.Opt(Duration),
1543
+ memo: IDL.Opt(IDL.Nat64),
1544
+ vesting_period: IDL.Opt(Duration),
1545
+ stake: IDL.Opt(Tokens),
1581
1546
  });
1582
1547
  const DeveloperDistribution = IDL.Record({
1583
- 'developer_neurons' : IDL.Vec(NeuronDistribution),
1548
+ developer_neurons: IDL.Vec(NeuronDistribution),
1584
1549
  });
1585
1550
  const InitialTokenDistribution = IDL.Record({
1586
- 'treasury_distribution' : IDL.Opt(SwapDistribution),
1587
- 'developer_distribution' : IDL.Opt(DeveloperDistribution),
1588
- 'swap_distribution' : IDL.Opt(SwapDistribution),
1551
+ treasury_distribution: IDL.Opt(SwapDistribution),
1552
+ developer_distribution: IDL.Opt(DeveloperDistribution),
1553
+ swap_distribution: IDL.Opt(SwapDistribution),
1589
1554
  });
1590
1555
  const CreateServiceNervousSystem = IDL.Record({
1591
- 'url' : IDL.Opt(IDL.Text),
1592
- 'governance_parameters' : IDL.Opt(GovernanceParameters),
1593
- 'fallback_controller_principal_ids' : IDL.Vec(IDL.Principal),
1594
- 'logo' : IDL.Opt(Image),
1595
- 'name' : IDL.Opt(IDL.Text),
1596
- 'ledger_parameters' : IDL.Opt(LedgerParameters),
1597
- 'description' : IDL.Opt(IDL.Text),
1598
- 'dapp_canisters' : IDL.Vec(Canister),
1599
- 'swap_parameters' : IDL.Opt(SwapParameters),
1600
- 'initial_token_distribution' : IDL.Opt(InitialTokenDistribution),
1556
+ url: IDL.Opt(IDL.Text),
1557
+ governance_parameters: IDL.Opt(GovernanceParameters),
1558
+ fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
1559
+ logo: IDL.Opt(Image),
1560
+ name: IDL.Opt(IDL.Text),
1561
+ ledger_parameters: IDL.Opt(LedgerParameters),
1562
+ description: IDL.Opt(IDL.Text),
1563
+ dapp_canisters: IDL.Vec(Canister),
1564
+ swap_parameters: IDL.Opt(SwapParameters),
1565
+ initial_token_distribution: IDL.Opt(InitialTokenDistribution),
1601
1566
  });
1602
1567
  const ExecuteNnsFunction = IDL.Record({
1603
- 'nns_function' : IDL.Int32,
1604
- 'payload' : IDL.Vec(IDL.Nat8),
1568
+ nns_function: IDL.Int32,
1569
+ payload: IDL.Vec(IDL.Nat8),
1605
1570
  });
1606
1571
  const NeuronBasketConstructionParameters_1 = IDL.Record({
1607
- 'dissolve_delay_interval_seconds' : IDL.Nat64,
1608
- 'count' : IDL.Nat64,
1572
+ dissolve_delay_interval_seconds: IDL.Nat64,
1573
+ count: IDL.Nat64,
1609
1574
  });
1610
1575
  const Params = IDL.Record({
1611
- 'min_participant_icp_e8s' : IDL.Nat64,
1612
- 'neuron_basket_construction_parameters' : IDL.Opt(
1613
- NeuronBasketConstructionParameters_1
1576
+ min_participant_icp_e8s: IDL.Nat64,
1577
+ neuron_basket_construction_parameters: IDL.Opt(
1578
+ NeuronBasketConstructionParameters_1,
1614
1579
  ),
1615
- 'max_icp_e8s' : IDL.Nat64,
1616
- 'swap_due_timestamp_seconds' : IDL.Nat64,
1617
- 'min_participants' : IDL.Nat32,
1618
- 'sns_token_e8s' : IDL.Nat64,
1619
- 'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
1620
- 'max_participant_icp_e8s' : IDL.Nat64,
1621
- 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1622
- 'min_icp_e8s' : IDL.Nat64,
1623
- 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1580
+ max_icp_e8s: IDL.Nat64,
1581
+ swap_due_timestamp_seconds: IDL.Nat64,
1582
+ min_participants: IDL.Nat32,
1583
+ sns_token_e8s: IDL.Nat64,
1584
+ sale_delay_seconds: IDL.Opt(IDL.Nat64),
1585
+ max_participant_icp_e8s: IDL.Nat64,
1586
+ min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1587
+ min_icp_e8s: IDL.Nat64,
1588
+ max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
1624
1589
  });
1625
1590
  const OpenSnsTokenSwap = IDL.Record({
1626
- 'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
1627
- 'target_swap_canister_id' : IDL.Opt(IDL.Principal),
1628
- 'params' : IDL.Opt(Params),
1591
+ community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
1592
+ target_swap_canister_id: IDL.Opt(IDL.Principal),
1593
+ params: IDL.Opt(Params),
1629
1594
  });
1630
1595
  const TimeWindow = IDL.Record({
1631
- 'start_timestamp_seconds' : IDL.Nat64,
1632
- 'end_timestamp_seconds' : IDL.Nat64,
1596
+ start_timestamp_seconds: IDL.Nat64,
1597
+ end_timestamp_seconds: IDL.Nat64,
1633
1598
  });
1634
1599
  const SetOpenTimeWindowRequest = IDL.Record({
1635
- 'open_time_window' : IDL.Opt(TimeWindow),
1600
+ open_time_window: IDL.Opt(TimeWindow),
1636
1601
  });
1637
1602
  const SetSnsTokenSwapOpenTimeWindow = IDL.Record({
1638
- 'request' : IDL.Opt(SetOpenTimeWindowRequest),
1639
- 'swap_canister_id' : IDL.Opt(IDL.Principal),
1603
+ request: IDL.Opt(SetOpenTimeWindowRequest),
1604
+ swap_canister_id: IDL.Opt(IDL.Principal),
1640
1605
  });
1641
1606
  const SetDefaultFollowees = IDL.Record({
1642
- 'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1607
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1643
1608
  });
1644
1609
  const RewardNodeProviders = IDL.Record({
1645
- 'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
1646
- 'rewards' : IDL.Vec(RewardNodeProvider),
1610
+ use_registry_derived_rewards: IDL.Opt(IDL.Bool),
1611
+ rewards: IDL.Vec(RewardNodeProvider),
1647
1612
  });
1648
- const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1613
+ const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
1649
1614
  const Change = IDL.Variant({
1650
- 'ToRemove' : NodeProvider,
1651
- 'ToAdd' : NodeProvider,
1615
+ ToRemove: NodeProvider,
1616
+ ToAdd: NodeProvider,
1652
1617
  });
1653
- const AddOrRemoveNodeProvider = IDL.Record({ 'change' : IDL.Opt(Change) });
1654
- const Motion = IDL.Record({ 'motion_text' : IDL.Text });
1618
+ const AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
1619
+ const Motion = IDL.Record({ motion_text: IDL.Text });
1655
1620
  const Action = IDL.Variant({
1656
- 'RegisterKnownNeuron' : KnownNeuron,
1657
- 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest,
1658
- 'ManageNeuron' : ManageNeuron,
1659
- 'UpdateCanisterSettings' : UpdateCanisterSettings,
1660
- 'InstallCode' : InstallCode,
1661
- 'DeregisterKnownNeuron' : DeregisterKnownNeuron,
1662
- 'StopOrStartCanister' : StopOrStartCanister,
1663
- 'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1664
- 'ExecuteNnsFunction' : ExecuteNnsFunction,
1665
- 'RewardNodeProvider' : RewardNodeProvider,
1666
- 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
1667
- 'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
1668
- 'SetDefaultFollowees' : SetDefaultFollowees,
1669
- 'RewardNodeProviders' : RewardNodeProviders,
1670
- 'ManageNetworkEconomics' : NetworkEconomics,
1671
- 'ApproveGenesisKyc' : Principals,
1672
- 'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
1673
- 'Motion' : Motion,
1621
+ RegisterKnownNeuron: KnownNeuron,
1622
+ FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1623
+ ManageNeuron: ManageNeuron,
1624
+ UpdateCanisterSettings: UpdateCanisterSettings,
1625
+ InstallCode: InstallCode,
1626
+ DeregisterKnownNeuron: DeregisterKnownNeuron,
1627
+ StopOrStartCanister: StopOrStartCanister,
1628
+ CreateServiceNervousSystem: CreateServiceNervousSystem,
1629
+ ExecuteNnsFunction: ExecuteNnsFunction,
1630
+ RewardNodeProvider: RewardNodeProvider,
1631
+ OpenSnsTokenSwap: OpenSnsTokenSwap,
1632
+ SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
1633
+ SetDefaultFollowees: SetDefaultFollowees,
1634
+ RewardNodeProviders: RewardNodeProviders,
1635
+ ManageNetworkEconomics: NetworkEconomics,
1636
+ ApproveGenesisKyc: Principals,
1637
+ AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
1638
+ Motion: Motion,
1674
1639
  });
1675
1640
  Proposal.fill(
1676
1641
  IDL.Record({
1677
- 'url' : IDL.Text,
1678
- 'title' : IDL.Opt(IDL.Text),
1679
- 'action' : IDL.Opt(Action),
1680
- 'summary' : IDL.Text,
1681
- })
1642
+ url: IDL.Text,
1643
+ title: IDL.Opt(IDL.Text),
1644
+ action: IDL.Opt(Action),
1645
+ summary: IDL.Text,
1646
+ }),
1682
1647
  );
1683
1648
  const WaitForQuietState = IDL.Record({
1684
- 'current_deadline_timestamp_seconds' : IDL.Nat64,
1649
+ current_deadline_timestamp_seconds: IDL.Nat64,
1685
1650
  });
1686
1651
  const ProposalData = IDL.Record({
1687
- 'id' : IDL.Opt(ProposalId),
1688
- 'topic' : IDL.Opt(IDL.Int32),
1689
- 'failure_reason' : IDL.Opt(GovernanceError),
1690
- 'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1691
- 'proposal_timestamp_seconds' : IDL.Nat64,
1692
- 'reward_event_round' : IDL.Nat64,
1693
- 'failed_timestamp_seconds' : IDL.Nat64,
1694
- 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
1695
- 'reject_cost_e8s' : IDL.Nat64,
1696
- 'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
1697
- 'latest_tally' : IDL.Opt(Tally),
1698
- 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1699
- 'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
1700
- 'decided_timestamp_seconds' : IDL.Nat64,
1701
- 'proposal' : IDL.Opt(Proposal),
1702
- 'proposer' : IDL.Opt(NeuronId),
1703
- 'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
1704
- 'executed_timestamp_seconds' : IDL.Nat64,
1705
- 'original_total_community_fund_maturity_e8s_equivalent' : IDL.Opt(
1706
- IDL.Nat64
1707
- ),
1652
+ id: IDL.Opt(ProposalId),
1653
+ topic: IDL.Opt(IDL.Int32),
1654
+ failure_reason: IDL.Opt(GovernanceError),
1655
+ ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1656
+ proposal_timestamp_seconds: IDL.Nat64,
1657
+ reward_event_round: IDL.Nat64,
1658
+ failed_timestamp_seconds: IDL.Nat64,
1659
+ neurons_fund_data: IDL.Opt(NeuronsFundData),
1660
+ reject_cost_e8s: IDL.Nat64,
1661
+ derived_proposal_information: IDL.Opt(DerivedProposalInformation),
1662
+ latest_tally: IDL.Opt(Tally),
1663
+ total_potential_voting_power: IDL.Opt(IDL.Nat64),
1664
+ sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
1665
+ decided_timestamp_seconds: IDL.Nat64,
1666
+ proposal: IDL.Opt(Proposal),
1667
+ proposer: IDL.Opt(NeuronId),
1668
+ wait_for_quiet_state: IDL.Opt(WaitForQuietState),
1669
+ executed_timestamp_seconds: IDL.Nat64,
1670
+ original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1708
1671
  });
1709
1672
  const Command_2 = IDL.Variant({
1710
- 'Spawn' : NeuronId,
1711
- 'Split' : Split,
1712
- 'Configure' : Configure,
1713
- 'Merge' : Merge,
1714
- 'DisburseToNeuron' : DisburseToNeuron,
1715
- 'SyncCommand' : IDL.Record({}),
1716
- 'ClaimOrRefreshNeuron' : ClaimOrRefresh,
1717
- 'MergeMaturity' : MergeMaturity,
1718
- 'Disburse' : Disburse,
1673
+ Spawn: NeuronId,
1674
+ Split: Split,
1675
+ Configure: Configure,
1676
+ Merge: Merge,
1677
+ DisburseToNeuron: DisburseToNeuron,
1678
+ SyncCommand: IDL.Record({}),
1679
+ ClaimOrRefreshNeuron: ClaimOrRefresh,
1680
+ MergeMaturity: MergeMaturity,
1681
+ Disburse: Disburse,
1719
1682
  });
1720
1683
  const NeuronInFlightCommand = IDL.Record({
1721
- 'command' : IDL.Opt(Command_2),
1722
- 'timestamp' : IDL.Nat64,
1684
+ command: IDL.Opt(Command_2),
1685
+ timestamp: IDL.Nat64,
1723
1686
  });
1724
1687
  const BallotInfo = IDL.Record({
1725
- 'vote' : IDL.Int32,
1726
- 'proposal_id' : IDL.Opt(ProposalId),
1688
+ vote: IDL.Int32,
1689
+ proposal_id: IDL.Opt(ProposalId),
1727
1690
  });
1728
1691
  const MaturityDisbursement = IDL.Record({
1729
- 'account_identifier_to_disburse_to' : IDL.Opt(AccountIdentifier),
1730
- 'timestamp_of_disbursement_seconds' : IDL.Opt(IDL.Nat64),
1731
- 'amount_e8s' : IDL.Opt(IDL.Nat64),
1732
- 'account_to_disburse_to' : IDL.Opt(Account),
1733
- 'finalize_disbursement_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1692
+ account_identifier_to_disburse_to: IDL.Opt(AccountIdentifier),
1693
+ timestamp_of_disbursement_seconds: IDL.Opt(IDL.Nat64),
1694
+ amount_e8s: IDL.Opt(IDL.Nat64),
1695
+ account_to_disburse_to: IDL.Opt(Account),
1696
+ finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
1734
1697
  });
1735
1698
  const DissolveState = IDL.Variant({
1736
- 'DissolveDelaySeconds' : IDL.Nat64,
1737
- 'WhenDissolvedTimestampSeconds' : IDL.Nat64,
1699
+ DissolveDelaySeconds: IDL.Nat64,
1700
+ WhenDissolvedTimestampSeconds: IDL.Nat64,
1738
1701
  });
1739
1702
  const Neuron = IDL.Record({
1740
- 'id' : IDL.Opt(NeuronId),
1741
- 'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1742
- 'controller' : IDL.Opt(IDL.Principal),
1743
- 'recent_ballots' : IDL.Vec(BallotInfo),
1744
- 'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1745
- 'kyc_verified' : IDL.Bool,
1746
- 'potential_voting_power' : IDL.Opt(IDL.Nat64),
1747
- 'neuron_type' : IDL.Opt(IDL.Int32),
1748
- 'not_for_profit' : IDL.Bool,
1749
- 'maturity_e8s_equivalent' : IDL.Nat64,
1750
- 'deciding_voting_power' : IDL.Opt(IDL.Nat64),
1751
- 'cached_neuron_stake_e8s' : IDL.Nat64,
1752
- 'created_timestamp_seconds' : IDL.Nat64,
1753
- 'auto_stake_maturity' : IDL.Opt(IDL.Bool),
1754
- 'aging_since_timestamp_seconds' : IDL.Nat64,
1755
- 'hot_keys' : IDL.Vec(IDL.Principal),
1756
- 'account' : IDL.Vec(IDL.Nat8),
1757
- 'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1758
- 'maturity_disbursements_in_progress' : IDL.Opt(
1759
- IDL.Vec(MaturityDisbursement)
1760
- ),
1761
- 'dissolve_state' : IDL.Opt(DissolveState),
1762
- 'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1763
- 'neuron_fees_e8s' : IDL.Nat64,
1764
- 'visibility' : IDL.Opt(IDL.Int32),
1765
- 'transfer' : IDL.Opt(NeuronStakeTransfer),
1766
- 'known_neuron_data' : IDL.Opt(KnownNeuronData),
1767
- 'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1703
+ id: IDL.Opt(NeuronId),
1704
+ staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
1705
+ controller: IDL.Opt(IDL.Principal),
1706
+ recent_ballots: IDL.Vec(BallotInfo),
1707
+ voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
1708
+ kyc_verified: IDL.Bool,
1709
+ potential_voting_power: IDL.Opt(IDL.Nat64),
1710
+ neuron_type: IDL.Opt(IDL.Int32),
1711
+ not_for_profit: IDL.Bool,
1712
+ maturity_e8s_equivalent: IDL.Nat64,
1713
+ deciding_voting_power: IDL.Opt(IDL.Nat64),
1714
+ cached_neuron_stake_e8s: IDL.Nat64,
1715
+ created_timestamp_seconds: IDL.Nat64,
1716
+ auto_stake_maturity: IDL.Opt(IDL.Bool),
1717
+ aging_since_timestamp_seconds: IDL.Nat64,
1718
+ hot_keys: IDL.Vec(IDL.Principal),
1719
+ account: IDL.Vec(IDL.Nat8),
1720
+ joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
1721
+ maturity_disbursements_in_progress: IDL.Opt(IDL.Vec(MaturityDisbursement)),
1722
+ dissolve_state: IDL.Opt(DissolveState),
1723
+ followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1724
+ neuron_fees_e8s: IDL.Nat64,
1725
+ visibility: IDL.Opt(IDL.Int32),
1726
+ transfer: IDL.Opt(NeuronStakeTransfer),
1727
+ known_neuron_data: IDL.Opt(KnownNeuronData),
1728
+ spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1768
1729
  });
1769
1730
  const Governance = IDL.Record({
1770
- 'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1771
- 'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1772
- MonthlyNodeProviderRewards
1731
+ default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1732
+ most_recent_monthly_node_provider_rewards: IDL.Opt(
1733
+ MonthlyNodeProviderRewards,
1773
1734
  ),
1774
- 'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
1775
- IDL.Nat64
1776
- ),
1777
- 'wait_for_quiet_threshold_seconds' : IDL.Nat64,
1778
- 'metrics' : IDL.Opt(GovernanceCachedMetrics),
1779
- 'neuron_management_voting_period_seconds' : IDL.Opt(IDL.Nat64),
1780
- 'node_providers' : IDL.Vec(NodeProvider),
1781
- 'cached_daily_maturity_modulation_basis_points' : IDL.Opt(IDL.Int32),
1782
- 'economics' : IDL.Opt(NetworkEconomics),
1783
- 'restore_aging_summary' : IDL.Opt(RestoreAgingSummary),
1784
- 'spawning_neurons' : IDL.Opt(IDL.Bool),
1785
- 'latest_reward_event' : IDL.Opt(RewardEvent),
1786
- 'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
1787
- 'short_voting_period_seconds' : IDL.Nat64,
1788
- 'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1789
- 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1790
- 'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
1791
- 'neurons' : IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
1792
- 'genesis_timestamp_seconds' : IDL.Nat64,
1793
- });
1735
+ maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
1736
+ wait_for_quiet_threshold_seconds: IDL.Nat64,
1737
+ metrics: IDL.Opt(GovernanceCachedMetrics),
1738
+ neuron_management_voting_period_seconds: IDL.Opt(IDL.Nat64),
1739
+ node_providers: IDL.Vec(NodeProvider),
1740
+ cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
1741
+ economics: IDL.Opt(NetworkEconomics),
1742
+ restore_aging_summary: IDL.Opt(RestoreAgingSummary),
1743
+ spawning_neurons: IDL.Opt(IDL.Bool),
1744
+ latest_reward_event: IDL.Opt(RewardEvent),
1745
+ to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
1746
+ short_voting_period_seconds: IDL.Nat64,
1747
+ proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1748
+ xdr_conversion_rate: IDL.Opt(XdrConversionRate),
1749
+ in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
1750
+ neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
1751
+ genesis_timestamp_seconds: IDL.Nat64,
1752
+ });
1753
+
1794
1754
  return [Governance];
1795
1755
  };