Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into test/e2e-scenario-2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Oct 25, 2024
2 parents e711311 + 892e22e commit d3ba273
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/automated-dispute/src/exceptions/errorFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@ import { isDispute } from "../guards.js";
import { ErrorContext, ErrorHandlingStrategy, ErrorName } from "../types/index.js";

const errorStrategiesEntries: [ErrorName, ErrorHandlingStrategy][] = [
[
"Oracle_InvalidProposer",
{
shouldNotify: false,
shouldTerminate: false,
shouldReenqueue: true,
},
],
[
"Oracle_ResponseAlreadyProposed",
{
shouldNotify: false,
shouldTerminate: false,
shouldReenqueue: true,
},
],
[
"Oracle_InvalidDisputer",
{
shouldNotify: false,
shouldTerminate: false,
shouldReenqueue: true,
},
],
[
"ValidatorLib_InvalidResponseBody",
{
Expand Down
3 changes: 3 additions & 0 deletions packages/automated-dispute/src/types/errorTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export interface ErrorContext {

export type ErrorName =
| "UnknownError"
| "Oracle_InvalidProposer"
| "Oracle_ResponseAlreadyProposed"
| "Oracle_InvalidDisputer"
| "ValidatorLib_InvalidResponseBody"
| "BondEscalationAccounting_InsufficientFunds"
| "BondEscalationAccounting_AlreadySettled"
Expand Down

0 comments on commit d3ba273

Please sign in to comment.