-
-
Notifications
You must be signed in to change notification settings - Fork 22
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: Added tevm cli to top level package #1377
✨ Feat: Added tevm cli to top level package #1377
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 4a8f001 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
WalkthroughThis update introduces the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant TEVM
User->>CLI: Execute tevm command
CLI->>TEVM: Call relevant functionality
TEVM-->>CLI: Return results
CLI-->>User: Display output
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configuration File (
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @roninjin10 and the rest of your teammates on Graphite |
ca4bcaa
to
99fefa9
Compare
closes #1359 |
99fefa9
to
0d8e5e5
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
Files selected for processing (6)
- .changeset/slimy-dots-invite.md (1 hunks)
- cli/package.json (2 hunks)
- cli/tsup.config.ts (1 hunks)
- tevm/bin/tevm.cjs (1 hunks)
- tevm/bin/tevm.js (1 hunks)
- tevm/package.json (2 hunks)
Files skipped from review due to trivial changes (2)
- tevm/bin/tevm.cjs
- tevm/bin/tevm.js
Additional comments not posted (7)
tevm/package.json (3)
375-376
: Including "bin" directory in package distribution is appropriate.Adding the "bin" directory to the "files" array ensures the CLI executable is included in the package distribution.
371-373
: Verify the existence of the CLI executable.The "bin" section specifies
"tevm": "./bin/tevm.js"
. Ensure that this file exists and is executable.Verification successful
The CLI executable file exists.
The file
tevm/bin/tevm.js
is present in the repository, confirming that the path specified in the "bin" section ofpackage.json
is correct. No further action is needed regarding this file path.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the existence of the CLI executable file. # Test: Check if the file exists. Expect: The file should be present. fd 'tevm.js' --base-directory 'bin'Length of output: 99
Script:
#!/bin/bash # Description: Search for the tevm.js file in the entire repository to verify its existence. # Test: Locate the tevm.js file. Expect: The file should be present somewhere in the repository. fd 'tevm.js'Length of output: 607
432-432
: Verify the configuration of the@tevm/cli
package.The addition of
"@tevm/cli": "workspace:^"
indicates a dependency on a CLI package. Ensure this package is properly configured and available in the workspace..changeset/slimy-dots-invite.md (1)
1-6
: Changeset looks good.The changeset file is correctly formatted and documents the minor changes to
tevm
and@tevm/cli
.cli/tsup.config.ts (1)
4-5
: Entry point update is appropriate.The update to the entry point reflects the new
tevm-cli
tool. Ensure thatsrc/tevm-cli.tsx
exists and is correctly configured.Verification successful
Entry point file
tevm-cli.tsx
exists.The file
tevm-cli.tsx
is present in thecli/src
directory, confirming that the entry point update intsup.config.ts
is correctly configured. No further action is needed.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new entry point file `src/tevm-cli.tsx` exists. # Test: Check for the existence of the file. Expect: The file should be present. fd 'tevm-cli.tsx' srcLength of output: 112
Script:
#!/bin/bash # Description: Verify that the new entry point file `tevm-cli.tsx` exists anywhere in the repository. # Test: Use `find` to search for the file. Expect: The file should be present. find . -name 'tevm-cli.tsx'Length of output: 50
cli/package.json (2)
18-26
: Exports configuration fortevm-cli
is correctly set up.The
exports
section is well-configured for bothimport
andrequire
paths, facilitating module resolution.
33-33
: CLI and start script updates are appropriate.The
bin
entry andstart
script correctly reflect the newtevm-cli
tool. Ensure thatdist/tevm-cli.js
is generated properly during the build process.Also applies to: 51-51
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
Files selected for processing (6)
- .changeset/slimy-dots-invite.md (1 hunks)
- cli/package.json (2 hunks)
- cli/tsup.config.ts (1 hunks)
- tevm/bin/tevm.cjs (1 hunks)
- tevm/bin/tevm.js (1 hunks)
- tevm/package.json (2 hunks)
Files skipped from review due to trivial changes (3)
- .changeset/slimy-dots-invite.md
- tevm/bin/tevm.cjs
- tevm/bin/tevm.js
Files skipped from review as they are similar to previous changes (2)
- cli/tsup.config.ts
- tevm/package.json
Additional comments not posted (3)
cli/package.json (3)
18-26
: Exports section addition fortevm-cli
looks good.The addition of both
import
andrequire
paths ensures compatibility with both ESM and CommonJS module systems.
33-33
: Bin entry update fortevm-cli
is correct.The change ensures that the
tevm-cli
is the primary executable for the CLI.
51-51
: Start script modification to usetevm-cli.js
is appropriate.This update correctly sets the entry point to the new CLI tool.
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (190)
cli/dist/commands/_app.d.ts
is excluded by!**/dist/**
cli/dist/commands/_app.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/commands/_app.js
is excluded by!**/dist/**
cli/dist/commands/create.d.ts
is excluded by!**/dist/**
cli/dist/commands/create.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/commands/create.js
is excluded by!**/dist/**
cli/dist/commands/generate.d.ts
is excluded by!**/dist/**
cli/dist/commands/generate.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/commands/generate.js
is excluded by!**/dist/**
cli/dist/commands/run.d.ts
is excluded by!**/dist/**
cli/dist/commands/run.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/commands/run.js
is excluded by!**/dist/**
cli/dist/commands/server.d.ts
is excluded by!**/dist/**
cli/dist/commands/server.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/commands/server.js
is excluded by!**/dist/**
cli/dist/commands/tsc.d.ts
is excluded by!**/dist/**
cli/dist/commands/tsc.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/commands/tsc.js
is excluded by!**/dist/**
cli/dist/components/FancyCreateTitle.d.ts
is excluded by!**/dist/**
cli/dist/components/FancyCreateTitle.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/components/FancyCreateTitle.js
is excluded by!**/dist/**
cli/dist/components/MultipleChoiceStep.d.ts
is excluded by!**/dist/**
cli/dist/components/MultipleChoiceStep.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/components/MultipleChoiceStep.js
is excluded by!**/dist/**
cli/dist/components/SelectInput.d.ts
is excluded by!**/dist/**
cli/dist/components/SelectInput.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/components/SelectInput.js
is excluded by!**/dist/**
cli/dist/components/Step.d.ts
is excluded by!**/dist/**
cli/dist/components/Step.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/components/Step.js
is excluded by!**/dist/**
cli/dist/components/Table.d.ts
is excluded by!**/dist/**
cli/dist/components/Table.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/components/Table.js
is excluded by!**/dist/**
cli/dist/components/TextInputStep.d.ts
is excluded by!**/dist/**
cli/dist/components/TextInputStep.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/components/TextInputStep.js
is excluded by!**/dist/**
cli/dist/constants/InputStep.d.ts
is excluded by!**/dist/**
cli/dist/constants/InputStep.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/InputStep.js
is excluded by!**/dist/**
cli/dist/constants/MultipleChoice.d.ts
is excluded by!**/dist/**
cli/dist/constants/MultipleChoice.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/MultipleChoice.js
is excluded by!**/dist/**
cli/dist/constants/automatedSteps.d.ts
is excluded by!**/dist/**
cli/dist/constants/automatedSteps.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/automatedSteps.js
is excluded by!**/dist/**
cli/dist/constants/defaults.d.ts
is excluded by!**/dist/**
cli/dist/constants/defaults.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/defaults.js
is excluded by!**/dist/**
cli/dist/constants/frameworksByUseCase.d.ts
is excluded by!**/dist/**
cli/dist/constants/frameworksByUseCase.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/frameworksByUseCase.js
is excluded by!**/dist/**
cli/dist/constants/index.d.ts
is excluded by!**/dist/**
cli/dist/constants/index.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/index.js
is excluded by!**/dist/**
cli/dist/constants/types.d.ts
is excluded by!**/dist/**
cli/dist/constants/types.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/constants/types.js
is excluded by!**/dist/**
cli/dist/create-tevm-app.cjs
is excluded by!**/dist/**
cli/dist/create-tevm-app.cjs.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create-tevm-app.d.cts
is excluded by!**/dist/**
cli/dist/create-tevm-app.d.ts
is excluded by!**/dist/**
cli/dist/create-tevm-app.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create-tevm-app.js
is excluded by!**/dist/**
cli/dist/create-tevm-app.js.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/Create.d.ts
is excluded by!**/dist/**
cli/dist/create/Create.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/Create.js
is excluded by!**/dist/**
cli/dist/create/Create.spec.d.ts
is excluded by!**/dist/**
cli/dist/create/Create.spec.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/Create.spec.js
is excluded by!**/dist/**
cli/dist/create/Creating.d.ts
is excluded by!**/dist/**
cli/dist/create/Creating.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/Creating.js
is excluded by!**/dist/**
cli/dist/create/InteractivePrompt.d.ts
is excluded by!**/dist/**
cli/dist/create/InteractivePrompt.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/InteractivePrompt.js
is excluded by!**/dist/**
cli/dist/create/args.d.ts
is excluded by!**/dist/**
cli/dist/create/args.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/args.js
is excluded by!**/dist/**
cli/dist/create/index.d.ts
is excluded by!**/dist/**
cli/dist/create/index.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/index.js
is excluded by!**/dist/**
cli/dist/create/options.d.ts
is excluded by!**/dist/**
cli/dist/create/options.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/create/options.js
is excluded by!**/dist/**
cli/dist/explorer/Accounts.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Accounts.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Accounts.js
is excluded by!**/dist/**
cli/dist/explorer/Blocks.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Blocks.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Blocks.js
is excluded by!**/dist/**
cli/dist/explorer/Call.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Call.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Call.js
is excluded by!**/dist/**
cli/dist/explorer/Explorer.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Explorer.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Explorer.js
is excluded by!**/dist/**
cli/dist/explorer/Home.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Home.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Home.js
is excluded by!**/dist/**
cli/dist/explorer/Storage.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Storage.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Storage.js
is excluded by!**/dist/**
cli/dist/explorer/Transactions.d.ts
is excluded by!**/dist/**
cli/dist/explorer/Transactions.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/explorer/Transactions.js
is excluded by!**/dist/**
cli/dist/hooks/useCopy.d.ts
is excluded by!**/dist/**
cli/dist/hooks/useCopy.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/hooks/useCopy.js
is excluded by!**/dist/**
cli/dist/hooks/useCounter.d.ts
is excluded by!**/dist/**
cli/dist/hooks/useCounter.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/hooks/useCounter.js
is excluded by!**/dist/**
cli/dist/hooks/useCreateDir.d.ts
is excluded by!**/dist/**
cli/dist/hooks/useCreateDir.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/hooks/useCreateDir.js
is excluded by!**/dist/**
cli/dist/hooks/useCreateEvmtsApp.d.ts
is excluded by!**/dist/**
cli/dist/hooks/useCreateEvmtsApp.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/hooks/useCreateEvmtsApp.js
is excluded by!**/dist/**
cli/dist/hooks/useExec.d.ts
is excluded by!**/dist/**
cli/dist/hooks/useExec.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/hooks/useExec.js
is excluded by!**/dist/**
cli/dist/index.cjs
is excluded by!**/dist/**
cli/dist/index.cjs.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/index.d.cts
is excluded by!**/dist/**
cli/dist/index.d.ts
is excluded by!**/dist/**
cli/dist/index.js
is excluded by!**/dist/**
cli/dist/index.js.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/Server.d.ts
is excluded by!**/dist/**
cli/dist/server/Server.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/Server.js
is excluded by!**/dist/**
cli/dist/server/StartServer.d.ts
is excluded by!**/dist/**
cli/dist/server/StartServer.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/StartServer.js
is excluded by!**/dist/**
cli/dist/server/StartServerProps.d.ts
is excluded by!**/dist/**
cli/dist/server/StartServerProps.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/StartServerProps.js
is excluded by!**/dist/**
cli/dist/server/args.d.ts
is excluded by!**/dist/**
cli/dist/server/args.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/args.js
is excluded by!**/dist/**
cli/dist/server/chains.d.ts
is excluded by!**/dist/**
cli/dist/server/chains.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/chains.js
is excluded by!**/dist/**
cli/dist/server/createServer.d.ts
is excluded by!**/dist/**
cli/dist/server/createServer.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/createServer.js
is excluded by!**/dist/**
cli/dist/server/index.d.ts
is excluded by!**/dist/**
cli/dist/server/index.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/index.js
is excluded by!**/dist/**
cli/dist/server/options.d.ts
is excluded by!**/dist/**
cli/dist/server/options.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/options.js
is excluded by!**/dist/**
cli/dist/server/startTevm.d.ts
is excluded by!**/dist/**
cli/dist/server/startTevm.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/server/startTevm.js
is excluded by!**/dist/**
cli/dist/state/State.d.ts
is excluded by!**/dist/**
cli/dist/state/State.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/state/State.js
is excluded by!**/dist/**
cli/dist/state/Store.d.ts
is excluded by!**/dist/**
cli/dist/state/Store.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/state/Store.js
is excluded by!**/dist/**
cli/dist/state/dispatchers.d.ts
is excluded by!**/dist/**
cli/dist/state/dispatchers.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/state/dispatchers.js
is excluded by!**/dist/**
cli/dist/state/index.d.ts
is excluded by!**/dist/**
cli/dist/state/index.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/state/index.js
is excluded by!**/dist/**
cli/dist/state/reducers.d.ts
is excluded by!**/dist/**
cli/dist/state/reducers.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/state/reducers.js
is excluded by!**/dist/**
cli/dist/styles/colors.d.ts
is excluded by!**/dist/**
cli/dist/styles/colors.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/styles/colors.js
is excluded by!**/dist/**
cli/dist/utils/execPromise.d.ts
is excluded by!**/dist/**
cli/dist/utils/execPromise.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/utils/execPromise.js
is excluded by!**/dist/**
cli/dist/utils/generateRandomName.d.ts
is excluded by!**/dist/**
cli/dist/utils/generateRandomName.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/utils/generateRandomName.js
is excluded by!**/dist/**
cli/dist/utils/getTailLogs.d.ts
is excluded by!**/dist/**
cli/dist/utils/getTailLogs.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/utils/getTailLogs.js
is excluded by!**/dist/**
cli/dist/utils/getUserPkgManager.d.ts
is excluded by!**/dist/**
cli/dist/utils/getUserPkgManager.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/utils/getUserPkgManager.js
is excluded by!**/dist/**
cli/dist/utils/state.d.ts
is excluded by!**/dist/**
cli/dist/utils/state.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/utils/state.js
is excluded by!**/dist/**
cli/dist/utils/wait.d.ts
is excluded by!**/dist/**
cli/dist/utils/wait.d.ts.map
is excluded by!**/dist/**
,!**/*.map
cli/dist/utils/wait.js
is excluded by!**/dist/**
Files selected for processing (2)
- configs/tsupconfig/docs/README.md (1 hunks)
- configs/tsupconfig/docs/functions/createTsUpOptions.md (1 hunks)
Files skipped from review due to trivial changes (1)
- configs/tsupconfig/docs/functions/createTsUpOptions.md
Additional context used
Markdownlint
configs/tsupconfig/docs/README.md
7-7: null
No empty links(MD042, no-empty-links)
@@ -4,4 +4,4 @@ | |||
|
|||
# `@tevm/tsupconfig` | |||
|
|||
[Shared factory function](./createTsupOptions.js) for creating tsup options for tevm packages | |||
[Shared factory function]() for creating tsup options for tevm packages |
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.
Fix the empty link in the documentation.
The link labeled "Shared factory function" is currently empty, which can be misleading. Either update it to point to the correct resource or remove the link if it's not needed.
- [Shared factory function]()
+ [Shared factory function](./createTsupOptions.js)
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
[Shared factory function]() for creating tsup options for tevm packages | |
[Shared factory function](./createTsupOptions.js) for creating tsup options for tevm packages |
Tools
Markdownlint
7-7: null
No empty links(MD042, no-empty-links)
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
New Features
tevm
module, allowing users to execute commands related to deploying contracts, managing transactions, and querying states directly from the terminal.Usability Enhancements
tevm
functionalities, making it more user-friendly for developers.Configuration Updates
tevm-cli
, ensuring seamless integration and improved access for users.