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

🐛 Fix: Procedures imports #1202

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Conversation

roninjin10
Copy link
Collaborator

@roninjin10 roninjin10 commented Jun 14, 2024

Description

Concise description of proposed changes

Testing

Explain the quality checks that have been done on the code changes

Additional Information

Your ENS/address:

Summary by CodeRabbit

  • Bug Fixes

    • Resolved an issue with import paths not being updated correctly in the procedures.
  • Chores

    • Updated import paths and return type declarations for various procedures to ensure consistency and proper module referencing.
    • Conducted a rerelease of the tevm packages, including updates to bundlers, plugins, compilers, and utilities.

Copy link

vercel bot commented Jun 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tevm-monorepo-tevm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 14, 2024 7:26pm

Copy link

changeset-bot bot commented Jun 14, 2024

🦋 Changeset detected

Latest commit: fba6d7a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 57 packages
Name Type
@tevm/procedures Patch
tevm Patch
@tevm/bundler Patch
@tevm/base-bundler Patch
@tevm/bun-plugin Patch
@tevm/bundler-cache Patch
@tevm/cli Patch
@tevm/compiler Patch
@tevm/config Patch
@tevm/esbuild-plugin Patch
@tevm/resolutions Patch
@tevm/rollup-plugin Patch
@tevm/rspack-plugin Patch
@tevm/runtime Patch
@tevm/solc Patch
@tevm/unplugin Patch
@tevm/vite-plugin Patch
@tevm/webpack-plugin Patch
@tevm/tsconfig Patch
@tevm/tsupconfig Patch
@tevm/revm Patch
@tevm/schemas Patch
@tevm/experimental-solc Patch
@tevm/viem-effect Patch
@tevm/ethers Patch
@tevm/viem Patch
@tevm/lsp Patch
@tevm/ts-plugin Patch
@tevm/vscode Patch
@tevm/actions Patch
@tevm/base-client Patch
@tevm/block Patch
@tevm/blockchain Patch
@tevm/client-types Patch
@tevm/common Patch
@tevm/contract Patch
@tevm/decorators Patch
@tevm/effect Patch
@tevm/errors Patch
@tevm/evm Patch
@tevm/http-client Patch
@tevm/jsonrpc Patch
@tevm/logger Patch
@tevm/memory-client Patch
@tevm/precompiles Patch
@tevm/predeploys Patch
@tevm/receipt-manager Patch
@tevm/rlp Patch
@tevm/server Patch
@tevm/state Patch
@tevm/sync-storage-persister Patch
@tevm/trie Patch
@tevm/tx Patch
@tevm/txpool Patch
@tevm/utils Patch
@tevm/vm Patch
@tevm/test-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

coderabbitai bot commented Jun 14, 2024

Important

Review skipped

More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review.

178 files out of 235 files are above the max files limit of 50. Please upgrade to Pro plan to get higher limits.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The updates include critical patches and alterations across several packages within the tevm ecosystem, primarily focusing on fixing import path issues in the @tevm/procedures package. The modifications ensure import paths are correctly referenced, maintaining consistency and functionality. Additionally, minor updates were made to the requestBulkProcedure to enhance the return type declarations, and tests were adjusted accordingly.

Changes

Files/Groups of Files Change Summary
.changeset/hip-ducks-know.md Introduced a patch to address the bug with imports not being updated in the @tevm/procedures package.
.changeset/pink-tigers-grin.md Applied patches to various tevm packages including bundlers, plugins, compilers, configurations, and utilities.
packages/procedures/src/requestBulkProcedure.js Updated the return type declaration to specify the path to the TevmJsonRpcBulkRequestHandler module.
packages/procedures/src/requestProcedure.js Numerous changes to update import paths for different procedures within requestProcedure.js.
packages/procedures/src/requestProcedure.spec.ts Consolidated import statements, moving EthSignTransactionJsonRpcRequest to a combined import with other related modules.

Sequence Diagram(s)


Poem

Amid the code, we tweaked and fixed,
Import paths no longer mixed,
Procedures now align with grace,
Buggy imports, we've erased. 📜🐇
Packages patched, the team's delight,
In code so clean, we now take flight. ✨🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@roninjin10 roninjin10 marked this pull request as ready for review June 14, 2024 18:41
Copy link
Collaborator Author

roninjin10 commented Jun 14, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @roninjin10 and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1e3e381 and 583be79.

Files selected for processing (5)
  • .changeset/hip-ducks-know.md (1 hunks)
  • .changeset/pink-tigers-grin.md (1 hunks)
  • packages/procedures/src/requestBulkProcedure.js (1 hunks)
  • packages/procedures/src/requestProcedure.js (32 hunks)
  • packages/procedures/src/requestProcedure.spec.ts (1 hunks)
Files skipped from review due to trivial changes (1)
  • .changeset/pink-tigers-grin.md
Additional comments not posted (6)
.changeset/hip-ducks-know.md (1)

1-5: The changeset description is clear and accurately describes the patch for the @tevm/procedures package.

packages/procedures/src/requestBulkProcedure.js (2)

Line range hint 1-1: Updated import path correctly reflects the new file structure.


5-5: Ensure the return type path in JSDoc comments is updated to reflect the new import paths.

packages/procedures/src/requestProcedure.spec.ts (1)

9-9: Consolidation of imports improves clarity and reduces redundancy.

packages/procedures/src/requestProcedure.js (2)

62-62: Update return type documentation to match new import path.

The updated return type documentation reflects the new import path accurately, aligning with the PR's objective to fix procedure imports.


143-143: Ensure new import paths are correctly implemented across various request handlers.

The changes in import paths across various request handlers are consistent with the PR's goal to update and correct them. This should resolve the import path issues noted in the PR description.

Also applies to: 161-161, 184-184, 206-206, 249-249, 267-267, 282-284, 359-359, 398-398, 404-404, 410-410, 425-425, 467-467, 481-481, 512-512, 560-560, 586-586, 660-660, 682-682, 717-719, 755-755, 860-860, 893-893, 940-940, 1050-1050, 1105-1105, 1138-1138, 1169-1169, 1248-1248

@@ -2,7 +2,7 @@ import { requestProcedure } from './requestProcedure.js'

/**
* @param {import('@tevm/base-client').BaseClient} client
* @returns {import('@tevm/procedures').TevmJsonRpcBulkRequestHandler}
* @returns {import('./tevm-request-handler/TevmJsonRpcBulkRequestHandler.js').TevmJsonRpcBulkRequestHandler}
Copy link
Contributor

Choose a reason for hiding this comment

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

The function handles bulk requests robustly using Promise.allSettled. Consider formalizing the tracking of the TODO regarding error handling enhancements.

Would you like me to open a GitHub issue to track the addition of UnexpectedBulkRequestError to the @tevm/errors package?

@roninjin10 roninjin10 force-pushed the 06-14-_bug_fix_procedures_imports branch from bcefd33 to fba6d7a Compare June 14, 2024 18:55
@roninjin10 roninjin10 merged commit 4b5b546 into main Jun 14, 2024
15 of 16 checks passed
@roninjin10 roninjin10 deleted the 06-14-_bug_fix_procedures_imports branch June 14, 2024 19:20
roninjin10 pushed a commit that referenced this pull request Jun 14, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`4b5b546`](4b5b546)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`4b5b546`](4b5b546)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`4b5b546`](4b5b546)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- [#1202](#1202)
[`4b5b546`](4b5b546)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fixed bug with
imports not being updated in procedures package

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- Updated dependencies
\[[`cae3703`](cae3703)]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]

## @tevm/[email protected]

### Patch Changes

- [#1203](#1203)
[`cae3703`](cae3703)
Thanks [@roninjin10](https://github.com/roninjin10)! - Fix bad
package.json type

## [email protected]

### Patch Changes

- Updated dependencies
\[[`4b5b546`](4b5b546)]:
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]
    -   @tevm/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

1 participant