import { z as e } from "zod";
import "../../constants/chains.js";
import { INTENTS_CONTRACT as m } from "../../constants/intents.js";
import { queryContract as s } from "../near/queryContract.js";
async function f({
  accountId: o,
  tokenIds: t
}) {
  const r = await s({
    contractId: m,
    methodName: "mt_batch_balance_of",
    args: {
      account_id: o,
      token_ids: t
    }
  });
  return e.array(e.string()).transform((n) => n.map(BigInt)).parse(r);
}
async function _(o, t) {
  const r = await f({
    accountId: o,
    tokenIds: t
  }), n = {};
  for (let a = 0; a < t.length; a += 1) {
    const c = t[a], i = r[a];
    !c || !i || (n[c] = BigInt(i).toString());
  }
  return n;
}
export {
  _ as getIntentsBalances
};
//# sourceMappingURL=getIntentsBalance.js.map
