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(query): contract creation query support [APE-1296] #1606

Merged
merged 8 commits into from
Aug 17, 2023

Conversation

fubuloubu
Copy link
Member

What I did

This PR moves the get_creation_receipt to be a query that is supported in the query system. The goal is that now that it's in the query system, it can be supported by faster query engines vs. brute force search (such as etherscan) to speed up the capability of the search (and also help resolve the bug noted in #1593)

How I did it

This is only a partial fix to #1593, there are still more fixes needed to the brute force method in core (so it can resolve the issue mentioned more effectively/efficiently)

How to verify it

Mostly a refactor, so if tests work 🤷

Checklist

  • All changes are completed
    - [ ] New test cases have been added
    - [ ] Documentation has been updated

@vany365 vany365 changed the title feat(query): contract creation query support feat(query): contract creation query support [APE-1296] Aug 17, 2023
src/ape/managers/chain.py Outdated Show resolved Hide resolved
@fubuloubu fubuloubu enabled auto-merge (squash) August 17, 2023 14:32
Copy link
Contributor

@z80dev z80dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, tried really hard to find something to suggest improvement on but it looks good, beyond eventually implementing the logic marked by TODO

@fubuloubu fubuloubu merged commit 9f8eace into ApeWorX:main Aug 17, 2023
15 checks passed
@fubuloubu fubuloubu deleted the feat/query/contract-creation branch August 17, 2023 15:40
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.

2 participants