UNPKG

@renegade-fi/core

Version:
13 lines 583 B
import { ADMIN_TRIGGER_SNAPSHOT_ROUTE } from "../constants.js"; import { postRelayerWithAdmin } from "../utils/http.js"; export async function triggerRelayerSnapshot(config) { const logger = config.getLogger("core:actions:triggerRelayerSnapshot"); try { await postRelayerWithAdmin(config, config.getBaseUrl(ADMIN_TRIGGER_SNAPSHOT_ROUTE)); } catch (error) { logger.error(`Failed to trigger relayer snapshot: ${error instanceof Error ? error.message : String(error)}`, {}); throw error; } } //# sourceMappingURL=triggerRelayerSnapshot.js.map