From 3b0cb77a19bf36dbe2e2ba4035d08830d9580de8 Mon Sep 17 00:00:00 2001 From: Robi Date: Tue, 19 Nov 2024 11:49:40 +0100 Subject: [PATCH] chore: api config + optional tx_hash status res (#22) --- src/constants.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index bd24266..a88c873 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -2,7 +2,7 @@ import type { ChainConfig, ChainName, EvmChainConfig, SuiChainConfig } from "./t export const DEFAULT_MAX_RETRY = 3 export const DEFAULT_RETRY_DELAY_MS = 2000 -export const SOLVER_API_ENDPOINT = "localhost:3000" // TODO +export const SOLVER_API_ENDPOINT = "http://34.224.47.185" // TODO - replace with the production one export const chainConfig: Record = { ["arb"]: { diff --git a/src/types.ts b/src/types.ts index f8e5234..8199872 100644 --- a/src/types.ts +++ b/src/types.ts @@ -104,7 +104,7 @@ export type IntentStatusRequest = { export type IntentStatusResponse = { status: IntentStatusCode - tx_hash: string + tx_hash?: string // defined only if status is 3 } export type CreateIntentOrderPayload = {