@airgap/icp 0.13.11-beta.1 → 0.13.11-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.js +18 -0
- package/index.js.map +1 -0
- package/package.json +4 -8
- package/v1/block-explorer/ICPBlockExplorer.d.ts +9 -0
- package/v1/block-explorer/ICPBlockExplorer.js +74 -0
- package/v1/block-explorer/ICPBlockExplorer.js.map +1 -0
- package/v1/index.d.ts +13 -0
- package/v1/index.js +11 -0
- package/v1/index.js.map +1 -0
- package/v1/module/ICPModule.d.ts +15 -0
- package/v1/module/ICPModule.js +107 -0
- package/v1/module/ICPModule.js.map +1 -0
- package/v1/module.d.ts +3 -0
- package/v1/module.js +24 -0
- package/v1/module.js.map +1 -0
- package/v1/protocol/ICPImplementation.d.ts +26 -0
- package/v1/protocol/ICPImplementation.js +344 -0
- package/v1/protocol/ICPImplementation.js.map +1 -0
- package/v1/protocol/ICPProtocol.d.ts +42 -0
- package/v1/protocol/ICPProtocol.js +416 -0
- package/v1/protocol/ICPProtocol.js.map +1 -0
- package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +7 -0
- package/v1/serializer/v3/schemas/converter/transaction-converter.js +21 -0
- package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-icp.d.ts +4 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-icp.js +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-icp.js.map +1 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-icp.d.ts +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-icp.js +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-icp.js.map +1 -0
- package/v1/serializer/v3/schemas/generated/transaction-sign-request-icp.json +32 -0
- package/v1/serializer/v3/schemas/generated/transaction-sign-response-icp.json +19 -0
- package/v1/serializer/v3/serializer-companion.d.ts +14 -0
- package/v1/serializer/v3/serializer-companion.js +174 -0
- package/v1/serializer/v3/serializer-companion.js.map +1 -0
- package/v1/serializer/v3/validators/transaction-validator.d.ts +10 -0
- package/v1/serializer/v3/validators/transaction-validator.js +100 -0
- package/v1/serializer/v3/validators/transaction-validator.js.map +1 -0
- package/v1/serializer/v3/validators/validators.d.ts +5 -0
- package/v1/serializer/v3/validators/validators.js +106 -0
- package/v1/serializer/v3/validators/validators.js.map +1 -0
- package/v1/types/crypto.d.ts +2 -0
- package/v1/types/crypto.js +3 -0
- package/v1/types/crypto.js.map +1 -0
- package/v1/types/governance.d.ts +580 -0
- package/v1/types/governance.js +796 -0
- package/v1/types/governance.js.map +1 -0
- package/v1/types/ledger.d.ts +143 -0
- package/v1/types/ledger.js +146 -0
- package/v1/types/ledger.js.map +1 -0
- package/v1/types/management_idl.d.ts +7 -0
- package/v1/types/management_idl.js +72 -0
- package/v1/types/management_idl.js.map +1 -0
- package/v1/types/protocol.d.ts +8 -0
- package/v1/types/protocol.js +3 -0
- package/v1/types/protocol.js.map +1 -0
- package/v1/types/transaction.d.ts +11 -0
- package/v1/types/transaction.js +3 -0
- package/v1/types/transaction.js.map +1 -0
- package/v1/utils/account.d.ts +24 -0
- package/v1/utils/account.js +112 -0
- package/v1/utils/account.js.map +1 -0
- package/v1/utils/actor.d.ts +246 -0
- package/v1/utils/actor.js +458 -0
- package/v1/utils/actor.js.map +1 -0
- package/v1/utils/agent.d.ts +156 -0
- package/v1/utils/agent.js +16 -0
- package/v1/utils/agent.js.map +1 -0
- package/v1/utils/auth.d.ts +110 -0
- package/v1/utils/auth.js +261 -0
- package/v1/utils/auth.js.map +1 -0
- package/v1/utils/bls.d.ts +38 -0
- package/v1/utils/bls.js +204 -0
- package/v1/utils/bls.js.map +1 -0
- package/v1/utils/buffer.d.ts +70 -0
- package/v1/utils/buffer.js +216 -0
- package/v1/utils/buffer.js.map +1 -0
- package/v1/utils/cbor.d.ts +9 -0
- package/v1/utils/cbor.js +178 -0
- package/v1/utils/cbor.js.map +1 -0
- package/v1/utils/certificate.d.ts +74 -0
- package/v1/utils/certificate.js +396 -0
- package/v1/utils/certificate.js.map +1 -0
- package/v1/utils/convert.d.ts +8 -0
- package/v1/utils/convert.js +80 -0
- package/v1/utils/convert.js.map +1 -0
- package/v1/utils/crypto.d.ts +0 -0
- package/v1/utils/crypto.js +104 -0
- package/v1/utils/crypto.js.map +1 -0
- package/v1/utils/der.d.ts +35 -0
- package/v1/utils/der.js +176 -0
- package/v1/utils/der.js.map +1 -0
- package/v1/utils/errors.d.ts +7 -0
- package/v1/utils/errors.js +38 -0
- package/v1/utils/errors.js.map +1 -0
- package/v1/utils/hdkey.d.ts +13 -0
- package/v1/utils/hdkey.js +265 -0
- package/v1/utils/hdkey.js.map +1 -0
- package/v1/utils/http.d.ts +284 -0
- package/v1/utils/http.js +614 -0
- package/v1/utils/http.js.map +1 -0
- package/v1/utils/idl.d.ts +515 -0
- package/v1/utils/idl.js +2103 -0
- package/v1/utils/idl.js.map +1 -0
- package/v1/utils/leb128.d.ts +63 -0
- package/v1/utils/leb128.js +224 -0
- package/v1/utils/leb128.js.map +1 -0
- package/v1/utils/polling.d.ts +59 -0
- package/v1/utils/polling.js +325 -0
- package/v1/utils/polling.js.map +1 -0
- package/v1/utils/principal.d.ts +58 -0
- package/v1/utils/principal.js +543 -0
- package/v1/utils/principal.js.map +1 -0
- package/v1/utils/secp256k1.d.ts +79 -0
- package/v1/utils/secp256k1.js +278 -0
- package/v1/utils/secp256k1.js.map +1 -0
- package/v1/utils/transaction.d.ts +3 -0
- package/v1/utils/transaction.js +56 -0
- package/v1/utils/transaction.js.map +1 -0
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
import { Principal } from '../utils/principal';
|
|
2
|
+
export interface AccountIdentifier {
|
|
3
|
+
hash: Uint8Array;
|
|
4
|
+
}
|
|
5
|
+
export declare type Action = {
|
|
6
|
+
RegisterKnownNeuron: KnownNeuron;
|
|
7
|
+
} | {
|
|
8
|
+
ManageNeuron: ManageNeuron;
|
|
9
|
+
} | {
|
|
10
|
+
ExecuteNnsFunction: ExecuteNnsFunction;
|
|
11
|
+
} | {
|
|
12
|
+
RewardNodeProvider: RewardNodeProvider;
|
|
13
|
+
} | {
|
|
14
|
+
OpenSnsTokenSwap: OpenSnsTokenSwap;
|
|
15
|
+
} | {
|
|
16
|
+
SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow;
|
|
17
|
+
} | {
|
|
18
|
+
SetDefaultFollowees: SetDefaultFollowees;
|
|
19
|
+
} | {
|
|
20
|
+
RewardNodeProviders: RewardNodeProviders;
|
|
21
|
+
} | {
|
|
22
|
+
ManageNetworkEconomics: NetworkEconomics;
|
|
23
|
+
} | {
|
|
24
|
+
ApproveGenesisKyc: ApproveGenesisKyc;
|
|
25
|
+
} | {
|
|
26
|
+
AddOrRemoveNodeProvider: AddOrRemoveNodeProvider;
|
|
27
|
+
} | {
|
|
28
|
+
Motion: Motion;
|
|
29
|
+
};
|
|
30
|
+
export interface AddHotKey {
|
|
31
|
+
new_hot_key: [] | [Principal];
|
|
32
|
+
}
|
|
33
|
+
export interface AddOrRemoveNodeProvider {
|
|
34
|
+
change: [] | [Change];
|
|
35
|
+
}
|
|
36
|
+
export interface Amount {
|
|
37
|
+
e8s: bigint;
|
|
38
|
+
}
|
|
39
|
+
export interface ApproveGenesisKyc {
|
|
40
|
+
principals: Array<Principal>;
|
|
41
|
+
}
|
|
42
|
+
export interface Ballot {
|
|
43
|
+
vote: number;
|
|
44
|
+
voting_power: bigint;
|
|
45
|
+
}
|
|
46
|
+
export interface BallotInfo {
|
|
47
|
+
vote: number;
|
|
48
|
+
proposal_id: [] | [NeuronId];
|
|
49
|
+
}
|
|
50
|
+
export declare type By = {
|
|
51
|
+
NeuronIdOrSubaccount: {};
|
|
52
|
+
} | {
|
|
53
|
+
MemoAndController: ClaimOrRefreshNeuronFromAccount;
|
|
54
|
+
} | {
|
|
55
|
+
Memo: bigint;
|
|
56
|
+
};
|
|
57
|
+
export interface CfNeuron {
|
|
58
|
+
nns_neuron_id: bigint;
|
|
59
|
+
amount_icp_e8s: bigint;
|
|
60
|
+
}
|
|
61
|
+
export interface CfParticipant {
|
|
62
|
+
hotkey_principal: string;
|
|
63
|
+
cf_neurons: Array<CfNeuron>;
|
|
64
|
+
}
|
|
65
|
+
export declare type Change = {
|
|
66
|
+
ToRemove: NodeProvider;
|
|
67
|
+
} | {
|
|
68
|
+
ToAdd: NodeProvider;
|
|
69
|
+
};
|
|
70
|
+
export interface ChangeAutoStakeMaturity {
|
|
71
|
+
requested_setting_for_auto_stake_maturity: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface ClaimOrRefresh {
|
|
74
|
+
by: [] | [By];
|
|
75
|
+
}
|
|
76
|
+
export interface ClaimOrRefreshNeuronFromAccount {
|
|
77
|
+
controller: [] | [Principal];
|
|
78
|
+
memo: bigint;
|
|
79
|
+
}
|
|
80
|
+
export interface ClaimOrRefreshNeuronFromAccountResponse {
|
|
81
|
+
result: [] | [Result_1];
|
|
82
|
+
}
|
|
83
|
+
export interface ClaimOrRefreshResponse {
|
|
84
|
+
refreshed_neuron_id: [] | [NeuronId];
|
|
85
|
+
}
|
|
86
|
+
export declare type Command = {
|
|
87
|
+
Spawn: Spawn;
|
|
88
|
+
} | {
|
|
89
|
+
Split: Split;
|
|
90
|
+
} | {
|
|
91
|
+
Follow: Follow;
|
|
92
|
+
} | {
|
|
93
|
+
ClaimOrRefresh: ClaimOrRefresh;
|
|
94
|
+
} | {
|
|
95
|
+
Configure: Configure;
|
|
96
|
+
} | {
|
|
97
|
+
RegisterVote: RegisterVote;
|
|
98
|
+
} | {
|
|
99
|
+
Merge: Merge;
|
|
100
|
+
} | {
|
|
101
|
+
DisburseToNeuron: DisburseToNeuron;
|
|
102
|
+
} | {
|
|
103
|
+
MakeProposal: Proposal;
|
|
104
|
+
} | {
|
|
105
|
+
StakeMaturity: StakeMaturity;
|
|
106
|
+
} | {
|
|
107
|
+
MergeMaturity: MergeMaturity;
|
|
108
|
+
} | {
|
|
109
|
+
Disburse: Disburse;
|
|
110
|
+
};
|
|
111
|
+
export declare type Command_1 = {
|
|
112
|
+
Error: GovernanceError;
|
|
113
|
+
} | {
|
|
114
|
+
Spawn: SpawnResponse;
|
|
115
|
+
} | {
|
|
116
|
+
Split: SpawnResponse;
|
|
117
|
+
} | {
|
|
118
|
+
Follow: {};
|
|
119
|
+
} | {
|
|
120
|
+
ClaimOrRefresh: ClaimOrRefreshResponse;
|
|
121
|
+
} | {
|
|
122
|
+
Configure: {};
|
|
123
|
+
} | {
|
|
124
|
+
RegisterVote: {};
|
|
125
|
+
} | {
|
|
126
|
+
Merge: {};
|
|
127
|
+
} | {
|
|
128
|
+
DisburseToNeuron: SpawnResponse;
|
|
129
|
+
} | {
|
|
130
|
+
MakeProposal: MakeProposalResponse;
|
|
131
|
+
} | {
|
|
132
|
+
StakeMaturity: StakeMaturityResponse;
|
|
133
|
+
} | {
|
|
134
|
+
MergeMaturity: MergeMaturityResponse;
|
|
135
|
+
} | {
|
|
136
|
+
Disburse: DisburseResponse;
|
|
137
|
+
};
|
|
138
|
+
export declare type Command_2 = {
|
|
139
|
+
Spawn: NeuronId;
|
|
140
|
+
} | {
|
|
141
|
+
Split: Split;
|
|
142
|
+
} | {
|
|
143
|
+
Configure: Configure;
|
|
144
|
+
} | {
|
|
145
|
+
Merge: Merge;
|
|
146
|
+
} | {
|
|
147
|
+
DisburseToNeuron: DisburseToNeuron;
|
|
148
|
+
} | {
|
|
149
|
+
SyncCommand: {};
|
|
150
|
+
} | {
|
|
151
|
+
ClaimOrRefreshNeuron: ClaimOrRefresh;
|
|
152
|
+
} | {
|
|
153
|
+
MergeMaturity: MergeMaturity;
|
|
154
|
+
} | {
|
|
155
|
+
Disburse: Disburse;
|
|
156
|
+
};
|
|
157
|
+
export interface Committed {
|
|
158
|
+
sns_governance_canister_id: [] | [Principal];
|
|
159
|
+
}
|
|
160
|
+
export interface Configure {
|
|
161
|
+
operation: [] | [Operation];
|
|
162
|
+
}
|
|
163
|
+
export interface Disburse {
|
|
164
|
+
to_account: [] | [AccountIdentifier];
|
|
165
|
+
amount: [] | [Amount];
|
|
166
|
+
}
|
|
167
|
+
export interface DisburseResponse {
|
|
168
|
+
transfer_block_height: bigint;
|
|
169
|
+
}
|
|
170
|
+
export interface DisburseToNeuron {
|
|
171
|
+
dissolve_delay_seconds: bigint;
|
|
172
|
+
kyc_verified: boolean;
|
|
173
|
+
amount_e8s: bigint;
|
|
174
|
+
new_controller: [] | [Principal];
|
|
175
|
+
nonce: bigint;
|
|
176
|
+
}
|
|
177
|
+
export declare type DissolveState = {
|
|
178
|
+
DissolveDelaySeconds: bigint;
|
|
179
|
+
} | {
|
|
180
|
+
WhenDissolvedTimestampSeconds: bigint;
|
|
181
|
+
};
|
|
182
|
+
export interface ExecuteNnsFunction {
|
|
183
|
+
nns_function: number;
|
|
184
|
+
payload: Uint8Array;
|
|
185
|
+
}
|
|
186
|
+
export interface Follow {
|
|
187
|
+
topic: number;
|
|
188
|
+
followees: Array<NeuronId>;
|
|
189
|
+
}
|
|
190
|
+
export interface Followees {
|
|
191
|
+
followees: Array<NeuronId>;
|
|
192
|
+
}
|
|
193
|
+
export interface Governance {
|
|
194
|
+
default_followees: Array<[number, Followees]>;
|
|
195
|
+
most_recent_monthly_node_provider_rewards: [] | [MostRecentMonthlyNodeProviderRewards];
|
|
196
|
+
maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
|
|
197
|
+
wait_for_quiet_threshold_seconds: bigint;
|
|
198
|
+
metrics: [] | [GovernanceCachedMetrics];
|
|
199
|
+
node_providers: Array<NodeProvider>;
|
|
200
|
+
cached_daily_maturity_modulation_basis_points: [] | [number];
|
|
201
|
+
economics: [] | [NetworkEconomics];
|
|
202
|
+
spawning_neurons: [] | [boolean];
|
|
203
|
+
latest_reward_event: [] | [RewardEvent];
|
|
204
|
+
to_claim_transfers: Array<NeuronStakeTransfer>;
|
|
205
|
+
short_voting_period_seconds: bigint;
|
|
206
|
+
proposals: Array<[bigint, ProposalData]>;
|
|
207
|
+
in_flight_commands: Array<[bigint, NeuronInFlightCommand]>;
|
|
208
|
+
neurons: Array<[bigint, Neuron]>;
|
|
209
|
+
genesis_timestamp_seconds: bigint;
|
|
210
|
+
}
|
|
211
|
+
export interface GovernanceCachedMetrics {
|
|
212
|
+
not_dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
|
|
213
|
+
garbage_collectable_neurons_count: bigint;
|
|
214
|
+
neurons_with_invalid_stake_count: bigint;
|
|
215
|
+
not_dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
|
|
216
|
+
total_supply_icp: bigint;
|
|
217
|
+
neurons_with_less_than_6_months_dissolve_delay_count: bigint;
|
|
218
|
+
dissolved_neurons_count: bigint;
|
|
219
|
+
community_fund_total_maturity_e8s_equivalent: bigint;
|
|
220
|
+
total_staked_e8s: bigint;
|
|
221
|
+
not_dissolving_neurons_count: bigint;
|
|
222
|
+
dissolved_neurons_e8s: bigint;
|
|
223
|
+
neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
|
|
224
|
+
dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
|
|
225
|
+
dissolving_neurons_count: bigint;
|
|
226
|
+
dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
|
|
227
|
+
community_fund_total_staked_e8s: bigint;
|
|
228
|
+
timestamp_seconds: bigint;
|
|
229
|
+
}
|
|
230
|
+
export interface GovernanceError {
|
|
231
|
+
error_message: string;
|
|
232
|
+
error_type: number;
|
|
233
|
+
}
|
|
234
|
+
export interface IncreaseDissolveDelay {
|
|
235
|
+
additional_dissolve_delay_seconds: number;
|
|
236
|
+
}
|
|
237
|
+
export interface KnownNeuron {
|
|
238
|
+
id: [] | [NeuronId];
|
|
239
|
+
known_neuron_data: [] | [KnownNeuronData];
|
|
240
|
+
}
|
|
241
|
+
export interface KnownNeuronData {
|
|
242
|
+
name: string;
|
|
243
|
+
description: [] | [string];
|
|
244
|
+
}
|
|
245
|
+
export interface ListKnownNeuronsResponse {
|
|
246
|
+
known_neurons: Array<KnownNeuron>;
|
|
247
|
+
}
|
|
248
|
+
export interface ListNeurons {
|
|
249
|
+
neuron_ids: BigUint64Array;
|
|
250
|
+
include_neurons_readable_by_caller: boolean;
|
|
251
|
+
}
|
|
252
|
+
export interface ListNeuronsResponse {
|
|
253
|
+
neuron_infos: Array<[bigint, NeuronInfo]>;
|
|
254
|
+
full_neurons: Array<Neuron>;
|
|
255
|
+
}
|
|
256
|
+
export interface ListNodeProvidersResponse {
|
|
257
|
+
node_providers: Array<NodeProvider>;
|
|
258
|
+
}
|
|
259
|
+
export interface ListProposalInfo {
|
|
260
|
+
include_reward_status: Int32Array;
|
|
261
|
+
before_proposal: [] | [NeuronId];
|
|
262
|
+
limit: number;
|
|
263
|
+
exclude_topic: Int32Array;
|
|
264
|
+
include_status: Int32Array;
|
|
265
|
+
}
|
|
266
|
+
export interface ListProposalInfoResponse {
|
|
267
|
+
proposal_info: Array<ProposalInfo>;
|
|
268
|
+
}
|
|
269
|
+
export interface MakeProposalResponse {
|
|
270
|
+
proposal_id: [] | [NeuronId];
|
|
271
|
+
}
|
|
272
|
+
export interface ManageNeuron {
|
|
273
|
+
id: [] | [NeuronId];
|
|
274
|
+
command: [] | [Command];
|
|
275
|
+
neuron_id_or_subaccount: [] | [NeuronIdOrSubaccount];
|
|
276
|
+
}
|
|
277
|
+
export interface ManageNeuronResponse {
|
|
278
|
+
command: [] | [Command_1];
|
|
279
|
+
}
|
|
280
|
+
export interface Merge {
|
|
281
|
+
source_neuron_id: [] | [NeuronId];
|
|
282
|
+
}
|
|
283
|
+
export interface MergeMaturity {
|
|
284
|
+
percentage_to_merge: number;
|
|
285
|
+
}
|
|
286
|
+
export interface MergeMaturityResponse {
|
|
287
|
+
merged_maturity_e8s: bigint;
|
|
288
|
+
new_stake_e8s: bigint;
|
|
289
|
+
}
|
|
290
|
+
export interface MostRecentMonthlyNodeProviderRewards {
|
|
291
|
+
timestamp: bigint;
|
|
292
|
+
rewards: Array<RewardNodeProvider>;
|
|
293
|
+
}
|
|
294
|
+
export interface Motion {
|
|
295
|
+
motion_text: string;
|
|
296
|
+
}
|
|
297
|
+
export interface NetworkEconomics {
|
|
298
|
+
neuron_minimum_stake_e8s: bigint;
|
|
299
|
+
max_proposals_to_keep_per_topic: number;
|
|
300
|
+
neuron_management_fee_per_proposal_e8s: bigint;
|
|
301
|
+
reject_cost_e8s: bigint;
|
|
302
|
+
transaction_fee_e8s: bigint;
|
|
303
|
+
neuron_spawn_dissolve_delay_seconds: bigint;
|
|
304
|
+
minimum_icp_xdr_rate: bigint;
|
|
305
|
+
maximum_node_provider_rewards_e8s: bigint;
|
|
306
|
+
}
|
|
307
|
+
export interface Neuron {
|
|
308
|
+
id: [] | [NeuronId];
|
|
309
|
+
staked_maturity_e8s_equivalent: [] | [bigint];
|
|
310
|
+
controller: [] | [Principal];
|
|
311
|
+
recent_ballots: Array<BallotInfo>;
|
|
312
|
+
kyc_verified: boolean;
|
|
313
|
+
not_for_profit: boolean;
|
|
314
|
+
maturity_e8s_equivalent: bigint;
|
|
315
|
+
cached_neuron_stake_e8s: bigint;
|
|
316
|
+
created_timestamp_seconds: bigint;
|
|
317
|
+
auto_stake_maturity: [] | [boolean];
|
|
318
|
+
aging_since_timestamp_seconds: bigint;
|
|
319
|
+
hot_keys: Array<Principal>;
|
|
320
|
+
account: Uint8Array;
|
|
321
|
+
joined_community_fund_timestamp_seconds: [] | [bigint];
|
|
322
|
+
dissolve_state: [] | [DissolveState];
|
|
323
|
+
followees: Array<[number, Followees]>;
|
|
324
|
+
neuron_fees_e8s: bigint;
|
|
325
|
+
transfer: [] | [NeuronStakeTransfer];
|
|
326
|
+
known_neuron_data: [] | [KnownNeuronData];
|
|
327
|
+
spawn_at_timestamp_seconds: [] | [bigint];
|
|
328
|
+
}
|
|
329
|
+
export interface NeuronBasketConstructionParameters {
|
|
330
|
+
dissolve_delay_interval_seconds: bigint;
|
|
331
|
+
count: bigint;
|
|
332
|
+
}
|
|
333
|
+
export interface NeuronId {
|
|
334
|
+
id: bigint;
|
|
335
|
+
}
|
|
336
|
+
export declare type NeuronIdOrSubaccount = {
|
|
337
|
+
Subaccount: Uint8Array;
|
|
338
|
+
} | {
|
|
339
|
+
NeuronId: NeuronId;
|
|
340
|
+
};
|
|
341
|
+
export interface NeuronInFlightCommand {
|
|
342
|
+
command: [] | [Command_2];
|
|
343
|
+
timestamp: bigint;
|
|
344
|
+
}
|
|
345
|
+
export interface NeuronInfo {
|
|
346
|
+
dissolve_delay_seconds: bigint;
|
|
347
|
+
recent_ballots: Array<BallotInfo>;
|
|
348
|
+
created_timestamp_seconds: bigint;
|
|
349
|
+
state: number;
|
|
350
|
+
stake_e8s: bigint;
|
|
351
|
+
joined_community_fund_timestamp_seconds: [] | [bigint];
|
|
352
|
+
retrieved_at_timestamp_seconds: bigint;
|
|
353
|
+
known_neuron_data: [] | [KnownNeuronData];
|
|
354
|
+
voting_power: bigint;
|
|
355
|
+
age_seconds: bigint;
|
|
356
|
+
}
|
|
357
|
+
export interface NeuronStakeTransfer {
|
|
358
|
+
to_subaccount: Uint8Array;
|
|
359
|
+
neuron_stake_e8s: bigint;
|
|
360
|
+
from: [] | [Principal];
|
|
361
|
+
memo: bigint;
|
|
362
|
+
from_subaccount: Uint8Array;
|
|
363
|
+
transfer_timestamp: bigint;
|
|
364
|
+
block_height: bigint;
|
|
365
|
+
}
|
|
366
|
+
export interface NodeProvider {
|
|
367
|
+
id: [] | [Principal];
|
|
368
|
+
reward_account: [] | [AccountIdentifier];
|
|
369
|
+
}
|
|
370
|
+
export interface OpenSnsTokenSwap {
|
|
371
|
+
community_fund_investment_e8s: [] | [bigint];
|
|
372
|
+
target_swap_canister_id: [] | [Principal];
|
|
373
|
+
params: [] | [Params];
|
|
374
|
+
}
|
|
375
|
+
export declare type Operation = {
|
|
376
|
+
RemoveHotKey: RemoveHotKey;
|
|
377
|
+
} | {
|
|
378
|
+
AddHotKey: AddHotKey;
|
|
379
|
+
} | {
|
|
380
|
+
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity;
|
|
381
|
+
} | {
|
|
382
|
+
StopDissolving: {};
|
|
383
|
+
} | {
|
|
384
|
+
StartDissolving: {};
|
|
385
|
+
} | {
|
|
386
|
+
IncreaseDissolveDelay: IncreaseDissolveDelay;
|
|
387
|
+
} | {
|
|
388
|
+
JoinCommunityFund: {};
|
|
389
|
+
} | {
|
|
390
|
+
LeaveCommunityFund: {};
|
|
391
|
+
} | {
|
|
392
|
+
SetDissolveTimestamp: SetDissolveTimestamp;
|
|
393
|
+
};
|
|
394
|
+
export interface Params {
|
|
395
|
+
min_participant_icp_e8s: bigint;
|
|
396
|
+
neuron_basket_construction_parameters: [] | [NeuronBasketConstructionParameters];
|
|
397
|
+
max_icp_e8s: bigint;
|
|
398
|
+
swap_due_timestamp_seconds: bigint;
|
|
399
|
+
min_participants: number;
|
|
400
|
+
sns_token_e8s: bigint;
|
|
401
|
+
max_participant_icp_e8s: bigint;
|
|
402
|
+
min_icp_e8s: bigint;
|
|
403
|
+
}
|
|
404
|
+
export interface Proposal {
|
|
405
|
+
url: string;
|
|
406
|
+
title: [] | [string];
|
|
407
|
+
action: [] | [Action];
|
|
408
|
+
summary: string;
|
|
409
|
+
}
|
|
410
|
+
export interface ProposalData {
|
|
411
|
+
id: [] | [NeuronId];
|
|
412
|
+
failure_reason: [] | [GovernanceError];
|
|
413
|
+
cf_participants: Array<CfParticipant>;
|
|
414
|
+
ballots: Array<[bigint, Ballot]>;
|
|
415
|
+
proposal_timestamp_seconds: bigint;
|
|
416
|
+
reward_event_round: bigint;
|
|
417
|
+
failed_timestamp_seconds: bigint;
|
|
418
|
+
reject_cost_e8s: bigint;
|
|
419
|
+
latest_tally: [] | [Tally];
|
|
420
|
+
sns_token_swap_lifecycle: [] | [number];
|
|
421
|
+
decided_timestamp_seconds: bigint;
|
|
422
|
+
swap_background_information: [] | [SwapBackgroundInformation];
|
|
423
|
+
proposal: [] | [Proposal];
|
|
424
|
+
proposer: [] | [NeuronId];
|
|
425
|
+
wait_for_quiet_state: [] | [WaitForQuietState];
|
|
426
|
+
executed_timestamp_seconds: bigint;
|
|
427
|
+
original_total_community_fund_maturity_e8s_equivalent: [] | [bigint];
|
|
428
|
+
}
|
|
429
|
+
export interface ProposalInfo {
|
|
430
|
+
id: [] | [NeuronId];
|
|
431
|
+
status: number;
|
|
432
|
+
topic: number;
|
|
433
|
+
failure_reason: [] | [GovernanceError];
|
|
434
|
+
ballots: Array<[bigint, Ballot]>;
|
|
435
|
+
proposal_timestamp_seconds: bigint;
|
|
436
|
+
reward_event_round: bigint;
|
|
437
|
+
deadline_timestamp_seconds: [] | [bigint];
|
|
438
|
+
failed_timestamp_seconds: bigint;
|
|
439
|
+
reject_cost_e8s: bigint;
|
|
440
|
+
latest_tally: [] | [Tally];
|
|
441
|
+
reward_status: number;
|
|
442
|
+
decided_timestamp_seconds: bigint;
|
|
443
|
+
proposal: [] | [Proposal];
|
|
444
|
+
proposer: [] | [NeuronId];
|
|
445
|
+
executed_timestamp_seconds: bigint;
|
|
446
|
+
}
|
|
447
|
+
export interface RegisterVote {
|
|
448
|
+
vote: number;
|
|
449
|
+
proposal: [] | [NeuronId];
|
|
450
|
+
}
|
|
451
|
+
export interface RemoveHotKey {
|
|
452
|
+
hot_key_to_remove: [] | [Principal];
|
|
453
|
+
}
|
|
454
|
+
export declare type Result = {
|
|
455
|
+
Ok: null;
|
|
456
|
+
} | {
|
|
457
|
+
Err: GovernanceError;
|
|
458
|
+
};
|
|
459
|
+
export declare type Result_1 = {
|
|
460
|
+
Error: GovernanceError;
|
|
461
|
+
} | {
|
|
462
|
+
NeuronId: NeuronId;
|
|
463
|
+
};
|
|
464
|
+
export declare type Result_2 = {
|
|
465
|
+
Ok: Neuron;
|
|
466
|
+
} | {
|
|
467
|
+
Err: GovernanceError;
|
|
468
|
+
};
|
|
469
|
+
export declare type Result_3 = {
|
|
470
|
+
Ok: RewardNodeProviders;
|
|
471
|
+
} | {
|
|
472
|
+
Err: GovernanceError;
|
|
473
|
+
};
|
|
474
|
+
export declare type Result_4 = {
|
|
475
|
+
Ok: NeuronInfo;
|
|
476
|
+
} | {
|
|
477
|
+
Err: GovernanceError;
|
|
478
|
+
};
|
|
479
|
+
export declare type Result_5 = {
|
|
480
|
+
Ok: NodeProvider;
|
|
481
|
+
} | {
|
|
482
|
+
Err: GovernanceError;
|
|
483
|
+
};
|
|
484
|
+
export declare type Result_6 = {
|
|
485
|
+
Committed: Committed;
|
|
486
|
+
} | {
|
|
487
|
+
Aborted: {};
|
|
488
|
+
};
|
|
489
|
+
export interface RewardEvent {
|
|
490
|
+
day_after_genesis: bigint;
|
|
491
|
+
actual_timestamp_seconds: bigint;
|
|
492
|
+
distributed_e8s_equivalent: bigint;
|
|
493
|
+
settled_proposals: Array<NeuronId>;
|
|
494
|
+
}
|
|
495
|
+
export declare type RewardMode = {
|
|
496
|
+
RewardToNeuron: RewardToNeuron;
|
|
497
|
+
} | {
|
|
498
|
+
RewardToAccount: RewardToAccount;
|
|
499
|
+
};
|
|
500
|
+
export interface RewardNodeProvider {
|
|
501
|
+
node_provider: [] | [NodeProvider];
|
|
502
|
+
reward_mode: [] | [RewardMode];
|
|
503
|
+
amount_e8s: bigint;
|
|
504
|
+
}
|
|
505
|
+
export interface RewardNodeProviders {
|
|
506
|
+
use_registry_derived_rewards: [] | [boolean];
|
|
507
|
+
rewards: Array<RewardNodeProvider>;
|
|
508
|
+
}
|
|
509
|
+
export interface RewardToAccount {
|
|
510
|
+
to_account: [] | [AccountIdentifier];
|
|
511
|
+
}
|
|
512
|
+
export interface RewardToNeuron {
|
|
513
|
+
dissolve_delay_seconds: bigint;
|
|
514
|
+
}
|
|
515
|
+
export interface SetDefaultFollowees {
|
|
516
|
+
default_followees: Array<[number, Followees]>;
|
|
517
|
+
}
|
|
518
|
+
export interface SetDissolveTimestamp {
|
|
519
|
+
dissolve_timestamp_seconds: bigint;
|
|
520
|
+
}
|
|
521
|
+
export interface SetOpenTimeWindowRequest {
|
|
522
|
+
open_time_window: [] | [TimeWindow];
|
|
523
|
+
}
|
|
524
|
+
export interface SetSnsTokenSwapOpenTimeWindow {
|
|
525
|
+
request: [] | [SetOpenTimeWindowRequest];
|
|
526
|
+
swap_canister_id: [] | [Principal];
|
|
527
|
+
}
|
|
528
|
+
export interface SettleCommunityFundParticipation {
|
|
529
|
+
result: [] | [Result_6];
|
|
530
|
+
open_sns_token_swap_proposal_id: [] | [bigint];
|
|
531
|
+
}
|
|
532
|
+
export interface Spawn {
|
|
533
|
+
percentage_to_spawn: [] | [number];
|
|
534
|
+
new_controller: [] | [Principal];
|
|
535
|
+
nonce: [] | [bigint];
|
|
536
|
+
}
|
|
537
|
+
export interface SpawnResponse {
|
|
538
|
+
created_neuron_id: [] | [NeuronId];
|
|
539
|
+
}
|
|
540
|
+
export interface Split {
|
|
541
|
+
amount_e8s: bigint;
|
|
542
|
+
}
|
|
543
|
+
export interface StakeMaturity {
|
|
544
|
+
percentage_to_stake: [] | [number];
|
|
545
|
+
}
|
|
546
|
+
export interface StakeMaturityResponse {
|
|
547
|
+
maturity_e8s: bigint;
|
|
548
|
+
staked_maturity_e8s: bigint;
|
|
549
|
+
}
|
|
550
|
+
export interface SwapBackgroundInformation {
|
|
551
|
+
sns_root_canister_id: [] | [Principal];
|
|
552
|
+
dapp_canister_ids: Array<Principal>;
|
|
553
|
+
fallback_controller_principal_ids: Array<Principal>;
|
|
554
|
+
sns_ledger_archive_canister_ids: Array<Principal>;
|
|
555
|
+
sns_ledger_index_canister_id: [] | [Principal];
|
|
556
|
+
sns_ledger_canister_id: [] | [Principal];
|
|
557
|
+
sns_governance_canister_id: [] | [Principal];
|
|
558
|
+
}
|
|
559
|
+
export interface Tally {
|
|
560
|
+
no: bigint;
|
|
561
|
+
yes: bigint;
|
|
562
|
+
total: bigint;
|
|
563
|
+
timestamp_seconds: bigint;
|
|
564
|
+
}
|
|
565
|
+
export interface TimeWindow {
|
|
566
|
+
start_timestamp_seconds: bigint;
|
|
567
|
+
end_timestamp_seconds: bigint;
|
|
568
|
+
}
|
|
569
|
+
export interface UpdateNodeProvider {
|
|
570
|
+
reward_account: [] | [AccountIdentifier];
|
|
571
|
+
}
|
|
572
|
+
export interface WaitForQuietState {
|
|
573
|
+
current_deadline_timestamp_seconds: bigint;
|
|
574
|
+
}
|
|
575
|
+
export declare const idlFactory: ({ IDL }: {
|
|
576
|
+
IDL: any;
|
|
577
|
+
}) => any;
|
|
578
|
+
export declare const init: ({ IDL }: {
|
|
579
|
+
IDL: any;
|
|
580
|
+
}) => any[];
|