@dfinity/sns 1.0.2 → 2.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.
@@ -41,7 +41,7 @@ export interface CanisterStatusResultV2 {
41
41
  cycles: bigint;
42
42
  settings: DefiniteCanisterSettingsArgs;
43
43
  idle_cycles_burned_per_day: bigint;
44
- module_hash: [] | [Uint8Array];
44
+ module_hash: [] | [Uint8Array | number[]];
45
45
  }
46
46
  export type CanisterStatusType =
47
47
  | { stopped: null }
@@ -150,7 +150,7 @@ export type DissolveState =
150
150
  | { WhenDissolvedTimestampSeconds: bigint };
151
151
  export interface ExecuteGenericNervousSystemFunction {
152
152
  function_id: bigint;
153
- payload: Uint8Array;
153
+ payload: Uint8Array | number[];
154
154
  }
155
155
  export interface FinalizeDisburseMaturity {
156
156
  amount_to_be_disbursed_e8s: bigint;
@@ -248,7 +248,7 @@ export interface IncreaseDissolveDelay {
248
248
  additional_dissolve_delay_seconds: number;
249
249
  }
250
250
  export interface ListNervousSystemFunctionsResponse {
251
- reserved_ids: BigUint64Array;
251
+ reserved_ids: BigUint64Array | bigint[];
252
252
  functions: Array<NervousSystemFunction>;
253
253
  }
254
254
  export interface ListNeurons {
@@ -260,17 +260,17 @@ export interface ListNeuronsResponse {
260
260
  neurons: Array<Neuron>;
261
261
  }
262
262
  export interface ListProposals {
263
- include_reward_status: Int32Array;
263
+ include_reward_status: Int32Array | number[];
264
264
  before_proposal: [] | [ProposalId];
265
265
  limit: number;
266
- exclude_type: BigUint64Array;
267
- include_status: Int32Array;
266
+ exclude_type: BigUint64Array | bigint[];
267
+ include_status: Int32Array | number[];
268
268
  }
269
269
  export interface ListProposalsResponse {
270
270
  proposals: Array<ProposalData>;
271
271
  }
272
272
  export interface ManageNeuron {
273
- subaccount: Uint8Array;
273
+ subaccount: Uint8Array | number[];
274
274
  command: [] | [Command];
275
275
  }
276
276
  export interface ManageNeuronResponse {
@@ -346,7 +346,7 @@ export interface Neuron {
346
346
  neuron_fees_e8s: bigint;
347
347
  }
348
348
  export interface NeuronId {
349
- id: Uint8Array;
349
+ id: Uint8Array | number[];
350
350
  }
351
351
  export interface NeuronInFlightCommand {
352
352
  command: [] | [Command_2];
@@ -363,10 +363,10 @@ export interface NeuronParameters {
363
363
  }
364
364
  export interface NeuronPermission {
365
365
  principal: [] | [Principal];
366
- permission_type: Int32Array;
366
+ permission_type: Int32Array | number[];
367
367
  }
368
368
  export interface NeuronPermissionList {
369
- permissions: Int32Array;
369
+ permissions: Int32Array | number[];
370
370
  }
371
371
  export type Operation =
372
372
  | {
@@ -448,7 +448,7 @@ export interface StakeMaturityResponse {
448
448
  staked_maturity_e8s: bigint;
449
449
  }
450
450
  export interface Subaccount {
451
- subaccount: Uint8Array;
451
+ subaccount: Uint8Array | number[];
452
452
  }
453
453
  export interface SwapNeuron {
454
454
  id: [] | [NeuronId];
@@ -474,18 +474,18 @@ export interface UpgradeInProgress {
474
474
  target_version: [] | [Version];
475
475
  }
476
476
  export interface UpgradeSnsControlledCanister {
477
- new_canister_wasm: Uint8Array;
477
+ new_canister_wasm: Uint8Array | number[];
478
478
  mode: [] | [number];
479
479
  canister_id: [] | [Principal];
480
- canister_upgrade_arg: [] | [Uint8Array];
480
+ canister_upgrade_arg: [] | [Uint8Array | number[]];
481
481
  }
482
482
  export interface Version {
483
- archive_wasm_hash: Uint8Array;
484
- root_wasm_hash: Uint8Array;
485
- swap_wasm_hash: Uint8Array;
486
- ledger_wasm_hash: Uint8Array;
487
- governance_wasm_hash: Uint8Array;
488
- index_wasm_hash: Uint8Array;
483
+ archive_wasm_hash: Uint8Array | number[];
484
+ root_wasm_hash: Uint8Array | number[];
485
+ swap_wasm_hash: Uint8Array | number[];
486
+ ledger_wasm_hash: Uint8Array | number[];
487
+ governance_wasm_hash: Uint8Array | number[];
488
+ index_wasm_hash: Uint8Array | number[];
489
489
  }
490
490
  export interface VotingRewardsParameters {
491
491
  final_reward_rate_basis_points: [] | [bigint];
@@ -48,7 +48,7 @@ export interface CanisterStatusResultV2 {
48
48
  cycles: bigint;
49
49
  settings: DefiniteCanisterSettingsArgs;
50
50
  idle_cycles_burned_per_day: bigint;
51
- module_hash: [] | [Uint8Array];
51
+ module_hash: [] | [Uint8Array | number[]];
52
52
  }
53
53
  export type CanisterStatusType =
54
54
  | { stopped: null }
@@ -157,7 +157,7 @@ export type DissolveState =
157
157
  | { WhenDissolvedTimestampSeconds: bigint };
158
158
  export interface ExecuteGenericNervousSystemFunction {
159
159
  function_id: bigint;
160
- payload: Uint8Array;
160
+ payload: Uint8Array | number[];
161
161
  }
162
162
  export interface FinalizeDisburseMaturity {
163
163
  amount_to_be_disbursed_e8s: bigint;
@@ -255,7 +255,7 @@ export interface IncreaseDissolveDelay {
255
255
  additional_dissolve_delay_seconds: number;
256
256
  }
257
257
  export interface ListNervousSystemFunctionsResponse {
258
- reserved_ids: BigUint64Array;
258
+ reserved_ids: BigUint64Array | bigint[];
259
259
  functions: Array<NervousSystemFunction>;
260
260
  }
261
261
  export interface ListNeurons {
@@ -267,17 +267,17 @@ export interface ListNeuronsResponse {
267
267
  neurons: Array<Neuron>;
268
268
  }
269
269
  export interface ListProposals {
270
- include_reward_status: Int32Array;
270
+ include_reward_status: Int32Array | number[];
271
271
  before_proposal: [] | [ProposalId];
272
272
  limit: number;
273
- exclude_type: BigUint64Array;
274
- include_status: Int32Array;
273
+ exclude_type: BigUint64Array | bigint[];
274
+ include_status: Int32Array | number[];
275
275
  }
276
276
  export interface ListProposalsResponse {
277
277
  proposals: Array<ProposalData>;
278
278
  }
279
279
  export interface ManageNeuron {
280
- subaccount: Uint8Array;
280
+ subaccount: Uint8Array | number[];
281
281
  command: [] | [Command];
282
282
  }
283
283
  export interface ManageNeuronResponse {
@@ -357,7 +357,7 @@ export interface Neuron {
357
357
  neuron_fees_e8s: bigint;
358
358
  }
359
359
  export interface NeuronId {
360
- id: Uint8Array;
360
+ id: Uint8Array | number[];
361
361
  }
362
362
  export interface NeuronInFlightCommand {
363
363
  command: [] | [Command_2];
@@ -374,10 +374,10 @@ export interface NeuronParameters {
374
374
  }
375
375
  export interface NeuronPermission {
376
376
  principal: [] | [Principal];
377
- permission_type: Int32Array;
377
+ permission_type: Int32Array | number[];
378
378
  }
379
379
  export interface NeuronPermissionList {
380
- permissions: Int32Array;
380
+ permissions: Int32Array | number[];
381
381
  }
382
382
  export type Operation =
383
383
  | {
@@ -459,7 +459,7 @@ export interface StakeMaturityResponse {
459
459
  staked_maturity_e8s: bigint;
460
460
  }
461
461
  export interface Subaccount {
462
- subaccount: Uint8Array;
462
+ subaccount: Uint8Array | number[];
463
463
  }
464
464
  export interface SwapNeuron {
465
465
  id: [] | [NeuronId];
@@ -485,18 +485,18 @@ export interface UpgradeInProgress {
485
485
  target_version: [] | [Version];
486
486
  }
487
487
  export interface UpgradeSnsControlledCanister {
488
- new_canister_wasm: Uint8Array;
488
+ new_canister_wasm: Uint8Array | number[];
489
489
  mode: [] | [number];
490
490
  canister_id: [] | [Principal];
491
- canister_upgrade_arg: [] | [Uint8Array];
491
+ canister_upgrade_arg: [] | [Uint8Array | number[]];
492
492
  }
493
493
  export interface Version {
494
- archive_wasm_hash: Uint8Array;
495
- root_wasm_hash: Uint8Array;
496
- swap_wasm_hash: Uint8Array;
497
- ledger_wasm_hash: Uint8Array;
498
- governance_wasm_hash: Uint8Array;
499
- index_wasm_hash: Uint8Array;
494
+ archive_wasm_hash: Uint8Array | number[];
495
+ root_wasm_hash: Uint8Array | number[];
496
+ swap_wasm_hash: Uint8Array | number[];
497
+ ledger_wasm_hash: Uint8Array | number[];
498
+ governance_wasm_hash: Uint8Array | number[];
499
+ index_wasm_hash: Uint8Array | number[];
500
500
  }
501
501
  export interface VotingRewardsParameters {
502
502
  final_reward_rate_basis_points: [] | [bigint];
@@ -20,7 +20,7 @@ export interface CanisterStatusResult {
20
20
  memory_size: bigint;
21
21
  cycles: bigint;
22
22
  settings: DefiniteCanisterSettings;
23
- module_hash: [] | [Uint8Array];
23
+ module_hash: [] | [Uint8Array | number[]];
24
24
  }
25
25
  export interface CanisterStatusResultV2 {
26
26
  status: CanisterStatusType;
@@ -28,7 +28,7 @@ export interface CanisterStatusResultV2 {
28
28
  cycles: bigint;
29
29
  settings: DefiniteCanisterSettingsArgs;
30
30
  idle_cycles_burned_per_day: bigint;
31
- module_hash: [] | [Uint8Array];
31
+ module_hash: [] | [Uint8Array | number[]];
32
32
  }
33
33
  export type CanisterStatusType =
34
34
  | { stopped: null }
@@ -39,8 +39,8 @@ export interface CanisterSummary {
39
39
  canister_id: [] | [Principal];
40
40
  }
41
41
  export interface ChangeCanisterProposal {
42
- arg: Uint8Array;
43
- wasm_module: Uint8Array;
42
+ arg: Uint8Array | number[];
43
+ wasm_module: Uint8Array | number[];
44
44
  stop_before_installing: boolean;
45
45
  mode: CanisterInstallMode;
46
46
  canister_id: Principal;
@@ -15,7 +15,7 @@ export interface CanisterStatusResultV2 {
15
15
  cycles: bigint;
16
16
  settings: DefiniteCanisterSettingsArgs;
17
17
  idle_cycles_burned_per_day: bigint;
18
- module_hash: [] | [Uint8Array];
18
+ module_hash: [] | [Uint8Array | number[]];
19
19
  }
20
20
  export type CanisterStatusType =
21
21
  | { stopped: null }
@@ -134,7 +134,7 @@ export interface GovernanceError {
134
134
  }
135
135
  export interface Icrc1Account {
136
136
  owner: [] | [Principal];
137
- subaccount: [] | [Uint8Array];
137
+ subaccount: [] | [Uint8Array | number[]];
138
138
  }
139
139
  export interface Init {
140
140
  nns_proposal_id: [] | [bigint];
@@ -210,7 +210,7 @@ export interface NeuronBasketConstructionParameters {
210
210
  count: bigint;
211
211
  }
212
212
  export interface NeuronId {
213
- id: Uint8Array;
213
+ id: Uint8Array | number[];
214
214
  }
215
215
  export interface NeuronsFundParticipants {
216
216
  cf_participants: Array<CfParticipant>;
@@ -221,7 +221,7 @@ export interface NeuronsFundParticipationConstraints {
221
221
  min_direct_participation_threshold_icp_e8s: [] | [bigint];
222
222
  }
223
223
  export interface NewSaleTicketRequest {
224
- subaccount: [] | [Uint8Array];
224
+ subaccount: [] | [Uint8Array | number[]];
225
225
  amount_icp_e8s: bigint;
226
226
  }
227
227
  export interface NewSaleTicketResponse {
@@ -307,7 +307,7 @@ export interface Swap {
307
307
  purge_old_tickets_last_completion_timestamp_nanoseconds: [] | [bigint];
308
308
  direct_participation_icp_e8s: [] | [bigint];
309
309
  lifecycle: number;
310
- purge_old_tickets_next_principal: [] | [Uint8Array];
310
+ purge_old_tickets_next_principal: [] | [Uint8Array | number[]];
311
311
  buyers: Array<[string, BuyerState]>;
312
312
  params: [] | [Params];
313
313
  open_sns_token_swap_proposal_id: [] | [bigint];