-
Notifications
You must be signed in to change notification settings - Fork 3
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
add hyperdrivetypes python package #1134
Merged
Merged
Conversation
This file contains 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
dpaiton
force-pushed
the
dpaiton/hypertypes
branch
from
August 21, 2024 17:57
74a5c3d
to
8e7f925
Compare
dpaiton
force-pushed
the
dpaiton/hypertypes
branch
2 times, most recently
from
August 22, 2024 18:22
7a97c9b
to
eb12a2a
Compare
dpaiton
changed the title
add hypertypes python package
add hyperdrivetypes python package
Aug 22, 2024
dpaiton
force-pushed
the
dpaiton/hypertypes
branch
from
August 22, 2024 20:16
30e1344
to
fd38e1d
Compare
dpaiton
force-pushed
the
dpaiton/hypertypes
branch
4 times, most recently
from
August 23, 2024 06:42
3f2a51c
to
755bd76
Compare
jalextowle
approved these changes
Aug 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incredible! I have no comments. I’m just excited to use it
slundqui
force-pushed
the
dpaiton/hypertypes
branch
from
August 27, 2024 18:36
1a6fa72
to
a7fe191
Compare
Waiting on the following PRs before merge: delvtech/agent0#1667 |
slundqui
force-pushed
the
dpaiton/hypertypes
branch
from
August 29, 2024 19:22
214f3bc
to
4f3890c
Compare
…imum version. Fixing workflow
slundqui
force-pushed
the
dpaiton/hypertypes
branch
from
August 29, 2024 22:44
fea4d29
to
bbe9e40
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a
hyperdrivetypes
python package and deploy scripts to upload it to pypi.hyperdrivetypes
is a pip installable Python package that contains type definitions for all built contracts in the Hyperdrive repository. This is useful for using Python to mock deployments, execute on-chain transactions, simulate transactions, etc.This is currently a core dependency in agent0, although we only create types for a small subset of contracts. By moving the project into
hyperdrive
and processing all contracts, we are able to expand our capabilities. In particular, our first goal is to transition a majority of the integration fuzz tests out of solidity and into python using hyperdrivetypes and agent0.The generated files are git ignored. If you wish to inspect them, check out the branch and run
make build
, which will now build the solidity files and generate the corresponding python type files.The python package version is set up to match the Hyperdrive version specified in
Constants.sol
. This is accomplished through some script-fu and is automatic when runningmake build
and in CI.The package already exists here: https://pypi.org/project/hyperdrivetypes