UNPKG

@renegade-fi/core

Version:
15 lines 683 B
import { ADMIN_ASSIGN_ORDER_ROUTE } from "../constants.js"; import { postRelayerWithAdmin } from "../utils/http.js"; export async function assignOrder(config, parameters) { const { orderId, matchingPool } = parameters; const { getBaseUrl } = config; const logger = config.getLogger("core:actions:assignOrder"); try { await postRelayerWithAdmin(config, getBaseUrl(ADMIN_ASSIGN_ORDER_ROUTE(orderId, matchingPool))); } catch (error) { logger.error(`Failed to assign order to matching pool: ${error instanceof Error ? error.message : String(error)}`, { orderId, matchingPool }); throw error; } } //# sourceMappingURL=assignOrder.js.map