import { networkRegistry as e } from "../../constants/chains.constants.mjs";
import { createTronWeb as t, evmHexToTronBase58Address as n } from "../../functions/utils/tron.utils.mjs";
import { createJsonRpcProvider as r } from "../../functions/utils/create-provider.mjs";
import "../../functions/utils/index.mjs";
import { ethers as i } from "ethers";
//#region libs/shared/common/src/data-structures/Hinkal/hinkalCheckTokenRegistry.ts
var a = async (e, t, n) => await e.checkTokenRegistry(t, n), o = (t) => {
	let n = e[t].contractData, a = r(t);
	if (!n.hinkalHelperAddress || !n.hinkalHelperABI) throw Error("hinkal helpercontract data not found");
	return new i.Contract(n.hinkalHelperAddress, n.hinkalHelperABI, a);
}, s = async (r, i, a) => {
	let o = t(a), { contractData: s } = e[a], { hinkalHelperAddress: c, hinkalHelperABI: l } = s;
	if (!c || !l) throw Error("hinkal helper contract data not found");
	let u = o.contract(l, n(c)), d = r.map(n);
	return !!await u.checkTokenRegistry(d, i.map(String)).call();
};
//#endregion
export { o as createHinkalHelperFromData, a as hinkalCheckTokenRegistry, s as hinkalCheckTronTokenRegistry };
