-
Notifications
You must be signed in to change notification settings - Fork 132
ABI Router implementation and test
#170
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
Merged
Merged
Changes from all commits
Commits
Show all changes
223 commits
Select commit
Hold shift + click to select a range
c73a2d9
init commit
ahangsu 897ff6a
minor
ahangsu 90fcfef
minor
ahangsu 01c114e
rm decorator
ahangsu 46daf5c
update ABI router design, seems we are still working on previous design
ahangsu 8ea2bcb
minor
ahangsu 0208800
update condition parser here
ahangsu 9adec41
skeleton for handler wrapping, need to tweak on subroutine to expose …
ahangsu 3953180
module
ahangsu ed874fa
Merge branch 'master' into abi-router
ahangsu 2bf75c3
use subroutine fn wrapper
ahangsu 5115383
update dummy method return class
ahangsu 2d1c6e3
unify ast construct way
ahangsu 0f8be9e
minor
ahangsu 92d3242
update notes for tasks and todos
ahangsu bb204bf
update handler wrapping for bare app call
ahangsu ea66a6f
minor
ahangsu 09bd24c
update redirecting args to method registered
ahangsu dfbec9b
minor
ahangsu 88a565f
minor
ahangsu 8c54acc
update router src
ahangsu 1d6fa03
update program node
ahangsu 7d683c3
add questions in build prog
ahangsu 28c3a46
update executing method branch
ahangsu 0633c88
minor
ahangsu e5cbdc7
minor
ahangsu e8d54d8
minor
ahangsu 52cd87c
hide other methods, set MethodAppArgNumLimit, keyword args on exposed…
ahangsu fb544fe
minor
ahangsu 096d693
update notes
ahangsu 26c3ea0
update
ahangsu 541b707
add a default for no registered ast gen
ahangsu ad50f67
Merge branch 'master' into abi-router
ahangsu f959cba
update ast construction to conds
ahangsu 2794fa4
need some documentations
ahangsu 2f6408a
Merge branch 'feature/abi' into abi-router
ahangsu 47e684c
move abi-router in abi dir
ahangsu 0d2dfcd
minor
ahangsu 50a15e2
Merge branch 'feature/abi' into abi-router
ahangsu af0edbb
Merge branch 'master' into feature/abi
ahangsu 0f06507
Merge branch 'feature/abi' into abi-router
ahangsu dd9abff
wtf
ahangsu d33e26c
update
ahangsu cd7632e
update to f-str
ahangsu a21ce2c
define void type
ahangsu 480ece7
update instantiated computed type returnedType for ABI return in subr…
ahangsu ff0d275
minor
ahangsu 6929922
update stuffs to help infer type annotation of return ABI
ahangsu c24e0bd
minor
ahangsu 9e3989b
minor
ahangsu a1e138e
minor
ahangsu 0d617ff
minor
ahangsu 081bfb6
minor
ahangsu e8e481e
try my best to save stuffs
ahangsu bd29b95
Merge branch 'abi-subroutine' of github.com:algorand/pyteal into abi-…
ahangsu 616968d
simplify decorator to single function
ahangsu 12e3ee4
tear it down
ahangsu f6af8fa
minor
ahangsu fee70a6
sheeeesh emacs
ahangsu 92b4db4
Merge branch 'feature/abi' into abi-subroutine
ahangsu ce425d3
Merge branch 'feature/abi' into abi-router
ahangsu aa938f9
update with latest abi impl
ahangsu 80c4d50
minors
ahangsu 79492e7
minor
ahangsu 41ba233
Merge branch 'feature/abi' into abi-subroutine
ahangsu f0101d0
updates
ahangsu 2c724be
Merge branch 'feature/abi' into abi-router
ahangsu 1b5cd6a
Merge branch 'feature/abi' into abi-subroutine
ahangsu a2d9ea2
minor, renaming something
ahangsu 91c87b7
new design, start over
ahangsu 3fb7374
updates
ahangsu 2e27f82
Merge branch 'feature/abi' into abi-subroutine
ahangsu cf3106d
abi fn wrapper for now
ahangsu 6969622
Merge branch 'feature/abi' into abi-subroutine
ahangsu dec018f
minor
ahangsu 54fe3bc
minor update on subroutine def
ahangsu 4e5e1e5
minor fixes
ahangsu 287ba71
minor fixes
ahangsu fa33095
changes
ahangsu 43212b7
more constraint on void ret
ahangsu 31cf527
update comment examples
ahangsu 87c34d8
import from abi
ahangsu b0baea5
update some error msg and comments
ahangsu 1c48d0c
testcases partial
ahangsu 319b953
upgrade testscripts
ahangsu 67831ff
merging feature/abi to abi-router (#305)
barnjamin a18c47d
Export Router (#306)
barnjamin 8ff5cc8
Merge branch 'feature/abi' into abi-router
barnjamin 5d78129
fix spacing issue
barnjamin 96f7ede
Bundle optional refactorings to subroutine.py (#308)
michaeldiamant 79d787b
storing local changes
ahangsu ae7b552
Merge branch 'abi-subroutine' of github.com:algorand/pyteal into abi-…
ahangsu 9422ea3
pr review partly
ahangsu 02f442a
pr review partly
ahangsu c9ed2b2
update test script
ahangsu 21447bb
Abi subroutine feature merge (#315)
tzaffi d43905e
Merge branch 'feature/abi' into abi-subroutine
ahangsu d0737ef
resolve conflicts
0e776a4
Merge branch 'abi-subroutine' of github.com:algorand/pyteal into abi-…
73b595f
lint
6557649
Merge branch 'feature/abi' into abi-subroutine
ahangsu 7ace3fc
minor reconstruct
ahangsu 1479959
Merge branch 'abi-subroutine' of github.com:algorand/pyteal into abi-…
386d57b
missing imports
939dea4
missing requirements from bad merge
87eafdd
Merge branch 'feature/abi' into abi-subroutine
ahangsu 4512c96
Merge branch 'feature/abi' into abi-subroutine
ahangsu 69d389b
cooperate with typespec n var def change
ahangsu 5378983
Merge branch 'feature/abi' into abi-subroutine
ahangsu f42339d
update comments
ahangsu 59226b2
some comments resolving?
ahangsu 44003d6
trim
ahangsu 9f13409
update some comments
ahangsu 5941108
bring testcase back
ahangsu c161e22
restriction on output kwarg name
ahangsu d2caed3
stop ci! i am reformatting
ahangsu cdd1e73
Merge branch 'feature/abi' into abi-router
ahangsu a262e3d
squash merge abi subroutine atm, merge again after abi subroutine int…
ahangsu 2690233
conform to pep8, reconstructing
ahangsu c0c37f8
update json generator
ahangsu bba1709
simplify name constrain
ahangsu 4c0858f
resolving comments
ahangsu dc2e060
Merge branch 'feature/abi' into abi-subroutine
ahangsu 95caac5
Use deferred subroutine expression for ABI returns (#328)
jasonpaulos d21e281
Merge branch 'abi-subroutine' of github.com:algorand/pyteal into abi-…
ahangsu 4706832
Merge branch 'abi-subroutine' into abi-router
ahangsu 3416b75
Merge branch 'feature/abi' into abi-router
ahangsu 0169078
updating wrap handler
ahangsu a04a897
change how to de-tuple args
ahangsu bc6b8dc
update checkbox
ahangsu 5516d89
minor
ahangsu b8e8d1f
bug fixes
ahangsu 16199ec
Method sig for router (#340)
barnjamin d8b7b3d
minor, renaming
ahangsu d911e42
minor
ahangsu 6eded9f
Merge branch 'feature/abi' into abi-router
ahangsu 179ac5d
simplify
ahangsu 1e7d779
compiler test adding...
ahangsu 377cb22
documentation
ahangsu 407f3d1
start testcases
ahangsu 9fbdfec
update router testcase
ahangsu b348c65
docstring tweak
ahangsu d95ae32
update testcases
ahangsu e8a43a7
update testcases
ahangsu 19460c0
formatting
ahangsu fa28de4
branch cond testing
ahangsu 9961c1a
router contract test
ahangsu 95f90c7
subroutine branch wrapper bare call case tested
ahangsu 8923ef5
more testcases to barecall
ahangsu 3576223
minor, need to work on method call wrapper
ahangsu b8ea59a
half done on method call wrapper
ahangsu a940f5e
update on abi method wrapper with return
ahangsu 648d075
detuple testcase
ahangsu 7a1c456
compiler test need to see csp
ahangsu 818e839
rm redundant type annotation
ahangsu 5fc8610
more error msg
ahangsu 8f73760
renaming
ahangsu c598217
renaming is_registrable -> is_abi_routable
ahangsu a1d2c21
reording imports, eliminate anti patterns
ahangsu a0a7648
remove anti-pattern
ahangsu 4d2e57e
section it out
ahangsu e162275
non_empty_power_set -> power_set
ahangsu 2dafe23
add conflict detection to protect AST from overshadowing
ahangsu 11f4cff
error message
ahangsu 241e7ee
shrinked commits on pr review
ahangsu 9b1205a
add compile_program
ahangsu fca1fb3
Merge branch 'feature/abi' into abi-router
ahangsu 912b16b
fixup subroutine testcase
ahangsu d28fdc6
remove method signature specifying, directly infer from ABIReturnSubr…
ahangsu e8b4765
remove method sign field, directly infer from ABIReturnSubroutine
ahangsu e350220
relaxation of bare app call arg num restriction
ahangsu 0b63f78
add barecall class, api change following
ahangsu f198857
rename barecall to OnCompleteAction
ahangsu d5f75d3
remove outdated comments
ahangsu bf58a10
Merge branch 'feature/abi' into abi-router
ahangsu 0dd7208
start changing router api
ahangsu 89f137b
eliminate contradiction for oc and creation
ahangsu ecd2767
remove restriction on cond
ahangsu 4e8efe2
new interface: add bare-calls on init, register method-call more fine…
ahangsu 89ab167
documentation for new interface from last discussion
ahangsu 0ecfd62
Merge branch 'feature/abi' into abi-router
ahangsu 59c86d1
Refactor #170 to reduce visibility and mutation (#362)
michaeldiamant 2d203ff
hide wrap handler method
ahangsu a99b964
Merge branch 'abi-router' of github.com:algorand/pyteal into abi-router
ahangsu 2557efc
adding comment changes
ahangsu a65d66e
pr review partly
ahangsu f38caed
partition into two methods
ahangsu 0f10534
hide all these methods
ahangsu 2323920
arc4 compliant CallConfigs classmethod
ahangsu 9cea65d
arc4 compliant CallConfigs documentation
ahangsu 065a797
disclaimer comments
ahangsu f1bb613
Merge branch 'feature/abi' into abi-router
ahangsu e0dc4bd
update new abi return hash prefix
ahangsu 34ee8dc
review comments partly
ahangsu 94d618b
OnCompleteActions -> BareCallActions
ahangsu f7185b9
disclaimer change, rename CallConfigs -> MethodConfig
ahangsu 2958bc0
disclaimer move to docstring
ahangsu 6f386dd
better naming for naming prefix
ahangsu aa69b0f
new ast builder
ahangsu e7a49f1
review comments
ahangsu 22cf520
An attempt to add decorator syntax to abi-router (#370)
ahangsu f66b7e4
minor fix
ahangsu c42da1e
per pr comment on on-complete-action
ahangsu c0af62e
eliminate potential issue
ahangsu 78ca6fb
update call config testcase
ahangsu 4aa69c6
add testcase for on complete action
ahangsu 7df0996
per comments
ahangsu 1753a94
Add a check in `method_signature` to disallow reference return types …
barnjamin 5b9c547
add new compiler tests for router
ahangsu 3a76144
fix one test for wrapping bare calls
ahangsu eee9545
comments fixing
ahangsu b2c025e
simplified oc-action post_init check
ahangsu c6019b0
naming variables
ahangsu 5e41d13
comments
ahangsu 197a9d3
comments
ahangsu 2128874
Merge branch 'feature/abi' into abi-router
ahangsu dbffe61
testcase for method config update
ahangsu a3a8601
add router method only in clearstate prog
ahangsu f6ad9ad
closeout -> clearstate
ahangsu 4e95c20
removing is_arc4_compliant
ahangsu 00376a6
update add method handler and method interface
ahangsu c56d837
remove arc4_compliant
ahangsu c8ef39a
Add manual test for 15+ args in abi router (#375)
jasonpaulos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.