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