Skip to content

Commit

Permalink
feat(blockchain-link-type): change bigint to string in persist
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Mar 1, 2025
1 parent d54f973 commit 3ecc87c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/blockchain-link-types/src/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export type { Address } from '@solana/web3.js';

export type SolanaStakingAccount = {
status: string;
stake?: bigint;
rentExemptReserve: bigint;
stake?: string;
rentExemptReserve: string;
};

export type TokenDetailByMint = { [mint: string]: { name: string; symbol: string } };
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const getSolanaStakingData = async (
if (!EVERSTAKE_VOTER_PUBKEYS.includes(voterPubkey)) return; // filter out non-everstake accounts

return {
rentExemptReserve: fields[0]?.rentExemptReserve,
stake: fields[1]?.delegation?.stake,
rentExemptReserve: fields[0]?.rentExemptReserve.toString(),
stake: fields[1]?.delegation?.stake.toString(),
status: stakeState,
};
}
Expand Down

0 comments on commit 3ecc87c

Please sign in to comment.