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

[DO NOT MEERGE] c2wasm-cli & xrpld-cli #29

Draft
wants to merge 52 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
e2abbf1
add c2wasm-cli
dangell7 Jun 12, 2023
86575fd
fix vscode settings
dangell7 Jun 12, 2023
494dd21
update readme
dangell7 Jun 12, 2023
ad7994c
add sample env to cli
dangell7 Jun 14, 2023
e7e5ac3
update package.json
dangell7 Jun 14, 2023
56d206d
update readme.md
dangell7 Jun 14, 2023
79b9f6a
export build function
dangell7 Jun 14, 2023
5b2f74d
ignore wasi-sdk.ts (outputfile timestamp)
dangell7 Jun 14, 2023
b6d3c22
update readme.md
dangell7 Jun 14, 2023
57133a0
add async await to build
dangell7 Jun 14, 2023
15ca0d6
update yarn lock
dangell7 Jun 14, 2023
3ce574e
bump version
dangell7 Jun 14, 2023
9ef6e36
Update .env.sample
dangell7 Jun 14, 2023
3cef0fa
only build .c file and add example headers
dangell7 Jun 14, 2023
ec7177b
bump version
dangell7 Jun 14, 2023
b775806
update gitignore
dangell7 Jun 19, 2023
51d12d1
add default env
dangell7 Jun 19, 2023
5f0e593
update .gitignore
dangell7 Jun 19, 2023
9d7d123
add build file and logs
dangell7 Jun 19, 2023
ded7972
fix out dir bug
dangell7 Jun 19, 2023
1cafee4
release 1.0.4
dangell7 Jun 19, 2023
144c65e
add console log for error
dangell7 Jun 21, 2023
3afce52
update yarn lock
dangell7 Jun 22, 2023
c5f8fd8
fix build bug (create out dir if not exists)
dangell7 Jun 22, 2023
7fff6ae
bump version
dangell7 Jun 22, 2023
49b42a0
add `xrpld-cli`
dangell7 Jun 29, 2023
396b93e
add message
dangell7 Jul 3, 2023
bf05a7d
update c2wasm host env
dangell7 Jul 13, 2023
f6f0765
update xrpld-cli standalone
dangell7 Jul 13, 2023
31ef5af
bump c2wasm-cli version
dangell7 Jul 13, 2023
5ae89bf
bump `xrpld-cli` version
dangell7 Jul 13, 2023
650e400
replace container registry -> `transia`
dangell7 Aug 5, 2023
e55dee8
release new version
dangell7 Aug 5, 2023
78729cd
add guard checker
dangell7 Sep 12, 2023
5fa716e
update .gitignore
dangell7 Sep 12, 2023
69e393d
update makefile
dangell7 Sep 13, 2023
baea01b
add sample env
dangell7 Sep 14, 2023
8aa22cd
add genesis config to standalone
dangell7 Sep 25, 2023
767d997
update deps
dangell7 Oct 4, 2023
a53ae2c
bump version
dangell7 Oct 4, 2023
63dd197
update genesis
dangell7 Oct 4, 2023
82c6045
Update genesis.json
dangell7 Oct 4, 2023
45bdf52
bump version
dangell7 Oct 4, 2023
2dec361
fixup standalone
dangell7 Oct 22, 2023
0410fe3
update build version
dangell7 Nov 5, 2023
1bb90cd
update ports
dangell7 Nov 8, 2023
0e10fe1
fix explorer
dangell7 Nov 8, 2023
5ef0d0c
Removed c2wasm-api/clang/includes submodule
dangell7 Dec 8, 2023
b5bf0a7
Updated c2wasm-api/clang/includes submodule to use Xahau/xahaud
dangell7 Dec 8, 2023
0c5e4a2
update header location
dangell7 Dec 13, 2023
e593a19
remove guard check
dangell7 Dec 13, 2023
13c8fda
Update index.ts
dangell7 Dec 13, 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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ bin.zip
docker/c2wasm-api
docker/wasi-sdk
docker/clangd
docker/cleaner
docker/cleaner
wasi-sdk.ts
hook-cleaner
guard_checker
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
url = https://github.com/XRPLF/hook-cleaner-c
[submodule "c2wasm-api/clang/includes"]
path = c2wasm-api/clang/includes
url = https://github.com/XRPLF/hook-macros
url = https://github.com/Xahau/xahaud
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ unzip bin.zip
```

- CD to docker folder `cd docker`
- Run `make c2wasm-api && make clangd && make wasi-sdk && make hook-cleaner`
- Run `make c2wasm-api && make clangd && make wasi-sdk && make hook-cleaner && make c2wasm-api/clang/includes/src/ripple/app/hook`
- Run `docker-compose build`
- Run `docker-compose up` or `docker-compose up -d`
- This should start server at port `:9000`, the actual compiling endpoint is this: [http://localhost:9000/api/build](localhost:9000/api/build). Note that it takes a while to start.
2 changes: 1 addition & 1 deletion c2wasm-api/clang/includes
4 changes: 2 additions & 2 deletions c2wasm-api/copyheaders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ then
else
mkdir -p /work/c
fi
cp clang/includes/*.h /work/c
cp clang/includes/hook/*.h /work/c

if [ -d /app/clang/includes ]
then
rm /app/clang/includes/*.h
else
mkdir -p /app/clang/includes
fi
cp clang/includes/*.h /app/clang/includes
cp clang/include/hook/*.h /app/clang/includes
Loading