@jpool/bond-sdk 0.11.0-next.13 → 0.11.0-next.15
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7020,17 +7020,17 @@ 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
7035
|
/**
|
|
7036
7036
|
* Build test set last update epoch instruction
|
|
@@ -7039,9 +7039,9 @@ var JBondClient = class _JBondClient {
|
|
|
7039
7039
|
* This should not be used in production environments.
|
|
7040
7040
|
*/
|
|
7041
7041
|
async getTestSetLastUpdateEpochIx(props) {
|
|
7042
|
-
const { bondType, bondName, voteAccount, epoch } = props;
|
|
7042
|
+
const { bondType, bondName, voteAccount, payer, epoch } = props;
|
|
7043
7043
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|
|
7044
|
-
return this.program.methods.testSetLastUpdateEpoch(new import_bn.BN(epoch)).accountsPartial({ validatorBond }).instruction();
|
|
7044
|
+
return this.program.methods.testSetLastUpdateEpoch(new import_bn.BN(epoch)).accountsPartial({ validatorBond, payer }).instruction();
|
|
7045
7045
|
}
|
|
7046
7046
|
/**
|
|
7047
7047
|
* Build lock funds instruction
|