@wireio/stake 2.7.2 → 2.7.3

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.
@@ -7,68 +7,6 @@
7
7
  "description": "Created with Anchor"
8
8
  },
9
9
  "instructions": [
10
- {
11
- "name": "accumulate_unstake_request",
12
- "docs": [
13
- "Accumulate unstake requests to be processed in next allocation cycle",
14
- "Multiple requests can be accumulated before calculating allocations",
15
- "Returns the target epoch when this unstake request will be processed",
16
- "We should not be able to call this without development feature enabled",
17
- ""
18
- ],
19
- "discriminator": [
20
- 24,
21
- 73,
22
- 69,
23
- 139,
24
- 36,
25
- 209,
26
- 105,
27
- 252
28
- ],
29
- "accounts": [
30
- {
31
- "name": "admin",
32
- "writable": true,
33
- "signer": true
34
- },
35
- {
36
- "name": "stake_allocation_state",
37
- "docs": [
38
- "Stake allocation state - to accumulate pending unstake requests"
39
- ],
40
- "writable": true
41
- },
42
- {
43
- "name": "stake_metrics",
44
- "docs": [
45
- "Stake metrics - to validate total unstake amount is available"
46
- ]
47
- },
48
- {
49
- "name": "maintenance_ledger",
50
- "docs": [
51
- "Maintenance ledger - to determine target processing epoch"
52
- ]
53
- },
54
- {
55
- "name": "global_config",
56
- "docs": [
57
- "Global config for min_unstake_request setting"
58
- ]
59
- },
60
- {
61
- "name": "clock"
62
- }
63
- ],
64
- "args": [
65
- {
66
- "name": "amount",
67
- "type": "u64"
68
- }
69
- ],
70
- "returns": "u64"
71
- },
72
10
  {
73
11
  "name": "add_top_performers_batch",
74
12
  "docs": [
@@ -121,74 +59,6 @@
121
59
  ],
122
60
  "args": []
123
61
  },
124
- {
125
- "name": "add_validator_v2",
126
- "docs": [
127
- "Add a new validator bbypassing the looking at leaderboard and getting validators form there"
128
- ],
129
- "discriminator": [
130
- 217,
131
- 158,
132
- 30,
133
- 19,
134
- 123,
135
- 99,
136
- 110,
137
- 30
138
- ],
139
- "accounts": [
140
- {
141
- "name": "authority",
142
- "writable": true,
143
- "signer": true
144
- },
145
- {
146
- "name": "active_list",
147
- "docs": [
148
- "Active list - will add the validator here"
149
- ],
150
- "writable": true
151
- },
152
- {
153
- "name": "validator_info",
154
- "docs": [
155
- "Create the validator info account"
156
- ],
157
- "writable": true
158
- },
159
- {
160
- "name": "validator_transient",
161
- "docs": [
162
- "Create the validator transient account"
163
- ],
164
- "writable": true
165
- },
166
- {
167
- "name": "stake_allocation_state",
168
- "docs": [
169
- "Stake allocation state - to update total_active_vpp when adding validator"
170
- ],
171
- "writable": true
172
- },
173
- {
174
- "name": "system_program"
175
- }
176
- ],
177
- "args": [
178
- {
179
- "name": "vote_account",
180
- "type": "pubkey"
181
- },
182
- {
183
- "name": "name",
184
- "type": "string"
185
- },
186
- {
187
- "name": "performance_score",
188
- "type": "u8"
189
- }
190
- ]
191
- },
192
62
  {
193
63
  "name": "admin_force_unbond_role",
194
64
  "discriminator": [
@@ -272,43 +142,6 @@
272
142
  ],
273
143
  "args": []
274
144
  },
275
- {
276
- "name": "blacklist_validator",
277
- "docs": [
278
- "Blacklist a validator (user-facing, maintenance will handle graveyard movement)",
279
- "UnderPerforming is set automatically when score is updated",
280
- "Another serious emergency stop function"
281
- ],
282
- "discriminator": [
283
- 125,
284
- 42,
285
- 36,
286
- 229,
287
- 27,
288
- 38,
289
- 226,
290
- 62
291
- ],
292
- "accounts": [
293
- {
294
- "name": "validator_info",
295
- "writable": true
296
- },
297
- {
298
- "name": "stake_allocation_state",
299
- "docs": [
300
- "Stake allocation state - to update total_active_vpp when VPP changes"
301
- ],
302
- "writable": true
303
- }
304
- ],
305
- "args": [
306
- {
307
- "name": "vote_account",
308
- "type": "pubkey"
309
- }
310
- ]
311
- },
312
145
  {
313
146
  "name": "bond_role",
314
147
  "discriminator": [
@@ -869,6 +702,10 @@
869
702
  "name": "epoch_state",
870
703
  "writable": true
871
704
  },
705
+ {
706
+ "name": "withdraw_global",
707
+ "writable": true
708
+ },
872
709
  {
873
710
  "name": "active_list"
874
711
  },
@@ -1937,69 +1774,6 @@
1937
1774
  }
1938
1775
  ]
1939
1776
  },
1940
- {
1941
- "name": "inject_test_yield",
1942
- "discriminator": [
1943
- 55,
1944
- 41,
1945
- 251,
1946
- 228,
1947
- 58,
1948
- 191,
1949
- 103,
1950
- 248
1951
- ],
1952
- "accounts": [
1953
- {
1954
- "name": "admin",
1955
- "signer": true
1956
- },
1957
- {
1958
- "name": "global_config"
1959
- },
1960
- {
1961
- "name": "global_state",
1962
- "writable": true
1963
- },
1964
- {
1965
- "name": "distribution_state",
1966
- "writable": true
1967
- },
1968
- {
1969
- "name": "liqsol_mint",
1970
- "writable": true
1971
- },
1972
- {
1973
- "name": "pool_authority"
1974
- },
1975
- {
1976
- "name": "liqsol_pool_ata",
1977
- "writable": true
1978
- },
1979
- {
1980
- "name": "deposit_authority",
1981
- "writable": true
1982
- },
1983
- {
1984
- "name": "liqsol_program"
1985
- },
1986
- {
1987
- "name": "liqsol_mint_authority"
1988
- },
1989
- {
1990
- "name": "instructions_sysvar"
1991
- },
1992
- {
1993
- "name": "token_program"
1994
- }
1995
- ],
1996
- "args": [
1997
- {
1998
- "name": "amount",
1999
- "type": "u64"
2000
- }
2001
- ]
2002
- },
2003
1777
  {
2004
1778
  "name": "merge_activating_stakes",
2005
1779
  "docs": [
@@ -2175,6 +1949,76 @@
2175
1949
  }
2176
1950
  ]
2177
1951
  },
1952
+ {
1953
+ "name": "migrate_batch_orchestrator",
1954
+ "docs": [
1955
+ "One-shot migration: realloc BatchOrchestrator for the four per-op",
1956
+ "`*_started_epoch: u16` fields + restored `_reserved` buffer.",
1957
+ "Idempotent, ungated. `payer` covers the rent delta."
1958
+ ],
1959
+ "discriminator": [
1960
+ 130,
1961
+ 240,
1962
+ 40,
1963
+ 175,
1964
+ 53,
1965
+ 209,
1966
+ 232,
1967
+ 11
1968
+ ],
1969
+ "accounts": [
1970
+ {
1971
+ "name": "payer",
1972
+ "writable": true,
1973
+ "signer": true
1974
+ },
1975
+ {
1976
+ "name": "batch_orchestrator",
1977
+ "docs": [
1978
+ "is the only authorization needed; the op is idempotent."
1979
+ ],
1980
+ "writable": true
1981
+ },
1982
+ {
1983
+ "name": "system_program"
1984
+ }
1985
+ ],
1986
+ "args": []
1987
+ },
1988
+ {
1989
+ "name": "migrate_stake_metrics",
1990
+ "docs": [
1991
+ "One-shot migration: realloc StakeMetrics for new fields (mev_reward + _reserved)"
1992
+ ],
1993
+ "discriminator": [
1994
+ 183,
1995
+ 154,
1996
+ 168,
1997
+ 221,
1998
+ 78,
1999
+ 179,
2000
+ 112,
2001
+ 165
2002
+ ],
2003
+ "accounts": [
2004
+ {
2005
+ "name": "global_config"
2006
+ },
2007
+ {
2008
+ "name": "admin",
2009
+ "writable": true,
2010
+ "signer": true
2011
+ },
2012
+ {
2013
+ "name": "stake_metrics",
2014
+ "writable": true
2015
+ },
2016
+ {
2017
+ "name": "system_program"
2018
+ }
2019
+ ],
2020
+ "args": []
2021
+ },
2178
2022
  {
2179
2023
  "name": "migrate_user_record",
2180
2024
  "discriminator": [
@@ -2212,6 +2056,37 @@
2212
2056
  ],
2213
2057
  "args": []
2214
2058
  },
2059
+ {
2060
+ "name": "migrate_validator_info_batch",
2061
+ "docs": [
2062
+ "One-shot migration: realloc ValidatorInfoAccounts for new fields (mev + _reserved)",
2063
+ "Pass validator_info PDAs via remaining_accounts"
2064
+ ],
2065
+ "discriminator": [
2066
+ 250,
2067
+ 77,
2068
+ 53,
2069
+ 116,
2070
+ 38,
2071
+ 22,
2072
+ 12,
2073
+ 100
2074
+ ],
2075
+ "accounts": [
2076
+ {
2077
+ "name": "global_config"
2078
+ },
2079
+ {
2080
+ "name": "admin",
2081
+ "writable": true,
2082
+ "signer": true
2083
+ },
2084
+ {
2085
+ "name": "system_program"
2086
+ }
2087
+ ],
2088
+ "args": []
2089
+ },
2215
2090
  {
2216
2091
  "name": "process_graveyard_validators_batch",
2217
2092
  "docs": [
@@ -3208,199 +3083,62 @@
3208
3083
  {
3209
3084
  "name": "maintenance_ledger",
3210
3085
  "docs": [
3211
- "Maintenance ledger - for accumulate_unstake_request"
3212
- ]
3213
- },
3214
- {
3215
- "name": "global_config",
3216
- "docs": [
3217
- "Global config for min_unstake_request setting"
3218
- ]
3219
- },
3220
- {
3221
- "name": "clock"
3222
- },
3223
- {
3224
- "name": "mint_authority"
3225
- },
3226
- {
3227
- "name": "receipt_data",
3228
- "writable": true
3229
- },
3230
- {
3231
- "name": "metadata",
3232
- "writable": true
3233
- },
3234
- {
3235
- "name": "nft_mint",
3236
- "docs": [
3237
- "Uses global.next_receipt_id for deterministic, collision-free address generation"
3238
- ],
3239
- "writable": true
3240
- },
3241
- {
3242
- "name": "nft_ata",
3243
- "writable": true
3244
- },
3245
- {
3246
- "name": "token_program"
3247
- },
3248
- {
3249
- "name": "token_interface"
3250
- },
3251
- {
3252
- "name": "associated_token_program"
3253
- },
3254
- {
3255
- "name": "system_program"
3256
- },
3257
- {
3258
- "name": "rent"
3259
- }
3260
- ],
3261
- "args": [
3262
- {
3263
- "name": "amount",
3264
- "type": "u64"
3265
- }
3266
- ]
3267
- },
3268
- {
3269
- "name": "reset_distribution_state",
3270
- "discriminator": [
3271
- 159,
3272
- 183,
3273
- 162,
3274
- 74,
3275
- 228,
3276
- 135,
3277
- 157,
3278
- 79
3279
- ],
3280
- "accounts": [
3281
- {
3282
- "name": "admin",
3283
- "signer": true
3284
- },
3285
- {
3286
- "name": "distribution_state",
3287
- "writable": true
3288
- }
3289
- ],
3290
- "args": []
3291
- },
3292
- {
3293
- "name": "reset_global_state",
3294
- "discriminator": [
3295
- 252,
3296
- 41,
3297
- 117,
3298
- 110,
3299
- 248,
3300
- 165,
3301
- 48,
3302
- 88
3303
- ],
3304
- "accounts": [
3305
- {
3306
- "name": "admin",
3307
- "signer": true
3308
- },
3309
- {
3310
- "name": "global_config"
3311
- },
3312
- {
3313
- "name": "global_state",
3314
- "writable": true
3315
- },
3316
- {
3317
- "name": "pool_authority"
3086
+ "Maintenance ledger - for accumulate_unstake_request"
3087
+ ]
3318
3088
  },
3319
3089
  {
3320
- "name": "liqsol_mint"
3090
+ "name": "global_config",
3091
+ "docs": [
3092
+ "Global config for min_unstake_request setting"
3093
+ ]
3321
3094
  },
3322
3095
  {
3323
- "name": "liqsol_pool_ata",
3324
- "writable": true
3096
+ "name": "clock"
3325
3097
  },
3326
3098
  {
3327
- "name": "token_program"
3099
+ "name": "mint_authority"
3328
3100
  },
3329
3101
  {
3330
- "name": "associated_token_program"
3331
- }
3332
- ],
3333
- "args": []
3334
- },
3335
- {
3336
- "name": "reset_price_history",
3337
- "discriminator": [
3338
- 213,
3339
- 231,
3340
- 155,
3341
- 139,
3342
- 248,
3343
- 60,
3344
- 67,
3345
- 199
3346
- ],
3347
- "accounts": [
3348
- {
3349
- "name": "admin",
3350
- "writable": true,
3351
- "signer": true
3102
+ "name": "receipt_data",
3103
+ "writable": true
3352
3104
  },
3353
3105
  {
3354
- "name": "global_config"
3106
+ "name": "metadata",
3107
+ "writable": true
3355
3108
  },
3356
3109
  {
3357
- "name": "tranche_state",
3110
+ "name": "nft_mint",
3111
+ "docs": [
3112
+ "Uses global.next_receipt_id for deterministic, collision-free address generation"
3113
+ ],
3358
3114
  "writable": true
3359
3115
  },
3360
3116
  {
3361
- "name": "price_history",
3117
+ "name": "nft_ata",
3362
3118
  "writable": true
3363
3119
  },
3364
3120
  {
3365
- "name": "system_program"
3366
- }
3367
- ],
3368
- "args": []
3369
- },
3370
- {
3371
- "name": "reset_tranche_state",
3372
- "discriminator": [
3373
- 106,
3374
- 102,
3375
- 143,
3376
- 40,
3377
- 152,
3378
- 173,
3379
- 165,
3380
- 168
3381
- ],
3382
- "accounts": [
3383
- {
3384
- "name": "admin",
3385
- "writable": true,
3386
- "signer": true
3121
+ "name": "token_program"
3387
3122
  },
3388
3123
  {
3389
- "name": "global_config"
3124
+ "name": "token_interface"
3390
3125
  },
3391
3126
  {
3392
- "name": "tranche_state",
3393
- "writable": true
3127
+ "name": "associated_token_program"
3394
3128
  },
3395
3129
  {
3396
- "name": "price_history",
3397
- "writable": true
3130
+ "name": "system_program"
3398
3131
  },
3399
3132
  {
3400
- "name": "system_program"
3133
+ "name": "rent"
3401
3134
  }
3402
3135
  ],
3403
- "args": []
3136
+ "args": [
3137
+ {
3138
+ "name": "amount",
3139
+ "type": "u64"
3140
+ }
3141
+ ]
3404
3142
  },
3405
3143
  {
3406
3144
  "name": "set_admin",
@@ -3456,45 +3194,6 @@
3456
3194
  ],
3457
3195
  "args": []
3458
3196
  },
3459
- {
3460
- "name": "set_last_state_change_epoch",
3461
- "docs": [
3462
- "Admin function to directly set last_state_change_epoch (useful for testing cooldowns)"
3463
- ],
3464
- "discriminator": [
3465
- 94,
3466
- 57,
3467
- 139,
3468
- 195,
3469
- 123,
3470
- 224,
3471
- 227,
3472
- 106
3473
- ],
3474
- "accounts": [
3475
- {
3476
- "name": "validator_info",
3477
- "writable": true
3478
- },
3479
- {
3480
- "name": "stake_allocation_state",
3481
- "docs": [
3482
- "Stake allocation state - to update total_active_vpp when VPP changes"
3483
- ],
3484
- "writable": true
3485
- }
3486
- ],
3487
- "args": [
3488
- {
3489
- "name": "vote_account",
3490
- "type": "pubkey"
3491
- },
3492
- {
3493
- "name": "epoch",
3494
- "type": "u16"
3495
- }
3496
- ]
3497
- },
3498
3197
  {
3499
3198
  "name": "set_paused",
3500
3199
  "discriminator": [
@@ -3842,6 +3541,20 @@
3842
3541
  },
3843
3542
  {
3844
3543
  "name": "stake_history"
3544
+ },
3545
+ {
3546
+ "name": "vault",
3547
+ "writable": true
3548
+ },
3549
+ {
3550
+ "name": "reserve_pool",
3551
+ "writable": true
3552
+ },
3553
+ {
3554
+ "name": "stake_program"
3555
+ },
3556
+ {
3557
+ "name": "clock"
3845
3558
  }
3846
3559
  ],
3847
3560
  "args": []
@@ -3983,34 +3696,6 @@
3983
3696
  }
3984
3697
  ]
3985
3698
  },
3986
- {
3987
- "name": "test_clear_active_list",
3988
- "discriminator": [
3989
- 17,
3990
- 195,
3991
- 59,
3992
- 174,
3993
- 184,
3994
- 137,
3995
- 149,
3996
- 144
3997
- ],
3998
- "accounts": [
3999
- {
4000
- "name": "active_list",
4001
- "writable": true
4002
- },
4003
- {
4004
- "name": "processing_state",
4005
- "writable": true
4006
- },
4007
- {
4008
- "name": "authority",
4009
- "signer": true
4010
- }
4011
- ],
4012
- "args": []
4013
- },
4014
3699
  {
4015
3700
  "name": "update_config_bool",
4016
3701
  "discriminator": [
@@ -4941,12 +4626,61 @@
4941
4626
  ],
4942
4627
  "type": "u64"
4943
4628
  },
4629
+ {
4630
+ "name": "mev_claims_next_index",
4631
+ "docs": [
4632
+ "Next active_list index to process for MEV tip claims"
4633
+ ],
4634
+ "type": "u16"
4635
+ },
4636
+ {
4637
+ "name": "temp_total_mev_reward",
4638
+ "docs": [
4639
+ "Temporary accumulator for MEV rewards across batches"
4640
+ ],
4641
+ "type": "u64"
4642
+ },
4643
+ {
4644
+ "name": "temp_total_outstanding_amount_to_unstake",
4645
+ "docs": [
4646
+ "Temporary accumulator for sum of validators' amount_to_unstake across batches"
4647
+ ],
4648
+ "type": "u64"
4649
+ },
4650
+ {
4651
+ "name": "validators_sync_started_epoch",
4652
+ "docs": [
4653
+ "Owns validators_sync_processed_this_epoch."
4654
+ ],
4655
+ "type": "u16"
4656
+ },
4657
+ {
4658
+ "name": "leaderboard_scores_started_epoch",
4659
+ "docs": [
4660
+ "Owns leaderboard_scores_next_index."
4661
+ ],
4662
+ "type": "u16"
4663
+ },
4664
+ {
4665
+ "name": "graveyard_cleanup_started_epoch",
4666
+ "docs": [
4667
+ "Owns graveyard_cleanup_next_index."
4668
+ ],
4669
+ "type": "u16"
4670
+ },
4671
+ {
4672
+ "name": "addition_started_epoch",
4673
+ "docs": [
4674
+ "Owns addition_next_rank + addition_target_rank."
4675
+ ],
4676
+ "type": "u16"
4677
+ },
4944
4678
  {
4945
4679
  "name": "_reserved",
4946
4680
  "type": {
4947
4681
  "array": [
4948
4682
  "u8",
4949
- 23
4683
+ 64
4950
4684
  ]
4951
4685
  }
4952
4686
  }
@@ -5436,6 +5170,15 @@
5436
5170
  1
5437
5171
  ]
5438
5172
  }
5173
+ },
5174
+ {
5175
+ "name": "_reserved_trailing",
5176
+ "type": {
5177
+ "array": [
5178
+ "u8",
5179
+ 32
5180
+ ]
5181
+ }
5439
5182
  }
5440
5183
  ]
5441
5184
  }
@@ -5656,16 +5399,32 @@
5656
5399
  "type": "u8"
5657
5400
  },
5658
5401
  {
5659
- "name": "_padding",
5402
+ "name": "_align",
5660
5403
  "docs": [
5661
- "Reserved space for future upgrades"
5404
+ "Alignment byte (keeps u16 fields below properly aligned)"
5662
5405
  ],
5663
- "type": {
5664
- "array": [
5665
- "u8",
5666
- 5
5667
- ]
5668
- }
5406
+ "type": "u8"
5407
+ },
5408
+ {
5409
+ "name": "crank_next_index",
5410
+ "docs": [
5411
+ "Next validator index to process during crank_update_scores"
5412
+ ],
5413
+ "type": "u16"
5414
+ },
5415
+ {
5416
+ "name": "last_crank_epoch",
5417
+ "docs": [
5418
+ "Last epoch when crank_update_scores completed all validators"
5419
+ ],
5420
+ "type": "u16"
5421
+ },
5422
+ {
5423
+ "name": "crank_started_epoch",
5424
+ "docs": [
5425
+ "Epoch when start_crank was called (signals an active crank cycle)"
5426
+ ],
5427
+ "type": "u16"
5669
5428
  }
5670
5429
  ]
5671
5430
  }
@@ -6325,9 +6084,13 @@
6325
6084
  "type": "bool"
6326
6085
  },
6327
6086
  {
6328
- "name": "addition_next_rank",
6087
+ "name": "unstake_allocation_started_epoch",
6329
6088
  "docs": [
6330
- "DEPRECATED see BatchOrchestrator.addition_next_rank. Always 0."
6089
+ "Epoch in which the current unstake allocation cycle was started.",
6090
+ "Used to detect stale cycles that span epoch boundaries — if the epoch",
6091
+ "has advanced, the cycle is reset and restarted to avoid resuming",
6092
+ "against a mutated validator active list.",
6093
+ "(Repurposed from the deprecated addition_next_rank field — verified 0 on the mainnet.)"
6331
6094
  ],
6332
6095
  "type": "u16"
6333
6096
  },
@@ -6428,6 +6191,34 @@
6428
6191
  {
6429
6192
  "name": "bump",
6430
6193
  "type": "u8"
6194
+ },
6195
+ {
6196
+ "name": "mev_reward",
6197
+ "docs": [
6198
+ "MEV rewards swept from main stake accounts this epoch (accumulated, reset after pay cycle)"
6199
+ ],
6200
+ "type": "u64"
6201
+ },
6202
+ {
6203
+ "name": "total_outstanding_amount_to_unstake",
6204
+ "docs": [
6205
+ "WNS-16: total amount_to_unstake across all validators at last metrics refresh.",
6206
+ "Represents allocated-but-not-yet-deactivated unstake obligations.",
6207
+ "Subtracted from unstakeable_stake in admission control to prevent double-promising."
6208
+ ],
6209
+ "type": "u64"
6210
+ },
6211
+ {
6212
+ "name": "_reserved",
6213
+ "docs": [
6214
+ "Reserved space for future use"
6215
+ ],
6216
+ "type": {
6217
+ "array": [
6218
+ "u8",
6219
+ 24
6220
+ ]
6221
+ }
6431
6222
  }
6432
6223
  ]
6433
6224
  }
@@ -6754,6 +6545,25 @@
6754
6545
  {
6755
6546
  "name": "state_transition_trigger_stake_amount",
6756
6547
  "type": "u64"
6548
+ },
6549
+ {
6550
+ "name": "mev_earned",
6551
+ "docs": [
6552
+ "MEV reward swept for this validator in the current epoch"
6553
+ ],
6554
+ "type": "u64"
6555
+ },
6556
+ {
6557
+ "name": "_reserved",
6558
+ "docs": [
6559
+ "Reserved space for future use"
6560
+ ],
6561
+ "type": {
6562
+ "array": [
6563
+ "u8",
6564
+ 24
6565
+ ]
6566
+ }
6757
6567
  }
6758
6568
  ]
6759
6569
  }