Skip to content

Commit

Permalink
improve(clients): Add "NotReady" failure cause
Browse files Browse the repository at this point in the history
This is useful in the looping model where some SpokePoolClient instances
will be updated faster than others. The looping model doesn't wait for
the SpokePoolClient to be ready, so it's useful to signal that update
did not occur, rather than assuming that it did.
  • Loading branch information
pxrl committed Sep 11, 2024
1 parent 9928cbc commit 5ae2613
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.1.33",
"version": "3.1.34",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/clients/BaseAbstractClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CachingMechanismInterface } from "../interfaces";
import { EventSearchConfig, isDefined, MakeOptional } from "../utils";

export enum UpdateFailureReason {
NotReady,
AlreadyUpdated,
BadRequest,
RPCError,
Expand Down
1 change: 1 addition & 0 deletions src/clients/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export {
AcrossConfigStoreClient,
ConfigStoreUpdate,
} from "./AcrossConfigStoreClient";
export { UpdateFailureReason } from "./BaseAbstractClient"

Check warning on line 7 in src/clients/index.ts

View workflow job for this annotation

GitHub Actions / Lint

Insert `;`

Check failure on line 7 in src/clients/index.ts

View workflow job for this annotation

GitHub Actions / Lint

Missing semicolon
export { HubPoolClient, LpFeeRequest } from "./HubPoolClient";
export { SpokePoolClient, SpokePoolUpdate } from "./SpokePoolClient";
export * as BundleDataClient from "./BundleDataClient";
Expand Down

0 comments on commit 5ae2613

Please sign in to comment.