Skip to content
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

Merged
merged 24 commits into from
Jul 26, 2024
Merged

feat: add universal router #2

merged 24 commits into from
Jul 26, 2024

Conversation

fubuloubu
Copy link
Member

@fubuloubu fubuloubu commented Apr 17, 2024

What I did

fixes: APE-1783

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@banteg
Copy link
Contributor

banteg commented Apr 27, 2024

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

@fubuloubu fubuloubu marked this pull request as ready for review June 7, 2024 21:15
PACKAGE_FOLDER = Path(__file__).parent.parent / "uniswap_sdk"


def clean_contract_type(contract_type):
Copy link
Member

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)
Copy link
Member

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=

Copy link

linear bot commented Jul 10, 2024

@Ninjagod1251 Ninjagod1251 self-assigned this Jul 22, 2024
@johnson2427
Copy link

Do we want to fix the README Usage section?

@fubuloubu
Copy link
Member Author

Do we want to fix the README Usage section?

Sure, go for it

@fubuloubu fubuloubu merged commit 4418bfd into main Jul 26, 2024
22 checks passed
@fubuloubu fubuloubu deleted the feat/uni-router branch July 26, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants