@jpool/bond-sdk 0.11.0-next.6 → 0.11.0-next.7

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
@@ -4987,8 +4987,8 @@ var jbond_default = {
4987
4987
  {
4988
4988
  name: "bond_lock_funds",
4989
4989
  docs: [
4990
- "Locks funds for the upcoming epoch.",
4991
- "Moves collateral from available to locked state which cannot be withdrawn.",
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
4992
  "# Errors",
4993
4993
  "Fails if the validator is not active, or if there are insufficient available funds."
4994
4994
  ],
@@ -5357,6 +5357,17 @@ var jbond_default = {
5357
5357
  },
5358
5358
  {
5359
5359
  name: "bond_update",
5360
+ docs: [
5361
+ "Transitions locked funds between epochs for a validator bond.",
5362
+ "",
5363
+ "This function should be called at epoch boundaries to update the bond's",
5364
+ "`last_update_epoch` and move the `next_epoch_locked` amount into",
5365
+ "`current_epoch_locked`. It ensures that the update only occurs once per epoch.",
5366
+ "",
5367
+ "# Errors",
5368
+ "Returns [`BondError::InvalidEpoch`] if called more than once in the same epoch,",
5369
+ "or if the system clock cannot be accessed."
5370
+ ],
5360
5371
  discriminator: [
5361
5372
  237,
5362
5373
  102,