@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.
@@ -375,6 +375,9 @@ var instructions$7 = [
375
375
  },
376
376
  {
377
377
  name: "token_program"
378
+ },
379
+ {
380
+ name: "system_program"
378
381
  }
379
382
  ],
380
383
  args: [
@@ -1978,6 +1981,44 @@ var instructions$7 = [
1978
1981
  }
1979
1982
  ]
1980
1983
  },
1984
+ {
1985
+ name: "migrate_user_record",
1986
+ discriminator: [
1987
+ 6,
1988
+ 118,
1989
+ 249,
1990
+ 178,
1991
+ 209,
1992
+ 106,
1993
+ 197,
1994
+ 25
1995
+ ],
1996
+ accounts: [
1997
+ {
1998
+ name: "admin",
1999
+ writable: true,
2000
+ signer: true
2001
+ },
2002
+ {
2003
+ name: "global_config"
2004
+ },
2005
+ {
2006
+ name: "user_ata"
2007
+ },
2008
+ {
2009
+ name: "user_record",
2010
+ writable: true
2011
+ },
2012
+ {
2013
+ name: "distribution_state"
2014
+ },
2015
+ {
2016
+ name: "system_program"
2017
+ }
2018
+ ],
2019
+ args: [
2020
+ ]
2021
+ },
1981
2022
  {
1982
2023
  name: "process_graveyard_validators_batch",
1983
2024
  docs: [
@@ -4515,12 +4556,20 @@ var types$9 = [
4515
4556
  ],
4516
4557
  type: "u8"
4517
4558
  },
4559
+ {
4560
+ name: "aggregation_started_epoch",
4561
+ docs: [
4562
+ "The epoch when the current aggregation batch started.",
4563
+ "Prevents stale partial accumulators from being committed if an epoch boundary is crossed mid-aggregation."
4564
+ ],
4565
+ type: "u64"
4566
+ },
4518
4567
  {
4519
4568
  name: "_reserved",
4520
4569
  type: {
4521
4570
  array: [
4522
4571
  "u8",
4523
- 31
4572
+ 23
4524
4573
  ]
4525
4574
  }
4526
4575
  }
@@ -6183,6 +6232,13 @@ var types$9 = [
6183
6232
  {
6184
6233
  name: "bump",
6185
6234
  type: "u8"
6235
+ },
6236
+ {
6237
+ name: "tracked_balance",
6238
+ docs: [
6239
+ "Last reconciled liqSOL token balance for this user ATA"
6240
+ ],
6241
+ type: "u64"
6186
6242
  }
6187
6243
  ]
6188
6244
  }
@@ -7605,11 +7661,18 @@ var instructions$4 = [
7605
7661
  96
7606
7662
  ],
7607
7663
  accounts: [
7664
+ {
7665
+ name: "admin",
7666
+ signer: true
7667
+ },
7608
7668
  {
7609
7669
  name: "payer",
7610
7670
  writable: true,
7611
7671
  signer: true
7612
7672
  },
7673
+ {
7674
+ name: "global_config"
7675
+ },
7613
7676
  {
7614
7677
  name: "extra_account_meta_list",
7615
7678
  writable: true
@@ -7641,6 +7704,19 @@ var accounts$3 = [
7641
7704
  4,
7642
7705
  103
7643
7706
  ]
7707
+ },
7708
+ {
7709
+ name: "GlobalConfig",
7710
+ discriminator: [
7711
+ 149,
7712
+ 8,
7713
+ 156,
7714
+ 202,
7715
+ 160,
7716
+ 252,
7717
+ 176,
7718
+ 217
7719
+ ]
7644
7720
  }
7645
7721
  ];
7646
7722
  var errors$4 = [
@@ -7660,6 +7736,11 @@ var errors$4 = [
7660
7736
  code: 6003,
7661
7737
  name: "CannotTransferToBucket",
7662
7738
  msg: "Cannot transfer liqSOL directly to bucket - only protocol minting is allowed"
7739
+ },
7740
+ {
7741
+ code: 6004,
7742
+ name: "Unauthorized",
7743
+ msg: "Unauthorized: caller is not the admin"
7663
7744
  }
7664
7745
  ];
7665
7746
  var types$6 = [
@@ -7724,6 +7805,229 @@ var types$6 = [
7724
7805
  }
7725
7806
  ]
7726
7807
  }
7808
+ },
7809
+ {
7810
+ name: "GlobalConfig",
7811
+ docs: [
7812
+ "Zero-copy global config PDA"
7813
+ ],
7814
+ serialization: "bytemuckunsafe",
7815
+ repr: {
7816
+ kind: "c"
7817
+ },
7818
+ type: {
7819
+ kind: "struct",
7820
+ fields: [
7821
+ {
7822
+ name: "bump",
7823
+ type: "u8"
7824
+ },
7825
+ {
7826
+ name: "_padding",
7827
+ type: {
7828
+ array: [
7829
+ "u8",
7830
+ 7
7831
+ ]
7832
+ }
7833
+ },
7834
+ {
7835
+ name: "admin",
7836
+ type: "pubkey"
7837
+ },
7838
+ {
7839
+ name: "cranky",
7840
+ type: "pubkey"
7841
+ },
7842
+ {
7843
+ name: "_reserved_pubkey",
7844
+ type: {
7845
+ array: [
7846
+ "pubkey",
7847
+ 1
7848
+ ]
7849
+ }
7850
+ },
7851
+ {
7852
+ name: "min_user_deposit",
7853
+ docs: [
7854
+ "Minimum SOL amount a user can deposit"
7855
+ ],
7856
+ type: "u64"
7857
+ },
7858
+ {
7859
+ name: "min_unstake_request",
7860
+ docs: [
7861
+ "Minimum SOL amount for an unstake/withdrawal request"
7862
+ ],
7863
+ type: "u64"
7864
+ },
7865
+ {
7866
+ name: "min_rebalance_stake_delta",
7867
+ docs: [
7868
+ "Minimum stake delta to trigger a stake rebalance order"
7869
+ ],
7870
+ type: "u64"
7871
+ },
7872
+ {
7873
+ name: "min_rebalance_unstake_delta",
7874
+ docs: [
7875
+ "Minimum unstake delta to trigger an unstake rebalance order"
7876
+ ],
7877
+ type: "u64"
7878
+ },
7879
+ {
7880
+ name: "transient_threshold",
7881
+ docs: [
7882
+ "Minimum transient stake to include in effective stake calculations"
7883
+ ],
7884
+ type: "u64"
7885
+ },
7886
+ {
7887
+ name: "min_late_epoch_slot_gate",
7888
+ docs: [
7889
+ "Minimum slots that must have elapsed in the epoch before late epoch operations can execute"
7890
+ ],
7891
+ type: "u64"
7892
+ },
7893
+ {
7894
+ name: "_reserved_u64",
7895
+ type: {
7896
+ array: [
7897
+ "u64",
7898
+ 2
7899
+ ]
7900
+ }
7901
+ },
7902
+ {
7903
+ name: "cooldown_epochs",
7904
+ docs: [
7905
+ "Epochs a validator must wait in the graveyard before it is booted. This begins after the last recorded state change"
7906
+ ],
7907
+ type: "u16"
7908
+ },
7909
+ {
7910
+ name: "deposit_fee_multiplier",
7911
+ docs: [
7912
+ "Multiplier for deposit fee calculation, this would be average \"pay rate x number of epochs we expect the stake to warm up\""
7913
+ ],
7914
+ type: "u16"
7915
+ },
7916
+ {
7917
+ name: "min_vpp_entry",
7918
+ docs: [
7919
+ "Minimum VPP score required to enter the active validator set, this is a fall back for when the val set is really small"
7920
+ ],
7921
+ type: "u16"
7922
+ },
7923
+ {
7924
+ name: "min_vpp_exit",
7925
+ docs: [
7926
+ "VPP score threshold below which a validator is removed from active set, again a fall back"
7927
+ ],
7928
+ type: "u16"
7929
+ },
7930
+ {
7931
+ name: "tiny_network_threshold",
7932
+ docs: [
7933
+ "Max validators for \"tiny\" network band (uses fixed VPP thresholds) as above"
7934
+ ],
7935
+ type: "u16"
7936
+ },
7937
+ {
7938
+ name: "small_network_threshold",
7939
+ docs: [
7940
+ "Max validators for \"small\" network band (uses percentile-based selection)"
7941
+ ],
7942
+ type: "u16"
7943
+ },
7944
+ {
7945
+ name: "medium_network_threshold",
7946
+ docs: [
7947
+ "Max validators for \"medium\" network band (uses percentile-based selection)"
7948
+ ],
7949
+ type: "u16"
7950
+ },
7951
+ {
7952
+ name: "large_network_entry_rank",
7953
+ docs: [
7954
+ "Fixed rank threshold to enter active set in large networks (0-indexed)"
7955
+ ],
7956
+ type: "u16"
7957
+ },
7958
+ {
7959
+ name: "large_network_exit_rank",
7960
+ docs: [
7961
+ "Fixed rank threshold to exit active set in large networks (0-indexed)"
7962
+ ],
7963
+ type: "u16"
7964
+ },
7965
+ {
7966
+ name: "_reserved_u16",
7967
+ type: {
7968
+ array: [
7969
+ "u16",
7970
+ 3
7971
+ ]
7972
+ }
7973
+ },
7974
+ {
7975
+ name: "small_network_entry_percent",
7976
+ docs: [
7977
+ "Percentile rank required to enter active set in small networks"
7978
+ ],
7979
+ type: "u8"
7980
+ },
7981
+ {
7982
+ name: "small_network_exit_percent",
7983
+ docs: [
7984
+ "Percentile rank below which validators exit in small networks"
7985
+ ],
7986
+ type: "u8"
7987
+ },
7988
+ {
7989
+ name: "medium_network_entry_percent",
7990
+ docs: [
7991
+ "Percentile rank required to enter active set in medium networks"
7992
+ ],
7993
+ type: "u8"
7994
+ },
7995
+ {
7996
+ name: "medium_network_exit_percent",
7997
+ docs: [
7998
+ "Percentile rank below which validators exit in medium networks"
7999
+ ],
8000
+ type: "u8"
8001
+ },
8002
+ {
8003
+ name: "_reserved_u8",
8004
+ type: {
8005
+ array: [
8006
+ "u8",
8007
+ 2
8008
+ ]
8009
+ }
8010
+ },
8011
+ {
8012
+ name: "feature_flags",
8013
+ docs: [
8014
+ "Bit 0: DepositsEnabled, Bit 1: WithdrawalsEnabled, Bit 2: ClaimWithdrawalsEnabled,",
8015
+ "Bit 3: ProcessStakeOrdersEnabled, Bit 4: ProcessUnstakeOrdersEnabled,",
8016
+ "Bit 5: ProcessPayCycleEnabled, Bit 6: RebalancingEnabled, Bits 7-15: Reserved"
8017
+ ],
8018
+ type: "u16"
8019
+ },
8020
+ {
8021
+ name: "_reserved_flags",
8022
+ type: {
8023
+ array: [
8024
+ "u16",
8025
+ 1
8026
+ ]
8027
+ }
8028
+ }
8029
+ ]
8030
+ }
7727
8031
  }
7728
8032
  ];
7729
8033
  var mainnetTransferHookIDL = {