@jpool/bond-sdk 0.11.0-next.12 → 0.11.0-next.14
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7020,18 +7020,24 @@ var JBondClient = class _JBondClient {
|
|
|
7020
7020
|
* Update epoch locks
|
|
7021
7021
|
*/
|
|
7022
7022
|
async updateEpochLocks(props) {
|
|
7023
|
-
const { bondType, bondName, voteAccount } = props;
|
|
7024
|
-
const ix = await this.getUpdateEpochLocksIx({ bondType, bondName, voteAccount });
|
|
7023
|
+
const { bondType, bondName, voteAccount, payer } = props;
|
|
7024
|
+
const ix = await this.getUpdateEpochLocksIx({ bondType, bondName, voteAccount, payer });
|
|
7025
7025
|
return this.provider.sendAndConfirm?.(new Transaction().add(ix));
|
|
7026
7026
|
}
|
|
7027
7027
|
/**
|
|
7028
7028
|
* Build update epoch locks instruction
|
|
7029
7029
|
*/
|
|
7030
7030
|
async getUpdateEpochLocksIx(props) {
|
|
7031
|
-
const { bondType, bondName, voteAccount } = props;
|
|
7031
|
+
const { bondType, bondName, voteAccount, payer } = props;
|
|
7032
7032
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|
|
7033
|
-
return this.program.methods.bondUpdate().accountsPartial({ validatorBond }).instruction();
|
|
7033
|
+
return this.program.methods.bondUpdate().accountsPartial({ validatorBond, payer }).instruction();
|
|
7034
7034
|
}
|
|
7035
|
+
/**
|
|
7036
|
+
* Build test set last update epoch instruction
|
|
7037
|
+
* NOTE!: This instruction is for testing purposes only.
|
|
7038
|
+
* It allows direct manipulation of the validator bond's last epoch update.
|
|
7039
|
+
* This should not be used in production environments.
|
|
7040
|
+
*/
|
|
7035
7041
|
async getTestSetLastUpdateEpochIx(props) {
|
|
7036
7042
|
const { bondType, bondName, voteAccount, epoch } = props;
|
|
7037
7043
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|