Skip to content

Commit

Permalink
- remove stub_name from WType (WIP)
Browse files Browse the repository at this point in the history
- make assignment type mismatch error a bit more generic - front ends should be validating this anyway, no need to confuse now with wtype names vs language native names
- simplify / improve error message for arc4 copy requirements
- remove var_expression usage (WIP)
- boxes & state changes (WIP)
- fix box bytes indexing
- field_name -> member_name for contract class member vars
  • Loading branch information
achidlow committed Jun 25, 2024
1 parent 7663f66 commit 0bc1041
Show file tree
Hide file tree
Showing 209 changed files with 5,304 additions and 5,419 deletions.
2 changes: 1 addition & 1 deletion examples/amm/out/client_ConstantProductAMM.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def bootstrap(
seed: algopy.gtxn.PaymentTransaction,
a_asset: algopy.Asset,
b_asset: algopy.Asset,
) -> algopy.arc4.UInt64: ...
) -> algopy.arc4.UIntN[typing.Literal[64]]: ...

@algopy.arc4.abimethod(default_args={'pool_asset': 'pool_token', 'a_asset': 'asset_a', 'b_asset': 'asset_b'})
def mint(
Expand Down
106 changes: 53 additions & 53 deletions examples/amm/out/contract.awst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/arc-28/out/client_EventEmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ class EventEmitter(algopy.arc4.ARC4Client, typing.Protocol):
@algopy.arc4.abimethod
def emit_swapped(
self,
a: algopy.arc4.UInt64,
b: algopy.arc4.UInt64,
a: algopy.arc4.UIntN[typing.Literal[64]],
b: algopy.arc4.UIntN[typing.Literal[64]],
) -> None: ...
12 changes: 6 additions & 6 deletions examples/arc-28/out/contract.awst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/auction/out/client_Auction.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def opt_into_asset(
@algopy.arc4.abimethod
def start_auction(
self,
starting_price: algopy.arc4.UInt64,
length: algopy.arc4.UInt64,
starting_price: algopy.arc4.UIntN[typing.Literal[64]],
length: algopy.arc4.UIntN[typing.Literal[64]],
axfer: algopy.gtxn.AssetTransferTransaction,
) -> None: ...

Expand Down
58 changes: 29 additions & 29 deletions examples/auction/out/contract.awst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0bc1041

Please sign in to comment.