Skip to content

Commit

Permalink
fix: Ensure arc4 router generation works with minimal contracts that …
Browse files Browse the repository at this point in the history
…don't have any explicit abimethods
  • Loading branch information
tristanmenzel authored and daniel-makerx committed Apr 8, 2024
1 parent 33d961a commit 936f378
Show file tree
Hide file tree
Showing 78 changed files with 776 additions and 419 deletions.
4 changes: 1 addition & 3 deletions examples/amm/out/ConstantProductAMM.ssa.ir

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

9 changes: 3 additions & 6 deletions examples/amm/out_unoptimized/ConstantProductAMM.approval.teal
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ main_swap_route@8:
return

main_switch_case_default@9:
b main_after_if_else@14
// amm/contract.py:27
// class ConstantProductAMM(ARC4Contract):
err // reject transaction

main_bare_routing@11:
// amm/contract.py:27
Expand All @@ -258,11 +260,6 @@ main_reject_bare_on_completion@13:
// class ConstantProductAMM(ARC4Contract):
err // reject transaction

main_after_if_else@14:
// amm/contract.py:27
// class ConstantProductAMM(ARC4Contract):
err // reject transaction


// examples.amm.contract.ConstantProductAMM.set_governor(new_governor: bytes) -> void:
set_governor:
Expand Down

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

10 changes: 2 additions & 8 deletions examples/amm/puya.log

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

4 changes: 1 addition & 3 deletions examples/arc-28/out/EventEmitter.ssa.ir

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

9 changes: 3 additions & 6 deletions examples/arc-28/out_unoptimized/EventEmitter.approval.teal
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ main_emit_swapped_route@2:
return

main_switch_case_default@3:
b main_after_if_else@8
// arc-28/contract.py:9
// class EventEmitter(ARC4Contract):
err // reject transaction

main_bare_routing@5:
// arc-28/contract.py:9
Expand All @@ -56,11 +58,6 @@ main_reject_bare_on_completion@7:
// class EventEmitter(ARC4Contract):
err // reject transaction

main_after_if_else@8:
// arc-28/contract.py:9
// class EventEmitter(ARC4Contract):
err // reject transaction


// contract.EventEmitter.emit_swapped(a: bytes, b: bytes) -> void:
emit_swapped:
Expand Down
4 changes: 1 addition & 3 deletions examples/arc-28/out_unoptimized/EventEmitter.destructured.ir

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

10 changes: 2 additions & 8 deletions examples/arc-28/puya.log

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

4 changes: 1 addition & 3 deletions examples/auction/out/Auction.ssa.ir

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

9 changes: 3 additions & 6 deletions examples/auction/out_unoptimized/Auction.approval.teal
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ main_claim_asset_route@9:
return

main_switch_case_default@10:
b main_after_if_else@15
// auction/contract.py:16
// class Auction(ARC4Contract):
err // reject transaction

main_bare_routing@12:
// auction/contract.py:16
Expand All @@ -170,11 +172,6 @@ main_reject_bare_on_completion@14:
// class Auction(ARC4Contract):
err // reject transaction

main_after_if_else@15:
// auction/contract.py:16
// class Auction(ARC4Contract):
err // reject transaction


// examples.auction.contract.Auction.opt_into_asset(asset: uint64) -> void:
opt_into_asset:
Expand Down
4 changes: 1 addition & 3 deletions examples/auction/out_unoptimized/Auction.destructured.ir

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

10 changes: 2 additions & 8 deletions examples/auction/puya.log

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

4 changes: 1 addition & 3 deletions examples/hello_world_arc4/out/HelloWorldContract.ssa.ir

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

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ main_hello_route@2:
return

main_switch_case_default@3:
b main_after_if_else@8
// hello_world_arc4/contract.py:9
// class HelloWorldContract(ARC4Contract):
err // reject transaction

main_bare_routing@5:
// hello_world_arc4/contract.py:9
Expand All @@ -66,11 +68,6 @@ main_reject_bare_on_completion@7:
// class HelloWorldContract(ARC4Contract):
err // reject transaction

main_after_if_else@8:
// hello_world_arc4/contract.py:9
// class HelloWorldContract(ARC4Contract):
err // reject transaction


// examples.hello_world_arc4.contract.HelloWorldContract.hello(name: bytes) -> bytes:
hello:
Expand Down

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

Loading

0 comments on commit 936f378

Please sign in to comment.