diff --git a/packages/blockchain-link-types/src/common.ts b/packages/blockchain-link-types/src/common.ts index 75004777e2cf..39731e5fac6b 100644 --- a/packages/blockchain-link-types/src/common.ts +++ b/packages/blockchain-link-types/src/common.ts @@ -7,6 +7,7 @@ import type { ContractInfo, StakingPool, } from './blockbook-api'; +import type { SolanaStakingAccount } from './solana'; /* Common types used in both params and responses */ @@ -197,6 +198,7 @@ export interface AccountInfo { availableBalance: string; empty: boolean; tokens?: TokenInfo[]; // ethereum and blockfrost tokens + stakingAccounts?: SolanaStakingAccount[]; // solana staking accounts addresses?: AccountAddresses; // bitcoin and blockfrost addresses history: { total: number; // total transactions (unknown in ripple) diff --git a/packages/blockchain-link-types/src/solana.ts b/packages/blockchain-link-types/src/solana.ts index 43784826b061..65021e431520 100644 --- a/packages/blockchain-link-types/src/solana.ts +++ b/packages/blockchain-link-types/src/solana.ts @@ -1,4 +1,9 @@ -import type { ParsedTransactionWithMeta } from '@solana/web3.js'; +import type { + ParsedTransactionWithMeta, + AccountInfo, + ParsedAccountData, + PublicKey, +} from '@solana/web3.js'; export type SolanaValidParsedTxWithMeta = ParsedTransactionWithMeta & { meta: Required>; @@ -12,6 +17,11 @@ export type SolanaTokenAccountInfo = { decimals: number | undefined; }; +export type SolanaStakingAccount = { + account: AccountInfo; + pubkey: PublicKey; +}; + export type { ParsedInstruction, ParsedTransactionWithMeta,