@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.d.mts
CHANGED
|
@@ -2063,6 +2063,7 @@ declare class JBondClient {
|
|
|
2063
2063
|
bondType: BondType;
|
|
2064
2064
|
bondName: string;
|
|
2065
2065
|
voteAccount: PublicKeyInitData;
|
|
2066
|
+
payer: PublicKey;
|
|
2066
2067
|
}): Promise<string | undefined>;
|
|
2067
2068
|
/**
|
|
2068
2069
|
* Build update epoch locks instruction
|
|
@@ -2071,7 +2072,14 @@ declare class JBondClient {
|
|
|
2071
2072
|
bondType: BondType;
|
|
2072
2073
|
bondName: string;
|
|
2073
2074
|
voteAccount: PublicKeyInitData;
|
|
2075
|
+
payer: PublicKey;
|
|
2074
2076
|
}): Promise<TransactionInstruction>;
|
|
2077
|
+
/**
|
|
2078
|
+
* Build test set last update epoch instruction
|
|
2079
|
+
* NOTE!: This instruction is for testing purposes only.
|
|
2080
|
+
* It allows direct manipulation of the validator bond's last epoch update.
|
|
2081
|
+
* This should not be used in production environments.
|
|
2082
|
+
*/
|
|
2075
2083
|
getTestSetLastUpdateEpochIx(props: {
|
|
2076
2084
|
bondType: BondType;
|
|
2077
2085
|
bondName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2063,6 +2063,7 @@ declare class JBondClient {
|
|
|
2063
2063
|
bondType: BondType;
|
|
2064
2064
|
bondName: string;
|
|
2065
2065
|
voteAccount: PublicKeyInitData;
|
|
2066
|
+
payer: PublicKey;
|
|
2066
2067
|
}): Promise<string | undefined>;
|
|
2067
2068
|
/**
|
|
2068
2069
|
* Build update epoch locks instruction
|
|
@@ -2071,7 +2072,14 @@ declare class JBondClient {
|
|
|
2071
2072
|
bondType: BondType;
|
|
2072
2073
|
bondName: string;
|
|
2073
2074
|
voteAccount: PublicKeyInitData;
|
|
2075
|
+
payer: PublicKey;
|
|
2074
2076
|
}): Promise<TransactionInstruction>;
|
|
2077
|
+
/**
|
|
2078
|
+
* Build test set last update epoch instruction
|
|
2079
|
+
* NOTE!: This instruction is for testing purposes only.
|
|
2080
|
+
* It allows direct manipulation of the validator bond's last epoch update.
|
|
2081
|
+
* This should not be used in production environments.
|
|
2082
|
+
*/
|
|
2075
2083
|
getTestSetLastUpdateEpochIx(props: {
|
|
2076
2084
|
bondType: BondType;
|
|
2077
2085
|
bondName: string;
|
package/dist/index.js
CHANGED
|
@@ -7052,18 +7052,24 @@ var JBondClient = class _JBondClient {
|
|
|
7052
7052
|
* Update epoch locks
|
|
7053
7053
|
*/
|
|
7054
7054
|
async updateEpochLocks(props) {
|
|
7055
|
-
const { bondType, bondName, voteAccount } = props;
|
|
7056
|
-
const ix = await this.getUpdateEpochLocksIx({ bondType, bondName, voteAccount });
|
|
7055
|
+
const { bondType, bondName, voteAccount, payer } = props;
|
|
7056
|
+
const ix = await this.getUpdateEpochLocksIx({ bondType, bondName, voteAccount, payer });
|
|
7057
7057
|
return this.provider.sendAndConfirm?.(new web3_js.Transaction().add(ix));
|
|
7058
7058
|
}
|
|
7059
7059
|
/**
|
|
7060
7060
|
* Build update epoch locks instruction
|
|
7061
7061
|
*/
|
|
7062
7062
|
async getUpdateEpochLocksIx(props) {
|
|
7063
|
-
const { bondType, bondName, voteAccount } = props;
|
|
7063
|
+
const { bondType, bondName, voteAccount, payer } = props;
|
|
7064
7064
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|
|
7065
|
-
return this.program.methods.bondUpdate().accountsPartial({ validatorBond }).instruction();
|
|
7065
|
+
return this.program.methods.bondUpdate().accountsPartial({ validatorBond, payer }).instruction();
|
|
7066
7066
|
}
|
|
7067
|
+
/**
|
|
7068
|
+
* Build test set last update epoch instruction
|
|
7069
|
+
* NOTE!: This instruction is for testing purposes only.
|
|
7070
|
+
* It allows direct manipulation of the validator bond's last epoch update.
|
|
7071
|
+
* This should not be used in production environments.
|
|
7072
|
+
*/
|
|
7067
7073
|
async getTestSetLastUpdateEpochIx(props) {
|
|
7068
7074
|
const { bondType, bondName, voteAccount, epoch } = props;
|
|
7069
7075
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|