UNPKG

@renegade-fi/core

Version:
20 lines 731 B
import { DEPOSIT_BALANCE_ROUTE } from "../constants.js"; import { postRelayerWithAuth } from "../utils/http.js"; import { getWalletId } from "./getWalletId.js"; export async function depositRequest(config, parameters) { const { request } = parameters; const { getBaseUrl } = config; const walletId = getWalletId(config); try { const res = await postRelayerWithAuth(config, getBaseUrl(DEPOSIT_BALANCE_ROUTE(walletId)), request); console.log(`task update-wallet(${res.task_id}): ${walletId}`); return { taskId: res.task_id }; } catch (error) { console.error(`${walletId}`, { error, }); throw error; } } //# sourceMappingURL=depositRequest.js.map