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

Javascript console that exposes Filecoin API #2492

Merged
merged 87 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
bfc2db5
Add Javascript console that exposes Filecoin API
elmattic Feb 1, 2023
df9d117
Merge branch 'main' into elmattic/js-console
elmattic Feb 2, 2023
8c2fd46
Refactor clones inside macro
elmattic Feb 2, 2023
40c9c23
Fix clippy errors
elmattic Feb 2, 2023
4eb3a24
Merge branch 'main' into elmattic/js-console
elmattic Feb 2, 2023
1836cd7
Add saving commands in ~/.forest_history
elmattic Feb 2, 2023
5b5c208
Add some util function
elmattic Feb 2, 2023
83e7063
Add filtering of undefined value
elmattic Feb 3, 2023
82673f8
Add :clear command to the repl
elmattic Feb 3, 2023
adbc9f3
Add some wallet endpoints
elmattic Feb 3, 2023
96da23a
Add mpool push and send message
elmattic Feb 3, 2023
52216b3
Fix lint errors
elmattic Feb 3, 2023
8f9cdd5
Add optimisation to showWallet
elmattic Feb 3, 2023
5818f78
Merge branch 'main' into elmattic/js-console
elmattic Feb 3, 2023
bd36459
Add chainGetName endpoint
elmattic Feb 3, 2023
2ae9e3e
Add newline
elmattic Feb 3, 2023
494830b
Add --jspath flag and prelude.js overriding
elmattic Feb 3, 2023
3c38e08
Add tww more functions
elmattic Feb 3, 2023
83b6b5f
Add comment
elmattic Feb 3, 2023
aed365c
Move prelude into its own file
elmattic Feb 3, 2023
5d5bda3
Better prelude
elmattic Feb 6, 2023
c78754b
Add some comment
elmattic Feb 6, 2023
c202026
Add exec optional flag
elmattic Feb 6, 2023
1b5248d
Add more wallet endpoints
elmattic Feb 6, 2023
cc3f6e8
Try to fix rustsec issue
elmattic Feb 7, 2023
4caccb8
Merge branch 'main' into elmattic/js-console
elmattic Feb 7, 2023
9412a2f
Add missing Cargo.lock file
elmattic Feb 7, 2023
db6ca0b
Merge branch 'main' into elmattic/js-console
elmattic Feb 7, 2023
444a9a0
Refactor function to method and remove print for exec flag
elmattic Feb 8, 2023
fc9634e
Better support for require
elmattic Feb 8, 2023
8183991
Merge branch 'main' into elmattic/js-console
elmattic Feb 10, 2023
f764ab9
cargo fmt
elmattic Feb 10, 2023
625ed28
Add eslint to gh actions
elmattic Feb 10, 2023
961adca
Fix yaml stuff
elmattic Feb 10, 2023
e102709
Add dedicated js lint file
elmattic Feb 10, 2023
be59cbf
Try to fix workflow
elmattic Feb 10, 2023
92a83ff
Try to fix workflow
elmattic Feb 10, 2023
bd4bddd
Upgrade version
elmattic Feb 10, 2023
df22bff
tinker js lint
LesnyRumcajs Feb 10, 2023
4d8c1d0
Try to add package file
elmattic Feb 10, 2023
9b81f01
Tinkering with version
elmattic Feb 10, 2023
37f6d5c
Wipe package
elmattic Feb 10, 2023
8361cb3
try lerna
LesnyRumcajs Feb 13, 2023
927fd19
Move prelude to its own module file
elmattic Feb 13, 2023
89bf7e9
Add package file
elmattic Feb 13, 2023
a610ece
Merge remote-tracking branch 'origin/tinker-js-console' into elmattic…
elmattic Feb 13, 2023
58bfaa8
make clippy happy
elmattic Feb 13, 2023
41b663f
Remove console lints
elmattic Feb 13, 2023
04ee6cb
Try again removing console eslint errors
elmattic Feb 13, 2023
2f83cfe
Try to fix eslint errors
elmattic Feb 13, 2023
ffd4c3c
Add missing global
elmattic Feb 13, 2023
b85f784
Merge branch 'main' into elmattic/js-console
elmattic Feb 13, 2023
a8ded3f
Remove println
elmattic Feb 13, 2023
fa8fc40
Add some documentation to mdbook
elmattic Feb 14, 2023
83fe278
Add display oj JsValue for exec flag
elmattic Feb 14, 2023
481351e
Merge branch 'main' into elmattic/js-console
elmattic Feb 14, 2023
2d6467c
Update CHANGELOG
elmattic Feb 14, 2023
0ea98d1
Better documentation
elmattic Feb 17, 2023
e03ba58
Better documentation
elmattic Feb 17, 2023
02619e4
Remove unwrap
elmattic Feb 17, 2023
e8f7f78
Cherry pick require from shutdown branch
elmattic Feb 17, 2023
9a1c9f5
Add better support for require
elmattic Feb 17, 2023
c7aa69a
Add proper display of errors
elmattic Feb 20, 2023
f976c90
Move js lint job inside scripts lint file
elmattic Feb 20, 2023
56fe9ad
Merge branch 'main' into elmattic/js-console
elmattic Feb 20, 2023
b3f4b4e
Use boa_engine crate
elmattic Feb 20, 2023
8ac6679
Make clippy happy
elmattic Feb 20, 2023
4fc710b
Always import Prelude functions
elmattic Feb 20, 2023
92fd762
Add time crate to cargo audit ignore flag
elmattic Feb 20, 2023
e011e17
Update documentation/src/js_console.md
elmattic Feb 20, 2023
8ab9487
Add cli token flag documentation
elmattic Feb 20, 2023
ca86656
Update documentation
elmattic Feb 20, 2023
d0b2ed9
Update documentation/src/js_console.md
elmattic Feb 20, 2023
beeb0e9
Add to call to console in calibnet CI
elmattic Feb 20, 2023
14402f8
Merge branch 'main' into elmattic/js-console
elmattic Feb 20, 2023
2dd9080
Update documentation/developer_documentation/CLI.md
elmattic Feb 21, 2023
df7933c
Update documentation/src/js_console.md
elmattic Feb 21, 2023
a5d1f1f
Merge branch 'main' into elmattic/js-console
elmattic Feb 22, 2023
3374bce
Fix incorrect js-console doc
elmattic Feb 22, 2023
20b6477
Update json packages
elmattic Feb 22, 2023
404ecb5
Update json package
elmattic Feb 22, 2023
8fd0593
Use lerna run lint
elmattic Feb 22, 2023
6adbaab
Update CLI documentation
elmattic Feb 22, 2023
d65397d
Move to Message shim
elmattic Feb 22, 2023
7995b6e
Fix missing entry for coverage
elmattic Feb 22, 2023
8269534
Merge branch 'main' into elmattic/js-console
elmattic Feb 22, 2023
9d5ba74
Add yarn.lock file
elmattic Feb 22, 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
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ jobs:
run: |
forest-cli snapshot export
sha256sum -c *.sha256sum
- name: js console
run: forest-cli --attach --exec 'showPeers()'
- name: validate snapshot
run: |
forest-cli --chain mainnet snapshot validate $SNAPSHOT_DIRECTORY/*.car --force &&
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/scripts-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ jobs:
run: |
gem install rubocop --no-document
rubocop scripts/
run-js-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
lerna bootstrap
lerna run lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ genesis.json
/.cargo/*
!/.cargo/*.toml
node/rpc-api/static/ast.ron
documentation/book/**/*
documentation/book/**/*
node_modules
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Notable updates:

### Added
* [database] added ParityDb statistics to the stats endpoint. [#2444](https://github.com/ChainSafe/forest/pull/2444)
* [cli] A JavaScript console to interact with Filecoin API. [#2492](https://github.com/ChainSafe/forest/pull/2492)
* [docker] Multi-platform Docker image support. [#2552](https://github.com/ChainSafe/forest/pull/2552)
* [forest daemon] Added `--exit-after-init` and `--save-token` flags. [#2577](https://github.com/ChainSafe/forest/pull/2577)

Expand Down
Loading