require(`../../../../_virtual/_rolldown/runtime.cjs`),require(`../../constants/chains.constants.cjs`);const e=require(`../../crypto/poseidon.cjs`),t=require(`./caseInsensitive.utils.cjs`),n=require(`../../data-structures/utxo/Utxo.cjs`);require(`../../data-structures/crypto-keys/encryptDecryptUtxo.cjs`);const r=require(`./bytes32.utils.cjs`);let i=require(`@coral-xyz/anchor`),a=require(`@solana/web3.js`);var o=(o,s,c,l)=>[...new i.EventParser(s.programId,new i.BorshCoder(s.idl)).parseLogs(o.meta?.logMessages??[])].filter(({name:e})=>t.caseInsensitiveEqual(e,`newCommitment`)).filter(({data:e})=>e.encryptedOutput.length===0).map(t=>{let{onChainData:i}=t.data,[o,s,l,u,,,,d]=i.map(r.convertBytes32ToBigInt),[,f,p]=i,m=new a.PublicKey([...f.slice(16),...p.slice(16)]),h=e.poseidonHash(s,l),g=new n.Utxo({amount:o,timeStamp:d.toString(),randomization:u,shieldedPrivateKey:c.getShieldedPrivateKey(),mintAddress:m.toBase58(),erc20TokenAddress:h});return g.getStealthAddress(),g}).filter(e=>t.caseInsensitiveEqual(e.erc20TokenAddress,l));exports.getOnChainUtxosFromReceiptSolana=o;