@dfinity/nns 11.1.4 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.ts +10 -15
- package/dist/index.js +1 -7
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -8
- package/dist/candid/genesis_token.certified.idl.d.ts +0 -2
- package/dist/candid/genesis_token.certified.idl.js +0 -49
- package/dist/candid/genesis_token.d.ts +0 -46
- package/dist/candid/genesis_token.did +0 -49
- package/dist/candid/genesis_token.idl.d.ts +0 -2
- package/dist/candid/genesis_token.idl.js +0 -49
- package/dist/candid/governance.certified.idl.d.ts +0 -2
- package/dist/candid/governance.certified.idl.js +0 -1788
- package/dist/candid/governance.d.ts +0 -1339
- package/dist/candid/governance.did +0 -1478
- package/dist/candid/governance.idl.d.ts +0 -2
- package/dist/candid/governance.idl.js +0 -1796
- package/dist/candid/governance_test.certified.idl.d.ts +0 -2
- package/dist/candid/governance_test.certified.idl.js +0 -1789
- package/dist/candid/governance_test.d.ts +0 -1343
- package/dist/candid/governance_test.did +0 -1481
- package/dist/candid/governance_test.idl.d.ts +0 -2
- package/dist/candid/governance_test.idl.js +0 -1797
- package/dist/candid/old_list_neurons_service.certified.idl.d.ts +0 -2
- package/dist/candid/old_list_neurons_service.certified.idl.js +0 -87
- package/dist/candid/sns_wasm.certified.idl.d.ts +0 -2
- package/dist/candid/sns_wasm.certified.idl.js +0 -331
- package/dist/candid/sns_wasm.d.ts +0 -315
- package/dist/candid/sns_wasm.did +0 -350
- package/dist/candid/sns_wasm.idl.d.ts +0 -2
- package/dist/candid/sns_wasm.idl.js +0 -331
- package/dist/canisters/governance/request.converters.d.ts +0 -108
- package/dist/canisters/governance/response.converters.d.ts +0 -26
- package/dist/canisters/governance/services.d.ts +0 -21
- package/dist/constants/canister_ids.d.ts +0 -5
- package/dist/constants/constants.d.ts +0 -1
- package/dist/enums/governance.enums.d.ts +0 -138
- package/dist/errors/governance.errors.d.ts +0 -21
- package/dist/genesis_token.canister.d.ts +0 -11
- package/dist/governance.canister.d.ts +0 -361
- package/dist/governance_test.canister.d.ts +0 -15
- package/dist/sns_wasm.canister.d.ts +0 -11
- package/dist/types/common.d.ts +0 -6
- package/dist/types/governance.options.d.ts +0 -7
- package/dist/types/governance_converters.d.ts +0 -821
- package/dist/types/sns_wasm.options.d.ts +0 -3
- package/dist/utils/account_identifier.utils.d.ts +0 -5
- package/dist/utils/neurons.utils.d.ts +0 -50
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
6
|
-
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
-
|
|
9
|
-
import type { ActorMethod } from "@icp-sdk/core/agent";
|
|
10
|
-
import type { IDL } from "@icp-sdk/core/candid";
|
|
11
|
-
import type { Principal } from "@icp-sdk/core/principal";
|
|
12
|
-
|
|
13
|
-
export interface AddWasmRequest {
|
|
14
|
-
hash: Uint8Array;
|
|
15
|
-
wasm: [] | [SnsWasm];
|
|
16
|
-
skip_update_latest_version: [] | [boolean];
|
|
17
|
-
}
|
|
18
|
-
export interface AddWasmResponse {
|
|
19
|
-
result: [] | [Result];
|
|
20
|
-
}
|
|
21
|
-
export interface Canister {
|
|
22
|
-
id: [] | [Principal];
|
|
23
|
-
}
|
|
24
|
-
export interface Countries {
|
|
25
|
-
iso_codes: Array<string>;
|
|
26
|
-
}
|
|
27
|
-
export interface DappCanisters {
|
|
28
|
-
canisters: Array<Canister>;
|
|
29
|
-
}
|
|
30
|
-
export interface DappCanistersTransferResult {
|
|
31
|
-
restored_dapp_canisters: Array<Canister>;
|
|
32
|
-
nns_controlled_dapp_canisters: Array<Canister>;
|
|
33
|
-
sns_controlled_dapp_canisters: Array<Canister>;
|
|
34
|
-
}
|
|
35
|
-
export interface DeployNewSnsRequest {
|
|
36
|
-
sns_init_payload: [] | [SnsInitPayload];
|
|
37
|
-
}
|
|
38
|
-
export interface DeployNewSnsResponse {
|
|
39
|
-
dapp_canisters_transfer_result: [] | [DappCanistersTransferResult];
|
|
40
|
-
subnet_id: [] | [Principal];
|
|
41
|
-
error: [] | [SnsWasmError];
|
|
42
|
-
canisters: [] | [SnsCanisterIds];
|
|
43
|
-
}
|
|
44
|
-
export interface DeployedSns {
|
|
45
|
-
root_canister_id: [] | [Principal];
|
|
46
|
-
governance_canister_id: [] | [Principal];
|
|
47
|
-
index_canister_id: [] | [Principal];
|
|
48
|
-
swap_canister_id: [] | [Principal];
|
|
49
|
-
ledger_canister_id: [] | [Principal];
|
|
50
|
-
}
|
|
51
|
-
export interface DeveloperDistribution {
|
|
52
|
-
developer_neurons: Array<NeuronDistribution>;
|
|
53
|
-
}
|
|
54
|
-
export interface FractionalDeveloperVotingPower {
|
|
55
|
-
treasury_distribution: [] | [TreasuryDistribution];
|
|
56
|
-
developer_distribution: [] | [DeveloperDistribution];
|
|
57
|
-
swap_distribution: [] | [SwapDistribution];
|
|
58
|
-
}
|
|
59
|
-
export interface GetAllowedPrincipalsResponse {
|
|
60
|
-
allowed_principals: Array<Principal>;
|
|
61
|
-
}
|
|
62
|
-
export interface GetDeployedSnsByProposalIdRequest {
|
|
63
|
-
proposal_id: bigint;
|
|
64
|
-
}
|
|
65
|
-
export interface GetDeployedSnsByProposalIdResponse {
|
|
66
|
-
get_deployed_sns_by_proposal_id_result:
|
|
67
|
-
| []
|
|
68
|
-
| [GetDeployedSnsByProposalIdResult];
|
|
69
|
-
}
|
|
70
|
-
export type GetDeployedSnsByProposalIdResult =
|
|
71
|
-
| { Error: SnsWasmError }
|
|
72
|
-
| { DeployedSns: DeployedSns };
|
|
73
|
-
export interface GetNextSnsVersionRequest {
|
|
74
|
-
governance_canister_id: [] | [Principal];
|
|
75
|
-
current_version: [] | [SnsVersion];
|
|
76
|
-
}
|
|
77
|
-
export interface GetNextSnsVersionResponse {
|
|
78
|
-
next_version: [] | [SnsVersion];
|
|
79
|
-
}
|
|
80
|
-
export interface GetProposalIdThatAddedWasmRequest {
|
|
81
|
-
hash: Uint8Array;
|
|
82
|
-
}
|
|
83
|
-
export interface GetProposalIdThatAddedWasmResponse {
|
|
84
|
-
proposal_id: [] | [bigint];
|
|
85
|
-
}
|
|
86
|
-
export interface GetSnsSubnetIdsResponse {
|
|
87
|
-
sns_subnet_ids: Array<Principal>;
|
|
88
|
-
}
|
|
89
|
-
export interface GetWasmMetadataRequest {
|
|
90
|
-
hash: [] | [Uint8Array];
|
|
91
|
-
}
|
|
92
|
-
export interface GetWasmMetadataResponse {
|
|
93
|
-
result: [] | [Result_1];
|
|
94
|
-
}
|
|
95
|
-
export interface GetWasmRequest {
|
|
96
|
-
hash: Uint8Array;
|
|
97
|
-
}
|
|
98
|
-
export interface GetWasmResponse {
|
|
99
|
-
wasm: [] | [SnsWasm];
|
|
100
|
-
}
|
|
101
|
-
export interface IdealMatchedParticipationFunction {
|
|
102
|
-
serialized_representation: [] | [string];
|
|
103
|
-
}
|
|
104
|
-
export type InitialTokenDistribution = {
|
|
105
|
-
FractionalDeveloperVotingPower: FractionalDeveloperVotingPower;
|
|
106
|
-
};
|
|
107
|
-
export interface InsertUpgradePathEntriesRequest {
|
|
108
|
-
upgrade_path: Array<SnsUpgrade>;
|
|
109
|
-
sns_governance_canister_id: [] | [Principal];
|
|
110
|
-
}
|
|
111
|
-
export interface InsertUpgradePathEntriesResponse {
|
|
112
|
-
error: [] | [SnsWasmError];
|
|
113
|
-
}
|
|
114
|
-
export interface LinearScalingCoefficient {
|
|
115
|
-
slope_numerator: [] | [bigint];
|
|
116
|
-
intercept_icp_e8s: [] | [bigint];
|
|
117
|
-
from_direct_participation_icp_e8s: [] | [bigint];
|
|
118
|
-
slope_denominator: [] | [bigint];
|
|
119
|
-
to_direct_participation_icp_e8s: [] | [bigint];
|
|
120
|
-
}
|
|
121
|
-
export interface ListDeployedSnsesResponse {
|
|
122
|
-
instances: Array<DeployedSns>;
|
|
123
|
-
}
|
|
124
|
-
export interface ListUpgradeStep {
|
|
125
|
-
pretty_version: [] | [PrettySnsVersion];
|
|
126
|
-
version: [] | [SnsVersion];
|
|
127
|
-
}
|
|
128
|
-
export interface ListUpgradeStepsRequest {
|
|
129
|
-
limit: number;
|
|
130
|
-
starting_at: [] | [SnsVersion];
|
|
131
|
-
sns_governance_canister_id: [] | [Principal];
|
|
132
|
-
}
|
|
133
|
-
export interface ListUpgradeStepsResponse {
|
|
134
|
-
steps: Array<ListUpgradeStep>;
|
|
135
|
-
}
|
|
136
|
-
export interface MetadataSection {
|
|
137
|
-
contents: [] | [Uint8Array];
|
|
138
|
-
name: [] | [string];
|
|
139
|
-
visibility: [] | [string];
|
|
140
|
-
}
|
|
141
|
-
export interface NeuronBasketConstructionParameters {
|
|
142
|
-
dissolve_delay_interval_seconds: bigint;
|
|
143
|
-
count: bigint;
|
|
144
|
-
}
|
|
145
|
-
export interface NeuronDistribution {
|
|
146
|
-
controller: [] | [Principal];
|
|
147
|
-
dissolve_delay_seconds: bigint;
|
|
148
|
-
memo: bigint;
|
|
149
|
-
stake_e8s: bigint;
|
|
150
|
-
vesting_period_seconds: [] | [bigint];
|
|
151
|
-
}
|
|
152
|
-
export interface NeuronsFundParticipationConstraints {
|
|
153
|
-
coefficient_intervals: Array<LinearScalingCoefficient>;
|
|
154
|
-
max_neurons_fund_participation_icp_e8s: [] | [bigint];
|
|
155
|
-
min_direct_participation_threshold_icp_e8s: [] | [bigint];
|
|
156
|
-
ideal_matched_participation_function:
|
|
157
|
-
| []
|
|
158
|
-
| [IdealMatchedParticipationFunction];
|
|
159
|
-
}
|
|
160
|
-
export interface Ok {
|
|
161
|
-
sections: Array<MetadataSection>;
|
|
162
|
-
}
|
|
163
|
-
export interface PrettySnsVersion {
|
|
164
|
-
archive_wasm_hash: string;
|
|
165
|
-
root_wasm_hash: string;
|
|
166
|
-
swap_wasm_hash: string;
|
|
167
|
-
ledger_wasm_hash: string;
|
|
168
|
-
governance_wasm_hash: string;
|
|
169
|
-
index_wasm_hash: string;
|
|
170
|
-
}
|
|
171
|
-
export type Result = { Error: SnsWasmError } | { Hash: Uint8Array };
|
|
172
|
-
export type Result_1 = { Ok: Ok } | { Error: SnsWasmError };
|
|
173
|
-
export interface SnsCanisterIds {
|
|
174
|
-
root: [] | [Principal];
|
|
175
|
-
swap: [] | [Principal];
|
|
176
|
-
ledger: [] | [Principal];
|
|
177
|
-
index: [] | [Principal];
|
|
178
|
-
governance: [] | [Principal];
|
|
179
|
-
}
|
|
180
|
-
export interface SnsInitPayload {
|
|
181
|
-
url: [] | [string];
|
|
182
|
-
max_dissolve_delay_seconds: [] | [bigint];
|
|
183
|
-
max_dissolve_delay_bonus_percentage: [] | [bigint];
|
|
184
|
-
nns_proposal_id: [] | [bigint];
|
|
185
|
-
neurons_fund_participation: [] | [boolean];
|
|
186
|
-
min_participant_icp_e8s: [] | [bigint];
|
|
187
|
-
neuron_basket_construction_parameters:
|
|
188
|
-
| []
|
|
189
|
-
| [NeuronBasketConstructionParameters];
|
|
190
|
-
fallback_controller_principal_ids: Array<string>;
|
|
191
|
-
token_symbol: [] | [string];
|
|
192
|
-
final_reward_rate_basis_points: [] | [bigint];
|
|
193
|
-
max_icp_e8s: [] | [bigint];
|
|
194
|
-
neuron_minimum_stake_e8s: [] | [bigint];
|
|
195
|
-
confirmation_text: [] | [string];
|
|
196
|
-
logo: [] | [string];
|
|
197
|
-
name: [] | [string];
|
|
198
|
-
swap_start_timestamp_seconds: [] | [bigint];
|
|
199
|
-
swap_due_timestamp_seconds: [] | [bigint];
|
|
200
|
-
initial_voting_period_seconds: [] | [bigint];
|
|
201
|
-
neuron_minimum_dissolve_delay_to_vote_seconds: [] | [bigint];
|
|
202
|
-
description: [] | [string];
|
|
203
|
-
max_neuron_age_seconds_for_age_bonus: [] | [bigint];
|
|
204
|
-
min_participants: [] | [bigint];
|
|
205
|
-
initial_reward_rate_basis_points: [] | [bigint];
|
|
206
|
-
wait_for_quiet_deadline_increase_seconds: [] | [bigint];
|
|
207
|
-
transaction_fee_e8s: [] | [bigint];
|
|
208
|
-
dapp_canisters: [] | [DappCanisters];
|
|
209
|
-
neurons_fund_participation_constraints:
|
|
210
|
-
| []
|
|
211
|
-
| [NeuronsFundParticipationConstraints];
|
|
212
|
-
max_age_bonus_percentage: [] | [bigint];
|
|
213
|
-
initial_token_distribution: [] | [InitialTokenDistribution];
|
|
214
|
-
reward_rate_transition_duration_seconds: [] | [bigint];
|
|
215
|
-
token_logo: [] | [string];
|
|
216
|
-
token_name: [] | [string];
|
|
217
|
-
max_participant_icp_e8s: [] | [bigint];
|
|
218
|
-
min_direct_participation_icp_e8s: [] | [bigint];
|
|
219
|
-
proposal_reject_cost_e8s: [] | [bigint];
|
|
220
|
-
restricted_countries: [] | [Countries];
|
|
221
|
-
min_icp_e8s: [] | [bigint];
|
|
222
|
-
max_direct_participation_icp_e8s: [] | [bigint];
|
|
223
|
-
}
|
|
224
|
-
export interface SnsUpgrade {
|
|
225
|
-
next_version: [] | [SnsVersion];
|
|
226
|
-
current_version: [] | [SnsVersion];
|
|
227
|
-
}
|
|
228
|
-
export interface SnsVersion {
|
|
229
|
-
archive_wasm_hash: Uint8Array;
|
|
230
|
-
root_wasm_hash: Uint8Array;
|
|
231
|
-
swap_wasm_hash: Uint8Array;
|
|
232
|
-
ledger_wasm_hash: Uint8Array;
|
|
233
|
-
governance_wasm_hash: Uint8Array;
|
|
234
|
-
index_wasm_hash: Uint8Array;
|
|
235
|
-
}
|
|
236
|
-
export interface SnsWasm {
|
|
237
|
-
wasm: Uint8Array;
|
|
238
|
-
proposal_id: [] | [bigint];
|
|
239
|
-
canister_type: number;
|
|
240
|
-
}
|
|
241
|
-
export interface SnsWasmCanisterInitPayload {
|
|
242
|
-
allowed_principals: Array<Principal>;
|
|
243
|
-
access_controls_enabled: boolean;
|
|
244
|
-
sns_subnet_ids: Array<Principal>;
|
|
245
|
-
}
|
|
246
|
-
export interface SnsWasmError {
|
|
247
|
-
message: string;
|
|
248
|
-
}
|
|
249
|
-
export interface SwapDistribution {
|
|
250
|
-
total_e8s: bigint;
|
|
251
|
-
initial_swap_amount_e8s: bigint;
|
|
252
|
-
}
|
|
253
|
-
export interface TreasuryDistribution {
|
|
254
|
-
total_e8s: bigint;
|
|
255
|
-
}
|
|
256
|
-
export interface UpdateAllowedPrincipalsRequest {
|
|
257
|
-
added_principals: Array<Principal>;
|
|
258
|
-
removed_principals: Array<Principal>;
|
|
259
|
-
}
|
|
260
|
-
export interface UpdateAllowedPrincipalsResponse {
|
|
261
|
-
update_allowed_principals_result: [] | [UpdateAllowedPrincipalsResult];
|
|
262
|
-
}
|
|
263
|
-
export type UpdateAllowedPrincipalsResult =
|
|
264
|
-
| { Error: SnsWasmError }
|
|
265
|
-
| { AllowedPrincipals: GetAllowedPrincipalsResponse };
|
|
266
|
-
export interface UpdateSnsSubnetListRequest {
|
|
267
|
-
sns_subnet_ids_to_add: Array<Principal>;
|
|
268
|
-
sns_subnet_ids_to_remove: Array<Principal>;
|
|
269
|
-
}
|
|
270
|
-
export interface UpdateSnsSubnetListResponse {
|
|
271
|
-
error: [] | [SnsWasmError];
|
|
272
|
-
}
|
|
273
|
-
export interface _SERVICE {
|
|
274
|
-
add_wasm: ActorMethod<[AddWasmRequest], AddWasmResponse>;
|
|
275
|
-
deploy_new_sns: ActorMethod<[DeployNewSnsRequest], DeployNewSnsResponse>;
|
|
276
|
-
get_allowed_principals: ActorMethod<[{}], GetAllowedPrincipalsResponse>;
|
|
277
|
-
get_deployed_sns_by_proposal_id: ActorMethod<
|
|
278
|
-
[GetDeployedSnsByProposalIdRequest],
|
|
279
|
-
GetDeployedSnsByProposalIdResponse
|
|
280
|
-
>;
|
|
281
|
-
get_latest_sns_version_pretty: ActorMethod<[null], Array<[string, string]>>;
|
|
282
|
-
get_next_sns_version: ActorMethod<
|
|
283
|
-
[GetNextSnsVersionRequest],
|
|
284
|
-
GetNextSnsVersionResponse
|
|
285
|
-
>;
|
|
286
|
-
get_proposal_id_that_added_wasm: ActorMethod<
|
|
287
|
-
[GetProposalIdThatAddedWasmRequest],
|
|
288
|
-
GetProposalIdThatAddedWasmResponse
|
|
289
|
-
>;
|
|
290
|
-
get_sns_subnet_ids: ActorMethod<[{}], GetSnsSubnetIdsResponse>;
|
|
291
|
-
get_wasm: ActorMethod<[GetWasmRequest], GetWasmResponse>;
|
|
292
|
-
get_wasm_metadata: ActorMethod<
|
|
293
|
-
[GetWasmMetadataRequest],
|
|
294
|
-
GetWasmMetadataResponse
|
|
295
|
-
>;
|
|
296
|
-
insert_upgrade_path_entries: ActorMethod<
|
|
297
|
-
[InsertUpgradePathEntriesRequest],
|
|
298
|
-
InsertUpgradePathEntriesResponse
|
|
299
|
-
>;
|
|
300
|
-
list_deployed_snses: ActorMethod<[{}], ListDeployedSnsesResponse>;
|
|
301
|
-
list_upgrade_steps: ActorMethod<
|
|
302
|
-
[ListUpgradeStepsRequest],
|
|
303
|
-
ListUpgradeStepsResponse
|
|
304
|
-
>;
|
|
305
|
-
update_allowed_principals: ActorMethod<
|
|
306
|
-
[UpdateAllowedPrincipalsRequest],
|
|
307
|
-
UpdateAllowedPrincipalsResponse
|
|
308
|
-
>;
|
|
309
|
-
update_sns_subnet_list: ActorMethod<
|
|
310
|
-
[UpdateSnsSubnetListRequest],
|
|
311
|
-
UpdateSnsSubnetListResponse
|
|
312
|
-
>;
|
|
313
|
-
}
|
|
314
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
315
|
-
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
package/dist/candid/sns_wasm.did
DELETED
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
// Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
|
-
|
|
3
|
-
type AddWasmRequest = record {
|
|
4
|
-
hash : blob;
|
|
5
|
-
wasm : opt SnsWasm;
|
|
6
|
-
skip_update_latest_version : opt bool;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
type AddWasmResponse = record {
|
|
10
|
-
result : opt Result;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
type Canister = record {
|
|
14
|
-
id : opt principal;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
type Countries = record {
|
|
18
|
-
iso_codes : vec text;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
type DappCanisters = record {
|
|
22
|
-
canisters : vec Canister;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
type DappCanistersTransferResult = record {
|
|
26
|
-
restored_dapp_canisters : vec Canister;
|
|
27
|
-
nns_controlled_dapp_canisters : vec Canister;
|
|
28
|
-
sns_controlled_dapp_canisters : vec Canister;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
type DeployNewSnsRequest = record {
|
|
32
|
-
sns_init_payload : opt SnsInitPayload;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
type DeployNewSnsResponse = record {
|
|
36
|
-
dapp_canisters_transfer_result : opt DappCanistersTransferResult;
|
|
37
|
-
subnet_id : opt principal;
|
|
38
|
-
error : opt SnsWasmError;
|
|
39
|
-
canisters : opt SnsCanisterIds;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
type DeployedSns = record {
|
|
43
|
-
root_canister_id : opt principal;
|
|
44
|
-
governance_canister_id : opt principal;
|
|
45
|
-
index_canister_id : opt principal;
|
|
46
|
-
swap_canister_id : opt principal;
|
|
47
|
-
ledger_canister_id : opt principal;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
type DeveloperDistribution = record {
|
|
51
|
-
developer_neurons : vec NeuronDistribution;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
type FractionalDeveloperVotingPower = record {
|
|
55
|
-
treasury_distribution : opt TreasuryDistribution;
|
|
56
|
-
developer_distribution : opt DeveloperDistribution;
|
|
57
|
-
swap_distribution : opt SwapDistribution;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
type GetAllowedPrincipalsResponse = record {
|
|
61
|
-
allowed_principals : vec principal;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
type GetDeployedSnsByProposalIdRequest = record {
|
|
65
|
-
proposal_id : nat64;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
type GetDeployedSnsByProposalIdResponse = record {
|
|
69
|
-
get_deployed_sns_by_proposal_id_result : opt GetDeployedSnsByProposalIdResult;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
type GetDeployedSnsByProposalIdResult = variant {
|
|
73
|
-
Error : SnsWasmError;
|
|
74
|
-
DeployedSns : DeployedSns;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
type GetNextSnsVersionRequest = record {
|
|
78
|
-
governance_canister_id : opt principal;
|
|
79
|
-
current_version : opt SnsVersion;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
type GetNextSnsVersionResponse = record {
|
|
83
|
-
next_version : opt SnsVersion;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
type GetProposalIdThatAddedWasmRequest = record {
|
|
87
|
-
hash : blob;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
type GetProposalIdThatAddedWasmResponse = record {
|
|
91
|
-
proposal_id : opt nat64;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
type GetSnsSubnetIdsResponse = record {
|
|
95
|
-
sns_subnet_ids : vec principal;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
type GetWasmMetadataRequest = record {
|
|
99
|
-
hash : opt blob;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
type GetWasmMetadataResponse = record {
|
|
103
|
-
result : opt Result_1;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
type GetWasmRequest = record {
|
|
107
|
-
hash : blob;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
type GetWasmResponse = record {
|
|
111
|
-
wasm : opt SnsWasm;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
type IdealMatchedParticipationFunction = record {
|
|
115
|
-
serialized_representation : opt text;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
type InitialTokenDistribution = variant {
|
|
119
|
-
FractionalDeveloperVotingPower : FractionalDeveloperVotingPower;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
type InsertUpgradePathEntriesRequest = record {
|
|
123
|
-
upgrade_path : vec SnsUpgrade;
|
|
124
|
-
sns_governance_canister_id : opt principal;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
type InsertUpgradePathEntriesResponse = record {
|
|
128
|
-
error : opt SnsWasmError;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
type LinearScalingCoefficient = record {
|
|
132
|
-
slope_numerator : opt nat64;
|
|
133
|
-
intercept_icp_e8s : opt nat64;
|
|
134
|
-
from_direct_participation_icp_e8s : opt nat64;
|
|
135
|
-
slope_denominator : opt nat64;
|
|
136
|
-
to_direct_participation_icp_e8s : opt nat64;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
type ListDeployedSnsesResponse = record {
|
|
140
|
-
instances : vec DeployedSns;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
type ListUpgradeStep = record {
|
|
144
|
-
pretty_version : opt PrettySnsVersion;
|
|
145
|
-
version : opt SnsVersion;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
type ListUpgradeStepsRequest = record {
|
|
149
|
-
limit : nat32;
|
|
150
|
-
starting_at : opt SnsVersion;
|
|
151
|
-
sns_governance_canister_id : opt principal;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
type ListUpgradeStepsResponse = record {
|
|
155
|
-
steps : vec ListUpgradeStep;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
type MetadataSection = record {
|
|
159
|
-
contents : opt blob;
|
|
160
|
-
name : opt text;
|
|
161
|
-
visibility : opt text;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
type NeuronBasketConstructionParameters = record {
|
|
165
|
-
dissolve_delay_interval_seconds : nat64;
|
|
166
|
-
count : nat64;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
type NeuronDistribution = record {
|
|
170
|
-
controller : opt principal;
|
|
171
|
-
dissolve_delay_seconds : nat64;
|
|
172
|
-
memo : nat64;
|
|
173
|
-
stake_e8s : nat64;
|
|
174
|
-
vesting_period_seconds : opt nat64;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
type NeuronsFundParticipationConstraints = record {
|
|
178
|
-
coefficient_intervals : vec LinearScalingCoefficient;
|
|
179
|
-
max_neurons_fund_participation_icp_e8s : opt nat64;
|
|
180
|
-
min_direct_participation_threshold_icp_e8s : opt nat64;
|
|
181
|
-
ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
type Ok = record {
|
|
185
|
-
sections : vec MetadataSection;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
type PrettySnsVersion = record {
|
|
189
|
-
archive_wasm_hash : text;
|
|
190
|
-
root_wasm_hash : text;
|
|
191
|
-
swap_wasm_hash : text;
|
|
192
|
-
ledger_wasm_hash : text;
|
|
193
|
-
governance_wasm_hash : text;
|
|
194
|
-
index_wasm_hash : text;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
type Result = variant {
|
|
198
|
-
Error : SnsWasmError;
|
|
199
|
-
Hash : blob;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
type Result_1 = variant {
|
|
203
|
-
Ok : Ok;
|
|
204
|
-
Error : SnsWasmError;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
type SnsCanisterIds = record {
|
|
208
|
-
root : opt principal;
|
|
209
|
-
swap : opt principal;
|
|
210
|
-
ledger : opt principal;
|
|
211
|
-
index : opt principal;
|
|
212
|
-
governance : opt principal;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
type SnsInitPayload = record {
|
|
216
|
-
url : opt text;
|
|
217
|
-
max_dissolve_delay_seconds : opt nat64;
|
|
218
|
-
max_dissolve_delay_bonus_percentage : opt nat64;
|
|
219
|
-
nns_proposal_id : opt nat64;
|
|
220
|
-
neurons_fund_participation : opt bool;
|
|
221
|
-
min_participant_icp_e8s : opt nat64;
|
|
222
|
-
neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
|
|
223
|
-
fallback_controller_principal_ids : vec text;
|
|
224
|
-
token_symbol : opt text;
|
|
225
|
-
final_reward_rate_basis_points : opt nat64;
|
|
226
|
-
max_icp_e8s : opt nat64;
|
|
227
|
-
neuron_minimum_stake_e8s : opt nat64;
|
|
228
|
-
confirmation_text : opt text;
|
|
229
|
-
logo : opt text;
|
|
230
|
-
name : opt text;
|
|
231
|
-
swap_start_timestamp_seconds : opt nat64;
|
|
232
|
-
swap_due_timestamp_seconds : opt nat64;
|
|
233
|
-
initial_voting_period_seconds : opt nat64;
|
|
234
|
-
neuron_minimum_dissolve_delay_to_vote_seconds : opt nat64;
|
|
235
|
-
description : opt text;
|
|
236
|
-
max_neuron_age_seconds_for_age_bonus : opt nat64;
|
|
237
|
-
min_participants : opt nat64;
|
|
238
|
-
initial_reward_rate_basis_points : opt nat64;
|
|
239
|
-
wait_for_quiet_deadline_increase_seconds : opt nat64;
|
|
240
|
-
transaction_fee_e8s : opt nat64;
|
|
241
|
-
dapp_canisters : opt DappCanisters;
|
|
242
|
-
neurons_fund_participation_constraints : opt NeuronsFundParticipationConstraints;
|
|
243
|
-
max_age_bonus_percentage : opt nat64;
|
|
244
|
-
initial_token_distribution : opt InitialTokenDistribution;
|
|
245
|
-
reward_rate_transition_duration_seconds : opt nat64;
|
|
246
|
-
token_logo : opt text;
|
|
247
|
-
token_name : opt text;
|
|
248
|
-
max_participant_icp_e8s : opt nat64;
|
|
249
|
-
min_direct_participation_icp_e8s : opt nat64;
|
|
250
|
-
proposal_reject_cost_e8s : opt nat64;
|
|
251
|
-
restricted_countries : opt Countries;
|
|
252
|
-
min_icp_e8s : opt nat64;
|
|
253
|
-
max_direct_participation_icp_e8s : opt nat64;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
type SnsUpgrade = record {
|
|
257
|
-
next_version : opt SnsVersion;
|
|
258
|
-
current_version : opt SnsVersion;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
type SnsVersion = record {
|
|
262
|
-
archive_wasm_hash : blob;
|
|
263
|
-
root_wasm_hash : blob;
|
|
264
|
-
swap_wasm_hash : blob;
|
|
265
|
-
ledger_wasm_hash : blob;
|
|
266
|
-
governance_wasm_hash : blob;
|
|
267
|
-
index_wasm_hash : blob;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
type SnsWasm = record {
|
|
271
|
-
wasm : blob;
|
|
272
|
-
proposal_id : opt nat64;
|
|
273
|
-
canister_type : int32;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
type SnsWasmCanisterInitPayload = record {
|
|
277
|
-
allowed_principals : vec principal;
|
|
278
|
-
access_controls_enabled : bool;
|
|
279
|
-
sns_subnet_ids : vec principal;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
type SnsWasmError = record {
|
|
283
|
-
message : text;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
type SwapDistribution = record {
|
|
287
|
-
total_e8s : nat64;
|
|
288
|
-
initial_swap_amount_e8s : nat64;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
type TreasuryDistribution = record {
|
|
292
|
-
total_e8s : nat64;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
type UpdateAllowedPrincipalsRequest = record {
|
|
296
|
-
added_principals : vec principal;
|
|
297
|
-
removed_principals : vec principal;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
type UpdateAllowedPrincipalsResponse = record {
|
|
301
|
-
update_allowed_principals_result : opt UpdateAllowedPrincipalsResult;
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
type UpdateAllowedPrincipalsResult = variant {
|
|
305
|
-
Error : SnsWasmError;
|
|
306
|
-
AllowedPrincipals : GetAllowedPrincipalsResponse;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
type UpdateSnsSubnetListRequest = record {
|
|
310
|
-
sns_subnet_ids_to_add : vec principal;
|
|
311
|
-
sns_subnet_ids_to_remove : vec principal;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
type UpdateSnsSubnetListResponse = record {
|
|
315
|
-
error : opt SnsWasmError;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
service : (SnsWasmCanisterInitPayload) -> {
|
|
319
|
-
add_wasm : (AddWasmRequest) -> (AddWasmResponse);
|
|
320
|
-
deploy_new_sns : (DeployNewSnsRequest) -> (DeployNewSnsResponse);
|
|
321
|
-
get_allowed_principals : (record {}) -> (GetAllowedPrincipalsResponse) query;
|
|
322
|
-
get_deployed_sns_by_proposal_id : (GetDeployedSnsByProposalIdRequest) -> (
|
|
323
|
-
GetDeployedSnsByProposalIdResponse,
|
|
324
|
-
) query;
|
|
325
|
-
get_latest_sns_version_pretty : (null) -> (vec record { text; text }) query;
|
|
326
|
-
get_next_sns_version : (GetNextSnsVersionRequest) -> (
|
|
327
|
-
GetNextSnsVersionResponse,
|
|
328
|
-
) query;
|
|
329
|
-
get_proposal_id_that_added_wasm : (GetProposalIdThatAddedWasmRequest) -> (
|
|
330
|
-
GetProposalIdThatAddedWasmResponse,
|
|
331
|
-
) query;
|
|
332
|
-
get_sns_subnet_ids : (record {}) -> (GetSnsSubnetIdsResponse) query;
|
|
333
|
-
get_wasm : (GetWasmRequest) -> (GetWasmResponse) query;
|
|
334
|
-
get_wasm_metadata : (GetWasmMetadataRequest) -> (
|
|
335
|
-
GetWasmMetadataResponse,
|
|
336
|
-
) query;
|
|
337
|
-
insert_upgrade_path_entries : (InsertUpgradePathEntriesRequest) -> (
|
|
338
|
-
InsertUpgradePathEntriesResponse,
|
|
339
|
-
);
|
|
340
|
-
list_deployed_snses : (record {}) -> (ListDeployedSnsesResponse) query;
|
|
341
|
-
list_upgrade_steps : (ListUpgradeStepsRequest) -> (
|
|
342
|
-
ListUpgradeStepsResponse,
|
|
343
|
-
) query;
|
|
344
|
-
update_allowed_principals : (UpdateAllowedPrincipalsRequest) -> (
|
|
345
|
-
UpdateAllowedPrincipalsResponse,
|
|
346
|
-
);
|
|
347
|
-
update_sns_subnet_list : (UpdateSnsSubnetListRequest) -> (
|
|
348
|
-
UpdateSnsSubnetListResponse,
|
|
349
|
-
);
|
|
350
|
-
}
|