@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.mjs
CHANGED
|
@@ -5506,6 +5506,9 @@ var jbond_default = {
|
|
|
5506
5506
|
},
|
|
5507
5507
|
{
|
|
5508
5508
|
name: "global_initialize",
|
|
5509
|
+
docs: [
|
|
5510
|
+
"----------------------------- Global Instructions ----------------------------"
|
|
5511
|
+
],
|
|
5509
5512
|
discriminator: [
|
|
5510
5513
|
30,
|
|
5511
5514
|
79,
|
|
@@ -7068,6 +7071,10 @@ var JBondClient = class _JBondClient {
|
|
|
7068
7071
|
this.programId
|
|
7069
7072
|
);
|
|
7070
7073
|
const validatorBond = this.pda.validatorBond(bondType, bondName, vote);
|
|
7074
|
+
console.log("Derived legacy validator bond account:", legacyValidatorBondAccount.toBase58());
|
|
7075
|
+
console.log("Derived new validator bond account:", validatorBond[0].toBase58());
|
|
7076
|
+
console.log("Fetching history for legacy validator bond account:", legacyValidatorBondAccount.toBase58());
|
|
7077
|
+
console.log("Fetching history for new validator bond account:", validatorBond[0].toBase58());
|
|
7071
7078
|
const legacySignatures = (await this.connection.getSignaturesForAddress(
|
|
7072
7079
|
legacyValidatorBondAccount,
|
|
7073
7080
|
{
|
|
@@ -7143,6 +7150,8 @@ var JBondClient = class _JBondClient {
|
|
|
7143
7150
|
const amountBytes = dataBuffer.subarray(8, 16);
|
|
7144
7151
|
const amountBN = new import_bn2.BN(amountBytes, "le");
|
|
7145
7152
|
amount = amountBN.toNumber() / LAMPORTS_PER_SOL;
|
|
7153
|
+
} else {
|
|
7154
|
+
amount = 0;
|
|
7146
7155
|
}
|
|
7147
7156
|
} else if (dataBuffer.length >= 16) {
|
|
7148
7157
|
const amountBytes = dataBuffer.subarray(8, 16);
|