@wireio/stake 2.7.1 → 2.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireio/stake",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "LIQ Staking Module for Wire Network",
5
5
  "homepage": "https://gitea.gitgo.app/Wire/sdk-stake",
6
6
  "license": "FSL-1.1-Apache-2.0",
@@ -364,6 +364,9 @@
364
364
  },
365
365
  {
366
366
  "name": "token_program"
367
+ },
368
+ {
369
+ "name": "system_program"
367
370
  }
368
371
  ],
369
372
  "args": []
@@ -1942,6 +1945,43 @@
1942
1945
  }
1943
1946
  ]
1944
1947
  },
1948
+ {
1949
+ "name": "migrate_user_record",
1950
+ "discriminator": [
1951
+ 6,
1952
+ 118,
1953
+ 249,
1954
+ 178,
1955
+ 209,
1956
+ 106,
1957
+ 197,
1958
+ 25
1959
+ ],
1960
+ "accounts": [
1961
+ {
1962
+ "name": "admin",
1963
+ "writable": true,
1964
+ "signer": true
1965
+ },
1966
+ {
1967
+ "name": "global_config"
1968
+ },
1969
+ {
1970
+ "name": "user_ata"
1971
+ },
1972
+ {
1973
+ "name": "user_record",
1974
+ "writable": true
1975
+ },
1976
+ {
1977
+ "name": "distribution_state"
1978
+ },
1979
+ {
1980
+ "name": "system_program"
1981
+ }
1982
+ ],
1983
+ "args": []
1984
+ },
1945
1985
  {
1946
1986
  "name": "process_graveyard_validators_batch",
1947
1987
  "docs": [
@@ -4459,12 +4499,20 @@
4459
4499
  ],
4460
4500
  "type": "u8"
4461
4501
  },
4502
+ {
4503
+ "name": "aggregation_started_epoch",
4504
+ "docs": [
4505
+ "The epoch when the current aggregation batch started.",
4506
+ "Prevents stale partial accumulators from being committed if an epoch boundary is crossed mid-aggregation."
4507
+ ],
4508
+ "type": "u64"
4509
+ },
4462
4510
  {
4463
4511
  "name": "_reserved",
4464
4512
  "type": {
4465
4513
  "array": [
4466
4514
  "u8",
4467
- 31
4515
+ 23
4468
4516
  ]
4469
4517
  }
4470
4518
  }
@@ -6127,6 +6175,13 @@
6127
6175
  {
6128
6176
  "name": "bump",
6129
6177
  "type": "u8"
6178
+ },
6179
+ {
6180
+ "name": "tracked_balance",
6181
+ "docs": [
6182
+ "Last reconciled liqSOL token balance for this user ATA"
6183
+ ],
6184
+ "type": "u64"
6130
6185
  }
6131
6186
  ]
6132
6187
  }
@@ -108,11 +108,18 @@
108
108
  96
109
109
  ],
110
110
  "accounts": [
111
+ {
112
+ "name": "admin",
113
+ "signer": true
114
+ },
111
115
  {
112
116
  "name": "payer",
113
117
  "writable": true,
114
118
  "signer": true
115
119
  },
120
+ {
121
+ "name": "global_config"
122
+ },
116
123
  {
117
124
  "name": "extra_account_meta_list",
118
125
  "writable": true
@@ -143,6 +150,19 @@
143
150
  4,
144
151
  103
145
152
  ]
153
+ },
154
+ {
155
+ "name": "GlobalConfig",
156
+ "discriminator": [
157
+ 149,
158
+ 8,
159
+ 156,
160
+ 202,
161
+ 160,
162
+ 252,
163
+ 176,
164
+ 217
165
+ ]
146
166
  }
147
167
  ],
148
168
  "errors": [
@@ -162,6 +182,11 @@
162
182
  "code": 6003,
163
183
  "name": "CannotTransferToBucket",
164
184
  "msg": "Cannot transfer liqSOL directly to bucket - only protocol minting is allowed"
185
+ },
186
+ {
187
+ "code": 6004,
188
+ "name": "Unauthorized",
189
+ "msg": "Unauthorized: caller is not the admin"
165
190
  }
166
191
  ],
167
192
  "types": [
@@ -226,6 +251,229 @@
226
251
  }
227
252
  ]
228
253
  }
254
+ },
255
+ {
256
+ "name": "GlobalConfig",
257
+ "docs": [
258
+ "Zero-copy global config PDA"
259
+ ],
260
+ "serialization": "bytemuckunsafe",
261
+ "repr": {
262
+ "kind": "c"
263
+ },
264
+ "type": {
265
+ "kind": "struct",
266
+ "fields": [
267
+ {
268
+ "name": "bump",
269
+ "type": "u8"
270
+ },
271
+ {
272
+ "name": "_padding",
273
+ "type": {
274
+ "array": [
275
+ "u8",
276
+ 7
277
+ ]
278
+ }
279
+ },
280
+ {
281
+ "name": "admin",
282
+ "type": "pubkey"
283
+ },
284
+ {
285
+ "name": "cranky",
286
+ "type": "pubkey"
287
+ },
288
+ {
289
+ "name": "_reserved_pubkey",
290
+ "type": {
291
+ "array": [
292
+ "pubkey",
293
+ 1
294
+ ]
295
+ }
296
+ },
297
+ {
298
+ "name": "min_user_deposit",
299
+ "docs": [
300
+ "Minimum SOL amount a user can deposit"
301
+ ],
302
+ "type": "u64"
303
+ },
304
+ {
305
+ "name": "min_unstake_request",
306
+ "docs": [
307
+ "Minimum SOL amount for an unstake/withdrawal request"
308
+ ],
309
+ "type": "u64"
310
+ },
311
+ {
312
+ "name": "min_rebalance_stake_delta",
313
+ "docs": [
314
+ "Minimum stake delta to trigger a stake rebalance order"
315
+ ],
316
+ "type": "u64"
317
+ },
318
+ {
319
+ "name": "min_rebalance_unstake_delta",
320
+ "docs": [
321
+ "Minimum unstake delta to trigger an unstake rebalance order"
322
+ ],
323
+ "type": "u64"
324
+ },
325
+ {
326
+ "name": "transient_threshold",
327
+ "docs": [
328
+ "Minimum transient stake to include in effective stake calculations"
329
+ ],
330
+ "type": "u64"
331
+ },
332
+ {
333
+ "name": "min_late_epoch_slot_gate",
334
+ "docs": [
335
+ "Minimum slots that must have elapsed in the epoch before late epoch operations can execute"
336
+ ],
337
+ "type": "u64"
338
+ },
339
+ {
340
+ "name": "_reserved_u64",
341
+ "type": {
342
+ "array": [
343
+ "u64",
344
+ 2
345
+ ]
346
+ }
347
+ },
348
+ {
349
+ "name": "cooldown_epochs",
350
+ "docs": [
351
+ "Epochs a validator must wait in the graveyard before it is booted. This begins after the last recorded state change"
352
+ ],
353
+ "type": "u16"
354
+ },
355
+ {
356
+ "name": "deposit_fee_multiplier",
357
+ "docs": [
358
+ "Multiplier for deposit fee calculation, this would be average \"pay rate x number of epochs we expect the stake to warm up\""
359
+ ],
360
+ "type": "u16"
361
+ },
362
+ {
363
+ "name": "min_vpp_entry",
364
+ "docs": [
365
+ "Minimum VPP score required to enter the active validator set, this is a fall back for when the val set is really small"
366
+ ],
367
+ "type": "u16"
368
+ },
369
+ {
370
+ "name": "min_vpp_exit",
371
+ "docs": [
372
+ "VPP score threshold below which a validator is removed from active set, again a fall back"
373
+ ],
374
+ "type": "u16"
375
+ },
376
+ {
377
+ "name": "tiny_network_threshold",
378
+ "docs": [
379
+ "Max validators for \"tiny\" network band (uses fixed VPP thresholds) as above"
380
+ ],
381
+ "type": "u16"
382
+ },
383
+ {
384
+ "name": "small_network_threshold",
385
+ "docs": [
386
+ "Max validators for \"small\" network band (uses percentile-based selection)"
387
+ ],
388
+ "type": "u16"
389
+ },
390
+ {
391
+ "name": "medium_network_threshold",
392
+ "docs": [
393
+ "Max validators for \"medium\" network band (uses percentile-based selection)"
394
+ ],
395
+ "type": "u16"
396
+ },
397
+ {
398
+ "name": "large_network_entry_rank",
399
+ "docs": [
400
+ "Fixed rank threshold to enter active set in large networks (0-indexed)"
401
+ ],
402
+ "type": "u16"
403
+ },
404
+ {
405
+ "name": "large_network_exit_rank",
406
+ "docs": [
407
+ "Fixed rank threshold to exit active set in large networks (0-indexed)"
408
+ ],
409
+ "type": "u16"
410
+ },
411
+ {
412
+ "name": "_reserved_u16",
413
+ "type": {
414
+ "array": [
415
+ "u16",
416
+ 3
417
+ ]
418
+ }
419
+ },
420
+ {
421
+ "name": "small_network_entry_percent",
422
+ "docs": [
423
+ "Percentile rank required to enter active set in small networks"
424
+ ],
425
+ "type": "u8"
426
+ },
427
+ {
428
+ "name": "small_network_exit_percent",
429
+ "docs": [
430
+ "Percentile rank below which validators exit in small networks"
431
+ ],
432
+ "type": "u8"
433
+ },
434
+ {
435
+ "name": "medium_network_entry_percent",
436
+ "docs": [
437
+ "Percentile rank required to enter active set in medium networks"
438
+ ],
439
+ "type": "u8"
440
+ },
441
+ {
442
+ "name": "medium_network_exit_percent",
443
+ "docs": [
444
+ "Percentile rank below which validators exit in medium networks"
445
+ ],
446
+ "type": "u8"
447
+ },
448
+ {
449
+ "name": "_reserved_u8",
450
+ "type": {
451
+ "array": [
452
+ "u8",
453
+ 2
454
+ ]
455
+ }
456
+ },
457
+ {
458
+ "name": "feature_flags",
459
+ "docs": [
460
+ "Bit 0: DepositsEnabled, Bit 1: WithdrawalsEnabled, Bit 2: ClaimWithdrawalsEnabled,",
461
+ "Bit 3: ProcessStakeOrdersEnabled, Bit 4: ProcessUnstakeOrdersEnabled,",
462
+ "Bit 5: ProcessPayCycleEnabled, Bit 6: RebalancingEnabled, Bits 7-15: Reserved"
463
+ ],
464
+ "type": "u16"
465
+ },
466
+ {
467
+ "name": "_reserved_flags",
468
+ "type": {
469
+ "array": [
470
+ "u16",
471
+ 1
472
+ ]
473
+ }
474
+ }
475
+ ]
476
+ }
229
477
  }
230
478
  ]
231
479
  }
@@ -370,6 +370,9 @@ export type LiqsolCore = {
370
370
  },
371
371
  {
372
372
  "name": "tokenProgram"
373
+ },
374
+ {
375
+ "name": "systemProgram"
373
376
  }
374
377
  ],
375
378
  "args": []
@@ -1948,6 +1951,43 @@ export type LiqsolCore = {
1948
1951
  }
1949
1952
  ]
1950
1953
  },
1954
+ {
1955
+ "name": "migrateUserRecord",
1956
+ "discriminator": [
1957
+ 6,
1958
+ 118,
1959
+ 249,
1960
+ 178,
1961
+ 209,
1962
+ 106,
1963
+ 197,
1964
+ 25
1965
+ ],
1966
+ "accounts": [
1967
+ {
1968
+ "name": "admin",
1969
+ "writable": true,
1970
+ "signer": true
1971
+ },
1972
+ {
1973
+ "name": "globalConfig"
1974
+ },
1975
+ {
1976
+ "name": "userAta"
1977
+ },
1978
+ {
1979
+ "name": "userRecord",
1980
+ "writable": true
1981
+ },
1982
+ {
1983
+ "name": "distributionState"
1984
+ },
1985
+ {
1986
+ "name": "systemProgram"
1987
+ }
1988
+ ],
1989
+ "args": []
1990
+ },
1951
1991
  {
1952
1992
  "name": "processGraveyardValidatorsBatch",
1953
1993
  "docs": [
@@ -4465,12 +4505,20 @@ export type LiqsolCore = {
4465
4505
  ],
4466
4506
  "type": "u8"
4467
4507
  },
4508
+ {
4509
+ "name": "aggregationStartedEpoch",
4510
+ "docs": [
4511
+ "The epoch when the current aggregation batch started.",
4512
+ "Prevents stale partial accumulators from being committed if an epoch boundary is crossed mid-aggregation."
4513
+ ],
4514
+ "type": "u64"
4515
+ },
4468
4516
  {
4469
4517
  "name": "reserved",
4470
4518
  "type": {
4471
4519
  "array": [
4472
4520
  "u8",
4473
- 31
4521
+ 23
4474
4522
  ]
4475
4523
  }
4476
4524
  }
@@ -6133,6 +6181,13 @@ export type LiqsolCore = {
6133
6181
  {
6134
6182
  "name": "bump",
6135
6183
  "type": "u8"
6184
+ },
6185
+ {
6186
+ "name": "trackedBalance",
6187
+ "docs": [
6188
+ "Last reconciled liqSOL token balance for this user ATA"
6189
+ ],
6190
+ "type": "u64"
6136
6191
  }
6137
6192
  ]
6138
6193
  }