Skip to content

algopy_testing.decorators.arc4

MethodMetadata
set_arc4_metadata(→ None)
maybe_arc4_metadata(→ MethodMetadataNone)
get_arc4_metadata(→ MethodMetadata)
get_ordered_args(→ list[Any])
check_routing_conditions(→ None)
abimethod(…)
create_abimethod_txns(→ list[algopy.gtxn.TransactionBase])
get_active_txn_fields() → dict[str, Any])
create_baremethod_txns(→ list[algopy.gtxn.TransactionBase])
baremethod(…)
ARC4_METADATA_ATTR

resource_encoding : _ResourceEncoding = ‘value’

Section titled “resource_encoding : _ResourceEncoding = ‘value’”

get_ordered_args(_fn: Callable[Ellipsis, Any], app_args: Sequence[Any], kwargs: dict[str, Any]) → list[Any]

Section titled “get_ordered_args(_fn: Callable[Ellipsis, Any], app_args: Sequence[Any], kwargs: dict[str, Any]) → list[Any]”

abimethod(fn: Callable[_P, _R]) → Callable[_P, _R]

Section titled “abimethod(fn: Callable[_P, _R]) → Callable[_P, _R]”

abimethod(name: str | None = None, create: _CreateValues = ‘disallow’, allow_actions: Sequence[_AllowActions] = (‘NoOp’), readonly: bool = False, default_args: Mapping[str, str | object] | None = None) → Callable[[collections.abc.Callable[_P, _R]], Callable[_P, _R]]

Section titled “abimethod(name: str | None = None, create: _CreateValues = ‘disallow’, allow_actions: Sequence[_AllowActions] = (‘NoOp’), readonly: bool = False, default_args: Mapping[str, str | object] | None = None) → Callable[[collections.abc.Callable[_P, _R]], Callable[_P, _R]]”

create_abimethod_txns(app_id: int, arc4_signature: str, args: Sequence[object], allow_actions: Sequence[_AllowActions], resource_encoding: _ResourceEncoding) → list[algopy.gtxn.TransactionBase]

Section titled “create_abimethod_txns(app_id: int, arc4_signature: str, args: Sequence[object], allow_actions: Sequence[_AllowActions], resource_encoding: _ResourceEncoding) → list[algopy.gtxn.TransactionBase]”

get_active_txn_fields(app: algopy.Application, allow_actions: Sequence[_AllowActions] = ()) → dict[str, Any]

Section titled “get_active_txn_fields(app: algopy.Application, allow_actions: Sequence[_AllowActions] = ()) → dict[str, Any]”

create_baremethod_txns(app_id: int, allow_actions: Sequence[_AllowActions]) → list[algopy.gtxn.TransactionBase]

Section titled “create_baremethod_txns(app_id: int, allow_actions: Sequence[_AllowActions]) → list[algopy.gtxn.TransactionBase]”

baremethod(fn: Callable[_P, _R]) → Callable[_P, _R]

Section titled “baremethod(fn: Callable[_P, _R]) → Callable[_P, _R]”

baremethod(create: Literal[‘allow’, ‘require’, ‘disallow’] = ‘disallow’, allow_actions: Sequence[algopy.OnCompleteAction | Literal[‘NoOp’, ‘OptIn’, ‘CloseOut’, ‘UpdateApplication’, ‘DeleteApplication’]] = (‘NoOp’)) → Callable[[Callable[_P, _R]], Callable[_P, _R]]

Section titled “baremethod(create: Literal[‘allow’, ‘require’, ‘disallow’] = ‘disallow’, allow_actions: Sequence[algopy.OnCompleteAction | Literal[‘NoOp’, ‘OptIn’, ‘CloseOut’, ‘UpdateApplication’, ‘DeleteApplication’]] = (‘NoOp’)) → Callable[[Callable[_P, _R]], Callable[_P, _R]]”