@dfinity/sns 4.1.2 → 5.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 +1 -1
- package/dist/candid/sns_governance.certified.idl.d.ts +1 -1
- package/dist/candid/sns_governance.certified.idl.js +1003 -1005
- package/dist/candid/sns_governance.d.ts +11 -3
- package/dist/candid/sns_governance.idl.d.ts +1 -1
- package/dist/candid/sns_governance.idl.js +1011 -1021
- package/dist/candid/sns_governance_test.certified.idl.d.ts +1 -1
- package/dist/candid/sns_governance_test.certified.idl.js +1021 -1023
- package/dist/candid/sns_governance_test.d.ts +11 -3
- package/dist/candid/sns_governance_test.idl.d.ts +1 -1
- package/dist/candid/sns_governance_test.idl.js +1029 -1039
- package/dist/candid/sns_root.certified.idl.d.ts +1 -1
- package/dist/candid/sns_root.certified.idl.js +183 -177
- package/dist/candid/sns_root.d.ts +11 -3
- package/dist/candid/sns_root.idl.d.ts +1 -1
- package/dist/candid/sns_root.idl.js +183 -177
- package/dist/candid/sns_swap.certified.idl.d.ts +1 -1
- package/dist/candid/sns_swap.certified.idl.js +359 -355
- package/dist/candid/sns_swap.d.ts +11 -3
- package/dist/candid/sns_swap.idl.d.ts +1 -1
- package/dist/candid/sns_swap.idl.js +367 -363
- package/dist/{types/converters → converters}/governance.converters.d.ts +1 -1
- package/dist/{types/converters → converters}/swap.converters.d.ts +1 -1
- package/dist/{types/errors → errors}/swap.errors.d.ts +1 -1
- package/dist/{types/governance.canister.d.ts → governance.canister.d.ts} +1 -1
- package/dist/{types/governance_test.canister.d.ts → governance_test.canister.d.ts} +1 -1
- package/dist/{types/index.d.ts → index.d.ts} +3 -3
- package/dist/index.js +7 -1
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +7 -0
- package/dist/{types/root.canister.d.ts → root.canister.d.ts} +1 -1
- package/dist/{types/sns.d.ts → sns.d.ts} +2 -2
- package/dist/{types/sns.wrapper.d.ts → sns.wrapper.d.ts} +3 -3
- package/dist/{types/swap.canister.d.ts → swap.canister.d.ts} +1 -1
- package/dist/types/{types/actions.d.ts → actions.d.ts} +2 -2
- package/dist/types/{types/canister.options.d.ts → canister.options.d.ts} +1 -1
- package/dist/types/{types/governance.params.d.ts → governance.params.d.ts} +2 -2
- package/dist/types/{types/governance_test.params.d.ts → governance_test.params.d.ts} +1 -1
- package/dist/{types/utils → utils}/governance.utils.d.ts +1 -1
- package/package.json +23 -12
- package/dist/cjs/index.cjs.js +0 -7
- package/dist/cjs/index.cjs.js.map +0 -7
- package/dist/esm/chunk-4E6G4JED.js +0 -2
- package/dist/esm/chunk-4E6G4JED.js.map +0 -7
- package/dist/esm/chunk-4INNMFYU.js +0 -2
- package/dist/esm/chunk-4INNMFYU.js.map +0 -7
- package/dist/esm/chunk-4OISOQSJ.js +0 -2
- package/dist/esm/chunk-4OISOQSJ.js.map +0 -7
- package/dist/esm/chunk-BJBCLIED.js +0 -2
- package/dist/esm/chunk-BJBCLIED.js.map +0 -7
- package/dist/esm/chunk-EYIWJ4DL.js +0 -2
- package/dist/esm/chunk-EYIWJ4DL.js.map +0 -7
- package/dist/esm/chunk-Y6XGADSI.js +0 -7
- package/dist/esm/chunk-Y6XGADSI.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/root.canister.js +0 -2
- package/dist/esm/root.canister.js.map +0 -7
- package/dist/esm/sns.js +0 -2
- package/dist/esm/sns.js.map +0 -7
- package/dist/esm/sns.wrapper.js +0 -2
- package/dist/esm/sns.wrapper.js.map +0 -7
- package/dist/esm/swap.canister.js +0 -2
- package/dist/esm/swap.canister.js.map +0 -7
- package/dist/index.cjs.js +0 -1
- /package/dist/{types/constants → constants}/governance.constants.d.ts +0 -0
- /package/dist/{types/enums → enums}/governance.enums.d.ts +0 -0
- /package/dist/{types/enums → enums}/swap.enums.d.ts +0 -0
- /package/dist/{types/errors → errors}/common.errors.d.ts +0 -0
- /package/dist/{types/errors → errors}/governance.errors.d.ts +0 -0
- /package/dist/types/{types/common.d.ts → common.d.ts} +0 -0
- /package/dist/types/{types/swap.params.d.ts → swap.params.d.ts} +0 -0
- /package/dist/{types/utils → utils}/error.utils.d.ts +0 -0
|
@@ -1,1434 +1,1432 @@
|
|
|
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 PreciseValue = IDL.Rec();
|
|
4
11
|
const Timers = IDL.Record({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
13
|
+
last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
14
|
+
requires_periodic_tasks: IDL.Opt(IDL.Bool),
|
|
8
15
|
});
|
|
9
16
|
const Version = IDL.Record({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
const Versions = IDL.Record({
|
|
17
|
+
archive_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
18
|
+
root_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
19
|
+
swap_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
20
|
+
ledger_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
21
|
+
governance_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
22
|
+
index_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
23
|
+
});
|
|
24
|
+
const Versions = IDL.Record({ versions: IDL.Vec(Version) });
|
|
18
25
|
const CachedUpgradeSteps = IDL.Record({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
27
|
+
response_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
28
|
+
requested_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
22
29
|
});
|
|
23
30
|
const Topic = IDL.Variant({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
DappCanisterManagement: IDL.Null,
|
|
32
|
+
DaoCommunitySettings: IDL.Null,
|
|
33
|
+
ApplicationBusinessLogic: IDL.Null,
|
|
34
|
+
CriticalDappOperations: IDL.Null,
|
|
35
|
+
TreasuryAssetManagement: IDL.Null,
|
|
36
|
+
Governance: IDL.Null,
|
|
37
|
+
SnsFrameworkManagement: IDL.Null,
|
|
31
38
|
});
|
|
32
39
|
const GenericNervousSystemFunction = IDL.Record({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
topic: IDL.Opt(Topic),
|
|
41
|
+
validator_canister_id: IDL.Opt(IDL.Principal),
|
|
42
|
+
target_canister_id: IDL.Opt(IDL.Principal),
|
|
43
|
+
validator_method_name: IDL.Opt(IDL.Text),
|
|
44
|
+
target_method_name: IDL.Opt(IDL.Text),
|
|
38
45
|
});
|
|
39
46
|
const FunctionType = IDL.Variant({
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
NativeNervousSystemFunction: IDL.Record({}),
|
|
48
|
+
GenericNervousSystemFunction: GenericNervousSystemFunction,
|
|
42
49
|
});
|
|
43
50
|
const NervousSystemFunction = IDL.Record({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
id: IDL.Nat64,
|
|
52
|
+
name: IDL.Text,
|
|
53
|
+
description: IDL.Opt(IDL.Text),
|
|
54
|
+
function_type: IDL.Opt(FunctionType),
|
|
48
55
|
});
|
|
49
|
-
const Subaccount = IDL.Record({
|
|
56
|
+
const Subaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
|
|
50
57
|
const Account = IDL.Record({
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
owner: IDL.Opt(IDL.Principal),
|
|
59
|
+
subaccount: IDL.Opt(Subaccount),
|
|
53
60
|
});
|
|
54
61
|
const TreasuryMetrics = IDL.Record({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
name: IDL.Opt(IDL.Text),
|
|
63
|
+
original_amount_e8s: IDL.Opt(IDL.Nat64),
|
|
64
|
+
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
65
|
+
account: IDL.Opt(Account),
|
|
66
|
+
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
67
|
+
treasury: IDL.Int32,
|
|
68
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
62
69
|
});
|
|
63
70
|
const VotingPowerMetrics = IDL.Record({
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
governance_total_potential_voting_power: IDL.Opt(IDL.Nat64),
|
|
72
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
66
73
|
});
|
|
67
74
|
const GovernanceCachedMetrics = IDL.Record({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
75
|
+
treasury_metrics: IDL.Vec(TreasuryMetrics),
|
|
76
|
+
not_dissolving_neurons_e8s_buckets: IDL.Vec(
|
|
77
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64),
|
|
71
78
|
),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
79
|
+
garbage_collectable_neurons_count: IDL.Nat64,
|
|
80
|
+
neurons_with_invalid_stake_count: IDL.Nat64,
|
|
81
|
+
not_dissolving_neurons_count_buckets: IDL.Vec(
|
|
82
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
76
83
|
),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
),
|
|
88
|
-
|
|
89
|
-
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
90
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
91
|
-
),
|
|
92
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
84
|
+
neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
|
|
85
|
+
dissolved_neurons_count: IDL.Nat64,
|
|
86
|
+
total_staked_e8s: IDL.Nat64,
|
|
87
|
+
total_supply_governance_tokens: IDL.Nat64,
|
|
88
|
+
voting_power_metrics: IDL.Opt(VotingPowerMetrics),
|
|
89
|
+
not_dissolving_neurons_count: IDL.Nat64,
|
|
90
|
+
dissolved_neurons_e8s: IDL.Nat64,
|
|
91
|
+
neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
|
|
92
|
+
dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
93
|
+
dissolving_neurons_count: IDL.Nat64,
|
|
94
|
+
dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
|
|
95
|
+
timestamp_seconds: IDL.Nat64,
|
|
93
96
|
});
|
|
94
97
|
const MaturityModulation = IDL.Record({
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
current_basis_points: IDL.Opt(IDL.Int32),
|
|
99
|
+
updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
97
100
|
});
|
|
98
101
|
const TargetVersionSet = IDL.Record({
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
old_target_version: IDL.Opt(Version),
|
|
103
|
+
new_target_version: IDL.Opt(Version),
|
|
104
|
+
is_advanced_automatically: IDL.Opt(IDL.Bool),
|
|
102
105
|
});
|
|
103
106
|
const UpgradeStepsReset = IDL.Record({
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
human_readable: IDL.Opt(IDL.Text),
|
|
108
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
106
109
|
});
|
|
107
110
|
const UpgradeOutcome = IDL.Record({
|
|
108
|
-
|
|
111
|
+
status: IDL.Opt(
|
|
109
112
|
IDL.Variant({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
})
|
|
113
|
+
Success: IDL.Record({}),
|
|
114
|
+
Timeout: IDL.Record({}),
|
|
115
|
+
ExternalFailure: IDL.Record({}),
|
|
116
|
+
InvalidState: IDL.Record({ version: IDL.Opt(Version) }),
|
|
117
|
+
}),
|
|
115
118
|
),
|
|
116
|
-
|
|
119
|
+
human_readable: IDL.Opt(IDL.Text),
|
|
117
120
|
});
|
|
118
|
-
const ProposalId = IDL.Record({
|
|
121
|
+
const ProposalId = IDL.Record({ id: IDL.Nat64 });
|
|
119
122
|
const UpgradeStarted = IDL.Record({
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
current_version: IDL.Opt(Version),
|
|
124
|
+
expected_version: IDL.Opt(Version),
|
|
125
|
+
reason: IDL.Opt(
|
|
123
126
|
IDL.Variant({
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
})
|
|
127
|
+
UpgradeSnsToNextVersionProposal: ProposalId,
|
|
128
|
+
BehindTargetVersion: IDL.Record({}),
|
|
129
|
+
}),
|
|
127
130
|
),
|
|
128
131
|
});
|
|
129
132
|
const UpgradeStepsRefreshed = IDL.Record({
|
|
130
|
-
|
|
133
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
131
134
|
});
|
|
132
135
|
const TargetVersionReset = IDL.Record({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
human_readable: IDL.Opt(IDL.Text),
|
|
137
|
+
old_target_version: IDL.Opt(Version),
|
|
138
|
+
new_target_version: IDL.Opt(Version),
|
|
136
139
|
});
|
|
137
140
|
const UpgradeJournalEntry = IDL.Record({
|
|
138
|
-
|
|
141
|
+
event: IDL.Opt(
|
|
139
142
|
IDL.Variant({
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
})
|
|
143
|
+
TargetVersionSet: TargetVersionSet,
|
|
144
|
+
UpgradeStepsReset: UpgradeStepsReset,
|
|
145
|
+
UpgradeOutcome: UpgradeOutcome,
|
|
146
|
+
UpgradeStarted: UpgradeStarted,
|
|
147
|
+
UpgradeStepsRefreshed: UpgradeStepsRefreshed,
|
|
148
|
+
TargetVersionReset: TargetVersionReset,
|
|
149
|
+
}),
|
|
147
150
|
),
|
|
148
|
-
|
|
151
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
149
152
|
});
|
|
150
153
|
const UpgradeJournal = IDL.Record({
|
|
151
|
-
|
|
154
|
+
entries: IDL.Vec(UpgradeJournalEntry),
|
|
152
155
|
});
|
|
153
|
-
const NeuronId = IDL.Record({
|
|
154
|
-
const Followees = IDL.Record({
|
|
156
|
+
const NeuronId = IDL.Record({ id: IDL.Vec(IDL.Nat8) });
|
|
157
|
+
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
155
158
|
const DefaultFollowees = IDL.Record({
|
|
156
|
-
|
|
159
|
+
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
157
160
|
});
|
|
158
161
|
const NeuronPermissionList = IDL.Record({
|
|
159
|
-
|
|
162
|
+
permissions: IDL.Vec(IDL.Int32),
|
|
160
163
|
});
|
|
161
164
|
const VotingRewardsParameters = IDL.Record({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
166
|
+
initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
167
|
+
reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
168
|
+
round_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
166
169
|
});
|
|
167
170
|
const NervousSystemParameters = IDL.Record({
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
171
|
+
default_followees: IDL.Opt(DefaultFollowees),
|
|
172
|
+
max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
173
|
+
max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
174
|
+
max_followees_per_function: IDL.Opt(IDL.Nat64),
|
|
175
|
+
automatically_advance_target_version: IDL.Opt(IDL.Bool),
|
|
176
|
+
neuron_claimer_permissions: IDL.Opt(NeuronPermissionList),
|
|
177
|
+
neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
|
|
178
|
+
max_neuron_age_for_age_bonus: IDL.Opt(IDL.Nat64),
|
|
179
|
+
initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
180
|
+
neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
|
|
181
|
+
reject_cost_e8s: IDL.Opt(IDL.Nat64),
|
|
182
|
+
max_proposals_to_keep_per_action: IDL.Opt(IDL.Nat32),
|
|
183
|
+
wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
|
|
184
|
+
max_number_of_neurons: IDL.Opt(IDL.Nat64),
|
|
185
|
+
transaction_fee_e8s: IDL.Opt(IDL.Nat64),
|
|
186
|
+
max_number_of_proposals_with_ballots: IDL.Opt(IDL.Nat64),
|
|
187
|
+
max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
188
|
+
neuron_grantable_permissions: IDL.Opt(NeuronPermissionList),
|
|
189
|
+
voting_rewards_parameters: IDL.Opt(VotingRewardsParameters),
|
|
190
|
+
maturity_modulation_disabled: IDL.Opt(IDL.Bool),
|
|
191
|
+
max_number_of_principals_per_neuron: IDL.Opt(IDL.Nat64),
|
|
189
192
|
});
|
|
190
193
|
const RewardEvent = IDL.Record({
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
|
|
195
|
+
actual_timestamp_seconds: IDL.Nat64,
|
|
196
|
+
end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
197
|
+
total_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
198
|
+
distributed_e8s_equivalent: IDL.Nat64,
|
|
199
|
+
round: IDL.Nat64,
|
|
200
|
+
settled_proposals: IDL.Vec(ProposalId),
|
|
198
201
|
});
|
|
199
202
|
const PendingVersion = IDL.Record({
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
mark_failed_at_seconds: IDL.Nat64,
|
|
204
|
+
checking_upgrade_lock: IDL.Nat64,
|
|
205
|
+
proposal_id: IDL.Opt(IDL.Nat64),
|
|
206
|
+
target_version: IDL.Opt(Version),
|
|
204
207
|
});
|
|
205
208
|
const GovernanceError = IDL.Record({
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
error_message: IDL.Text,
|
|
210
|
+
error_type: IDL.Int32,
|
|
208
211
|
});
|
|
209
|
-
const Decimal = IDL.Record({
|
|
210
|
-
const Tokens = IDL.Record({
|
|
212
|
+
const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
|
|
213
|
+
const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
|
|
211
214
|
const ValuationFactors = IDL.Record({
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
xdrs_per_icp: IDL.Opt(Decimal),
|
|
216
|
+
icps_per_token: IDL.Opt(Decimal),
|
|
217
|
+
tokens: IDL.Opt(Tokens),
|
|
215
218
|
});
|
|
216
219
|
const Valuation = IDL.Record({
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
token: IDL.Opt(IDL.Int32),
|
|
221
|
+
account: IDL.Opt(Account),
|
|
222
|
+
valuation_factors: IDL.Opt(ValuationFactors),
|
|
223
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
221
224
|
});
|
|
222
225
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
223
|
-
|
|
226
|
+
valuation: IDL.Opt(Valuation),
|
|
224
227
|
});
|
|
225
228
|
const SnsVersion = IDL.Record({
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
archive_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
230
|
+
root_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
231
|
+
swap_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
232
|
+
ledger_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
233
|
+
governance_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
234
|
+
index_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
232
235
|
});
|
|
233
236
|
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
234
|
-
|
|
237
|
+
target_version: IDL.Opt(SnsVersion),
|
|
235
238
|
});
|
|
236
239
|
const ActionAuxiliary = IDL.Variant({
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
+
TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary,
|
|
241
|
+
MintSnsTokens: MintSnsTokensActionAuxiliary,
|
|
242
|
+
AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary,
|
|
240
243
|
});
|
|
241
244
|
const Ballot = IDL.Record({
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
+
vote: IDL.Int32,
|
|
246
|
+
cast_timestamp_seconds: IDL.Nat64,
|
|
247
|
+
voting_power: IDL.Nat64,
|
|
245
248
|
});
|
|
246
|
-
const Percentage = IDL.Record({
|
|
249
|
+
const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
|
|
247
250
|
const Tally = IDL.Record({
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
no: IDL.Nat64,
|
|
252
|
+
yes: IDL.Nat64,
|
|
253
|
+
total: IDL.Nat64,
|
|
254
|
+
timestamp_seconds: IDL.Nat64,
|
|
252
255
|
});
|
|
253
256
|
const ManageDappCanisterSettings = IDL.Record({
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
freezing_threshold: IDL.Opt(IDL.Nat64),
|
|
258
|
+
wasm_memory_threshold: IDL.Opt(IDL.Nat64),
|
|
259
|
+
canister_ids: IDL.Vec(IDL.Principal),
|
|
260
|
+
reserved_cycles_limit: IDL.Opt(IDL.Nat64),
|
|
261
|
+
log_visibility: IDL.Opt(IDL.Int32),
|
|
262
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat64),
|
|
263
|
+
memory_allocation: IDL.Opt(IDL.Nat64),
|
|
264
|
+
compute_allocation: IDL.Opt(IDL.Nat64),
|
|
262
265
|
});
|
|
263
266
|
PreciseValue.fill(
|
|
264
267
|
IDL.Variant({
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
})
|
|
268
|
+
Int: IDL.Int64,
|
|
269
|
+
Map: IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
|
|
270
|
+
Nat: IDL.Nat64,
|
|
271
|
+
Blob: IDL.Vec(IDL.Nat8),
|
|
272
|
+
Bool: IDL.Bool,
|
|
273
|
+
Text: IDL.Text,
|
|
274
|
+
Array: IDL.Vec(PreciseValue),
|
|
275
|
+
}),
|
|
273
276
|
);
|
|
274
|
-
const ExtensionOperationArg = IDL.Record({
|
|
277
|
+
const ExtensionOperationArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
275
278
|
const ExecuteExtensionOperation = IDL.Record({
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
+
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
280
|
+
operation_name: IDL.Opt(IDL.Text),
|
|
281
|
+
operation_arg: IDL.Opt(ExtensionOperationArg),
|
|
279
282
|
});
|
|
280
283
|
const ChunkedCanisterWasm = IDL.Record({
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
285
|
+
chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
286
|
+
store_canister_id: IDL.Opt(IDL.Principal),
|
|
284
287
|
});
|
|
285
288
|
const Wasm = IDL.Variant({
|
|
286
|
-
|
|
287
|
-
|
|
289
|
+
Chunked: ChunkedCanisterWasm,
|
|
290
|
+
Bytes: IDL.Vec(IDL.Nat8),
|
|
288
291
|
});
|
|
289
|
-
const ExtensionUpgradeArg = IDL.Record({
|
|
292
|
+
const ExtensionUpgradeArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
290
293
|
const UpgradeExtension = IDL.Record({
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
+
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
295
|
+
wasm: IDL.Opt(Wasm),
|
|
296
|
+
canister_upgrade_arg: IDL.Opt(ExtensionUpgradeArg),
|
|
294
297
|
});
|
|
295
298
|
const SetTopicsForCustomProposals = IDL.Record({
|
|
296
|
-
|
|
299
|
+
custom_function_id_to_topic: IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
|
|
297
300
|
});
|
|
298
|
-
const ExtensionInit = IDL.Record({
|
|
301
|
+
const ExtensionInit = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
299
302
|
const RegisterExtension = IDL.Record({
|
|
300
|
-
|
|
301
|
-
|
|
303
|
+
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
304
|
+
extension_init: IDL.Opt(ExtensionInit),
|
|
302
305
|
});
|
|
303
306
|
const RegisterDappCanisters = IDL.Record({
|
|
304
|
-
|
|
307
|
+
canister_ids: IDL.Vec(IDL.Principal),
|
|
305
308
|
});
|
|
306
309
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
from_treasury: IDL.Int32,
|
|
311
|
+
to_principal: IDL.Opt(IDL.Principal),
|
|
312
|
+
to_subaccount: IDL.Opt(Subaccount),
|
|
313
|
+
memo: IDL.Opt(IDL.Nat64),
|
|
314
|
+
amount_e8s: IDL.Nat64,
|
|
312
315
|
});
|
|
313
316
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
new_canister_wasm: IDL.Vec(IDL.Nat8),
|
|
318
|
+
mode: IDL.Opt(IDL.Int32),
|
|
319
|
+
canister_id: IDL.Opt(IDL.Principal),
|
|
320
|
+
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
321
|
+
canister_upgrade_arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
319
322
|
});
|
|
320
323
|
const DeregisterDappCanisters = IDL.Record({
|
|
321
|
-
|
|
322
|
-
|
|
324
|
+
canister_ids: IDL.Vec(IDL.Principal),
|
|
325
|
+
new_controllers: IDL.Vec(IDL.Principal),
|
|
323
326
|
});
|
|
324
327
|
const MintSnsTokens = IDL.Record({
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
328
|
+
to_principal: IDL.Opt(IDL.Principal),
|
|
329
|
+
to_subaccount: IDL.Opt(Subaccount),
|
|
330
|
+
memo: IDL.Opt(IDL.Nat64),
|
|
331
|
+
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
329
332
|
});
|
|
330
333
|
const AdvanceSnsTargetVersion = IDL.Record({
|
|
331
|
-
|
|
334
|
+
new_target: IDL.Opt(SnsVersion),
|
|
332
335
|
});
|
|
333
336
|
const ManageSnsMetadata = IDL.Record({
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
url: IDL.Opt(IDL.Text),
|
|
338
|
+
logo: IDL.Opt(IDL.Text),
|
|
339
|
+
name: IDL.Opt(IDL.Text),
|
|
340
|
+
description: IDL.Opt(IDL.Text),
|
|
338
341
|
});
|
|
339
342
|
const ExecuteGenericNervousSystemFunction = IDL.Record({
|
|
340
|
-
|
|
341
|
-
|
|
343
|
+
function_id: IDL.Nat64,
|
|
344
|
+
payload: IDL.Vec(IDL.Nat8),
|
|
342
345
|
});
|
|
343
346
|
const ManageLedgerParameters = IDL.Record({
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
347
|
+
token_symbol: IDL.Opt(IDL.Text),
|
|
348
|
+
transfer_fee: IDL.Opt(IDL.Nat64),
|
|
349
|
+
token_logo: IDL.Opt(IDL.Text),
|
|
350
|
+
token_name: IDL.Opt(IDL.Text),
|
|
348
351
|
});
|
|
349
|
-
const Motion = IDL.Record({
|
|
352
|
+
const Motion = IDL.Record({ motion_text: IDL.Text });
|
|
350
353
|
const Action = IDL.Variant({
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
354
|
+
ManageNervousSystemParameters: NervousSystemParameters,
|
|
355
|
+
AddGenericNervousSystemFunction: NervousSystemFunction,
|
|
356
|
+
ManageDappCanisterSettings: ManageDappCanisterSettings,
|
|
357
|
+
ExecuteExtensionOperation: ExecuteExtensionOperation,
|
|
358
|
+
UpgradeExtension: UpgradeExtension,
|
|
359
|
+
RemoveGenericNervousSystemFunction: IDL.Nat64,
|
|
360
|
+
SetTopicsForCustomProposals: SetTopicsForCustomProposals,
|
|
361
|
+
RegisterExtension: RegisterExtension,
|
|
362
|
+
UpgradeSnsToNextVersion: IDL.Record({}),
|
|
363
|
+
RegisterDappCanisters: RegisterDappCanisters,
|
|
364
|
+
TransferSnsTreasuryFunds: TransferSnsTreasuryFunds,
|
|
365
|
+
UpgradeSnsControlledCanister: UpgradeSnsControlledCanister,
|
|
366
|
+
DeregisterDappCanisters: DeregisterDappCanisters,
|
|
367
|
+
MintSnsTokens: MintSnsTokens,
|
|
368
|
+
AdvanceSnsTargetVersion: AdvanceSnsTargetVersion,
|
|
369
|
+
Unspecified: IDL.Record({}),
|
|
370
|
+
ManageSnsMetadata: ManageSnsMetadata,
|
|
371
|
+
ExecuteGenericNervousSystemFunction: ExecuteGenericNervousSystemFunction,
|
|
372
|
+
ManageLedgerParameters: ManageLedgerParameters,
|
|
373
|
+
Motion: Motion,
|
|
371
374
|
});
|
|
372
375
|
const Proposal = IDL.Record({
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
376
|
+
url: IDL.Text,
|
|
377
|
+
title: IDL.Text,
|
|
378
|
+
action: IDL.Opt(Action),
|
|
379
|
+
summary: IDL.Text,
|
|
377
380
|
});
|
|
378
381
|
const WaitForQuietState = IDL.Record({
|
|
379
|
-
|
|
382
|
+
current_deadline_timestamp_seconds: IDL.Nat64,
|
|
380
383
|
});
|
|
381
384
|
const ProposalData = IDL.Record({
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
});
|
|
406
|
-
const Split = IDL.Record({
|
|
385
|
+
id: IDL.Opt(ProposalId),
|
|
386
|
+
payload_text_rendering: IDL.Opt(IDL.Text),
|
|
387
|
+
topic: IDL.Opt(Topic),
|
|
388
|
+
action: IDL.Nat64,
|
|
389
|
+
failure_reason: IDL.Opt(GovernanceError),
|
|
390
|
+
action_auxiliary: IDL.Opt(ActionAuxiliary),
|
|
391
|
+
ballots: IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
392
|
+
minimum_yes_proportion_of_total: IDL.Opt(Percentage),
|
|
393
|
+
reward_event_round: IDL.Nat64,
|
|
394
|
+
failed_timestamp_seconds: IDL.Nat64,
|
|
395
|
+
reward_event_end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
396
|
+
proposal_creation_timestamp_seconds: IDL.Nat64,
|
|
397
|
+
initial_voting_period_seconds: IDL.Nat64,
|
|
398
|
+
reject_cost_e8s: IDL.Nat64,
|
|
399
|
+
latest_tally: IDL.Opt(Tally),
|
|
400
|
+
wait_for_quiet_deadline_increase_seconds: IDL.Nat64,
|
|
401
|
+
decided_timestamp_seconds: IDL.Nat64,
|
|
402
|
+
proposal: IDL.Opt(Proposal),
|
|
403
|
+
proposer: IDL.Opt(NeuronId),
|
|
404
|
+
wait_for_quiet_state: IDL.Opt(WaitForQuietState),
|
|
405
|
+
minimum_yes_proportion_of_exercised: IDL.Opt(Percentage),
|
|
406
|
+
is_eligible_for_rewards: IDL.Bool,
|
|
407
|
+
executed_timestamp_seconds: IDL.Nat64,
|
|
408
|
+
});
|
|
409
|
+
const Split = IDL.Record({ memo: IDL.Nat64, amount_e8s: IDL.Nat64 });
|
|
407
410
|
const Follow = IDL.Record({
|
|
408
|
-
|
|
409
|
-
|
|
411
|
+
function_id: IDL.Nat64,
|
|
412
|
+
followees: IDL.Vec(NeuronId),
|
|
410
413
|
});
|
|
411
414
|
const DisburseMaturity = IDL.Record({
|
|
412
|
-
|
|
413
|
-
|
|
415
|
+
to_account: IDL.Opt(Account),
|
|
416
|
+
percentage_to_disburse: IDL.Nat32,
|
|
414
417
|
});
|
|
415
418
|
const ChangeAutoStakeMaturity = IDL.Record({
|
|
416
|
-
|
|
419
|
+
requested_setting_for_auto_stake_maturity: IDL.Bool,
|
|
417
420
|
});
|
|
418
421
|
const IncreaseDissolveDelay = IDL.Record({
|
|
419
|
-
|
|
422
|
+
additional_dissolve_delay_seconds: IDL.Nat32,
|
|
420
423
|
});
|
|
421
424
|
const SetDissolveTimestamp = IDL.Record({
|
|
422
|
-
|
|
425
|
+
dissolve_timestamp_seconds: IDL.Nat64,
|
|
423
426
|
});
|
|
424
427
|
const Operation = IDL.Variant({
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
|
|
429
|
+
StopDissolving: IDL.Record({}),
|
|
430
|
+
StartDissolving: IDL.Record({}),
|
|
431
|
+
IncreaseDissolveDelay: IncreaseDissolveDelay,
|
|
432
|
+
SetDissolveTimestamp: SetDissolveTimestamp,
|
|
430
433
|
});
|
|
431
|
-
const Configure = IDL.Record({
|
|
434
|
+
const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
|
|
432
435
|
const RegisterVote = IDL.Record({
|
|
433
|
-
|
|
434
|
-
|
|
436
|
+
vote: IDL.Int32,
|
|
437
|
+
proposal: IDL.Opt(ProposalId),
|
|
435
438
|
});
|
|
436
439
|
const Followee = IDL.Record({
|
|
437
|
-
|
|
438
|
-
|
|
440
|
+
alias: IDL.Opt(IDL.Text),
|
|
441
|
+
neuron_id: IDL.Opt(NeuronId),
|
|
439
442
|
});
|
|
440
443
|
const FolloweesForTopic = IDL.Record({
|
|
441
|
-
|
|
442
|
-
|
|
444
|
+
topic: IDL.Opt(Topic),
|
|
445
|
+
followees: IDL.Vec(Followee),
|
|
443
446
|
});
|
|
444
447
|
const SetFollowing = IDL.Record({
|
|
445
|
-
|
|
448
|
+
topic_following: IDL.Vec(FolloweesForTopic),
|
|
446
449
|
});
|
|
447
450
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
448
|
-
|
|
449
|
-
|
|
451
|
+
amount_to_be_disbursed_e8s: IDL.Nat64,
|
|
452
|
+
to_account: IDL.Opt(Account),
|
|
450
453
|
});
|
|
451
454
|
const MemoAndController = IDL.Record({
|
|
452
|
-
|
|
453
|
-
|
|
455
|
+
controller: IDL.Opt(IDL.Principal),
|
|
456
|
+
memo: IDL.Nat64,
|
|
454
457
|
});
|
|
455
458
|
const By = IDL.Variant({
|
|
456
|
-
|
|
457
|
-
|
|
459
|
+
MemoAndController: MemoAndController,
|
|
460
|
+
NeuronId: IDL.Record({}),
|
|
458
461
|
});
|
|
459
|
-
const ClaimOrRefresh = IDL.Record({
|
|
462
|
+
const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
|
|
460
463
|
const RemoveNeuronPermissions = IDL.Record({
|
|
461
|
-
|
|
462
|
-
|
|
464
|
+
permissions_to_remove: IDL.Opt(NeuronPermissionList),
|
|
465
|
+
principal_id: IDL.Opt(IDL.Principal),
|
|
463
466
|
});
|
|
464
467
|
const AddNeuronPermissions = IDL.Record({
|
|
465
|
-
|
|
466
|
-
|
|
468
|
+
permissions_to_add: IDL.Opt(NeuronPermissionList),
|
|
469
|
+
principal_id: IDL.Opt(IDL.Principal),
|
|
467
470
|
});
|
|
468
|
-
const MergeMaturity = IDL.Record({
|
|
469
|
-
const Amount = IDL.Record({
|
|
471
|
+
const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
|
|
472
|
+
const Amount = IDL.Record({ e8s: IDL.Nat64 });
|
|
470
473
|
const Disburse = IDL.Record({
|
|
471
|
-
|
|
472
|
-
|
|
474
|
+
to_account: IDL.Opt(Account),
|
|
475
|
+
amount: IDL.Opt(Amount),
|
|
473
476
|
});
|
|
474
477
|
const Command_2 = IDL.Variant({
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
478
|
+
Split: Split,
|
|
479
|
+
Follow: Follow,
|
|
480
|
+
DisburseMaturity: DisburseMaturity,
|
|
481
|
+
Configure: Configure,
|
|
482
|
+
RegisterVote: RegisterVote,
|
|
483
|
+
SetFollowing: SetFollowing,
|
|
484
|
+
SyncCommand: IDL.Record({}),
|
|
485
|
+
MakeProposal: Proposal,
|
|
486
|
+
FinalizeDisburseMaturity: FinalizeDisburseMaturity,
|
|
487
|
+
ClaimOrRefreshNeuron: ClaimOrRefresh,
|
|
488
|
+
RemoveNeuronPermissions: RemoveNeuronPermissions,
|
|
489
|
+
AddNeuronPermissions: AddNeuronPermissions,
|
|
490
|
+
MergeMaturity: MergeMaturity,
|
|
491
|
+
Disburse: Disburse,
|
|
489
492
|
});
|
|
490
493
|
const NeuronInFlightCommand = IDL.Record({
|
|
491
|
-
|
|
492
|
-
|
|
494
|
+
command: IDL.Opt(Command_2),
|
|
495
|
+
timestamp: IDL.Nat64,
|
|
493
496
|
});
|
|
494
497
|
const NeuronPermission = IDL.Record({
|
|
495
|
-
|
|
496
|
-
|
|
498
|
+
principal: IDL.Opt(IDL.Principal),
|
|
499
|
+
permission_type: IDL.Vec(IDL.Int32),
|
|
497
500
|
});
|
|
498
501
|
const DissolveState = IDL.Variant({
|
|
499
|
-
|
|
500
|
-
|
|
502
|
+
DissolveDelaySeconds: IDL.Nat64,
|
|
503
|
+
WhenDissolvedTimestampSeconds: IDL.Nat64,
|
|
501
504
|
});
|
|
502
505
|
const DisburseMaturityInProgress = IDL.Record({
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
506
|
+
timestamp_of_disbursement_seconds: IDL.Nat64,
|
|
507
|
+
amount_e8s: IDL.Nat64,
|
|
508
|
+
account_to_disburse_to: IDL.Opt(Account),
|
|
509
|
+
finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
507
510
|
});
|
|
508
511
|
const Neuron = IDL.Record({
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
id: IDL.Opt(NeuronId),
|
|
513
|
+
staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
514
|
+
permissions: IDL.Vec(NeuronPermission),
|
|
515
|
+
maturity_e8s_equivalent: IDL.Nat64,
|
|
516
|
+
cached_neuron_stake_e8s: IDL.Nat64,
|
|
517
|
+
created_timestamp_seconds: IDL.Nat64,
|
|
518
|
+
topic_followees: IDL.Opt(
|
|
516
519
|
IDL.Record({
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
),
|
|
520
|
-
})
|
|
520
|
+
topic_id_to_followees: IDL.Vec(IDL.Tuple(IDL.Int32, FolloweesForTopic)),
|
|
521
|
+
}),
|
|
521
522
|
),
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
523
|
+
source_nns_neuron_id: IDL.Opt(IDL.Nat64),
|
|
524
|
+
auto_stake_maturity: IDL.Opt(IDL.Bool),
|
|
525
|
+
aging_since_timestamp_seconds: IDL.Nat64,
|
|
526
|
+
dissolve_state: IDL.Opt(DissolveState),
|
|
527
|
+
voting_power_percentage_multiplier: IDL.Nat64,
|
|
528
|
+
vesting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
529
|
+
disburse_maturity_in_progress: IDL.Vec(DisburseMaturityInProgress),
|
|
530
|
+
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
531
|
+
neuron_fees_e8s: IDL.Nat64,
|
|
531
532
|
});
|
|
532
533
|
const Governance = IDL.Record({
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
534
|
+
root_canister_id: IDL.Opt(IDL.Principal),
|
|
535
|
+
timers: IDL.Opt(Timers),
|
|
536
|
+
cached_upgrade_steps: IDL.Opt(CachedUpgradeSteps),
|
|
537
|
+
id_to_nervous_system_functions: IDL.Vec(
|
|
538
|
+
IDL.Tuple(IDL.Nat64, NervousSystemFunction),
|
|
538
539
|
),
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
});
|
|
558
|
-
const Principals = IDL.Record({
|
|
540
|
+
metrics: IDL.Opt(GovernanceCachedMetrics),
|
|
541
|
+
maturity_modulation: IDL.Opt(MaturityModulation),
|
|
542
|
+
upgrade_journal: IDL.Opt(UpgradeJournal),
|
|
543
|
+
mode: IDL.Int32,
|
|
544
|
+
parameters: IDL.Opt(NervousSystemParameters),
|
|
545
|
+
is_finalizing_disburse_maturity: IDL.Opt(IDL.Bool),
|
|
546
|
+
deployed_version: IDL.Opt(Version),
|
|
547
|
+
sns_initialization_parameters: IDL.Text,
|
|
548
|
+
latest_reward_event: IDL.Opt(RewardEvent),
|
|
549
|
+
pending_version: IDL.Opt(PendingVersion),
|
|
550
|
+
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
551
|
+
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
552
|
+
proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
553
|
+
in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
554
|
+
sns_metadata: IDL.Opt(ManageSnsMetadata),
|
|
555
|
+
neurons: IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
556
|
+
target_version: IDL.Opt(Version),
|
|
557
|
+
genesis_timestamp_seconds: IDL.Nat64,
|
|
558
|
+
});
|
|
559
|
+
const Principals = IDL.Record({ principals: IDL.Vec(IDL.Principal) });
|
|
559
560
|
const NeuronsFund = IDL.Record({
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
nns_neuron_hotkeys: IDL.Opt(Principals),
|
|
562
|
+
nns_neuron_controller: IDL.Opt(IDL.Principal),
|
|
563
|
+
nns_neuron_id: IDL.Opt(IDL.Nat64),
|
|
563
564
|
});
|
|
564
565
|
const Participant = IDL.Variant({
|
|
565
|
-
|
|
566
|
-
|
|
566
|
+
NeuronsFund: NeuronsFund,
|
|
567
|
+
Direct: IDL.Record({}),
|
|
567
568
|
});
|
|
568
|
-
const NeuronIds = IDL.Record({
|
|
569
|
+
const NeuronIds = IDL.Record({ neuron_ids: IDL.Vec(NeuronId) });
|
|
569
570
|
const NeuronRecipe = IDL.Record({
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
571
|
+
controller: IDL.Opt(IDL.Principal),
|
|
572
|
+
dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
573
|
+
participant: IDL.Opt(Participant),
|
|
574
|
+
stake_e8s: IDL.Opt(IDL.Nat64),
|
|
575
|
+
followees: IDL.Opt(NeuronIds),
|
|
576
|
+
neuron_id: IDL.Opt(NeuronId),
|
|
576
577
|
});
|
|
577
578
|
const NeuronRecipes = IDL.Record({
|
|
578
|
-
|
|
579
|
+
neuron_recipes: IDL.Vec(NeuronRecipe),
|
|
579
580
|
});
|
|
580
581
|
const ClaimSwapNeuronsRequest = IDL.Record({
|
|
581
|
-
|
|
582
|
+
neuron_recipes: IDL.Opt(NeuronRecipes),
|
|
582
583
|
});
|
|
583
584
|
const SwapNeuron = IDL.Record({
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
id: IDL.Opt(NeuronId),
|
|
586
|
+
status: IDL.Int32,
|
|
586
587
|
});
|
|
587
588
|
const ClaimedSwapNeurons = IDL.Record({
|
|
588
|
-
|
|
589
|
+
swap_neurons: IDL.Vec(SwapNeuron),
|
|
589
590
|
});
|
|
590
591
|
const ClaimSwapNeuronsResult = IDL.Variant({
|
|
591
|
-
|
|
592
|
-
|
|
592
|
+
Ok: ClaimedSwapNeurons,
|
|
593
|
+
Err: IDL.Int32,
|
|
593
594
|
});
|
|
594
595
|
const ClaimSwapNeuronsResponse = IDL.Record({
|
|
595
|
-
|
|
596
|
+
claim_swap_neurons_result: IDL.Opt(ClaimSwapNeuronsResult),
|
|
596
597
|
});
|
|
597
598
|
const GetMaturityModulationResponse = IDL.Record({
|
|
598
|
-
|
|
599
|
+
maturity_modulation: IDL.Opt(MaturityModulation),
|
|
599
600
|
});
|
|
600
601
|
const GetMetadataResponse = IDL.Record({
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
url: IDL.Opt(IDL.Text),
|
|
603
|
+
logo: IDL.Opt(IDL.Text),
|
|
604
|
+
name: IDL.Opt(IDL.Text),
|
|
605
|
+
description: IDL.Opt(IDL.Text),
|
|
605
606
|
});
|
|
606
607
|
const GetMetricsRequest = IDL.Record({
|
|
607
|
-
|
|
608
|
+
time_window_seconds: IDL.Opt(IDL.Nat64),
|
|
608
609
|
});
|
|
609
610
|
const Metrics = IDL.Record({
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
611
|
+
treasury_metrics: IDL.Opt(IDL.Vec(TreasuryMetrics)),
|
|
612
|
+
voting_power_metrics: IDL.Opt(VotingPowerMetrics),
|
|
613
|
+
last_ledger_block_timestamp: IDL.Opt(IDL.Nat64),
|
|
614
|
+
num_recently_executed_proposals: IDL.Opt(IDL.Nat64),
|
|
615
|
+
num_recently_submitted_proposals: IDL.Opt(IDL.Nat64),
|
|
616
|
+
genesis_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
616
617
|
});
|
|
617
618
|
const GetMetricsResult = IDL.Variant({
|
|
618
|
-
|
|
619
|
-
|
|
619
|
+
Ok: Metrics,
|
|
620
|
+
Err: GovernanceError,
|
|
620
621
|
});
|
|
621
622
|
const GetMetricsResponse = IDL.Record({
|
|
622
|
-
|
|
623
|
+
get_metrics_result: IDL.Opt(GetMetricsResult),
|
|
623
624
|
});
|
|
624
|
-
const GetModeResponse = IDL.Record({
|
|
625
|
-
const GetNeuron = IDL.Record({
|
|
626
|
-
const Result = IDL.Variant({
|
|
627
|
-
const GetNeuronResponse = IDL.Record({
|
|
628
|
-
const GetProposal = IDL.Record({
|
|
625
|
+
const GetModeResponse = IDL.Record({ mode: IDL.Opt(IDL.Int32) });
|
|
626
|
+
const GetNeuron = IDL.Record({ neuron_id: IDL.Opt(NeuronId) });
|
|
627
|
+
const Result = IDL.Variant({ Error: GovernanceError, Neuron: Neuron });
|
|
628
|
+
const GetNeuronResponse = IDL.Record({ result: IDL.Opt(Result) });
|
|
629
|
+
const GetProposal = IDL.Record({ proposal_id: IDL.Opt(ProposalId) });
|
|
629
630
|
const Result_1 = IDL.Variant({
|
|
630
|
-
|
|
631
|
-
|
|
631
|
+
Error: GovernanceError,
|
|
632
|
+
Proposal: ProposalData,
|
|
632
633
|
});
|
|
633
|
-
const GetProposalResponse = IDL.Record({
|
|
634
|
+
const GetProposalResponse = IDL.Record({ result: IDL.Opt(Result_1) });
|
|
634
635
|
const MemoryMetrics = IDL.Record({
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
636
|
+
wasm_binary_size: IDL.Opt(IDL.Nat),
|
|
637
|
+
wasm_chunk_store_size: IDL.Opt(IDL.Nat),
|
|
638
|
+
canister_history_size: IDL.Opt(IDL.Nat),
|
|
639
|
+
stable_memory_size: IDL.Opt(IDL.Nat),
|
|
640
|
+
snapshots_size: IDL.Opt(IDL.Nat),
|
|
641
|
+
wasm_memory_size: IDL.Opt(IDL.Nat),
|
|
642
|
+
global_memory_size: IDL.Opt(IDL.Nat),
|
|
643
|
+
custom_sections_size: IDL.Opt(IDL.Nat),
|
|
643
644
|
});
|
|
644
645
|
const CanisterStatusType = IDL.Variant({
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
stopped: IDL.Null,
|
|
647
|
+
stopping: IDL.Null,
|
|
648
|
+
running: IDL.Null,
|
|
648
649
|
});
|
|
649
650
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
651
|
+
freezing_threshold: IDL.Nat,
|
|
652
|
+
wasm_memory_threshold: IDL.Opt(IDL.Nat),
|
|
653
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
654
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat),
|
|
655
|
+
memory_allocation: IDL.Nat,
|
|
656
|
+
compute_allocation: IDL.Nat,
|
|
656
657
|
});
|
|
657
658
|
const QueryStats = IDL.Record({
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
response_payload_bytes_total: IDL.Opt(IDL.Nat),
|
|
660
|
+
num_instructions_total: IDL.Opt(IDL.Nat),
|
|
661
|
+
num_calls_total: IDL.Opt(IDL.Nat),
|
|
662
|
+
request_payload_bytes_total: IDL.Opt(IDL.Nat),
|
|
662
663
|
});
|
|
663
664
|
const CanisterStatusResultV2 = IDL.Record({
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
665
|
+
memory_metrics: IDL.Opt(MemoryMetrics),
|
|
666
|
+
status: CanisterStatusType,
|
|
667
|
+
memory_size: IDL.Nat,
|
|
668
|
+
cycles: IDL.Nat,
|
|
669
|
+
settings: DefiniteCanisterSettingsArgs,
|
|
670
|
+
query_stats: IDL.Opt(QueryStats),
|
|
671
|
+
idle_cycles_burned_per_day: IDL.Nat,
|
|
672
|
+
module_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
672
673
|
});
|
|
673
674
|
const GetRunningSnsVersionResponse = IDL.Record({
|
|
674
|
-
|
|
675
|
-
|
|
675
|
+
deployed_version: IDL.Opt(Version),
|
|
676
|
+
pending_version: IDL.Opt(
|
|
676
677
|
IDL.Record({
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
})
|
|
678
|
+
mark_failed_at_seconds: IDL.Nat64,
|
|
679
|
+
checking_upgrade_lock: IDL.Nat64,
|
|
680
|
+
proposal_id: IDL.Nat64,
|
|
681
|
+
target_version: IDL.Opt(Version),
|
|
682
|
+
}),
|
|
682
683
|
),
|
|
683
684
|
});
|
|
684
685
|
const GetSnsInitializationParametersResponse = IDL.Record({
|
|
685
|
-
|
|
686
|
+
sns_initialization_parameters: IDL.Text,
|
|
686
687
|
});
|
|
687
|
-
const GetTimersResponse = IDL.Record({
|
|
688
|
+
const GetTimersResponse = IDL.Record({ timers: IDL.Opt(Timers) });
|
|
688
689
|
const GetUpgradeJournalRequest = IDL.Record({
|
|
689
|
-
|
|
690
|
-
|
|
690
|
+
offset: IDL.Opt(IDL.Nat64),
|
|
691
|
+
limit: IDL.Opt(IDL.Nat64),
|
|
691
692
|
});
|
|
692
693
|
const GetUpgradeJournalResponse = IDL.Record({
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
upgrade_journal: IDL.Opt(UpgradeJournal),
|
|
695
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
696
|
+
response_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
697
|
+
deployed_version: IDL.Opt(Version),
|
|
698
|
+
target_version: IDL.Opt(Version),
|
|
699
|
+
upgrade_journal_entry_count: IDL.Opt(IDL.Nat64),
|
|
699
700
|
});
|
|
700
701
|
const ListNervousSystemFunctionsResponse = IDL.Record({
|
|
701
|
-
|
|
702
|
-
|
|
702
|
+
reserved_ids: IDL.Vec(IDL.Nat64),
|
|
703
|
+
functions: IDL.Vec(NervousSystemFunction),
|
|
703
704
|
});
|
|
704
705
|
const ListNeurons = IDL.Record({
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
of_principal: IDL.Opt(IDL.Principal),
|
|
707
|
+
limit: IDL.Nat32,
|
|
708
|
+
start_page_at: IDL.Opt(NeuronId),
|
|
708
709
|
});
|
|
709
|
-
const ListNeuronsResponse = IDL.Record({
|
|
710
|
-
const TopicSelector = IDL.Record({
|
|
710
|
+
const ListNeuronsResponse = IDL.Record({ neurons: IDL.Vec(Neuron) });
|
|
711
|
+
const TopicSelector = IDL.Record({ topic: IDL.Opt(Topic) });
|
|
711
712
|
const ListProposals = IDL.Record({
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
713
|
+
include_reward_status: IDL.Vec(IDL.Int32),
|
|
714
|
+
before_proposal: IDL.Opt(ProposalId),
|
|
715
|
+
limit: IDL.Nat32,
|
|
716
|
+
exclude_type: IDL.Vec(IDL.Nat64),
|
|
717
|
+
include_topics: IDL.Opt(IDL.Vec(TopicSelector)),
|
|
718
|
+
include_status: IDL.Vec(IDL.Int32),
|
|
718
719
|
});
|
|
719
720
|
const ListProposalsResponse = IDL.Record({
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
include_ballots_by_caller: IDL.Opt(IDL.Bool),
|
|
722
|
+
proposals: IDL.Vec(ProposalData),
|
|
723
|
+
include_topic_filtering: IDL.Opt(IDL.Bool),
|
|
723
724
|
});
|
|
724
725
|
const ListTopicsRequest = IDL.Record({});
|
|
725
726
|
const ExtensionOperationType = IDL.Variant({
|
|
726
|
-
|
|
727
|
-
|
|
727
|
+
TreasuryManagerWithdraw: IDL.Null,
|
|
728
|
+
TreasuryManagerDeposit: IDL.Null,
|
|
728
729
|
});
|
|
729
|
-
const ExtensionType = IDL.Variant({
|
|
730
|
+
const ExtensionType = IDL.Variant({ TreasuryManager: IDL.Null });
|
|
730
731
|
const ExtensionOperationSpec = IDL.Record({
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
732
|
+
topic: IDL.Opt(Topic),
|
|
733
|
+
operation_type: IDL.Opt(ExtensionOperationType),
|
|
734
|
+
description: IDL.Opt(IDL.Text),
|
|
735
|
+
extension_type: IDL.Opt(ExtensionType),
|
|
735
736
|
});
|
|
736
737
|
const RegisteredExtensionOperationSpec = IDL.Record({
|
|
737
|
-
|
|
738
|
-
|
|
738
|
+
spec: IDL.Opt(ExtensionOperationSpec),
|
|
739
|
+
canister_id: IDL.Opt(IDL.Principal),
|
|
739
740
|
});
|
|
740
741
|
const TopicInfo = IDL.Record({
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
742
|
+
extension_operations: IDL.Opt(IDL.Vec(RegisteredExtensionOperationSpec)),
|
|
743
|
+
native_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
744
|
+
topic: IDL.Opt(Topic),
|
|
745
|
+
is_critical: IDL.Opt(IDL.Bool),
|
|
746
|
+
name: IDL.Opt(IDL.Text),
|
|
747
|
+
description: IDL.Opt(IDL.Text),
|
|
748
|
+
custom_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
748
749
|
});
|
|
749
750
|
const ListTopicsResponse = IDL.Record({
|
|
750
|
-
|
|
751
|
-
|
|
751
|
+
uncategorized_functions: IDL.Opt(IDL.Vec(NervousSystemFunction)),
|
|
752
|
+
topics: IDL.Opt(IDL.Vec(TopicInfo)),
|
|
752
753
|
});
|
|
753
754
|
const StakeMaturity = IDL.Record({
|
|
754
|
-
|
|
755
|
+
percentage_to_stake: IDL.Opt(IDL.Nat32),
|
|
755
756
|
});
|
|
756
757
|
const Command = IDL.Variant({
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
758
|
+
Split: Split,
|
|
759
|
+
Follow: Follow,
|
|
760
|
+
DisburseMaturity: DisburseMaturity,
|
|
761
|
+
ClaimOrRefresh: ClaimOrRefresh,
|
|
762
|
+
Configure: Configure,
|
|
763
|
+
RegisterVote: RegisterVote,
|
|
764
|
+
SetFollowing: SetFollowing,
|
|
765
|
+
MakeProposal: Proposal,
|
|
766
|
+
StakeMaturity: StakeMaturity,
|
|
767
|
+
RemoveNeuronPermissions: RemoveNeuronPermissions,
|
|
768
|
+
AddNeuronPermissions: AddNeuronPermissions,
|
|
769
|
+
MergeMaturity: MergeMaturity,
|
|
770
|
+
Disburse: Disburse,
|
|
770
771
|
});
|
|
771
772
|
const ManageNeuron = IDL.Record({
|
|
772
|
-
|
|
773
|
-
|
|
773
|
+
subaccount: IDL.Vec(IDL.Nat8),
|
|
774
|
+
command: IDL.Opt(Command),
|
|
774
775
|
});
|
|
775
|
-
const SplitResponse = IDL.Record({
|
|
776
|
+
const SplitResponse = IDL.Record({ created_neuron_id: IDL.Opt(NeuronId) });
|
|
776
777
|
const DisburseMaturityResponse = IDL.Record({
|
|
777
|
-
|
|
778
|
-
|
|
778
|
+
amount_disbursed_e8s: IDL.Nat64,
|
|
779
|
+
amount_deducted_e8s: IDL.Opt(IDL.Nat64),
|
|
779
780
|
});
|
|
780
781
|
const ClaimOrRefreshResponse = IDL.Record({
|
|
781
|
-
|
|
782
|
+
refreshed_neuron_id: IDL.Opt(NeuronId),
|
|
782
783
|
});
|
|
783
784
|
const StakeMaturityResponse = IDL.Record({
|
|
784
|
-
|
|
785
|
-
|
|
785
|
+
maturity_e8s: IDL.Nat64,
|
|
786
|
+
staked_maturity_e8s: IDL.Nat64,
|
|
786
787
|
});
|
|
787
788
|
const MergeMaturityResponse = IDL.Record({
|
|
788
|
-
|
|
789
|
-
|
|
789
|
+
merged_maturity_e8s: IDL.Nat64,
|
|
790
|
+
new_stake_e8s: IDL.Nat64,
|
|
790
791
|
});
|
|
791
|
-
const DisburseResponse = IDL.Record({
|
|
792
|
+
const DisburseResponse = IDL.Record({ transfer_block_height: IDL.Nat64 });
|
|
792
793
|
const Command_1 = IDL.Variant({
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
});
|
|
808
|
-
const ManageNeuronResponse = IDL.Record({
|
|
809
|
-
const SetMode = IDL.Record({
|
|
794
|
+
Error: GovernanceError,
|
|
795
|
+
Split: SplitResponse,
|
|
796
|
+
Follow: IDL.Record({}),
|
|
797
|
+
DisburseMaturity: DisburseMaturityResponse,
|
|
798
|
+
ClaimOrRefresh: ClaimOrRefreshResponse,
|
|
799
|
+
Configure: IDL.Record({}),
|
|
800
|
+
RegisterVote: IDL.Record({}),
|
|
801
|
+
SetFollowing: IDL.Record({}),
|
|
802
|
+
MakeProposal: GetProposal,
|
|
803
|
+
RemoveNeuronPermission: IDL.Record({}),
|
|
804
|
+
StakeMaturity: StakeMaturityResponse,
|
|
805
|
+
MergeMaturity: MergeMaturityResponse,
|
|
806
|
+
Disburse: DisburseResponse,
|
|
807
|
+
AddNeuronPermission: IDL.Record({}),
|
|
808
|
+
});
|
|
809
|
+
const ManageNeuronResponse = IDL.Record({ command: IDL.Opt(Command_1) });
|
|
810
|
+
const SetMode = IDL.Record({ mode: IDL.Int32 });
|
|
811
|
+
|
|
810
812
|
return IDL.Service({
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
813
|
+
claim_swap_neurons: IDL.Func(
|
|
814
|
+
[ClaimSwapNeuronsRequest],
|
|
815
|
+
[ClaimSwapNeuronsResponse],
|
|
816
|
+
[],
|
|
817
|
+
),
|
|
818
|
+
fail_stuck_upgrade_in_progress: IDL.Func(
|
|
819
|
+
[IDL.Record({})],
|
|
820
|
+
[IDL.Record({})],
|
|
821
|
+
[],
|
|
822
|
+
),
|
|
823
|
+
get_build_metadata: IDL.Func([], [IDL.Text], []),
|
|
824
|
+
get_latest_reward_event: IDL.Func([], [RewardEvent], []),
|
|
825
|
+
get_maturity_modulation: IDL.Func(
|
|
826
|
+
[IDL.Record({})],
|
|
827
|
+
[GetMaturityModulationResponse],
|
|
828
|
+
[],
|
|
829
|
+
),
|
|
830
|
+
get_metadata: IDL.Func([IDL.Record({})], [GetMetadataResponse], []),
|
|
831
|
+
get_metrics: IDL.Func([GetMetricsRequest], [GetMetricsResponse], []),
|
|
832
|
+
get_metrics_replicated: IDL.Func(
|
|
833
|
+
[GetMetricsRequest],
|
|
834
|
+
[GetMetricsResponse],
|
|
835
|
+
[],
|
|
836
|
+
),
|
|
837
|
+
get_mode: IDL.Func([IDL.Record({})], [GetModeResponse], []),
|
|
838
|
+
get_nervous_system_parameters: IDL.Func(
|
|
839
|
+
[IDL.Null],
|
|
840
|
+
[NervousSystemParameters],
|
|
841
|
+
[],
|
|
842
|
+
),
|
|
843
|
+
get_neuron: IDL.Func([GetNeuron], [GetNeuronResponse], []),
|
|
844
|
+
get_proposal: IDL.Func([GetProposal], [GetProposalResponse], []),
|
|
845
|
+
get_root_canister_status: IDL.Func(
|
|
846
|
+
[IDL.Null],
|
|
847
|
+
[CanisterStatusResultV2],
|
|
848
|
+
[],
|
|
849
|
+
),
|
|
850
|
+
get_running_sns_version: IDL.Func(
|
|
851
|
+
[IDL.Record({})],
|
|
852
|
+
[GetRunningSnsVersionResponse],
|
|
853
|
+
[],
|
|
854
|
+
),
|
|
855
|
+
get_sns_initialization_parameters: IDL.Func(
|
|
856
|
+
[IDL.Record({})],
|
|
857
|
+
[GetSnsInitializationParametersResponse],
|
|
858
|
+
[],
|
|
859
|
+
),
|
|
860
|
+
get_timers: IDL.Func([IDL.Record({})], [GetTimersResponse], []),
|
|
861
|
+
get_upgrade_journal: IDL.Func(
|
|
862
|
+
[GetUpgradeJournalRequest],
|
|
863
|
+
[GetUpgradeJournalResponse],
|
|
864
|
+
[],
|
|
865
|
+
),
|
|
866
|
+
list_nervous_system_functions: IDL.Func(
|
|
867
|
+
[],
|
|
868
|
+
[ListNervousSystemFunctionsResponse],
|
|
869
|
+
[],
|
|
870
|
+
),
|
|
871
|
+
list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], []),
|
|
872
|
+
list_proposals: IDL.Func([ListProposals], [ListProposalsResponse], []),
|
|
873
|
+
list_topics: IDL.Func([ListTopicsRequest], [ListTopicsResponse], []),
|
|
874
|
+
manage_neuron: IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
|
|
875
|
+
reset_timers: IDL.Func([IDL.Record({})], [IDL.Record({})], []),
|
|
876
|
+
set_mode: IDL.Func([SetMode], [IDL.Record({})], []),
|
|
875
877
|
});
|
|
876
878
|
};
|
|
879
|
+
|
|
877
880
|
export const init = ({ IDL }) => {
|
|
878
881
|
const PreciseValue = IDL.Rec();
|
|
879
882
|
const Timers = IDL.Record({
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
+
last_spawned_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
884
|
+
last_reset_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
885
|
+
requires_periodic_tasks: IDL.Opt(IDL.Bool),
|
|
883
886
|
});
|
|
884
887
|
const Version = IDL.Record({
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
});
|
|
892
|
-
const Versions = IDL.Record({
|
|
888
|
+
archive_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
889
|
+
root_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
890
|
+
swap_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
891
|
+
ledger_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
892
|
+
governance_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
893
|
+
index_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
894
|
+
});
|
|
895
|
+
const Versions = IDL.Record({ versions: IDL.Vec(Version) });
|
|
893
896
|
const CachedUpgradeSteps = IDL.Record({
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
898
|
+
response_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
899
|
+
requested_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
897
900
|
});
|
|
898
901
|
const Topic = IDL.Variant({
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
DappCanisterManagement: IDL.Null,
|
|
903
|
+
DaoCommunitySettings: IDL.Null,
|
|
904
|
+
ApplicationBusinessLogic: IDL.Null,
|
|
905
|
+
CriticalDappOperations: IDL.Null,
|
|
906
|
+
TreasuryAssetManagement: IDL.Null,
|
|
907
|
+
Governance: IDL.Null,
|
|
908
|
+
SnsFrameworkManagement: IDL.Null,
|
|
906
909
|
});
|
|
907
910
|
const GenericNervousSystemFunction = IDL.Record({
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
911
|
+
topic: IDL.Opt(Topic),
|
|
912
|
+
validator_canister_id: IDL.Opt(IDL.Principal),
|
|
913
|
+
target_canister_id: IDL.Opt(IDL.Principal),
|
|
914
|
+
validator_method_name: IDL.Opt(IDL.Text),
|
|
915
|
+
target_method_name: IDL.Opt(IDL.Text),
|
|
913
916
|
});
|
|
914
917
|
const FunctionType = IDL.Variant({
|
|
915
|
-
|
|
916
|
-
|
|
918
|
+
NativeNervousSystemFunction: IDL.Record({}),
|
|
919
|
+
GenericNervousSystemFunction: GenericNervousSystemFunction,
|
|
917
920
|
});
|
|
918
921
|
const NervousSystemFunction = IDL.Record({
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
922
|
+
id: IDL.Nat64,
|
|
923
|
+
name: IDL.Text,
|
|
924
|
+
description: IDL.Opt(IDL.Text),
|
|
925
|
+
function_type: IDL.Opt(FunctionType),
|
|
923
926
|
});
|
|
924
|
-
const Subaccount = IDL.Record({
|
|
927
|
+
const Subaccount = IDL.Record({ subaccount: IDL.Vec(IDL.Nat8) });
|
|
925
928
|
const Account = IDL.Record({
|
|
926
|
-
|
|
927
|
-
|
|
929
|
+
owner: IDL.Opt(IDL.Principal),
|
|
930
|
+
subaccount: IDL.Opt(Subaccount),
|
|
928
931
|
});
|
|
929
932
|
const TreasuryMetrics = IDL.Record({
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
933
|
+
name: IDL.Opt(IDL.Text),
|
|
934
|
+
original_amount_e8s: IDL.Opt(IDL.Nat64),
|
|
935
|
+
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
936
|
+
account: IDL.Opt(Account),
|
|
937
|
+
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
938
|
+
treasury: IDL.Int32,
|
|
939
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
937
940
|
});
|
|
938
941
|
const VotingPowerMetrics = IDL.Record({
|
|
939
|
-
|
|
940
|
-
|
|
942
|
+
governance_total_potential_voting_power: IDL.Opt(IDL.Nat64),
|
|
943
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
941
944
|
});
|
|
942
945
|
const GovernanceCachedMetrics = IDL.Record({
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
946
|
+
treasury_metrics: IDL.Vec(TreasuryMetrics),
|
|
947
|
+
not_dissolving_neurons_e8s_buckets: IDL.Vec(
|
|
948
|
+
IDL.Tuple(IDL.Nat64, IDL.Float64),
|
|
946
949
|
),
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
IDL.Tuple(IDL.Nat64, IDL.Nat64)
|
|
950
|
+
garbage_collectable_neurons_count: IDL.Nat64,
|
|
951
|
+
neurons_with_invalid_stake_count: IDL.Nat64,
|
|
952
|
+
not_dissolving_neurons_count_buckets: IDL.Vec(
|
|
953
|
+
IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
951
954
|
),
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
),
|
|
963
|
-
|
|
964
|
-
'dissolving_neurons_e8s_buckets' : IDL.Vec(
|
|
965
|
-
IDL.Tuple(IDL.Nat64, IDL.Float64)
|
|
966
|
-
),
|
|
967
|
-
'timestamp_seconds' : IDL.Nat64,
|
|
955
|
+
neurons_with_less_than_6_months_dissolve_delay_count: IDL.Nat64,
|
|
956
|
+
dissolved_neurons_count: IDL.Nat64,
|
|
957
|
+
total_staked_e8s: IDL.Nat64,
|
|
958
|
+
total_supply_governance_tokens: IDL.Nat64,
|
|
959
|
+
voting_power_metrics: IDL.Opt(VotingPowerMetrics),
|
|
960
|
+
not_dissolving_neurons_count: IDL.Nat64,
|
|
961
|
+
dissolved_neurons_e8s: IDL.Nat64,
|
|
962
|
+
neurons_with_less_than_6_months_dissolve_delay_e8s: IDL.Nat64,
|
|
963
|
+
dissolving_neurons_count_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
|
|
964
|
+
dissolving_neurons_count: IDL.Nat64,
|
|
965
|
+
dissolving_neurons_e8s_buckets: IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Float64)),
|
|
966
|
+
timestamp_seconds: IDL.Nat64,
|
|
968
967
|
});
|
|
969
968
|
const MaturityModulation = IDL.Record({
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
current_basis_points: IDL.Opt(IDL.Int32),
|
|
970
|
+
updated_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
972
971
|
});
|
|
973
972
|
const TargetVersionSet = IDL.Record({
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
973
|
+
old_target_version: IDL.Opt(Version),
|
|
974
|
+
new_target_version: IDL.Opt(Version),
|
|
975
|
+
is_advanced_automatically: IDL.Opt(IDL.Bool),
|
|
977
976
|
});
|
|
978
977
|
const UpgradeStepsReset = IDL.Record({
|
|
979
|
-
|
|
980
|
-
|
|
978
|
+
human_readable: IDL.Opt(IDL.Text),
|
|
979
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
981
980
|
});
|
|
982
981
|
const UpgradeOutcome = IDL.Record({
|
|
983
|
-
|
|
982
|
+
status: IDL.Opt(
|
|
984
983
|
IDL.Variant({
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
})
|
|
984
|
+
Success: IDL.Record({}),
|
|
985
|
+
Timeout: IDL.Record({}),
|
|
986
|
+
ExternalFailure: IDL.Record({}),
|
|
987
|
+
InvalidState: IDL.Record({ version: IDL.Opt(Version) }),
|
|
988
|
+
}),
|
|
990
989
|
),
|
|
991
|
-
|
|
990
|
+
human_readable: IDL.Opt(IDL.Text),
|
|
992
991
|
});
|
|
993
|
-
const ProposalId = IDL.Record({
|
|
992
|
+
const ProposalId = IDL.Record({ id: IDL.Nat64 });
|
|
994
993
|
const UpgradeStarted = IDL.Record({
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
994
|
+
current_version: IDL.Opt(Version),
|
|
995
|
+
expected_version: IDL.Opt(Version),
|
|
996
|
+
reason: IDL.Opt(
|
|
998
997
|
IDL.Variant({
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
})
|
|
998
|
+
UpgradeSnsToNextVersionProposal: ProposalId,
|
|
999
|
+
BehindTargetVersion: IDL.Record({}),
|
|
1000
|
+
}),
|
|
1002
1001
|
),
|
|
1003
1002
|
});
|
|
1004
1003
|
const UpgradeStepsRefreshed = IDL.Record({
|
|
1005
|
-
|
|
1004
|
+
upgrade_steps: IDL.Opt(Versions),
|
|
1006
1005
|
});
|
|
1007
1006
|
const TargetVersionReset = IDL.Record({
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1007
|
+
human_readable: IDL.Opt(IDL.Text),
|
|
1008
|
+
old_target_version: IDL.Opt(Version),
|
|
1009
|
+
new_target_version: IDL.Opt(Version),
|
|
1011
1010
|
});
|
|
1012
1011
|
const UpgradeJournalEntry = IDL.Record({
|
|
1013
|
-
|
|
1012
|
+
event: IDL.Opt(
|
|
1014
1013
|
IDL.Variant({
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
})
|
|
1014
|
+
TargetVersionSet: TargetVersionSet,
|
|
1015
|
+
UpgradeStepsReset: UpgradeStepsReset,
|
|
1016
|
+
UpgradeOutcome: UpgradeOutcome,
|
|
1017
|
+
UpgradeStarted: UpgradeStarted,
|
|
1018
|
+
UpgradeStepsRefreshed: UpgradeStepsRefreshed,
|
|
1019
|
+
TargetVersionReset: TargetVersionReset,
|
|
1020
|
+
}),
|
|
1022
1021
|
),
|
|
1023
|
-
|
|
1022
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1024
1023
|
});
|
|
1025
1024
|
const UpgradeJournal = IDL.Record({
|
|
1026
|
-
|
|
1025
|
+
entries: IDL.Vec(UpgradeJournalEntry),
|
|
1027
1026
|
});
|
|
1028
|
-
const NeuronId = IDL.Record({
|
|
1029
|
-
const Followees = IDL.Record({
|
|
1027
|
+
const NeuronId = IDL.Record({ id: IDL.Vec(IDL.Nat8) });
|
|
1028
|
+
const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
|
|
1030
1029
|
const DefaultFollowees = IDL.Record({
|
|
1031
|
-
|
|
1030
|
+
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
1032
1031
|
});
|
|
1033
1032
|
const NeuronPermissionList = IDL.Record({
|
|
1034
|
-
|
|
1033
|
+
permissions: IDL.Vec(IDL.Int32),
|
|
1035
1034
|
});
|
|
1036
1035
|
const VotingRewardsParameters = IDL.Record({
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1036
|
+
final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
1037
|
+
initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
1038
|
+
reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
1039
|
+
round_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
1041
1040
|
});
|
|
1042
1041
|
const NervousSystemParameters = IDL.Record({
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1042
|
+
default_followees: IDL.Opt(DefaultFollowees),
|
|
1043
|
+
max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
1044
|
+
max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
1045
|
+
max_followees_per_function: IDL.Opt(IDL.Nat64),
|
|
1046
|
+
automatically_advance_target_version: IDL.Opt(IDL.Bool),
|
|
1047
|
+
neuron_claimer_permissions: IDL.Opt(NeuronPermissionList),
|
|
1048
|
+
neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
|
|
1049
|
+
max_neuron_age_for_age_bonus: IDL.Opt(IDL.Nat64),
|
|
1050
|
+
initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
1051
|
+
neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
|
|
1052
|
+
reject_cost_e8s: IDL.Opt(IDL.Nat64),
|
|
1053
|
+
max_proposals_to_keep_per_action: IDL.Opt(IDL.Nat32),
|
|
1054
|
+
wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
|
|
1055
|
+
max_number_of_neurons: IDL.Opt(IDL.Nat64),
|
|
1056
|
+
transaction_fee_e8s: IDL.Opt(IDL.Nat64),
|
|
1057
|
+
max_number_of_proposals_with_ballots: IDL.Opt(IDL.Nat64),
|
|
1058
|
+
max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
1059
|
+
neuron_grantable_permissions: IDL.Opt(NeuronPermissionList),
|
|
1060
|
+
voting_rewards_parameters: IDL.Opt(VotingRewardsParameters),
|
|
1061
|
+
maturity_modulation_disabled: IDL.Opt(IDL.Bool),
|
|
1062
|
+
max_number_of_principals_per_neuron: IDL.Opt(IDL.Nat64),
|
|
1064
1063
|
});
|
|
1065
1064
|
const RewardEvent = IDL.Record({
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1065
|
+
rounds_since_last_distribution: IDL.Opt(IDL.Nat64),
|
|
1066
|
+
actual_timestamp_seconds: IDL.Nat64,
|
|
1067
|
+
end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1068
|
+
total_available_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
1069
|
+
distributed_e8s_equivalent: IDL.Nat64,
|
|
1070
|
+
round: IDL.Nat64,
|
|
1071
|
+
settled_proposals: IDL.Vec(ProposalId),
|
|
1073
1072
|
});
|
|
1074
1073
|
const PendingVersion = IDL.Record({
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1074
|
+
mark_failed_at_seconds: IDL.Nat64,
|
|
1075
|
+
checking_upgrade_lock: IDL.Nat64,
|
|
1076
|
+
proposal_id: IDL.Opt(IDL.Nat64),
|
|
1077
|
+
target_version: IDL.Opt(Version),
|
|
1079
1078
|
});
|
|
1080
1079
|
const GovernanceError = IDL.Record({
|
|
1081
|
-
|
|
1082
|
-
|
|
1080
|
+
error_message: IDL.Text,
|
|
1081
|
+
error_type: IDL.Int32,
|
|
1083
1082
|
});
|
|
1084
|
-
const Decimal = IDL.Record({
|
|
1085
|
-
const Tokens = IDL.Record({
|
|
1083
|
+
const Decimal = IDL.Record({ human_readable: IDL.Opt(IDL.Text) });
|
|
1084
|
+
const Tokens = IDL.Record({ e8s: IDL.Opt(IDL.Nat64) });
|
|
1086
1085
|
const ValuationFactors = IDL.Record({
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1086
|
+
xdrs_per_icp: IDL.Opt(Decimal),
|
|
1087
|
+
icps_per_token: IDL.Opt(Decimal),
|
|
1088
|
+
tokens: IDL.Opt(Tokens),
|
|
1090
1089
|
});
|
|
1091
1090
|
const Valuation = IDL.Record({
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1091
|
+
token: IDL.Opt(IDL.Int32),
|
|
1092
|
+
account: IDL.Opt(Account),
|
|
1093
|
+
valuation_factors: IDL.Opt(ValuationFactors),
|
|
1094
|
+
timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1096
1095
|
});
|
|
1097
1096
|
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
1098
|
-
|
|
1097
|
+
valuation: IDL.Opt(Valuation),
|
|
1099
1098
|
});
|
|
1100
1099
|
const SnsVersion = IDL.Record({
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1100
|
+
archive_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1101
|
+
root_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1102
|
+
swap_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1103
|
+
ledger_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1104
|
+
governance_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1105
|
+
index_wasm_hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1107
1106
|
});
|
|
1108
1107
|
const AdvanceSnsTargetVersionActionAuxiliary = IDL.Record({
|
|
1109
|
-
|
|
1108
|
+
target_version: IDL.Opt(SnsVersion),
|
|
1110
1109
|
});
|
|
1111
1110
|
const ActionAuxiliary = IDL.Variant({
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1111
|
+
TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary,
|
|
1112
|
+
MintSnsTokens: MintSnsTokensActionAuxiliary,
|
|
1113
|
+
AdvanceSnsTargetVersion: AdvanceSnsTargetVersionActionAuxiliary,
|
|
1115
1114
|
});
|
|
1116
1115
|
const Ballot = IDL.Record({
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1116
|
+
vote: IDL.Int32,
|
|
1117
|
+
cast_timestamp_seconds: IDL.Nat64,
|
|
1118
|
+
voting_power: IDL.Nat64,
|
|
1120
1119
|
});
|
|
1121
|
-
const Percentage = IDL.Record({
|
|
1120
|
+
const Percentage = IDL.Record({ basis_points: IDL.Opt(IDL.Nat64) });
|
|
1122
1121
|
const Tally = IDL.Record({
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1122
|
+
no: IDL.Nat64,
|
|
1123
|
+
yes: IDL.Nat64,
|
|
1124
|
+
total: IDL.Nat64,
|
|
1125
|
+
timestamp_seconds: IDL.Nat64,
|
|
1127
1126
|
});
|
|
1128
1127
|
const ManageDappCanisterSettings = IDL.Record({
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1128
|
+
freezing_threshold: IDL.Opt(IDL.Nat64),
|
|
1129
|
+
wasm_memory_threshold: IDL.Opt(IDL.Nat64),
|
|
1130
|
+
canister_ids: IDL.Vec(IDL.Principal),
|
|
1131
|
+
reserved_cycles_limit: IDL.Opt(IDL.Nat64),
|
|
1132
|
+
log_visibility: IDL.Opt(IDL.Int32),
|
|
1133
|
+
wasm_memory_limit: IDL.Opt(IDL.Nat64),
|
|
1134
|
+
memory_allocation: IDL.Opt(IDL.Nat64),
|
|
1135
|
+
compute_allocation: IDL.Opt(IDL.Nat64),
|
|
1137
1136
|
});
|
|
1138
1137
|
PreciseValue.fill(
|
|
1139
1138
|
IDL.Variant({
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
})
|
|
1139
|
+
Int: IDL.Int64,
|
|
1140
|
+
Map: IDL.Vec(IDL.Tuple(IDL.Text, PreciseValue)),
|
|
1141
|
+
Nat: IDL.Nat64,
|
|
1142
|
+
Blob: IDL.Vec(IDL.Nat8),
|
|
1143
|
+
Bool: IDL.Bool,
|
|
1144
|
+
Text: IDL.Text,
|
|
1145
|
+
Array: IDL.Vec(PreciseValue),
|
|
1146
|
+
}),
|
|
1148
1147
|
);
|
|
1149
|
-
const ExtensionOperationArg = IDL.Record({
|
|
1148
|
+
const ExtensionOperationArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
1150
1149
|
const ExecuteExtensionOperation = IDL.Record({
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1150
|
+
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
1151
|
+
operation_name: IDL.Opt(IDL.Text),
|
|
1152
|
+
operation_arg: IDL.Opt(ExtensionOperationArg),
|
|
1154
1153
|
});
|
|
1155
1154
|
const ChunkedCanisterWasm = IDL.Record({
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1155
|
+
wasm_module_hash: IDL.Vec(IDL.Nat8),
|
|
1156
|
+
chunk_hashes_list: IDL.Vec(IDL.Vec(IDL.Nat8)),
|
|
1157
|
+
store_canister_id: IDL.Opt(IDL.Principal),
|
|
1159
1158
|
});
|
|
1160
1159
|
const Wasm = IDL.Variant({
|
|
1161
|
-
|
|
1162
|
-
|
|
1160
|
+
Chunked: ChunkedCanisterWasm,
|
|
1161
|
+
Bytes: IDL.Vec(IDL.Nat8),
|
|
1163
1162
|
});
|
|
1164
|
-
const ExtensionUpgradeArg = IDL.Record({
|
|
1163
|
+
const ExtensionUpgradeArg = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
1165
1164
|
const UpgradeExtension = IDL.Record({
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1165
|
+
extension_canister_id: IDL.Opt(IDL.Principal),
|
|
1166
|
+
wasm: IDL.Opt(Wasm),
|
|
1167
|
+
canister_upgrade_arg: IDL.Opt(ExtensionUpgradeArg),
|
|
1169
1168
|
});
|
|
1170
1169
|
const SetTopicsForCustomProposals = IDL.Record({
|
|
1171
|
-
|
|
1170
|
+
custom_function_id_to_topic: IDL.Vec(IDL.Tuple(IDL.Nat64, Topic)),
|
|
1172
1171
|
});
|
|
1173
|
-
const ExtensionInit = IDL.Record({
|
|
1172
|
+
const ExtensionInit = IDL.Record({ value: IDL.Opt(PreciseValue) });
|
|
1174
1173
|
const RegisterExtension = IDL.Record({
|
|
1175
|
-
|
|
1176
|
-
|
|
1174
|
+
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
1175
|
+
extension_init: IDL.Opt(ExtensionInit),
|
|
1177
1176
|
});
|
|
1178
1177
|
const RegisterDappCanisters = IDL.Record({
|
|
1179
|
-
|
|
1178
|
+
canister_ids: IDL.Vec(IDL.Principal),
|
|
1180
1179
|
});
|
|
1181
1180
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1181
|
+
from_treasury: IDL.Int32,
|
|
1182
|
+
to_principal: IDL.Opt(IDL.Principal),
|
|
1183
|
+
to_subaccount: IDL.Opt(Subaccount),
|
|
1184
|
+
memo: IDL.Opt(IDL.Nat64),
|
|
1185
|
+
amount_e8s: IDL.Nat64,
|
|
1187
1186
|
});
|
|
1188
1187
|
const UpgradeSnsControlledCanister = IDL.Record({
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1188
|
+
new_canister_wasm: IDL.Vec(IDL.Nat8),
|
|
1189
|
+
mode: IDL.Opt(IDL.Int32),
|
|
1190
|
+
canister_id: IDL.Opt(IDL.Principal),
|
|
1191
|
+
chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm),
|
|
1192
|
+
canister_upgrade_arg: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1194
1193
|
});
|
|
1195
1194
|
const DeregisterDappCanisters = IDL.Record({
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
canister_ids: IDL.Vec(IDL.Principal),
|
|
1196
|
+
new_controllers: IDL.Vec(IDL.Principal),
|
|
1198
1197
|
});
|
|
1199
1198
|
const MintSnsTokens = IDL.Record({
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1199
|
+
to_principal: IDL.Opt(IDL.Principal),
|
|
1200
|
+
to_subaccount: IDL.Opt(Subaccount),
|
|
1201
|
+
memo: IDL.Opt(IDL.Nat64),
|
|
1202
|
+
amount_e8s: IDL.Opt(IDL.Nat64),
|
|
1204
1203
|
});
|
|
1205
1204
|
const AdvanceSnsTargetVersion = IDL.Record({
|
|
1206
|
-
|
|
1205
|
+
new_target: IDL.Opt(SnsVersion),
|
|
1207
1206
|
});
|
|
1208
1207
|
const ManageSnsMetadata = IDL.Record({
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1208
|
+
url: IDL.Opt(IDL.Text),
|
|
1209
|
+
logo: IDL.Opt(IDL.Text),
|
|
1210
|
+
name: IDL.Opt(IDL.Text),
|
|
1211
|
+
description: IDL.Opt(IDL.Text),
|
|
1213
1212
|
});
|
|
1214
1213
|
const ExecuteGenericNervousSystemFunction = IDL.Record({
|
|
1215
|
-
|
|
1216
|
-
|
|
1214
|
+
function_id: IDL.Nat64,
|
|
1215
|
+
payload: IDL.Vec(IDL.Nat8),
|
|
1217
1216
|
});
|
|
1218
1217
|
const ManageLedgerParameters = IDL.Record({
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1218
|
+
token_symbol: IDL.Opt(IDL.Text),
|
|
1219
|
+
transfer_fee: IDL.Opt(IDL.Nat64),
|
|
1220
|
+
token_logo: IDL.Opt(IDL.Text),
|
|
1221
|
+
token_name: IDL.Opt(IDL.Text),
|
|
1223
1222
|
});
|
|
1224
|
-
const Motion = IDL.Record({
|
|
1223
|
+
const Motion = IDL.Record({ motion_text: IDL.Text });
|
|
1225
1224
|
const Action = IDL.Variant({
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1225
|
+
ManageNervousSystemParameters: NervousSystemParameters,
|
|
1226
|
+
AddGenericNervousSystemFunction: NervousSystemFunction,
|
|
1227
|
+
ManageDappCanisterSettings: ManageDappCanisterSettings,
|
|
1228
|
+
ExecuteExtensionOperation: ExecuteExtensionOperation,
|
|
1229
|
+
UpgradeExtension: UpgradeExtension,
|
|
1230
|
+
RemoveGenericNervousSystemFunction: IDL.Nat64,
|
|
1231
|
+
SetTopicsForCustomProposals: SetTopicsForCustomProposals,
|
|
1232
|
+
RegisterExtension: RegisterExtension,
|
|
1233
|
+
UpgradeSnsToNextVersion: IDL.Record({}),
|
|
1234
|
+
RegisterDappCanisters: RegisterDappCanisters,
|
|
1235
|
+
TransferSnsTreasuryFunds: TransferSnsTreasuryFunds,
|
|
1236
|
+
UpgradeSnsControlledCanister: UpgradeSnsControlledCanister,
|
|
1237
|
+
DeregisterDappCanisters: DeregisterDappCanisters,
|
|
1238
|
+
MintSnsTokens: MintSnsTokens,
|
|
1239
|
+
AdvanceSnsTargetVersion: AdvanceSnsTargetVersion,
|
|
1240
|
+
Unspecified: IDL.Record({}),
|
|
1241
|
+
ManageSnsMetadata: ManageSnsMetadata,
|
|
1242
|
+
ExecuteGenericNervousSystemFunction: ExecuteGenericNervousSystemFunction,
|
|
1243
|
+
ManageLedgerParameters: ManageLedgerParameters,
|
|
1244
|
+
Motion: Motion,
|
|
1246
1245
|
});
|
|
1247
1246
|
const Proposal = IDL.Record({
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1247
|
+
url: IDL.Text,
|
|
1248
|
+
title: IDL.Text,
|
|
1249
|
+
action: IDL.Opt(Action),
|
|
1250
|
+
summary: IDL.Text,
|
|
1252
1251
|
});
|
|
1253
1252
|
const WaitForQuietState = IDL.Record({
|
|
1254
|
-
|
|
1253
|
+
current_deadline_timestamp_seconds: IDL.Nat64,
|
|
1255
1254
|
});
|
|
1256
1255
|
const ProposalData = IDL.Record({
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
});
|
|
1281
|
-
const Split = IDL.Record({
|
|
1256
|
+
id: IDL.Opt(ProposalId),
|
|
1257
|
+
payload_text_rendering: IDL.Opt(IDL.Text),
|
|
1258
|
+
topic: IDL.Opt(Topic),
|
|
1259
|
+
action: IDL.Nat64,
|
|
1260
|
+
failure_reason: IDL.Opt(GovernanceError),
|
|
1261
|
+
action_auxiliary: IDL.Opt(ActionAuxiliary),
|
|
1262
|
+
ballots: IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
1263
|
+
minimum_yes_proportion_of_total: IDL.Opt(Percentage),
|
|
1264
|
+
reward_event_round: IDL.Nat64,
|
|
1265
|
+
failed_timestamp_seconds: IDL.Nat64,
|
|
1266
|
+
reward_event_end_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1267
|
+
proposal_creation_timestamp_seconds: IDL.Nat64,
|
|
1268
|
+
initial_voting_period_seconds: IDL.Nat64,
|
|
1269
|
+
reject_cost_e8s: IDL.Nat64,
|
|
1270
|
+
latest_tally: IDL.Opt(Tally),
|
|
1271
|
+
wait_for_quiet_deadline_increase_seconds: IDL.Nat64,
|
|
1272
|
+
decided_timestamp_seconds: IDL.Nat64,
|
|
1273
|
+
proposal: IDL.Opt(Proposal),
|
|
1274
|
+
proposer: IDL.Opt(NeuronId),
|
|
1275
|
+
wait_for_quiet_state: IDL.Opt(WaitForQuietState),
|
|
1276
|
+
minimum_yes_proportion_of_exercised: IDL.Opt(Percentage),
|
|
1277
|
+
is_eligible_for_rewards: IDL.Bool,
|
|
1278
|
+
executed_timestamp_seconds: IDL.Nat64,
|
|
1279
|
+
});
|
|
1280
|
+
const Split = IDL.Record({ memo: IDL.Nat64, amount_e8s: IDL.Nat64 });
|
|
1282
1281
|
const Follow = IDL.Record({
|
|
1283
|
-
|
|
1284
|
-
|
|
1282
|
+
function_id: IDL.Nat64,
|
|
1283
|
+
followees: IDL.Vec(NeuronId),
|
|
1285
1284
|
});
|
|
1286
1285
|
const DisburseMaturity = IDL.Record({
|
|
1287
|
-
|
|
1288
|
-
|
|
1286
|
+
to_account: IDL.Opt(Account),
|
|
1287
|
+
percentage_to_disburse: IDL.Nat32,
|
|
1289
1288
|
});
|
|
1290
1289
|
const ChangeAutoStakeMaturity = IDL.Record({
|
|
1291
|
-
|
|
1290
|
+
requested_setting_for_auto_stake_maturity: IDL.Bool,
|
|
1292
1291
|
});
|
|
1293
1292
|
const IncreaseDissolveDelay = IDL.Record({
|
|
1294
|
-
|
|
1293
|
+
additional_dissolve_delay_seconds: IDL.Nat32,
|
|
1295
1294
|
});
|
|
1296
1295
|
const SetDissolveTimestamp = IDL.Record({
|
|
1297
|
-
|
|
1296
|
+
dissolve_timestamp_seconds: IDL.Nat64,
|
|
1298
1297
|
});
|
|
1299
1298
|
const Operation = IDL.Variant({
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1299
|
+
ChangeAutoStakeMaturity: ChangeAutoStakeMaturity,
|
|
1300
|
+
StopDissolving: IDL.Record({}),
|
|
1301
|
+
StartDissolving: IDL.Record({}),
|
|
1302
|
+
IncreaseDissolveDelay: IncreaseDissolveDelay,
|
|
1303
|
+
SetDissolveTimestamp: SetDissolveTimestamp,
|
|
1305
1304
|
});
|
|
1306
|
-
const Configure = IDL.Record({
|
|
1305
|
+
const Configure = IDL.Record({ operation: IDL.Opt(Operation) });
|
|
1307
1306
|
const RegisterVote = IDL.Record({
|
|
1308
|
-
|
|
1309
|
-
|
|
1307
|
+
vote: IDL.Int32,
|
|
1308
|
+
proposal: IDL.Opt(ProposalId),
|
|
1310
1309
|
});
|
|
1311
1310
|
const Followee = IDL.Record({
|
|
1312
|
-
|
|
1313
|
-
|
|
1311
|
+
alias: IDL.Opt(IDL.Text),
|
|
1312
|
+
neuron_id: IDL.Opt(NeuronId),
|
|
1314
1313
|
});
|
|
1315
1314
|
const FolloweesForTopic = IDL.Record({
|
|
1316
|
-
|
|
1317
|
-
|
|
1315
|
+
topic: IDL.Opt(Topic),
|
|
1316
|
+
followees: IDL.Vec(Followee),
|
|
1318
1317
|
});
|
|
1319
1318
|
const SetFollowing = IDL.Record({
|
|
1320
|
-
|
|
1319
|
+
topic_following: IDL.Vec(FolloweesForTopic),
|
|
1321
1320
|
});
|
|
1322
1321
|
const FinalizeDisburseMaturity = IDL.Record({
|
|
1323
|
-
|
|
1324
|
-
|
|
1322
|
+
amount_to_be_disbursed_e8s: IDL.Nat64,
|
|
1323
|
+
to_account: IDL.Opt(Account),
|
|
1325
1324
|
});
|
|
1326
1325
|
const MemoAndController = IDL.Record({
|
|
1327
|
-
|
|
1328
|
-
|
|
1326
|
+
controller: IDL.Opt(IDL.Principal),
|
|
1327
|
+
memo: IDL.Nat64,
|
|
1329
1328
|
});
|
|
1330
1329
|
const By = IDL.Variant({
|
|
1331
|
-
|
|
1332
|
-
|
|
1330
|
+
MemoAndController: MemoAndController,
|
|
1331
|
+
NeuronId: IDL.Record({}),
|
|
1333
1332
|
});
|
|
1334
|
-
const ClaimOrRefresh = IDL.Record({
|
|
1333
|
+
const ClaimOrRefresh = IDL.Record({ by: IDL.Opt(By) });
|
|
1335
1334
|
const RemoveNeuronPermissions = IDL.Record({
|
|
1336
|
-
|
|
1337
|
-
|
|
1335
|
+
permissions_to_remove: IDL.Opt(NeuronPermissionList),
|
|
1336
|
+
principal_id: IDL.Opt(IDL.Principal),
|
|
1338
1337
|
});
|
|
1339
1338
|
const AddNeuronPermissions = IDL.Record({
|
|
1340
|
-
|
|
1341
|
-
|
|
1339
|
+
permissions_to_add: IDL.Opt(NeuronPermissionList),
|
|
1340
|
+
principal_id: IDL.Opt(IDL.Principal),
|
|
1342
1341
|
});
|
|
1343
|
-
const MergeMaturity = IDL.Record({
|
|
1344
|
-
const Amount = IDL.Record({
|
|
1342
|
+
const MergeMaturity = IDL.Record({ percentage_to_merge: IDL.Nat32 });
|
|
1343
|
+
const Amount = IDL.Record({ e8s: IDL.Nat64 });
|
|
1345
1344
|
const Disburse = IDL.Record({
|
|
1346
|
-
|
|
1347
|
-
|
|
1345
|
+
to_account: IDL.Opt(Account),
|
|
1346
|
+
amount: IDL.Opt(Amount),
|
|
1348
1347
|
});
|
|
1349
1348
|
const Command_2 = IDL.Variant({
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1349
|
+
Split: Split,
|
|
1350
|
+
Follow: Follow,
|
|
1351
|
+
DisburseMaturity: DisburseMaturity,
|
|
1352
|
+
Configure: Configure,
|
|
1353
|
+
RegisterVote: RegisterVote,
|
|
1354
|
+
SetFollowing: SetFollowing,
|
|
1355
|
+
SyncCommand: IDL.Record({}),
|
|
1356
|
+
MakeProposal: Proposal,
|
|
1357
|
+
FinalizeDisburseMaturity: FinalizeDisburseMaturity,
|
|
1358
|
+
ClaimOrRefreshNeuron: ClaimOrRefresh,
|
|
1359
|
+
RemoveNeuronPermissions: RemoveNeuronPermissions,
|
|
1360
|
+
AddNeuronPermissions: AddNeuronPermissions,
|
|
1361
|
+
MergeMaturity: MergeMaturity,
|
|
1362
|
+
Disburse: Disburse,
|
|
1364
1363
|
});
|
|
1365
1364
|
const NeuronInFlightCommand = IDL.Record({
|
|
1366
|
-
|
|
1367
|
-
|
|
1365
|
+
command: IDL.Opt(Command_2),
|
|
1366
|
+
timestamp: IDL.Nat64,
|
|
1368
1367
|
});
|
|
1369
1368
|
const NeuronPermission = IDL.Record({
|
|
1370
|
-
|
|
1371
|
-
|
|
1369
|
+
principal: IDL.Opt(IDL.Principal),
|
|
1370
|
+
permission_type: IDL.Vec(IDL.Int32),
|
|
1372
1371
|
});
|
|
1373
1372
|
const DissolveState = IDL.Variant({
|
|
1374
|
-
|
|
1375
|
-
|
|
1373
|
+
DissolveDelaySeconds: IDL.Nat64,
|
|
1374
|
+
WhenDissolvedTimestampSeconds: IDL.Nat64,
|
|
1376
1375
|
});
|
|
1377
1376
|
const DisburseMaturityInProgress = IDL.Record({
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1377
|
+
timestamp_of_disbursement_seconds: IDL.Nat64,
|
|
1378
|
+
amount_e8s: IDL.Nat64,
|
|
1379
|
+
account_to_disburse_to: IDL.Opt(Account),
|
|
1380
|
+
finalize_disbursement_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
1382
1381
|
});
|
|
1383
1382
|
const Neuron = IDL.Record({
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1383
|
+
id: IDL.Opt(NeuronId),
|
|
1384
|
+
staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
|
|
1385
|
+
permissions: IDL.Vec(NeuronPermission),
|
|
1386
|
+
maturity_e8s_equivalent: IDL.Nat64,
|
|
1387
|
+
cached_neuron_stake_e8s: IDL.Nat64,
|
|
1388
|
+
created_timestamp_seconds: IDL.Nat64,
|
|
1389
|
+
topic_followees: IDL.Opt(
|
|
1391
1390
|
IDL.Record({
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
),
|
|
1395
|
-
})
|
|
1391
|
+
topic_id_to_followees: IDL.Vec(IDL.Tuple(IDL.Int32, FolloweesForTopic)),
|
|
1392
|
+
}),
|
|
1396
1393
|
),
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1394
|
+
source_nns_neuron_id: IDL.Opt(IDL.Nat64),
|
|
1395
|
+
auto_stake_maturity: IDL.Opt(IDL.Bool),
|
|
1396
|
+
aging_since_timestamp_seconds: IDL.Nat64,
|
|
1397
|
+
dissolve_state: IDL.Opt(DissolveState),
|
|
1398
|
+
voting_power_percentage_multiplier: IDL.Nat64,
|
|
1399
|
+
vesting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
1400
|
+
disburse_maturity_in_progress: IDL.Vec(DisburseMaturityInProgress),
|
|
1401
|
+
followees: IDL.Vec(IDL.Tuple(IDL.Nat64, Followees)),
|
|
1402
|
+
neuron_fees_e8s: IDL.Nat64,
|
|
1406
1403
|
});
|
|
1407
1404
|
const Governance = IDL.Record({
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
|
|
1405
|
+
root_canister_id: IDL.Opt(IDL.Principal),
|
|
1406
|
+
timers: IDL.Opt(Timers),
|
|
1407
|
+
cached_upgrade_steps: IDL.Opt(CachedUpgradeSteps),
|
|
1408
|
+
id_to_nervous_system_functions: IDL.Vec(
|
|
1409
|
+
IDL.Tuple(IDL.Nat64, NervousSystemFunction),
|
|
1413
1410
|
),
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
});
|
|
1411
|
+
metrics: IDL.Opt(GovernanceCachedMetrics),
|
|
1412
|
+
maturity_modulation: IDL.Opt(MaturityModulation),
|
|
1413
|
+
upgrade_journal: IDL.Opt(UpgradeJournal),
|
|
1414
|
+
mode: IDL.Int32,
|
|
1415
|
+
parameters: IDL.Opt(NervousSystemParameters),
|
|
1416
|
+
is_finalizing_disburse_maturity: IDL.Opt(IDL.Bool),
|
|
1417
|
+
deployed_version: IDL.Opt(Version),
|
|
1418
|
+
sns_initialization_parameters: IDL.Text,
|
|
1419
|
+
latest_reward_event: IDL.Opt(RewardEvent),
|
|
1420
|
+
pending_version: IDL.Opt(PendingVersion),
|
|
1421
|
+
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
1422
|
+
ledger_canister_id: IDL.Opt(IDL.Principal),
|
|
1423
|
+
proposals: IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
|
|
1424
|
+
in_flight_commands: IDL.Vec(IDL.Tuple(IDL.Text, NeuronInFlightCommand)),
|
|
1425
|
+
sns_metadata: IDL.Opt(ManageSnsMetadata),
|
|
1426
|
+
neurons: IDL.Vec(IDL.Tuple(IDL.Text, Neuron)),
|
|
1427
|
+
target_version: IDL.Opt(Version),
|
|
1428
|
+
genesis_timestamp_seconds: IDL.Nat64,
|
|
1429
|
+
});
|
|
1430
|
+
|
|
1433
1431
|
return [Governance];
|
|
1434
1432
|
};
|