@airgap/icp 0.13.11-beta.1 → 0.13.11-beta.2
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,796 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.init = exports.idlFactory = void 0;
|
|
4
|
+
// export interface _SERVICE {
|
|
5
|
+
// claim_gtc_neurons: ActorMethod<[Principal, Array<NeuronId>], Result>;
|
|
6
|
+
// claim_or_refresh_neuron_from_account: ActorMethod<
|
|
7
|
+
// [ClaimOrRefreshNeuronFromAccount],
|
|
8
|
+
// ClaimOrRefreshNeuronFromAccountResponse
|
|
9
|
+
// >;
|
|
10
|
+
// get_build_metadata: ActorMethod<[], string>;
|
|
11
|
+
// get_full_neuron: ActorMethod<[bigint], Result_2>;
|
|
12
|
+
// get_full_neuron_by_id_or_subaccount: ActorMethod<
|
|
13
|
+
// [NeuronIdOrSubaccount],
|
|
14
|
+
// Result_2
|
|
15
|
+
// >;
|
|
16
|
+
// get_monthly_node_provider_rewards: ActorMethod<[], Result_3>;
|
|
17
|
+
// get_most_recent_monthly_node_provider_rewards: ActorMethod<
|
|
18
|
+
// [],
|
|
19
|
+
// [] | [MostRecentMonthlyNodeProviderRewards]
|
|
20
|
+
// >;
|
|
21
|
+
// get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
|
|
22
|
+
// get_neuron_ids: ActorMethod<[], BigUint64Array>;
|
|
23
|
+
// get_neuron_info: ActorMethod<[bigint], Result_4>;
|
|
24
|
+
// get_neuron_info_by_id_or_subaccount: ActorMethod<
|
|
25
|
+
// [NeuronIdOrSubaccount],
|
|
26
|
+
// Result_4
|
|
27
|
+
// >;
|
|
28
|
+
// get_node_provider_by_caller: ActorMethod<[null], Result_5>;
|
|
29
|
+
// get_pending_proposals: ActorMethod<[], Array<ProposalInfo>>;
|
|
30
|
+
// get_proposal_info: ActorMethod<[bigint], [] | [ProposalInfo]>;
|
|
31
|
+
// list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>;
|
|
32
|
+
// list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
|
|
33
|
+
// list_node_providers: ActorMethod<[], ListNodeProvidersResponse>;
|
|
34
|
+
// list_proposals: ActorMethod<[ListProposalInfo], ListProposalInfoResponse>;
|
|
35
|
+
// manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
|
|
36
|
+
// settle_community_fund_participation: ActorMethod<
|
|
37
|
+
// [SettleCommunityFundParticipation],
|
|
38
|
+
// Result
|
|
39
|
+
// >;
|
|
40
|
+
// transfer_gtc_neuron: ActorMethod<[NeuronId, NeuronId], Result>;
|
|
41
|
+
// update_node_provider: ActorMethod<[UpdateNodeProvider], Result>;
|
|
42
|
+
// }
|
|
43
|
+
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/nns/candid/governance.did */
|
|
44
|
+
var idlFactory = function (_a) {
|
|
45
|
+
var IDL = _a.IDL;
|
|
46
|
+
var Proposal = IDL.Rec();
|
|
47
|
+
var NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
48
|
+
var Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
49
|
+
var AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
50
|
+
var NodeProvider = IDL.Record({
|
|
51
|
+
id: IDL.Opt(IDL.Principal),
|
|
52
|
+
reward_account: IDL.Opt(AccountIdentifier)
|
|
53
|
+
});
|
|
54
|
+
var RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
|
|
55
|
+
var RewardToAccount = IDL.Record({
|
|
56
|
+
to_account: IDL.Opt(AccountIdentifier)
|
|
57
|
+
});
|
|
58
|
+
var RewardMode = IDL.Variant({
|
|
59
|
+
RewardToNeuron: RewardToNeuron,
|
|
60
|
+
RewardToAccount: RewardToAccount
|
|
61
|
+
});
|
|
62
|
+
var RewardNodeProvider = IDL.Record({
|
|
63
|
+
node_provider: IDL.Opt(NodeProvider),
|
|
64
|
+
reward_mode: IDL.Opt(RewardMode),
|
|
65
|
+
amount_e8s: IDL.Nat64
|
|
66
|
+
});
|
|
67
|
+
var MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
68
|
+
timestamp: IDL.Nat64,
|
|
69
|
+
rewards: IDL.Vec(RewardNodeProvider)
|
|
70
|
+
});
|
|
71
|
+
var NetworkEconomics = IDL.Record({
|
|
72
|
+
neuron_minimum_stake_e8s: IDL.Nat64,
|
|
73
|
+
max_proposals_to_keep_per_topic: IDL.Nat32,
|
|
74
|
+
neuron_management_fee_per_proposal_e8s: IDL.Nat64,
|
|
75
|
+
reject_cost_e8s: IDL.Nat64,
|
|
76
|
+
transaction_fee_e8s: IDL.Nat64,
|
|
77
|
+
neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
|
|
78
|
+
minimum_icp_xdr_rate: IDL.Nat64,
|
|
79
|
+
maximum_node_provider_rewards_e8s: IDL.Nat64
|
|
80
|
+
});
|
|
81
|
+
var NeuronStakeTransfer = IDL.Record({
|
|
82
|
+
to_subaccount: IDL.Vec(IDL.Nat8),
|
|
83
|
+
neuron_stake_e8s: IDL.Nat64,
|
|
84
|
+
from: IDL.Opt(IDL.Principal),
|
|
85
|
+
memo: IDL.Nat64,
|
|
86
|
+
from_subaccount: IDL.Vec(IDL.Nat8),
|
|
87
|
+
transfer_timestamp: IDL.Nat64,
|
|
88
|
+
block_height: IDL.Nat64
|
|
89
|
+
});
|
|
90
|
+
var GovernanceError = IDL.Record({
|
|
91
|
+
error_message: IDL.Text,
|
|
92
|
+
error_type: IDL.Int32
|
|
93
|
+
});
|
|
94
|
+
var Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
|
|
95
|
+
var Tally = IDL.Record({
|
|
96
|
+
no: IDL.Nat64,
|
|
97
|
+
yes: IDL.Nat64,
|
|
98
|
+
total: IDL.Nat64,
|
|
99
|
+
timestamp_seconds: IDL.Nat64
|
|
100
|
+
});
|
|
101
|
+
var KnownNeuronData = IDL.Record({
|
|
102
|
+
name: IDL.Text,
|
|
103
|
+
description: IDL.Opt(IDL.Text)
|
|
104
|
+
});
|
|
105
|
+
var KnownNeuron = IDL.Record({
|
|
106
|
+
id: IDL.Opt(NeuronId),
|
|
107
|
+
known_neuron_data: IDL.Opt(KnownNeuronData)
|
|
108
|
+
});
|
|
109
|
+
var Spawn = IDL.Record({
|
|
110
|
+
percentage_to_spawn: IDL.Opt(IDL.Nat32),
|
|
111
|
+
new_controller: IDL.Opt(IDL.Principal),
|
|
112
|
+
nonce: IDL.Opt(IDL.Nat64)
|
|
113
|
+
});
|
|
114
|
+
var Split = IDL.Record({ amount_e8s: IDL.Nat64 });
|
|
115
|
+
var Follow = IDL.Record({
|
|
116
|
+
topic: IDL.Int32,
|
|
117
|
+
followees: IDL.Vec(NeuronId)
|
|
118
|
+
});
|
|
119
|
+
var ClaimOrRefreshNeuronFromAccount = IDL.Record({
|
|
120
|
+
controller: IDL.Opt(IDL.Principal),
|
|
121
|
+
memo: IDL.Nat64
|
|
122
|
+
});
|
|
123
|
+
var By = IDL.Variant({
|
|
124
|
+
NeuronIdOrSubaccount: IDL.Record({}),
|
|
125
|
+
MemoAndController: ClaimOrRefreshNeuronFromAccount,
|
|
126
|
+
Memo: IDL.Nat64
|
|
127
|
+
});
|
|
128
|
+
var ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
|
|
129
|
+
var RemoveHotKey = IDL.Record({
|
|
130
|
+
hot_key_to_remove: IDL.Opt(IDL.Principal)
|
|
131
|
+
});
|
|
132
|
+
var AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
|
|
133
|
+
var ChangeAutoStakeMaturity = IDL.Record({
|
|
134
|
+
requested_setting_for_auto_stake_maturity: IDL.Bool
|
|
135
|
+
});
|
|
136
|
+
var IncreaseDissolveDelay = IDL.Record({
|
|
137
|
+
additional_dissolve_delay_seconds: IDL.Nat32
|
|
138
|
+
});
|
|
139
|
+
var SetDissolveTimestamp = IDL.Record({
|
|
140
|
+
dissolve_timestamp_seconds: IDL.Nat64
|
|
141
|
+
});
|
|
142
|
+
var Operation = IDL.Variant({
|
|
143
|
+
RemoveHotKey: RemoveHotKey,
|
|
144
|
+
AddHotKey: AddHotKey,
|
|
145
|
+
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
|
|
146
|
+
StopDissolving: IDL.Record({}),
|
|
147
|
+
StartDissolving: IDL.Record({}),
|
|
148
|
+
IncreaseDissolveDelay: IncreaseDissolveDelay,
|
|
149
|
+
JoinCommunityFund: IDL.Record({}),
|
|
150
|
+
LeaveCommunityFund: IDL.Record({}),
|
|
151
|
+
SetDissolveTimestamp: SetDissolveTimestamp
|
|
152
|
+
});
|
|
153
|
+
var Configure = IDL.Record({ operation: IDL.Opt(Operation) });
|
|
154
|
+
var RegisterVote = IDL.Record({
|
|
155
|
+
vote: IDL.Int32,
|
|
156
|
+
proposal: IDL.Opt(NeuronId)
|
|
157
|
+
});
|
|
158
|
+
var Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
|
|
159
|
+
var DisburseToNeuron = IDL.Record({
|
|
160
|
+
dissolve_delay_seconds: IDL.Nat64,
|
|
161
|
+
kyc_verified: IDL.Bool,
|
|
162
|
+
amount_e8s: IDL.Nat64,
|
|
163
|
+
new_controller: IDL.Opt(IDL.Principal),
|
|
164
|
+
nonce: IDL.Nat64
|
|
165
|
+
});
|
|
166
|
+
var StakeMaturity = IDL.Record({
|
|
167
|
+
percentage_to_stake: IDL.Opt(IDL.Nat32)
|
|
168
|
+
});
|
|
169
|
+
var MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
|
|
170
|
+
var Amount = IDL.Record({ e8s: IDL.Nat64 });
|
|
171
|
+
var Disburse = IDL.Record({
|
|
172
|
+
to_account: IDL.Opt(AccountIdentifier),
|
|
173
|
+
amount: IDL.Opt(Amount)
|
|
174
|
+
});
|
|
175
|
+
var Command = IDL.Variant({
|
|
176
|
+
Spawn: Spawn,
|
|
177
|
+
Split: Split,
|
|
178
|
+
Follow: Follow,
|
|
179
|
+
ClaimOrRefresh: ClaimOrRefresh,
|
|
180
|
+
Configure: Configure,
|
|
181
|
+
RegisterVote: RegisterVote,
|
|
182
|
+
Merge: Merge,
|
|
183
|
+
DisburseToNeuron: DisburseToNeuron,
|
|
184
|
+
MakeProposal: Proposal,
|
|
185
|
+
StakeMaturity: StakeMaturity,
|
|
186
|
+
MergeMaturity: MergeMaturity,
|
|
187
|
+
Disburse: Disburse
|
|
188
|
+
});
|
|
189
|
+
var NeuronIdOrSubaccount = IDL.Variant({
|
|
190
|
+
Subaccount: IDL.Vec(IDL.Nat8),
|
|
191
|
+
NeuronId: NeuronId
|
|
192
|
+
});
|
|
193
|
+
var ManageNeuron = IDL.Record({
|
|
194
|
+
id: IDL.Opt(NeuronId),
|
|
195
|
+
command: IDL.Opt(Command),
|
|
196
|
+
neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
|
|
197
|
+
});
|
|
198
|
+
var ExecuteNnsFunction = IDL.Record({
|
|
199
|
+
nns_function: IDL.Int32,
|
|
200
|
+
payload: IDL.Vec(IDL.Nat8)
|
|
201
|
+
});
|
|
202
|
+
var NeuronBasketConstructionParameters = IDL.Record({
|
|
203
|
+
dissolve_delay_interval_seconds: IDL.Nat64,
|
|
204
|
+
count: IDL.Nat64
|
|
205
|
+
});
|
|
206
|
+
var Params = IDL.Record({
|
|
207
|
+
min_participant_icp_e8s: IDL.Nat64,
|
|
208
|
+
neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
|
|
209
|
+
max_icp_e8s: IDL.Nat64,
|
|
210
|
+
swap_due_timestamp_seconds: IDL.Nat64,
|
|
211
|
+
min_participants: IDL.Nat32,
|
|
212
|
+
sns_token_e8s: IDL.Nat64,
|
|
213
|
+
max_participant_icp_e8s: IDL.Nat64,
|
|
214
|
+
min_icp_e8s: IDL.Nat64
|
|
215
|
+
});
|
|
216
|
+
var OpenSnsTokenSwap = IDL.Record({
|
|
217
|
+
community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
|
|
218
|
+
target_swap_canister_id: IDL.Opt(IDL.Principal),
|
|
219
|
+
params: IDL.Opt(Params)
|
|
220
|
+
});
|
|
221
|
+
var TimeWindow = IDL.Record({
|
|
222
|
+
start_timestamp_seconds: IDL.Nat64,
|
|
223
|
+
end_timestamp_seconds: IDL.Nat64
|
|
224
|
+
});
|
|
225
|
+
var SetOpenTimeWindowRequest = IDL.Record({
|
|
226
|
+
open_time_window: IDL.Opt(TimeWindow)
|
|
227
|
+
});
|
|
228
|
+
var SetSnsTokenSwapOpenTimeWindow = IDL.Record({
|
|
229
|
+
request: IDL.Opt(SetOpenTimeWindowRequest),
|
|
230
|
+
swap_canister_id: IDL.Opt(IDL.Principal)
|
|
231
|
+
});
|
|
232
|
+
var SetDefaultFollowees = IDL.Record({
|
|
233
|
+
default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees))
|
|
234
|
+
});
|
|
235
|
+
var RewardNodeProviders = IDL.Record({
|
|
236
|
+
use_registry_derived_rewards: IDL.Opt(IDL.Bool),
|
|
237
|
+
rewards: IDL.Vec(RewardNodeProvider)
|
|
238
|
+
});
|
|
239
|
+
var ApproveGenesisKyc = IDL.Record({
|
|
240
|
+
principals: IDL.Vec(IDL.Principal)
|
|
241
|
+
});
|
|
242
|
+
var Change = IDL.Variant({
|
|
243
|
+
ToRemove: NodeProvider,
|
|
244
|
+
ToAdd: NodeProvider
|
|
245
|
+
});
|
|
246
|
+
var AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
|
|
247
|
+
var Motion = IDL.Record({ motion_text: IDL.Text });
|
|
248
|
+
var Action = IDL.Variant({
|
|
249
|
+
RegisterKnownNeuron: KnownNeuron,
|
|
250
|
+
ManageNeuron: ManageNeuron,
|
|
251
|
+
ExecuteNnsFunction: ExecuteNnsFunction,
|
|
252
|
+
RewardNodeProvider: RewardNodeProvider,
|
|
253
|
+
OpenSnsTokenSwap: OpenSnsTokenSwap,
|
|
254
|
+
SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
|
|
255
|
+
SetDefaultFollowees: SetDefaultFollowees,
|
|
256
|
+
RewardNodeProviders: RewardNodeProviders,
|
|
257
|
+
ManageNetworkEconomics: NetworkEconomics,
|
|
258
|
+
ApproveGenesisKyc: ApproveGenesisKyc,
|
|
259
|
+
AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
|
|
260
|
+
Motion: Motion
|
|
261
|
+
});
|
|
262
|
+
Proposal.fill(IDL.Record({
|
|
263
|
+
url: IDL.Text,
|
|
264
|
+
title: IDL.Opt(IDL.Text),
|
|
265
|
+
action: IDL.Opt(Action),
|
|
266
|
+
summary: IDL.Text
|
|
267
|
+
}));
|
|
268
|
+
var BallotInfo = IDL.Record({
|
|
269
|
+
vote: IDL.Int32,
|
|
270
|
+
proposal_id: IDL.Opt(NeuronId)
|
|
271
|
+
});
|
|
272
|
+
var DissolveState = IDL.Variant({
|
|
273
|
+
DissolveDelaySeconds: IDL.Nat64,
|
|
274
|
+
WhenDissolvedTimestampSeconds: IDL.Nat64
|
|
275
|
+
});
|
|
276
|
+
var Neuron = IDL.Record({
|
|
277
|
+
id: IDL.Opt(NeuronId),
|
|
278
|
+
staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
279
|
+
controller: IDL.Opt(IDL.Principal),
|
|
280
|
+
recent_ballots: IDL.Vec(BallotInfo),
|
|
281
|
+
kyc_verified: IDL.Bool,
|
|
282
|
+
not_for_profit: IDL.Bool,
|
|
283
|
+
maturity_e8s_equivalent: IDL.Nat64,
|
|
284
|
+
cached_neuron_stake_e8s: IDL.Nat64,
|
|
285
|
+
created_timestamp_seconds: IDL.Nat64,
|
|
286
|
+
auto_stake_maturity: IDL.Opt(IDL.Bool),
|
|
287
|
+
aging_since_timestamp_seconds: IDL.Nat64,
|
|
288
|
+
hot_keys: IDL.Vec(IDL.Principal),
|
|
289
|
+
account: IDL.Vec(IDL.Nat8),
|
|
290
|
+
joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
291
|
+
dissolve_state: IDL.Opt(DissolveState),
|
|
292
|
+
followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
293
|
+
neuron_fees_e8s: IDL.Nat64,
|
|
294
|
+
transfer: IDL.Opt(NeuronStakeTransfer),
|
|
295
|
+
known_neuron_data: IDL.Opt(KnownNeuronData),
|
|
296
|
+
spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64)
|
|
297
|
+
});
|
|
298
|
+
var Result = IDL.Variant({ Ok: IDL.Null, Err: GovernanceError });
|
|
299
|
+
var Result_1 = IDL.Variant({
|
|
300
|
+
Error: GovernanceError,
|
|
301
|
+
NeuronId: NeuronId
|
|
302
|
+
});
|
|
303
|
+
var ClaimOrRefreshNeuronFromAccountResponse = IDL.Record({
|
|
304
|
+
result: IDL.Opt(Result_1)
|
|
305
|
+
});
|
|
306
|
+
var Result_2 = IDL.Variant({ Ok: Neuron, Err: GovernanceError });
|
|
307
|
+
var Result_3 = IDL.Variant({
|
|
308
|
+
Ok: RewardNodeProviders,
|
|
309
|
+
Err: GovernanceError
|
|
310
|
+
});
|
|
311
|
+
var NeuronInfo = IDL.Record({
|
|
312
|
+
dissolve_delay_seconds: IDL.Nat64,
|
|
313
|
+
recent_ballots: IDL.Vec(BallotInfo),
|
|
314
|
+
created_timestamp_seconds: IDL.Nat64,
|
|
315
|
+
state: IDL.Int32,
|
|
316
|
+
stake_e8s: IDL.Nat64,
|
|
317
|
+
joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
318
|
+
retrieved_at_timestamp_seconds: IDL.Nat64,
|
|
319
|
+
known_neuron_data: IDL.Opt(KnownNeuronData),
|
|
320
|
+
voting_power: IDL.Nat64,
|
|
321
|
+
age_seconds: IDL.Nat64
|
|
322
|
+
});
|
|
323
|
+
var Result_4 = IDL.Variant({ Ok: NeuronInfo, Err: GovernanceError });
|
|
324
|
+
var Result_5 = IDL.Variant({
|
|
325
|
+
Ok: NodeProvider,
|
|
326
|
+
Err: GovernanceError
|
|
327
|
+
});
|
|
328
|
+
var ProposalInfo = IDL.Record({
|
|
329
|
+
id: IDL.Opt(NeuronId),
|
|
330
|
+
status: IDL.Int32,
|
|
331
|
+
topic: IDL.Int32,
|
|
332
|
+
failure_reason: IDL.Opt(GovernanceError),
|
|
333
|
+
ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
334
|
+
proposal_timestamp_seconds: IDL.Nat64,
|
|
335
|
+
reward_event_round: IDL.Nat64,
|
|
336
|
+
deadline_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
337
|
+
failed_timestamp_seconds: IDL.Nat64,
|
|
338
|
+
reject_cost_e8s: IDL.Nat64,
|
|
339
|
+
latest_tally: IDL.Opt(Tally),
|
|
340
|
+
reward_status: IDL.Int32,
|
|
341
|
+
decided_timestamp_seconds: IDL.Nat64,
|
|
342
|
+
proposal: IDL.Opt(Proposal),
|
|
343
|
+
proposer: IDL.Opt(NeuronId),
|
|
344
|
+
executed_timestamp_seconds: IDL.Nat64
|
|
345
|
+
});
|
|
346
|
+
var ListKnownNeuronsResponse = IDL.Record({
|
|
347
|
+
known_neurons: IDL.Vec(KnownNeuron)
|
|
348
|
+
});
|
|
349
|
+
var ListNeurons = IDL.Record({
|
|
350
|
+
neuron_ids: IDL.Vec(IDL.Nat64),
|
|
351
|
+
include_neurons_readable_by_caller: IDL.Bool
|
|
352
|
+
});
|
|
353
|
+
var ListNeuronsResponse = IDL.Record({
|
|
354
|
+
neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
|
|
355
|
+
full_neurons: IDL.Vec(Neuron)
|
|
356
|
+
});
|
|
357
|
+
var ListNodeProvidersResponse = IDL.Record({
|
|
358
|
+
node_providers: IDL.Vec(NodeProvider)
|
|
359
|
+
});
|
|
360
|
+
var ListProposalInfo = IDL.Record({
|
|
361
|
+
include_reward_status: IDL.Vec(IDL.Int32),
|
|
362
|
+
before_proposal: IDL.Opt(NeuronId),
|
|
363
|
+
limit: IDL.Nat32,
|
|
364
|
+
exclude_topic: IDL.Vec(IDL.Int32),
|
|
365
|
+
include_status: IDL.Vec(IDL.Int32)
|
|
366
|
+
});
|
|
367
|
+
var ListProposalInfoResponse = IDL.Record({
|
|
368
|
+
proposal_info: IDL.Vec(ProposalInfo)
|
|
369
|
+
});
|
|
370
|
+
var SpawnResponse = IDL.Record({ created_neuron_id: IDL.Opt(NeuronId) });
|
|
371
|
+
var ClaimOrRefreshResponse = IDL.Record({
|
|
372
|
+
refreshed_neuron_id: IDL.Opt(NeuronId)
|
|
373
|
+
});
|
|
374
|
+
var MakeProposalResponse = IDL.Record({
|
|
375
|
+
proposal_id: IDL.Opt(NeuronId)
|
|
376
|
+
});
|
|
377
|
+
var StakeMaturityResponse = IDL.Record({
|
|
378
|
+
maturity_e8s: IDL.Nat64,
|
|
379
|
+
staked_maturity_e8s: IDL.Nat64
|
|
380
|
+
});
|
|
381
|
+
var MergeMaturityResponse = IDL.Record({
|
|
382
|
+
merged_maturity_e8s: IDL.Nat64,
|
|
383
|
+
new_stake_e8s: IDL.Nat64
|
|
384
|
+
});
|
|
385
|
+
var DisburseResponse = IDL.Record({ transfer_block_height: IDL.Nat64 });
|
|
386
|
+
var Command_1 = IDL.Variant({
|
|
387
|
+
Error: GovernanceError,
|
|
388
|
+
Spawn: SpawnResponse,
|
|
389
|
+
Split: SpawnResponse,
|
|
390
|
+
Follow: IDL.Record({}),
|
|
391
|
+
ClaimOrRefresh: ClaimOrRefreshResponse,
|
|
392
|
+
Configure: IDL.Record({}),
|
|
393
|
+
RegisterVote: IDL.Record({}),
|
|
394
|
+
Merge: IDL.Record({}),
|
|
395
|
+
DisburseToNeuron: SpawnResponse,
|
|
396
|
+
MakeProposal: MakeProposalResponse,
|
|
397
|
+
StakeMaturity: StakeMaturityResponse,
|
|
398
|
+
MergeMaturity: MergeMaturityResponse,
|
|
399
|
+
Disburse: DisburseResponse
|
|
400
|
+
});
|
|
401
|
+
var ManageNeuronResponse = IDL.Record({ command: IDL.Opt(Command_1) });
|
|
402
|
+
var Committed = IDL.Record({
|
|
403
|
+
sns_governance_canister_id: IDL.Opt(IDL.Principal)
|
|
404
|
+
});
|
|
405
|
+
var Result_6 = IDL.Variant({
|
|
406
|
+
Committed: Committed,
|
|
407
|
+
Aborted: IDL.Record({})
|
|
408
|
+
});
|
|
409
|
+
var SettleCommunityFundParticipation = IDL.Record({
|
|
410
|
+
result: IDL.Opt(Result_6),
|
|
411
|
+
open_sns_token_swap_proposal_id: IDL.Opt(IDL.Nat64)
|
|
412
|
+
});
|
|
413
|
+
var UpdateNodeProvider = IDL.Record({
|
|
414
|
+
reward_account: IDL.Opt(AccountIdentifier)
|
|
415
|
+
});
|
|
416
|
+
return IDL.Service({
|
|
417
|
+
claim_gtc_neurons: IDL.Func([IDL.Principal, IDL.Vec(NeuronId)], [Result], []),
|
|
418
|
+
claim_or_refresh_neuron_from_account: IDL.Func([ClaimOrRefreshNeuronFromAccount], [ClaimOrRefreshNeuronFromAccountResponse], []),
|
|
419
|
+
get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
|
|
420
|
+
get_full_neuron: IDL.Func([IDL.Nat64], [Result_2], ['query']),
|
|
421
|
+
get_full_neuron_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_2], ['query']),
|
|
422
|
+
get_monthly_node_provider_rewards: IDL.Func([], [Result_3], []),
|
|
423
|
+
get_most_recent_monthly_node_provider_rewards: IDL.Func([], [IDL.Opt(MostRecentMonthlyNodeProviderRewards)], ['query']),
|
|
424
|
+
get_network_economics_parameters: IDL.Func([], [NetworkEconomics], ['query']),
|
|
425
|
+
get_neuron_ids: IDL.Func([], [IDL.Vec(IDL.Nat64)], ['query']),
|
|
426
|
+
get_neuron_info: IDL.Func([IDL.Nat64], [Result_4], ['query']),
|
|
427
|
+
get_neuron_info_by_id_or_subaccount: IDL.Func([NeuronIdOrSubaccount], [Result_4], ['query']),
|
|
428
|
+
get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_5], ['query']),
|
|
429
|
+
get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
|
|
430
|
+
get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], ['query']),
|
|
431
|
+
list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], ['query']),
|
|
432
|
+
list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
|
|
433
|
+
list_node_providers: IDL.Func([], [ListNodeProvidersResponse], ['query']),
|
|
434
|
+
list_proposals: IDL.Func([ListProposalInfo], [ListProposalInfoResponse], ['query']),
|
|
435
|
+
manage_neuron: IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
436
|
+
settle_community_fund_participation: IDL.Func([SettleCommunityFundParticipation], [Result], []),
|
|
437
|
+
transfer_gtc_neuron: IDL.Func([NeuronId, NeuronId], [Result], []),
|
|
438
|
+
update_node_provider: IDL.Func([UpdateNodeProvider], [Result], [])
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
exports.idlFactory = idlFactory;
|
|
442
|
+
var init = function (_a) {
|
|
443
|
+
var IDL = _a.IDL;
|
|
444
|
+
var Proposal = IDL.Rec();
|
|
445
|
+
var NeuronId = IDL.Record({ id: IDL.Nat64 });
|
|
446
|
+
var Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
447
|
+
var AccountIdentifier = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
|
|
448
|
+
var NodeProvider = IDL.Record({
|
|
449
|
+
id: IDL.Opt(IDL.Principal),
|
|
450
|
+
reward_account: IDL.Opt(AccountIdentifier)
|
|
451
|
+
});
|
|
452
|
+
var RewardToNeuron = IDL.Record({ dissolve_delay_seconds: IDL.Nat64 });
|
|
453
|
+
var RewardToAccount = IDL.Record({
|
|
454
|
+
to_account: IDL.Opt(AccountIdentifier)
|
|
455
|
+
});
|
|
456
|
+
var RewardMode = IDL.Variant({
|
|
457
|
+
RewardToNeuron: RewardToNeuron,
|
|
458
|
+
RewardToAccount: RewardToAccount
|
|
459
|
+
});
|
|
460
|
+
var RewardNodeProvider = IDL.Record({
|
|
461
|
+
node_provider: IDL.Opt(NodeProvider),
|
|
462
|
+
reward_mode: IDL.Opt(RewardMode),
|
|
463
|
+
amount_e8s: IDL.Nat64
|
|
464
|
+
});
|
|
465
|
+
var MostRecentMonthlyNodeProviderRewards = IDL.Record({
|
|
466
|
+
timestamp: IDL.Nat64,
|
|
467
|
+
rewards: IDL.Vec(RewardNodeProvider)
|
|
468
|
+
});
|
|
469
|
+
var GovernanceCachedMetrics = IDL.Record({
|
|
470
|
+
not_dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
|
|
471
|
+
garbage_collectable_neurons_count: IDL.Nat64,
|
|
472
|
+
neurons_with_invalid_stake_count: IDL.Nat64,
|
|
473
|
+
not_dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
474
|
+
total_supply_icp: IDL.Nat64,
|
|
475
|
+
neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
|
|
476
|
+
dissolved_neurons_count: IDL.Nat64,
|
|
477
|
+
community_fund_total_maturity_e8s_equivalent: IDL.Nat64,
|
|
478
|
+
total_staked_e8s: IDL.Nat64,
|
|
479
|
+
not_dissolving_neurons_count: IDL.Nat64,
|
|
480
|
+
dissolved_neurons_e8s: IDL.Nat64,
|
|
481
|
+
neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
|
|
482
|
+
dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
483
|
+
dissolving_neurons_count: IDL.Nat64,
|
|
484
|
+
dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
|
|
485
|
+
community_fund_total_staked_e8s: IDL.Nat64,
|
|
486
|
+
timestamp_seconds: IDL.Nat64
|
|
487
|
+
});
|
|
488
|
+
var NetworkEconomics = IDL.Record({
|
|
489
|
+
neuron_minimum_stake_e8s: IDL.Nat64,
|
|
490
|
+
max_proposals_to_keep_per_topic: IDL.Nat32,
|
|
491
|
+
neuron_management_fee_per_proposal_e8s: IDL.Nat64,
|
|
492
|
+
reject_cost_e8s: IDL.Nat64,
|
|
493
|
+
transaction_fee_e8s: IDL.Nat64,
|
|
494
|
+
neuron_spawn_dissolve_delay_seconds: IDL.Nat64,
|
|
495
|
+
minimum_icp_xdr_rate: IDL.Nat64,
|
|
496
|
+
maximum_node_provider_rewards_e8s: IDL.Nat64
|
|
497
|
+
});
|
|
498
|
+
var RewardEvent = IDL.Record({
|
|
499
|
+
day_after_genesis: IDL.Nat64,
|
|
500
|
+
actual_timestamp_seconds: IDL.Nat64,
|
|
501
|
+
distributed_e8s_equivalent: IDL.Nat64,
|
|
502
|
+
settled_proposals: IDL.Vec(NeuronId)
|
|
503
|
+
});
|
|
504
|
+
var NeuronStakeTransfer = IDL.Record({
|
|
505
|
+
to_subaccount: IDL.Vec(IDL.Nat8),
|
|
506
|
+
neuron_stake_e8s: IDL.Nat64,
|
|
507
|
+
from: IDL.Opt(IDL.Principal),
|
|
508
|
+
memo: IDL.Nat64,
|
|
509
|
+
from_subaccount: IDL.Vec(IDL.Nat8),
|
|
510
|
+
transfer_timestamp: IDL.Nat64,
|
|
511
|
+
block_height: IDL.Nat64
|
|
512
|
+
});
|
|
513
|
+
var GovernanceError = IDL.Record({
|
|
514
|
+
error_message: IDL.Text,
|
|
515
|
+
error_type: IDL.Int32
|
|
516
|
+
});
|
|
517
|
+
var CfNeuron = IDL.Record({
|
|
518
|
+
nns_neuron_id: IDL.Nat64,
|
|
519
|
+
amount_icp_e8s: IDL.Nat64
|
|
520
|
+
});
|
|
521
|
+
var CfParticipant = IDL.Record({
|
|
522
|
+
hotkey_principal: IDL.Text,
|
|
523
|
+
cf_neurons: IDL.Vec(CfNeuron)
|
|
524
|
+
});
|
|
525
|
+
var Ballot = IDL.Record({ vote: IDL.Int32, voting_power: IDL.Nat64 });
|
|
526
|
+
var Tally = IDL.Record({
|
|
527
|
+
no: IDL.Nat64,
|
|
528
|
+
yes: IDL.Nat64,
|
|
529
|
+
total: IDL.Nat64,
|
|
530
|
+
timestamp_seconds: IDL.Nat64
|
|
531
|
+
});
|
|
532
|
+
var SwapBackgroundInformation = IDL.Record({
|
|
533
|
+
sns_root_canister_id: IDL.Opt(IDL.Principal),
|
|
534
|
+
dapp_canister_ids: IDL.Vec(IDL.Principal),
|
|
535
|
+
fallback_controller_principal_ids: IDL.Vec(IDL.Principal),
|
|
536
|
+
sns_ledger_archive_canister_ids: IDL.Vec(IDL.Principal),
|
|
537
|
+
sns_ledger_index_canister_id: IDL.Opt(IDL.Principal),
|
|
538
|
+
sns_ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
539
|
+
sns_governance_canister_id: IDL.Opt(IDL.Principal)
|
|
540
|
+
});
|
|
541
|
+
var KnownNeuronData = IDL.Record({
|
|
542
|
+
name: IDL.Text,
|
|
543
|
+
description: IDL.Opt(IDL.Text)
|
|
544
|
+
});
|
|
545
|
+
var KnownNeuron = IDL.Record({
|
|
546
|
+
id: IDL.Opt(NeuronId),
|
|
547
|
+
known_neuron_data: IDL.Opt(KnownNeuronData)
|
|
548
|
+
});
|
|
549
|
+
var Spawn = IDL.Record({
|
|
550
|
+
percentage_to_spawn: IDL.Opt(IDL.Nat32),
|
|
551
|
+
new_controller: IDL.Opt(IDL.Principal),
|
|
552
|
+
nonce: IDL.Opt(IDL.Nat64)
|
|
553
|
+
});
|
|
554
|
+
var Split = IDL.Record({ amount_e8s: IDL.Nat64 });
|
|
555
|
+
var Follow = IDL.Record({
|
|
556
|
+
topic: IDL.Int32,
|
|
557
|
+
followees: IDL.Vec(NeuronId)
|
|
558
|
+
});
|
|
559
|
+
var ClaimOrRefreshNeuronFromAccount = IDL.Record({
|
|
560
|
+
controller: IDL.Opt(IDL.Principal),
|
|
561
|
+
memo: IDL.Nat64
|
|
562
|
+
});
|
|
563
|
+
var By = IDL.Variant({
|
|
564
|
+
NeuronIdOrSubaccount: IDL.Record({}),
|
|
565
|
+
MemoAndController: ClaimOrRefreshNeuronFromAccount,
|
|
566
|
+
Memo: IDL.Nat64
|
|
567
|
+
});
|
|
568
|
+
var ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
|
|
569
|
+
var RemoveHotKey = IDL.Record({
|
|
570
|
+
hot_key_to_remove: IDL.Opt(IDL.Principal)
|
|
571
|
+
});
|
|
572
|
+
var AddHotKey = IDL.Record({ new_hot_key: IDL.Opt(IDL.Principal) });
|
|
573
|
+
var ChangeAutoStakeMaturity = IDL.Record({
|
|
574
|
+
requested_setting_for_auto_stake_maturity: IDL.Bool
|
|
575
|
+
});
|
|
576
|
+
var IncreaseDissolveDelay = IDL.Record({
|
|
577
|
+
additional_dissolve_delay_seconds: IDL.Nat32
|
|
578
|
+
});
|
|
579
|
+
var SetDissolveTimestamp = IDL.Record({
|
|
580
|
+
dissolve_timestamp_seconds: IDL.Nat64
|
|
581
|
+
});
|
|
582
|
+
var Operation = IDL.Variant({
|
|
583
|
+
RemoveHotKey: RemoveHotKey,
|
|
584
|
+
AddHotKey: AddHotKey,
|
|
585
|
+
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
|
|
586
|
+
StopDissolving: IDL.Record({}),
|
|
587
|
+
StartDissolving: IDL.Record({}),
|
|
588
|
+
IncreaseDissolveDelay: IncreaseDissolveDelay,
|
|
589
|
+
JoinCommunityFund: IDL.Record({}),
|
|
590
|
+
LeaveCommunityFund: IDL.Record({}),
|
|
591
|
+
SetDissolveTimestamp: SetDissolveTimestamp
|
|
592
|
+
});
|
|
593
|
+
var Configure = IDL.Record({ operation: IDL.Opt(Operation) });
|
|
594
|
+
var RegisterVote = IDL.Record({
|
|
595
|
+
vote: IDL.Int32,
|
|
596
|
+
proposal: IDL.Opt(NeuronId)
|
|
597
|
+
});
|
|
598
|
+
var Merge = IDL.Record({ source_neuron_id: IDL.Opt(NeuronId) });
|
|
599
|
+
var DisburseToNeuron = IDL.Record({
|
|
600
|
+
dissolve_delay_seconds: IDL.Nat64,
|
|
601
|
+
kyc_verified: IDL.Bool,
|
|
602
|
+
amount_e8s: IDL.Nat64,
|
|
603
|
+
new_controller: IDL.Opt(IDL.Principal),
|
|
604
|
+
nonce: IDL.Nat64
|
|
605
|
+
});
|
|
606
|
+
var StakeMaturity = IDL.Record({
|
|
607
|
+
percentage_to_stake: IDL.Opt(IDL.Nat32)
|
|
608
|
+
});
|
|
609
|
+
var MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
|
|
610
|
+
var Amount = IDL.Record({ e8s: IDL.Nat64 });
|
|
611
|
+
var Disburse = IDL.Record({
|
|
612
|
+
to_account: IDL.Opt(AccountIdentifier),
|
|
613
|
+
amount: IDL.Opt(Amount)
|
|
614
|
+
});
|
|
615
|
+
var Command = IDL.Variant({
|
|
616
|
+
Spawn: Spawn,
|
|
617
|
+
Split: Split,
|
|
618
|
+
Follow: Follow,
|
|
619
|
+
ClaimOrRefresh: ClaimOrRefresh,
|
|
620
|
+
Configure: Configure,
|
|
621
|
+
RegisterVote: RegisterVote,
|
|
622
|
+
Merge: Merge,
|
|
623
|
+
DisburseToNeuron: DisburseToNeuron,
|
|
624
|
+
MakeProposal: Proposal,
|
|
625
|
+
StakeMaturity: StakeMaturity,
|
|
626
|
+
MergeMaturity: MergeMaturity,
|
|
627
|
+
Disburse: Disburse
|
|
628
|
+
});
|
|
629
|
+
var NeuronIdOrSubaccount = IDL.Variant({
|
|
630
|
+
Subaccount: IDL.Vec(IDL.Nat8),
|
|
631
|
+
NeuronId: NeuronId
|
|
632
|
+
});
|
|
633
|
+
var ManageNeuron = IDL.Record({
|
|
634
|
+
id: IDL.Opt(NeuronId),
|
|
635
|
+
command: IDL.Opt(Command),
|
|
636
|
+
neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
|
|
637
|
+
});
|
|
638
|
+
var ExecuteNnsFunction = IDL.Record({
|
|
639
|
+
nns_function: IDL.Int32,
|
|
640
|
+
payload: IDL.Vec(IDL.Nat8)
|
|
641
|
+
});
|
|
642
|
+
var NeuronBasketConstructionParameters = IDL.Record({
|
|
643
|
+
dissolve_delay_interval_seconds: IDL.Nat64,
|
|
644
|
+
count: IDL.Nat64
|
|
645
|
+
});
|
|
646
|
+
var Params = IDL.Record({
|
|
647
|
+
min_participant_icp_e8s: IDL.Nat64,
|
|
648
|
+
neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
|
|
649
|
+
max_icp_e8s: IDL.Nat64,
|
|
650
|
+
swap_due_timestamp_seconds: IDL.Nat64,
|
|
651
|
+
min_participants: IDL.Nat32,
|
|
652
|
+
sns_token_e8s: IDL.Nat64,
|
|
653
|
+
max_participant_icp_e8s: IDL.Nat64,
|
|
654
|
+
min_icp_e8s: IDL.Nat64
|
|
655
|
+
});
|
|
656
|
+
var OpenSnsTokenSwap = IDL.Record({
|
|
657
|
+
community_fund_investment_e8s: IDL.Opt(IDL.Nat64),
|
|
658
|
+
target_swap_canister_id: IDL.Opt(IDL.Principal),
|
|
659
|
+
params: IDL.Opt(Params)
|
|
660
|
+
});
|
|
661
|
+
var TimeWindow = IDL.Record({
|
|
662
|
+
start_timestamp_seconds: IDL.Nat64,
|
|
663
|
+
end_timestamp_seconds: IDL.Nat64
|
|
664
|
+
});
|
|
665
|
+
var SetOpenTimeWindowRequest = IDL.Record({
|
|
666
|
+
open_time_window: IDL.Opt(TimeWindow)
|
|
667
|
+
});
|
|
668
|
+
var SetSnsTokenSwapOpenTimeWindow = IDL.Record({
|
|
669
|
+
request: IDL.Opt(SetOpenTimeWindowRequest),
|
|
670
|
+
swap_canister_id: IDL.Opt(IDL.Principal)
|
|
671
|
+
});
|
|
672
|
+
var SetDefaultFollowees = IDL.Record({
|
|
673
|
+
default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees))
|
|
674
|
+
});
|
|
675
|
+
var RewardNodeProviders = IDL.Record({
|
|
676
|
+
use_registry_derived_rewards: IDL.Opt(IDL.Bool),
|
|
677
|
+
rewards: IDL.Vec(RewardNodeProvider)
|
|
678
|
+
});
|
|
679
|
+
var ApproveGenesisKyc = IDL.Record({
|
|
680
|
+
principals: IDL.Vec(IDL.Principal)
|
|
681
|
+
});
|
|
682
|
+
var Change = IDL.Variant({
|
|
683
|
+
ToRemove: NodeProvider,
|
|
684
|
+
ToAdd: NodeProvider
|
|
685
|
+
});
|
|
686
|
+
var AddOrRemoveNodeProvider = IDL.Record({ change: IDL.Opt(Change) });
|
|
687
|
+
var Motion = IDL.Record({ motion_text: IDL.Text });
|
|
688
|
+
var Action = IDL.Variant({
|
|
689
|
+
RegisterKnownNeuron: KnownNeuron,
|
|
690
|
+
ManageNeuron: ManageNeuron,
|
|
691
|
+
ExecuteNnsFunction: ExecuteNnsFunction,
|
|
692
|
+
RewardNodeProvider: RewardNodeProvider,
|
|
693
|
+
OpenSnsTokenSwap: OpenSnsTokenSwap,
|
|
694
|
+
SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow,
|
|
695
|
+
SetDefaultFollowees: SetDefaultFollowees,
|
|
696
|
+
RewardNodeProviders: RewardNodeProviders,
|
|
697
|
+
ManageNetworkEconomics: NetworkEconomics,
|
|
698
|
+
ApproveGenesisKyc: ApproveGenesisKyc,
|
|
699
|
+
AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
|
|
700
|
+
Motion: Motion
|
|
701
|
+
});
|
|
702
|
+
Proposal.fill(IDL.Record({
|
|
703
|
+
url: IDL.Text,
|
|
704
|
+
title: IDL.Opt(IDL.Text),
|
|
705
|
+
action: IDL.Opt(Action),
|
|
706
|
+
summary: IDL.Text
|
|
707
|
+
}));
|
|
708
|
+
var WaitForQuietState = IDL.Record({
|
|
709
|
+
current_deadline_timestamp_seconds: IDL.Nat64
|
|
710
|
+
});
|
|
711
|
+
var ProposalData = IDL.Record({
|
|
712
|
+
id: IDL.Opt(NeuronId),
|
|
713
|
+
failure_reason: IDL.Opt(GovernanceError),
|
|
714
|
+
cf_participants: IDL.Vec(CfParticipant),
|
|
715
|
+
ballots: IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
716
|
+
proposal_timestamp_seconds: IDL.Nat64,
|
|
717
|
+
reward_event_round: IDL.Nat64,
|
|
718
|
+
failed_timestamp_seconds: IDL.Nat64,
|
|
719
|
+
reject_cost_e8s: IDL.Nat64,
|
|
720
|
+
latest_tally: IDL.Opt(Tally),
|
|
721
|
+
sns_token_swap_lifecycle: IDL.Opt(IDL.Int32),
|
|
722
|
+
decided_timestamp_seconds: IDL.Nat64,
|
|
723
|
+
swap_background_information: IDL.Opt(SwapBackgroundInformation),
|
|
724
|
+
proposal: IDL.Opt(Proposal),
|
|
725
|
+
proposer: IDL.Opt(NeuronId),
|
|
726
|
+
wait_for_quiet_state: IDL.Opt(WaitForQuietState),
|
|
727
|
+
executed_timestamp_seconds: IDL.Nat64,
|
|
728
|
+
original_total_community_fund_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64)
|
|
729
|
+
});
|
|
730
|
+
var Command_2 = IDL.Variant({
|
|
731
|
+
Spawn: NeuronId,
|
|
732
|
+
Split: Split,
|
|
733
|
+
Configure: Configure,
|
|
734
|
+
Merge: Merge,
|
|
735
|
+
DisburseToNeuron: DisburseToNeuron,
|
|
736
|
+
SyncCommand: IDL.Record({}),
|
|
737
|
+
ClaimOrRefreshNeuron: ClaimOrRefresh,
|
|
738
|
+
MergeMaturity: MergeMaturity,
|
|
739
|
+
Disburse: Disburse
|
|
740
|
+
});
|
|
741
|
+
var NeuronInFlightCommand = IDL.Record({
|
|
742
|
+
command: IDL.Opt(Command_2),
|
|
743
|
+
timestamp: IDL.Nat64
|
|
744
|
+
});
|
|
745
|
+
var BallotInfo = IDL.Record({
|
|
746
|
+
vote: IDL.Int32,
|
|
747
|
+
proposal_id: IDL.Opt(NeuronId)
|
|
748
|
+
});
|
|
749
|
+
var DissolveState = IDL.Variant({
|
|
750
|
+
DissolveDelaySeconds: IDL.Nat64,
|
|
751
|
+
WhenDissolvedTimestampSeconds: IDL.Nat64
|
|
752
|
+
});
|
|
753
|
+
var Neuron = IDL.Record({
|
|
754
|
+
id: IDL.Opt(NeuronId),
|
|
755
|
+
staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
756
|
+
controller: IDL.Opt(IDL.Principal),
|
|
757
|
+
recent_ballots: IDL.Vec(BallotInfo),
|
|
758
|
+
kyc_verified: IDL.Bool,
|
|
759
|
+
not_for_profit: IDL.Bool,
|
|
760
|
+
maturity_e8s_equivalent: IDL.Nat64,
|
|
761
|
+
cached_neuron_stake_e8s: IDL.Nat64,
|
|
762
|
+
created_timestamp_seconds: IDL.Nat64,
|
|
763
|
+
auto_stake_maturity: IDL.Opt(IDL.Bool),
|
|
764
|
+
aging_since_timestamp_seconds: IDL.Nat64,
|
|
765
|
+
hot_keys: IDL.Vec(IDL.Principal),
|
|
766
|
+
account: IDL.Vec(IDL.Nat8),
|
|
767
|
+
joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
768
|
+
dissolve_state: IDL.Opt(DissolveState),
|
|
769
|
+
followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
770
|
+
neuron_fees_e8s: IDL.Nat64,
|
|
771
|
+
transfer: IDL.Opt(NeuronStakeTransfer),
|
|
772
|
+
known_neuron_data: IDL.Opt(KnownNeuronData),
|
|
773
|
+
spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64)
|
|
774
|
+
});
|
|
775
|
+
var Governance = IDL.Record({
|
|
776
|
+
default_followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
777
|
+
most_recent_monthly_node_provider_rewards: IDL.Opt(MostRecentMonthlyNodeProviderRewards),
|
|
778
|
+
maturity_modulation_last_updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
779
|
+
wait_for_quiet_threshold_seconds: IDL.Nat64,
|
|
780
|
+
metrics: IDL.Opt(GovernanceCachedMetrics),
|
|
781
|
+
node_providers: IDL.Vec(NodeProvider),
|
|
782
|
+
cached_daily_maturity_modulation_basis_points: IDL.Opt(IDL.Int32),
|
|
783
|
+
economics: IDL.Opt(NetworkEconomics),
|
|
784
|
+
spawning_neurons: IDL.Opt(IDL.Bool),
|
|
785
|
+
latest_reward_event: IDL.Opt(RewardEvent),
|
|
786
|
+
to_claim_transfers: IDL.Vec(NeuronStakeTransfer),
|
|
787
|
+
short_voting_period_seconds: IDL.Nat64,
|
|
788
|
+
proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
789
|
+
in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
|
|
790
|
+
neurons: IDL.Vec(IDL.Tuple(IDL.Nat64, Neuron)),
|
|
791
|
+
genesis_timestamp_seconds: IDL.Nat64
|
|
792
|
+
});
|
|
793
|
+
return [Governance];
|
|
794
|
+
};
|
|
795
|
+
exports.init = init;
|
|
796
|
+
//# sourceMappingURL=governance.js.map
|