{"version":3,"sources":["../src/wallets/solana.ts"],"sourcesContent":["import type { TransactionInstruction } from \"@solana/web3.js\";\nimport type { WalletClient } from \"./core\";\n\nexport function isSolanaWalletClient(wallet: WalletClient): wallet is SolanaWalletClient {\n    return wallet.getChain().type === \"solana\";\n}\n\nexport type SolanaTransaction = {\n    instructions: TransactionInstruction[];\n};\n\nexport type SolanaReadRequest = {\n    accountAddress: string;\n};\n\nexport type SolanaReadResult = {\n    value: unknown;\n};\n\nexport type SolanaTransactionResult = {\n    hash: string;\n};\n\nexport interface SolanaWalletClient extends WalletClient {\n    sendTransaction: (transaction: SolanaTransaction) => Promise<SolanaTransactionResult>;\n    read: (request: SolanaReadRequest) => Promise<SolanaReadResult>;\n}\n"],"mappings":";AAGO,SAAS,qBAAqB,QAAoD;AACrF,SAAO,OAAO,SAAS,EAAE,SAAS;AACtC;","names":[]}