@junobuild/functions 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/canisters/_canister.d.ts +17 -0
  2. package/canisters/_constants.d.ts +3 -0
  3. package/canisters/ckbtc/index.d.ts +1 -0
  4. package/canisters/ckbtc/index.js +2 -0
  5. package/canisters/cketh/index.d.ts +1 -0
  6. package/canisters/cketh/index.js +2 -0
  7. package/canisters/cketh/index.js.map +7 -0
  8. package/canisters/cmc/cmc.canister.d.ts +28 -0
  9. package/canisters/cmc/index.d.ts +2 -0
  10. package/canisters/cmc/index.js +2 -0
  11. package/canisters/cmc/index.js.map +7 -0
  12. package/canisters/declarations/_idl.d.ts +16 -0
  13. package/canisters/declarations/_types.d.ts +16 -0
  14. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  15. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
  16. package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  17. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
  18. package/canisters/declarations/cketh/minter.did.d.ts +893 -0
  19. package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
  20. package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  21. package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
  22. package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  23. package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
  24. package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  25. package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
  26. package/canisters/declarations/index.d.ts +2 -0
  27. package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  28. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
  29. package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  30. package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
  31. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  32. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
  33. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  34. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
  35. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  36. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
  37. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  38. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
  39. package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  40. package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
  41. package/canisters/declarations/nns/governance.did.d.ts +1254 -0
  42. package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
  43. package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  44. package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
  45. package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  46. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
  47. package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  48. package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
  49. package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  50. package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
  51. package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  52. package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
  53. package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  54. package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
  55. package/canisters/ic-management/index.d.ts +1 -0
  56. package/canisters/ic-management/index.js +2 -0
  57. package/canisters/ic-management/index.js.map +7 -0
  58. package/canisters/index.d.ts +1 -0
  59. package/canisters/index.js +2 -0
  60. package/canisters/index.js.map +7 -0
  61. package/canisters/ledger/icp/index.d.ts +2 -0
  62. package/canisters/ledger/icp/index.js +2 -0
  63. package/canisters/ledger/icp/index.js.map +7 -0
  64. package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
  65. package/canisters/ledger/icrc/index.d.ts +3 -0
  66. package/canisters/ledger/icrc/index.js +2 -0
  67. package/canisters/ledger/icrc/index.js.map +7 -0
  68. package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
  69. package/canisters/ledger/icrc/schemas.d.ts +11 -0
  70. package/canisters/nns/index.d.ts +1 -0
  71. package/canisters/nns/index.js +2 -0
  72. package/canisters/nns/index.js.map +7 -0
  73. package/canisters/schemas.d.ts +11 -0
  74. package/canisters/sns/index.d.ts +1 -0
  75. package/canisters/sns/index.js +2 -0
  76. package/canisters/sns/index.js.map +7 -0
  77. package/chunk-4C666HHU.js +2 -0
  78. package/chunk-4C666HHU.js.map +7 -0
  79. package/chunk-5NZMOUKF.js +2 -0
  80. package/chunk-5NZMOUKF.js.map +7 -0
  81. package/chunk-BXZ5PSUW.js +2 -0
  82. package/chunk-BXZ5PSUW.js.map +7 -0
  83. package/chunk-EMQQE34V.js +2 -0
  84. package/chunk-EMQQE34V.js.map +7 -0
  85. package/chunk-HANEPD6T.js +2 -0
  86. package/chunk-HANEPD6T.js.map +7 -0
  87. package/chunk-TZVF5LQY.js +2 -0
  88. package/chunk-TZVF5LQY.js.map +7 -0
  89. package/ic-cdk.js +1 -1
  90. package/ic-cdk.js.map +4 -4
  91. package/index.js +1 -1
  92. package/index.js.map +1 -1
  93. package/package.json +39 -2
  94. package/sdk.js +1 -1
  95. package/sdk.js.map +1 -1
  96. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  97. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
  98. package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  99. package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
  100. package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
  101. package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
  102. package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  103. package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
  104. package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  105. package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
  106. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  107. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
  108. package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  109. package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
  110. package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  111. package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
  112. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  113. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
  114. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  115. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
  116. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  117. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
  118. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  119. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
  120. package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  121. package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
  122. package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
  123. package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
  124. package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  125. package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
  126. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  127. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
  128. package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  129. package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
  130. package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  131. package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
  132. package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  133. package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
  134. package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  135. package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
  136. package/global.d.js +0 -1
  137. /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
@@ -0,0 +1,1254 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
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
+
9
+ import type { ActorMethod } from '@icp-sdk/core/agent';
10
+ import type { IDL } from '@icp-sdk/core/candid';
11
+ import type { Principal } from '@icp-sdk/core/principal';
12
+
13
+ export interface Account {
14
+ 'owner' : [] | [Principal],
15
+ 'subaccount' : [] | [Uint8Array],
16
+ }
17
+ export interface AccountIdentifier { 'hash' : Uint8Array }
18
+ export type Action = { 'RegisterKnownNeuron' : KnownNeuron } |
19
+ { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
20
+ { 'ManageNeuron' : ManageNeuron } |
21
+ { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
22
+ { 'InstallCode' : InstallCode } |
23
+ { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
24
+ { 'StopOrStartCanister' : StopOrStartCanister } |
25
+ { 'CreateServiceNervousSystem' : CreateServiceNervousSystem } |
26
+ { 'ExecuteNnsFunction' : ExecuteNnsFunction } |
27
+ { 'RewardNodeProvider' : RewardNodeProvider } |
28
+ { 'OpenSnsTokenSwap' : OpenSnsTokenSwap } |
29
+ { 'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow } |
30
+ { 'SetDefaultFollowees' : SetDefaultFollowees } |
31
+ { 'RewardNodeProviders' : RewardNodeProviders } |
32
+ { 'ManageNetworkEconomics' : NetworkEconomics } |
33
+ { 'ApproveGenesisKyc' : Principals } |
34
+ { 'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider } |
35
+ { 'Motion' : Motion };
36
+ export interface AddHotKey { 'new_hot_key' : [] | [Principal] }
37
+ export interface AddOrRemoveNodeProvider { 'change' : [] | [Change] }
38
+ export interface Amount { 'e8s' : bigint }
39
+ export interface ApproveGenesisKyc { 'principals' : Array<Principal> }
40
+ export interface Ballot { 'vote' : number, 'voting_power' : bigint }
41
+ export interface BallotInfo {
42
+ 'vote' : number,
43
+ 'proposal_id' : [] | [ProposalId],
44
+ }
45
+ export type By = { 'NeuronIdOrSubaccount' : {} } |
46
+ { 'MemoAndController' : ClaimOrRefreshNeuronFromAccount } |
47
+ { 'Memo' : bigint };
48
+ export interface Canister { 'id' : [] | [Principal] }
49
+ export interface CanisterSettings {
50
+ 'freezing_threshold' : [] | [bigint],
51
+ 'wasm_memory_threshold' : [] | [bigint],
52
+ 'controllers' : [] | [Controllers],
53
+ 'log_visibility' : [] | [number],
54
+ 'wasm_memory_limit' : [] | [bigint],
55
+ 'memory_allocation' : [] | [bigint],
56
+ 'compute_allocation' : [] | [bigint],
57
+ }
58
+ export interface CanisterStatusResultV2 {
59
+ 'status' : [] | [number],
60
+ 'freezing_threshold' : [] | [bigint],
61
+ 'controllers' : Array<Principal>,
62
+ 'memory_size' : [] | [bigint],
63
+ 'cycles' : [] | [bigint],
64
+ 'idle_cycles_burned_per_day' : [] | [bigint],
65
+ 'module_hash' : Uint8Array,
66
+ }
67
+ export interface CanisterSummary {
68
+ 'status' : [] | [CanisterStatusResultV2],
69
+ 'canister_id' : [] | [Principal],
70
+ }
71
+ export type Change = { 'ToRemove' : NodeProvider } |
72
+ { 'ToAdd' : NodeProvider };
73
+ export interface ChangeAutoStakeMaturity {
74
+ 'requested_setting_for_auto_stake_maturity' : boolean,
75
+ }
76
+ export interface ClaimOrRefresh { 'by' : [] | [By] }
77
+ export interface ClaimOrRefreshNeuronFromAccount {
78
+ 'controller' : [] | [Principal],
79
+ 'memo' : bigint,
80
+ }
81
+ export interface ClaimOrRefreshNeuronFromAccountResponse {
82
+ 'result' : [] | [Result_1],
83
+ }
84
+ export interface ClaimOrRefreshResponse {
85
+ 'refreshed_neuron_id' : [] | [NeuronId],
86
+ }
87
+ /**
88
+ * KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
89
+ */
90
+ export type Command = { 'Spawn' : Spawn } |
91
+ { 'Split' : Split } |
92
+ { 'Follow' : Follow } |
93
+ { 'DisburseMaturity' : DisburseMaturity } |
94
+ { 'RefreshVotingPower' : RefreshVotingPower } |
95
+ { 'ClaimOrRefresh' : ClaimOrRefresh } |
96
+ { 'Configure' : Configure } |
97
+ { 'RegisterVote' : RegisterVote } |
98
+ { 'Merge' : Merge } |
99
+ { 'DisburseToNeuron' : DisburseToNeuron } |
100
+ { 'SetFollowing' : SetFollowing } |
101
+ { 'MakeProposal' : Proposal } |
102
+ { 'StakeMaturity' : StakeMaturity } |
103
+ { 'MergeMaturity' : MergeMaturity } |
104
+ { 'Disburse' : Disburse };
105
+ export type Command_1 = { 'Error' : GovernanceError } |
106
+ { 'Spawn' : SpawnResponse } |
107
+ { 'Split' : SpawnResponse } |
108
+ { 'Follow' : {} } |
109
+ { 'DisburseMaturity' : DisburseMaturityResponse } |
110
+ { 'RefreshVotingPower' : RefreshVotingPowerResponse } |
111
+ { 'ClaimOrRefresh' : ClaimOrRefreshResponse } |
112
+ { 'Configure' : {} } |
113
+ { 'RegisterVote' : {} } |
114
+ { 'Merge' : MergeResponse } |
115
+ { 'DisburseToNeuron' : SpawnResponse } |
116
+ { 'SetFollowing' : SetFollowingResponse } |
117
+ { 'MakeProposal' : MakeProposalResponse } |
118
+ { 'StakeMaturity' : StakeMaturityResponse } |
119
+ { 'MergeMaturity' : MergeMaturityResponse } |
120
+ { 'Disburse' : DisburseResponse };
121
+ export type Command_2 = { 'Spawn' : NeuronId } |
122
+ { 'Split' : Split } |
123
+ { 'Configure' : Configure } |
124
+ { 'Merge' : Merge } |
125
+ { 'DisburseToNeuron' : DisburseToNeuron } |
126
+ { 'SyncCommand' : {} } |
127
+ { 'ClaimOrRefreshNeuron' : ClaimOrRefresh } |
128
+ { 'MergeMaturity' : MergeMaturity } |
129
+ { 'Disburse' : Disburse };
130
+ export interface Committed {
131
+ 'total_direct_contribution_icp_e8s' : [] | [bigint],
132
+ 'total_neurons_fund_contribution_icp_e8s' : [] | [bigint],
133
+ 'sns_governance_canister_id' : [] | [Principal],
134
+ }
135
+ export interface Committed_1 {
136
+ 'total_direct_participation_icp_e8s' : [] | [bigint],
137
+ 'total_neurons_fund_participation_icp_e8s' : [] | [bigint],
138
+ 'sns_governance_canister_id' : [] | [Principal],
139
+ }
140
+ export interface Configure { 'operation' : [] | [Operation] }
141
+ export interface Controllers { 'controllers' : Array<Principal> }
142
+ export interface Countries { 'iso_codes' : Array<string> }
143
+ export interface CreateServiceNervousSystem {
144
+ 'url' : [] | [string],
145
+ 'governance_parameters' : [] | [GovernanceParameters],
146
+ 'fallback_controller_principal_ids' : Array<Principal>,
147
+ 'logo' : [] | [Image],
148
+ 'name' : [] | [string],
149
+ 'ledger_parameters' : [] | [LedgerParameters],
150
+ 'description' : [] | [string],
151
+ 'dapp_canisters' : Array<Canister>,
152
+ 'swap_parameters' : [] | [SwapParameters],
153
+ 'initial_token_distribution' : [] | [InitialTokenDistribution],
154
+ }
155
+ export interface DateRangeFilter {
156
+ 'start_timestamp_seconds' : [] | [bigint],
157
+ 'end_timestamp_seconds' : [] | [bigint],
158
+ }
159
+ export interface DateUtc { 'day' : number, 'month' : number, 'year' : number }
160
+ export interface Decimal { 'human_readable' : [] | [string] }
161
+ export interface DeregisterKnownNeuron { 'id' : [] | [NeuronId] }
162
+ export interface DerivedProposalInformation {
163
+ 'swap_background_information' : [] | [SwapBackgroundInformation],
164
+ }
165
+ export interface DeveloperDistribution {
166
+ 'developer_neurons' : Array<NeuronDistribution>,
167
+ }
168
+ export interface Disburse {
169
+ 'to_account' : [] | [AccountIdentifier],
170
+ 'amount' : [] | [Amount],
171
+ }
172
+ export interface DisburseMaturity {
173
+ 'to_account_identifier' : [] | [AccountIdentifier],
174
+ 'to_account' : [] | [Account],
175
+ 'percentage_to_disburse' : number,
176
+ }
177
+ export interface DisburseMaturityResponse {
178
+ 'amount_disbursed_e8s' : [] | [bigint],
179
+ }
180
+ export interface DisburseResponse { 'transfer_block_height' : bigint }
181
+ export interface DisburseToNeuron {
182
+ 'dissolve_delay_seconds' : bigint,
183
+ 'kyc_verified' : boolean,
184
+ 'amount_e8s' : bigint,
185
+ 'new_controller' : [] | [Principal],
186
+ 'nonce' : bigint,
187
+ }
188
+ export type DissolveState = { 'DissolveDelaySeconds' : bigint } |
189
+ { 'WhenDissolvedTimestampSeconds' : bigint };
190
+ export interface Duration { 'seconds' : [] | [bigint] }
191
+ export interface ExecuteNnsFunction {
192
+ 'nns_function' : number,
193
+ 'payload' : Uint8Array,
194
+ }
195
+ export interface Follow { 'topic' : number, 'followees' : Array<NeuronId> }
196
+ export interface Followees { 'followees' : Array<NeuronId> }
197
+ export interface FolloweesForTopic {
198
+ 'topic' : [] | [number],
199
+ 'followees' : [] | [Array<NeuronId>],
200
+ }
201
+ /**
202
+ * Creates a rented subnet from a rental request (in the Subnet Rental
203
+ * canister).
204
+ */
205
+ export interface FulfillSubnetRentalRequest {
206
+ /**
207
+ * Identifies which rental request to fulfill.
208
+ *
209
+ * (Identifying the rental request by user works, because a user can have at
210
+ * most one rental request in the Subnet Rental canister).
211
+ */
212
+ 'user' : [] | [Principal],
213
+ /**
214
+ * What software the nodes will run.
215
+ *
216
+ * This must be approved by a prior proposal to bless an IC OS version.
217
+ *
218
+ * This is a FULL git commit ID in the ic repo. (Therefore, it must be a 40
219
+ * character hexidecimal string, not an abbreviated git commit ID.)
220
+ *
221
+ * One way to find a suitable value is with the following command:
222
+ *
223
+ * ic-admin \
224
+ * get-subnet 0 \
225
+ * --nns-urls https://nns.ic0.app \
226
+ * | grep replica_version_id
227
+ *
228
+ * Where to obtain a recent version of ic-admin:
229
+ *
230
+ * https://github.com/dfinity/ic/releases/latest
231
+ */
232
+ 'replica_version_id' : [] | [string],
233
+ /**
234
+ * Which nodes will be members of the subnet.
235
+ */
236
+ 'node_ids' : [] | [Array<Principal>],
237
+ }
238
+ export interface GetNeuronIndexRequest {
239
+ 'page_size' : [] | [number],
240
+ 'exclusive_start_neuron_id' : [] | [NeuronId],
241
+ }
242
+ export type GetNeuronIndexResult = { 'Ok' : NeuronIndexData } |
243
+ { 'Err' : GovernanceError };
244
+ export interface GetNeuronsFundAuditInfoRequest {
245
+ 'nns_proposal_id' : [] | [ProposalId],
246
+ }
247
+ export interface GetNeuronsFundAuditInfoResponse { 'result' : [] | [Result_6] }
248
+ export interface GlobalTimeOfDay {
249
+ 'seconds_after_utc_midnight' : [] | [bigint],
250
+ }
251
+ export interface Governance {
252
+ 'default_followees' : Array<[number, Followees]>,
253
+ 'most_recent_monthly_node_provider_rewards' : [] | [
254
+ MonthlyNodeProviderRewards
255
+ ],
256
+ 'maturity_modulation_last_updated_at_timestamp_seconds' : [] | [bigint],
257
+ 'wait_for_quiet_threshold_seconds' : bigint,
258
+ 'metrics' : [] | [GovernanceCachedMetrics],
259
+ 'neuron_management_voting_period_seconds' : [] | [bigint],
260
+ 'node_providers' : Array<NodeProvider>,
261
+ 'cached_daily_maturity_modulation_basis_points' : [] | [number],
262
+ 'economics' : [] | [NetworkEconomics],
263
+ 'restore_aging_summary' : [] | [RestoreAgingSummary],
264
+ 'spawning_neurons' : [] | [boolean],
265
+ 'latest_reward_event' : [] | [RewardEvent],
266
+ 'to_claim_transfers' : Array<NeuronStakeTransfer>,
267
+ 'short_voting_period_seconds' : bigint,
268
+ 'proposals' : Array<[bigint, ProposalData]>,
269
+ 'xdr_conversion_rate' : [] | [XdrConversionRate],
270
+ 'in_flight_commands' : Array<[bigint, NeuronInFlightCommand]>,
271
+ 'neurons' : Array<[bigint, Neuron]>,
272
+ 'genesis_timestamp_seconds' : bigint,
273
+ }
274
+ export interface GovernanceCachedMetrics {
275
+ 'total_maturity_e8s_equivalent' : bigint,
276
+ 'not_dissolving_neurons_e8s_buckets' : Array<[bigint, number]>,
277
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_sum' : bigint,
278
+ 'garbage_collectable_neurons_count' : bigint,
279
+ 'dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : Array<
280
+ [bigint, number]
281
+ >,
282
+ 'neurons_with_invalid_stake_count' : bigint,
283
+ 'not_dissolving_neurons_count_buckets' : Array<[bigint, bigint]>,
284
+ 'ect_neuron_count' : bigint,
285
+ 'total_supply_icp' : bigint,
286
+ 'neurons_with_less_than_6_months_dissolve_delay_count' : bigint,
287
+ 'dissolved_neurons_count' : bigint,
288
+ 'community_fund_total_maturity_e8s_equivalent' : bigint,
289
+ 'total_staked_e8s_seed' : bigint,
290
+ 'total_staked_maturity_e8s_equivalent_ect' : bigint,
291
+ 'total_staked_e8s' : bigint,
292
+ 'fully_lost_voting_power_neuron_subset_metrics' : [] | [NeuronSubsetMetrics],
293
+ 'not_dissolving_neurons_count' : bigint,
294
+ 'total_locked_e8s' : bigint,
295
+ 'neurons_fund_total_active_neurons' : bigint,
296
+ 'total_voting_power_non_self_authenticating_controller' : [] | [bigint],
297
+ 'total_staked_maturity_e8s_equivalent' : bigint,
298
+ 'not_dissolving_neurons_e8s_buckets_ect' : Array<[bigint, number]>,
299
+ 'spawning_neurons_count' : bigint,
300
+ 'declining_voting_power_neuron_subset_metrics' : [] | [NeuronSubsetMetrics],
301
+ 'total_staked_e8s_ect' : bigint,
302
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : bigint,
303
+ 'dissolved_neurons_e8s' : bigint,
304
+ 'total_staked_e8s_non_self_authenticating_controller' : [] | [bigint],
305
+ 'dissolving_neurons_e8s_buckets_seed' : Array<[bigint, number]>,
306
+ 'neurons_with_less_than_6_months_dissolve_delay_e8s' : bigint,
307
+ 'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : Array<
308
+ [bigint, number]
309
+ >,
310
+ 'dissolving_neurons_count_buckets' : Array<[bigint, bigint]>,
311
+ 'dissolving_neurons_e8s_buckets_ect' : Array<[bigint, number]>,
312
+ 'non_self_authenticating_controller_neuron_subset_metrics' : [] | [
313
+ NeuronSubsetMetrics
314
+ ],
315
+ 'dissolving_neurons_count' : bigint,
316
+ 'dissolving_neurons_e8s_buckets' : Array<[bigint, number]>,
317
+ 'total_staked_maturity_e8s_equivalent_seed' : bigint,
318
+ 'community_fund_total_staked_e8s' : bigint,
319
+ 'not_dissolving_neurons_e8s_buckets_seed' : Array<[bigint, number]>,
320
+ 'public_neuron_subset_metrics' : [] | [NeuronSubsetMetrics],
321
+ 'timestamp_seconds' : bigint,
322
+ 'seed_neuron_count' : bigint,
323
+ }
324
+ export interface GovernanceError {
325
+ 'error_message' : string,
326
+ 'error_type' : number,
327
+ }
328
+ export interface GovernanceParameters {
329
+ 'neuron_maximum_dissolve_delay_bonus' : [] | [Percentage],
330
+ 'neuron_maximum_age_for_age_bonus' : [] | [Duration],
331
+ 'neuron_maximum_dissolve_delay' : [] | [Duration],
332
+ 'neuron_minimum_dissolve_delay_to_vote' : [] | [Duration],
333
+ 'neuron_maximum_age_bonus' : [] | [Percentage],
334
+ 'neuron_minimum_stake' : [] | [Tokens],
335
+ 'proposal_wait_for_quiet_deadline_increase' : [] | [Duration],
336
+ 'proposal_initial_voting_period' : [] | [Duration],
337
+ 'proposal_rejection_fee' : [] | [Tokens],
338
+ 'voting_reward_parameters' : [] | [VotingRewardParameters],
339
+ }
340
+ export interface IdealMatchedParticipationFunction {
341
+ 'serialized_representation' : [] | [string],
342
+ }
343
+ export interface Image { 'base64_encoding' : [] | [string] }
344
+ export interface IncreaseDissolveDelay {
345
+ 'additional_dissolve_delay_seconds' : number,
346
+ }
347
+ export interface InitialTokenDistribution {
348
+ 'treasury_distribution' : [] | [SwapDistribution],
349
+ 'developer_distribution' : [] | [DeveloperDistribution],
350
+ 'swap_distribution' : [] | [SwapDistribution],
351
+ }
352
+ export interface InstallCode {
353
+ 'skip_stopping_before_installing' : [] | [boolean],
354
+ 'wasm_module_hash' : [] | [Uint8Array],
355
+ 'canister_id' : [] | [Principal],
356
+ 'arg_hash' : [] | [Uint8Array],
357
+ 'install_mode' : [] | [number],
358
+ }
359
+ export interface InstallCodeRequest {
360
+ 'arg' : [] | [Uint8Array],
361
+ 'wasm_module' : [] | [Uint8Array],
362
+ 'skip_stopping_before_installing' : [] | [boolean],
363
+ 'canister_id' : [] | [Principal],
364
+ 'install_mode' : [] | [number],
365
+ }
366
+ export interface KnownNeuron {
367
+ 'id' : [] | [NeuronId],
368
+ 'known_neuron_data' : [] | [KnownNeuronData],
369
+ }
370
+ export interface KnownNeuronData {
371
+ 'name' : string,
372
+ /**
373
+ * The first `opt` makes it so that the field can be renamed/deprecated in the future, and
374
+ * the second `opt` makes it so that an older client not recognizing a new variant can still
375
+ * get the rest of the `vec`.
376
+ */
377
+ 'committed_topics' : [] | [Array<[] | [TopicToFollow]>],
378
+ 'description' : [] | [string],
379
+ 'links' : [] | [Array<string>],
380
+ }
381
+ export interface LedgerParameters {
382
+ 'transaction_fee' : [] | [Tokens],
383
+ 'token_symbol' : [] | [string],
384
+ 'token_logo' : [] | [Image],
385
+ 'token_name' : [] | [string],
386
+ }
387
+ export interface ListKnownNeuronsResponse {
388
+ 'known_neurons' : Array<KnownNeuron>,
389
+ }
390
+ export interface ListNeuronVotesRequest {
391
+ /**
392
+ * Only fetch the voting history for proposal whose id `< before_proposal`. This can be used as a
393
+ * pagination token - pass the minimum proposal id as `before_proposal` for the next page.
394
+ */
395
+ 'before_proposal' : [] | [ProposalId],
396
+ /**
397
+ * The maximum number of votes to fetch. The maximum number allowed is 500, and 500 will be used
398
+ * if is set as either null or > 500.
399
+ */
400
+ 'limit' : [] | [bigint],
401
+ /**
402
+ * The neuron id for which the voting history will be returned. Currently, the voting history is
403
+ * only recorded for known neurons.
404
+ */
405
+ 'neuron_id' : [] | [NeuronId],
406
+ }
407
+ export type ListNeuronVotesResponse = {
408
+ 'Ok' : {
409
+ 'votes' : [] | [Array<NeuronVote>],
410
+ /**
411
+ * All the proposals before this id is "finalized", which means if a proposal before this id
412
+ * does not exist in the votes, it will never appear in the voting history, either because the
413
+ * neuron is not eligible to vote on the proposal, or the neuron is not a known neuron at the
414
+ * time of the proposal creation. Therefore, if a client syncs the entire voting history of a
415
+ * certain neuron and store `all_finalized_before_proposal`, it doesn't need to start from
416
+ * scratch the next time - it can stop as soon as they have seen any votes
417
+ * `< all_finalized_before_proposal`.
418
+ */
419
+ 'all_finalized_before_proposal' : [] | [ProposalId],
420
+ }
421
+ } |
422
+ { 'Err' : GovernanceError };
423
+ /**
424
+ * Parameters of the list_neurons method.
425
+ */
426
+ export interface ListNeurons {
427
+ 'page_size' : [] | [bigint],
428
+ /**
429
+ * When a public neuron is a member of the result set, include it in the
430
+ * full_neurons field (of ListNeuronsResponse). This does not affect which
431
+ * neurons are part of the result set.
432
+ */
433
+ 'include_public_neurons_in_full_neurons' : [] | [boolean],
434
+ /**
435
+ * These fields select neurons to be in the result set.
436
+ */
437
+ 'neuron_ids' : BigUint64Array,
438
+ 'page_number' : [] | [bigint],
439
+ /**
440
+ * Only has an effect when include_neurons_readable_by_caller.
441
+ */
442
+ 'include_empty_neurons_readable_by_caller' : [] | [boolean],
443
+ 'neuron_subaccounts' : [] | [Array<NeuronSubaccount>],
444
+ 'include_neurons_readable_by_caller' : boolean,
445
+ }
446
+ /**
447
+ * Output of the list_neurons method.
448
+ */
449
+ export interface ListNeuronsResponse {
450
+ /**
451
+ * Per the NeuronInfo type, this is a redacted view of the neurons in the
452
+ * result set consisting of information that require no special privileges to
453
+ * view.
454
+ */
455
+ 'neuron_infos' : Array<[bigint, NeuronInfo]>,
456
+ /**
457
+ * If the caller has the necessary special privileges (or the neuron is
458
+ * public, and the request sets include_public_neurons_in_full_neurons to
459
+ * true), then all the information about the neurons in the result set is made
460
+ * available here.
461
+ */
462
+ 'full_neurons' : Array<Neuron>,
463
+ 'total_pages_available' : [] | [bigint],
464
+ }
465
+ export interface ListNodeProviderRewardsRequest {
466
+ 'date_filter' : [] | [DateRangeFilter],
467
+ }
468
+ export interface ListNodeProviderRewardsResponse {
469
+ 'rewards' : Array<MonthlyNodeProviderRewards>,
470
+ }
471
+ export interface ListNodeProvidersResponse {
472
+ 'node_providers' : Array<NodeProvider>,
473
+ }
474
+ export interface ListProposalInfoRequest {
475
+ 'include_reward_status' : Int32Array,
476
+ 'omit_large_fields' : [] | [boolean],
477
+ 'before_proposal' : [] | [ProposalId],
478
+ 'limit' : number,
479
+ 'exclude_topic' : Int32Array,
480
+ 'include_all_manage_neuron_proposals' : [] | [boolean],
481
+ 'include_status' : Int32Array,
482
+ }
483
+ export interface ListProposalInfoResponse {
484
+ 'proposal_info' : Array<ProposalInfo>,
485
+ }
486
+ export interface MakeProposalRequest {
487
+ 'url' : string,
488
+ 'title' : [] | [string],
489
+ 'action' : [] | [ProposalActionRequest],
490
+ 'summary' : string,
491
+ }
492
+ export interface MakeProposalResponse {
493
+ 'message' : [] | [string],
494
+ 'proposal_id' : [] | [ProposalId],
495
+ }
496
+ /**
497
+ * Not to be confused with ManageNeuronRequest. (Yes, this is very structurally
498
+ * similar to that, but not actually exactly equivalent.)
499
+ */
500
+ export interface ManageNeuron {
501
+ 'id' : [] | [NeuronId],
502
+ 'command' : [] | [Command],
503
+ 'neuron_id_or_subaccount' : [] | [NeuronIdOrSubaccount],
504
+ }
505
+ /**
506
+ * KEEP THIS IN SYNC WITH COMMAND!
507
+ */
508
+ export type ManageNeuronCommandRequest = { 'Spawn' : Spawn } |
509
+ { 'Split' : Split } |
510
+ { 'Follow' : Follow } |
511
+ { 'DisburseMaturity' : DisburseMaturity } |
512
+ { 'RefreshVotingPower' : RefreshVotingPower } |
513
+ { 'ClaimOrRefresh' : ClaimOrRefresh } |
514
+ { 'Configure' : Configure } |
515
+ { 'RegisterVote' : RegisterVote } |
516
+ { 'Merge' : Merge } |
517
+ { 'DisburseToNeuron' : DisburseToNeuron } |
518
+ { 'SetFollowing' : SetFollowing } |
519
+ { 'MakeProposal' : MakeProposalRequest } |
520
+ { 'StakeMaturity' : StakeMaturity } |
521
+ { 'MergeMaturity' : MergeMaturity } |
522
+ { 'Disburse' : Disburse };
523
+ /**
524
+ * Parameters of the manage_neuron method.
525
+ */
526
+ export interface ManageNeuronRequest {
527
+ /**
528
+ * Deprecated. Use neuron_id_or_subaccount instead.
529
+ */
530
+ 'id' : [] | [NeuronId],
531
+ /**
532
+ * What operation to perform on the neuron.
533
+ */
534
+ 'command' : [] | [ManageNeuronCommandRequest],
535
+ /**
536
+ * Which neuron to operate on.
537
+ */
538
+ 'neuron_id_or_subaccount' : [] | [NeuronIdOrSubaccount],
539
+ }
540
+ /**
541
+ * Output of the manage_neuron method.
542
+ */
543
+ export interface ManageNeuronResponse {
544
+ /**
545
+ * Corresponds to the command field in ManageNeuronRequest, which determines
546
+ * what operation was performed.
547
+ */
548
+ 'command' : [] | [Command_1],
549
+ }
550
+ export interface MaturityDisbursement {
551
+ 'account_identifier_to_disburse_to' : [] | [AccountIdentifier],
552
+ 'timestamp_of_disbursement_seconds' : [] | [bigint],
553
+ 'amount_e8s' : [] | [bigint],
554
+ 'account_to_disburse_to' : [] | [Account],
555
+ 'finalize_disbursement_timestamp_seconds' : [] | [bigint],
556
+ }
557
+ export interface Merge { 'source_neuron_id' : [] | [NeuronId] }
558
+ export interface MergeMaturity { 'percentage_to_merge' : number }
559
+ export interface MergeMaturityResponse {
560
+ 'merged_maturity_e8s' : bigint,
561
+ 'new_stake_e8s' : bigint,
562
+ }
563
+ export interface MergeResponse {
564
+ 'target_neuron' : [] | [Neuron],
565
+ 'source_neuron' : [] | [Neuron],
566
+ 'target_neuron_info' : [] | [NeuronInfo],
567
+ 'source_neuron_info' : [] | [NeuronInfo],
568
+ }
569
+ export interface MonthlyNodeProviderRewards {
570
+ 'minimum_xdr_permyriad_per_icp' : [] | [bigint],
571
+ 'end_date' : [] | [DateUtc],
572
+ 'registry_version' : [] | [bigint],
573
+ 'node_providers' : Array<NodeProvider>,
574
+ 'start_date' : [] | [DateUtc],
575
+ 'timestamp' : bigint,
576
+ 'rewards' : Array<RewardNodeProvider>,
577
+ 'xdr_conversion_rate' : [] | [XdrConversionRate],
578
+ 'maximum_node_provider_rewards_e8s' : [] | [bigint],
579
+ }
580
+ export interface Motion { 'motion_text' : string }
581
+ export interface NetworkEconomics {
582
+ 'neuron_minimum_stake_e8s' : bigint,
583
+ /**
584
+ * Parameters that affect the voting power of neurons.
585
+ */
586
+ 'voting_power_economics' : [] | [VotingPowerEconomics],
587
+ 'max_proposals_to_keep_per_topic' : number,
588
+ 'neuron_management_fee_per_proposal_e8s' : bigint,
589
+ 'reject_cost_e8s' : bigint,
590
+ 'transaction_fee_e8s' : bigint,
591
+ 'neuron_spawn_dissolve_delay_seconds' : bigint,
592
+ 'minimum_icp_xdr_rate' : bigint,
593
+ 'maximum_node_provider_rewards_e8s' : bigint,
594
+ 'neurons_fund_economics' : [] | [NeuronsFundEconomics],
595
+ }
596
+ export interface Neuron {
597
+ 'id' : [] | [NeuronId],
598
+ 'staked_maturity_e8s_equivalent' : [] | [bigint],
599
+ 'controller' : [] | [Principal],
600
+ 'recent_ballots' : Array<BallotInfo>,
601
+ 'voting_power_refreshed_timestamp_seconds' : [] | [bigint],
602
+ 'kyc_verified' : boolean,
603
+ /**
604
+ * The amount of "sway" this neuron can have if it refreshes its voting power
605
+ * frequently enough.
606
+ *
607
+ * Unlike deciding_voting_power, this does NOT take refreshing into account.
608
+ * Rather, this only takes three factors into account:
609
+ *
610
+ * 1. (Net) staked amount - This is the "base" of a neuron's voting power.
611
+ * This primarily consists of the neuron's ICP balance.
612
+ *
613
+ * 2. Age - Neurons with more age have more voting power (all else being
614
+ * equal).
615
+ *
616
+ * 3. Dissolve delay - Neurons with longer dissolve delay have more voting
617
+ * power (all else being equal). Neurons with a dissolve delay of less
618
+ * than six months are not eligible to vote. Therefore, such neurons
619
+ * are considered to have 0 voting power.
620
+ *
621
+ * Per NNS policy, this is opt. Nevertheless, it will never be null.
622
+ */
623
+ 'potential_voting_power' : [] | [bigint],
624
+ 'neuron_type' : [] | [number],
625
+ 'not_for_profit' : boolean,
626
+ 'maturity_e8s_equivalent' : bigint,
627
+ /**
628
+ * The amount of "sway" this neuron has when voting on proposals.
629
+ *
630
+ * When a proposal is created, each eligible neuron gets a "blank" ballot. The
631
+ * amount of voting power in that ballot is set to the neuron's deciding
632
+ * voting power at the time of proposal creation. There are two ways that a
633
+ * proposal can become decided:
634
+ *
635
+ * 1. Early: Either more than half of the total voting power in the ballots
636
+ * votes in favor (then the proposal is approved), or at least half of the
637
+ * votal voting power in the ballots votes against (then, the proposal is
638
+ * rejected).
639
+ *
640
+ * 2. The proposal's voting deadline is reached. At that point, if there is
641
+ * more voting power in favor than against, and at least 3% of the total
642
+ * voting power voted in favor, then the proposal is approved. Otherwise, it
643
+ * is rejected.
644
+ *
645
+ * If a neuron regularly refreshes its voting power, this has the same value
646
+ * as potential_voting_power. Actions that cause a refresh are as follows:
647
+ *
648
+ * 1. voting directly (not via following)
649
+ * 2. set following
650
+ * 3. refresh voting power
651
+ *
652
+ * (All of these actions are performed via the manage_neuron method.)
653
+ *
654
+ * However, if a neuron has not refreshed in a "long" time, this will be less
655
+ * than potential voting power. See VotingPowerEconomics. As a further result
656
+ * of less deciding voting power, not only does it have less influence on the
657
+ * outcome of proposals, the neuron receives less voting rewards (when it
658
+ * votes indirectly via following).
659
+ *
660
+ * For details, see https://dashboard.internetcomputer.org/proposal/132411.
661
+ *
662
+ * Per NNS policy, this is opt. Nevertheless, it will never be null.
663
+ */
664
+ 'deciding_voting_power' : [] | [bigint],
665
+ 'cached_neuron_stake_e8s' : bigint,
666
+ 'created_timestamp_seconds' : bigint,
667
+ 'auto_stake_maturity' : [] | [boolean],
668
+ 'aging_since_timestamp_seconds' : bigint,
669
+ 'hot_keys' : Array<Principal>,
670
+ 'account' : Uint8Array,
671
+ 'joined_community_fund_timestamp_seconds' : [] | [bigint],
672
+ /**
673
+ * The maturity disbursements in progress, i.e. the disbursements that are initiated but not
674
+ * finalized. The finalization happens 7 days after the disbursement is initiated.
675
+ */
676
+ 'maturity_disbursements_in_progress' : [] | [Array<MaturityDisbursement>],
677
+ 'dissolve_state' : [] | [DissolveState],
678
+ 'followees' : Array<[number, Followees]>,
679
+ 'neuron_fees_e8s' : bigint,
680
+ 'visibility' : [] | [number],
681
+ 'transfer' : [] | [NeuronStakeTransfer],
682
+ 'known_neuron_data' : [] | [KnownNeuronData],
683
+ 'spawn_at_timestamp_seconds' : [] | [bigint],
684
+ }
685
+ export interface NeuronBasketConstructionParameters {
686
+ 'dissolve_delay_interval' : [] | [Duration],
687
+ 'count' : [] | [bigint],
688
+ }
689
+ export interface NeuronBasketConstructionParameters_1 {
690
+ 'dissolve_delay_interval_seconds' : bigint,
691
+ 'count' : bigint,
692
+ }
693
+ export interface NeuronDistribution {
694
+ 'controller' : [] | [Principal],
695
+ 'dissolve_delay' : [] | [Duration],
696
+ 'memo' : [] | [bigint],
697
+ 'vesting_period' : [] | [Duration],
698
+ 'stake' : [] | [Tokens],
699
+ }
700
+ export interface NeuronId { 'id' : bigint }
701
+ export type NeuronIdOrSubaccount = { 'Subaccount' : Uint8Array } |
702
+ { 'NeuronId' : NeuronId };
703
+ export interface NeuronInFlightCommand {
704
+ 'command' : [] | [Command_2],
705
+ 'timestamp' : bigint,
706
+ }
707
+ export interface NeuronIndexData { 'neurons' : Array<NeuronInfo> }
708
+ /**
709
+ * A limit view of Neuron that allows some aspects of all neurons to be read by
710
+ * anyone (i.e. without having to be the neuron's controller nor one of its
711
+ * hotkeys).
712
+ *
713
+ * As such, the meaning of each field in this type is generally the same as the
714
+ * one of the same (or at least similar) name in Neuron.
715
+ */
716
+ export interface NeuronInfo {
717
+ 'id' : [] | [NeuronId],
718
+ 'dissolve_delay_seconds' : bigint,
719
+ 'recent_ballots' : Array<BallotInfo>,
720
+ 'voting_power_refreshed_timestamp_seconds' : [] | [bigint],
721
+ 'potential_voting_power' : [] | [bigint],
722
+ 'neuron_type' : [] | [number],
723
+ 'deciding_voting_power' : [] | [bigint],
724
+ 'created_timestamp_seconds' : bigint,
725
+ 'state' : number,
726
+ /**
727
+ * The amount of ICP (and staked maturity) locked in this neuron.
728
+ *
729
+ * This is the foundation of the neuron's voting power.
730
+ *
731
+ * cached_neuron_stake_e8s - neuron_fees_e8s + staked_maturity_e8s_equivalent
732
+ */
733
+ 'stake_e8s' : bigint,
734
+ 'joined_community_fund_timestamp_seconds' : [] | [bigint],
735
+ 'retrieved_at_timestamp_seconds' : bigint,
736
+ 'visibility' : [] | [number],
737
+ 'known_neuron_data' : [] | [KnownNeuronData],
738
+ /**
739
+ * Deprecated. Use either deciding_voting_power or potential_voting_power
740
+ * instead. Has the same value as deciding_voting_power.
741
+ *
742
+ * Previously, if a neuron had < 6 months dissolve delay (making it ineligible
743
+ * to vote), this would not get set to 0 (zero). That was pretty confusing.
744
+ * Now that this is set to deciding_voting_power, this actually does get
745
+ * zeroed out.
746
+ */
747
+ 'voting_power' : bigint,
748
+ 'age_seconds' : bigint,
749
+ }
750
+ export interface NeuronStakeTransfer {
751
+ 'to_subaccount' : Uint8Array,
752
+ 'neuron_stake_e8s' : bigint,
753
+ 'from' : [] | [Principal],
754
+ 'memo' : bigint,
755
+ 'from_subaccount' : Uint8Array,
756
+ 'transfer_timestamp' : bigint,
757
+ 'block_height' : bigint,
758
+ }
759
+ export interface NeuronSubaccount { 'subaccount' : Uint8Array }
760
+ export interface NeuronSubsetMetrics {
761
+ 'total_maturity_e8s_equivalent' : [] | [bigint],
762
+ 'maturity_e8s_equivalent_buckets' : Array<[bigint, bigint]>,
763
+ 'voting_power_buckets' : Array<[bigint, bigint]>,
764
+ 'total_staked_e8s' : [] | [bigint],
765
+ 'count' : [] | [bigint],
766
+ 'deciding_voting_power_buckets' : Array<[bigint, bigint]>,
767
+ 'total_staked_maturity_e8s_equivalent' : [] | [bigint],
768
+ 'total_potential_voting_power' : [] | [bigint],
769
+ 'total_deciding_voting_power' : [] | [bigint],
770
+ 'staked_maturity_e8s_equivalent_buckets' : Array<[bigint, bigint]>,
771
+ 'staked_e8s_buckets' : Array<[bigint, bigint]>,
772
+ 'total_voting_power' : [] | [bigint],
773
+ 'potential_voting_power_buckets' : Array<[bigint, bigint]>,
774
+ 'count_buckets' : Array<[bigint, bigint]>,
775
+ }
776
+ export interface NeuronVote {
777
+ /**
778
+ * The vote of the neuron on the specific proposal id.
779
+ */
780
+ 'vote' : [] | [Vote],
781
+ 'proposal_id' : [] | [ProposalId],
782
+ }
783
+ export interface NeuronsFundAuditInfo {
784
+ 'final_neurons_fund_participation' : [] | [NeuronsFundParticipation],
785
+ 'initial_neurons_fund_participation' : [] | [NeuronsFundParticipation],
786
+ 'neurons_fund_refunds' : [] | [NeuronsFundSnapshot],
787
+ }
788
+ export interface NeuronsFundData {
789
+ 'final_neurons_fund_participation' : [] | [NeuronsFundParticipation],
790
+ 'initial_neurons_fund_participation' : [] | [NeuronsFundParticipation],
791
+ 'neurons_fund_refunds' : [] | [NeuronsFundSnapshot],
792
+ }
793
+ export interface NeuronsFundEconomics {
794
+ 'maximum_icp_xdr_rate' : [] | [Percentage],
795
+ 'neurons_fund_matched_funding_curve_coefficients' : [] | [
796
+ NeuronsFundMatchedFundingCurveCoefficients
797
+ ],
798
+ 'max_theoretical_neurons_fund_participation_amount_xdr' : [] | [Decimal],
799
+ 'minimum_icp_xdr_rate' : [] | [Percentage],
800
+ }
801
+ export interface NeuronsFundMatchedFundingCurveCoefficients {
802
+ 'contribution_threshold_xdr' : [] | [Decimal],
803
+ 'one_third_participation_milestone_xdr' : [] | [Decimal],
804
+ 'full_participation_milestone_xdr' : [] | [Decimal],
805
+ }
806
+ export interface NeuronsFundNeuron {
807
+ 'controller' : [] | [Principal],
808
+ 'hotkeys' : [] | [Principals],
809
+ 'is_capped' : [] | [boolean],
810
+ 'nns_neuron_id' : [] | [bigint],
811
+ 'amount_icp_e8s' : [] | [bigint],
812
+ }
813
+ export interface NeuronsFundNeuronPortion {
814
+ 'controller' : [] | [Principal],
815
+ 'hotkeys' : Array<Principal>,
816
+ 'is_capped' : [] | [boolean],
817
+ 'maturity_equivalent_icp_e8s' : [] | [bigint],
818
+ 'nns_neuron_id' : [] | [NeuronId],
819
+ 'amount_icp_e8s' : [] | [bigint],
820
+ }
821
+ export interface NeuronsFundParticipation {
822
+ 'total_maturity_equivalent_icp_e8s' : [] | [bigint],
823
+ 'intended_neurons_fund_participation_icp_e8s' : [] | [bigint],
824
+ 'direct_participation_icp_e8s' : [] | [bigint],
825
+ 'swap_participation_limits' : [] | [SwapParticipationLimits],
826
+ 'max_neurons_fund_swap_participation_icp_e8s' : [] | [bigint],
827
+ 'neurons_fund_reserves' : [] | [NeuronsFundSnapshot],
828
+ 'ideal_matched_participation_function' : [] | [
829
+ IdealMatchedParticipationFunction
830
+ ],
831
+ 'allocated_neurons_fund_participation_icp_e8s' : [] | [bigint],
832
+ }
833
+ export interface NeuronsFundSnapshot {
834
+ 'neurons_fund_neuron_portions' : Array<NeuronsFundNeuronPortion>,
835
+ }
836
+ export interface NodeProvider {
837
+ 'id' : [] | [Principal],
838
+ 'reward_account' : [] | [AccountIdentifier],
839
+ }
840
+ export interface Ok { 'neurons_fund_audit_info' : [] | [NeuronsFundAuditInfo] }
841
+ export interface Ok_1 {
842
+ 'neurons_fund_neuron_portions' : Array<NeuronsFundNeuron>,
843
+ }
844
+ export interface OpenSnsTokenSwap {
845
+ 'community_fund_investment_e8s' : [] | [bigint],
846
+ 'target_swap_canister_id' : [] | [Principal],
847
+ 'params' : [] | [Params],
848
+ }
849
+ export type Operation = { 'RemoveHotKey' : RemoveHotKey } |
850
+ { 'AddHotKey' : AddHotKey } |
851
+ { 'ChangeAutoStakeMaturity' : ChangeAutoStakeMaturity } |
852
+ { 'StopDissolving' : {} } |
853
+ { 'StartDissolving' : {} } |
854
+ { 'IncreaseDissolveDelay' : IncreaseDissolveDelay } |
855
+ { 'SetVisibility' : SetVisibility } |
856
+ { 'JoinCommunityFund' : {} } |
857
+ { 'LeaveCommunityFund' : {} } |
858
+ { 'SetDissolveTimestamp' : SetDissolveTimestamp };
859
+ export interface Params {
860
+ 'min_participant_icp_e8s' : bigint,
861
+ 'neuron_basket_construction_parameters' : [] | [
862
+ NeuronBasketConstructionParameters_1
863
+ ],
864
+ 'max_icp_e8s' : bigint,
865
+ 'swap_due_timestamp_seconds' : bigint,
866
+ 'min_participants' : number,
867
+ 'sns_token_e8s' : bigint,
868
+ 'sale_delay_seconds' : [] | [bigint],
869
+ 'max_participant_icp_e8s' : bigint,
870
+ 'min_direct_participation_icp_e8s' : [] | [bigint],
871
+ 'min_icp_e8s' : bigint,
872
+ 'max_direct_participation_icp_e8s' : [] | [bigint],
873
+ }
874
+ export interface Percentage { 'basis_points' : [] | [bigint] }
875
+ export interface Principals { 'principals' : Array<Principal> }
876
+ export interface Proposal {
877
+ 'url' : string,
878
+ 'title' : [] | [string],
879
+ 'action' : [] | [Action],
880
+ 'summary' : string,
881
+ }
882
+ export type ProposalActionRequest = { 'RegisterKnownNeuron' : KnownNeuron } |
883
+ { 'FulfillSubnetRentalRequest' : FulfillSubnetRentalRequest } |
884
+ { 'ManageNeuron' : ManageNeuronRequest } |
885
+ { 'UpdateCanisterSettings' : UpdateCanisterSettings } |
886
+ { 'InstallCode' : InstallCodeRequest } |
887
+ { 'DeregisterKnownNeuron' : DeregisterKnownNeuron } |
888
+ { 'StopOrStartCanister' : StopOrStartCanister } |
889
+ { 'CreateServiceNervousSystem' : CreateServiceNervousSystem } |
890
+ { 'ExecuteNnsFunction' : ExecuteNnsFunction } |
891
+ { 'RewardNodeProvider' : RewardNodeProvider } |
892
+ { 'RewardNodeProviders' : RewardNodeProviders } |
893
+ { 'ManageNetworkEconomics' : NetworkEconomics } |
894
+ { 'ApproveGenesisKyc' : Principals } |
895
+ { 'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider } |
896
+ { 'Motion' : Motion };
897
+ export interface ProposalData {
898
+ 'id' : [] | [ProposalId],
899
+ 'topic' : [] | [number],
900
+ 'failure_reason' : [] | [GovernanceError],
901
+ 'ballots' : Array<[bigint, Ballot]>,
902
+ 'proposal_timestamp_seconds' : bigint,
903
+ 'reward_event_round' : bigint,
904
+ 'failed_timestamp_seconds' : bigint,
905
+ 'neurons_fund_data' : [] | [NeuronsFundData],
906
+ 'reject_cost_e8s' : bigint,
907
+ 'derived_proposal_information' : [] | [DerivedProposalInformation],
908
+ 'latest_tally' : [] | [Tally],
909
+ 'total_potential_voting_power' : [] | [bigint],
910
+ 'sns_token_swap_lifecycle' : [] | [number],
911
+ 'decided_timestamp_seconds' : bigint,
912
+ 'proposal' : [] | [Proposal],
913
+ 'proposer' : [] | [NeuronId],
914
+ 'wait_for_quiet_state' : [] | [WaitForQuietState],
915
+ 'executed_timestamp_seconds' : bigint,
916
+ 'original_total_community_fund_maturity_e8s_equivalent' : [] | [bigint],
917
+ }
918
+ export interface ProposalId { 'id' : bigint }
919
+ export interface ProposalInfo {
920
+ 'id' : [] | [ProposalId],
921
+ 'status' : number,
922
+ 'topic' : number,
923
+ 'failure_reason' : [] | [GovernanceError],
924
+ 'ballots' : Array<[bigint, Ballot]>,
925
+ 'proposal_timestamp_seconds' : bigint,
926
+ 'reward_event_round' : bigint,
927
+ 'deadline_timestamp_seconds' : [] | [bigint],
928
+ 'failed_timestamp_seconds' : bigint,
929
+ 'reject_cost_e8s' : bigint,
930
+ 'derived_proposal_information' : [] | [DerivedProposalInformation],
931
+ 'latest_tally' : [] | [Tally],
932
+ 'total_potential_voting_power' : [] | [bigint],
933
+ 'reward_status' : number,
934
+ 'decided_timestamp_seconds' : bigint,
935
+ 'proposal' : [] | [Proposal],
936
+ 'proposer' : [] | [NeuronId],
937
+ 'executed_timestamp_seconds' : bigint,
938
+ }
939
+ /**
940
+ * This is one way for a neuron to make sure that its deciding_voting_power is
941
+ * not less than its potential_voting_power. See the description of those fields
942
+ * in Neuron.
943
+ */
944
+ export type RefreshVotingPower = {};
945
+ export type RefreshVotingPowerResponse = {};
946
+ export interface RegisterVote {
947
+ 'vote' : number,
948
+ 'proposal' : [] | [ProposalId],
949
+ }
950
+ export interface RemoveHotKey { 'hot_key_to_remove' : [] | [Principal] }
951
+ export interface RestoreAgingNeuronGroup {
952
+ 'count' : [] | [bigint],
953
+ 'previous_total_stake_e8s' : [] | [bigint],
954
+ 'current_total_stake_e8s' : [] | [bigint],
955
+ 'group_type' : number,
956
+ }
957
+ export interface RestoreAgingSummary {
958
+ 'groups' : Array<RestoreAgingNeuronGroup>,
959
+ 'timestamp_seconds' : [] | [bigint],
960
+ }
961
+ export type Result = { 'Ok' : null } |
962
+ { 'Err' : GovernanceError };
963
+ export type Result_1 = { 'Error' : GovernanceError } |
964
+ { 'NeuronId' : NeuronId };
965
+ export type Result_10 = { 'Ok' : Ok_1 } |
966
+ { 'Err' : GovernanceError };
967
+ export type Result_2 = { 'Ok' : Neuron } |
968
+ { 'Err' : GovernanceError };
969
+ export type Result_3 = { 'Ok' : GovernanceCachedMetrics } |
970
+ { 'Err' : GovernanceError };
971
+ export type Result_4 = { 'Ok' : MonthlyNodeProviderRewards } |
972
+ { 'Err' : GovernanceError };
973
+ export type Result_5 = { 'Ok' : NeuronInfo } |
974
+ { 'Err' : GovernanceError };
975
+ export type Result_6 = { 'Ok' : Ok } |
976
+ { 'Err' : GovernanceError };
977
+ export type Result_7 = { 'Ok' : NodeProvider } |
978
+ { 'Err' : GovernanceError };
979
+ export type Result_8 = { 'Committed' : Committed } |
980
+ { 'Aborted' : {} };
981
+ export type Result_9 = { 'Committed' : Committed_1 } |
982
+ { 'Aborted' : {} };
983
+ export interface RewardEvent {
984
+ 'rounds_since_last_distribution' : [] | [bigint],
985
+ 'day_after_genesis' : bigint,
986
+ 'actual_timestamp_seconds' : bigint,
987
+ 'total_available_e8s_equivalent' : bigint,
988
+ 'latest_round_available_e8s_equivalent' : [] | [bigint],
989
+ 'distributed_e8s_equivalent' : bigint,
990
+ 'settled_proposals' : Array<ProposalId>,
991
+ }
992
+ export type RewardMode = { 'RewardToNeuron' : RewardToNeuron } |
993
+ { 'RewardToAccount' : RewardToAccount };
994
+ export interface RewardNodeProvider {
995
+ 'node_provider' : [] | [NodeProvider],
996
+ 'reward_mode' : [] | [RewardMode],
997
+ 'amount_e8s' : bigint,
998
+ }
999
+ export interface RewardNodeProviders {
1000
+ 'use_registry_derived_rewards' : [] | [boolean],
1001
+ 'rewards' : Array<RewardNodeProvider>,
1002
+ }
1003
+ export interface RewardToAccount { 'to_account' : [] | [AccountIdentifier] }
1004
+ export interface RewardToNeuron { 'dissolve_delay_seconds' : bigint }
1005
+ export interface SetDefaultFollowees {
1006
+ 'default_followees' : Array<[number, Followees]>,
1007
+ }
1008
+ export interface SetDissolveTimestamp { 'dissolve_timestamp_seconds' : bigint }
1009
+ export interface SetFollowing {
1010
+ 'topic_following' : [] | [Array<FolloweesForTopic>],
1011
+ }
1012
+ export type SetFollowingResponse = {};
1013
+ export interface SetOpenTimeWindowRequest {
1014
+ 'open_time_window' : [] | [TimeWindow],
1015
+ }
1016
+ export interface SetSnsTokenSwapOpenTimeWindow {
1017
+ 'request' : [] | [SetOpenTimeWindowRequest],
1018
+ 'swap_canister_id' : [] | [Principal],
1019
+ }
1020
+ export interface SetVisibility { 'visibility' : [] | [number] }
1021
+ export interface SettleCommunityFundParticipation {
1022
+ 'result' : [] | [Result_8],
1023
+ 'open_sns_token_swap_proposal_id' : [] | [bigint],
1024
+ }
1025
+ export interface SettleNeuronsFundParticipationRequest {
1026
+ 'result' : [] | [Result_9],
1027
+ 'nns_proposal_id' : [] | [bigint],
1028
+ }
1029
+ export interface SettleNeuronsFundParticipationResponse {
1030
+ 'result' : [] | [Result_10],
1031
+ }
1032
+ export interface Spawn {
1033
+ 'percentage_to_spawn' : [] | [number],
1034
+ 'new_controller' : [] | [Principal],
1035
+ 'nonce' : [] | [bigint],
1036
+ }
1037
+ export interface SpawnResponse { 'created_neuron_id' : [] | [NeuronId] }
1038
+ export interface Split { 'memo' : [] | [bigint], 'amount_e8s' : bigint }
1039
+ export interface StakeMaturity { 'percentage_to_stake' : [] | [number] }
1040
+ export interface StakeMaturityResponse {
1041
+ 'maturity_e8s' : bigint,
1042
+ 'staked_maturity_e8s' : bigint,
1043
+ }
1044
+ export interface StopOrStartCanister {
1045
+ 'action' : [] | [number],
1046
+ 'canister_id' : [] | [Principal],
1047
+ }
1048
+ export interface SwapBackgroundInformation {
1049
+ 'ledger_index_canister_summary' : [] | [CanisterSummary],
1050
+ 'fallback_controller_principal_ids' : Array<Principal>,
1051
+ 'ledger_archive_canister_summaries' : Array<CanisterSummary>,
1052
+ 'ledger_canister_summary' : [] | [CanisterSummary],
1053
+ 'swap_canister_summary' : [] | [CanisterSummary],
1054
+ 'governance_canister_summary' : [] | [CanisterSummary],
1055
+ 'root_canister_summary' : [] | [CanisterSummary],
1056
+ 'dapp_canister_summaries' : Array<CanisterSummary>,
1057
+ }
1058
+ export interface SwapDistribution { 'total' : [] | [Tokens] }
1059
+ export interface SwapParameters {
1060
+ 'minimum_participants' : [] | [bigint],
1061
+ 'neurons_fund_participation' : [] | [boolean],
1062
+ 'duration' : [] | [Duration],
1063
+ 'neuron_basket_construction_parameters' : [] | [
1064
+ NeuronBasketConstructionParameters
1065
+ ],
1066
+ 'confirmation_text' : [] | [string],
1067
+ 'maximum_participant_icp' : [] | [Tokens],
1068
+ 'minimum_icp' : [] | [Tokens],
1069
+ 'minimum_direct_participation_icp' : [] | [Tokens],
1070
+ 'minimum_participant_icp' : [] | [Tokens],
1071
+ 'start_time' : [] | [GlobalTimeOfDay],
1072
+ 'maximum_direct_participation_icp' : [] | [Tokens],
1073
+ 'maximum_icp' : [] | [Tokens],
1074
+ 'neurons_fund_investment_icp' : [] | [Tokens],
1075
+ 'restricted_countries' : [] | [Countries],
1076
+ }
1077
+ export interface SwapParticipationLimits {
1078
+ 'min_participant_icp_e8s' : [] | [bigint],
1079
+ 'max_participant_icp_e8s' : [] | [bigint],
1080
+ 'min_direct_participation_icp_e8s' : [] | [bigint],
1081
+ 'max_direct_participation_icp_e8s' : [] | [bigint],
1082
+ }
1083
+ export interface Tally {
1084
+ 'no' : bigint,
1085
+ 'yes' : bigint,
1086
+ 'total' : bigint,
1087
+ 'timestamp_seconds' : bigint,
1088
+ }
1089
+ export interface TimeWindow {
1090
+ 'start_timestamp_seconds' : bigint,
1091
+ 'end_timestamp_seconds' : bigint,
1092
+ }
1093
+ export interface Tokens { 'e8s' : [] | [bigint] }
1094
+ /**
1095
+ * A topic that can be followed. It is almost the same as the topic on the
1096
+ * proposal, except that the `CatchAll` is a special value and following on this
1097
+ * `topic` will let the neuron follow the votes on all topics except for
1098
+ * Governance and SnsAndCommunityFund.
1099
+ */
1100
+ export type TopicToFollow = { 'Kyc' : null } |
1101
+ { 'ServiceNervousSystemManagement' : null } |
1102
+ { 'ApiBoundaryNodeManagement' : null } |
1103
+ { 'ApplicationCanisterManagement' : null } |
1104
+ { 'SubnetRental' : null } |
1105
+ { 'NeuronManagement' : null } |
1106
+ { 'NodeProviderRewards' : null } |
1107
+ { 'SubnetManagement' : null } |
1108
+ { 'ExchangeRate' : null } |
1109
+ { 'CatchAll' : null } |
1110
+ { 'NodeAdmin' : null } |
1111
+ { 'IcOsVersionElection' : null } |
1112
+ { 'ProtocolCanisterManagement' : null } |
1113
+ { 'NetworkEconomics' : null } |
1114
+ { 'IcOsVersionDeployment' : null } |
1115
+ { 'ParticipantManagement' : null } |
1116
+ { 'Governance' : null } |
1117
+ { 'SnsAndCommunityFund' : null };
1118
+ export interface UpdateCanisterSettings {
1119
+ 'canister_id' : [] | [Principal],
1120
+ 'settings' : [] | [CanisterSettings],
1121
+ }
1122
+ export interface UpdateNodeProvider {
1123
+ 'reward_account' : [] | [AccountIdentifier],
1124
+ }
1125
+ export type Vote = { 'No' : null } |
1126
+ { 'Yes' : null } |
1127
+ {
1128
+ /**
1129
+ * Abstentions are recorded as Unspecified.
1130
+ */
1131
+ 'Unspecified' : null
1132
+ };
1133
+ /**
1134
+ * Parameters that affect the voting power of neurons.
1135
+ */
1136
+ export interface VotingPowerEconomics {
1137
+ /**
1138
+ * If a neuron has not "refreshed" its voting power after this amount of time,
1139
+ * its deciding voting power starts decreasing linearly. See also
1140
+ * clear_following_after_seconds.
1141
+ *
1142
+ * For explanation of what "refresh" means in this context, see
1143
+ * https://dashboard.internetcomputer.org/proposal/132411
1144
+ *
1145
+ * Initially, set to 0.5 years. (The nominal length of a year is 365.25 days).
1146
+ */
1147
+ 'start_reducing_voting_power_after_seconds' : [] | [bigint],
1148
+ /**
1149
+ * The minimum dissolve delay a neuron must have in order to be eligible to vote.
1150
+ *
1151
+ * Neurons with a dissolve delay lower than this threshold will not have
1152
+ * voting power, even if they are otherwise active.
1153
+ *
1154
+ * This value is an essential part of the staking mechanism, promoting
1155
+ * long-term alignment with the network's governance.
1156
+ */
1157
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : [] | [bigint],
1158
+ /**
1159
+ * After a neuron has experienced voting power reduction for this amount of
1160
+ * time, a couple of things happen:
1161
+ *
1162
+ * 1. Deciding voting power reaches 0.
1163
+ *
1164
+ * 2. Its following on topics other than NeuronManagement are cleared.
1165
+ *
1166
+ * Initially, set to 1/12 years.
1167
+ */
1168
+ 'clear_following_after_seconds' : [] | [bigint],
1169
+ }
1170
+ export interface VotingRewardParameters {
1171
+ 'reward_rate_transition_duration' : [] | [Duration],
1172
+ 'initial_reward_rate' : [] | [Percentage],
1173
+ 'final_reward_rate' : [] | [Percentage],
1174
+ }
1175
+ export interface WaitForQuietState {
1176
+ 'current_deadline_timestamp_seconds' : bigint,
1177
+ }
1178
+ export interface XdrConversionRate {
1179
+ 'xdr_permyriad_per_icp' : [] | [bigint],
1180
+ 'timestamp_seconds' : [] | [bigint],
1181
+ }
1182
+ export interface _SERVICE {
1183
+ 'claim_gtc_neurons' : ActorMethod<[Principal, Array<NeuronId>], Result>,
1184
+ 'claim_or_refresh_neuron_from_account' : ActorMethod<
1185
+ [ClaimOrRefreshNeuronFromAccount],
1186
+ ClaimOrRefreshNeuronFromAccountResponse
1187
+ >,
1188
+ 'get_build_metadata' : ActorMethod<[], string>,
1189
+ 'get_full_neuron' : ActorMethod<[bigint], Result_2>,
1190
+ 'get_full_neuron_by_id_or_subaccount' : ActorMethod<
1191
+ [NeuronIdOrSubaccount],
1192
+ Result_2
1193
+ >,
1194
+ 'get_latest_reward_event' : ActorMethod<[], RewardEvent>,
1195
+ 'get_metrics' : ActorMethod<[], Result_3>,
1196
+ 'get_monthly_node_provider_rewards' : ActorMethod<[], Result_4>,
1197
+ 'get_most_recent_monthly_node_provider_rewards' : ActorMethod<
1198
+ [],
1199
+ [] | [MonthlyNodeProviderRewards]
1200
+ >,
1201
+ 'get_network_economics_parameters' : ActorMethod<[], NetworkEconomics>,
1202
+ 'get_neuron_ids' : ActorMethod<[], BigUint64Array>,
1203
+ 'get_neuron_index' : ActorMethod<
1204
+ [GetNeuronIndexRequest],
1205
+ GetNeuronIndexResult
1206
+ >,
1207
+ 'get_neuron_info' : ActorMethod<[bigint], Result_5>,
1208
+ 'get_neuron_info_by_id_or_subaccount' : ActorMethod<
1209
+ [NeuronIdOrSubaccount],
1210
+ Result_5
1211
+ >,
1212
+ 'get_neurons_fund_audit_info' : ActorMethod<
1213
+ [GetNeuronsFundAuditInfoRequest],
1214
+ GetNeuronsFundAuditInfoResponse
1215
+ >,
1216
+ 'get_node_provider_by_caller' : ActorMethod<[null], Result_7>,
1217
+ 'get_pending_proposals' : ActorMethod<[], Array<ProposalInfo>>,
1218
+ 'get_proposal_info' : ActorMethod<[bigint], [] | [ProposalInfo]>,
1219
+ 'get_restore_aging_summary' : ActorMethod<[], RestoreAgingSummary>,
1220
+ 'list_known_neurons' : ActorMethod<[], ListKnownNeuronsResponse>,
1221
+ 'list_neuron_votes' : ActorMethod<
1222
+ [ListNeuronVotesRequest],
1223
+ ListNeuronVotesResponse
1224
+ >,
1225
+ 'list_neurons' : ActorMethod<[ListNeurons], ListNeuronsResponse>,
1226
+ 'list_node_provider_rewards' : ActorMethod<
1227
+ [ListNodeProviderRewardsRequest],
1228
+ ListNodeProviderRewardsResponse
1229
+ >,
1230
+ 'list_node_providers' : ActorMethod<[], ListNodeProvidersResponse>,
1231
+ 'list_proposals' : ActorMethod<
1232
+ [ListProposalInfoRequest],
1233
+ ListProposalInfoResponse
1234
+ >,
1235
+ 'manage_neuron' : ActorMethod<[ManageNeuronRequest], ManageNeuronResponse>,
1236
+ 'settle_community_fund_participation' : ActorMethod<
1237
+ [SettleCommunityFundParticipation],
1238
+ Result
1239
+ >,
1240
+ 'settle_neurons_fund_participation' : ActorMethod<
1241
+ [SettleNeuronsFundParticipationRequest],
1242
+ SettleNeuronsFundParticipationResponse
1243
+ >,
1244
+ 'simulate_manage_neuron' : ActorMethod<
1245
+ [ManageNeuronRequest],
1246
+ ManageNeuronResponse
1247
+ >,
1248
+ 'transfer_gtc_neuron' : ActorMethod<[NeuronId, NeuronId], Result>,
1249
+ 'update_node_provider' : ActorMethod<[UpdateNodeProvider], Result>,
1250
+ }
1251
+ export declare const idlService: IDL.ServiceClass;
1252
+ export declare const idlInitArgs: IDL.Type[];
1253
+ export declare const idlFactory: IDL.InterfaceFactory;
1254
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];