@jpool/bond-sdk 0.11.0-next.15 → 0.11.0-next.16

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.mjs CHANGED
@@ -5009,7 +5009,39 @@ var jbond_default = {
5009
5009
  },
5010
5010
  {
5011
5011
  name: "validator_bond",
5012
- writable: true
5012
+ writable: true,
5013
+ pda: {
5014
+ seeds: [
5015
+ {
5016
+ kind: "const",
5017
+ value: [
5018
+ 118,
5019
+ 97,
5020
+ 108,
5021
+ 105,
5022
+ 100,
5023
+ 97,
5024
+ 116,
5025
+ 111,
5026
+ 114,
5027
+ 95,
5028
+ 98,
5029
+ 111,
5030
+ 110,
5031
+ 100
5032
+ ]
5033
+ },
5034
+ {
5035
+ kind: "account",
5036
+ path: "bond_state"
5037
+ },
5038
+ {
5039
+ kind: "account",
5040
+ path: "validator_bond.vote_account",
5041
+ account: "ValidatorBond"
5042
+ }
5043
+ ]
5044
+ }
5013
5045
  },
5014
5046
  {
5015
5047
  name: "bond_token_account",
@@ -5160,9 +5192,45 @@ var jbond_default = {
5160
5192
  ],
5161
5193
  accounts: [
5162
5194
  {
5163
- name: "validator_bond",
5195
+ name: "bond_state",
5164
5196
  writable: true
5165
5197
  },
5198
+ {
5199
+ name: "validator_bond",
5200
+ writable: true,
5201
+ pda: {
5202
+ seeds: [
5203
+ {
5204
+ kind: "const",
5205
+ value: [
5206
+ 118,
5207
+ 97,
5208
+ 108,
5209
+ 105,
5210
+ 100,
5211
+ 97,
5212
+ 116,
5213
+ 111,
5214
+ 114,
5215
+ 95,
5216
+ 98,
5217
+ 111,
5218
+ 110,
5219
+ 100
5220
+ ]
5221
+ },
5222
+ {
5223
+ kind: "account",
5224
+ path: "bond_state"
5225
+ },
5226
+ {
5227
+ kind: "account",
5228
+ path: "validator_bond.vote_account",
5229
+ account: "ValidatorBond"
5230
+ }
5231
+ ]
5232
+ }
5233
+ },
5166
5234
  {
5167
5235
  name: "payer",
5168
5236
  writable: true,
@@ -7076,8 +7144,10 @@ var JBondClient = class _JBondClient {
7076
7144
  */
7077
7145
  async getReleaseFundsIx(props) {
7078
7146
  const { bondType, name, voteAccount, amount, withdrawAuthority } = props;
7147
+ const [bondState] = this.pda.bondState(bondType, name);
7079
7148
  const [validatorBond] = this.pda.validatorBond(bondType, name, voteAccount);
7080
7149
  const accounts = {
7150
+ bondState,
7081
7151
  validatorBond,
7082
7152
  payer: withdrawAuthority
7083
7153
  };