Skip to content

Commit 0de91e6

Browse files
chore: update AcrossApiErrors (#239)
* chore: update AcrossApiErrors * changeset
1 parent 2aca217 commit 0de91e6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/large-rats-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@across-protocol/app-sdk": patch
3+
---
4+
5+
update AcrossApiErrors

packages/sdk/src/errors/acrossApi.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ export type AcrossErrorCodeType = keyof typeof AcrossErrorCode;
55
export const AcrossErrorCode = {
66
// Status: 40X
77
INVALID_PARAM: "INVALID_PARAM",
8+
INVALID_METHOD: "INVALID_METHOD",
89
MISSING_PARAM: "MISSING_PARAM",
910
SIMULATION_ERROR: "SIMULATION_ERROR",
1011
AMOUNT_TOO_LOW: "AMOUNT_TOO_LOW",
1112
AMOUNT_TOO_HIGH: "AMOUNT_TOO_HIGH",
1213
ROUTE_NOT_ENABLED: "ROUTE_NOT_ENABLED",
14+
SWAP_LIQUIDITY_INSUFFICIENT: "SWAP_LIQUIDITY_INSUFFICIENT",
15+
SWAP_QUOTE_UNAVAILABLE: "SWAP_QUOTE_UNAVAILABLE",
16+
SWAP_TYPE_NOT_GUARANTEED: "SWAP_TYPE_NOT_GUARANTEED",
17+
ABI_ENCODING_ERROR: "ABI_ENCODING_ERROR",
1318

1419
// Status: 50X
1520
UPSTREAM_RPC_ERROR: "UPSTREAM_RPC_ERROR",
1621
UPSTREAM_HTTP_ERROR: "UPSTREAM_HTTP_ERROR",
22+
UPSTREAM_GATEWAY_TIMEOUT: "UPSTREAM_GATEWAY_TIMEOUT",
23+
UNEXPECTED_ERROR: "UNEXPECTED_ERROR",
1724
} as const;

0 commit comments

Comments
 (0)