diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index a84821eb..d0071886 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -79,7 +79,6 @@ jobs: --define=branch=alpha \ --define=upload_to_repository=true \ publish - gh release edit --prerelease "v$(uv run semantic-release print-version --current)" env: GH_TOKEN: ${{ steps.app_token.outputs.token }} REPOSITORY_USERNAME: __token__ @@ -94,7 +93,6 @@ jobs: --define=branch=main \ --define=upload_to_repository=true \ publish - gh release edit --prerelease "v$(uv run semantic-release print-version --current)" env: GH_TOKEN: ${{ steps.app_token.outputs.token }} REPOSITORY_USERNAME: __token__ diff --git a/docs/markdown/autoapi/algokit_utils/algosdk/index.md b/docs/markdown/autoapi/algokit_utils/algosdk/index.md new file mode 100644 index 00000000..f39996d4 --- /dev/null +++ b/docs/markdown/autoapi/algokit_utils/algosdk/index.md @@ -0,0 +1,5 @@ +# algokit_utils.algosdk + +Algorand SDK compatibility types - user-facing facade for algokit_algosdk. + +Users should import from this module instead of algokit_algosdk directly. diff --git a/src/algokit_utils/clients/__init__.py b/src/algokit_utils/clients/__init__.py index 1a48b824..e8916665 100644 --- a/src/algokit_utils/clients/__init__.py +++ b/src/algokit_utils/clients/__init__.py @@ -1,2 +1,41 @@ -from algokit_utils.clients.client_manager import * # noqa: F403 -from algokit_utils.clients.dispenser_api_client import * # noqa: F403 +from algokit_algod_client import AlgodClient +from algokit_algod_client import models as algod_models +from algokit_algod_client.exceptions import UnexpectedStatusError +from algokit_indexer_client import IndexerClient +from algokit_kmd_client import KmdClient +from algokit_utils.clients.client_manager import ( + AlgoSdkClients, + ClientManager, + NetworkDetail, +) +from algokit_utils.clients.dispenser_api_client import ( + DISPENSER_ACCESS_TOKEN_KEY, + DISPENSER_ASSETS, + DISPENSER_REQUEST_TIMEOUT, + DispenserApiConfig, + DispenserAsset, + DispenserAssetName, + DispenserFundResponse, + DispenserLimitResponse, + TestNetDispenserApiClient, +) + +__all__ = [ + "DISPENSER_ACCESS_TOKEN_KEY", + "DISPENSER_ASSETS", + "DISPENSER_REQUEST_TIMEOUT", + "AlgoSdkClients", + "AlgodClient", + "ClientManager", + "DispenserApiConfig", + "DispenserAsset", + "DispenserAssetName", + "DispenserFundResponse", + "DispenserLimitResponse", + "IndexerClient", + "KmdClient", + "NetworkDetail", + "TestNetDispenserApiClient", + "UnexpectedStatusError", + "algod_models", +] diff --git a/src/algokit_utils/common.py b/src/algokit_utils/common.py new file mode 100644 index 00000000..e0986138 --- /dev/null +++ b/src/algokit_utils/common.py @@ -0,0 +1,40 @@ +"""Common utilities - user-facing facade for algokit_common. + +Users should import from this module instead of algokit_common directly. +""" + +from algokit_common import ( + ADDRESS_LENGTH, + CHECKSUM_BYTE_LENGTH, + HASH_BYTES_LENGTH, + MAX_TRANSACTION_GROUP_SIZE, + MICROALGOS_TO_ALGOS_RATIO, + MIN_TXN_FEE, + PUBLIC_KEY_BYTE_LENGTH, + SIGNATURE_BYTE_LENGTH, + TRANSACTION_ID_LENGTH, + ZERO_ADDRESS, + ProgramSourceMap, + address_from_public_key, + get_application_address, + public_key_from_address, + sha512_256, +) + +__all__ = [ + "ADDRESS_LENGTH", + "CHECKSUM_BYTE_LENGTH", + "HASH_BYTES_LENGTH", + "MAX_TRANSACTION_GROUP_SIZE", + "MICROALGOS_TO_ALGOS_RATIO", + "MIN_TXN_FEE", + "PUBLIC_KEY_BYTE_LENGTH", + "SIGNATURE_BYTE_LENGTH", + "TRANSACTION_ID_LENGTH", + "ZERO_ADDRESS", + "ProgramSourceMap", + "address_from_public_key", + "get_application_address", + "public_key_from_address", + "sha512_256", +]