-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add initial ethereum light client #150
Merged
gjermundgaraba
merged 53 commits into
main
from
gjermund/142-create-initial-08-wasm-ethereum-light-client
Dec 11, 2024
Merged
Changes from 18 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
a577c12
current state minus cosmwasm
gjermundgaraba bb1a04f
testing and cleanup
gjermundgaraba 39c0414
fork tree_hash for now
gjermundgaraba 8052da9
lint
gjermundgaraba c657b38
Merge branch 'main' into gjermund/142-create-initial-08-wasm-ethereum…
gjermundgaraba 699cdf4
add run-script
gjermundgaraba 14ebe5a
Merge branch 'main' into gjermund/142-create-initial-08-wasm-ethereum…
gjermundgaraba 9022dfa
add wasm target to cosmwasm build in ci
gjermundgaraba 2387472
move features out of top-level cargo
gjermundgaraba d95dd17
Merge branch 'main' into gjermund/142-create-initial-08-wasm-ethereum…
gjermundgaraba a3854e4
lint and fix just lint command
gjermundgaraba ee4df25
fix cosmwasm ci build
gjermundgaraba 60730c2
cr fixes
gjermundgaraba 26cb328
Merge branch 'main' into gjermund/142-create-initial-08-wasm-ethereum…
gjermundgaraba e9c1626
cargo lock
gjermundgaraba 8577c38
fix e2e test in pow mode
gjermundgaraba b9d0ef4
add cosmwasm-check to ci
gjermundgaraba 2d1c2b2
added unit tests on cosmwasm contract
gjermundgaraba abf2ef9
some minor cleanup before review
gjermundgaraba 34df628
Update packages/ethereum-light-client/src/types/sync_committee.rs
gjermundgaraba 1026bd2
Update programs/08-wasm-eth/src/msg.rs
gjermundgaraba 001807f
add source errors to error messages
gjermundgaraba 4021f54
remove From trait for json serializaiton
gjermundgaraba b4de277
remove no_std feature from typenum
gjermundgaraba 2f6b5da
fix spacing issue
gjermundgaraba 5ec6b9b
tree_hash using workspace
gjermundgaraba d0b7eac
Update programs/08-wasm-eth/src/state.rs
gjermundgaraba 1991845
consistent returns macro usage
gjermundgaraba 8ca1579
move optimized wasm build to justfile
gjermundgaraba 6b5acb1
use div_ceil
gjermundgaraba 6192e7e
Update packages/ethereum-light-client/src/types/wrappers.rs
gjermundgaraba 82a4493
consistent line breaks for wrapper tree_hash fns
gjermundgaraba c346d0b
Update packages/ethereum-light-client/src/types/sync_committee.rs
gjermundgaraba afe0db9
rename load_fixture
gjermundgaraba f205908
move and rename cw light client program
gjermundgaraba d1e9199
remove tendermint proto crate
gjermundgaraba 9dd789a
remove export metadata
gjermundgaraba e0d216e
update wasm ci file name for check
gjermundgaraba 68e99f1
move and use branch consts everywhere
gjermundgaraba c9de44d
add readme with WIP warnings and acknowledgements
gjermundgaraba fc9958a
change ensure to macro
gjermundgaraba a4ac4aa
added unit tests for supermajority check
gjermundgaraba 68a50d2
move rust fixtures into a single file per test
gjermundgaraba 9cae4fa
docs: updated readmes
srdtrk a56859d
docs: fully linted and documented wasm client
srdtrk c792160
refactor: custom query
srdtrk b99018f
docs: update README
srdtrk 52dfc31
docs: refactored and added docs to all of `ethereum-light-client`
srdtrk 13caeb1
refactor: use match instead of if
srdtrk 0442375
lint: fixed clippy complaint
srdtrk 373d094
docs: added linting and docs to triedb
srdtrk 2b5eaa0
deps: added std feature for error impl
srdtrk b1e90e2
imp: removed ethereum-utils::base64
srdtrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -101,3 +101,34 @@ jobs: | |
with: | ||
command: build | ||
args: --bin operator --release --locked | ||
|
||
build-08-wasm-eth: | ||
name: build-08-wasm-eth | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v4" | ||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
target: wasm32-unknown-unknown | ||
- name: Install cargo-run-script and cosmwasm-check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: cargo-run-script cosmwasm-check | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: run-script | ||
args: build-08-wasm-eth | ||
# checks that the wasm binary is a proper cosmwasm smart contract | ||
# it checks for things like memories, exports, imports, available capabilities, and non-determinism | ||
- name: Check cosmwasm file | ||
run: cosmwasm-check artifacts/cw_08_wasm_etheruem_light_client.wasm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Name of the file should have changed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed! |
||
|
||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we shouldn't be building with docker in this CI, and use the rust toolchain instead. I'm also not a fan of using cargo scripts.
justfile
should sufficeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the docker build to actually verify that we can build the optimized wasm file and then verify it. I don't see any issues with building with docker in CI here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There aren't any issues. the docker uses a specific version of rust whereas I'd like us to use the latest stable. That's all