@jpool/bond-sdk 0.11.0-next.11 → 0.11.0-next.13

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.
package/dist/index.d.mts CHANGED
@@ -884,80 +884,6 @@ type Jbond = {
884
884
  ];
885
885
  "args": [];
886
886
  },
887
- {
888
- "name": "migrateBond";
889
- "docs": [
890
- "Migrates validator bond data from legacy structure to new structure."
891
- ];
892
- "discriminator": [
893
- 107,
894
- 119,
895
- 59,
896
- 110,
897
- 76,
898
- 18,
899
- 37,
900
- 163
901
- ];
902
- "accounts": [
903
- {
904
- "name": "bondState";
905
- "writable": true;
906
- },
907
- {
908
- "name": "legacyValidatorBond";
909
- "writable": true;
910
- },
911
- {
912
- "name": "legacyVoteAccount";
913
- },
914
- {
915
- "name": "validatorBond";
916
- "writable": true;
917
- "pda": {
918
- "seeds": [
919
- {
920
- "kind": "const";
921
- "value": [
922
- 118,
923
- 97,
924
- 108,
925
- 105,
926
- 100,
927
- 97,
928
- 116,
929
- 111,
930
- 114,
931
- 95,
932
- 98,
933
- 111,
934
- 110,
935
- 100
936
- ];
937
- },
938
- {
939
- "kind": "account";
940
- "path": "bondState";
941
- },
942
- {
943
- "kind": "account";
944
- "path": "legacyVoteAccount";
945
- }
946
- ];
947
- };
948
- },
949
- {
950
- "name": "creator";
951
- "writable": true;
952
- "signer": true;
953
- },
954
- {
955
- "name": "systemProgram";
956
- "address": "11111111111111111111111111111111";
957
- }
958
- ];
959
- "args": [];
960
- },
961
887
  {
962
888
  "name": "sessionFinish";
963
889
  "docs": [
@@ -1024,6 +950,41 @@ type Jbond = {
1024
950
  "type": "u64";
1025
951
  }
1026
952
  ];
953
+ },
954
+ {
955
+ "name": "testSetLastUpdateEpoch";
956
+ "docs": [
957
+ "NOTE!: This instruction is for testing purposes only.",
958
+ "It allows direct manipulation of the validator bond's last epoch update.",
959
+ "This should not be used in production environments."
960
+ ];
961
+ "discriminator": [
962
+ 215,
963
+ 125,
964
+ 32,
965
+ 8,
966
+ 43,
967
+ 106,
968
+ 194,
969
+ 221
970
+ ];
971
+ "accounts": [
972
+ {
973
+ "name": "validatorBond";
974
+ "writable": true;
975
+ },
976
+ {
977
+ "name": "payer";
978
+ "writable": true;
979
+ "signer": true;
980
+ }
981
+ ];
982
+ "args": [
983
+ {
984
+ "name": "epoch";
985
+ "type": "u64";
986
+ }
987
+ ];
1027
988
  }
1028
989
  ];
1029
990
  "accounts": [
@@ -2111,6 +2072,18 @@ declare class JBondClient {
2111
2072
  bondName: string;
2112
2073
  voteAccount: PublicKeyInitData;
2113
2074
  }): Promise<TransactionInstruction>;
2075
+ /**
2076
+ * Build test set last update epoch instruction
2077
+ * NOTE!: This instruction is for testing purposes only.
2078
+ * It allows direct manipulation of the validator bond's last epoch update.
2079
+ * This should not be used in production environments.
2080
+ */
2081
+ getTestSetLastUpdateEpochIx(props: {
2082
+ bondType: BondType;
2083
+ bondName: string;
2084
+ voteAccount: PublicKeyInitData;
2085
+ epoch: number;
2086
+ }): Promise<TransactionInstruction>;
2114
2087
  /**
2115
2088
  * Build lock funds instruction
2116
2089
  */
package/dist/index.d.ts CHANGED
@@ -884,80 +884,6 @@ type Jbond = {
884
884
  ];
885
885
  "args": [];
886
886
  },
887
- {
888
- "name": "migrateBond";
889
- "docs": [
890
- "Migrates validator bond data from legacy structure to new structure."
891
- ];
892
- "discriminator": [
893
- 107,
894
- 119,
895
- 59,
896
- 110,
897
- 76,
898
- 18,
899
- 37,
900
- 163
901
- ];
902
- "accounts": [
903
- {
904
- "name": "bondState";
905
- "writable": true;
906
- },
907
- {
908
- "name": "legacyValidatorBond";
909
- "writable": true;
910
- },
911
- {
912
- "name": "legacyVoteAccount";
913
- },
914
- {
915
- "name": "validatorBond";
916
- "writable": true;
917
- "pda": {
918
- "seeds": [
919
- {
920
- "kind": "const";
921
- "value": [
922
- 118,
923
- 97,
924
- 108,
925
- 105,
926
- 100,
927
- 97,
928
- 116,
929
- 111,
930
- 114,
931
- 95,
932
- 98,
933
- 111,
934
- 110,
935
- 100
936
- ];
937
- },
938
- {
939
- "kind": "account";
940
- "path": "bondState";
941
- },
942
- {
943
- "kind": "account";
944
- "path": "legacyVoteAccount";
945
- }
946
- ];
947
- };
948
- },
949
- {
950
- "name": "creator";
951
- "writable": true;
952
- "signer": true;
953
- },
954
- {
955
- "name": "systemProgram";
956
- "address": "11111111111111111111111111111111";
957
- }
958
- ];
959
- "args": [];
960
- },
961
887
  {
962
888
  "name": "sessionFinish";
963
889
  "docs": [
@@ -1024,6 +950,41 @@ type Jbond = {
1024
950
  "type": "u64";
1025
951
  }
1026
952
  ];
953
+ },
954
+ {
955
+ "name": "testSetLastUpdateEpoch";
956
+ "docs": [
957
+ "NOTE!: This instruction is for testing purposes only.",
958
+ "It allows direct manipulation of the validator bond's last epoch update.",
959
+ "This should not be used in production environments."
960
+ ];
961
+ "discriminator": [
962
+ 215,
963
+ 125,
964
+ 32,
965
+ 8,
966
+ 43,
967
+ 106,
968
+ 194,
969
+ 221
970
+ ];
971
+ "accounts": [
972
+ {
973
+ "name": "validatorBond";
974
+ "writable": true;
975
+ },
976
+ {
977
+ "name": "payer";
978
+ "writable": true;
979
+ "signer": true;
980
+ }
981
+ ];
982
+ "args": [
983
+ {
984
+ "name": "epoch";
985
+ "type": "u64";
986
+ }
987
+ ];
1027
988
  }
1028
989
  ];
1029
990
  "accounts": [
@@ -2111,6 +2072,18 @@ declare class JBondClient {
2111
2072
  bondName: string;
2112
2073
  voteAccount: PublicKeyInitData;
2113
2074
  }): Promise<TransactionInstruction>;
2075
+ /**
2076
+ * Build test set last update epoch instruction
2077
+ * NOTE!: This instruction is for testing purposes only.
2078
+ * It allows direct manipulation of the validator bond's last epoch update.
2079
+ * This should not be used in production environments.
2080
+ */
2081
+ getTestSetLastUpdateEpochIx(props: {
2082
+ bondType: BondType;
2083
+ bondName: string;
2084
+ voteAccount: PublicKeyInitData;
2085
+ epoch: number;
2086
+ }): Promise<TransactionInstruction>;
2114
2087
  /**
2115
2088
  * Build lock funds instruction
2116
2089
  */
package/dist/index.js CHANGED
@@ -5632,80 +5632,6 @@ var jbond_default = {
5632
5632
  ],
5633
5633
  args: []
5634
5634
  },
5635
- {
5636
- name: "migrate_bond",
5637
- docs: [
5638
- "Migrates validator bond data from legacy structure to new structure."
5639
- ],
5640
- discriminator: [
5641
- 107,
5642
- 119,
5643
- 59,
5644
- 110,
5645
- 76,
5646
- 18,
5647
- 37,
5648
- 163
5649
- ],
5650
- accounts: [
5651
- {
5652
- name: "bond_state",
5653
- writable: true
5654
- },
5655
- {
5656
- name: "legacy_validator_bond",
5657
- writable: true
5658
- },
5659
- {
5660
- name: "legacy_vote_account"
5661
- },
5662
- {
5663
- name: "validator_bond",
5664
- writable: true,
5665
- pda: {
5666
- seeds: [
5667
- {
5668
- kind: "const",
5669
- value: [
5670
- 118,
5671
- 97,
5672
- 108,
5673
- 105,
5674
- 100,
5675
- 97,
5676
- 116,
5677
- 111,
5678
- 114,
5679
- 95,
5680
- 98,
5681
- 111,
5682
- 110,
5683
- 100
5684
- ]
5685
- },
5686
- {
5687
- kind: "account",
5688
- path: "bond_state"
5689
- },
5690
- {
5691
- kind: "account",
5692
- path: "legacy_vote_account"
5693
- }
5694
- ]
5695
- }
5696
- },
5697
- {
5698
- name: "creator",
5699
- writable: true,
5700
- signer: true
5701
- },
5702
- {
5703
- name: "system_program",
5704
- address: "11111111111111111111111111111111"
5705
- }
5706
- ],
5707
- args: []
5708
- },
5709
5635
  {
5710
5636
  name: "session_finish",
5711
5637
  docs: [
@@ -5772,6 +5698,41 @@ var jbond_default = {
5772
5698
  type: "u64"
5773
5699
  }
5774
5700
  ]
5701
+ },
5702
+ {
5703
+ name: "test_set_last_update_epoch",
5704
+ docs: [
5705
+ "NOTE!: This instruction is for testing purposes only.",
5706
+ "It allows direct manipulation of the validator bond's last epoch update.",
5707
+ "This should not be used in production environments."
5708
+ ],
5709
+ discriminator: [
5710
+ 215,
5711
+ 125,
5712
+ 32,
5713
+ 8,
5714
+ 43,
5715
+ 106,
5716
+ 194,
5717
+ 221
5718
+ ],
5719
+ accounts: [
5720
+ {
5721
+ name: "validator_bond",
5722
+ writable: true
5723
+ },
5724
+ {
5725
+ name: "payer",
5726
+ writable: true,
5727
+ signer: true
5728
+ }
5729
+ ],
5730
+ args: [
5731
+ {
5732
+ name: "epoch",
5733
+ type: "u64"
5734
+ }
5735
+ ]
5775
5736
  }
5776
5737
  ],
5777
5738
  accounts: [
@@ -7103,6 +7064,17 @@ var JBondClient = class _JBondClient {
7103
7064
  const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
7104
7065
  return this.program.methods.bondUpdate().accountsPartial({ validatorBond }).instruction();
7105
7066
  }
7067
+ /**
7068
+ * Build test set last update epoch instruction
7069
+ * NOTE!: This instruction is for testing purposes only.
7070
+ * It allows direct manipulation of the validator bond's last epoch update.
7071
+ * This should not be used in production environments.
7072
+ */
7073
+ async getTestSetLastUpdateEpochIx(props) {
7074
+ const { bondType, bondName, voteAccount, epoch } = props;
7075
+ const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
7076
+ return this.program.methods.testSetLastUpdateEpoch(new import_bn.BN(epoch)).accountsPartial({ validatorBond }).instruction();
7077
+ }
7106
7078
  /**
7107
7079
  * Build lock funds instruction
7108
7080
  */