-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a server in espresso-dev-node for easy debugging
- Loading branch information
1 parent
dbc04c1
commit 2038cbe
Showing
3 changed files
with
198 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[meta] | ||
NAME = "espresso_dev_node_server" | ||
DESCRIPTION = "A server for debugging and developing with the espresso dev node" | ||
FORMAT_VERSION = "0.1.0" | ||
|
||
[route.devinfo] | ||
PATH = ["/dev-info"] | ||
DOC = """ | ||
Get the debug info | ||
""" | ||
|
||
[route.freeze] | ||
PATH = ["mock-contract/freeze/:height"] | ||
":height" = "Integer" | ||
DOC = """ | ||
Freeze the L1 height in the light client contract. | ||
By doing this, the L1 height in the light contract will be frozen and rollups will detect | ||
the HotShot failure. This is intended to be used when testing the rollups' functionalities. | ||
""" | ||
|
||
[route.unfreeze] | ||
PATH = ["mock-contract/unfreeze"] | ||
DOC = """ | ||
Unfreeze the L1 height in the light client contract. | ||
This is intended to be used when `freeze` has been called previously. By unfreezing the L1 height, | ||
rollups will detect the reactivity of HotShot. | ||
""" |
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