Skip to content

Commit

Permalink
Align with api format of flashbots builder (#8)
Browse files Browse the repository at this point in the history
* Copy paste shoot_payloads script

* Script to send single test payload to api

* Adjust api to take in whole Validation Request Body in the same format as flashbots api

* Test deserialization of example message body

* Change namespace and method name ot be compatible with flashbots builder api

* Adjust test script to avoid argument list too long on linux

* Copy paste message != block checks form geth api

* Factor out message vs. block comparison to helper func

* Add test step to ci

* Adjust test command in README

* Fix build error

* Replace H256 with B256

* Replace dependency on reth fork with the real thing

* Start server in integrationtest

* Adjust test to send actual payload

* Fix test by expecting block unknown errror

* Move tokio to dev dependency

* cargo fmt

* Add additional test

* Clippy fix

* Rename it -> integration

* Remove pub(crate)

* Track Cargo.lock

* Lock reth commit explicitly

* Cargo fmt
  • Loading branch information
ckoopmann authored Oct 24, 2023
1 parent 5046655 commit 3def2f2
Show file tree
Hide file tree
Showing 17 changed files with 7,897 additions and 45 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ jobs:
command: clippy
args: --all --all-features --benches --tests

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
Loading

0 comments on commit 3def2f2

Please sign in to comment.