@jpool/bond-sdk 0.10.0 → 0.10.1
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 +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5541,6 +5541,9 @@ var jbond_default = {
|
|
|
5541
5541
|
},
|
|
5542
5542
|
{
|
|
5543
5543
|
name: "global_initialize",
|
|
5544
|
+
docs: [
|
|
5545
|
+
"----------------------------- Global Instructions ----------------------------"
|
|
5546
|
+
],
|
|
5544
5547
|
discriminator: [
|
|
5545
5548
|
30,
|
|
5546
5549
|
79,
|
|
@@ -7104,6 +7107,10 @@ var JBondClient = class _JBondClient {
|
|
|
7104
7107
|
this.programId
|
|
7105
7108
|
);
|
|
7106
7109
|
const validatorBond = this.pda.validatorBond(bondType, bondName, vote);
|
|
7110
|
+
console.log("Derived legacy validator bond account:", legacyValidatorBondAccount.toBase58());
|
|
7111
|
+
console.log("Derived new validator bond account:", validatorBond[0].toBase58());
|
|
7112
|
+
console.log("Fetching history for legacy validator bond account:", legacyValidatorBondAccount.toBase58());
|
|
7113
|
+
console.log("Fetching history for new validator bond account:", validatorBond[0].toBase58());
|
|
7107
7114
|
const legacySignatures = (await this.connection.getSignaturesForAddress(
|
|
7108
7115
|
legacyValidatorBondAccount,
|
|
7109
7116
|
{
|
|
@@ -7179,6 +7186,8 @@ var JBondClient = class _JBondClient {
|
|
|
7179
7186
|
const amountBytes = dataBuffer.subarray(8, 16);
|
|
7180
7187
|
const amountBN = new import_bn2.BN(amountBytes, "le");
|
|
7181
7188
|
amount = amountBN.toNumber() / web3_js.LAMPORTS_PER_SOL;
|
|
7189
|
+
} else {
|
|
7190
|
+
amount = 0;
|
|
7182
7191
|
}
|
|
7183
7192
|
} else if (dataBuffer.length >= 16) {
|
|
7184
7193
|
const amountBytes = dataBuffer.subarray(8, 16);
|