Comments (4)
Hi @zejoeh. I'm glad you are finding graviton useful in your PyTEAL development work.
Integration with PyTeal has been steadily improving. In particular, the soon to be merged feature/abi
branch has the class PyTealDryRunExecutor which sounds like it has some overlap with your @SubroutineRunner
decorator. I recommend you have a look at the existing code and see if it could be integrated or leveraged in some way. It may also be the case that the functionality that you are proposing is an obvious improvement. We welcome pull requests. We can also continue the discussion via this issue.
from graviton.
Hi @tzaffi, yes this indeed looks already like a step in the same direction I was going. I wrote this decorator based on the code in the current master
branch, so didn't see you already had a similar thing in the feature branch. I will hopefully find some time in the next days to have a closer look at the feature/abi
branch and see if I can contribute anything there.
Probably the only "improvement" from my version is that it returns an instance of a container dataclass for the list of DryRunInspectors
on sequences, which also stores the inputs in a format consistent with the output and lets you skip writing out list comprehensions each time you want to retrieve the same attribute for many dryruns. I found it pretty nice for writing out many short tests where you only care about evaluating some output quickly and just want to iterate over the inputs and outputs in pairs, but you could of course achieve exactly the same with a range loop or enumerating over one of the input lists and accessing the elements directly.
from graviton.
Thanks for looking at feature/abi
. Keep me posted!
from graviton.
Hi @tzaffi, I added a draft pull request on the PyTeal repository. Happy to receive feedback, but still adding improvements as they come up in my own project. I think it can be improved significantly by making use of all the work put into the ABI typing, but I have not had the time yet to dig into it.
from graviton.
Related Issues (20)
- Use Docker Image for C.I. HOT 1
- Stop using dry-run's cost HOT 1
- Transactions Groups in Graviton
- TEAL Coverage in Graviton
- Start Publishing graviton on PyPi HOT 1
- Refactor ABI Functionality to Leverage Upcoming Atomic Transaction Composer Dry Run
- Add Shields.io Badges
- Streamline Github Actions - e.g. Use Builtin Docker-Compose HOT 1
- Tech Debt: Refactor `DryRunInspector.dig` and `DryRunInspector.extract*` methods
- Releases: Source distribution bundles extraneous artifacts
- Add updated budget info to `report()` HOT 1
- CI: Check for sdist metadata warnings
- Add `mypy` and `black` and `flake8` HOT 2
- Refactor `DryRunExecutor` HOT 1
- Better assertion message for invariant predicates of 2 variables HOT 2
- Docs Overhaul
- Update pin to py-algorand-sdk 2.0.0 + once that has been released
- mypy: mark Type Aliases with typing.TypeAlias
- Enable Running Blackbox Testing using the Offline Version of Dryrun HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graviton.