Skip to content

Commit

Permalink
Increment PyTeal version and remove AlgoExplorer (#241)
Browse files Browse the repository at this point in the history
* use pyteal 0.25

* remove algoexplorer apis

* pyteal 0.26.1

* passing tests

* update black (pip-audit)

* run black
  • Loading branch information
joe-p authored Sep 24, 2024
1 parent dcf9c79 commit df82d8a
Show file tree
Hide file tree
Showing 119 changed files with 869 additions and 1,237 deletions.
155 changes: 60 additions & 95 deletions beaker/application.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions beaker/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#: Used for runtime algo calculations `Txn.fee()==MilliAlgo`
MilliAlgo: Final[Int] = Int(milli_algo)


#: Used for shorthand for Int(10*algo) like Algos(10)
def Algos(v: int | float) -> Int: # noqa: N802
return Int(int(v * algo))
Expand Down
15 changes: 5 additions & 10 deletions beaker/lib/storage/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,16 @@ def _offset_for_idx(idx: Expr) -> Expr:
return idx % BLOB_PAGE_SIZE

@abstractmethod
def zero(self) -> Expr:
...
def zero(self) -> Expr: ...

@abstractmethod
def get_byte(self, idx: Int) -> Expr:
...
def get_byte(self, idx: Int) -> Expr: ...

@abstractmethod
def set_byte(self, idx: Int, byte: Expr) -> Expr:
...
def set_byte(self, idx: Int, byte: Expr) -> Expr: ...

@abstractmethod
def read(self, bstart: Expr, bstop: Expr) -> Expr:
...
def read(self, bstart: Expr, bstop: Expr) -> Expr: ...

@abstractmethod
def write(self, bstart: Expr, buff: Expr) -> Expr:
...
def write(self, bstart: Expr, buff: Expr) -> Expr: ...
8 changes: 5 additions & 3 deletions beaker/precompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ def populate_template_expr(self, **kwargs: Expr) -> Expr:
arg = kwargs[name]
require_type(arg, TealType.bytes if tv.is_bytes else TealType.uint64)
populate_program += [
curr_val.store(Concat(EncodeUVarInt(Len(arg)), arg))
if tv.is_bytes
else curr_val.store(EncodeUVarInt(arg)),
(
curr_val.store(Concat(EncodeUVarInt(Len(arg)), arg))
if tv.is_bytes
else curr_val.store(EncodeUVarInt(arg))
),
buff.store(
Concat(
buff.load(),
Expand Down
15 changes: 5 additions & 10 deletions beaker/state/_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,23 @@ class AppSpecSchemaFragment(NamedTuple):

class StateStorage(ABC):
@abstractmethod
def app_spec_json(self) -> AppSpecSchemaFragment | None:
...
def app_spec_json(self) -> AppSpecSchemaFragment | None: ...

@abstractmethod
def num_keys(self) -> int:
...
def num_keys(self) -> int: ...

@abstractmethod
def value_type(self) -> Literal[TealType.bytes, TealType.uint64]:
...
def value_type(self) -> Literal[TealType.bytes, TealType.uint64]: ...


class GlobalStateStorage(StateStorage):
@abstractmethod
def initialize(self) -> Expr | None:
...
def initialize(self) -> Expr | None: ...


class LocalStateStorage(StateStorage):
@abstractmethod
def initialize(self, acct: Expr) -> Expr | None:
...
def initialize(self, acct: Expr) -> Expr | None: ...


# class BoxStorage(ABC):
Expand Down
3 changes: 1 addition & 2 deletions beaker/state/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def __teal__(self, options: CompileOptions) -> tuple[TealBlock, TealSimpleBlock]
return self.get().__teal__(options)

@abstractmethod
def __str__(self) -> str:
...
def __str__(self) -> str: ...

def str_key(self) -> str:
"""returns the string held by the key Bytes object"""
Expand Down
3 changes: 1 addition & 2 deletions beaker/state/reserved.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def __getitem__(self, key_seed: Expr | abi.BaseType) -> ST:
return self._get_state_for_key(key)

@abstractmethod
def _get_state_for_key(self, key: Expr) -> ST:
...
def _get_state_for_key(self, key: Expr) -> ST: ...

def num_keys(self) -> int:
return self.max_keys
Expand Down
1 change: 1 addition & 0 deletions examples/account_storage/disk_hungry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
build_options=beaker.BuildOptions(avm_version=8),
)


# App that needs lots of storage so we use the local storage of
# unique lsig accounts that have been rekeyed to the app address.
# This allows us to use the local storage of the unique accounts
Expand Down
4 changes: 2 additions & 2 deletions examples/amm/ConstantProductAMM.artifacts/application.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/amm/ConstantProductAMM.artifacts/approval.teal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma version 8
#pragma version 10
intcblock 0 1 1000 4 10000000000
bytecblock 0x61 0x62 0x70 0x67 0x72
txn NumAppArgs
Expand Down
2 changes: 1 addition & 1 deletion examples/amm/ConstantProductAMM.artifacts/clear.teal
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma version 8
#pragma version 10
pushint 0 // 0
return
2 changes: 1 addition & 1 deletion examples/amm/amm.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# WARNING: This code is provided for example only. Do NOT deploy to mainnet.

pt.pragma(compiler_version="^0.24.0")
pt.pragma(compiler_version="^0.26.1")


def commented_assert(conditions: list[tuple[pt.Expr, str]]) -> list[pt.Expr]:
Expand Down
8 changes: 5 additions & 3 deletions examples/amm/amm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,11 @@ def valid_asset_xfer(key: str) -> XS:
wrong_receiver(mint(), key),
),
(
amm.Errors.AssetAIncorrect
if key == "a_xfer"
else amm.Errors.AssetBIncorrect,
(
amm.Errors.AssetAIncorrect
if key == "a_xfer"
else amm.Errors.AssetBIncorrect
),
override_axfer_asset(
mint(), key, b_asset if key == "a_xfer" else a_asset
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
}
},
"source": {
"approval": "I3ByYWdtYSB2ZXJzaW9uIDgKaW50Y2Jsb2NrIDAgMQpieXRlY2Jsb2NrIDB4MTUxZjdjNzUKdHhuIE51bUFwcEFyZ3MKaW50Y18wIC8vIDAKPT0KYm56IG1haW5fbDEwCnR4bmEgQXBwbGljYXRpb25BcmdzIDAKcHV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AwCnJldHVybg=="
},
"state": {
"global": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma version 8
#pragma version 10
intcblock 0 1
bytecblock 0x151f7c75
txn NumAppArgs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma version 8
#pragma version 10
pushint 0 // 0
return
1 change: 1 addition & 0 deletions examples/blueprint/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def add(a: abi.Uint64, b: abi.Uint64, *, output: abi.Uint64) -> Expr:

app = Application("BlueprintExampleNoArgs").apply(add_blueprint)


# A blueprint that adds a method named `addN` to the external
# methods of the Application passed
def add_n_blueprint(app: Application, n: int) -> None:
Expand Down
4 changes: 2 additions & 2 deletions examples/boxen/AppMember.artifacts/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
}
},
"source": {
"approval": "I3ByYWdtYSB2ZXJzaW9uIDgKaW50Y2Jsb2NrIDAgMQpieXRlY2Jsb2NrIDB4NjM2Yzc1NjI1ZjYxNzA3MDVmNjk2NAp0eG4gTnVtQXBwQXJncwppbnRjXzAgLy8gMAo9PQpibnogbWFpbl9sNgp0eG5hIEFwcGxpY2F0aW9uQXJncyAwCnB1c2hieXRlcyAweGQ3OWE5MjBmIC8vICJib290c3RyYXAocGF5LGFwcGxpY2F0aW9uLGFzc2V0KXZvaWQiCj09CmJueiBtYWluX2w1CnR4bmEgQXBwbGljYXRpb25BcmdzIDAKcHVzaGJ5dGVzIDB4ZjI2MWQ5NzMgLy8gImdldF9hZmZpcm1hdGlvbihhc3NldCxhcHBsaWNhdGlvbil2b2lkIgo9PQpibnogbWFpbl9sNAplcnIKbWFpbl9sNDoKdHhuIE9uQ29tcGxldGlvbgppbnRjXzAgLy8gTm9PcAo9PQp0eG4gQXBwbGljYXRpb25JRAppbnRjXzAgLy8gMAohPQomJgphc3NlcnQKY2FsbHN1YiBnZXRhZmZpcm1hdGlvbmNhc3Rlcl8xCmludG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5dGVzIDB4MDAgLy8gMHgwMAppdHhuX2ZpZWxkIEFwcGxpY2F0aW9uQXJncwppdHhuX3N1Ym1pdApwdXNoYnl0ZXMgMHg2YzYxNzM3NDVmNjE2NjY2Njk3MjZkNjE3NDY5NmY2ZSAvLyAibGFzdF9hZmZpcm1hdGlvbiIKaXR4biBMYXN0TG9nCmV4dHJhY3QgNCAwCmFwcF9nbG9iYWxfcHV0CnJldHN1Yg==",
"clear": "I3ByYWdtYSB2ZXJzaW9uIDEwCnB1c2hpbnQgMCAvLyAwCnJldHVybg=="
},
"state": {
"global": {
Expand Down
2 changes: 1 addition & 1 deletion examples/boxen/AppMember.artifacts/approval.teal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma version 8
#pragma version 10
intcblock 0 1
bytecblock 0x636c75625f6170705f6964
txn NumAppArgs
Expand Down
2 changes: 1 addition & 1 deletion examples/boxen/AppMember.artifacts/clear.teal
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma version 8
#pragma version 10
pushint 0 // 0
return
Loading

0 comments on commit df82d8a

Please sign in to comment.