-
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.
- Loading branch information
Showing
20 changed files
with
692 additions
and
72 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
7 changes: 7 additions & 0 deletions
7
packages/automated-dispute/src/exceptions/decodeLogDataFailure.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,7 @@ | ||
export class DecodeLogDataFailure extends Error { | ||
constructor(err: unknown) { | ||
super(`Error decoding log data: ${err}`); | ||
|
||
this.name = "DecodeLogDataFailure"; | ||
} | ||
} |
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
8 changes: 8 additions & 0 deletions
8
packages/automated-dispute/src/exceptions/invalidBlockRangeError.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,8 @@ | ||
export class InvalidBlockRangeError extends Error { | ||
constructor(fromBlock: bigint, toBlock: bigint) { | ||
super( | ||
`Invalid block range: fromBlock (${fromBlock}) must be less than or equal to toBlock (${toBlock})`, | ||
); | ||
this.name = "InvalidBlockRangeError"; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/automated-dispute/src/exceptions/unsupportedEvent.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,6 @@ | ||
export class UnsupportedEvent extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = "UnsupportedEvent"; | ||
} | ||
} |
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.