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

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
@@ -4554,7 +4554,7 @@ var VALIDATOR_BOND_SEED = "validator_bond";
4554
4554
  var STANDARD_BOND_SEED = "standard";
4555
4555
  var CROWDFUNDING_BOND_SEED = "crowdfunding";
4556
4556
  var ENV_PROGRAM_ID = {
4557
- // [BondClientEnv.DEV]: new PublicKey('...'),
4557
+ // [JBondClientEnv.DEV]: new PublicKey('...'),
4558
4558
  };
4559
4559
 
4560
4560
  // src/types/index.ts
@@ -4988,8 +4988,8 @@ var jbond_default = {
4988
4988
  name: "bond_lock_funds",
4989
4989
  docs: [
4990
4990
  "Locks funds for both the current and upcoming epoch.",
4991
- "Moves collateral from available to locked state, making it unavailable for withdrawal for the current and next epoch.",
4992
- "# Errors",
4991
+ "Moves collateral from available to locked state, making it unavailable for withdrawal for",
4992
+ "the current and next epoch. # Errors",
4993
4993
  "Fails if the validator is not active, or if there are insufficient available funds."
4994
4994
  ],
4995
4995
  discriminator: [
@@ -5430,7 +5430,7 @@ var jbond_default = {
5430
5430
  "",
5431
5431
  "This function should be called at epoch boundaries to update the bond's",
5432
5432
  "`last_update_epoch` and move the `next_epoch_locked` amount into",
5433
- "`current_epoch_locked`. It ensures that the update only occurs once per epoch.",
5433
+ "`locked`. It ensures that the update only occurs once per epoch.",
5434
5434
  "",
5435
5435
  "# Errors",
5436
5436
  "Returns [`BondError::InvalidEpoch`] if called more than once in the same epoch,",
@@ -6458,16 +6458,16 @@ var jbond_default = {
6458
6458
  type: "u8"
6459
6459
  },
6460
6460
  {
6461
- name: "next_epoch_locked",
6461
+ name: "locked",
6462
6462
  docs: [
6463
- "Amount of collateral locked for the next epoch"
6463
+ "Amount of collateral currently locked"
6464
6464
  ],
6465
6465
  type: "u64"
6466
6466
  },
6467
6467
  {
6468
- name: "current_epoch_locked",
6468
+ name: "next_epoch_locked",
6469
6469
  docs: [
6470
- "Amount of collateral locked for the current epoch"
6470
+ "Amount of collateral locked for the next epoch"
6471
6471
  ],
6472
6472
  type: "u64"
6473
6473
  },
@@ -7158,7 +7158,7 @@ var JBondClient = class _JBondClient {
7158
7158
  */
7159
7159
  async getAvailableCollateral(bondType, bondName, voteAccount) {
7160
7160
  const validatorBond = await this.getValidatorBond(bondType, bondName, voteAccount);
7161
- return await this.getValidatorBondBalance(bondType, bondName, voteAccount) - validatorBond.currentEpochLocked.toNumber();
7161
+ return await this.getValidatorBondBalance(bondType, bondName, voteAccount) - validatorBond.locked.toNumber();
7162
7162
  }
7163
7163
  /**
7164
7164
  * Get all bond states with total collected collateral