require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const t=require(`../functions/snarkjs/constant.cjs`);var n=new(require(`async-mutex`)).Mutex,r=async(r,i,a)=>n.runExclusive(async()=>await e.httpClient.post(`${t.ENCLAVE_URL}/decrypt-utxos`,{chainId:r,input:a,key:i})),i=async(n,r,i,a)=>await e.httpClient.post(`${t.ENCLAVE_URL}/store-utxo`,{recipientEthAddress:n,encryptedUtxo:r,key:i,chainId:a}),a=async(n,r,i,a,o,s)=>await e.httpClient.post(`${t.ENCLAVE_URL}/get-utxos`,{ethAddress:n,encryptedSignature:r,key:i,chainId:a,isSolanaLedger:o,txMessageForSolanaLedger:s});exports.decryptUtxoEnclaveCall=r,exports.getUtxosEnclaveCall=a,exports.storeUtxoEnclaveCall=i;