@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.
@@ -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": "activate_wire_live",
74
12
  "discriminator": [
@@ -159,74 +97,6 @@
159
97
  ],
160
98
  "args": []
161
99
  },
162
- {
163
- "name": "add_validator_v2",
164
- "docs": [
165
- "Add a new validator bbypassing the looking at leaderboard and getting validators form there"
166
- ],
167
- "discriminator": [
168
- 217,
169
- 158,
170
- 30,
171
- 19,
172
- 123,
173
- 99,
174
- 110,
175
- 30
176
- ],
177
- "accounts": [
178
- {
179
- "name": "authority",
180
- "writable": true,
181
- "signer": true
182
- },
183
- {
184
- "name": "active_list",
185
- "docs": [
186
- "Active list - will add the validator here"
187
- ],
188
- "writable": true
189
- },
190
- {
191
- "name": "validator_info",
192
- "docs": [
193
- "Create the validator info account"
194
- ],
195
- "writable": true
196
- },
197
- {
198
- "name": "validator_transient",
199
- "docs": [
200
- "Create the validator transient account"
201
- ],
202
- "writable": true
203
- },
204
- {
205
- "name": "stake_allocation_state",
206
- "docs": [
207
- "Stake allocation state - to update total_active_vpp when adding validator"
208
- ],
209
- "writable": true
210
- },
211
- {
212
- "name": "system_program"
213
- }
214
- ],
215
- "args": [
216
- {
217
- "name": "vote_account",
218
- "type": "pubkey"
219
- },
220
- {
221
- "name": "name",
222
- "type": "string"
223
- },
224
- {
225
- "name": "performance_score",
226
- "type": "u8"
227
- }
228
- ]
229
- },
230
100
  {
231
101
  "name": "admin_delete_epoch_attestations",
232
102
  "discriminator": [
@@ -347,43 +217,6 @@
347
217
  ],
348
218
  "args": []
349
219
  },
350
- {
351
- "name": "blacklist_validator",
352
- "docs": [
353
- "Blacklist a validator (user-facing, maintenance will handle graveyard movement)",
354
- "UnderPerforming is set automatically when score is updated",
355
- "Another serious emergency stop function"
356
- ],
357
- "discriminator": [
358
- 125,
359
- 42,
360
- 36,
361
- 229,
362
- 27,
363
- 38,
364
- 226,
365
- 62
366
- ],
367
- "accounts": [
368
- {
369
- "name": "validator_info",
370
- "writable": true
371
- },
372
- {
373
- "name": "stake_allocation_state",
374
- "docs": [
375
- "Stake allocation state - to update total_active_vpp when VPP changes"
376
- ],
377
- "writable": true
378
- }
379
- ],
380
- "args": [
381
- {
382
- "name": "vote_account",
383
- "type": "pubkey"
384
- }
385
- ]
386
- },
387
220
  {
388
221
  "name": "bond_role",
389
222
  "discriminator": [
@@ -752,36 +585,6 @@
752
585
  ],
753
586
  "args": []
754
587
  },
755
- {
756
- "name": "close_pending_attestations_for_test",
757
- "discriminator": [
758
- 169,
759
- 19,
760
- 172,
761
- 195,
762
- 162,
763
- 30,
764
- 203,
765
- 195
766
- ],
767
- "accounts": [
768
- {
769
- "name": "pending_attestations",
770
- "writable": true
771
- },
772
- {
773
- "name": "signer",
774
- "writable": true,
775
- "signer": true
776
- }
777
- ],
778
- "args": [
779
- {
780
- "name": "epoch_number",
781
- "type": "u32"
782
- }
783
- ]
784
- },
785
588
  {
786
589
  "name": "complete_unbond_role",
787
590
  "discriminator": [
@@ -2311,69 +2114,6 @@
2311
2114
  }
2312
2115
  ]
2313
2116
  },
2314
- {
2315
- "name": "inject_test_yield",
2316
- "discriminator": [
2317
- 55,
2318
- 41,
2319
- 251,
2320
- 228,
2321
- 58,
2322
- 191,
2323
- 103,
2324
- 248
2325
- ],
2326
- "accounts": [
2327
- {
2328
- "name": "admin",
2329
- "signer": true
2330
- },
2331
- {
2332
- "name": "global_config"
2333
- },
2334
- {
2335
- "name": "global_state",
2336
- "writable": true
2337
- },
2338
- {
2339
- "name": "distribution_state",
2340
- "writable": true
2341
- },
2342
- {
2343
- "name": "liqsol_mint",
2344
- "writable": true
2345
- },
2346
- {
2347
- "name": "pool_authority"
2348
- },
2349
- {
2350
- "name": "liqsol_pool_ata",
2351
- "writable": true
2352
- },
2353
- {
2354
- "name": "deposit_authority",
2355
- "writable": true
2356
- },
2357
- {
2358
- "name": "liqsol_program"
2359
- },
2360
- {
2361
- "name": "liqsol_mint_authority"
2362
- },
2363
- {
2364
- "name": "instructions_sysvar"
2365
- },
2366
- {
2367
- "name": "token_program"
2368
- }
2369
- ],
2370
- "args": [
2371
- {
2372
- "name": "amount",
2373
- "type": "u64"
2374
- }
2375
- ]
2376
- },
2377
2117
  {
2378
2118
  "name": "instaswap_cross_chain",
2379
2119
  "discriminator": [
@@ -2413,14 +2153,14 @@
2413
2153
  "writable": true
2414
2154
  },
2415
2155
  {
2416
- "name": "pool_authority"
2156
+ "name": "bridge_authority"
2417
2157
  },
2418
2158
  {
2419
- "name": "liqsol_pool_ata",
2159
+ "name": "bridge_vault_ata",
2420
2160
  "writable": true
2421
2161
  },
2422
2162
  {
2423
- "name": "pool_user_record",
2163
+ "name": "bridge_user_record",
2424
2164
  "writable": true
2425
2165
  },
2426
2166
  {
@@ -3625,110 +3365,16 @@
3625
3365
  "args": []
3626
3366
  },
3627
3367
  {
3628
- "name": "report_attestation",
3368
+ "name": "request_unbond_role",
3629
3369
  "discriminator": [
3630
- 93,
3631
- 18,
3632
- 185,
3633
- 16,
3634
- 85,
3635
- 253,
3636
- 20,
3637
- 143
3638
- ],
3639
- "accounts": [
3640
- {
3641
- "name": "pending_attestations",
3642
- "writable": true
3643
- },
3644
- {
3645
- "name": "opp_epoch_state",
3646
- "writable": true
3647
- },
3648
- {
3649
- "name": "signer",
3650
- "writable": true,
3651
- "signer": true
3652
- },
3653
- {
3654
- "name": "system_program"
3655
- },
3656
- {
3657
- "name": "global_config",
3658
- "docs": [
3659
- "Global config — read opp_max_attestations and opp_max_interval_secs thresholds."
3660
- ]
3661
- }
3662
- ],
3663
- "args": [
3664
- {
3665
- "name": "attestation",
3666
- "type": {
3667
- "defined": {
3668
- "name": "Attestation"
3669
- }
3670
- }
3671
- }
3672
- ]
3673
- },
3674
- {
3675
- "name": "report_validation_operator_action",
3676
- "discriminator": [
3677
- 95,
3678
- 193,
3679
- 0,
3680
- 214,
3681
- 205,
3682
- 190,
3683
- 64,
3684
- 186
3685
- ],
3686
- "accounts": [
3687
- {
3688
- "name": "pending_attestations",
3689
- "writable": true
3690
- },
3691
- {
3692
- "name": "opp_epoch_state",
3693
- "writable": true
3694
- },
3695
- {
3696
- "name": "signer",
3697
- "writable": true,
3698
- "signer": true
3699
- },
3700
- {
3701
- "name": "system_program"
3702
- },
3703
- {
3704
- "name": "global_config",
3705
- "docs": [
3706
- "Global config — read opp_max_attestations and opp_max_interval_secs thresholds."
3707
- ]
3708
- }
3709
- ],
3710
- "args": [
3711
- {
3712
- "name": "wire_account",
3713
- "type": "string"
3714
- },
3715
- {
3716
- "name": "amount",
3717
- "type": "u64"
3718
- }
3719
- ]
3720
- },
3721
- {
3722
- "name": "request_unbond_role",
3723
- "discriminator": [
3724
- 223,
3725
- 225,
3726
- 84,
3727
- 83,
3728
- 115,
3729
- 183,
3730
- 80,
3731
- 33
3370
+ 223,
3371
+ 225,
3372
+ 84,
3373
+ 83,
3374
+ 115,
3375
+ 183,
3376
+ 80,
3377
+ 33
3732
3378
  ],
3733
3379
  "accounts": [
3734
3380
  {
@@ -3914,228 +3560,6 @@
3914
3560
  }
3915
3561
  ]
3916
3562
  },
3917
- {
3918
- "name": "reset_distribution_state",
3919
- "discriminator": [
3920
- 159,
3921
- 183,
3922
- 162,
3923
- 74,
3924
- 228,
3925
- 135,
3926
- 157,
3927
- 79
3928
- ],
3929
- "accounts": [
3930
- {
3931
- "name": "admin",
3932
- "signer": true
3933
- },
3934
- {
3935
- "name": "distribution_state",
3936
- "writable": true
3937
- }
3938
- ],
3939
- "args": []
3940
- },
3941
- {
3942
- "name": "reset_distribution_user_record",
3943
- "discriminator": [
3944
- 165,
3945
- 186,
3946
- 33,
3947
- 18,
3948
- 6,
3949
- 254,
3950
- 156,
3951
- 36
3952
- ],
3953
- "accounts": [
3954
- {
3955
- "name": "admin",
3956
- "signer": true
3957
- },
3958
- {
3959
- "name": "token_account"
3960
- },
3961
- {
3962
- "name": "user_record",
3963
- "writable": true
3964
- }
3965
- ],
3966
- "args": []
3967
- },
3968
- {
3969
- "name": "reset_global_state",
3970
- "discriminator": [
3971
- 252,
3972
- 41,
3973
- 117,
3974
- 110,
3975
- 248,
3976
- 165,
3977
- 48,
3978
- 88
3979
- ],
3980
- "accounts": [
3981
- {
3982
- "name": "admin",
3983
- "signer": true
3984
- },
3985
- {
3986
- "name": "global_config"
3987
- },
3988
- {
3989
- "name": "global_state",
3990
- "writable": true
3991
- },
3992
- {
3993
- "name": "pool_authority"
3994
- },
3995
- {
3996
- "name": "bucket_authority"
3997
- },
3998
- {
3999
- "name": "liqsol_mint",
4000
- "writable": true
4001
- },
4002
- {
4003
- "name": "liqsol_pool_ata",
4004
- "writable": true
4005
- },
4006
- {
4007
- "name": "bucket_token_account",
4008
- "writable": true
4009
- },
4010
- {
4011
- "name": "token_program"
4012
- },
4013
- {
4014
- "name": "associated_token_program"
4015
- }
4016
- ],
4017
- "args": []
4018
- },
4019
- {
4020
- "name": "reset_opp_pending_for_test",
4021
- "discriminator": [
4022
- 233,
4023
- 188,
4024
- 101,
4025
- 78,
4026
- 36,
4027
- 169,
4028
- 153,
4029
- 55
4030
- ],
4031
- "accounts": [
4032
- {
4033
- "name": "opp_epoch_state",
4034
- "writable": true
4035
- },
4036
- {
4037
- "name": "signer",
4038
- "writable": true,
4039
- "signer": true
4040
- }
4041
- ],
4042
- "args": []
4043
- },
4044
- {
4045
- "name": "reset_opp_state_for_test",
4046
- "discriminator": [
4047
- 34,
4048
- 13,
4049
- 204,
4050
- 52,
4051
- 70,
4052
- 124,
4053
- 90,
4054
- 48
4055
- ],
4056
- "accounts": [
4057
- {
4058
- "name": "opp_epoch_state",
4059
- "writable": true
4060
- },
4061
- {
4062
- "name": "signer",
4063
- "writable": true,
4064
- "signer": true
4065
- }
4066
- ],
4067
- "args": []
4068
- },
4069
- {
4070
- "name": "reset_price_history",
4071
- "discriminator": [
4072
- 213,
4073
- 231,
4074
- 155,
4075
- 139,
4076
- 248,
4077
- 60,
4078
- 67,
4079
- 199
4080
- ],
4081
- "accounts": [
4082
- {
4083
- "name": "admin",
4084
- "writable": true,
4085
- "signer": true
4086
- },
4087
- {
4088
- "name": "global_config"
4089
- },
4090
- {
4091
- "name": "tranche_state",
4092
- "writable": true
4093
- },
4094
- {
4095
- "name": "price_history",
4096
- "writable": true
4097
- },
4098
- {
4099
- "name": "system_program"
4100
- }
4101
- ],
4102
- "args": []
4103
- },
4104
- {
4105
- "name": "reset_tranche_state",
4106
- "discriminator": [
4107
- 106,
4108
- 102,
4109
- 143,
4110
- 40,
4111
- 152,
4112
- 173,
4113
- 165,
4114
- 168
4115
- ],
4116
- "accounts": [
4117
- {
4118
- "name": "admin",
4119
- "writable": true,
4120
- "signer": true
4121
- },
4122
- {
4123
- "name": "global_config"
4124
- },
4125
- {
4126
- "name": "tranche_state",
4127
- "writable": true
4128
- },
4129
- {
4130
- "name": "price_history",
4131
- "writable": true
4132
- },
4133
- {
4134
- "name": "system_program"
4135
- }
4136
- ],
4137
- "args": []
4138
- },
4139
3563
  {
4140
3564
  "name": "set_admin",
4141
3565
  "discriminator": [
@@ -4190,45 +3614,6 @@
4190
3614
  ],
4191
3615
  "args": []
4192
3616
  },
4193
- {
4194
- "name": "set_last_state_change_epoch",
4195
- "docs": [
4196
- "Admin function to directly set last_state_change_epoch (useful for testing cooldowns)"
4197
- ],
4198
- "discriminator": [
4199
- 94,
4200
- 57,
4201
- 139,
4202
- 195,
4203
- 123,
4204
- 224,
4205
- 227,
4206
- 106
4207
- ],
4208
- "accounts": [
4209
- {
4210
- "name": "validator_info",
4211
- "writable": true
4212
- },
4213
- {
4214
- "name": "stake_allocation_state",
4215
- "docs": [
4216
- "Stake allocation state - to update total_active_vpp when VPP changes"
4217
- ],
4218
- "writable": true
4219
- }
4220
- ],
4221
- "args": [
4222
- {
4223
- "name": "vote_account",
4224
- "type": "pubkey"
4225
- },
4226
- {
4227
- "name": "epoch",
4228
- "type": "u16"
4229
- }
4230
- ]
4231
- },
4232
3617
  {
4233
3618
  "name": "set_paused",
4234
3619
  "discriminator": [
@@ -4770,14 +4155,14 @@
4770
4155
  "writable": true
4771
4156
  },
4772
4157
  {
4773
- "name": "pool_authority"
4158
+ "name": "bridge_authority"
4774
4159
  },
4775
4160
  {
4776
- "name": "liqsol_pool_ata",
4161
+ "name": "bridge_vault_ata",
4777
4162
  "writable": true
4778
4163
  },
4779
4164
  {
4780
- "name": "pool_user_record",
4165
+ "name": "bridge_user_record",
4781
4166
  "writable": true
4782
4167
  },
4783
4168
  {
@@ -4836,34 +4221,6 @@
4836
4221
  }
4837
4222
  ]
4838
4223
  },
4839
- {
4840
- "name": "test_clear_active_list",
4841
- "discriminator": [
4842
- 17,
4843
- 195,
4844
- 59,
4845
- 174,
4846
- 184,
4847
- 137,
4848
- 149,
4849
- 144
4850
- ],
4851
- "accounts": [
4852
- {
4853
- "name": "active_list",
4854
- "writable": true
4855
- },
4856
- {
4857
- "name": "processing_state",
4858
- "writable": true
4859
- },
4860
- {
4861
- "name": "authority",
4862
- "signer": true
4863
- }
4864
- ],
4865
- "args": []
4866
- },
4867
4224
  {
4868
4225
  "name": "update_config_bool",
4869
4226
  "discriminator": [
@@ -7370,31 +6727,76 @@
7370
6727
  }
7371
6728
  },
7372
6729
  {
7373
- "name": "PendingAttestations",
7374
- "docs": [
7375
- "`#[derive(InitSpace)]` is intentionally absent here.",
7376
- "PendingAttestations starts at a minimal fixed size (`PENDING_ATTESTATIONS_INIT_SPACE`)",
7377
- "and grows via per-attestation `realloc` as attestations are appended. Using",
7378
- "`InitSpace` would require the full maximum size to be allocated up front, which would",
7379
- "exhaust rent budgets on large epochs. The caller is responsible for calling",
7380
- "`realloc` (with a lamport top-up if needed) before each append."
7381
- ],
6730
+ "name": "PendingAttestationEntry",
6731
+ "serialization": "bytemuckunsafe",
6732
+ "repr": {
6733
+ "kind": "c"
6734
+ },
7382
6735
  "type": {
7383
6736
  "kind": "struct",
7384
6737
  "fields": [
7385
6738
  {
7386
- "name": "list",
6739
+ "name": "attestation_type",
6740
+ "type": "u16"
6741
+ },
6742
+ {
6743
+ "name": "data_len",
6744
+ "type": "u16"
6745
+ },
6746
+ {
6747
+ "name": "data",
7387
6748
  "type": {
7388
- "vec": {
7389
- "defined": {
7390
- "name": "Attestation"
7391
- }
7392
- }
6749
+ "array": [
6750
+ "u8",
6751
+ 256
6752
+ ]
7393
6753
  }
6754
+ }
6755
+ ]
6756
+ }
6757
+ },
6758
+ {
6759
+ "name": "PendingAttestations",
6760
+ "serialization": "bytemuckunsafe",
6761
+ "repr": {
6762
+ "kind": "c"
6763
+ },
6764
+ "type": {
6765
+ "kind": "struct",
6766
+ "fields": [
6767
+ {
6768
+ "name": "count",
6769
+ "type": "u16"
7394
6770
  },
7395
6771
  {
7396
- "name": "bump",
6772
+ "name": "capacity",
6773
+ "type": "u16"
6774
+ },
6775
+ {
6776
+ "name": "initialized",
7397
6777
  "type": "u8"
6778
+ },
6779
+ {
6780
+ "name": "_padding",
6781
+ "type": {
6782
+ "array": [
6783
+ "u8",
6784
+ 3
6785
+ ]
6786
+ }
6787
+ },
6788
+ {
6789
+ "name": "entries",
6790
+ "type": {
6791
+ "array": [
6792
+ {
6793
+ "defined": {
6794
+ "name": "PendingAttestationEntry"
6795
+ }
6796
+ },
6797
+ 32
6798
+ ]
6799
+ }
7398
6800
  }
7399
6801
  ]
7400
6802
  }