Skip to content

Commit

Permalink
update rgb-lib to 0.3.0-alpha.6 + bump version to 0.3.0a6
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Aug 29, 2024
1 parent 15a2f7c commit 6a6c8fe
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/demo/
/dist/
/rgb-lib/
/src/rgb_lib/_rgb_lib/librgblibffi.so
/src/rgb_lib/_rgb_lib/librgblibuniffi.so
/src/rgb_lib/_rgb_lib/rgb_lib.py
/build.sh
/poetry.lock
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
**/__pycache__
/dist/
/poetry.lock
/src/rgb_lib/_rgb_lib/librgblibffi.so
/src/rgb_lib/_rgb_lib/librgblibuniffi.so
/src/rgb_lib/_rgb_lib/rgb_lib.py
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This project builds a Python library, `rgb-lib`, for the [rgb-lib]
Rust library, which is included as a git submodule. The bindings are created by
the [rgb-lib-ffi] project, which is located inside the rgb-lib submodule.
the [rgb-lib-uniffi] project, which is located inside the rgb-lib submodule.

## Install from PyPI

Expand Down Expand Up @@ -73,6 +73,6 @@ poetry publish

[cargo]: https://github.com/rust-lang/cargo
[rgb-lib]: https://github.com/RGB-Tools/rgb-lib
[rgb-lib-ffi]: https://github.com/RGB-Tools/rgb-lib/tree/master/rgb-lib-ffi
[rgb-lib-uniffi]: https://github.com/RGB-Tools/rgb-lib/tree/master/bindings/uniffi
[latest release]: https://pypi.org/project/rgb-lib/
[poetry]: https://github.com/python-poetry/poetry
2 changes: 1 addition & 1 deletion demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /home/$USER
USER $USER

RUN python3 -m pip install --no-warn-script-location \
jupyterlab matplotlib python-magic qrcode rgb-lib==0.3.0a4
jupyterlab matplotlib python-magic qrcode rgb-lib==0.3.0a6

COPY --chown=$USER:$USER rgb-lib.ipynb sample.png ./

Expand Down
8 changes: 4 additions & 4 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ set -euo pipefail
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
PY_SRC="${SCRIPT_DIR}/src/rgb_lib/_rgb_lib/"

RGBLIBFFI_PATH="./rgb-lib/rgb-lib-ffi"
RGBLIBFFI_PATH="./rgb-lib/bindings/uniffi"
MANIFEST_PATH=(--manifest-path "$RGBLIBFFI_PATH/Cargo.toml")

echo "Generating librgblibffi.so..."
echo "Generating librgblibuniffi.so..."
cargo build "${MANIFEST_PATH[@]}"
cp "$RGBLIBFFI_PATH/target/debug/librgblibffi.so" "$PY_SRC/"
cp "$RGBLIBFFI_PATH/target/debug/librgblibuniffi.so" "$PY_SRC/"

echo "Generating rgb_lib.py..."
cargo run "${MANIFEST_PATH[@]}" \
--bin rgb-lib-ffi-bindgen generate $RGBLIBFFI_PATH/src/rgb-lib.udl \
--bin rgb-lib-uniffi-bindgen generate $RGBLIBFFI_PATH/src/rgb-lib.udl \
--out-dir "$PY_SRC" --language python --no-format
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = 'rgb-lib'
version = '0.3.0a4'
version = '0.3.0a6'
description = 'RGB Lib Python language bindings.'
license = 'MIT'
authors = ['Zoe Faltibà <zoefaltiba@gmail.com>', 'Nicola Busanello <nicola.busanello@gmail.com>']
Expand Down
2 changes: 1 addition & 1 deletion rgb-lib
Submodule rgb-lib updated 63 files
+4 −3 .gitignore
+449 −460 Cargo.lock
+11 −8 Cargo.toml
+5 −6 README.md
+22 −0 bindings/README.md
+5,130 −0 bindings/c-ffi/Cargo.lock
+38 −0 bindings/c-ffi/Cargo.toml
+37 −0 bindings/c-ffi/Makefile
+49 −0 bindings/c-ffi/README.md
+19 −0 bindings/c-ffi/build.rs
+158 −0 bindings/c-ffi/cbindgen.toml
+134 −0 bindings/c-ffi/example.c
+226 −0 bindings/c-ffi/src/lib.rs
+330 −0 bindings/c-ffi/src/utils.rs
+565 −656 bindings/uniffi/Cargo.lock
+6 −6 bindings/uniffi/Cargo.toml
+30 −0 bindings/uniffi/README.md
+7 −0 bindings/uniffi/build.rs
+0 −0 bindings/uniffi/src/lib.rs
+1 −0 bindings/uniffi/src/rgb-lib.udl
+0 −0 bindings/uniffi/uniffi-bindgen.rs
+9 −0 bindings/uniffi/uniffi.toml
+2 −2 codecov.yml
+0 −38 rgb-lib-ffi/README.md
+0 −55 rgb-lib-ffi/build.rs
+0 −9 rgb-lib-ffi/uniffi.toml
+13 −13 src/api/proxy.rs
+1 −1 src/database/mod.rs
+7 −0 src/error.rs
+1 −0 src/keys.rs
+4 −5 src/lib.rs
+39 −21 src/wallet/backup.rs
+27 −0 src/wallet/offline.rs
+87 −49 src/wallet/online.rs
+8 −12 src/wallet/rust_only.rs
+99 −43 src/wallet/test/backup.rs
+26 −26 src/wallet/test/blind_receive.rs
+10 −10 src/wallet/test/create_utxos.rs
+15 −15 src/wallet/test/delete_transfers.rs
+9 −9 src/wallet/test/drain_to.rs
+2 −2 src/wallet/test/export_contract.rs
+28 −24 src/wallet/test/fail_transfers.rs
+23 −19 src/wallet/test/get_asset_balance.rs
+5 −5 src/wallet/test/get_asset_metadata.rs
+13 −8 src/wallet/test/go_online.rs
+28 −21 src/wallet/test/issue_asset_cfa.rs
+18 −18 src/wallet/test/issue_asset_nia.rs
+22 −22 src/wallet/test/issue_asset_uda.rs
+3 −3 src/wallet/test/list_assets.rs
+6 −6 src/wallet/test/list_transactions.rs
+10 −10 src/wallet/test/list_transfers.rs
+13 −13 src/wallet/test/list_unspents.rs
+6 −5 src/wallet/test/mod.rs
+8 −8 src/wallet/test/new.rs
+39 −36 src/wallet/test/refresh.rs
+21 −23 src/wallet/test/rust_only.rs
+362 −358 src/wallet/test/send.rs
+27 −40 src/wallet/test/utils/api.rs
+6 −2 src/wallet/test/utils/helpers.rs
+2 −2 src/wallet/test/witness_receive.rs
+8 −3 tests/docker-compose.yml
+177 −0 tests/regtest.sh
+0 −79 tests/start_services.sh

0 comments on commit 6a6c8fe

Please sign in to comment.