import { absBigInt as e } from "../../functions/utils/amounts.utils.mjs";
import { getTokenLimitStorageAccountPublicKey as t } from "../../functions/pre-transaction/solana.mjs";
import { PublicKey as n } from "@solana/web3.js";
//#region libs/shared/common/src/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.ts
var r = async (r, i, a, o) => {
	for (let s = 0; s < a.length; s += 1) {
		let c = t(r.programId, i, new n(a[s]));
		if (!await r.provider.connection.getAccountInfo(c, "confirmed")) continue;
		let l = BigInt((await r.account.tokenLimitStorageAccount.fetch(c, "confirmed")).amountLimit.toString());
		if (l !== 0n && e(o[s]) > l) return !0;
	}
	return !1;
};
//#endregion
export { r as hinkalCheckSolanaTokenRegistry };
