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

Update ckb js vm tutorial #462

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1,476 changes: 0 additions & 1,476 deletions examples/ckb-js-script/Cargo.lock

This file was deleted.

15 changes: 0 additions & 15 deletions examples/ckb-js-script/Cargo.toml

This file was deleted.

120 changes: 0 additions & 120 deletions examples/ckb-js-script/Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions examples/ckb-js-script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ In this project, we show different ways to integrate CKB-js-vm into your smart c
called spawn, where you can call CKB-js-vm from your script use `ckb_spawn` systcall and one is to
use Script structure to load and execute your JavaScript script in a live cell.

There is also a full tutorial covering all the details for yout to run JavaScript smart contracts
on CKB in the official docs webesite: [docs.nervos.org](https://docs.nervos.org).
There is also a full tutorial covering all the details for you to run JavaScript smart contracts
on CKB in the official docs website: [docs.nervos.org](https://docs.nervos.org).

*This project was bootstrapped with [ckb-script-templates].*

Expand Down
2 changes: 0 additions & 2 deletions examples/ckb-js-script/contracts/run-js/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions examples/ckb-js-script/contracts/run-js/Cargo.toml

This file was deleted.

76 changes: 0 additions & 76 deletions examples/ckb-js-script/contracts/run-js/Makefile

This file was deleted.

7 changes: 0 additions & 7 deletions examples/ckb-js-script/contracts/run-js/README.md

This file was deleted.

44 changes: 0 additions & 44 deletions examples/ckb-js-script/contracts/run-js/src/main.rs

This file was deleted.

8 changes: 7 additions & 1 deletion examples/ckb-js-script/deps/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
ckb-js-vm is a binary built for javascript engine on CKB-VM, you can rebuild it from https://github.com/nervosnetwork/ckb-js-vm
# ckb-js-vm

`ckb-js-vm` is a binary built for javascript engine on CKB-VM, you can rebuild it from https://github.com/nervosnetwork/ckb-js-vm

This binary is locked with the commit hash [c158de314783151b6fb023420dd5d5bff2bc2772](https://github.com/nervosnetwork/ckb-js-vm/commit/c158de314783151b6fb023420dd5d5bff2bc2772)

`compile.awk` is copied from https://github.com/nervosnetwork/ckb-js-vm/blob/c158de314783151b6fb023420dd5d5bff2bc2772/tools/compile.awk and used to compile js source code into binary for CKB-VM.
Binary file modified examples/ckb-js-script/deps/ckb-js-vm
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/ckb-js-script/deps/compile.awk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/awk -f

{
# Check if the line starts with "Script log: "
if ($0 ~ /^Script log: /) {
# Remove "Script log: " from the line
line_data = gensub(/^Script log: /, "", "g")

# If the remaining line is not empty, print it
if (line_data != "") {
print line_data
}
}
}
Binary file modified examples/ckb-js-script/js/build/sudt.bc
Binary file not shown.
31 changes: 0 additions & 31 deletions examples/ckb-js-script/scripts/find_clang

This file was deleted.

9 changes: 0 additions & 9 deletions examples/ckb-js-script/tests/Cargo.toml

This file was deleted.

Loading
Loading