import { API_CONFIG as e } from "../constants/server.constants.mjs";
import { SERVER_URL as t } from "./getServerURL.mjs";
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
import "../data-structures/http/index.mjs";
import { hashEthereumAddress as r } from "../functions/utils/addresses.mjs";
import { ethers as i } from "ethers";
//#region libs/shared/common/src/API/proxyAccountsCalls.ts
var a = (e, t) => {
	let n = t.getShieldedPrivateKey(), r = `HinkalProxyAccounts|${e.toLowerCase()}|${n}`;
	return i.keccak256(i.toUtf8Bytes(r));
}, o = async (r, i) => {
	let o = a(r, i);
	return await n.get(`${t}${e.ROUTES.getProxyAccounts(o)}`);
}, s = async (i, o, s) => {
	let c = a(i, o), l = r(i);
	return await n.post(`${t}${e.ROUTES.updateProxyAccounts}`, {
		secureKey: c,
		hashedEthereumAddress: l,
		proxyAccounts: s
	});
};
//#endregion
export { o as getProxyAccounts, s as updateProxyAccounts };
