forked from kaspanet/rusty-kaspa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PaymentDestination::Change in Generator * py-note cleanup * comment clean up * example cleanup * cleanup * lint
- Loading branch information
Showing
19 changed files
with
135 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ISC License | ||
|
||
Copyright (c) 2022-2024 Kaspa developers | ||
|
||
Permission to use, copy, modify, and distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
VENV_DIR="env" | ||
|
||
if [ ! -d "$VENV_DIR" ]; then | ||
echo "Creating virtual environment in $VENV_DIR..." | ||
echo "Creating virtual environment in '$VENV_DIR'" | ||
python3 -m venv $VENV_DIR | ||
else | ||
echo "Virtual environment already exists, using '$VENV_DIR'" | ||
fi | ||
|
||
echo "Activating virtual environment..." | ||
echo "Activating virtual environment '$VENV_DIR'" | ||
source $VENV_DIR/bin/activate | ||
|
||
if ! command -v maturin &> /dev/null; then | ||
echo "Maturin not found, installing..." | ||
echo "Maturin not found in '$VENV_DIR', installing Maturin" | ||
pip install maturin | ||
else | ||
echo "Maturin is already installed." | ||
echo "Maturin is already installed in '$VENV_DIR'" | ||
maturin --version | ||
fi | ||
|
||
echo "Running 'maturin develop --features py-sdk'..." | ||
maturin develop --release --features py-sdk | ||
BUILD_CMD="maturin develop --target-dir ./target --features py-sdk" | ||
echo "Building with command '$BUILD_CMD'" | ||
$BUILD_CMD | ||
|
||
echo "Script execution completed." | ||
echo "Build complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
VENV_DIR="env" | ||
|
||
if [ ! -d "$VENV_DIR" ]; then | ||
echo "Creating virtual environment in '$VENV_DIR'" | ||
python3 -m venv $VENV_DIR | ||
else | ||
echo "Virtual environment already exists, using '$VENV_DIR'" | ||
fi | ||
|
||
echo "Activating virtual environment '$VENV_DIR'" | ||
source $VENV_DIR/bin/activate | ||
|
||
if ! command -v maturin &> /dev/null; then | ||
echo "Maturin not found in '$VENV_DIR', installing Maturin" | ||
pip install maturin | ||
else | ||
echo "Maturin is already installed in '$VENV_DIR'" | ||
maturin --version | ||
fi | ||
|
||
BUILD_CMD="maturin build --release --strip --sdist --target-dir target --out target/wheels --features py-sdk" | ||
echo "Building with command '$BUILD_CMD'" | ||
$BUILD_CMD | ||
|
||
echo "Build complete." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.