-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the espresso-dev-node server (#1709)
* Add a server in espresso-dev-node for easy debugging * Optimization after reviews
- Loading branch information
1 parent
3116b56
commit 23b90ba
Showing
3 changed files
with
250 additions
and
42 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,46 @@ | ||
[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 | ||
Returns | ||
``` | ||
{ | ||
"builder_url": string, | ||
"prover_port": integer, | ||
"l1_url": string, | ||
"light_client_address:" address, | ||
} | ||
``` | ||
""" | ||
|
||
[route.sethotshotdown] | ||
PATH = ["set-hotshot-down"] | ||
METHOD = "POST" | ||
DOC = """ | ||
Set the hotshot down since the given L1 height. | ||
Body: | ||
``` | ||
{ | ||
"height": integer, | ||
} | ||
``` | ||
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.sethotshotup] | ||
PATH = ["set-hotshot-up"] | ||
METHOD = "POST" | ||
DOC = """ | ||
Set the hotshot up 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