Commit Graph

172 Commits

Author SHA1 Message Date
refcell.eth 7e3fe40613
feat(examples): Introduces working examples (#126)
* ⚙️ examples and more cleanup

* ⚙️ examples
2022-12-02 18:41:50 -05:00
HAOYUatHZ e8642fe521
build(github CI): replace `actions/cache@v2` with `Swatinem/rust-cache@v2` (#123) 2022-12-02 18:39:41 -05:00
Andreas Bigger 4f99cfef95 more websocket progress 2022-12-02 13:39:57 -08:00
Andreas Bigger 81e5a08828 stash websocket progress 2022-12-02 13:30:16 -08:00
Andreas Bigger f28483dfd7 ⚙️ upstream sync 2022-12-02 11:45:53 -08:00
Andreas Bigger cda8f39b4c ⚙️ examples 2022-12-02 08:24:03 -08:00
Andreas Bigger 2b1aeba534 ⚙️ examples and more cleanup 2022-12-02 07:21:28 -08:00
HAOYUatHZ e4071fea6e
build(CI): add cargo clippy (#122) 2022-12-01 20:21:20 -05:00
andreas 161e0fbfb9
feat: checkpoint fallbacks (#120)
* 🏗️ checkpoint fallback initial impl

* 🚧 checkpoint fallbacks

*  checkpoint fallbacks

* ⚙️ fix result types

* ♻️ checkpoints refactoring

* 🔨 import nits

* 🚀 graceful checkpoint fallbacks

*  parallel checkpoint fallback service fetching using async tokio tasks

* 📝 readme touchups
2022-12-01 20:18:23 -05:00
andreas 8d240c2fe3
Merge pull request #119 from abigger87/@abigger87/websockets 2022-11-30 19:10:04 -08:00
Andreas Bigger 55839e5479 🏗️ start websocket support 2022-11-30 09:01:43 -08:00
Abdel @ StarkWare 4d721e86c3
chore: export CallOpts type (#118) 2022-11-30 08:48:12 -08:00
asnared 21c73c1649
feat: Lints, Clippy, and Cleaning (#115)
*  cargo fmt smells

* ♻️ cargo cleaning
2022-11-29 17:31:25 -08:00
Noah Citron 5e29149297
fix: remove leading zeros in rpc responses (#113) 2022-11-26 16:47:20 -05:00
HAOYUatHZ f74724763c
build(github CI): add cargo cache (#109) 2022-11-22 11:45:14 -05:00
HAOYUatHZ 81c2d6ddd7
build: add rust_toolchain (#110) 2022-11-22 11:32:08 -05:00
Simon Saliba 3177ad55c1
feat: add `get_logs` RPC method (#108)
* Implemented RPC method get_logs

* Limit the max number of logs to 5

* remove unused import

Co-authored-by: Noah Citron <noah@jeff.org>
2022-11-17 12:14:13 -05:00
0xModene eaf5605d4d
feat: verify checkpoint has valid age (#105)
* check blockhash has valid timestamp

* remove warn log

* made checkpoint age req configurable

* renamed method to make more sense

* fixed broken tests

* formatting

* unit tests completed

* removed needless imports

* renaming vars
2022-11-14 15:23:51 -05:00
sragss 23bb207f1a
refactor: promote constant; switch to list chunking (#107)
* promote constant; switch to list chunking

* cargo fmt

Co-authored-by: Noah Citron <noah@jeff.org>
2022-11-11 19:45:08 -05:00
sragss b9d67e956b
feat: surface revert errors to RPC (#106)
* surface revert errors to RPC

* remove temp generic errors from evm, node

* merge resolution

* cargo fmt
2022-11-11 19:41:37 -05:00
Pablo Carranza Vélez d13df518d6
fix: explicit check for invalid divergent paths (#100)
* fix: avoid computing a wrong shared prefix length in proofs

* fix: avoid looping over the node_path twice, and fix test

* fix: properly validate proofs with divergent paths

* fix: cargo fmt

* fix: typo

* fix: tokio tests must be async
2022-11-09 13:20:19 -05:00
dadepo 2dbe057e3a
refactor: add count parameter to get_update and use 128 as the limit (#97)
* Make get_update take count. Limit count to 128 as specified in the spec

* use u8 instead of u32

* run cargo fmt to fix formating

* fix compilation in tests

* moved constants module into the consensus package
2022-11-08 16:24:55 -05:00
guacamoleoverflow b5d1dbc638
chore: fix typos (#96) 2022-11-08 04:57:40 -05:00
Noah Citron 4c72344b55
documentation: update readme (#95) 2022-11-07 17:50:25 -05:00
Noah Citron 6ff501352b
fix: install instructions (#94) 2022-11-07 16:21:35 -05:00
Noah Citron 23d0e6f658
chore: bumb version (#93) 2022-11-07 13:42:40 -05:00
Noah Citron 719c8c04c7
documentation: update readme (#92)
* update readme

* make tg badge blue

* lowercase badge titles

* lowercase license

* typo
2022-11-07 13:00:22 -05:00
Noah Citron b56dfbb5a7
feat: provide default consensus rpc (#91) 2022-11-07 10:24:37 -05:00
Noah Citron cbb96abd65
fix: better call error handling (#90) 2022-11-04 20:10:24 -04:00
Noah Citron 50cdfe25ad
chore: remove rpc logging (#89) 2022-11-04 17:09:13 -04:00
Noah Citron 0706755ec2
fix: correct blockhash access in calls (#88) 2022-11-04 16:37:30 -04:00
Noah Citron eaca764aac
feat: add retries to consensus rpc (#87)
* feat: add retries to consensus rpc

* fix tests
2022-11-04 11:05:18 -04:00
Noah Citron 20c86907e2
chore: render toml in readme (#86) 2022-11-03 21:57:46 -04:00
Noah Citron ba08cc1a3c
feat: use helios as a library (#85)
* add root helios package

* fix revm

* copy blocktag when passing to funcs

* run all tests

* update readme

* update readme

* update readme
2022-11-03 19:36:14 -04:00
Noah Citron f605f009a7
feat: add client builder (#84)
* add client builder

* use client builder in cli

* make build sync

* fix data dir override

* fix tests
2022-11-03 15:24:17 -04:00
Noah Citron 7841eb90e0
chore: pin git dependencies (#82) 2022-11-02 21:48:18 -04:00
Noah Citron 43a519d129
fix: use openssl (#81) 2022-11-02 20:32:22 -04:00
Noah Citron 8f375d8c44
fix retries (#80) 2022-11-02 15:26:15 -04:00
Noah Citron a9b34f3dee
refactor: clean up (#78)
* refactor client rpc

* refactor node

* remove unused deps

* remove unused import

* refactor consensus

* consensus refactor

* rename rpc traits

* refactor execution
2022-11-01 23:52:28 -04:00
Noah Citron d06fb73803
fix proof (#77) 2022-11-01 20:40:37 -04:00
Noah Citron 4444148f71
feat: handle full tx blocks (#75)
* fix: implement full tx blocks

* better error handling

* fix tests
2022-10-27 13:46:32 -04:00
Noah Citron 5e53cd6300
documentation: add license (#74) 2022-10-26 16:20:57 -04:00
Noah Citron 568934e4e3
documentation: write readme (#73)
* documentation: write readme

* fix build badge

* fix badge

* fix badge

* fix badge

* fix typo

* typo
2022-10-26 16:12:35 -04:00
Noah Citron 8588485665
fix: release ci (#72) 2022-10-25 19:27:33 -04:00
Noah Citron e801b0b926
fix: better bootstrap error message (#71) 2022-10-25 19:10:49 -04:00
Noah Citron 56d0ce5a72
refactor: rename to helios #70) 2022-10-25 18:23:43 -04:00
Noah Citron 4757fa06ff
fix: use updated consensus layer light client api (#68)
* update consensus api

* update mainnet checkpoint
2022-10-13 13:59:37 -04:00
Noah Citron 98420e5d63
fix: dns and file errors (#67) 2022-10-05 16:06:15 -04:00
Noah Citron edfa536987
fix: rpc port override (#65) 2022-10-05 15:10:01 -04:00
Noah Citron 8844f921e8
feat: improved configs (#64)
* migrate config to figment

* support env variables

* add better error messages

* fix tests

* refactor
2022-10-05 13:52:07 -04:00