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