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

chore(fw): Utilize an EthRPC class within consume rlp #556

Merged
merged 1 commit into from
May 17, 2024

Conversation

spencer-tb
Copy link
Collaborator

@spencer-tb spencer-tb commented May 15, 2024

🗒️ Description

Adds the EthRPC class alongside the BaseRPC class. The latter are used within tests_consume/test_via_rlp.py, and will be extended for consume engine.

I added this within src/pytest_plugins/consume/json_rpc.py but open to moving this somewhere else.
Moved to: src/ethereum_test_tools/rpc/rpc.py

🔗 Related Issues

None

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

@spencer-tb spencer-tb added type:chore Type: Chore scope:fw Scope: Framework (evm|tools|forks|pytest) labels May 15, 2024
@spencer-tb spencer-tb requested a review from danceratopz May 15, 2024 10:00
@spencer-tb spencer-tb force-pushed the consume-rpc branch 2 times, most recently from fc730ff to e6ca06e Compare May 15, 2024 11:58
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

Hey, just a few comments! Happy to address these during the gentest refactor.

docs/CHANGELOG.md Outdated Show resolved Hide resolved
src/ethereum_test_tools/rpc/rpc.py Outdated Show resolved Hide resolved
src/ethereum_test_tools/rpc/rpc.py Outdated Show resolved Hide resolved
src/ethereum_test_tools/rpc/rpc.py Show resolved Hide resolved
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

LGTM! Two minor comments.

src/ethereum_test_tools/rpc/rpc.py Outdated Show resolved Hide resolved
src/ethereum_test_tools/rpc/rpc.py Outdated Show resolved Hide resolved
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

One more small comment!

src/ethereum_test_tools/rpc/rpc.py Outdated Show resolved Hide resolved
Update docs/CHANGELOG.md

Co-authored-by: danceratopz <[email protected]>

chore: remove jwt auth as not used within `eth_` RPC calls.

chore: move BlockNumberType to init file.

chore: add 8545 specifically for the EthRPC class.

Update src/ethereum_test_tools/rpc/rpc.py

Co-authored-by: Mario Vega <[email protected]>

Update src/ethereum_test_tools/rpc/rpc.py

Co-authored-by: Mario Vega <[email protected]>

Update src/ethereum_test_tools/rpc/rpc.py

Co-authored-by: danceratopz <[email protected]>

feat(fw): update rpc methods.
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@spencer-tb spencer-tb merged commit 7a34906 into ethereum:main May 17, 2024
5 checks passed
spencer-tb added a commit to spencer-tb/execution-spec-tests that referenced this pull request May 20, 2024
)

Update docs/CHANGELOG.md

Co-authored-by: danceratopz <[email protected]>

chore: remove jwt auth as not used within `eth_` RPC calls.

chore: move BlockNumberType to init file.

chore: add 8545 specifically for the EthRPC class.

Update src/ethereum_test_tools/rpc/rpc.py

Co-authored-by: Mario Vega <[email protected]>

Update src/ethereum_test_tools/rpc/rpc.py

Co-authored-by: Mario Vega <[email protected]>

Update src/ethereum_test_tools/rpc/rpc.py

Co-authored-by: danceratopz <[email protected]>

feat(fw): update rpc methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:fw Scope: Framework (evm|tools|forks|pytest) type:chore Type: Chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants