-
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 feat/grt-145-fetch-ple…
…dges-before # Conflicts: # packages/automated-dispute/tests/mocks/eboActor.mocks.ts # packages/automated-dispute/tests/services/eboActor/onDisputeStatusUpdated.spec.ts
- Loading branch information
Showing
33 changed files
with
643 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
protocolProvider: | ||
rpcsConfig: | ||
l1: | ||
chainId: eip155:11155111 | ||
transactionReceiptConfirmations: 1 | ||
timeout: 10000 | ||
retryInterval: 150 | ||
l2: | ||
chainId: eip155:421614 | ||
transactionReceiptConfirmations: 1 | ||
timeout: 10000 | ||
retryInterval: 150 | ||
contracts: | ||
oracle: "0x10224eff6B1Caaf5daC49B2e7104b7161484B128" | ||
epochManager: "0x7975475801BEf845f10Ce7784DC69aB1e0344f11" | ||
eboRequestCreator: "0xa13318684281a820304C164427396385C306d870" | ||
bondEscalationModule: "0x52d7728fE87826FfF51b21b303e2FF7cB04F6Aec" | ||
horizonAccountingExtension: "0xbDAB27D1903da4e18B0D1BE873E18924514E52eC" | ||
|
||
blockNumberService: | ||
blockmetaConfig: | ||
baseUrl: "localhost:443" | ||
servicePaths: | ||
blockByTime: /sf.blockmeta.v2.BlockByTime | ||
block: /sf.blockmeta.v2.Block | ||
bearerTokenExpirationWindow: 31536000000 | ||
|
||
processor: | ||
msBetweenChecks: 7500 | ||
accountingModules: | ||
responseModule: "0xb97C59331F89a852Ae21aee215Da28820c533649" | ||
escalationModule: "0x52d7728fE87826FfF51b21b303e2FF7cB04F6Aec" |
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.
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.