@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.
@@ -114,11 +114,18 @@ export type TransferHook = {
114
114
  96
115
115
  ],
116
116
  "accounts": [
117
+ {
118
+ "name": "admin",
119
+ "signer": true
120
+ },
117
121
  {
118
122
  "name": "payer",
119
123
  "writable": true,
120
124
  "signer": true
121
125
  },
126
+ {
127
+ "name": "globalConfig"
128
+ },
122
129
  {
123
130
  "name": "extraAccountMetaList",
124
131
  "writable": true
@@ -149,6 +156,19 @@ export type TransferHook = {
149
156
  4,
150
157
  103
151
158
  ]
159
+ },
160
+ {
161
+ "name": "globalConfig",
162
+ "discriminator": [
163
+ 149,
164
+ 8,
165
+ 156,
166
+ 202,
167
+ 160,
168
+ 252,
169
+ 176,
170
+ 217
171
+ ]
152
172
  }
153
173
  ],
154
174
  "errors": [
@@ -168,6 +188,11 @@ export type TransferHook = {
168
188
  "code": 6003,
169
189
  "name": "cannotTransferToBucket",
170
190
  "msg": "Cannot transfer liqSOL directly to bucket - only protocol minting is allowed"
191
+ },
192
+ {
193
+ "code": 6004,
194
+ "name": "unauthorized",
195
+ "msg": "Unauthorized: caller is not the admin"
171
196
  }
172
197
  ],
173
198
  "types": [
@@ -232,6 +257,229 @@ export type TransferHook = {
232
257
  }
233
258
  ]
234
259
  }
260
+ },
261
+ {
262
+ "name": "globalConfig",
263
+ "docs": [
264
+ "Zero-copy global config PDA"
265
+ ],
266
+ "serialization": "bytemuckunsafe",
267
+ "repr": {
268
+ "kind": "c"
269
+ },
270
+ "type": {
271
+ "kind": "struct",
272
+ "fields": [
273
+ {
274
+ "name": "bump",
275
+ "type": "u8"
276
+ },
277
+ {
278
+ "name": "padding",
279
+ "type": {
280
+ "array": [
281
+ "u8",
282
+ 7
283
+ ]
284
+ }
285
+ },
286
+ {
287
+ "name": "admin",
288
+ "type": "pubkey"
289
+ },
290
+ {
291
+ "name": "cranky",
292
+ "type": "pubkey"
293
+ },
294
+ {
295
+ "name": "reservedPubkey",
296
+ "type": {
297
+ "array": [
298
+ "pubkey",
299
+ 1
300
+ ]
301
+ }
302
+ },
303
+ {
304
+ "name": "minUserDeposit",
305
+ "docs": [
306
+ "Minimum SOL amount a user can deposit"
307
+ ],
308
+ "type": "u64"
309
+ },
310
+ {
311
+ "name": "minUnstakeRequest",
312
+ "docs": [
313
+ "Minimum SOL amount for an unstake/withdrawal request"
314
+ ],
315
+ "type": "u64"
316
+ },
317
+ {
318
+ "name": "minRebalanceStakeDelta",
319
+ "docs": [
320
+ "Minimum stake delta to trigger a stake rebalance order"
321
+ ],
322
+ "type": "u64"
323
+ },
324
+ {
325
+ "name": "minRebalanceUnstakeDelta",
326
+ "docs": [
327
+ "Minimum unstake delta to trigger an unstake rebalance order"
328
+ ],
329
+ "type": "u64"
330
+ },
331
+ {
332
+ "name": "transientThreshold",
333
+ "docs": [
334
+ "Minimum transient stake to include in effective stake calculations"
335
+ ],
336
+ "type": "u64"
337
+ },
338
+ {
339
+ "name": "minLateEpochSlotGate",
340
+ "docs": [
341
+ "Minimum slots that must have elapsed in the epoch before late epoch operations can execute"
342
+ ],
343
+ "type": "u64"
344
+ },
345
+ {
346
+ "name": "reservedU64",
347
+ "type": {
348
+ "array": [
349
+ "u64",
350
+ 2
351
+ ]
352
+ }
353
+ },
354
+ {
355
+ "name": "cooldownEpochs",
356
+ "docs": [
357
+ "Epochs a validator must wait in the graveyard before it is booted. This begins after the last recorded state change"
358
+ ],
359
+ "type": "u16"
360
+ },
361
+ {
362
+ "name": "depositFeeMultiplier",
363
+ "docs": [
364
+ "Multiplier for deposit fee calculation, this would be average \"pay rate x number of epochs we expect the stake to warm up\""
365
+ ],
366
+ "type": "u16"
367
+ },
368
+ {
369
+ "name": "minVppEntry",
370
+ "docs": [
371
+ "Minimum VPP score required to enter the active validator set, this is a fall back for when the val set is really small"
372
+ ],
373
+ "type": "u16"
374
+ },
375
+ {
376
+ "name": "minVppExit",
377
+ "docs": [
378
+ "VPP score threshold below which a validator is removed from active set, again a fall back"
379
+ ],
380
+ "type": "u16"
381
+ },
382
+ {
383
+ "name": "tinyNetworkThreshold",
384
+ "docs": [
385
+ "Max validators for \"tiny\" network band (uses fixed VPP thresholds) as above"
386
+ ],
387
+ "type": "u16"
388
+ },
389
+ {
390
+ "name": "smallNetworkThreshold",
391
+ "docs": [
392
+ "Max validators for \"small\" network band (uses percentile-based selection)"
393
+ ],
394
+ "type": "u16"
395
+ },
396
+ {
397
+ "name": "mediumNetworkThreshold",
398
+ "docs": [
399
+ "Max validators for \"medium\" network band (uses percentile-based selection)"
400
+ ],
401
+ "type": "u16"
402
+ },
403
+ {
404
+ "name": "largeNetworkEntryRank",
405
+ "docs": [
406
+ "Fixed rank threshold to enter active set in large networks (0-indexed)"
407
+ ],
408
+ "type": "u16"
409
+ },
410
+ {
411
+ "name": "largeNetworkExitRank",
412
+ "docs": [
413
+ "Fixed rank threshold to exit active set in large networks (0-indexed)"
414
+ ],
415
+ "type": "u16"
416
+ },
417
+ {
418
+ "name": "reservedU16",
419
+ "type": {
420
+ "array": [
421
+ "u16",
422
+ 3
423
+ ]
424
+ }
425
+ },
426
+ {
427
+ "name": "smallNetworkEntryPercent",
428
+ "docs": [
429
+ "Percentile rank required to enter active set in small networks"
430
+ ],
431
+ "type": "u8"
432
+ },
433
+ {
434
+ "name": "smallNetworkExitPercent",
435
+ "docs": [
436
+ "Percentile rank below which validators exit in small networks"
437
+ ],
438
+ "type": "u8"
439
+ },
440
+ {
441
+ "name": "mediumNetworkEntryPercent",
442
+ "docs": [
443
+ "Percentile rank required to enter active set in medium networks"
444
+ ],
445
+ "type": "u8"
446
+ },
447
+ {
448
+ "name": "mediumNetworkExitPercent",
449
+ "docs": [
450
+ "Percentile rank below which validators exit in medium networks"
451
+ ],
452
+ "type": "u8"
453
+ },
454
+ {
455
+ "name": "reservedU8",
456
+ "type": {
457
+ "array": [
458
+ "u8",
459
+ 2
460
+ ]
461
+ }
462
+ },
463
+ {
464
+ "name": "featureFlags",
465
+ "docs": [
466
+ "Bit 0: DepositsEnabled, Bit 1: WithdrawalsEnabled, Bit 2: ClaimWithdrawalsEnabled,",
467
+ "Bit 3: ProcessStakeOrdersEnabled, Bit 4: ProcessUnstakeOrdersEnabled,",
468
+ "Bit 5: ProcessPayCycleEnabled, Bit 6: RebalancingEnabled, Bits 7-15: Reserved"
469
+ ],
470
+ "type": "u16"
471
+ },
472
+ {
473
+ "name": "reservedFlags",
474
+ "type": {
475
+ "array": [
476
+ "u16",
477
+ 1
478
+ ]
479
+ }
480
+ }
481
+ ]
482
+ }
235
483
  }
236
484
  ]
237
485
  };