From 03076d701d1a63ac648d67bc1ce0c45af745d4a0 Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Mon, 27 Jan 2025 10:02:59 +0200 Subject: [PATCH 1/3] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f19d531b..31d79f95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ allow-direct-references = true [project] name = "multiversx-sdk" -version = "1.0.0b3" +version = "1.0.0" authors = [ { name="MultiversX" }, ] From 903a3bd7182983b3e97abcfbdfa0001dff7c6964 Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Mon, 27 Jan 2025 10:08:07 +0200 Subject: [PATCH 2/3] regenerate docs --- README.md | 5 +++++ docs/conf.py | 18 ++++++++-------- docs/multiversx_sdk.abi.rst | 16 ++++++++++++++ docs/multiversx_sdk.accounts.rst | 8 +++++++ docs/multiversx_sdk.core.rst | 8 +++++++ docs/multiversx_sdk.ledger.rst | 37 ++++++++++++++++++++++++++++++++ docs/multiversx_sdk.rst | 1 + 7 files changed, 84 insertions(+), 9 deletions(-) create mode 100644 docs/multiversx_sdk.ledger.rst diff --git a/README.md b/README.md index fad09575..bfeef98b 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,11 @@ If you want to skip network interaction tests run: pytest -m "not networkInteraction" ``` +We have some tests fetching mainnet transactions that are quite time consuming. To skip those, run this command: +``` +pytest -m "not mainnet" +``` + ### Generate test coverage report First, we run the tests using coverage: diff --git a/docs/conf.py b/docs/conf.py index 614e6e1f..852934a9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,23 +11,23 @@ sys.path.insert(0, os.path.abspath("..")) -project = 'multiversx-sdk' -copyright = '2024, MultiversX' -author = 'MultiversX' -release = '0.19.0' +project = "multiversx-sdk" +copyright = "2024, MultiversX" +author = "MultiversX" +release = "1.0.0" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = ["sphinx.ext.todo", "sphinx.ext.viewcode", "sphinx.ext.autodoc"] -templates_path = ['_templates'] -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] +templates_path = ["_templates"] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = 'sphinx_rtd_theme' -html_static_path = ['_static'] -autoclass_content = 'both' +html_theme = "sphinx_rtd_theme" +html_static_path = ["_static"] +autoclass_content = "both" diff --git a/docs/multiversx_sdk.abi.rst b/docs/multiversx_sdk.abi.rst index 0b61e614..c87b97a2 100644 --- a/docs/multiversx_sdk.abi.rst +++ b/docs/multiversx_sdk.abi.rst @@ -132,6 +132,22 @@ multiversx\_sdk.abi.list\_value module :undoc-members: :show-inheritance: +multiversx\_sdk.abi.managed\_decimal\_signed\_value module +---------------------------------------------------------- + +.. automodule:: multiversx_sdk.abi.managed_decimal_signed_value + :members: + :undoc-members: + :show-inheritance: + +multiversx\_sdk.abi.managed\_decimal\_value module +-------------------------------------------------- + +.. automodule:: multiversx_sdk.abi.managed_decimal_value + :members: + :undoc-members: + :show-inheritance: + multiversx\_sdk.abi.multi\_value module --------------------------------------- diff --git a/docs/multiversx_sdk.accounts.rst b/docs/multiversx_sdk.accounts.rst index 2717c569..56cd61be 100644 --- a/docs/multiversx_sdk.accounts.rst +++ b/docs/multiversx_sdk.accounts.rst @@ -12,6 +12,14 @@ multiversx\_sdk.accounts.account module :undoc-members: :show-inheritance: +multiversx\_sdk.accounts.ledger\_account module +----------------------------------------------- + +.. automodule:: multiversx_sdk.accounts.ledger_account + :members: + :undoc-members: + :show-inheritance: + Module contents --------------- diff --git a/docs/multiversx_sdk.core.rst b/docs/multiversx_sdk.core.rst index 77d49359..74a8e294 100644 --- a/docs/multiversx_sdk.core.rst +++ b/docs/multiversx_sdk.core.rst @@ -20,6 +20,14 @@ multiversx\_sdk.core.address module :undoc-members: :show-inheritance: +multiversx\_sdk.core.base\_controller module +-------------------------------------------- + +.. automodule:: multiversx_sdk.core.base_controller + :members: + :undoc-members: + :show-inheritance: + multiversx\_sdk.core.bech32 module ---------------------------------- diff --git a/docs/multiversx_sdk.ledger.rst b/docs/multiversx_sdk.ledger.rst new file mode 100644 index 00000000..e0167490 --- /dev/null +++ b/docs/multiversx_sdk.ledger.rst @@ -0,0 +1,37 @@ +multiversx\_sdk.ledger package +============================== + +Submodules +---------- + +multiversx\_sdk.ledger.config module +------------------------------------ + +.. automodule:: multiversx_sdk.ledger.config + :members: + :undoc-members: + :show-inheritance: + +multiversx\_sdk.ledger.errors module +------------------------------------ + +.. automodule:: multiversx_sdk.ledger.errors + :members: + :undoc-members: + :show-inheritance: + +multiversx\_sdk.ledger.ledger\_app module +----------------------------------------- + +.. automodule:: multiversx_sdk.ledger.ledger_app + :members: + :undoc-members: + :show-inheritance: + +Module contents +--------------- + +.. automodule:: multiversx_sdk.ledger + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/multiversx_sdk.rst b/docs/multiversx_sdk.rst index 7f083b94..bfa91c3f 100644 --- a/docs/multiversx_sdk.rst +++ b/docs/multiversx_sdk.rst @@ -14,6 +14,7 @@ Subpackages multiversx_sdk.core multiversx_sdk.delegation multiversx_sdk.entrypoints + multiversx_sdk.ledger multiversx_sdk.network_providers multiversx_sdk.relayed multiversx_sdk.smart_contracts From 09f7739247c95ef7bd999c2d27125554c6418adc Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Mon, 27 Jan 2025 10:18:09 +0200 Subject: [PATCH 3/3] export missing types from abi package --- multiversx_sdk/abi/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/multiversx_sdk/abi/__init__.py b/multiversx_sdk/abi/__init__.py index c0922a82..fc6f3174 100644 --- a/multiversx_sdk/abi/__init__.py +++ b/multiversx_sdk/abi/__init__.py @@ -7,10 +7,14 @@ from multiversx_sdk.abi.bool_value import BoolValue from multiversx_sdk.abi.bytes_value import BytesValue from multiversx_sdk.abi.code_metadata_value import CodeMetadataValue +from multiversx_sdk.abi.codec import Codec +from multiversx_sdk.abi.counted_variadic_values import CountedVariadicValues from multiversx_sdk.abi.enum_value import EnumValue from multiversx_sdk.abi.explicit_enum_value import ExplicitEnumValue from multiversx_sdk.abi.fields import Field from multiversx_sdk.abi.list_value import ListValue +from multiversx_sdk.abi.managed_decimal_signed_value import ManagedDecimalSignedValue +from multiversx_sdk.abi.managed_decimal_value import ManagedDecimalValue from multiversx_sdk.abi.multi_value import MultiValue from multiversx_sdk.abi.option_value import OptionValue from multiversx_sdk.abi.optional_value import OptionalValue @@ -40,11 +44,15 @@ "BigUIntValue", "BoolValue", "BytesValue", + "Codec", "CodeMetadataValue", + "CountedVariadicValues", "EnumValue", "ExplicitEnumValue", "Field", "ListValue", + "ManagedDecimalSignedValue", + "ManagedDecimalValue", "OptionValue", "Serializer", "I8Value",