-
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.
feat: implement EboActor.onResponseProposed handler (#19)
# 🤖 Linear Closes GRT-82 ## Description * Implemented `EboActor.onResponseProposed` handler * Extracted some shared behavior inside `EboActor` to private methods * Separated `EboActor` test suite inside a folder `eboActor/` with a **single file per method**, as the set up/mocking for each handler + scenario tends to be pretty loaded * Mocked `logger` in some test files that were generating some stdout noise during `vitest` execution
- Loading branch information
Showing
8 changed files
with
371 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Address } from "viem"; | ||
|
||
import { Request } from "../../src/types/prophet"; | ||
|
||
export const DEFAULT_MOCKED_PROTOCOL_CONTRACTS = { | ||
oracle: "0x123456" as Address, | ||
epochManager: "0x654321" as Address, | ||
}; | ||
|
||
export const DEFAULT_MOCKED_PROPHET_REQUEST: Request = { | ||
disputeModule: "0x01" as Address, | ||
finalityModule: "0x02" as Address, | ||
requestModule: "0x03" as Address, | ||
resolutionModule: "0x04" as Address, | ||
responseModule: "0x05" as Address, | ||
requester: "0x10" as Address, | ||
}; |
Oops, something went wrong.