Skip to content

Commit aad8a84

Browse files
committed
update
1 parent 40bcbe5 commit aad8a84

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/oracle/fetch.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ export async function fetchSignedContext(
3939
);
4040
}
4141

42-
// Strip the internal `type` discriminant before ABI encoding
43-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
44-
const { type: _type, ...orderStruct } = request.order;
4542
const encoded = encodeAbiParameters(OracleSingleAbiParams, [
46-
orderStruct,
43+
request.order,
4744
BigInt(request.inputIOIndex),
4845
BigInt(request.outputIOIndex),
4946
request.counterparty,
@@ -79,6 +76,7 @@ export async function fetchSignedContext(
7976
new OracleError(
8077
`Oracle fetch error: ${err instanceof Error ? err.message : String(err)}`,
8178
OracleErrorType.FetchError,
79+
err,
8280
),
8381
);
8482
} finally {

src/oracle/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export namespace OracleConstants {
1313
export const COOLOFF_DURATION_MS = 5 * 60 * 1_000;
1414

1515
/** List of known oracle URLs */
16-
export const KnownUrls = ["https://st0x-oracle-server.fly.dev/context"] as const;
16+
export const KnownUrls = [
17+
"https://st0x-oracle-server.fly.dev/context",
18+
"https://st0x-oracle-server.fly.dev/context/v1",
19+
] as const;
1720

1821
export function isKnown(url: string): boolean {
1922
return KnownUrls.includes(url as any);

0 commit comments

Comments
 (0)