-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 🤖 Linear Closes GRT-242 ## Description * Catches all errors thrown by decoding `bytes` properties read from Prophet events * Removes `ProphetCodec.decode...` calls from ProtocolProvider `getXXXEvent` to use them during actual event processing and not event fetching
- Loading branch information
Showing
22 changed files
with
344 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
export * from "./blockNumberServiceRequired.exception.js"; | ||
export * from "./customContractError.js"; | ||
export * from "./decodeLogDataFailure.js"; | ||
export * from "./eboActor/index.js"; | ||
export * from "./eboProcessor/index.js"; | ||
export * from "./eboRegistry/index.js"; | ||
|
||
export * from "./errorFactory.js"; | ||
export * from "./invalidAccountOnClient.exception.js"; | ||
export * from "./invalidActorState.exception.js"; | ||
export * from "./invalidBlockHash.exception.js"; | ||
export * from "./invalidBlockRangeError.exception.js"; | ||
export * from "./invalidDisputeStatus.exception.js"; | ||
export * from "./prophetDecodingError.exception.js"; | ||
export * from "./requestAlreadyHandled.exception.js"; | ||
export * from "./requestMismatch.exception.js"; | ||
export * from "./responseAlreadyProposed.exception.js"; | ||
export * from "./rpcUrlsEmpty.exception.js"; | ||
export * from "./transactionExecutionError.exception.js"; | ||
export * from "./invalidAccountOnClient.exception.js"; | ||
export * from "./unsupportedEvent.exception.js"; | ||
export * from "./decodeLogDataFailure.js"; | ||
export * from "./invalidBlockRangeError.exception.js"; | ||
export * from "./unknownCustomError.exception.js"; | ||
export * from "./invalidBlockHash.exception.js"; | ||
export * from "./unknownDisputeStatus.exception.js"; | ||
export * from "./blockNumberServiceRequired.exception.js"; | ||
export * from "./customContractError.js"; | ||
export * from "./errorFactory.js"; | ||
export * from "./unsupportedEvent.exception.js"; |
13 changes: 13 additions & 0 deletions
13
packages/automated-dispute/src/exceptions/prophetDecodingError.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ByteArray, Hex } from "viem"; | ||
|
||
export class ProphetDecodingError extends Error { | ||
constructor( | ||
public readonly id: string, | ||
public readonly data: ByteArray | Hex, | ||
public readonly err?: Error, | ||
) { | ||
super(`Failed to decode ${id} with data ${data}.`); | ||
|
||
this.name = "ProphetDecodingError"; | ||
} | ||
} |
6 changes: 0 additions & 6 deletions
6
packages/automated-dispute/src/exceptions/unknownDisputeStatus.exception.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.