import { ENCLAVE_URL as e } from "../functions/snarkjs/constant.mjs";
import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
import "../data-structures/http/index.mjs";
import { Mutex as n } from "async-mutex";
//#region libs/shared/common/src/API/enclaveUtxoCalls.ts
var r = new n(), i = async (n, i, a) => r.runExclusive(async () => await t.post(`${e}/decrypt-utxos`, {
	chainId: n,
	input: a,
	key: i
})), a = async (n, r, i, a) => await t.post(`${e}/store-utxo`, {
	recipientEthAddress: n,
	encryptedUtxo: r,
	key: i,
	chainId: a
}), o = async (n, r, i, a, o, s) => await t.post(`${e}/get-utxos`, {
	ethAddress: n,
	encryptedSignature: r,
	key: i,
	chainId: a,
	isSolanaLedger: o,
	txMessageForSolanaLedger: s
});
//#endregion
export { i as decryptUtxoEnclaveCall, o as getUtxosEnclaveCall, a as storeUtxoEnclaveCall };
