const e=require(`../../constants/protocol.constants.cjs`),t=require(`../../error-handling/logger.cjs`);require(`../../error-handling/index.cjs`);var n=n=>{let r={};return n.forEach(({assetInfo:n,id:i})=>{if(e.NFT_TRANSACTION_TYPES.includes(n.standard)&&i)try{if(n?.contractAddress){let e=n.contractAddress.toLowerCase();r[e]||(r[e]=[]),r[e].push(BigInt(i).toString())}}catch(e){t.Logger.error(`Failed to parse tokenId: ${i}`,e)}}),r};exports.extractTokenIdsFromAssetChanges=n;