@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.
Files changed (50) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +10 -15
  3. package/dist/index.js +1 -7
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +1 -7
  6. package/dist/index.mjs.map +4 -4
  7. package/package.json +3 -8
  8. package/dist/candid/genesis_token.certified.idl.d.ts +0 -2
  9. package/dist/candid/genesis_token.certified.idl.js +0 -49
  10. package/dist/candid/genesis_token.d.ts +0 -46
  11. package/dist/candid/genesis_token.did +0 -49
  12. package/dist/candid/genesis_token.idl.d.ts +0 -2
  13. package/dist/candid/genesis_token.idl.js +0 -49
  14. package/dist/candid/governance.certified.idl.d.ts +0 -2
  15. package/dist/candid/governance.certified.idl.js +0 -1788
  16. package/dist/candid/governance.d.ts +0 -1339
  17. package/dist/candid/governance.did +0 -1478
  18. package/dist/candid/governance.idl.d.ts +0 -2
  19. package/dist/candid/governance.idl.js +0 -1796
  20. package/dist/candid/governance_test.certified.idl.d.ts +0 -2
  21. package/dist/candid/governance_test.certified.idl.js +0 -1789
  22. package/dist/candid/governance_test.d.ts +0 -1343
  23. package/dist/candid/governance_test.did +0 -1481
  24. package/dist/candid/governance_test.idl.d.ts +0 -2
  25. package/dist/candid/governance_test.idl.js +0 -1797
  26. package/dist/candid/old_list_neurons_service.certified.idl.d.ts +0 -2
  27. package/dist/candid/old_list_neurons_service.certified.idl.js +0 -87
  28. package/dist/candid/sns_wasm.certified.idl.d.ts +0 -2
  29. package/dist/candid/sns_wasm.certified.idl.js +0 -331
  30. package/dist/candid/sns_wasm.d.ts +0 -315
  31. package/dist/candid/sns_wasm.did +0 -350
  32. package/dist/candid/sns_wasm.idl.d.ts +0 -2
  33. package/dist/candid/sns_wasm.idl.js +0 -331
  34. package/dist/canisters/governance/request.converters.d.ts +0 -108
  35. package/dist/canisters/governance/response.converters.d.ts +0 -26
  36. package/dist/canisters/governance/services.d.ts +0 -21
  37. package/dist/constants/canister_ids.d.ts +0 -5
  38. package/dist/constants/constants.d.ts +0 -1
  39. package/dist/enums/governance.enums.d.ts +0 -138
  40. package/dist/errors/governance.errors.d.ts +0 -21
  41. package/dist/genesis_token.canister.d.ts +0 -11
  42. package/dist/governance.canister.d.ts +0 -361
  43. package/dist/governance_test.canister.d.ts +0 -15
  44. package/dist/sns_wasm.canister.d.ts +0 -11
  45. package/dist/types/common.d.ts +0 -6
  46. package/dist/types/governance.options.d.ts +0 -7
  47. package/dist/types/governance_converters.d.ts +0 -821
  48. package/dist/types/sns_wasm.options.d.ts +0 -3
  49. package/dist/utils/account_identifier.utils.d.ts +0 -5
  50. package/dist/utils/neurons.utils.d.ts +0 -50
@@ -1,2 +0,0 @@
1
- import type { IDL } from "@dfinity/candid";
2
- export const idlFactory: IDL.InterfaceFactory;
@@ -1,87 +0,0 @@
1
- // This file was created manually by taking governance.certified.idl.js and
2
- // removing everything that isn't needed for `list_neurons` and then removing
3
- // all fields except `neuron_ids` and `include_neurons_readable_by_caller` from
4
- // `ListNeurons`.
5
- // The Ledger hardware wallet app verion 2.4.9 doesn't support the newer fields,
6
- // even when they are optional and not set, so we use this service for
7
- // compatibility with the hardware wallet.
8
- export const idlFactory = ({ IDL }) => {
9
- const NeuronId = IDL.Record({ id: IDL.Nat64 });
10
- const Followees = IDL.Record({ followees: IDL.Vec(NeuronId) });
11
- const KnownNeuronData = IDL.Record({
12
- name: IDL.Text,
13
- description: IDL.Opt(IDL.Text),
14
- });
15
- const NeuronStakeTransfer = IDL.Record({
16
- to_subaccount: IDL.Vec(IDL.Nat8),
17
- neuron_stake_e8s: IDL.Nat64,
18
- from: IDL.Opt(IDL.Principal),
19
- memo: IDL.Nat64,
20
- from_subaccount: IDL.Vec(IDL.Nat8),
21
- transfer_timestamp: IDL.Nat64,
22
- block_height: IDL.Nat64,
23
- });
24
- const BallotInfo = IDL.Record({
25
- vote: IDL.Int32,
26
- proposal_id: IDL.Opt(NeuronId),
27
- });
28
- const DissolveState = IDL.Variant({
29
- DissolveDelaySeconds: IDL.Nat64,
30
- WhenDissolvedTimestampSeconds: IDL.Nat64,
31
- });
32
- const Neuron = IDL.Record({
33
- id: IDL.Opt(NeuronId),
34
- staked_maturity_e8s_equivalent: IDL.Opt(IDL.Nat64),
35
- controller: IDL.Opt(IDL.Principal),
36
- recent_ballots: IDL.Vec(BallotInfo),
37
- voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
38
- kyc_verified: IDL.Bool,
39
- potential_voting_power: IDL.Opt(IDL.Nat64),
40
- neuron_type: IDL.Opt(IDL.Int32),
41
- not_for_profit: IDL.Bool,
42
- maturity_e8s_equivalent: IDL.Nat64,
43
- deciding_voting_power: IDL.Opt(IDL.Nat64),
44
- cached_neuron_stake_e8s: IDL.Nat64,
45
- created_timestamp_seconds: IDL.Nat64,
46
- auto_stake_maturity: IDL.Opt(IDL.Bool),
47
- aging_since_timestamp_seconds: IDL.Nat64,
48
- hot_keys: IDL.Vec(IDL.Principal),
49
- account: IDL.Vec(IDL.Nat8),
50
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
51
- dissolve_state: IDL.Opt(DissolveState),
52
- followees: IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
53
- neuron_fees_e8s: IDL.Nat64,
54
- visibility: IDL.Opt(IDL.Int32),
55
- transfer: IDL.Opt(NeuronStakeTransfer),
56
- known_neuron_data: IDL.Opt(KnownNeuronData),
57
- spawn_at_timestamp_seconds: IDL.Opt(IDL.Nat64),
58
- });
59
- const NeuronInfo = IDL.Record({
60
- dissolve_delay_seconds: IDL.Nat64,
61
- recent_ballots: IDL.Vec(BallotInfo),
62
- voting_power_refreshed_timestamp_seconds: IDL.Opt(IDL.Nat64),
63
- potential_voting_power: IDL.Opt(IDL.Nat64),
64
- neuron_type: IDL.Opt(IDL.Int32),
65
- deciding_voting_power: IDL.Opt(IDL.Nat64),
66
- created_timestamp_seconds: IDL.Nat64,
67
- state: IDL.Int32,
68
- stake_e8s: IDL.Nat64,
69
- joined_community_fund_timestamp_seconds: IDL.Opt(IDL.Nat64),
70
- retrieved_at_timestamp_seconds: IDL.Nat64,
71
- visibility: IDL.Opt(IDL.Int32),
72
- known_neuron_data: IDL.Opt(KnownNeuronData),
73
- voting_power: IDL.Nat64,
74
- age_seconds: IDL.Nat64,
75
- });
76
- const ListNeurons = IDL.Record({
77
- neuron_ids: IDL.Vec(IDL.Nat64),
78
- include_neurons_readable_by_caller: IDL.Bool,
79
- });
80
- const ListNeuronsResponse = IDL.Record({
81
- neuron_infos: IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
82
- full_neurons: IDL.Vec(Neuron),
83
- });
84
- return IDL.Service({
85
- list_neurons: IDL.Func([ListNeurons], [ListNeuronsResponse], []),
86
- });
87
- };
@@ -1,2 +0,0 @@
1
- import type { IDL } from "@icp-sdk/core/candid";
2
- export const idlFactory: IDL.InterfaceFactory;
@@ -1,331 +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
- export const idlFactory = ({ IDL }) => {
10
- const SnsWasmCanisterInitPayload = IDL.Record({
11
- allowed_principals: IDL.Vec(IDL.Principal),
12
- access_controls_enabled: IDL.Bool,
13
- sns_subnet_ids: IDL.Vec(IDL.Principal),
14
- });
15
- const SnsWasm = IDL.Record({
16
- wasm: IDL.Vec(IDL.Nat8),
17
- proposal_id: IDL.Opt(IDL.Nat64),
18
- canister_type: IDL.Int32,
19
- });
20
- const AddWasmRequest = IDL.Record({
21
- hash: IDL.Vec(IDL.Nat8),
22
- wasm: IDL.Opt(SnsWasm),
23
- skip_update_latest_version: IDL.Opt(IDL.Bool),
24
- });
25
- const SnsWasmError = IDL.Record({ message: IDL.Text });
26
- const Result = IDL.Variant({
27
- Error: SnsWasmError,
28
- Hash: IDL.Vec(IDL.Nat8),
29
- });
30
- const AddWasmResponse = IDL.Record({ result: IDL.Opt(Result) });
31
- const NeuronBasketConstructionParameters = IDL.Record({
32
- dissolve_delay_interval_seconds: IDL.Nat64,
33
- count: IDL.Nat64,
34
- });
35
- const Canister = IDL.Record({ id: IDL.Opt(IDL.Principal) });
36
- const DappCanisters = IDL.Record({ canisters: IDL.Vec(Canister) });
37
- const LinearScalingCoefficient = IDL.Record({
38
- slope_numerator: IDL.Opt(IDL.Nat64),
39
- intercept_icp_e8s: IDL.Opt(IDL.Nat64),
40
- from_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
41
- slope_denominator: IDL.Opt(IDL.Nat64),
42
- to_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
43
- });
44
- const IdealMatchedParticipationFunction = IDL.Record({
45
- serialized_representation: IDL.Opt(IDL.Text),
46
- });
47
- const NeuronsFundParticipationConstraints = IDL.Record({
48
- coefficient_intervals: IDL.Vec(LinearScalingCoefficient),
49
- max_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
50
- min_direct_participation_threshold_icp_e8s: IDL.Opt(IDL.Nat64),
51
- ideal_matched_participation_function: IDL.Opt(
52
- IdealMatchedParticipationFunction,
53
- ),
54
- });
55
- const TreasuryDistribution = IDL.Record({ total_e8s: IDL.Nat64 });
56
- const NeuronDistribution = IDL.Record({
57
- controller: IDL.Opt(IDL.Principal),
58
- dissolve_delay_seconds: IDL.Nat64,
59
- memo: IDL.Nat64,
60
- stake_e8s: IDL.Nat64,
61
- vesting_period_seconds: IDL.Opt(IDL.Nat64),
62
- });
63
- const DeveloperDistribution = IDL.Record({
64
- developer_neurons: IDL.Vec(NeuronDistribution),
65
- });
66
- const SwapDistribution = IDL.Record({
67
- total_e8s: IDL.Nat64,
68
- initial_swap_amount_e8s: IDL.Nat64,
69
- });
70
- const FractionalDeveloperVotingPower = IDL.Record({
71
- treasury_distribution: IDL.Opt(TreasuryDistribution),
72
- developer_distribution: IDL.Opt(DeveloperDistribution),
73
- swap_distribution: IDL.Opt(SwapDistribution),
74
- });
75
- const InitialTokenDistribution = IDL.Variant({
76
- FractionalDeveloperVotingPower: FractionalDeveloperVotingPower,
77
- });
78
- const Countries = IDL.Record({ iso_codes: IDL.Vec(IDL.Text) });
79
- const SnsInitPayload = IDL.Record({
80
- url: IDL.Opt(IDL.Text),
81
- max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
82
- max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
83
- nns_proposal_id: IDL.Opt(IDL.Nat64),
84
- neurons_fund_participation: IDL.Opt(IDL.Bool),
85
- min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
86
- neuron_basket_construction_parameters: IDL.Opt(
87
- NeuronBasketConstructionParameters,
88
- ),
89
- fallback_controller_principal_ids: IDL.Vec(IDL.Text),
90
- token_symbol: IDL.Opt(IDL.Text),
91
- final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
92
- max_icp_e8s: IDL.Opt(IDL.Nat64),
93
- neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
94
- confirmation_text: IDL.Opt(IDL.Text),
95
- logo: IDL.Opt(IDL.Text),
96
- name: IDL.Opt(IDL.Text),
97
- swap_start_timestamp_seconds: IDL.Opt(IDL.Nat64),
98
- swap_due_timestamp_seconds: IDL.Opt(IDL.Nat64),
99
- initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
100
- neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
101
- description: IDL.Opt(IDL.Text),
102
- max_neuron_age_seconds_for_age_bonus: IDL.Opt(IDL.Nat64),
103
- min_participants: IDL.Opt(IDL.Nat64),
104
- initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
105
- wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
106
- transaction_fee_e8s: IDL.Opt(IDL.Nat64),
107
- dapp_canisters: IDL.Opt(DappCanisters),
108
- neurons_fund_participation_constraints: IDL.Opt(
109
- NeuronsFundParticipationConstraints,
110
- ),
111
- max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
112
- initial_token_distribution: IDL.Opt(InitialTokenDistribution),
113
- reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
114
- token_logo: IDL.Opt(IDL.Text),
115
- token_name: IDL.Opt(IDL.Text),
116
- max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
117
- min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
118
- proposal_reject_cost_e8s: IDL.Opt(IDL.Nat64),
119
- restricted_countries: IDL.Opt(Countries),
120
- min_icp_e8s: IDL.Opt(IDL.Nat64),
121
- max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
122
- });
123
- const DeployNewSnsRequest = IDL.Record({
124
- sns_init_payload: IDL.Opt(SnsInitPayload),
125
- });
126
- const DappCanistersTransferResult = IDL.Record({
127
- restored_dapp_canisters: IDL.Vec(Canister),
128
- nns_controlled_dapp_canisters: IDL.Vec(Canister),
129
- sns_controlled_dapp_canisters: IDL.Vec(Canister),
130
- });
131
- const SnsCanisterIds = IDL.Record({
132
- root: IDL.Opt(IDL.Principal),
133
- swap: IDL.Opt(IDL.Principal),
134
- ledger: IDL.Opt(IDL.Principal),
135
- index: IDL.Opt(IDL.Principal),
136
- governance: IDL.Opt(IDL.Principal),
137
- });
138
- const DeployNewSnsResponse = IDL.Record({
139
- dapp_canisters_transfer_result: IDL.Opt(DappCanistersTransferResult),
140
- subnet_id: IDL.Opt(IDL.Principal),
141
- error: IDL.Opt(SnsWasmError),
142
- canisters: IDL.Opt(SnsCanisterIds),
143
- });
144
- const GetAllowedPrincipalsResponse = IDL.Record({
145
- allowed_principals: IDL.Vec(IDL.Principal),
146
- });
147
- const GetDeployedSnsByProposalIdRequest = IDL.Record({
148
- proposal_id: IDL.Nat64,
149
- });
150
- const DeployedSns = IDL.Record({
151
- root_canister_id: IDL.Opt(IDL.Principal),
152
- governance_canister_id: IDL.Opt(IDL.Principal),
153
- index_canister_id: IDL.Opt(IDL.Principal),
154
- swap_canister_id: IDL.Opt(IDL.Principal),
155
- ledger_canister_id: IDL.Opt(IDL.Principal),
156
- });
157
- const GetDeployedSnsByProposalIdResult = IDL.Variant({
158
- Error: SnsWasmError,
159
- DeployedSns: DeployedSns,
160
- });
161
- const GetDeployedSnsByProposalIdResponse = IDL.Record({
162
- get_deployed_sns_by_proposal_id_result: IDL.Opt(
163
- GetDeployedSnsByProposalIdResult,
164
- ),
165
- });
166
- const SnsVersion = IDL.Record({
167
- archive_wasm_hash: IDL.Vec(IDL.Nat8),
168
- root_wasm_hash: IDL.Vec(IDL.Nat8),
169
- swap_wasm_hash: IDL.Vec(IDL.Nat8),
170
- ledger_wasm_hash: IDL.Vec(IDL.Nat8),
171
- governance_wasm_hash: IDL.Vec(IDL.Nat8),
172
- index_wasm_hash: IDL.Vec(IDL.Nat8),
173
- });
174
- const GetNextSnsVersionRequest = IDL.Record({
175
- governance_canister_id: IDL.Opt(IDL.Principal),
176
- current_version: IDL.Opt(SnsVersion),
177
- });
178
- const GetNextSnsVersionResponse = IDL.Record({
179
- next_version: IDL.Opt(SnsVersion),
180
- });
181
- const GetProposalIdThatAddedWasmRequest = IDL.Record({
182
- hash: IDL.Vec(IDL.Nat8),
183
- });
184
- const GetProposalIdThatAddedWasmResponse = IDL.Record({
185
- proposal_id: IDL.Opt(IDL.Nat64),
186
- });
187
- const GetSnsSubnetIdsResponse = IDL.Record({
188
- sns_subnet_ids: IDL.Vec(IDL.Principal),
189
- });
190
- const GetWasmRequest = IDL.Record({ hash: IDL.Vec(IDL.Nat8) });
191
- const GetWasmResponse = IDL.Record({ wasm: IDL.Opt(SnsWasm) });
192
- const GetWasmMetadataRequest = IDL.Record({
193
- hash: IDL.Opt(IDL.Vec(IDL.Nat8)),
194
- });
195
- const MetadataSection = IDL.Record({
196
- contents: IDL.Opt(IDL.Vec(IDL.Nat8)),
197
- name: IDL.Opt(IDL.Text),
198
- visibility: IDL.Opt(IDL.Text),
199
- });
200
- const Ok = IDL.Record({ sections: IDL.Vec(MetadataSection) });
201
- const Result_1 = IDL.Variant({ Ok: Ok, Error: SnsWasmError });
202
- const GetWasmMetadataResponse = IDL.Record({ result: IDL.Opt(Result_1) });
203
- const SnsUpgrade = IDL.Record({
204
- next_version: IDL.Opt(SnsVersion),
205
- current_version: IDL.Opt(SnsVersion),
206
- });
207
- const InsertUpgradePathEntriesRequest = IDL.Record({
208
- upgrade_path: IDL.Vec(SnsUpgrade),
209
- sns_governance_canister_id: IDL.Opt(IDL.Principal),
210
- });
211
- const InsertUpgradePathEntriesResponse = IDL.Record({
212
- error: IDL.Opt(SnsWasmError),
213
- });
214
- const ListDeployedSnsesResponse = IDL.Record({
215
- instances: IDL.Vec(DeployedSns),
216
- });
217
- const ListUpgradeStepsRequest = IDL.Record({
218
- limit: IDL.Nat32,
219
- starting_at: IDL.Opt(SnsVersion),
220
- sns_governance_canister_id: IDL.Opt(IDL.Principal),
221
- });
222
- const PrettySnsVersion = IDL.Record({
223
- archive_wasm_hash: IDL.Text,
224
- root_wasm_hash: IDL.Text,
225
- swap_wasm_hash: IDL.Text,
226
- ledger_wasm_hash: IDL.Text,
227
- governance_wasm_hash: IDL.Text,
228
- index_wasm_hash: IDL.Text,
229
- });
230
- const ListUpgradeStep = IDL.Record({
231
- pretty_version: IDL.Opt(PrettySnsVersion),
232
- version: IDL.Opt(SnsVersion),
233
- });
234
- const ListUpgradeStepsResponse = IDL.Record({
235
- steps: IDL.Vec(ListUpgradeStep),
236
- });
237
- const UpdateAllowedPrincipalsRequest = IDL.Record({
238
- added_principals: IDL.Vec(IDL.Principal),
239
- removed_principals: IDL.Vec(IDL.Principal),
240
- });
241
- const UpdateAllowedPrincipalsResult = IDL.Variant({
242
- Error: SnsWasmError,
243
- AllowedPrincipals: GetAllowedPrincipalsResponse,
244
- });
245
- const UpdateAllowedPrincipalsResponse = IDL.Record({
246
- update_allowed_principals_result: IDL.Opt(UpdateAllowedPrincipalsResult),
247
- });
248
- const UpdateSnsSubnetListRequest = IDL.Record({
249
- sns_subnet_ids_to_add: IDL.Vec(IDL.Principal),
250
- sns_subnet_ids_to_remove: IDL.Vec(IDL.Principal),
251
- });
252
- const UpdateSnsSubnetListResponse = IDL.Record({
253
- error: IDL.Opt(SnsWasmError),
254
- });
255
-
256
- return IDL.Service({
257
- add_wasm: IDL.Func([AddWasmRequest], [AddWasmResponse], []),
258
- deploy_new_sns: IDL.Func([DeployNewSnsRequest], [DeployNewSnsResponse], []),
259
- get_allowed_principals: IDL.Func(
260
- [IDL.Record({})],
261
- [GetAllowedPrincipalsResponse],
262
- [],
263
- ),
264
- get_deployed_sns_by_proposal_id: IDL.Func(
265
- [GetDeployedSnsByProposalIdRequest],
266
- [GetDeployedSnsByProposalIdResponse],
267
- [],
268
- ),
269
- get_latest_sns_version_pretty: IDL.Func(
270
- [IDL.Null],
271
- [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
272
- [],
273
- ),
274
- get_next_sns_version: IDL.Func(
275
- [GetNextSnsVersionRequest],
276
- [GetNextSnsVersionResponse],
277
- [],
278
- ),
279
- get_proposal_id_that_added_wasm: IDL.Func(
280
- [GetProposalIdThatAddedWasmRequest],
281
- [GetProposalIdThatAddedWasmResponse],
282
- [],
283
- ),
284
- get_sns_subnet_ids: IDL.Func(
285
- [IDL.Record({})],
286
- [GetSnsSubnetIdsResponse],
287
- [],
288
- ),
289
- get_wasm: IDL.Func([GetWasmRequest], [GetWasmResponse], []),
290
- get_wasm_metadata: IDL.Func(
291
- [GetWasmMetadataRequest],
292
- [GetWasmMetadataResponse],
293
- [],
294
- ),
295
- insert_upgrade_path_entries: IDL.Func(
296
- [InsertUpgradePathEntriesRequest],
297
- [InsertUpgradePathEntriesResponse],
298
- [],
299
- ),
300
- list_deployed_snses: IDL.Func(
301
- [IDL.Record({})],
302
- [ListDeployedSnsesResponse],
303
- [],
304
- ),
305
- list_upgrade_steps: IDL.Func(
306
- [ListUpgradeStepsRequest],
307
- [ListUpgradeStepsResponse],
308
- [],
309
- ),
310
- update_allowed_principals: IDL.Func(
311
- [UpdateAllowedPrincipalsRequest],
312
- [UpdateAllowedPrincipalsResponse],
313
- [],
314
- ),
315
- update_sns_subnet_list: IDL.Func(
316
- [UpdateSnsSubnetListRequest],
317
- [UpdateSnsSubnetListResponse],
318
- [],
319
- ),
320
- });
321
- };
322
-
323
- export const init = ({ IDL }) => {
324
- const SnsWasmCanisterInitPayload = IDL.Record({
325
- allowed_principals: IDL.Vec(IDL.Principal),
326
- access_controls_enabled: IDL.Bool,
327
- sns_subnet_ids: IDL.Vec(IDL.Principal),
328
- });
329
-
330
- return [SnsWasmCanisterInitPayload];
331
- };