File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments