diff --git a/core/.flake8 b/.flake8 similarity index 100% rename from core/.flake8 rename to .flake8 diff --git a/core/.github/release.yml b/.github/release.yml similarity index 100% rename from core/.github/release.yml rename to .github/release.yml diff --git a/core/.github/workflows/linter-flake8.yml b/.github/workflows/linter-flake8.yml similarity index 94% rename from core/.github/workflows/linter-flake8.yml rename to .github/workflows/linter-flake8.yml index 0fb0f3ce..d3a5fff3 100644 --- a/core/.github/workflows/linter-flake8.yml +++ b/.github/workflows/linter-flake8.yml @@ -19,5 +19,5 @@ jobs: pip install -r requirements-dev.txt - name: Lint with flake8 run: | - flake8 multiversx_sdk_core + flake8 multiversx_sdk continue-on-error: true diff --git a/core/.github/workflows/linter-pyright.yml b/.github/workflows/linter-pyright.yml similarity index 100% rename from core/.github/workflows/linter-pyright.yml rename to .github/workflows/linter-pyright.yml diff --git a/core/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml similarity index 100% rename from core/.github/workflows/python-publish.yml rename to .github/workflows/python-publish.yml diff --git a/core/.github/workflows/test.yml b/.github/workflows/test.yml similarity index 100% rename from core/.github/workflows/test.yml rename to .github/workflows/test.yml diff --git a/wallet/.gitignore b/.gitignore similarity index 99% rename from wallet/.gitignore rename to .gitignore index 061731de..8aa0319f 100644 --- a/wallet/.gitignore +++ b/.gitignore @@ -131,6 +131,8 @@ dmypy.json # Typings generated by VSCode typings/** +.idea + # Libraries !libbls.so !libbls.dylib diff --git a/wallet/.vscode/settings.json b/.vscode/settings.json similarity index 87% rename from wallet/.vscode/settings.json rename to .vscode/settings.json index 3011a2c4..6bc6b750 100644 --- a/wallet/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "python.testing.pytestArgs": [ - "multiversx_sdk_wallet" + "multiversx_sdk" ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, @@ -13,5 +13,6 @@ "source.organizeImports": true }, "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true, "python.languageServer": "Pylance" } diff --git a/wallet/LICENSE b/LICENSE similarity index 99% rename from wallet/LICENSE rename to LICENSE index 309adfa1..e239d91f 100644 --- a/wallet/LICENSE +++ b/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index e7d036ee..b6a81c0b 100644 --- a/README.md +++ b/README.md @@ -1 +1,36 @@ -# mx-sdk-py \ No newline at end of file +# mx-sdk-py + +The Python SDK for interacting with MultiversX. + +## Development setup + +### Virtual environment + +Create a virtual environment and install the dependencies: + +``` +python3 -m venv ./venv +source ./venv/bin/activate +pip install -r ./requirements.txt --upgrade +``` + +Install development dependencies, as well: + +``` +pip install -r ./requirements-dev.txt --upgrade +``` + +Above, `requirements.txt` should mirror the **dependencies** section of `pyproject.toml`. + +If using VSCode, restart it or follow these steps: + - `Ctrl + Shift + P` + - _Select Interpreter_ + - Choose `./venv/bin/python`. + +### Tests + +Run the tests as follows: + +``` +pytest . +``` diff --git a/core/.gitignore b/core/.gitignore deleted file mode 100644 index b6e47617..00000000 --- a/core/.gitignore +++ /dev/null @@ -1,129 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ diff --git a/core/.vscode/settings.json b/core/.vscode/settings.json deleted file mode 100644 index 53372519..00000000 --- a/core/.vscode/settings.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "python.testing.pytestArgs": [ - "multiversx_sdk_core" - ], - "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true, - "editor.formatOnSave": true, - "[python]": { - "editor.defaultFormatter": "ms-python.autopep8" - }, - "editor.defaultFormatter": "ms-python.autopep8", - "editor.codeActionsOnSave": { - "source.organizeImports": true - }, - "files.insertFinalNewline": true, - "python.languageServer": "Pylance" -} diff --git a/core/LICENSE b/core/LICENSE deleted file mode 100644 index 309adfa1..00000000 --- a/core/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 MultiversX - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/core/README.md b/core/README.md deleted file mode 100644 index ba15e244..00000000 --- a/core/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# mx-sdk-py-core - -Core components of the MultiversX Python SDK. - -## Distribution - - - GitHub: `git+https://git@github.com/multiversx/mx-sdk-py-core.git@v{Version}#egg=multiversx_sdk_core` - - [PyPi](https://pypi.org/user/multiversx/) - -## Documentation - -[docs.multiversx.com](https://docs.multiversx.com/sdk-and-tools/erdpy/erdpy/) - -## Development setup - -### Virtual environment - -Create a virtual environment and install the dependencies: - -``` -python3 -m venv ./venv -source ./venv/bin/activate -pip install -r ./requirements.txt --upgrade -``` - -Install development dependencies, as well: - -``` -pip install -r ./requirements-dev.txt --upgrade -``` - -Above, `requirements.txt` should mirror the **dependencies** section of `pyproject.toml`. - -If using VSCode, restart it or follow these steps: - - `Ctrl + Shift + P` - - _Select Interpreter_ - - Choose `./venv/bin/python`. - -### Tests - -Run the tests as follows: - -``` -pytest . -``` - -### Linting - -First, install [`pyright`](https://github.com/microsoft/pyright) as follows: - -``` -npm install --global pyright -``` - -Run `pyright`: - -``` -pyright -``` - -Run `flake8`: - -``` -flake8 multiversx_sdk_core -``` diff --git a/core/multiversx_sdk_core/testutils/testwallets/alice.pem b/core/multiversx_sdk_core/testutils/testwallets/alice.pem deleted file mode 100644 index d34d9d18..00000000 --- a/core/multiversx_sdk_core/testutils/testwallets/alice.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY for erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th----- -NDEzZjQyNTc1ZjdmMjZmYWQzMzE3YTc3ODc3MTIxMmZkYjgwMjQ1ODUwOTgxZTQ4 -YjU4YTRmMjVlMzQ0ZThmOTAxMzk0NzJlZmY2ODg2NzcxYTk4MmYzMDgzZGE1ZDQy -MWYyNGMyOTE4MWU2Mzg4ODIyOGRjODFjYTYwZDY5ZTE= ------END PRIVATE KEY for erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th----- diff --git a/core/multiversx_sdk_core/testutils/testwallets/bob.pem b/core/multiversx_sdk_core/testutils/testwallets/bob.pem deleted file mode 100644 index d33a997d..00000000 --- a/core/multiversx_sdk_core/testutils/testwallets/bob.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY for erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx----- -YjhjYTZmODIwM2ZiNGI1NDVhOGU4M2M1Mzg0ZGEwMzNjNDE1ZGIxNTViNTNmYjVi -OGViYTdmZjVhMDM5ZDYzOTgwNDlkNjM5ZTVhNjk4MGQxY2QyMzkyYWJjY2U0MTAy -OWNkYTc0YTE1NjM1MjNhMjAyZjA5NjQxY2MyNjE4Zjg= ------END PRIVATE KEY for erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx----- diff --git a/core/multiversx_sdk_core/testutils/testwallets/carol.pem b/core/multiversx_sdk_core/testutils/testwallets/carol.pem deleted file mode 100644 index 6c91cefe..00000000 --- a/core/multiversx_sdk_core/testutils/testwallets/carol.pem +++ /dev/null @@ -1,5 +0,0 @@ ------BEGIN PRIVATE KEY for erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8----- -ZTI1M2E1NzFjYTE1M2RjMmFlZTg0NTgxOWY3NGJjYzk3NzNiMDU4NmVkZWFkMTVh -OTRjYjcyMzVhNTAyNzQzNmIyYTExNTU1Y2U1MjFlNDk0NGUwOWFiMTc1NDlkODVi -NDg3ZGNkMjZjODRiNTAxN2EzOWUzMWEzNjcwODg5YmE= ------END PRIVATE KEY for erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8----- diff --git a/core/pyproject.toml b/core/pyproject.toml deleted file mode 100644 index 135c525d..00000000 --- a/core/pyproject.toml +++ /dev/null @@ -1,26 +0,0 @@ -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[project] -name = "multiversx-sdk-core" -version = "0.8.0" -authors = [ - { name="MultiversX" }, -] -license = "MIT" -description = "Core components of the MultiversX Python SDK." -readme = "README.md" -requires-python = ">=3.8" -classifiers = [ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", -] -dependencies = [ - "pycryptodomex==3.16.0", - "protobuf==3.20.1" -] - -[project.urls] -"Homepage" = "https://github.com/multiversx/mx-sdk-py-core" diff --git a/core/requirements-dev.txt b/core/requirements-dev.txt deleted file mode 100644 index e11368db..00000000 --- a/core/requirements-dev.txt +++ /dev/null @@ -1,4 +0,0 @@ -pytest -flake8 -autopep8 -multiversx-sdk-wallet>=0.8.0,<0.9.0 diff --git a/core/requirements.txt b/core/requirements.txt deleted file mode 100644 index 03be1fdb..00000000 --- a/core/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -pycryptodomex==3.16.0 -protobuf==3.20.1 diff --git a/core/multiversx_sdk_core/__init__.py b/multiversx_sdk/core/__init__.py similarity index 100% rename from core/multiversx_sdk_core/__init__.py rename to multiversx_sdk/core/__init__.py diff --git a/core/multiversx_sdk_core/account.py b/multiversx_sdk/core/account.py similarity index 100% rename from core/multiversx_sdk_core/account.py rename to multiversx_sdk/core/account.py diff --git a/core/multiversx_sdk_core/account_test.py b/multiversx_sdk/core/account_test.py similarity index 100% rename from core/multiversx_sdk_core/account_test.py rename to multiversx_sdk/core/account_test.py diff --git a/core/multiversx_sdk_core/address.py b/multiversx_sdk/core/address.py similarity index 100% rename from core/multiversx_sdk_core/address.py rename to multiversx_sdk/core/address.py diff --git a/core/multiversx_sdk_core/address_test.py b/multiversx_sdk/core/address_test.py similarity index 100% rename from core/multiversx_sdk_core/address_test.py rename to multiversx_sdk/core/address_test.py diff --git a/core/multiversx_sdk_core/bech32.py b/multiversx_sdk/core/bech32.py similarity index 100% rename from core/multiversx_sdk_core/bech32.py rename to multiversx_sdk/core/bech32.py diff --git a/core/multiversx_sdk_core/code_metadata.py b/multiversx_sdk/core/code_metadata.py similarity index 100% rename from core/multiversx_sdk_core/code_metadata.py rename to multiversx_sdk/core/code_metadata.py diff --git a/core/multiversx_sdk_core/code_metadata_test.py b/multiversx_sdk/core/code_metadata_test.py similarity index 100% rename from core/multiversx_sdk_core/code_metadata_test.py rename to multiversx_sdk/core/code_metadata_test.py diff --git a/core/multiversx_sdk_core/codec.py b/multiversx_sdk/core/codec.py similarity index 100% rename from core/multiversx_sdk_core/codec.py rename to multiversx_sdk/core/codec.py diff --git a/core/multiversx_sdk_core/constants.py b/multiversx_sdk/core/constants.py similarity index 100% rename from core/multiversx_sdk_core/constants.py rename to multiversx_sdk/core/constants.py diff --git a/core/multiversx_sdk_core/contract_query.py b/multiversx_sdk/core/contract_query.py similarity index 100% rename from core/multiversx_sdk_core/contract_query.py rename to multiversx_sdk/core/contract_query.py diff --git a/core/multiversx_sdk_core/contract_query_builder.py b/multiversx_sdk/core/contract_query_builder.py similarity index 100% rename from core/multiversx_sdk_core/contract_query_builder.py rename to multiversx_sdk/core/contract_query_builder.py diff --git a/core/multiversx_sdk_core/contract_query_builder_test.py b/multiversx_sdk/core/contract_query_builder_test.py similarity index 100% rename from core/multiversx_sdk_core/contract_query_builder_test.py rename to multiversx_sdk/core/contract_query_builder_test.py diff --git a/core/multiversx_sdk_core/errors.py b/multiversx_sdk/core/errors.py similarity index 100% rename from core/multiversx_sdk_core/errors.py rename to multiversx_sdk/core/errors.py diff --git a/core/multiversx_sdk_core/interfaces.py b/multiversx_sdk/core/interfaces.py similarity index 100% rename from core/multiversx_sdk_core/interfaces.py rename to multiversx_sdk/core/interfaces.py diff --git a/core/multiversx_sdk_core/message.py b/multiversx_sdk/core/message.py similarity index 100% rename from core/multiversx_sdk_core/message.py rename to multiversx_sdk/core/message.py diff --git a/core/multiversx_sdk_core/message_test.py b/multiversx_sdk/core/message_test.py similarity index 100% rename from core/multiversx_sdk_core/message_test.py rename to multiversx_sdk/core/message_test.py diff --git a/core/multiversx_sdk_core/proto/__init__.py b/multiversx_sdk/core/proto/__init__.py similarity index 100% rename from core/multiversx_sdk_core/proto/__init__.py rename to multiversx_sdk/core/proto/__init__.py diff --git a/core/multiversx_sdk_core/proto/transaction.proto b/multiversx_sdk/core/proto/transaction.proto similarity index 100% rename from core/multiversx_sdk_core/proto/transaction.proto rename to multiversx_sdk/core/proto/transaction.proto diff --git a/core/multiversx_sdk_core/proto/transaction_pb2.py b/multiversx_sdk/core/proto/transaction_pb2.py similarity index 100% rename from core/multiversx_sdk_core/proto/transaction_pb2.py rename to multiversx_sdk/core/proto/transaction_pb2.py diff --git a/core/multiversx_sdk_core/proto/transaction_pb2.pyi b/multiversx_sdk/core/proto/transaction_pb2.pyi similarity index 100% rename from core/multiversx_sdk_core/proto/transaction_pb2.pyi rename to multiversx_sdk/core/proto/transaction_pb2.pyi diff --git a/core/multiversx_sdk_core/proto/transaction_serializer.py b/multiversx_sdk/core/proto/transaction_serializer.py similarity index 100% rename from core/multiversx_sdk_core/proto/transaction_serializer.py rename to multiversx_sdk/core/proto/transaction_serializer.py diff --git a/core/multiversx_sdk_core/proto/transaction_serializer_test.py b/multiversx_sdk/core/proto/transaction_serializer_test.py similarity index 100% rename from core/multiversx_sdk_core/proto/transaction_serializer_test.py rename to multiversx_sdk/core/proto/transaction_serializer_test.py diff --git a/core/multiversx_sdk_core/serializer.py b/multiversx_sdk/core/serializer.py similarity index 100% rename from core/multiversx_sdk_core/serializer.py rename to multiversx_sdk/core/serializer.py diff --git a/core/multiversx_sdk_core/token_payment.py b/multiversx_sdk/core/token_payment.py similarity index 100% rename from core/multiversx_sdk_core/token_payment.py rename to multiversx_sdk/core/token_payment.py diff --git a/core/multiversx_sdk_core/token_payment_test.py b/multiversx_sdk/core/token_payment_test.py similarity index 100% rename from core/multiversx_sdk_core/token_payment_test.py rename to multiversx_sdk/core/token_payment_test.py diff --git a/core/multiversx_sdk_core/tokens.py b/multiversx_sdk/core/tokens.py similarity index 100% rename from core/multiversx_sdk_core/tokens.py rename to multiversx_sdk/core/tokens.py diff --git a/core/multiversx_sdk_core/tokens_test.py b/multiversx_sdk/core/tokens_test.py similarity index 100% rename from core/multiversx_sdk_core/tokens_test.py rename to multiversx_sdk/core/tokens_test.py diff --git a/core/multiversx_sdk_core/transaction.py b/multiversx_sdk/core/transaction.py similarity index 100% rename from core/multiversx_sdk_core/transaction.py rename to multiversx_sdk/core/transaction.py diff --git a/core/multiversx_sdk_core/transaction_builders/__init__.py b/multiversx_sdk/core/transaction_builders/__init__.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/__init__.py rename to multiversx_sdk/core/transaction_builders/__init__.py diff --git a/core/multiversx_sdk_core/transaction_builders/contract_builders.py b/multiversx_sdk/core/transaction_builders/contract_builders.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/contract_builders.py rename to multiversx_sdk/core/transaction_builders/contract_builders.py diff --git a/core/multiversx_sdk_core/transaction_builders/contract_builders_test.py b/multiversx_sdk/core/transaction_builders/contract_builders_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/contract_builders_test.py rename to multiversx_sdk/core/transaction_builders/contract_builders_test.py diff --git a/core/multiversx_sdk_core/transaction_builders/default_configuration.py b/multiversx_sdk/core/transaction_builders/default_configuration.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/default_configuration.py rename to multiversx_sdk/core/transaction_builders/default_configuration.py diff --git a/core/multiversx_sdk_core/transaction_builders/default_configuration_test.py b/multiversx_sdk/core/transaction_builders/default_configuration_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/default_configuration_test.py rename to multiversx_sdk/core/transaction_builders/default_configuration_test.py diff --git a/core/multiversx_sdk_core/transaction_builders/esdt_builders.py b/multiversx_sdk/core/transaction_builders/esdt_builders.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/esdt_builders.py rename to multiversx_sdk/core/transaction_builders/esdt_builders.py diff --git a/core/multiversx_sdk_core/transaction_builders/esdt_builders_test.py b/multiversx_sdk/core/transaction_builders/esdt_builders_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/esdt_builders_test.py rename to multiversx_sdk/core/transaction_builders/esdt_builders_test.py diff --git a/core/multiversx_sdk_core/transaction_builders/other_builders.py b/multiversx_sdk/core/transaction_builders/other_builders.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/other_builders.py rename to multiversx_sdk/core/transaction_builders/other_builders.py diff --git a/core/multiversx_sdk_core/transaction_builders/relayed_v1_builder.py b/multiversx_sdk/core/transaction_builders/relayed_v1_builder.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/relayed_v1_builder.py rename to multiversx_sdk/core/transaction_builders/relayed_v1_builder.py diff --git a/core/multiversx_sdk_core/transaction_builders/relayed_v1_builder_test.py b/multiversx_sdk/core/transaction_builders/relayed_v1_builder_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/relayed_v1_builder_test.py rename to multiversx_sdk/core/transaction_builders/relayed_v1_builder_test.py diff --git a/core/multiversx_sdk_core/transaction_builders/relayed_v2_builder.py b/multiversx_sdk/core/transaction_builders/relayed_v2_builder.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/relayed_v2_builder.py rename to multiversx_sdk/core/transaction_builders/relayed_v2_builder.py diff --git a/core/multiversx_sdk_core/transaction_builders/relayed_v2_builder_test.py b/multiversx_sdk/core/transaction_builders/relayed_v2_builder_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/relayed_v2_builder_test.py rename to multiversx_sdk/core/transaction_builders/relayed_v2_builder_test.py diff --git a/core/multiversx_sdk_core/transaction_builders/transaction_builder.py b/multiversx_sdk/core/transaction_builders/transaction_builder.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/transaction_builder.py rename to multiversx_sdk/core/transaction_builders/transaction_builder.py diff --git a/core/multiversx_sdk_core/transaction_builders/transfers_builders.py b/multiversx_sdk/core/transaction_builders/transfers_builders.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/transfers_builders.py rename to multiversx_sdk/core/transaction_builders/transfers_builders.py diff --git a/core/multiversx_sdk_core/transaction_builders/transfers_builders_test.py b/multiversx_sdk/core/transaction_builders/transfers_builders_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_builders/transfers_builders_test.py rename to multiversx_sdk/core/transaction_builders/transfers_builders_test.py diff --git a/core/multiversx_sdk_core/transaction_factories/__init__.py b/multiversx_sdk/core/transaction_factories/__init__.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/__init__.py rename to multiversx_sdk/core/transaction_factories/__init__.py diff --git a/core/multiversx_sdk_core/transaction_factories/delegation_transactions_factory.py b/multiversx_sdk/core/transaction_factories/delegation_transactions_factory.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/delegation_transactions_factory.py rename to multiversx_sdk/core/transaction_factories/delegation_transactions_factory.py diff --git a/core/multiversx_sdk_core/transaction_factories/delegation_transactions_factory_test.py b/multiversx_sdk/core/transaction_factories/delegation_transactions_factory_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/delegation_transactions_factory_test.py rename to multiversx_sdk/core/transaction_factories/delegation_transactions_factory_test.py diff --git a/core/multiversx_sdk_core/transaction_factories/relayed_transactions_factory.py b/multiversx_sdk/core/transaction_factories/relayed_transactions_factory.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/relayed_transactions_factory.py rename to multiversx_sdk/core/transaction_factories/relayed_transactions_factory.py diff --git a/core/multiversx_sdk_core/transaction_factories/relayed_transactions_factory_test.py b/multiversx_sdk/core/transaction_factories/relayed_transactions_factory_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/relayed_transactions_factory_test.py rename to multiversx_sdk/core/transaction_factories/relayed_transactions_factory_test.py diff --git a/core/multiversx_sdk_core/transaction_factories/smart_contract_transaction_factory_test.py b/multiversx_sdk/core/transaction_factories/smart_contract_transaction_factory_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/smart_contract_transaction_factory_test.py rename to multiversx_sdk/core/transaction_factories/smart_contract_transaction_factory_test.py diff --git a/core/multiversx_sdk_core/transaction_factories/smart_contract_transactions_factory.py b/multiversx_sdk/core/transaction_factories/smart_contract_transactions_factory.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/smart_contract_transactions_factory.py rename to multiversx_sdk/core/transaction_factories/smart_contract_transactions_factory.py diff --git a/core/multiversx_sdk_core/transaction_factories/token_management_transactions_factory.py b/multiversx_sdk/core/transaction_factories/token_management_transactions_factory.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/token_management_transactions_factory.py rename to multiversx_sdk/core/transaction_factories/token_management_transactions_factory.py diff --git a/core/multiversx_sdk_core/transaction_factories/token_management_transactions_factory_test.py b/multiversx_sdk/core/transaction_factories/token_management_transactions_factory_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/token_management_transactions_factory_test.py rename to multiversx_sdk/core/transaction_factories/token_management_transactions_factory_test.py diff --git a/core/multiversx_sdk_core/transaction_factories/token_transfers_data_builder.py b/multiversx_sdk/core/transaction_factories/token_transfers_data_builder.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/token_transfers_data_builder.py rename to multiversx_sdk/core/transaction_factories/token_transfers_data_builder.py diff --git a/core/multiversx_sdk_core/transaction_factories/transaction_builder.py b/multiversx_sdk/core/transaction_factories/transaction_builder.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/transaction_builder.py rename to multiversx_sdk/core/transaction_factories/transaction_builder.py diff --git a/core/multiversx_sdk_core/transaction_factories/transactions_factory_config.py b/multiversx_sdk/core/transaction_factories/transactions_factory_config.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/transactions_factory_config.py rename to multiversx_sdk/core/transaction_factories/transactions_factory_config.py diff --git a/core/multiversx_sdk_core/transaction_factories/transfer_transactions_factory.py b/multiversx_sdk/core/transaction_factories/transfer_transactions_factory.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/transfer_transactions_factory.py rename to multiversx_sdk/core/transaction_factories/transfer_transactions_factory.py diff --git a/core/multiversx_sdk_core/transaction_factories/transfer_transactions_factory_test.py b/multiversx_sdk/core/transaction_factories/transfer_transactions_factory_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_factories/transfer_transactions_factory_test.py rename to multiversx_sdk/core/transaction_factories/transfer_transactions_factory_test.py diff --git a/core/multiversx_sdk_core/transaction_parsers/__init__.py b/multiversx_sdk/core/transaction_parsers/__init__.py similarity index 100% rename from core/multiversx_sdk_core/transaction_parsers/__init__.py rename to multiversx_sdk/core/transaction_parsers/__init__.py diff --git a/core/multiversx_sdk_core/transaction_parsers/interfaces.py b/multiversx_sdk/core/transaction_parsers/interfaces.py similarity index 100% rename from core/multiversx_sdk_core/transaction_parsers/interfaces.py rename to multiversx_sdk/core/transaction_parsers/interfaces.py diff --git a/core/multiversx_sdk_core/transaction_parsers/token_operations_outcome_parser.py b/multiversx_sdk/core/transaction_parsers/token_operations_outcome_parser.py similarity index 100% rename from core/multiversx_sdk_core/transaction_parsers/token_operations_outcome_parser.py rename to multiversx_sdk/core/transaction_parsers/token_operations_outcome_parser.py diff --git a/core/multiversx_sdk_core/transaction_parsers/token_operations_outcome_parser_test.py b/multiversx_sdk/core/transaction_parsers/token_operations_outcome_parser_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_parsers/token_operations_outcome_parser_test.py rename to multiversx_sdk/core/transaction_parsers/token_operations_outcome_parser_test.py diff --git a/core/multiversx_sdk_core/transaction_parsers/token_operations_outcome_parser_types.py b/multiversx_sdk/core/transaction_parsers/token_operations_outcome_parser_types.py similarity index 100% rename from core/multiversx_sdk_core/transaction_parsers/token_operations_outcome_parser_types.py rename to multiversx_sdk/core/transaction_parsers/token_operations_outcome_parser_types.py diff --git a/core/multiversx_sdk_core/transaction_parsers/transaction_on_network_wrapper.py b/multiversx_sdk/core/transaction_parsers/transaction_on_network_wrapper.py similarity index 100% rename from core/multiversx_sdk_core/transaction_parsers/transaction_on_network_wrapper.py rename to multiversx_sdk/core/transaction_parsers/transaction_on_network_wrapper.py diff --git a/core/multiversx_sdk_core/transaction_payload.py b/multiversx_sdk/core/transaction_payload.py similarity index 100% rename from core/multiversx_sdk_core/transaction_payload.py rename to multiversx_sdk/core/transaction_payload.py diff --git a/core/multiversx_sdk_core/transaction_test.py b/multiversx_sdk/core/transaction_test.py similarity index 100% rename from core/multiversx_sdk_core/transaction_test.py rename to multiversx_sdk/core/transaction_test.py diff --git a/core/multiversx_sdk_core/typecheck.py b/multiversx_sdk/core/typecheck.py similarity index 100% rename from core/multiversx_sdk_core/typecheck.py rename to multiversx_sdk/core/typecheck.py diff --git a/network_providers/multiversx_sdk_network_providers/__init__.py b/multiversx_sdk/network_providers/__init__.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/__init__.py rename to multiversx_sdk/network_providers/__init__.py diff --git a/network_providers/multiversx_sdk_network_providers/accounts.py b/multiversx_sdk/network_providers/accounts.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/accounts.py rename to multiversx_sdk/network_providers/accounts.py diff --git a/network_providers/multiversx_sdk_network_providers/api_network_provider.py b/multiversx_sdk/network_providers/api_network_provider.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/api_network_provider.py rename to multiversx_sdk/network_providers/api_network_provider.py diff --git a/network_providers/multiversx_sdk_network_providers/api_network_provider_test.py b/multiversx_sdk/network_providers/api_network_provider_test.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/api_network_provider_test.py rename to multiversx_sdk/network_providers/api_network_provider_test.py diff --git a/network_providers/multiversx_sdk_network_providers/config.py b/multiversx_sdk/network_providers/config.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/config.py rename to multiversx_sdk/network_providers/config.py diff --git a/network_providers/multiversx_sdk_network_providers/constants.py b/multiversx_sdk/network_providers/constants.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/constants.py rename to multiversx_sdk/network_providers/constants.py diff --git a/network_providers/multiversx_sdk_network_providers/contract_query_requests.py b/multiversx_sdk/network_providers/contract_query_requests.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/contract_query_requests.py rename to multiversx_sdk/network_providers/contract_query_requests.py diff --git a/network_providers/multiversx_sdk_network_providers/contract_query_response.py b/multiversx_sdk/network_providers/contract_query_response.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/contract_query_response.py rename to multiversx_sdk/network_providers/contract_query_response.py diff --git a/network_providers/multiversx_sdk_network_providers/contract_results.py b/multiversx_sdk/network_providers/contract_results.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/contract_results.py rename to multiversx_sdk/network_providers/contract_results.py diff --git a/network_providers/multiversx_sdk_network_providers/errors.py b/multiversx_sdk/network_providers/errors.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/errors.py rename to multiversx_sdk/network_providers/errors.py diff --git a/network_providers/multiversx_sdk_network_providers/interface.py b/multiversx_sdk/network_providers/interface.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/interface.py rename to multiversx_sdk/network_providers/interface.py diff --git a/network_providers/multiversx_sdk_network_providers/network_config.py b/multiversx_sdk/network_providers/network_config.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/network_config.py rename to multiversx_sdk/network_providers/network_config.py diff --git a/network_providers/multiversx_sdk_network_providers/network_general_statistics.py b/multiversx_sdk/network_providers/network_general_statistics.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/network_general_statistics.py rename to multiversx_sdk/network_providers/network_general_statistics.py diff --git a/network_providers/multiversx_sdk_network_providers/network_stake.py b/multiversx_sdk/network_providers/network_stake.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/network_stake.py rename to multiversx_sdk/network_providers/network_stake.py diff --git a/network_providers/multiversx_sdk_network_providers/network_status.py b/multiversx_sdk/network_providers/network_status.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/network_status.py rename to multiversx_sdk/network_providers/network_status.py diff --git a/network_providers/multiversx_sdk_network_providers/proxy_network_provider.py b/multiversx_sdk/network_providers/proxy_network_provider.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/proxy_network_provider.py rename to multiversx_sdk/network_providers/proxy_network_provider.py diff --git a/network_providers/multiversx_sdk_network_providers/proxy_network_provider_test.py b/multiversx_sdk/network_providers/proxy_network_provider_test.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/proxy_network_provider_test.py rename to multiversx_sdk/network_providers/proxy_network_provider_test.py diff --git a/network_providers/multiversx_sdk_network_providers/resources.py b/multiversx_sdk/network_providers/resources.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/resources.py rename to multiversx_sdk/network_providers/resources.py diff --git a/network_providers/multiversx_sdk_network_providers/token_definitions.py b/multiversx_sdk/network_providers/token_definitions.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/token_definitions.py rename to multiversx_sdk/network_providers/token_definitions.py diff --git a/network_providers/multiversx_sdk_network_providers/tokens.py b/multiversx_sdk/network_providers/tokens.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/tokens.py rename to multiversx_sdk/network_providers/tokens.py diff --git a/network_providers/multiversx_sdk_network_providers/transaction_events.py b/multiversx_sdk/network_providers/transaction_events.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/transaction_events.py rename to multiversx_sdk/network_providers/transaction_events.py diff --git a/network_providers/multiversx_sdk_network_providers/transaction_logs.py b/multiversx_sdk/network_providers/transaction_logs.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/transaction_logs.py rename to multiversx_sdk/network_providers/transaction_logs.py diff --git a/network_providers/multiversx_sdk_network_providers/transaction_receipt.py b/multiversx_sdk/network_providers/transaction_receipt.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/transaction_receipt.py rename to multiversx_sdk/network_providers/transaction_receipt.py diff --git a/network_providers/multiversx_sdk_network_providers/transaction_status.py b/multiversx_sdk/network_providers/transaction_status.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/transaction_status.py rename to multiversx_sdk/network_providers/transaction_status.py diff --git a/network_providers/multiversx_sdk_network_providers/transactions.py b/multiversx_sdk/network_providers/transactions.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/transactions.py rename to multiversx_sdk/network_providers/transactions.py diff --git a/network_providers/multiversx_sdk_network_providers/utils.py b/multiversx_sdk/network_providers/utils.py similarity index 100% rename from network_providers/multiversx_sdk_network_providers/utils.py rename to multiversx_sdk/network_providers/utils.py diff --git a/core/multiversx_sdk_core/testutils/testdata/adder.wasm b/multiversx_sdk/testutils/testdata/adder.wasm similarity index 100% rename from core/multiversx_sdk_core/testutils/testdata/adder.wasm rename to multiversx_sdk/testutils/testdata/adder.wasm diff --git a/wallet/multiversx_sdk_wallet/testdata/alice.json b/multiversx_sdk/testutils/testwallets/alice.json similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/alice.json rename to multiversx_sdk/testutils/testwallets/alice.json diff --git a/wallet/multiversx_sdk_wallet/testdata/alice.pem b/multiversx_sdk/testutils/testwallets/alice.pem similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/alice.pem rename to multiversx_sdk/testutils/testwallets/alice.pem diff --git a/wallet/multiversx_sdk_wallet/testdata/bob.json b/multiversx_sdk/testutils/testwallets/bob.json similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/bob.json rename to multiversx_sdk/testutils/testwallets/bob.json diff --git a/wallet/multiversx_sdk_wallet/testdata/bob.pem b/multiversx_sdk/testutils/testwallets/bob.pem similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/bob.pem rename to multiversx_sdk/testutils/testwallets/bob.pem diff --git a/wallet/multiversx_sdk_wallet/testdata/carol.json b/multiversx_sdk/testutils/testwallets/carol.json similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/carol.json rename to multiversx_sdk/testutils/testwallets/carol.json diff --git a/wallet/multiversx_sdk_wallet/testdata/carol.pem b/multiversx_sdk/testutils/testwallets/carol.pem similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/carol.pem rename to multiversx_sdk/testutils/testwallets/carol.pem diff --git a/core/multiversx_sdk_core/testutils/testwallets/frank.pem b/multiversx_sdk/testutils/testwallets/frank.pem similarity index 100% rename from core/multiversx_sdk_core/testutils/testwallets/frank.pem rename to multiversx_sdk/testutils/testwallets/frank.pem diff --git a/core/multiversx_sdk_core/testutils/testwallets/grace.pem b/multiversx_sdk/testutils/testwallets/grace.pem similarity index 100% rename from core/multiversx_sdk_core/testutils/testwallets/grace.pem rename to multiversx_sdk/testutils/testwallets/grace.pem diff --git a/wallet/multiversx_sdk_wallet/testdata/multipleUserKeys.pem b/multiversx_sdk/testutils/testwallets/multipleUserKeys.pem similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/multipleUserKeys.pem rename to multiversx_sdk/testutils/testwallets/multipleUserKeys.pem diff --git a/wallet/multiversx_sdk_wallet/testdata/multipleValidatorKeys.pem b/multiversx_sdk/testutils/testwallets/multipleValidatorKeys.pem similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/multipleValidatorKeys.pem rename to multiversx_sdk/testutils/testwallets/multipleValidatorKeys.pem diff --git a/wallet/multiversx_sdk_wallet/testdata/validatorKey00.pem b/multiversx_sdk/testutils/testwallets/validatorKey00.pem similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/validatorKey00.pem rename to multiversx_sdk/testutils/testwallets/validatorKey00.pem diff --git a/wallet/multiversx_sdk_wallet/testdata/withDummyMnemonic.json b/multiversx_sdk/testutils/testwallets/withDummyMnemonic.json similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/withDummyMnemonic.json rename to multiversx_sdk/testutils/testwallets/withDummyMnemonic.json diff --git a/wallet/multiversx_sdk_wallet/testdata/withoutKind.json b/multiversx_sdk/testutils/testwallets/withoutKind.json similarity index 100% rename from wallet/multiversx_sdk_wallet/testdata/withoutKind.json rename to multiversx_sdk/testutils/testwallets/withoutKind.json diff --git a/core/multiversx_sdk_core/testutils/wallets.py b/multiversx_sdk/testutils/wallets.py similarity index 100% rename from core/multiversx_sdk_core/testutils/wallets.py rename to multiversx_sdk/testutils/wallets.py diff --git a/wallet/multiversx_sdk_wallet/__init__.py b/multiversx_sdk/wallet/__init__.py similarity index 100% rename from wallet/multiversx_sdk_wallet/__init__.py rename to multiversx_sdk/wallet/__init__.py diff --git a/wallet/multiversx_sdk_wallet/constants.py b/multiversx_sdk/wallet/constants.py similarity index 100% rename from wallet/multiversx_sdk_wallet/constants.py rename to multiversx_sdk/wallet/constants.py diff --git a/wallet/multiversx_sdk_wallet/core.py b/multiversx_sdk/wallet/core.py similarity index 100% rename from wallet/multiversx_sdk_wallet/core.py rename to multiversx_sdk/wallet/core.py diff --git a/wallet/multiversx_sdk_wallet/crypto/__init__.py b/multiversx_sdk/wallet/crypto/__init__.py similarity index 100% rename from wallet/multiversx_sdk_wallet/crypto/__init__.py rename to multiversx_sdk/wallet/crypto/__init__.py diff --git a/wallet/multiversx_sdk_wallet/crypto/constants.py b/multiversx_sdk/wallet/crypto/constants.py similarity index 100% rename from wallet/multiversx_sdk_wallet/crypto/constants.py rename to multiversx_sdk/wallet/crypto/constants.py diff --git a/wallet/multiversx_sdk_wallet/crypto/decryptor.py b/multiversx_sdk/wallet/crypto/decryptor.py similarity index 100% rename from wallet/multiversx_sdk_wallet/crypto/decryptor.py rename to multiversx_sdk/wallet/crypto/decryptor.py diff --git a/wallet/multiversx_sdk_wallet/crypto/encrypted_data.py b/multiversx_sdk/wallet/crypto/encrypted_data.py similarity index 100% rename from wallet/multiversx_sdk_wallet/crypto/encrypted_data.py rename to multiversx_sdk/wallet/crypto/encrypted_data.py diff --git a/wallet/multiversx_sdk_wallet/crypto/encryptor.py b/multiversx_sdk/wallet/crypto/encryptor.py similarity index 100% rename from wallet/multiversx_sdk_wallet/crypto/encryptor.py rename to multiversx_sdk/wallet/crypto/encryptor.py diff --git a/wallet/multiversx_sdk_wallet/crypto/randomness.py b/multiversx_sdk/wallet/crypto/randomness.py similarity index 100% rename from wallet/multiversx_sdk_wallet/crypto/randomness.py rename to multiversx_sdk/wallet/crypto/randomness.py diff --git a/wallet/multiversx_sdk_wallet/errors.py b/multiversx_sdk/wallet/errors.py similarity index 100% rename from wallet/multiversx_sdk_wallet/errors.py rename to multiversx_sdk/wallet/errors.py diff --git a/wallet/multiversx_sdk_wallet/interfaces.py b/multiversx_sdk/wallet/interfaces.py similarity index 100% rename from wallet/multiversx_sdk_wallet/interfaces.py rename to multiversx_sdk/wallet/interfaces.py diff --git a/wallet/multiversx_sdk_wallet/libraries/__init__.py b/multiversx_sdk/wallet/libraries/__init__.py similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/__init__.py rename to multiversx_sdk/wallet/libraries/__init__.py diff --git a/wallet/multiversx_sdk_wallet/libraries/bls_facade.py b/multiversx_sdk/wallet/libraries/bls_facade.py similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/bls_facade.py rename to multiversx_sdk/wallet/libraries/bls_facade.py diff --git a/wallet/multiversx_sdk_wallet/libraries/bls_facade_test.py b/multiversx_sdk/wallet/libraries/bls_facade_test.py similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/bls_facade_test.py rename to multiversx_sdk/wallet/libraries/bls_facade_test.py diff --git a/wallet/multiversx_sdk_wallet/libraries/libbls.dll b/multiversx_sdk/wallet/libraries/libbls.dll similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/libbls.dll rename to multiversx_sdk/wallet/libraries/libbls.dll diff --git a/wallet/multiversx_sdk_wallet/libraries/libbls.dylib b/multiversx_sdk/wallet/libraries/libbls.dylib similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/libbls.dylib rename to multiversx_sdk/wallet/libraries/libbls.dylib diff --git a/wallet/multiversx_sdk_wallet/libraries/libbls.so b/multiversx_sdk/wallet/libraries/libbls.so similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/libbls.so rename to multiversx_sdk/wallet/libraries/libbls.so diff --git a/wallet/multiversx_sdk_wallet/libraries/libbls_arm64.dylib b/multiversx_sdk/wallet/libraries/libbls_arm64.dylib similarity index 100% rename from wallet/multiversx_sdk_wallet/libraries/libbls_arm64.dylib rename to multiversx_sdk/wallet/libraries/libbls_arm64.dylib diff --git a/wallet/multiversx_sdk_wallet/mnemonic.py b/multiversx_sdk/wallet/mnemonic.py similarity index 100% rename from wallet/multiversx_sdk_wallet/mnemonic.py rename to multiversx_sdk/wallet/mnemonic.py diff --git a/wallet/multiversx_sdk_wallet/mnemonic_test.py b/multiversx_sdk/wallet/mnemonic_test.py similarity index 100% rename from wallet/multiversx_sdk_wallet/mnemonic_test.py rename to multiversx_sdk/wallet/mnemonic_test.py diff --git a/wallet/multiversx_sdk_wallet/pem_entry.py b/multiversx_sdk/wallet/pem_entry.py similarity index 100% rename from wallet/multiversx_sdk_wallet/pem_entry.py rename to multiversx_sdk/wallet/pem_entry.py diff --git a/wallet/multiversx_sdk_wallet/pem_entry_test.py b/multiversx_sdk/wallet/pem_entry_test.py similarity index 100% rename from wallet/multiversx_sdk_wallet/pem_entry_test.py rename to multiversx_sdk/wallet/pem_entry_test.py diff --git a/wallet/multiversx_sdk_wallet/user_keys.py b/multiversx_sdk/wallet/user_keys.py similarity index 100% rename from wallet/multiversx_sdk_wallet/user_keys.py rename to multiversx_sdk/wallet/user_keys.py diff --git a/wallet/multiversx_sdk_wallet/user_pem.py b/multiversx_sdk/wallet/user_pem.py similarity index 100% rename from wallet/multiversx_sdk_wallet/user_pem.py rename to multiversx_sdk/wallet/user_pem.py diff --git a/wallet/multiversx_sdk_wallet/user_signer.py b/multiversx_sdk/wallet/user_signer.py similarity index 100% rename from wallet/multiversx_sdk_wallet/user_signer.py rename to multiversx_sdk/wallet/user_signer.py diff --git a/wallet/multiversx_sdk_wallet/user_test.py b/multiversx_sdk/wallet/user_test.py similarity index 100% rename from wallet/multiversx_sdk_wallet/user_test.py rename to multiversx_sdk/wallet/user_test.py diff --git a/wallet/multiversx_sdk_wallet/user_verifer.py b/multiversx_sdk/wallet/user_verifer.py similarity index 100% rename from wallet/multiversx_sdk_wallet/user_verifer.py rename to multiversx_sdk/wallet/user_verifer.py diff --git a/wallet/multiversx_sdk_wallet/user_wallet.py b/multiversx_sdk/wallet/user_wallet.py similarity index 100% rename from wallet/multiversx_sdk_wallet/user_wallet.py rename to multiversx_sdk/wallet/user_wallet.py diff --git a/wallet/multiversx_sdk_wallet/validator_keys.py b/multiversx_sdk/wallet/validator_keys.py similarity index 100% rename from wallet/multiversx_sdk_wallet/validator_keys.py rename to multiversx_sdk/wallet/validator_keys.py diff --git a/wallet/multiversx_sdk_wallet/validator_pem.py b/multiversx_sdk/wallet/validator_pem.py similarity index 100% rename from wallet/multiversx_sdk_wallet/validator_pem.py rename to multiversx_sdk/wallet/validator_pem.py diff --git a/wallet/multiversx_sdk_wallet/validator_signer.py b/multiversx_sdk/wallet/validator_signer.py similarity index 100% rename from wallet/multiversx_sdk_wallet/validator_signer.py rename to multiversx_sdk/wallet/validator_signer.py diff --git a/wallet/multiversx_sdk_wallet/validator_test.py b/multiversx_sdk/wallet/validator_test.py similarity index 100% rename from wallet/multiversx_sdk_wallet/validator_test.py rename to multiversx_sdk/wallet/validator_test.py diff --git a/wallet/multiversx_sdk_wallet/validator_verifier.py b/multiversx_sdk/wallet/validator_verifier.py similarity index 100% rename from wallet/multiversx_sdk_wallet/validator_verifier.py rename to multiversx_sdk/wallet/validator_verifier.py diff --git a/network_providers/.flake8 b/network_providers/.flake8 deleted file mode 100644 index e44b8108..00000000 --- a/network_providers/.flake8 +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -ignore = E501 diff --git a/network_providers/.github/release.yml b/network_providers/.github/release.yml deleted file mode 100644 index 2d1cda92..00000000 --- a/network_providers/.github/release.yml +++ /dev/null @@ -1,8 +0,0 @@ -changelog: - exclude: - labels: - - ignore-for-release-notes - categories: - - title: What's Changed - labels: - - "*" diff --git a/network_providers/.github/workflows/linter-flake8.yml b/network_providers/.github/workflows/linter-flake8.yml deleted file mode 100644 index 81369c02..00000000 --- a/network_providers/.github/workflows/linter-flake8.yml +++ /dev/null @@ -1,23 +0,0 @@ -# See: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Linter checks (flake8) -on: [pull_request] -jobs: - run-linter: - name: flake8 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - name: Lint with flake8 - run: | - flake8 multiversx_sdk_network_providers - continue-on-error: true diff --git a/network_providers/.github/workflows/linter-pyright.yml b/network_providers/.github/workflows/linter-pyright.yml deleted file mode 100644 index 1de9b8ae..00000000 --- a/network_providers/.github/workflows/linter-pyright.yml +++ /dev/null @@ -1,20 +0,0 @@ -# See: https://github.com/microsoft/pyright/blob/main/docs/ci-integration.md - -name: Linter checks (pyright) -on: [pull_request] -jobs: - run-linter: - name: pyright - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - uses: jakebailey/pyright-action@v1 diff --git a/network_providers/.github/workflows/python-publish.yml b/network_providers/.github/workflows/python-publish.yml deleted file mode 100644 index 355dde42..00000000 --- a/network_providers/.github/workflows/python-publish.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Upload Python Package - -on: - workflow_dispatch: - release: - types: [published] - -permissions: - contents: read - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/network_providers/.github/workflows/test.yml b/network_providers/.github/workflows/test.yml deleted file mode 100644 index 9c514e58..00000000 --- a/network_providers/.github/workflows/test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Run tests - -on: - pull_request: - branches: [ main ] - workflow_dispatch: - -jobs: - run-tests: - name: Run tests on ${{ matrix.os }}, python ${{ matrix.python-version }} - - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - python-version: [3.8] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - name: Test with pytest - run: | - pytest . diff --git a/network_providers/.gitignore b/network_providers/.gitignore deleted file mode 100644 index 92c8fb76..00000000 --- a/network_providers/.gitignore +++ /dev/null @@ -1,134 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# Stub files -typings - -.idea diff --git a/network_providers/.vscode/settings.json b/network_providers/.vscode/settings.json deleted file mode 100644 index 961539d4..00000000 --- a/network_providers/.vscode/settings.json +++ /dev/null @@ -1,17 +0,0 @@ -{ -"python.testing.pytestArgs": [ - "multiversx_sdk_network_providers" - ], - "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true, - "editor.formatOnSave": true, - "[python]": { - "editor.defaultFormatter": "ms-python.autopep8" - }, - "editor.defaultFormatter": "ms-python.autopep8", - "editor.codeActionsOnSave": { - "source.organizeImports": true - }, - "files.insertFinalNewline": true, - "python.languageServer": "Pylance" -} diff --git a/network_providers/LICENSE b/network_providers/LICENSE deleted file mode 100644 index 309adfa1..00000000 --- a/network_providers/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 MultiversX - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/network_providers/README.md b/network_providers/README.md deleted file mode 100644 index 8b43f8e7..00000000 --- a/network_providers/README.md +++ /dev/null @@ -1,63 +0,0 @@ -# mx-sdk-py-network-providers - -Network providers for MultiversX Python SDK. - -## Distribution - - - GitHub: `git+https://git@github.com/multiversx/mx-sdk-py-network-providers.git@v{Version}#egg=multiversx_sdk_network_providers` - - [PyPi](https://pypi.org/user/multiversx/) - -## Documentation -[docs.multiversx.com](https://docs.multiversx.com/sdk-and-tools/erdpy/) - -## Development setup - -Create a virtual environment and install the dependencies: - -``` -python3 -m venv ./venv -source ./venv/bin/activate -pip install -r ./requirements.txt --upgrade -``` - - -Install development dependencies, as well: - -``` -pip install -r ./requirements-dev.txt --upgrade -``` - -Above, `requirements.txt` should mirror the **dependencies** section of `pyproject.toml`. - -If using VSCode, restart it or follow these steps: - - `Ctrl + Shift + P` - - _Select Interpreter_ - - Choose `./venv/bin/python`. - -### Tests - -Run the tests as follows: - -``` -pytest . -``` - -### Linting - -First, install [`pyright`](https://github.com/microsoft/pyright) as follows: - -``` -npm install --global pyright -``` - -Run `pyright`: - -``` -pyright -``` - -Run `flake8`: - -``` -flake8 multiversx_sdk_network_providers -``` diff --git a/network_providers/pyproject.toml b/network_providers/pyproject.toml deleted file mode 100644 index 8a4cb700..00000000 --- a/network_providers/pyproject.toml +++ /dev/null @@ -1,29 +0,0 @@ -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.metadata] -allow-direct-references = true - -[project] -name = "multiversx-sdk-network-providers" -version = "0.13.0" -authors = [ - { name="MultiversX" }, -] -license = "MIT" -description = "Network providers for MultiversX Python SDK." -readme = "README.md" -requires-python = ">=3.8" -classifiers = [ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", -] -dependencies = [ - "requests==2.31.0", - "multiversx-sdk-core>=0.8.0,<0.9.0" -] - -[project.urls] -"Homepage" = "https://github.com/multiversx/mx-sdk-py-network-providers" diff --git a/network_providers/pyrightconfig.json b/network_providers/pyrightconfig.json deleted file mode 100644 index b968ac80..00000000 --- a/network_providers/pyrightconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "include": [ - "multiversx_sdk_network_providers" - ], - "exclude": [ - "**/__pycache__" - ], - "ignore": [], - "defineConstant": { - "DEBUG": true - }, - "venvPath": ".", - "venv": "venv", - "stubPath": "", - "reportMissingImports": true, - "reportMissingTypeStubs": false, - "reportUnknownParameterType": true -} diff --git a/network_providers/requirements.txt b/network_providers/requirements.txt deleted file mode 100644 index 38e3ebbd..00000000 --- a/network_providers/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -requests==2.31.0 -multiversx_sdk_core>=0.8.0,<0.9.0 diff --git a/core/py.typed b/py.typed similarity index 100% rename from core/py.typed rename to py.typed diff --git a/network_providers/py.typed b/pyproject.toml similarity index 100% rename from network_providers/py.typed rename to pyproject.toml diff --git a/core/pyrightconfig.json b/pyrightconfig.json similarity index 91% rename from core/pyrightconfig.json rename to pyrightconfig.json index cc47b02b..21ce9a01 100644 --- a/core/pyrightconfig.json +++ b/pyrightconfig.json @@ -1,6 +1,6 @@ { "include": [ - "multiversx_sdk_core" + "multiversx_sdk" ], "exclude": [ "**/__pycache__" diff --git a/network_providers/requirements-dev.txt b/requirements-dev.txt similarity index 60% rename from network_providers/requirements-dev.txt rename to requirements-dev.txt index 85d17fda..16f03d05 100644 --- a/network_providers/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ pytest flake8 -autopep8 +autopep8 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..28cdcfb6 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +pycryptodomex==3.16.0 +protobuf==3.20.1 +cryptography==36.0.2 +pynacl==1.5.0 +mnemonic==0.20 +requests==2.31.0 \ No newline at end of file diff --git a/wallet/.flake8 b/wallet/.flake8 deleted file mode 100644 index e44b8108..00000000 --- a/wallet/.flake8 +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -ignore = E501 diff --git a/wallet/.github/release.yml b/wallet/.github/release.yml deleted file mode 100644 index 2d1cda92..00000000 --- a/wallet/.github/release.yml +++ /dev/null @@ -1,8 +0,0 @@ -changelog: - exclude: - labels: - - ignore-for-release-notes - categories: - - title: What's Changed - labels: - - "*" diff --git a/wallet/.github/workflows/linter-flake8.yml b/wallet/.github/workflows/linter-flake8.yml deleted file mode 100644 index 6f33dc1c..00000000 --- a/wallet/.github/workflows/linter-flake8.yml +++ /dev/null @@ -1,23 +0,0 @@ -# See: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Linter checks (flake8) -on: [pull_request] -jobs: - run-linter: - name: flake8 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - name: Lint with flake8 - run: | - flake8 multiversx_sdk_wallet - continue-on-error: true diff --git a/wallet/.github/workflows/linter-pyright.yml b/wallet/.github/workflows/linter-pyright.yml deleted file mode 100644 index 1de9b8ae..00000000 --- a/wallet/.github/workflows/linter-pyright.yml +++ /dev/null @@ -1,20 +0,0 @@ -# See: https://github.com/microsoft/pyright/blob/main/docs/ci-integration.md - -name: Linter checks (pyright) -on: [pull_request] -jobs: - run-linter: - name: pyright - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - uses: jakebailey/pyright-action@v1 diff --git a/wallet/.github/workflows/python-publish.yml b/wallet/.github/workflows/python-publish.yml deleted file mode 100644 index 355dde42..00000000 --- a/wallet/.github/workflows/python-publish.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Upload Python Package - -on: - workflow_dispatch: - release: - types: [published] - -permissions: - contents: read - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/wallet/.github/workflows/test.yml b/wallet/.github/workflows/test.yml deleted file mode 100644 index 9e4267d8..00000000 --- a/wallet/.github/workflows/test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Run tests - -on: - pull_request: - branches: [ main ] - workflow_dispatch: - -jobs: - run-tests: - name: Run tests on ${{ matrix.os }}, python ${{ matrix.python-version }} - - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.8] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install Python dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - name: Test with pytest - run: | - pytest . diff --git a/wallet/README.md b/wallet/README.md deleted file mode 100644 index 65956609..00000000 --- a/wallet/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# mx-sdk-py-wallet - -Wallet & crypto components of MultiversX Python SDK. - -## Distribution - - - GitHub: `git+https://git@github.com/multiversx/mx-sdk-py-wallet.git@v{Version}#egg=multiversx_sdk_wallet` - - [PyPi](https://pypi.org/user/multiversx/) - -## Documentation - -[docs.multiversx.com](https://docs.multiversx.com/sdk-and-tools/erdpy/erdpy/) - -## Development setup - -### Virtual environment - -Create a virtual environment and install the dependencies: - -``` -python3 -m venv ./venv -source ./venv/bin/activate -pip install -r ./requirements.txt --upgrade -``` - -Install development dependencies, as well: - -``` -pip install -r ./requirements-dev.txt --upgrade -``` - -Above, `requirements.txt` should mirror the **dependencies** section of `pyproject.toml`. - -If using VSCode, restart it or follow these steps: - - `Ctrl + Shift + P` - - _Select Interpreter_ - - Choose `./venv/bin/python`. - -### Tests - -Run the tests as follows: - -``` -pytest . -``` - -### Linting - -First, install [`pyright`](https://github.com/microsoft/pyright) as follows: - -``` -npm install --global pyright -``` - -Run `pyright`: - -``` -pyright -``` - -Run `flake8`: - -``` -flake8 multiversx_sdk_wallet -``` diff --git a/wallet/multiversx_sdk_wallet/py.typed b/wallet/multiversx_sdk_wallet/py.typed deleted file mode 100644 index e69de29b..00000000 diff --git a/wallet/py.typed b/wallet/py.typed deleted file mode 100644 index e69de29b..00000000 diff --git a/wallet/pyproject.toml b/wallet/pyproject.toml deleted file mode 100644 index 35bb8499..00000000 --- a/wallet/pyproject.toml +++ /dev/null @@ -1,42 +0,0 @@ -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.metadata] -allow-direct-references = true - -[project] -name = "multiversx-sdk-wallet" -version = "0.9.1" -authors = [ - { name="MultiversX" }, -] -license = "MIT" -description = "Wallet & crypto components of MultiversX Python SDK." -readme = "README.md" -requires-python = ">=3.8" -classifiers = [ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", -] -dependencies = [ - "pynacl==1.5.0", - "cryptography==36.0.2", - "mnemonic==0.20", - "multiversx-sdk-core>=0.8.0,<0.9.0" -] - -[tool.hatch.build] -include = [ - "multiversx_sdk_wallet/**" -] -exclude = [ - "multiversx_sdk_wallet/testdata/**" -] - -[tool.hatch.build.targets.wheel.force-include] -"multiversx_sdk_wallet/libraries" = "multiversx_sdk_wallet/libraries" - -[project.urls] -"Homepage" = "https://github.com/multiversx/mx-sdk-py-wallet" diff --git a/wallet/pyrightconfig.json b/wallet/pyrightconfig.json deleted file mode 100644 index 2dec6228..00000000 --- a/wallet/pyrightconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "include": [ - "multiversx_sdk_wallet" - ], - "exclude": [ - "**/__pycache__" - ], - "ignore": [], - "defineConstant": { - "DEBUG": true - }, - "venvPath": ".", - "venv": "venv", - "stubPath": "", - "reportMissingImports": true, - "reportMissingTypeStubs": false, - "reportUnknownParameterType": true -} diff --git a/wallet/requirements-dev.txt b/wallet/requirements-dev.txt deleted file mode 100644 index 85d17fda..00000000 --- a/wallet/requirements-dev.txt +++ /dev/null @@ -1,3 +0,0 @@ -pytest -flake8 -autopep8 diff --git a/wallet/requirements.txt b/wallet/requirements.txt deleted file mode 100644 index c07cb8fe..00000000 --- a/wallet/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -cryptography==36.0.2 -pynacl==1.5.0 -mnemonic==0.20 -multiversx_sdk_core>=0.8.0,<0.9.0