-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add universal router #2
Conversation
i implemented full universal router types here https://github.com/banteg/universal-router/blob/master/uniswap/universal_router.py they are also fully covered by tests. would be nice to collab on finishing this |
Co-authored-by: fubuloubu <[email protected]>
PACKAGE_FOLDER = Path(__file__).parent.parent / "uniswap_sdk" | ||
|
||
|
||
def clean_contract_type(contract_type): |
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.
suggestion: add types!
"method_identifiers", | ||
} | ||
) | ||
return ContractType.model_validate(clean_model_dict) |
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.
model_copy()
may also be an option here, however it doesn't seem like it comes with an exclude=
Do we want to fix the README Usage section? |
Sure, go for it |
What I did
fixes: APE-1783
How I did it
How to verify it
Checklist