Skip to content

Commit

Permalink
todos
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-makerx committed Aug 7, 2024
1 parent 20e2ec3 commit a12df9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Arc4ABIMethod/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

UInt8Array = arc4.DynamicArray[arc4.UInt8]


# TODO: move out of examples
class SignaturesContract(ARC4Contract):

@arc4.abimethod(create="require")
Expand Down
4 changes: 4 additions & 0 deletions src/algopy_testing/models/txn_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class ApplicationCallFields(_TransactionBaseFields, total=False):
accounts: Sequence[algopy.Account]
assets: Sequence[algopy.Asset]
apps: Sequence[algopy.Application]
# TODO: when storing these pages values, combine into one bytes and then "chop" into 4096 length pieces
approval_program: Sequence[algopy.Bytes]
clear_state_program: Sequence[algopy.Bytes]

Expand Down Expand Up @@ -277,6 +278,9 @@ def _approval_program_pages(self) -> Sequence[algopy.Bytes]:
def approval_program_pages(self) -> Callable[[algopy.UInt64 | int], algopy.Bytes]:
return lambda i: self._approval_program_pages[int(i)]

# TODO: num_approval_program_pages
# TODO: clear program

@property
def on_completion(self) -> algopy.OnCompleteAction:
return self.fields["on_completion"] # type: ignore[return-value]
Expand Down
2 changes: 1 addition & 1 deletion src/algopy_testing/op/global_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def current_application_id(self) -> algopy.Application:
if app_data.is_creating:
return Application(0)
return context.get_active_transaction().app_id

# TODO: move creator_address here
@property
def latest_timestamp(self) -> algopy.UInt64:
try:
Expand Down

0 comments on commit a12df9e

Please sign in to comment.