@wireio/stake 1.0.69 → 1.1.69

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,68 +13,6 @@ 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
- },
78
16
  {
79
17
  "name": "activateWireLive",
80
18
  "discriminator": [
@@ -165,74 +103,6 @@ export type LiqsolCore = {
165
103
  ],
166
104
  "args": []
167
105
  },
168
- {
169
- "name": "addValidatorV2",
170
- "docs": [
171
- "Add a new validator bbypassing the looking at leaderboard and getting validators form there"
172
- ],
173
- "discriminator": [
174
- 217,
175
- 158,
176
- 30,
177
- 19,
178
- 123,
179
- 99,
180
- 110,
181
- 30
182
- ],
183
- "accounts": [
184
- {
185
- "name": "authority",
186
- "writable": true,
187
- "signer": true
188
- },
189
- {
190
- "name": "activeList",
191
- "docs": [
192
- "Active list - will add the validator here"
193
- ],
194
- "writable": true
195
- },
196
- {
197
- "name": "validatorInfo",
198
- "docs": [
199
- "Create the validator info account"
200
- ],
201
- "writable": true
202
- },
203
- {
204
- "name": "validatorTransient",
205
- "docs": [
206
- "Create the validator transient account"
207
- ],
208
- "writable": true
209
- },
210
- {
211
- "name": "stakeAllocationState",
212
- "docs": [
213
- "Stake allocation state - to update total_active_vpp when adding validator"
214
- ],
215
- "writable": true
216
- },
217
- {
218
- "name": "systemProgram"
219
- }
220
- ],
221
- "args": [
222
- {
223
- "name": "voteAccount",
224
- "type": "pubkey"
225
- },
226
- {
227
- "name": "name",
228
- "type": "string"
229
- },
230
- {
231
- "name": "performanceScore",
232
- "type": "u8"
233
- }
234
- ]
235
- },
236
106
  {
237
107
  "name": "adminDeleteEpochAttestations",
238
108
  "discriminator": [
@@ -353,43 +223,6 @@ export type LiqsolCore = {
353
223
  ],
354
224
  "args": []
355
225
  },
356
- {
357
- "name": "blacklistValidator",
358
- "docs": [
359
- "Blacklist a validator (user-facing, maintenance will handle graveyard movement)",
360
- "UnderPerforming is set automatically when score is updated",
361
- "Another serious emergency stop function"
362
- ],
363
- "discriminator": [
364
- 125,
365
- 42,
366
- 36,
367
- 229,
368
- 27,
369
- 38,
370
- 226,
371
- 62
372
- ],
373
- "accounts": [
374
- {
375
- "name": "validatorInfo",
376
- "writable": true
377
- },
378
- {
379
- "name": "stakeAllocationState",
380
- "docs": [
381
- "Stake allocation state - to update total_active_vpp when VPP changes"
382
- ],
383
- "writable": true
384
- }
385
- ],
386
- "args": [
387
- {
388
- "name": "voteAccount",
389
- "type": "pubkey"
390
- }
391
- ]
392
- },
393
226
  {
394
227
  "name": "bondRole",
395
228
  "discriminator": [
@@ -758,36 +591,6 @@ export type LiqsolCore = {
758
591
  ],
759
592
  "args": []
760
593
  },
761
- {
762
- "name": "closePendingAttestationsForTest",
763
- "discriminator": [
764
- 169,
765
- 19,
766
- 172,
767
- 195,
768
- 162,
769
- 30,
770
- 203,
771
- 195
772
- ],
773
- "accounts": [
774
- {
775
- "name": "pendingAttestations",
776
- "writable": true
777
- },
778
- {
779
- "name": "signer",
780
- "writable": true,
781
- "signer": true
782
- }
783
- ],
784
- "args": [
785
- {
786
- "name": "epochNumber",
787
- "type": "u32"
788
- }
789
- ]
790
- },
791
594
  {
792
595
  "name": "completeUnbondRole",
793
596
  "discriminator": [
@@ -2317,69 +2120,6 @@ export type LiqsolCore = {
2317
2120
  }
2318
2121
  ]
2319
2122
  },
2320
- {
2321
- "name": "injectTestYield",
2322
- "discriminator": [
2323
- 55,
2324
- 41,
2325
- 251,
2326
- 228,
2327
- 58,
2328
- 191,
2329
- 103,
2330
- 248
2331
- ],
2332
- "accounts": [
2333
- {
2334
- "name": "admin",
2335
- "signer": true
2336
- },
2337
- {
2338
- "name": "globalConfig"
2339
- },
2340
- {
2341
- "name": "globalState",
2342
- "writable": true
2343
- },
2344
- {
2345
- "name": "distributionState",
2346
- "writable": true
2347
- },
2348
- {
2349
- "name": "liqsolMint",
2350
- "writable": true
2351
- },
2352
- {
2353
- "name": "poolAuthority"
2354
- },
2355
- {
2356
- "name": "liqsolPoolAta",
2357
- "writable": true
2358
- },
2359
- {
2360
- "name": "depositAuthority",
2361
- "writable": true
2362
- },
2363
- {
2364
- "name": "liqsolProgram"
2365
- },
2366
- {
2367
- "name": "liqsolMintAuthority"
2368
- },
2369
- {
2370
- "name": "instructionsSysvar"
2371
- },
2372
- {
2373
- "name": "tokenProgram"
2374
- }
2375
- ],
2376
- "args": [
2377
- {
2378
- "name": "amount",
2379
- "type": "u64"
2380
- }
2381
- ]
2382
- },
2383
2123
  {
2384
2124
  "name": "instaswapCrossChain",
2385
2125
  "discriminator": [
@@ -2419,14 +2159,14 @@ export type LiqsolCore = {
2419
2159
  "writable": true
2420
2160
  },
2421
2161
  {
2422
- "name": "poolAuthority"
2162
+ "name": "bridgeAuthority"
2423
2163
  },
2424
2164
  {
2425
- "name": "liqsolPoolAta",
2165
+ "name": "bridgeVaultAta",
2426
2166
  "writable": true
2427
2167
  },
2428
2168
  {
2429
- "name": "poolUserRecord",
2169
+ "name": "bridgeUserRecord",
2430
2170
  "writable": true
2431
2171
  },
2432
2172
  {
@@ -3631,110 +3371,16 @@ export type LiqsolCore = {
3631
3371
  "args": []
3632
3372
  },
3633
3373
  {
3634
- "name": "reportAttestation",
3374
+ "name": "requestUnbondRole",
3635
3375
  "discriminator": [
3636
- 93,
3637
- 18,
3638
- 185,
3639
- 16,
3640
- 85,
3641
- 253,
3642
- 20,
3643
- 143
3644
- ],
3645
- "accounts": [
3646
- {
3647
- "name": "pendingAttestations",
3648
- "writable": true
3649
- },
3650
- {
3651
- "name": "oppEpochState",
3652
- "writable": true
3653
- },
3654
- {
3655
- "name": "signer",
3656
- "writable": true,
3657
- "signer": true
3658
- },
3659
- {
3660
- "name": "systemProgram"
3661
- },
3662
- {
3663
- "name": "globalConfig",
3664
- "docs": [
3665
- "Global config — read opp_max_attestations and opp_max_interval_secs thresholds."
3666
- ]
3667
- }
3668
- ],
3669
- "args": [
3670
- {
3671
- "name": "attestation",
3672
- "type": {
3673
- "defined": {
3674
- "name": "attestation"
3675
- }
3676
- }
3677
- }
3678
- ]
3679
- },
3680
- {
3681
- "name": "reportValidationOperatorAction",
3682
- "discriminator": [
3683
- 95,
3684
- 193,
3685
- 0,
3686
- 214,
3687
- 205,
3688
- 190,
3689
- 64,
3690
- 186
3691
- ],
3692
- "accounts": [
3693
- {
3694
- "name": "pendingAttestations",
3695
- "writable": true
3696
- },
3697
- {
3698
- "name": "oppEpochState",
3699
- "writable": true
3700
- },
3701
- {
3702
- "name": "signer",
3703
- "writable": true,
3704
- "signer": true
3705
- },
3706
- {
3707
- "name": "systemProgram"
3708
- },
3709
- {
3710
- "name": "globalConfig",
3711
- "docs": [
3712
- "Global config — read opp_max_attestations and opp_max_interval_secs thresholds."
3713
- ]
3714
- }
3715
- ],
3716
- "args": [
3717
- {
3718
- "name": "wireAccount",
3719
- "type": "string"
3720
- },
3721
- {
3722
- "name": "amount",
3723
- "type": "u64"
3724
- }
3725
- ]
3726
- },
3727
- {
3728
- "name": "requestUnbondRole",
3729
- "discriminator": [
3730
- 223,
3731
- 225,
3732
- 84,
3733
- 83,
3734
- 115,
3735
- 183,
3736
- 80,
3737
- 33
3376
+ 223,
3377
+ 225,
3378
+ 84,
3379
+ 83,
3380
+ 115,
3381
+ 183,
3382
+ 80,
3383
+ 33
3738
3384
  ],
3739
3385
  "accounts": [
3740
3386
  {
@@ -3920,228 +3566,6 @@ export type LiqsolCore = {
3920
3566
  }
3921
3567
  ]
3922
3568
  },
3923
- {
3924
- "name": "resetDistributionState",
3925
- "discriminator": [
3926
- 159,
3927
- 183,
3928
- 162,
3929
- 74,
3930
- 228,
3931
- 135,
3932
- 157,
3933
- 79
3934
- ],
3935
- "accounts": [
3936
- {
3937
- "name": "admin",
3938
- "signer": true
3939
- },
3940
- {
3941
- "name": "distributionState",
3942
- "writable": true
3943
- }
3944
- ],
3945
- "args": []
3946
- },
3947
- {
3948
- "name": "resetDistributionUserRecord",
3949
- "discriminator": [
3950
- 165,
3951
- 186,
3952
- 33,
3953
- 18,
3954
- 6,
3955
- 254,
3956
- 156,
3957
- 36
3958
- ],
3959
- "accounts": [
3960
- {
3961
- "name": "admin",
3962
- "signer": true
3963
- },
3964
- {
3965
- "name": "tokenAccount"
3966
- },
3967
- {
3968
- "name": "userRecord",
3969
- "writable": true
3970
- }
3971
- ],
3972
- "args": []
3973
- },
3974
- {
3975
- "name": "resetGlobalState",
3976
- "discriminator": [
3977
- 252,
3978
- 41,
3979
- 117,
3980
- 110,
3981
- 248,
3982
- 165,
3983
- 48,
3984
- 88
3985
- ],
3986
- "accounts": [
3987
- {
3988
- "name": "admin",
3989
- "signer": true
3990
- },
3991
- {
3992
- "name": "globalConfig"
3993
- },
3994
- {
3995
- "name": "globalState",
3996
- "writable": true
3997
- },
3998
- {
3999
- "name": "poolAuthority"
4000
- },
4001
- {
4002
- "name": "bucketAuthority"
4003
- },
4004
- {
4005
- "name": "liqsolMint",
4006
- "writable": true
4007
- },
4008
- {
4009
- "name": "liqsolPoolAta",
4010
- "writable": true
4011
- },
4012
- {
4013
- "name": "bucketTokenAccount",
4014
- "writable": true
4015
- },
4016
- {
4017
- "name": "tokenProgram"
4018
- },
4019
- {
4020
- "name": "associatedTokenProgram"
4021
- }
4022
- ],
4023
- "args": []
4024
- },
4025
- {
4026
- "name": "resetOppPendingForTest",
4027
- "discriminator": [
4028
- 233,
4029
- 188,
4030
- 101,
4031
- 78,
4032
- 36,
4033
- 169,
4034
- 153,
4035
- 55
4036
- ],
4037
- "accounts": [
4038
- {
4039
- "name": "oppEpochState",
4040
- "writable": true
4041
- },
4042
- {
4043
- "name": "signer",
4044
- "writable": true,
4045
- "signer": true
4046
- }
4047
- ],
4048
- "args": []
4049
- },
4050
- {
4051
- "name": "resetOppStateForTest",
4052
- "discriminator": [
4053
- 34,
4054
- 13,
4055
- 204,
4056
- 52,
4057
- 70,
4058
- 124,
4059
- 90,
4060
- 48
4061
- ],
4062
- "accounts": [
4063
- {
4064
- "name": "oppEpochState",
4065
- "writable": true
4066
- },
4067
- {
4068
- "name": "signer",
4069
- "writable": true,
4070
- "signer": true
4071
- }
4072
- ],
4073
- "args": []
4074
- },
4075
- {
4076
- "name": "resetPriceHistory",
4077
- "discriminator": [
4078
- 213,
4079
- 231,
4080
- 155,
4081
- 139,
4082
- 248,
4083
- 60,
4084
- 67,
4085
- 199
4086
- ],
4087
- "accounts": [
4088
- {
4089
- "name": "admin",
4090
- "writable": true,
4091
- "signer": true
4092
- },
4093
- {
4094
- "name": "globalConfig"
4095
- },
4096
- {
4097
- "name": "trancheState",
4098
- "writable": true
4099
- },
4100
- {
4101
- "name": "priceHistory",
4102
- "writable": true
4103
- },
4104
- {
4105
- "name": "systemProgram"
4106
- }
4107
- ],
4108
- "args": []
4109
- },
4110
- {
4111
- "name": "resetTrancheState",
4112
- "discriminator": [
4113
- 106,
4114
- 102,
4115
- 143,
4116
- 40,
4117
- 152,
4118
- 173,
4119
- 165,
4120
- 168
4121
- ],
4122
- "accounts": [
4123
- {
4124
- "name": "admin",
4125
- "writable": true,
4126
- "signer": true
4127
- },
4128
- {
4129
- "name": "globalConfig"
4130
- },
4131
- {
4132
- "name": "trancheState",
4133
- "writable": true
4134
- },
4135
- {
4136
- "name": "priceHistory",
4137
- "writable": true
4138
- },
4139
- {
4140
- "name": "systemProgram"
4141
- }
4142
- ],
4143
- "args": []
4144
- },
4145
3569
  {
4146
3570
  "name": "setAdmin",
4147
3571
  "discriminator": [
@@ -4196,45 +3620,6 @@ export type LiqsolCore = {
4196
3620
  ],
4197
3621
  "args": []
4198
3622
  },
4199
- {
4200
- "name": "setLastStateChangeEpoch",
4201
- "docs": [
4202
- "Admin function to directly set last_state_change_epoch (useful for testing cooldowns)"
4203
- ],
4204
- "discriminator": [
4205
- 94,
4206
- 57,
4207
- 139,
4208
- 195,
4209
- 123,
4210
- 224,
4211
- 227,
4212
- 106
4213
- ],
4214
- "accounts": [
4215
- {
4216
- "name": "validatorInfo",
4217
- "writable": true
4218
- },
4219
- {
4220
- "name": "stakeAllocationState",
4221
- "docs": [
4222
- "Stake allocation state - to update total_active_vpp when VPP changes"
4223
- ],
4224
- "writable": true
4225
- }
4226
- ],
4227
- "args": [
4228
- {
4229
- "name": "voteAccount",
4230
- "type": "pubkey"
4231
- },
4232
- {
4233
- "name": "epoch",
4234
- "type": "u16"
4235
- }
4236
- ]
4237
- },
4238
3623
  {
4239
3624
  "name": "setPaused",
4240
3625
  "discriminator": [
@@ -4776,14 +4161,14 @@ export type LiqsolCore = {
4776
4161
  "writable": true
4777
4162
  },
4778
4163
  {
4779
- "name": "poolAuthority"
4164
+ "name": "bridgeAuthority"
4780
4165
  },
4781
4166
  {
4782
- "name": "liqsolPoolAta",
4167
+ "name": "bridgeVaultAta",
4783
4168
  "writable": true
4784
4169
  },
4785
4170
  {
4786
- "name": "poolUserRecord",
4171
+ "name": "bridgeUserRecord",
4787
4172
  "writable": true
4788
4173
  },
4789
4174
  {
@@ -4842,34 +4227,6 @@ export type LiqsolCore = {
4842
4227
  }
4843
4228
  ]
4844
4229
  },
4845
- {
4846
- "name": "testClearActiveList",
4847
- "discriminator": [
4848
- 17,
4849
- 195,
4850
- 59,
4851
- 174,
4852
- 184,
4853
- 137,
4854
- 149,
4855
- 144
4856
- ],
4857
- "accounts": [
4858
- {
4859
- "name": "activeList",
4860
- "writable": true
4861
- },
4862
- {
4863
- "name": "processingState",
4864
- "writable": true
4865
- },
4866
- {
4867
- "name": "authority",
4868
- "signer": true
4869
- }
4870
- ],
4871
- "args": []
4872
- },
4873
4230
  {
4874
4231
  "name": "updateConfigBool",
4875
4232
  "discriminator": [
@@ -7376,31 +6733,76 @@ export type LiqsolCore = {
7376
6733
  }
7377
6734
  },
7378
6735
  {
7379
- "name": "pendingAttestations",
7380
- "docs": [
7381
- "`#[derive(InitSpace)]` is intentionally absent here.",
7382
- "PendingAttestations starts at a minimal fixed size (`PENDING_ATTESTATIONS_INIT_SPACE`)",
7383
- "and grows via per-attestation `realloc` as attestations are appended. Using",
7384
- "`InitSpace` would require the full maximum size to be allocated up front, which would",
7385
- "exhaust rent budgets on large epochs. The caller is responsible for calling",
7386
- "`realloc` (with a lamport top-up if needed) before each append."
7387
- ],
6736
+ "name": "pendingAttestationEntry",
6737
+ "serialization": "bytemuckunsafe",
6738
+ "repr": {
6739
+ "kind": "c"
6740
+ },
7388
6741
  "type": {
7389
6742
  "kind": "struct",
7390
6743
  "fields": [
7391
6744
  {
7392
- "name": "list",
6745
+ "name": "attestationType",
6746
+ "type": "u16"
6747
+ },
6748
+ {
6749
+ "name": "dataLen",
6750
+ "type": "u16"
6751
+ },
6752
+ {
6753
+ "name": "data",
7393
6754
  "type": {
7394
- "vec": {
7395
- "defined": {
7396
- "name": "attestation"
7397
- }
7398
- }
6755
+ "array": [
6756
+ "u8",
6757
+ 256
6758
+ ]
7399
6759
  }
6760
+ }
6761
+ ]
6762
+ }
6763
+ },
6764
+ {
6765
+ "name": "pendingAttestations",
6766
+ "serialization": "bytemuckunsafe",
6767
+ "repr": {
6768
+ "kind": "c"
6769
+ },
6770
+ "type": {
6771
+ "kind": "struct",
6772
+ "fields": [
6773
+ {
6774
+ "name": "count",
6775
+ "type": "u16"
7400
6776
  },
7401
6777
  {
7402
- "name": "bump",
6778
+ "name": "capacity",
6779
+ "type": "u16"
6780
+ },
6781
+ {
6782
+ "name": "initialized",
7403
6783
  "type": "u8"
6784
+ },
6785
+ {
6786
+ "name": "padding",
6787
+ "type": {
6788
+ "array": [
6789
+ "u8",
6790
+ 3
6791
+ ]
6792
+ }
6793
+ },
6794
+ {
6795
+ "name": "entries",
6796
+ "type": {
6797
+ "array": [
6798
+ {
6799
+ "defined": {
6800
+ "name": "pendingAttestationEntry"
6801
+ }
6802
+ },
6803
+ 32
6804
+ ]
6805
+ }
7404
6806
  }
7405
6807
  ]
7406
6808
  }