-
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.
Merge remote-tracking branch 'origin/dev' into fix/discord-webhook
# Conflicts: # packages/automated-dispute/src/exceptions/index.ts
- Loading branch information
Showing
34 changed files
with
666 additions
and
107 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
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,22 +1,22 @@ | ||
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 "./notificationFailure.exception.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.
5 changes: 5 additions & 0 deletions
5
packages/automated-dispute/src/interfaces/eboRegistryCommand.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
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
26 changes: 26 additions & 0 deletions
26
packages/automated-dispute/src/services/eboRegistry/commands/noOp.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,26 @@ | ||
import { CommandAlreadyRun, CommandNotRun } from "../../../exceptions/index.js"; | ||
import { EboRegistryCommand } from "../../../interfaces/index.js"; | ||
|
||
export class NoOp implements EboRegistryCommand { | ||
private wasRun: boolean = false; | ||
|
||
private constructor() {} | ||
|
||
public static build(): NoOp { | ||
return new NoOp(); | ||
} | ||
|
||
name(): string { | ||
return "NoOp"; | ||
} | ||
|
||
run(): void { | ||
if (this.wasRun) throw new CommandAlreadyRun(NoOp.name); | ||
|
||
this.wasRun = true; | ||
} | ||
|
||
undo(): void { | ||
if (!this.wasRun) throw new CommandNotRun(NoOp.name); | ||
} | ||
} |
Oops, something went wrong.