@entros/pulse-sdk 3.3.0 → 3.3.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.mjs CHANGED
@@ -5456,19 +5456,19 @@ async function fetchIdentityState(walletPubkey, connection) {
5456
5456
  const accountInfo = await connection.getAccountInfo(identityPda);
5457
5457
  if (!accountInfo) return null;
5458
5458
  const coder = new anchor.BorshAccountsCoder(entros_anchor_default);
5459
- const decoded = coder.decode("identityState", accountInfo.data);
5459
+ const decoded = coder.decode("IdentityState", accountInfo.data);
5460
5460
  return {
5461
5461
  owner: decoded.owner.toBase58(),
5462
- creationTimestamp: decoded.creationTimestamp.toNumber(),
5463
- lastVerificationTimestamp: decoded.lastVerificationTimestamp.toNumber(),
5464
- verificationCount: decoded.verificationCount,
5465
- trustScore: decoded.trustScore,
5466
- currentCommitment: new Uint8Array(decoded.currentCommitment),
5462
+ creationTimestamp: decoded.creation_timestamp.toNumber(),
5463
+ lastVerificationTimestamp: decoded.last_verification_timestamp.toNumber(),
5464
+ verificationCount: decoded.verification_count,
5465
+ trustScore: decoded.trust_score,
5466
+ currentCommitment: new Uint8Array(decoded.current_commitment),
5467
5467
  mint: decoded.mint.toBase58(),
5468
5468
  // Anchor's Borsh coder returns the raw BN for i64 fields; .toNumber()
5469
5469
  // is safe here because Unix timestamps fit in Number.MAX_SAFE_INTEGER
5470
5470
  // until year 275760.
5471
- lastResetTimestamp: decoded.lastResetTimestamp?.toNumber?.() ?? 0
5471
+ lastResetTimestamp: decoded.last_reset_timestamp?.toNumber?.() ?? 0
5472
5472
  };
5473
5473
  } catch {
5474
5474
  return null;