import { NFT_TRANSACTION_TYPES as e } from "../../constants/protocol.constants.mjs";
import { Logger as t } from "../../error-handling/logger.mjs";
import "../../error-handling/index.mjs";
//#region libs/shared/common/src/functions/utils/nftTokenFunctions.ts
var n = (n) => {
	let r = {};
	return n.forEach(({ assetInfo: n, id: i }) => {
		if (e.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.error(`Failed to parse tokenId: ${i}`, e);
		}
	}), r;
};
//#endregion
export { n as extractTokenIdsFromAssetChanges };
