import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
import { RELAYER_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";
//#region libs/shared/common/src/API/privacy-score-calls.ts
var i = async ({ ethereumAddress: i }) => {
	let a = r(i);
	return n.get(`${t}${e.getPrivateTransactionsRatio(a)}`);
}, a = async ({ ethereumAddress: i, privacyScore: a }) => {
	let o = r(i);
	return n.post(`${t}${e.savePrivacyScoreAndGetPrivacyRank}`, {
		hashedOwner: o,
		privacyScore: a
	});
};
//#endregion
export { i as getPrivateTransactionRatio, a as savePrivacyScoreAndGetPrivacyRank };
