@wireio/stake 2.7.0 → 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.
@@ -13,6 +13,68 @@ export type LiqsolCore = {
13
13
  "description": "Created with Anchor"
14
14
  },
15
15
  "instructions": [
16
+ {
17
+ "name": "accumulateUnstakeRequest",
18
+ "docs": [
19
+ "Accumulate unstake requests to be processed in next allocation cycle",
20
+ "Multiple requests can be accumulated before calculating allocations",
21
+ "Returns the target epoch when this unstake request will be processed",
22
+ "We should not be able to call this without development feature enabled",
23
+ ""
24
+ ],
25
+ "discriminator": [
26
+ 24,
27
+ 73,
28
+ 69,
29
+ 139,
30
+ 36,
31
+ 209,
32
+ 105,
33
+ 252
34
+ ],
35
+ "accounts": [
36
+ {
37
+ "name": "admin",
38
+ "writable": true,
39
+ "signer": true
40
+ },
41
+ {
42
+ "name": "stakeAllocationState",
43
+ "docs": [
44
+ "Stake allocation state - to accumulate pending unstake requests"
45
+ ],
46
+ "writable": true
47
+ },
48
+ {
49
+ "name": "stakeMetrics",
50
+ "docs": [
51
+ "Stake metrics - to validate total unstake amount is available"
52
+ ]
53
+ },
54
+ {
55
+ "name": "maintenanceLedger",
56
+ "docs": [
57
+ "Maintenance ledger - to determine target processing epoch"
58
+ ]
59
+ },
60
+ {
61
+ "name": "globalConfig",
62
+ "docs": [
63
+ "Global config for min_unstake_request setting"
64
+ ]
65
+ },
66
+ {
67
+ "name": "clock"
68
+ }
69
+ ],
70
+ "args": [
71
+ {
72
+ "name": "amount",
73
+ "type": "u64"
74
+ }
75
+ ],
76
+ "returns": "u64"
77
+ },
16
78
  {
17
79
  "name": "addTopPerformersBatch",
18
80
  "docs": [
@@ -65,6 +127,74 @@ export type LiqsolCore = {
65
127
  ],
66
128
  "args": []
67
129
  },
130
+ {
131
+ "name": "addValidatorV2",
132
+ "docs": [
133
+ "Add a new validator bbypassing the looking at leaderboard and getting validators form there"
134
+ ],
135
+ "discriminator": [
136
+ 217,
137
+ 158,
138
+ 30,
139
+ 19,
140
+ 123,
141
+ 99,
142
+ 110,
143
+ 30
144
+ ],
145
+ "accounts": [
146
+ {
147
+ "name": "authority",
148
+ "writable": true,
149
+ "signer": true
150
+ },
151
+ {
152
+ "name": "activeList",
153
+ "docs": [
154
+ "Active list - will add the validator here"
155
+ ],
156
+ "writable": true
157
+ },
158
+ {
159
+ "name": "validatorInfo",
160
+ "docs": [
161
+ "Create the validator info account"
162
+ ],
163
+ "writable": true
164
+ },
165
+ {
166
+ "name": "validatorTransient",
167
+ "docs": [
168
+ "Create the validator transient account"
169
+ ],
170
+ "writable": true
171
+ },
172
+ {
173
+ "name": "stakeAllocationState",
174
+ "docs": [
175
+ "Stake allocation state - to update total_active_vpp when adding validator"
176
+ ],
177
+ "writable": true
178
+ },
179
+ {
180
+ "name": "systemProgram"
181
+ }
182
+ ],
183
+ "args": [
184
+ {
185
+ "name": "voteAccount",
186
+ "type": "pubkey"
187
+ },
188
+ {
189
+ "name": "name",
190
+ "type": "string"
191
+ },
192
+ {
193
+ "name": "performanceScore",
194
+ "type": "u8"
195
+ }
196
+ ]
197
+ },
68
198
  {
69
199
  "name": "adminForceUnbondRole",
70
200
  "discriminator": [
@@ -148,6 +278,43 @@ export type LiqsolCore = {
148
278
  ],
149
279
  "args": []
150
280
  },
281
+ {
282
+ "name": "blacklistValidator",
283
+ "docs": [
284
+ "Blacklist a validator (user-facing, maintenance will handle graveyard movement)",
285
+ "UnderPerforming is set automatically when score is updated",
286
+ "Another serious emergency stop function"
287
+ ],
288
+ "discriminator": [
289
+ 125,
290
+ 42,
291
+ 36,
292
+ 229,
293
+ 27,
294
+ 38,
295
+ 226,
296
+ 62
297
+ ],
298
+ "accounts": [
299
+ {
300
+ "name": "validatorInfo",
301
+ "writable": true
302
+ },
303
+ {
304
+ "name": "stakeAllocationState",
305
+ "docs": [
306
+ "Stake allocation state - to update total_active_vpp when VPP changes"
307
+ ],
308
+ "writable": true
309
+ }
310
+ ],
311
+ "args": [
312
+ {
313
+ "name": "voteAccount",
314
+ "type": "pubkey"
315
+ }
316
+ ]
317
+ },
151
318
  {
152
319
  "name": "bondRole",
153
320
  "discriminator": [
@@ -370,6 +537,9 @@ export type LiqsolCore = {
370
537
  },
371
538
  {
372
539
  "name": "tokenProgram"
540
+ },
541
+ {
542
+ "name": "systemProgram"
373
543
  }
374
544
  ],
375
545
  "args": []
@@ -1773,6 +1943,69 @@ export type LiqsolCore = {
1773
1943
  }
1774
1944
  ]
1775
1945
  },
1946
+ {
1947
+ "name": "injectTestYield",
1948
+ "discriminator": [
1949
+ 55,
1950
+ 41,
1951
+ 251,
1952
+ 228,
1953
+ 58,
1954
+ 191,
1955
+ 103,
1956
+ 248
1957
+ ],
1958
+ "accounts": [
1959
+ {
1960
+ "name": "admin",
1961
+ "signer": true
1962
+ },
1963
+ {
1964
+ "name": "globalConfig"
1965
+ },
1966
+ {
1967
+ "name": "globalState",
1968
+ "writable": true
1969
+ },
1970
+ {
1971
+ "name": "distributionState",
1972
+ "writable": true
1973
+ },
1974
+ {
1975
+ "name": "liqsolMint",
1976
+ "writable": true
1977
+ },
1978
+ {
1979
+ "name": "poolAuthority"
1980
+ },
1981
+ {
1982
+ "name": "liqsolPoolAta",
1983
+ "writable": true
1984
+ },
1985
+ {
1986
+ "name": "depositAuthority",
1987
+ "writable": true
1988
+ },
1989
+ {
1990
+ "name": "liqsolProgram"
1991
+ },
1992
+ {
1993
+ "name": "liqsolMintAuthority"
1994
+ },
1995
+ {
1996
+ "name": "instructionsSysvar"
1997
+ },
1998
+ {
1999
+ "name": "tokenProgram"
2000
+ }
2001
+ ],
2002
+ "args": [
2003
+ {
2004
+ "name": "amount",
2005
+ "type": "u64"
2006
+ }
2007
+ ]
2008
+ },
1776
2009
  {
1777
2010
  "name": "mergeActivatingStakes",
1778
2011
  "docs": [
@@ -1948,6 +2181,43 @@ export type LiqsolCore = {
1948
2181
  }
1949
2182
  ]
1950
2183
  },
2184
+ {
2185
+ "name": "migrateUserRecord",
2186
+ "discriminator": [
2187
+ 6,
2188
+ 118,
2189
+ 249,
2190
+ 178,
2191
+ 209,
2192
+ 106,
2193
+ 197,
2194
+ 25
2195
+ ],
2196
+ "accounts": [
2197
+ {
2198
+ "name": "admin",
2199
+ "writable": true,
2200
+ "signer": true
2201
+ },
2202
+ {
2203
+ "name": "globalConfig"
2204
+ },
2205
+ {
2206
+ "name": "userAta"
2207
+ },
2208
+ {
2209
+ "name": "userRecord",
2210
+ "writable": true
2211
+ },
2212
+ {
2213
+ "name": "distributionState"
2214
+ },
2215
+ {
2216
+ "name": "systemProgram"
2217
+ }
2218
+ ],
2219
+ "args": []
2220
+ },
1951
2221
  {
1952
2222
  "name": "processGraveyardValidatorsBatch",
1953
2223
  "docs": [
@@ -3001,6 +3271,143 @@ export type LiqsolCore = {
3001
3271
  }
3002
3272
  ]
3003
3273
  },
3274
+ {
3275
+ "name": "resetDistributionState",
3276
+ "discriminator": [
3277
+ 159,
3278
+ 183,
3279
+ 162,
3280
+ 74,
3281
+ 228,
3282
+ 135,
3283
+ 157,
3284
+ 79
3285
+ ],
3286
+ "accounts": [
3287
+ {
3288
+ "name": "admin",
3289
+ "signer": true
3290
+ },
3291
+ {
3292
+ "name": "distributionState",
3293
+ "writable": true
3294
+ }
3295
+ ],
3296
+ "args": []
3297
+ },
3298
+ {
3299
+ "name": "resetGlobalState",
3300
+ "discriminator": [
3301
+ 252,
3302
+ 41,
3303
+ 117,
3304
+ 110,
3305
+ 248,
3306
+ 165,
3307
+ 48,
3308
+ 88
3309
+ ],
3310
+ "accounts": [
3311
+ {
3312
+ "name": "admin",
3313
+ "signer": true
3314
+ },
3315
+ {
3316
+ "name": "globalConfig"
3317
+ },
3318
+ {
3319
+ "name": "globalState",
3320
+ "writable": true
3321
+ },
3322
+ {
3323
+ "name": "poolAuthority"
3324
+ },
3325
+ {
3326
+ "name": "liqsolMint"
3327
+ },
3328
+ {
3329
+ "name": "liqsolPoolAta",
3330
+ "writable": true
3331
+ },
3332
+ {
3333
+ "name": "tokenProgram"
3334
+ },
3335
+ {
3336
+ "name": "associatedTokenProgram"
3337
+ }
3338
+ ],
3339
+ "args": []
3340
+ },
3341
+ {
3342
+ "name": "resetPriceHistory",
3343
+ "discriminator": [
3344
+ 213,
3345
+ 231,
3346
+ 155,
3347
+ 139,
3348
+ 248,
3349
+ 60,
3350
+ 67,
3351
+ 199
3352
+ ],
3353
+ "accounts": [
3354
+ {
3355
+ "name": "admin",
3356
+ "writable": true,
3357
+ "signer": true
3358
+ },
3359
+ {
3360
+ "name": "globalConfig"
3361
+ },
3362
+ {
3363
+ "name": "trancheState",
3364
+ "writable": true
3365
+ },
3366
+ {
3367
+ "name": "priceHistory",
3368
+ "writable": true
3369
+ },
3370
+ {
3371
+ "name": "systemProgram"
3372
+ }
3373
+ ],
3374
+ "args": []
3375
+ },
3376
+ {
3377
+ "name": "resetTrancheState",
3378
+ "discriminator": [
3379
+ 106,
3380
+ 102,
3381
+ 143,
3382
+ 40,
3383
+ 152,
3384
+ 173,
3385
+ 165,
3386
+ 168
3387
+ ],
3388
+ "accounts": [
3389
+ {
3390
+ "name": "admin",
3391
+ "writable": true,
3392
+ "signer": true
3393
+ },
3394
+ {
3395
+ "name": "globalConfig"
3396
+ },
3397
+ {
3398
+ "name": "trancheState",
3399
+ "writable": true
3400
+ },
3401
+ {
3402
+ "name": "priceHistory",
3403
+ "writable": true
3404
+ },
3405
+ {
3406
+ "name": "systemProgram"
3407
+ }
3408
+ ],
3409
+ "args": []
3410
+ },
3004
3411
  {
3005
3412
  "name": "setAdmin",
3006
3413
  "discriminator": [
@@ -3055,6 +3462,45 @@ export type LiqsolCore = {
3055
3462
  ],
3056
3463
  "args": []
3057
3464
  },
3465
+ {
3466
+ "name": "setLastStateChangeEpoch",
3467
+ "docs": [
3468
+ "Admin function to directly set last_state_change_epoch (useful for testing cooldowns)"
3469
+ ],
3470
+ "discriminator": [
3471
+ 94,
3472
+ 57,
3473
+ 139,
3474
+ 195,
3475
+ 123,
3476
+ 224,
3477
+ 227,
3478
+ 106
3479
+ ],
3480
+ "accounts": [
3481
+ {
3482
+ "name": "validatorInfo",
3483
+ "writable": true
3484
+ },
3485
+ {
3486
+ "name": "stakeAllocationState",
3487
+ "docs": [
3488
+ "Stake allocation state - to update total_active_vpp when VPP changes"
3489
+ ],
3490
+ "writable": true
3491
+ }
3492
+ ],
3493
+ "args": [
3494
+ {
3495
+ "name": "voteAccount",
3496
+ "type": "pubkey"
3497
+ },
3498
+ {
3499
+ "name": "epoch",
3500
+ "type": "u16"
3501
+ }
3502
+ ]
3503
+ },
3058
3504
  {
3059
3505
  "name": "setPaused",
3060
3506
  "discriminator": [
@@ -3543,6 +3989,34 @@ export type LiqsolCore = {
3543
3989
  }
3544
3990
  ]
3545
3991
  },
3992
+ {
3993
+ "name": "testClearActiveList",
3994
+ "discriminator": [
3995
+ 17,
3996
+ 195,
3997
+ 59,
3998
+ 174,
3999
+ 184,
4000
+ 137,
4001
+ 149,
4002
+ 144
4003
+ ],
4004
+ "accounts": [
4005
+ {
4006
+ "name": "activeList",
4007
+ "writable": true
4008
+ },
4009
+ {
4010
+ "name": "processingState",
4011
+ "writable": true
4012
+ },
4013
+ {
4014
+ "name": "authority",
4015
+ "signer": true
4016
+ }
4017
+ ],
4018
+ "args": []
4019
+ },
3546
4020
  {
3547
4021
  "name": "updateConfigBool",
3548
4022
  "discriminator": [
@@ -4465,12 +4939,20 @@ export type LiqsolCore = {
4465
4939
  ],
4466
4940
  "type": "u8"
4467
4941
  },
4942
+ {
4943
+ "name": "aggregationStartedEpoch",
4944
+ "docs": [
4945
+ "The epoch when the current aggregation batch started.",
4946
+ "Prevents stale partial accumulators from being committed if an epoch boundary is crossed mid-aggregation."
4947
+ ],
4948
+ "type": "u64"
4949
+ },
4468
4950
  {
4469
4951
  "name": "reserved",
4470
4952
  "type": {
4471
4953
  "array": [
4472
4954
  "u8",
4473
- 31
4955
+ 23
4474
4956
  ]
4475
4957
  }
4476
4958
  }
@@ -6133,6 +6615,13 @@ export type LiqsolCore = {
6133
6615
  {
6134
6616
  "name": "bump",
6135
6617
  "type": "u8"
6618
+ },
6619
+ {
6620
+ "name": "trackedBalance",
6621
+ "docs": [
6622
+ "Last reconciled liqSOL token balance for this user ATA"
6623
+ ],
6624
+ "type": "u64"
6136
6625
  }
6137
6626
  ]
6138
6627
  }