@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.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,6 +2072,7 @@ declare class JBondClient {
|
|
|
2071
2072
|
bondType: BondType;
|
|
2072
2073
|
bondName: string;
|
|
2073
2074
|
voteAccount: PublicKeyInitData;
|
|
2075
|
+
payer: PublicKey;
|
|
2074
2076
|
}): Promise<TransactionInstruction>;
|
|
2075
2077
|
/**
|
|
2076
2078
|
* Build test set last update epoch instruction
|
|
@@ -2082,6 +2084,7 @@ declare class JBondClient {
|
|
|
2082
2084
|
bondType: BondType;
|
|
2083
2085
|
bondName: string;
|
|
2084
2086
|
voteAccount: PublicKeyInitData;
|
|
2087
|
+
payer: PublicKey;
|
|
2085
2088
|
epoch: number;
|
|
2086
2089
|
}): Promise<TransactionInstruction>;
|
|
2087
2090
|
/**
|
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,6 +2072,7 @@ declare class JBondClient {
|
|
|
2071
2072
|
bondType: BondType;
|
|
2072
2073
|
bondName: string;
|
|
2073
2074
|
voteAccount: PublicKeyInitData;
|
|
2075
|
+
payer: PublicKey;
|
|
2074
2076
|
}): Promise<TransactionInstruction>;
|
|
2075
2077
|
/**
|
|
2076
2078
|
* Build test set last update epoch instruction
|
|
@@ -2082,6 +2084,7 @@ declare class JBondClient {
|
|
|
2082
2084
|
bondType: BondType;
|
|
2083
2085
|
bondName: string;
|
|
2084
2086
|
voteAccount: PublicKeyInitData;
|
|
2087
|
+
payer: PublicKey;
|
|
2085
2088
|
epoch: number;
|
|
2086
2089
|
}): Promise<TransactionInstruction>;
|
|
2087
2090
|
/**
|
package/dist/index.js
CHANGED
|
@@ -7052,17 +7052,17 @@ 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
7067
|
/**
|
|
7068
7068
|
* Build test set last update epoch instruction
|
|
@@ -7071,9 +7071,9 @@ var JBondClient = class _JBondClient {
|
|
|
7071
7071
|
* This should not be used in production environments.
|
|
7072
7072
|
*/
|
|
7073
7073
|
async getTestSetLastUpdateEpochIx(props) {
|
|
7074
|
-
const { bondType, bondName, voteAccount, epoch } = props;
|
|
7074
|
+
const { bondType, bondName, voteAccount, payer, epoch } = props;
|
|
7075
7075
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|
|
7076
|
-
return this.program.methods.testSetLastUpdateEpoch(new import_bn.BN(epoch)).accountsPartial({ validatorBond }).instruction();
|
|
7076
|
+
return this.program.methods.testSetLastUpdateEpoch(new import_bn.BN(epoch)).accountsPartial({ validatorBond, payer }).instruction();
|
|
7077
7077
|
}
|
|
7078
7078
|
/**
|
|
7079
7079
|
* Build lock funds instruction
|