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

Generate types from a given ABI #87

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
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
9 changes: 9 additions & 0 deletions xsuite/build_wasms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@ do
fi
done

for file in **/*.abi.json
do
if [ -f "$file" ]; then
destination=$SOURCE_DIR/$file
mkdir -p "$(dirname "$destination")"
cp "$file" "$destination"
fi
done

shopt -u globstar dotglob
Empty file modified xsuite/cli.js
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions xsuite/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*/output/*
*/target/*
!*/output/*.wasm
!*/output/datatypes.abi.json
163 changes: 163 additions & 0 deletions xsuite/contracts/datatypes/Cargo.lock

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

8 changes: 8 additions & 0 deletions xsuite/contracts/datatypes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "datatypes"
version = "0.0.0"
edition = "2021"
publish = false

[dependencies.multiversx-sc]
version = "0.47.4"
Loading
Loading