@jpool/bond-sdk 0.9.0-next.15 → 0.9.0-next.16
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6870,9 +6870,9 @@ var JBondClient = class _JBondClient {
|
|
|
6870
6870
|
* @param bondType - Type of the bond
|
|
6871
6871
|
* @param bondName - Name of the bond
|
|
6872
6872
|
*/
|
|
6873
|
-
async getBondState(bondType, bondName) {
|
|
6873
|
+
async getBondState(bondType, bondName, withStats = false) {
|
|
6874
6874
|
const bondState = await this.program.account.bondState.fetch(this.pda.bondState(bondType, bondName)[0]);
|
|
6875
|
-
return [bondState, await this.getBondStateStats(bondState)];
|
|
6875
|
+
return [bondState, withStats ? await this.getBondStateStats(bondState) : null];
|
|
6876
6876
|
}
|
|
6877
6877
|
/**
|
|
6878
6878
|
* Get all bond states with total collected collateral
|