Skip to content
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(node): Implement running node in browser #112

Merged
merged 55 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
5730e50
Implement wasm-node
fl0rek Oct 24, 2023
d287a9d
move network, mark test server
fl0rek Oct 25, 2023
7938e18
fix native build
fl0rek Oct 25, 2023
d46a985
Apply Maciek's PR suggestions
fl0rek Oct 25, 2023
98b7603
PR fixes
fl0rek Oct 25, 2023
a2f65f8
Maciek's PR review
fl0rek Oct 25, 2023
3213f44
Remove clap from node
fl0rek Oct 25, 2023
51dfcf3
fix js, move static
fl0rek Oct 25, 2023
c56cee6
Merge server into main celestia command
fl0rek Oct 26, 2023
dc38ed2
fix CI
fl0rek Oct 26, 2023
4d37353
Cleanup
fl0rek Oct 26, 2023
82b7ad8
refactor js code
fl0rek Oct 26, 2023
d38e976
Improve js
fl0rek Oct 26, 2023
c67ebe1
Apply suggestions from code review
fl0rek Oct 27, 2023
110a73d
Yiannis PR review
fl0rek Oct 27, 2023
8a2283f
Fix timers properly, add wrappers for libp2p
fl0rek Oct 27, 2023
ab78352
fix visibility
fl0rek Oct 27, 2023
55078b9
Separate Network for wasm-node
fl0rek Oct 27, 2023
6074307
Update celestia/static/run_node.js
fl0rek Oct 27, 2023
731aaf7
Part of Maciek's review
fl0rek Oct 27, 2023
0b86bc2
missed js
fl0rek Oct 27, 2023
6f10345
reciprocal js changes, autostart setup
fl0rek Oct 27, 2023
df80277
Change cli interface, rework error handling
fl0rek Oct 31, 2023
b3176aa
move libp2p to workspace
fl0rek Oct 31, 2023
fd54ee2
Merge remote-tracking branch 'eiger/main' into feat/browser-node
fl0rek Oct 31, 2023
2cb3b40
cleanup ser-de
fl0rek Oct 31, 2023
731ad89
Data binding in js
fl0rek Oct 31, 2023
99a14a6
Update .github/workflows/ci.yml
fl0rek Oct 31, 2023
4ed86b2
Apply suggestions from code review
fl0rek Oct 31, 2023
e7e6e9f
Maciek's js
fl0rek Oct 31, 2023
d7d19f5
Update celestia/static/index.html
fl0rek Oct 31, 2023
f77eccd
js again
fl0rek Oct 31, 2023
f82d572
Merge remote-tracking branch 'eiger/main' into feat/browser-node
fl0rek Oct 31, 2023
170a4c8
print store head only on restore
fl0rek Oct 31, 2023
8ea50c8
include store
fl0rek Oct 31, 2023
02e7748
wasm-node -> node-wasm rename
fl0rek Oct 31, 2023
8749b84
wasm-node -> node-wasm rename
fl0rek Oct 31, 2023
2f96d8a
replace .gitignore with .gitkeep in wasm build dir
zvolin Nov 2, 2023
e25c0ce
remove left unwraps
zvolin Nov 2, 2023
6a193bf
refactor error handling
zvolin Nov 3, 2023
2c47927
rename node-wasm to celestia-node-wasm
zvolin Nov 3, 2023
a082bf3
run format on js and html
zvolin Nov 3, 2023
02a508b
update bootstrap nodes
zvolin Nov 3, 2023
c3fbbb4
Merge remote-tracking branch 'eiger/main' into feat/browser-node
fl0rek Nov 10, 2023
c141b1b
Add eiger webtransport node, update API
fl0rek Nov 10, 2023
4b55f33
Change node config to plain js object
fl0rek Nov 13, 2023
d718f84
Update node-wasm/src/node.rs
fl0rek Nov 13, 2023
109a4f0
Update celestia/static/run_node.js
fl0rek Nov 13, 2023
3de4879
Update node-wasm/src/node.rs
fl0rek Nov 13, 2023
d6b7492
fmt
fl0rek Nov 13, 2023
ed57249
update readme
fl0rek Nov 13, 2023
5c47105
change js wasmconfig to be object again
fl0rek Nov 13, 2023
d250bde
Update wasm-bindgen everywhere, fix docs, cleanup
fl0rek Nov 14, 2023
849f819
add fields to node-wasm cargo.toml for wasm-pack sake
fl0rek Nov 14, 2023
1adfcb6
Apply suggestions from code review
fl0rek Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
- name: Test node crate
run: wasm-pack test --headless --chrome node

- name: Build and pack node-wasm
run: wasm-pack build --release --target web node-wasm && wasm-pack pack node-wasm


test:
runs-on: ubuntu-latest
Expand Down
220 changes: 215 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[workspace]
resolver = "2"
members = ["celestia", "node", "proto", "rpc", "types"]
members = ["celestia", "node", "proto", "rpc", "types", "node-wasm"]

[workspace.dependencies]
celestia-node = { version = "0.1.0", path = "node" }
celestia-node-wasm = { version = "0.1.0", path = "node-wasm" }
celestia-proto = { version = "0.1.0", path = "proto" }
celestia-rpc = { version = "0.1.0", path = "rpc", default-features = false }
celestia-types = { version = "0.1.0", path = "types", default-features = false }
Expand Down
Loading
Loading