generated from ethereum-optimism/.github
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a onchain execution on forked network with Hardcoded values. (#54)
* remove the authentication and execute a hardcoded transaction when cURL is received. * refactor: functions to add them as module of the `defender` struct. * refactor: clean code. * feat: executor to mock object during testing * refactor: Previous test are now working with the new executor mocking logic. * gitignore: ignore the `run.sh` that is used with `.air.toml`. * refactor: and the clean the code * feat: add the unit tests `TestHTTPServerHasOnlyPSPExecutionRoute` and `TestDefenderInitialization` and `TestHandlePostMockFetch` * docs: update the docs of the current functions. * docs: update the docs with necessaries fields * refactor: clean up the codes + remove the `calldata` fields that is now useless from the API * docs: fix docs with typos * remove the calldata from the tests * docs: improve the readme with the tab and the field used for the each fields. * docs: improve the docs * chore: fix alignement * Update op-defender/psp_executor/defender.go Co-authored-by: Kevin Z Chen <kevin.zchn@gmail.com> * Update op-defender/psp_executor/api_test.go Co-authored-by: Kevin Z Chen <kevin.zchn@gmail.com> * refactor: replace `expectedErr` to `expectErr`. --------- Co-authored-by: Kevin Z Chen <kevin.zchn@gmail.com>
- Loading branch information
Showing
6 changed files
with
279 additions
and
119 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 |
---|---|---|
|
@@ -64,3 +64,4 @@ crytic-export | |
|
||
bin | ||
op-defender/.air.toml | ||
op-defender/run.sh |
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
Oops, something went wrong.