Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ABI types fully specified #222

Merged
merged 23 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
container: python:${{ matrix.python }}-slim
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
python: ['3.8', '3.9', '3.10']
steps:
- run: python3 --version
- name: Check out code
Expand Down
1 change: 1 addition & 0 deletions pyteal/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,6 @@ __all__ = [
"UnaryExpr",
"While",
"WideRatio",
"abi",
"compileTeal",
]
60 changes: 54 additions & 6 deletions pyteal/ast/abi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,68 @@
from .type import Type, ComputedType
from .bool import Bool
from .uint import Uint, Byte, Uint8, Uint16, Uint32, Uint64
from .tuple import Tuple
from .array import StaticArray, DynamicArray
from .type import TypeSpec, BaseType, ComputedType
from .bool import BoolTypeSpec, Bool
from .uint import (
UintTypeSpec,
Uint,
ByteTypeSpec,
Byte,
Uint8TypeSpec,
Uint8,
Uint16TypeSpec,
Uint16,
Uint32TypeSpec,
Uint32,
Uint64TypeSpec,
Uint64,
)
from .tuple import (
TupleTypeSpec,
Tuple,
TupleElement,
Tuple0,
Tuple1,
Tuple2,
Tuple3,
Tuple4,
Tuple5,
)
from .array_base import ArrayTypeSpec, Array, ArrayElement
from .array_static import StaticArrayTypeSpec, StaticArray
from .array_dynamic import DynamicArrayTypeSpec, DynamicArray
from .util import type_spec_from_annotation

__all__ = [
"Type",
"TypeSpec",
"BaseType",
"ComputedType",
"BoolTypeSpec",
"Bool",
"UintTypeSpec",
"Uint",
"ByteTypeSpec",
"Byte",
"Uint8TypeSpec",
"Uint8",
"Uint16TypeSpec",
"Uint16",
"Uint32TypeSpec",
"Uint32",
"Uint64TypeSpec",
"Uint64",
"TupleTypeSpec",
"Tuple",
"TupleElement",
"Tuple0",
"Tuple1",
"Tuple2",
"Tuple3",
"Tuple4",
"Tuple5",
"ArrayTypeSpec",
"Array",
"ArrayElement",
"StaticArrayTypeSpec",
"StaticArray",
"DynamicArrayTypeSpec",
"DynamicArray",
"type_spec_from_annotation",
]
Loading