@dfinity/sns 6.0.1 → 7.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 +1 -1
- package/dist/index.d.ts +54 -19
- package/dist/index.js +1 -6
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -8
- package/dist/candid/sns_governance.certified.idl.d.ts +0 -2
- package/dist/candid/sns_governance.certified.idl.js +0 -1432
- package/dist/candid/sns_governance.d.ts +0 -933
- package/dist/candid/sns_governance.did +0 -1069
- package/dist/candid/sns_governance.idl.d.ts +0 -2
- package/dist/candid/sns_governance.idl.js +0 -1440
- package/dist/candid/sns_governance_test.certified.idl.d.ts +0 -2
- package/dist/candid/sns_governance_test.certified.idl.js +0 -1460
- package/dist/candid/sns_governance_test.d.ts +0 -962
- package/dist/candid/sns_governance_test.did +0 -1094
- package/dist/candid/sns_governance_test.idl.d.ts +0 -2
- package/dist/candid/sns_governance_test.idl.js +0 -1468
- package/dist/candid/sns_root.certified.idl.d.ts +0 -2
- package/dist/candid/sns_root.certified.idl.js +0 -251
- package/dist/candid/sns_root.d.ts +0 -212
- package/dist/candid/sns_root.did +0 -231
- package/dist/candid/sns_root.idl.d.ts +0 -2
- package/dist/candid/sns_root.idl.js +0 -251
- package/dist/candid/sns_swap.certified.idl.d.ts +0 -2
- package/dist/candid/sns_swap.certified.idl.js +0 -499
- package/dist/candid/sns_swap.d.ts +0 -438
- package/dist/candid/sns_swap.did +0 -505
- package/dist/candid/sns_swap.idl.d.ts +0 -2
- package/dist/candid/sns_swap.idl.js +0 -507
- package/dist/constants/governance.constants.d.ts +0 -8
- package/dist/converters/governance.converters.d.ts +0 -22
- package/dist/converters/swap.converters.d.ts +0 -3
- package/dist/enums/governance.enums.d.ts +0 -35
- package/dist/enums/swap.enums.d.ts +0 -22
- package/dist/errors/common.errors.d.ts +0 -4
- package/dist/errors/governance.errors.d.ts +0 -2
- package/dist/errors/swap.errors.d.ts +0 -16
- package/dist/governance.canister.d.ts +0 -138
- package/dist/governance_test.canister.d.ts +0 -16
- package/dist/root.canister.d.ts +0 -19
- package/dist/sns.d.ts +0 -21
- package/dist/sns.wrapper.d.ts +0 -160
- package/dist/swap.canister.d.ts +0 -47
- package/dist/types/actions.d.ts +0 -191
- package/dist/types/canister.options.d.ts +0 -5
- package/dist/types/common.d.ts +0 -2
- package/dist/types/governance.params.d.ts +0 -151
- package/dist/types/governance_test.params.d.ts +0 -7
- package/dist/types/swap.params.d.ts +0 -8
- package/dist/utils/error.utils.d.ts +0 -12
- package/dist/utils/governance.utils.d.ts +0 -14
package/dist/candid/sns_swap.did
DELETED
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
// Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'rs/sns/swap/canister/swap.did' by import-candid
|
|
2
|
-
|
|
3
|
-
type BuyerState = record {
|
|
4
|
-
icp : opt TransferableAmount;
|
|
5
|
-
has_created_neuron_recipes : opt bool;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
type CanisterCallError = record {
|
|
9
|
-
code : opt int32;
|
|
10
|
-
description : text;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
type MemoryMetrics = record {
|
|
14
|
-
wasm_memory_size : opt nat;
|
|
15
|
-
stable_memory_size : opt nat;
|
|
16
|
-
global_memory_size : opt nat;
|
|
17
|
-
wasm_binary_size : opt nat;
|
|
18
|
-
custom_sections_size : opt nat;
|
|
19
|
-
canister_history_size : opt nat;
|
|
20
|
-
wasm_chunk_store_size : opt nat;
|
|
21
|
-
snapshots_size : opt nat;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type QueryStats = record {
|
|
25
|
-
num_calls_total : opt nat;
|
|
26
|
-
num_instructions_total : opt nat;
|
|
27
|
-
request_payload_bytes_total : opt nat;
|
|
28
|
-
response_payload_bytes_total : opt nat;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
type CanisterStatusResultV2 = record {
|
|
32
|
-
status : CanisterStatusType;
|
|
33
|
-
memory_size : nat;
|
|
34
|
-
memory_metrics : opt MemoryMetrics;
|
|
35
|
-
cycles : nat;
|
|
36
|
-
settings : DefiniteCanisterSettingsArgs;
|
|
37
|
-
idle_cycles_burned_per_day : nat;
|
|
38
|
-
module_hash : opt blob;
|
|
39
|
-
query_stats : opt QueryStats;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
type CanisterStatusType = variant {
|
|
43
|
-
stopped;
|
|
44
|
-
stopping;
|
|
45
|
-
running;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
type CfInvestment = record {
|
|
49
|
-
controller : opt principal;
|
|
50
|
-
hotkey_principal : text;
|
|
51
|
-
hotkeys : opt Principals;
|
|
52
|
-
nns_neuron_id : nat64;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
type CfNeuron = record {
|
|
56
|
-
has_created_neuron_recipes : opt bool;
|
|
57
|
-
hotkeys : opt Principals;
|
|
58
|
-
nns_neuron_id : nat64;
|
|
59
|
-
amount_icp_e8s : nat64;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
type CfParticipant = record {
|
|
63
|
-
controller : opt principal;
|
|
64
|
-
hotkey_principal : text;
|
|
65
|
-
cf_neurons : vec CfNeuron;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
type Countries = record {
|
|
69
|
-
iso_codes : vec text;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
type DefiniteCanisterSettingsArgs = record {
|
|
73
|
-
freezing_threshold : nat;
|
|
74
|
-
controllers : vec principal;
|
|
75
|
-
wasm_memory_limit : opt nat;
|
|
76
|
-
memory_allocation : nat;
|
|
77
|
-
compute_allocation : nat;
|
|
78
|
-
wasm_memory_threshold : opt nat;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
type DerivedState = record {
|
|
82
|
-
sns_tokens_per_icp : float32;
|
|
83
|
-
buyer_total_icp_e8s : nat64;
|
|
84
|
-
cf_participant_count : opt nat64;
|
|
85
|
-
neurons_fund_participation_icp_e8s : opt nat64;
|
|
86
|
-
direct_participation_icp_e8s : opt nat64;
|
|
87
|
-
direct_participant_count : opt nat64;
|
|
88
|
-
cf_neuron_count : opt nat64;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
type DirectInvestment = record {
|
|
92
|
-
buyer_principal : text;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
type Err = record {
|
|
96
|
-
description : opt text;
|
|
97
|
-
error_type : opt int32;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
type Err_1 = record {
|
|
101
|
-
error_type : opt int32;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
type Err_2 = record {
|
|
105
|
-
invalid_user_amount : opt InvalidUserAmount;
|
|
106
|
-
existing_ticket : opt Ticket;
|
|
107
|
-
error_type : int32;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
type Error = record {
|
|
111
|
-
message : opt text;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
type ErrorRefundIcpRequest = record {
|
|
115
|
-
source_principal_id : opt principal;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
type ErrorRefundIcpResponse = record {
|
|
119
|
-
result : opt Result;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
type FailedUpdate = record {
|
|
123
|
-
err : opt CanisterCallError;
|
|
124
|
-
dapp_canister_id : opt principal;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
type FinalizeSwapResponse = record {
|
|
128
|
-
set_dapp_controllers_call_result : opt SetDappControllersCallResult;
|
|
129
|
-
create_sns_neuron_recipes_result : opt SweepResult;
|
|
130
|
-
settle_community_fund_participation_result : opt SettleCommunityFundParticipationResult;
|
|
131
|
-
error_message : opt text;
|
|
132
|
-
settle_neurons_fund_participation_result : opt SettleNeuronsFundParticipationResult;
|
|
133
|
-
set_mode_call_result : opt SetModeCallResult;
|
|
134
|
-
sweep_icp_result : opt SweepResult;
|
|
135
|
-
claim_neuron_result : opt SweepResult;
|
|
136
|
-
sweep_sns_result : opt SweepResult;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
type GetAutoFinalizationStatusResponse = record {
|
|
140
|
-
auto_finalize_swap_response : opt FinalizeSwapResponse;
|
|
141
|
-
has_auto_finalize_been_attempted : opt bool;
|
|
142
|
-
is_auto_finalize_enabled : opt bool;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
type GetBuyerStateRequest = record {
|
|
146
|
-
principal_id : opt principal;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
type GetBuyerStateResponse = record {
|
|
150
|
-
buyer_state : opt BuyerState;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
type GetBuyersTotalResponse = record {
|
|
154
|
-
buyers_total : nat64;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
type GetDerivedStateResponse = record {
|
|
158
|
-
sns_tokens_per_icp : opt float64;
|
|
159
|
-
buyer_total_icp_e8s : opt nat64;
|
|
160
|
-
cf_participant_count : opt nat64;
|
|
161
|
-
neurons_fund_participation_icp_e8s : opt nat64;
|
|
162
|
-
direct_participation_icp_e8s : opt nat64;
|
|
163
|
-
direct_participant_count : opt nat64;
|
|
164
|
-
cf_neuron_count : opt nat64;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
type GetInitResponse = record {
|
|
168
|
-
init : opt Init;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
type GetLifecycleResponse = record {
|
|
172
|
-
decentralization_sale_open_timestamp_seconds : opt nat64;
|
|
173
|
-
lifecycle : opt int32;
|
|
174
|
-
decentralization_swap_termination_timestamp_seconds : opt nat64;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
type GetOpenTicketResponse = record {
|
|
178
|
-
result : opt Result_1;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
type GetSaleParametersResponse = record {
|
|
182
|
-
params : opt Params;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
type GetStateResponse = record {
|
|
186
|
-
swap : opt Swap;
|
|
187
|
-
derived : opt DerivedState;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
type GovernanceError = record {
|
|
191
|
-
error_message : text;
|
|
192
|
-
error_type : int32;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
type Icrc1Account = record {
|
|
196
|
-
owner : opt principal;
|
|
197
|
-
subaccount : opt blob;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
type IdealMatchedParticipationFunction = record {
|
|
201
|
-
serialized_representation : opt text;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
type Init = record {
|
|
205
|
-
nns_proposal_id : opt nat64;
|
|
206
|
-
sns_root_canister_id : text;
|
|
207
|
-
neurons_fund_participation : opt bool;
|
|
208
|
-
min_participant_icp_e8s : opt nat64;
|
|
209
|
-
neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
|
|
210
|
-
fallback_controller_principal_ids : vec text;
|
|
211
|
-
max_icp_e8s : opt nat64;
|
|
212
|
-
neuron_minimum_stake_e8s : opt nat64;
|
|
213
|
-
confirmation_text : opt text;
|
|
214
|
-
swap_start_timestamp_seconds : opt nat64;
|
|
215
|
-
swap_due_timestamp_seconds : opt nat64;
|
|
216
|
-
min_participants : opt nat32;
|
|
217
|
-
sns_token_e8s : opt nat64;
|
|
218
|
-
nns_governance_canister_id : text;
|
|
219
|
-
transaction_fee_e8s : opt nat64;
|
|
220
|
-
icp_ledger_canister_id : text;
|
|
221
|
-
sns_ledger_canister_id : text;
|
|
222
|
-
neurons_fund_participation_constraints : opt NeuronsFundParticipationConstraints;
|
|
223
|
-
should_auto_finalize : opt bool;
|
|
224
|
-
max_participant_icp_e8s : opt nat64;
|
|
225
|
-
sns_governance_canister_id : text;
|
|
226
|
-
min_direct_participation_icp_e8s : opt nat64;
|
|
227
|
-
restricted_countries : opt Countries;
|
|
228
|
-
min_icp_e8s : opt nat64;
|
|
229
|
-
max_direct_participation_icp_e8s : opt nat64;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
type InvalidUserAmount = record {
|
|
233
|
-
min_amount_icp_e8s_included : nat64;
|
|
234
|
-
max_amount_icp_e8s_included : nat64;
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
type Investor = variant {
|
|
238
|
-
CommunityFund : CfInvestment;
|
|
239
|
-
Direct : DirectInvestment;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
type LinearScalingCoefficient = record {
|
|
243
|
-
slope_numerator : opt nat64;
|
|
244
|
-
intercept_icp_e8s : opt nat64;
|
|
245
|
-
from_direct_participation_icp_e8s : opt nat64;
|
|
246
|
-
slope_denominator : opt nat64;
|
|
247
|
-
to_direct_participation_icp_e8s : opt nat64;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
type ListCommunityFundParticipantsRequest = record {
|
|
251
|
-
offset : opt nat64;
|
|
252
|
-
limit : opt nat32;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
type ListCommunityFundParticipantsResponse = record {
|
|
256
|
-
cf_participants : vec CfParticipant;
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
type ListDirectParticipantsRequest = record {
|
|
260
|
-
offset : opt nat32;
|
|
261
|
-
limit : opt nat32;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
type ListDirectParticipantsResponse = record {
|
|
265
|
-
participants : vec Participant;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
type ListSnsNeuronRecipesRequest = record {
|
|
269
|
-
offset : opt nat64;
|
|
270
|
-
limit : opt nat32;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
type ListSnsNeuronRecipesResponse = record {
|
|
274
|
-
sns_neuron_recipes : vec SnsNeuronRecipe;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
type NeuronAttributes = record {
|
|
278
|
-
dissolve_delay_seconds : nat64;
|
|
279
|
-
memo : nat64;
|
|
280
|
-
followees : vec NeuronId;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
type NeuronBasketConstructionParameters = record {
|
|
284
|
-
dissolve_delay_interval_seconds : nat64;
|
|
285
|
-
count : nat64;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
type NeuronId = record {
|
|
289
|
-
id : blob;
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
type NeuronsFundParticipationConstraints = record {
|
|
293
|
-
coefficient_intervals : vec LinearScalingCoefficient;
|
|
294
|
-
max_neurons_fund_participation_icp_e8s : opt nat64;
|
|
295
|
-
min_direct_participation_threshold_icp_e8s : opt nat64;
|
|
296
|
-
ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
type NewSaleTicketRequest = record {
|
|
300
|
-
subaccount : opt blob;
|
|
301
|
-
amount_icp_e8s : nat64;
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
type NewSaleTicketResponse = record {
|
|
305
|
-
result : opt Result_2;
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
type Ok = record {
|
|
309
|
-
block_height : opt nat64;
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
type Ok_1 = record {
|
|
313
|
-
neurons_fund_participation_icp_e8s : opt nat64;
|
|
314
|
-
neurons_fund_neurons_count : opt nat64;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
type Ok_2 = record {
|
|
318
|
-
ticket : opt Ticket;
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
type Params = record {
|
|
322
|
-
min_participant_icp_e8s : nat64;
|
|
323
|
-
neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
|
|
324
|
-
max_icp_e8s : nat64;
|
|
325
|
-
swap_due_timestamp_seconds : nat64;
|
|
326
|
-
min_participants : nat32;
|
|
327
|
-
sns_token_e8s : nat64;
|
|
328
|
-
sale_delay_seconds : opt nat64;
|
|
329
|
-
max_participant_icp_e8s : nat64;
|
|
330
|
-
min_direct_participation_icp_e8s : opt nat64;
|
|
331
|
-
min_icp_e8s : nat64;
|
|
332
|
-
max_direct_participation_icp_e8s : opt nat64;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
type Participant = record {
|
|
336
|
-
participation : opt BuyerState;
|
|
337
|
-
participant_id : opt principal;
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
type Possibility = variant {
|
|
341
|
-
Ok : SetDappControllersResponse;
|
|
342
|
-
Err : CanisterCallError;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
type Possibility_1 = variant {
|
|
346
|
-
Ok : Response;
|
|
347
|
-
Err : CanisterCallError;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
type Possibility_2 = variant {
|
|
351
|
-
Ok : Ok_1;
|
|
352
|
-
Err : Error;
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
type Possibility_3 = variant {
|
|
356
|
-
Ok : record {};
|
|
357
|
-
Err : CanisterCallError;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
type Principals = record {
|
|
361
|
-
principals : vec principal;
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
type RefreshBuyerTokensRequest = record {
|
|
365
|
-
confirmation_text : opt text;
|
|
366
|
-
buyer : text;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
type RefreshBuyerTokensResponse = record {
|
|
370
|
-
icp_accepted_participation_e8s : nat64;
|
|
371
|
-
icp_ledger_account_balance_e8s : nat64;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
type Response = record {
|
|
375
|
-
governance_error : opt GovernanceError;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
type Result = variant {
|
|
379
|
-
Ok : Ok;
|
|
380
|
-
Err : Err;
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
type Result_1 = variant {
|
|
384
|
-
Ok : Ok_2;
|
|
385
|
-
Err : Err_1;
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
type Result_2 = variant {
|
|
389
|
-
Ok : Ok_2;
|
|
390
|
-
Err : Err_2;
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
type SetDappControllersCallResult = record {
|
|
394
|
-
possibility : opt Possibility;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
type SetDappControllersResponse = record {
|
|
398
|
-
failed_updates : vec FailedUpdate;
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
type SetModeCallResult = record {
|
|
402
|
-
possibility : opt Possibility_3;
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
type SettleCommunityFundParticipationResult = record {
|
|
406
|
-
possibility : opt Possibility_1;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
type SettleNeuronsFundParticipationResult = record {
|
|
410
|
-
possibility : opt Possibility_2;
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
type SnsNeuronRecipe = record {
|
|
414
|
-
sns : opt TransferableAmount;
|
|
415
|
-
claimed_status : opt int32;
|
|
416
|
-
neuron_attributes : opt NeuronAttributes;
|
|
417
|
-
investor : opt Investor;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
type Swap = record {
|
|
421
|
-
auto_finalize_swap_response : opt FinalizeSwapResponse;
|
|
422
|
-
neuron_recipes : vec SnsNeuronRecipe;
|
|
423
|
-
next_ticket_id : opt nat64;
|
|
424
|
-
decentralization_sale_open_timestamp_seconds : opt nat64;
|
|
425
|
-
finalize_swap_in_progress : opt bool;
|
|
426
|
-
cf_participants : vec CfParticipant;
|
|
427
|
-
init : opt Init;
|
|
428
|
-
already_tried_to_auto_finalize : opt bool;
|
|
429
|
-
neurons_fund_participation_icp_e8s : opt nat64;
|
|
430
|
-
purge_old_tickets_last_completion_timestamp_nanoseconds : opt nat64;
|
|
431
|
-
direct_participation_icp_e8s : opt nat64;
|
|
432
|
-
lifecycle : int32;
|
|
433
|
-
purge_old_tickets_next_principal : opt blob;
|
|
434
|
-
decentralization_swap_termination_timestamp_seconds : opt nat64;
|
|
435
|
-
buyers : vec record { text; BuyerState };
|
|
436
|
-
params : opt Params;
|
|
437
|
-
open_sns_token_swap_proposal_id : opt nat64;
|
|
438
|
-
timers : opt Timers;
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
type Timers = record {
|
|
442
|
-
requires_periodic_tasks : opt bool;
|
|
443
|
-
last_reset_timestamp_seconds : opt nat64;
|
|
444
|
-
last_spawned_timestamp_seconds : opt nat64;
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
type GetTimersResponse = record {
|
|
448
|
-
timers : opt Timers;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
type SweepResult = record {
|
|
452
|
-
failure : nat32;
|
|
453
|
-
skipped : nat32;
|
|
454
|
-
invalid : nat32;
|
|
455
|
-
success : nat32;
|
|
456
|
-
global_failures : nat32;
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
type Ticket = record {
|
|
460
|
-
creation_time : nat64;
|
|
461
|
-
ticket_id : nat64;
|
|
462
|
-
account : opt Icrc1Account;
|
|
463
|
-
amount_icp_e8s : nat64;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
type TransferableAmount = record {
|
|
467
|
-
transfer_fee_paid_e8s : opt nat64;
|
|
468
|
-
transfer_start_timestamp_seconds : nat64;
|
|
469
|
-
amount_e8s : nat64;
|
|
470
|
-
amount_transferred_e8s : opt nat64;
|
|
471
|
-
transfer_success_timestamp_seconds : nat64;
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
service : (Init) -> {
|
|
475
|
-
error_refund_icp : (ErrorRefundIcpRequest) -> (ErrorRefundIcpResponse);
|
|
476
|
-
finalize_swap : (record {}) -> (FinalizeSwapResponse);
|
|
477
|
-
get_auto_finalization_status : (record {}) -> (
|
|
478
|
-
GetAutoFinalizationStatusResponse,
|
|
479
|
-
) query;
|
|
480
|
-
get_buyer_state : (GetBuyerStateRequest) -> (GetBuyerStateResponse) query;
|
|
481
|
-
get_buyers_total : (record {}) -> (GetBuyersTotalResponse);
|
|
482
|
-
get_canister_status : (record {}) -> (CanisterStatusResultV2);
|
|
483
|
-
get_derived_state : (record {}) -> (GetDerivedStateResponse) query;
|
|
484
|
-
get_init : (record {}) -> (GetInitResponse) query;
|
|
485
|
-
get_lifecycle : (record {}) -> (GetLifecycleResponse) query;
|
|
486
|
-
get_open_ticket : (record {}) -> (GetOpenTicketResponse) query;
|
|
487
|
-
get_sale_parameters : (record {}) -> (GetSaleParametersResponse) query;
|
|
488
|
-
get_state : (record {}) -> (GetStateResponse) query;
|
|
489
|
-
list_community_fund_participants : (ListCommunityFundParticipantsRequest) -> (
|
|
490
|
-
ListCommunityFundParticipantsResponse,
|
|
491
|
-
) query;
|
|
492
|
-
list_direct_participants : (ListDirectParticipantsRequest) -> (
|
|
493
|
-
ListDirectParticipantsResponse,
|
|
494
|
-
) query;
|
|
495
|
-
list_sns_neuron_recipes : (ListSnsNeuronRecipesRequest) -> (
|
|
496
|
-
ListSnsNeuronRecipesResponse,
|
|
497
|
-
) query;
|
|
498
|
-
new_sale_ticket : (NewSaleTicketRequest) -> (NewSaleTicketResponse);
|
|
499
|
-
notify_payment_failure : (record {}) -> (Ok_2);
|
|
500
|
-
refresh_buyer_tokens : (RefreshBuyerTokensRequest) -> (
|
|
501
|
-
RefreshBuyerTokensResponse,
|
|
502
|
-
);
|
|
503
|
-
reset_timers : (record {}) -> (record {});
|
|
504
|
-
get_timers : (record {}) -> (GetTimersResponse) query;
|
|
505
|
-
}
|