code stringlengths 0 94.8k | repo_name stringclasses 1
value | path stringlengths 14 57 | language stringclasses 1
value | license stringclasses 1
value | size int64 0 94.8k |
|---|---|---|---|---|---|
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master... | algorandfoundation/algokit-utils-py | docs/source/conf.py | Python | MIT | 2,144 |
algorandfoundation/algokit-utils-py | legacy_v2_tests/__init__.py | Python | MIT | 0 | |
from typing import Literal
import beaker
import pyteal
from beaker.lib.storage import BoxMapping
class State:
greeting = beaker.GlobalStateValue(pyteal.TealType.bytes)
last = beaker.LocalStateValue(pyteal.TealType.bytes, default=pyteal.Bytes("unset"))
box = BoxMapping(pyteal.abi.StaticBytes[Literal[4]], ... | algorandfoundation/algokit-utils-py | legacy_v2_tests/app_client_test.py | Python | MIT | 5,773 |
import beaker
import pyteal
app = beaker.Application("MultiUnderscoreApp")
@app.external
def some_value(*, output: pyteal.abi.Uint64) -> pyteal.Expr:
return output.set(pyteal.Tmpl.Int("TMPL_SOME_VALUE"))
@app.update(bare=True, authorize=beaker.Authorize.only_creator())
def update() -> pyteal.Expr:
return p... | algorandfoundation/algokit-utils-py | legacy_v2_tests/app_multi_underscore_template_var.py | Python | MIT | 655 |
import inspect
import math
import random
import subprocess
from pathlib import Path
from typing import TYPE_CHECKING
from uuid import uuid4
import algosdk.transaction
import pytest
from dotenv import load_dotenv
from algokit_utils import (
DELETABLE_TEMPLATE_NAME,
UPDATABLE_TEMPLATE_NAME,
Account,
App... | algorandfoundation/algokit-utils-py | legacy_v2_tests/conftest.py | Python | MIT | 6,720 |
from typing import TYPE_CHECKING
from algokit_utils import get_account
from legacy_v2_tests.conftest import get_unique_name
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
def test_account_can_be_called_twice(algod_client: "AlgodClient") -> None:
account_name = get_unique_name()
account... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_account.py | Python | MIT | 452 |
import pytest
from algokit_utils import AppDeployMetaData
@pytest.mark.parametrize(
"app_note_json",
[
b'ALGOKIT_DEPLOYER:j{"name":"VotingRoundApp","version":"1.0","deletable":true,"updatable":true}',
b'ALGOKIT_DEPLOYER:j{"name":"VotingRoundApp","version":"1.0","deletable":true}',
],
)
de... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app.py | Python | MIT | 456 |
import pytest
from algokit_utils import (
DeploymentFailedError,
get_next_version,
)
@pytest.mark.parametrize(
("current", "expected_next"),
[
("1", "2"),
("v1", "v2"),
("v1-alpha", "v2-alpha"),
("1.0", "1.1"),
("v1.0", "v1.1"),
("v1.0-alpha", "v1.1-alp... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client.py | Python | MIT | 717 |
from collections.abc import Generator
from hashlib import sha256
from pathlib import Path
from typing import TYPE_CHECKING
from unittest.mock import Mock, patch
import pytest
from algosdk.atomic_transaction_composer import (
AccountTransactionSigner,
AtomicTransactionComposer,
TransactionWithSigner,
)
from... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_call.py | Python | MIT | 12,318 |
import base64
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
Account,
ApplicationClient,
ApplicationSpecification,
)
from legacy_v2_tests.conftest import is_opted_in
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.indexer import I... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_clear_state.py | Python | MIT | 1,870 |
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
Account,
ApplicationClient,
ApplicationSpecification,
LogicError,
)
from legacy_v2_tests.conftest import check_output_stability, is_opted_in
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
from algosdk... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_close_out.py | Python | MIT | 1,986 |
import dataclasses
from typing import TYPE_CHECKING
import pytest
from algosdk.atomic_transaction_composer import AccountTransactionSigner, AtomicTransactionComposer, TransactionSigner
from algosdk.transaction import ApplicationCallTxn, GenericSignedTransaction, OnComplete, Transaction
from algokit_utils import (
... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_create.py | Python | MIT | 9,250 |
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
Account,
ApplicationClient,
ApplicationSpecification,
LogicError,
)
from legacy_v2_tests.conftest import check_output_stability
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.ind... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_delete.py | Python | MIT | 1,463 |
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
ABICreateCallArgs,
Account,
ApplicationClient,
ApplicationSpecification,
TransferParameters,
transfer,
)
from legacy_v2_tests.conftest import get_unique_name, read_spec
if TYPE_CHECKING:
from algosdk.v2client.algod... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_deploy.py | Python | MIT | 1,988 |
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
Account,
ApplicationClient,
ApplicationSpecification,
LogicError,
)
from legacy_v2_tests.conftest import check_output_stability, is_opted_in
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
from algosdk... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_opt_in.py | Python | MIT | 1,854 |
import base64
from typing import TYPE_CHECKING
from algosdk.atomic_transaction_composer import AccountTransactionSigner
from algokit_utils import (
ApplicationClient,
ApplicationSpecification,
)
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
def test_app_client_prepare_with_no_existin... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_prepare.py | Python | MIT | 1,804 |
from typing import TYPE_CHECKING
from algokit_utils import (
Account,
ApplicationClient,
DefaultArgumentDict,
)
from legacy_v2_tests.conftest import read_spec
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
def test_resolve(algod_client: "AlgodClient", creator: Account) -> None:
... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_resolve.py | Python | MIT | 2,011 |
import base64
import contextlib
from typing import TYPE_CHECKING, Any
import pytest
from algosdk.atomic_transaction_composer import AccountTransactionSigner, TransactionSigner
from algokit_utils import (
ApplicationClient,
ApplicationSpecification,
get_sender_from_signer,
)
if TYPE_CHECKING:
from alg... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_signer_sender.py | Python | MIT | 2,264 |
from typing import TYPE_CHECKING
import pytest
import algokit_utils
from legacy_v2_tests.conftest import get_unique_name, read_spec
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.indexer import IndexerClient
def test_create_with_all_template_values_on_initialize(
... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_template_values.py | Python | MIT | 4,446 |
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
Account,
ApplicationClient,
ApplicationSpecification,
LogicError,
)
from legacy_v2_tests.conftest import check_output_stability
if TYPE_CHECKING:
from algosdk.v2client.algod import AlgodClient
from algosdk.v2client.ind... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_app_client_update.py | Python | MIT | 1,748 |
import re
from typing import TYPE_CHECKING
import pytest
from algokit_utils import (
Account,
EnsureBalanceParameters,
TransferAssetParameters,
create_kmd_wallet_account,
ensure_funded,
transfer_asset,
)
from algokit_utils.asset import opt_in, opt_out
if TYPE_CHECKING:
from algosdk.kmd im... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_asset.py | Python | MIT | 7,263 |
import json
from typing import TYPE_CHECKING
from unittest.mock import Mock
import pytest
from algosdk.atomic_transaction_composer import (
AccountTransactionSigner,
AtomicTransactionComposer,
TransactionWithSigner,
)
from algosdk.transaction import PaymentTxn
from algokit_utils._debugging import (
Pe... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_debug_utils.py | Python | MIT | 5,847 |
from algokit_utils import (
replace_template_variables,
)
from algokit_utils._legacy_v2.deploy import strip_comments
from legacy_v2_tests.conftest import check_output_stability
def test_template_substitution() -> None:
program = """
test TMPL_INT // TMPL_INT
test TMPL_INT
no change
test TMPL_STR // TMPL_STR
T... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_deploy.py | Python | MIT | 1,870 |
import logging
import re
import time
from collections.abc import Generator
from enum import Enum
from unittest.mock import Mock, patch
import pytest
from algokit_utils import (
Account,
ApplicationClient,
ApplicationSpecification,
DeploymentFailedError,
LogicError,
OnSchemaBreak,
OnUpdate,... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_deploy_scenarios.py | Python | MIT | 15,254 |
import json
import pytest
from pytest_httpx import HTTPXMock
from algokit_utils.dispenser_api import (
DISPENSER_ASSETS,
DispenserApiConfig,
DispenserAssetName,
TestNetDispenserApiClient,
)
class TestDispenserApiTestnetClient:
def test_fund_account_with_algos_with_auth_token(self, httpx_mock: HT... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_dispenser_api_client.py | Python | MIT | 3,042 |
import os
from unittest import mock
from algokit_utils import (
get_algod_client,
get_algonode_config,
get_default_localnet_config,
get_indexer_client,
)
DEFAULT_TOKEN = "a" * 64
def test_localnet_algod() -> None:
algod_client = get_algod_client(get_default_localnet_config("algod"))
health_r... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_network_clients.py | Python | MIT | 1,403 |
from typing import TYPE_CHECKING
import algosdk
import httpx
import pytest
from algosdk.atomic_transaction_composer import AccountTransactionSigner
from algosdk.transaction import PaymentTxn
from algosdk.util import algos_to_microalgos
from pytest_httpx import HTTPXMock
from algokit_utils import (
Account,
En... | algorandfoundation/algokit-utils-py | legacy_v2_tests/test_transfer.py | Python | MIT | 15,970 |
"""AlgoKit Python Utilities - a set of utilities for building solutions on Algorand
This module provides commonly used utilities and types at the root level for convenience.
For more specific functionality, import directly from the relevant submodules:
from algokit_utils.accounts import KmdAccountManager
from... | algorandfoundation/algokit-utils-py | src/algokit_utils/__init__.py | Python | MIT | 1,039 |
import base64
import json
import logging
import typing
from dataclasses import dataclass, field
from datetime import datetime, timezone
from pathlib import Path
from algosdk.atomic_transaction_composer import (
AtomicTransactionComposer,
EmptySigner,
SimulateAtomicTransactionResponse,
)
from algosdk.encodi... | algorandfoundation/algokit-utils-py | src/algokit_utils/_debugging.py | Python | MIT | 11,703 |
"""AlgoKit Python Utilities (Legacy V2) - a set of utilities for building solutions on Algorand
This module provides commonly used utilities and types at the root level for convenience.
For more specific functionality, import directly from the relevant submodules:
from algokit_utils.accounts import KmdAccountMana... | algorandfoundation/algokit-utils-py | src/algokit_utils/_legacy_v2/__init__.py | Python | MIT | 4,689 |
from dataclasses import dataclass
from algosdk.account import address_from_private_key
from algosdk.atomic_transaction_composer import AccountTransactionSigner
from algosdk.transaction import SuggestedParams
from algosdk.v2client.algod import AlgodClient
from typing_extensions import deprecated
from algokit_utils._le... | algorandfoundation/algokit-utils-py | src/algokit_utils/_legacy_v2/_ensure_funded.py | Python | MIT | 6,931 |
import dataclasses
import logging
from typing import TYPE_CHECKING
import algosdk.transaction
from algosdk.account import address_from_private_key
from algosdk.atomic_transaction_composer import AccountTransactionSigner
from algosdk.transaction import AssetTransferTxn, PaymentTxn, SuggestedParams
from typing_extension... | algorandfoundation/algokit-utils-py | src/algokit_utils/_legacy_v2/_transfer.py | Python | MIT | 6,256 |
import logging
import os
from typing import TYPE_CHECKING, Any
from algosdk.account import address_from_private_key
from algosdk.mnemonic import from_private_key, to_private_key
from algosdk.util import algos_to_microalgos
from typing_extensions import deprecated
from algokit_utils._legacy_v2._transfer import Transfe... | algorandfoundation/algokit-utils-py | src/algokit_utils/_legacy_v2/account.py | Python | MIT | 8,224 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 33