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(alloy): Migrate pool lens to use Alloy #2

Merged
merged 6 commits into from
Jul 20, 2024
Merged

feat(alloy): Migrate pool lens to use Alloy #2

merged 6 commits into from
Jul 20, 2024

Conversation

shuhuiluo
Copy link
Owner

No description provided.

This commit makes significant changes to the build process and project configuration. The changes include updating the .gitignore file to include Cargo.lock, adding the INFURA_API_KEY environmental variable to Rust workflow, and modifying commands in the Rust and Github workflows. Refactoring also involved changing the project's metadata in Cargo.toml and altering various settings in rustfmt.toml and package.json. Lastly, the Github workflow for npm_publish was removed.
This commit migrates the pool lens functions to use Alloy for making calls and decoding results. All calls to the `Middleware` trait and its `client` have been replaced with the Alloy `Provider` trait and its `provider`. The functions now return an `anyhow::Result` instead of a `ContractError`, providing a more generic error handling approach. The diff also includes commenting out `position_lens` and `storage_lens`. Further testing and validation are required to ensure correct information retrieval and error management post-migration.
@shuhuiluo shuhuiluo self-assigned this Jul 20, 2024
The commit removes the formatting check step from the GitHub Actions workflow for Rust. This step was unnecessary and was causing redundancy in the workflow. The focus is now solely on linting checks, making the process more streamlined and efficient.
@shuhuiluo shuhuiluo requested a review from malik672 July 20, 2024 20:55
@shuhuiluo shuhuiluo merged commit 70db597 into main Jul 20, 2024
4 checks passed
@shuhuiluo shuhuiluo deleted the alloy branch July 20, 2024 22:36
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