UNPKG

@renegade-fi/core

Version:
10 lines 432 B
import { WALLET_ORDERS_ROUTE } from "../constants.js"; import { getRelayerWithAuth } from "../utils/http.js"; import { getWalletId } from "./getWalletId.js"; export async function getOrders(config) { const { getBaseUrl } = config; const walletId = getWalletId(config); const res = await getRelayerWithAuth(config, getBaseUrl(WALLET_ORDERS_ROUTE(walletId))); return res.orders; } //# sourceMappingURL=getOrders.js.map