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

Problem: python dependencies in integration tests are old #1325

Merged
merged 6 commits into from
Feb 21, 2024

Conversation

yihuang
Copy link
Collaborator

@yihuang yihuang commented Feb 20, 2024

Solution:

  • update python to 3.11
  • update dependencies

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Summary by CodeRabbit

  • Refactor
    • Updated hashing operations in integration tests for enhanced performance and reliability.
    • Improved code readability and maintenance by aliasing an import used for message creation.

@yihuang yihuang requested a review from a team as a code owner February 20, 2024 01:18
@yihuang yihuang requested review from mmsqe and JayT106 and removed request for a team February 20, 2024 01:18
Copy link
Contributor

coderabbitai bot commented Feb 20, 2024

Walkthrough

The update focuses on enhancing the hashing operations in the eip712_utils.py file within the integration_tests module by switching from using sha3 to eth_hash.auto.keccak. This change aims to improve the reliability and efficiency of hash value calculations in the function handling transactions with multiple messages. Additionally, the update introduces an alias for google.protobuf.any_pb2 to streamline the creation of Any messages, optimizing the codebase for better readability and maintenance.

Changes

File Path Change Summary
.../integration_tests/eip712_utils.py Replaced sha3 with eth_hash.auto.keccak for hashing; Aliased google.protobuf.any_pb2 as google_dot_protobuf_dot_any__pb2.

🐇✨
In the realm of code where the bits align,
A rabbit hopped through, making changes so fine.
With a flick of its tail, sha3 was replaced,
By keccak's might, in a swift, graceful chase.
🌟 Any messages, now clearer in view,
As the rabbit danced through, in the moonlight's hue.
Celebrate the leap, in the digital space,
For every line refined, finds its perfect place.
🎉🐰

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-tests for this file.
  • 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 tests 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 from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link

socket-security bot commented Feb 20, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected]

View full report↗︎

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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 48bf414 and 66caacc.
Files ignored due to path filters (2)
  • integration_tests/poetry.lock is excluded by: !**/*.lock
  • integration_tests/pyproject.toml is excluded by: !**/*.toml
Files selected for processing (1)
  • nix/testenv.nix (1 hunks)
Additional comments: 1
nix/testenv.nix (1)
  • 1-4: The upgrade to Python 3.11 is correctly implemented by setting the python attribute to python311. This change aligns with the PR's objective to modernize the Python environment used in integration tests. Ensure that all dependencies and the project's code are compatible with Python 3.11 to avoid runtime issues.

nix/testenv.nix Outdated Show resolved Hide resolved
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.

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 66caacc and ce78256.
Files selected for processing (1)
  • integration_tests/test_gravity.py (1 hunks)
Additional comments: 1
integration_tests/test_gravity.py (1)
  • 180-180: The change to remove unnecessary line breaks in the send_transaction call within the loop that funds all accounts in the test_multiple_attestation_processing function simplifies the code and improves readability. This is a positive change as it makes the code more concise without affecting its functionality.

integration_tests/test_gravity.py Show resolved Hide resolved
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ce78256 and f958f63.
Files ignored due to path filters (2)
  • integration_tests/poetry.lock is excluded by: !**/*.lock
  • integration_tests/pyproject.toml is excluded by: !**/*.toml
Files selected for processing (1)
  • nix/testenv.nix (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • nix/testenv.nix

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.

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f958f63 and 682716d.
Files ignored due to path filters (2)
  • integration_tests/poetry.lock is excluded by: !**/*.lock
  • integration_tests/pyproject.toml is excluded by: !**/*.toml
Files selected for processing (2)
  • integration_tests/eip712_utils.py (2 hunks)
  • integration_tests/gravity_utils.py (2 hunks)
Additional comments: 2
integration_tests/gravity_utils.py (1)
  • 3-3: The import of keccak from eth_hash.auto replaces the previous sha3 import. Ensure that all instances where sha3 was used are now correctly utilizing keccak for hashing operations. This change should not alter the expected outcomes of these operations, given that keccak is the underlying algorithm of sha3. However, it's crucial to verify that the keccak function is invoked correctly throughout the file.
integration_tests/eip712_utils.py (1)
  • 5-5: The import of keccak from eth_hash.auto replaces the previous sha3 import. This change is part of the effort to update dependencies to more current versions. Ensure that all instances where sha3 was previously used are now correctly utilizing keccak for hashing operations. This change should maintain the expected outcomes of these operations, given that keccak is the underlying algorithm of sha3. However, it's crucial to verify that the keccak function is invoked correctly throughout the file.

integration_tests/gravity_utils.py Outdated Show resolved Hide resolved
integration_tests/eip712_utils.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ef3d26c) 36.38% compared to head (8d83eb9) 15.90%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1325       +/-   ##
===========================================
- Coverage   36.38%   15.90%   -20.48%     
===========================================
  Files         118       80       -38     
  Lines       10755     6230     -4525     
===========================================
- Hits         3913      991     -2922     
+ Misses       6463     5160     -1303     
+ Partials      379       79      -300     

see 62 files with indirect coverage changes

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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 682716d and cbb83ca.
Files selected for processing (16)
  • integration_tests/eip712_utils.py (3 hunks)
  • integration_tests/protobuf/amino/amino_pb2.py (1 hunks)
  • integration_tests/protobuf/cosmos/bank/v1beta1/bank_pb2.py (2 hunks)
  • integration_tests/protobuf/cosmos/bank/v1beta1/tx_pb2.py (2 hunks)
  • integration_tests/protobuf/cosmos/base/v1beta1/coin_pb2.py (1 hunks)
  • integration_tests/protobuf/cosmos/crypto/multisig/v1beta1/multisig_pb2.py (2 hunks)
  • integration_tests/protobuf/cosmos/crypto/secp256k1/keys_pb2.py (1 hunks)
  • integration_tests/protobuf/cosmos/msg/v1/msg_pb2.py (1 hunks)
  • integration_tests/protobuf/cosmos/tx/signing/v1beta1/signing_pb2.py (2 hunks)
  • integration_tests/protobuf/cosmos/tx/v1beta1/tx_pb2.py (2 hunks)
  • integration_tests/protobuf/cosmos_proto/cosmos_pb2.py (2 hunks)
  • integration_tests/protobuf/ethermint/crypto/v1/ethsecp256k1/keys_pb2.py (2 hunks)
  • integration_tests/protobuf/ethermint/evm/v1/query_pb2.py (1 hunks)
  • integration_tests/protobuf/ethermint/types/v1/web3_pb2.py (2 hunks)
  • integration_tests/protobuf/gogoproto/gogo_pb2.py (2 hunks)
  • integration_tests/protobuf/google/protobuf/any_pb2.py (2 hunks)
Files not summarized due to errors (1)
  • integration_tests/protobuf/ethermint/evm/v1/query_pb2.py: Error: Message exceeds token limit
Files skipped from review due to trivial changes (1)
  • integration_tests/protobuf/cosmos/msg/v1/msg_pb2.py
Files skipped from review as they are similar to previous changes (1)
  • integration_tests/eip712_utils.py
Additional comments: 36
integration_tests/protobuf/google/protobuf/any_pb2.py (3)
  • 4-4: The Python version specified in the comment has been updated to reflect the new environment. This change is expected and aligns with the PR's objectives.
  • 20-22: The use of _builder.BuildMessageAndEnumDescriptors and _builder.BuildTopDescriptorsAndMessages for building message and enum descriptors is standard practice in protobuf-generated Python files. These changes appear to be part of the routine update process and should not introduce issues.
  • 24-29: Adjustments to global variables and their options to accommodate the updated protobuf version are noted. It's crucial to ensure these changes are consistent across all protobuf-generated files to maintain uniformity and compatibility.
integration_tests/protobuf/ethermint/crypto/v1/ethsecp256k1/keys_pb2.py (3)
  • 4-4: The Python version specified in the comment has been updated, which is consistent with the PR's objectives to update the Python environment.
  • 20-22: The use of _builder functions for building descriptors and messages is standard and expected in the context of protobuf-generated files. These changes are part of the routine update process.
  • 24-31: Adjustments to global variables and their options, similar to those seen in any_pb2.py, are consistent with updates to the protobuf version. Ensuring these changes are uniform across all protobuf-generated files is crucial for compatibility.
integration_tests/protobuf/amino/amino_pb2.py (3)
  • 4-4: The Python version comment has been updated, aligning with the PR's goal to update the Python environment for integration tests.
  • 20-22: Usage of _builder functions for descriptor and message building is standard in protobuf-generated files. These changes are expected as part of the protobuf version update.
  • 24-26: Adjustments to global variables and their options are consistent with the protobuf version update, similar to changes observed in other protobuf-generated files.
integration_tests/protobuf/cosmos/crypto/multisig/v1beta1/multisig_pb2.py (3)
  • 4-4: The Python version comment has been updated, which is consistent with the PR's objectives to update the Python environment.
  • 20-22: The use of _builder functions for building descriptors and messages is standard and expected in the context of protobuf-generated files. These changes are part of the routine update process.
  • 24-33: Adjustments to global variables and their options, similar to those seen in previous protobuf-generated files, are consistent with updates to the protobuf version. Ensuring these changes are uniform across all protobuf-generated files is crucial for compatibility.
integration_tests/protobuf/cosmos_proto/cosmos_pb2.py (3)
  • 4-4: The Python version comment has been updated, aligning with the PR's goal to update the Python environment for integration tests.
  • 20-22: Usage of _builder functions for descriptor and message building is standard in protobuf-generated files. These changes are expected as part of the protobuf version update.
  • 24-31: Adjustments to global variables and their options are consistent with the protobuf version update, similar to changes observed in other protobuf-generated files.
integration_tests/protobuf/ethermint/types/v1/web3_pb2.py (3)
  • 4-4: The Python version comment has been updated, which is consistent with the PR's objectives to update the Python environment.
  • 20-22: The use of _builder functions for building descriptors and messages is standard and expected in the context of protobuf-generated files. These changes are part of the routine update process.
  • 24-35: Adjustments to global variables and their options, similar to those seen in previous protobuf-generated files, are consistent with updates to the protobuf version. Ensuring these changes are uniform across all protobuf-generated files is crucial for compatibility.
integration_tests/protobuf/cosmos/tx/signing/v1beta1/signing_pb2.py (3)
  • 4-4: The Python version comment has been updated, aligning with the PR's goal to update the Python environment for integration tests.
  • 20-22: Usage of _builder functions for descriptor and message building is standard in protobuf-generated files. These changes are expected as part of the protobuf version update.
  • 24-38: Adjustments to global variables and their options are consistent with the protobuf version update, similar to changes observed in other protobuf-generated files.
integration_tests/protobuf/cosmos/base/v1beta1/coin_pb2.py (3)
  • 4-4: The Python version comment has been updated, which is consistent with the PR's objectives to update the Python environment.
  • 22-24: The use of _builder functions for building descriptors and messages is standard and expected in the context of protobuf-generated files. These changes are part of the routine update process.
  • 26-47: Adjustments to global variables and their options, similar to those seen in previous protobuf-generated files, are consistent with updates to the protobuf version. Ensuring these changes are uniform across all protobuf-generated files is crucial for compatibility.
integration_tests/protobuf/cosmos/bank/v1beta1/bank_pb2.py (5)
  • 4-4: The update to Protobuf Python Version 4.25.2 is noted. This version update is crucial for ensuring compatibility with the latest protobuf features and improvements.
  • 9-9: The use of google.protobuf.internal.builder for imports indicates a shift towards internal protobuf mechanisms for descriptor building. This change aligns with the updated protobuf version and its capabilities.
  • 18-19: The addition of imports from cosmos.msg.v1 and amino suggests an expansion in the scope of functionalities covered by this protobuf file, potentially to accommodate new message types or cryptographic functions.
  • 22-69: Significant modifications have been made to the declarations of public entities like Params, SendEnabled, Input, Output, Supply, DenomUnit, and Metadata, with alterations in field definitions and options. These changes are likely to impact how these entities are used throughout the codebase. Ensure that all references to these entities and their fields are updated accordingly to prevent runtime errors.
  • 26-69: The use of _builder.BuildMessageAndEnumDescriptors and subsequent adjustments to global variables and descriptor options reflect a more detailed control over protobuf descriptor behavior. This is particularly important for ensuring that the protobuf definitions are correctly interpreted and compiled by the protobuf runtime.
integration_tests/protobuf/gogoproto/gogo_pb2.py (3)
  • 4-4: The Protobuf Python version has been updated to 4.25.2. This update is crucial for compatibility with the latest features and bug fixes provided by the Protobuf library.
  • 20-22: The use of _builder.BuildMessageAndEnumDescriptors and _builder.BuildTopDescriptorsAndMessages for building and registering descriptors is a standard approach in Protobuf-generated Python code. This ensures that the Python classes for Protobuf messages and enums are correctly set up in the module's global namespace.
  • 24-25: Setting _options and _serialized_options to None and a byte string, respectively, for the DESCRIPTOR is part of the Protobuf Python code generation process. This customization is typically used to specify options that affect the generated code or runtime behavior. However, directly manipulating these attributes is unusual in manually written code and should be carefully reviewed for correctness and necessity.

Please verify the necessity and correctness of manually setting _options and _serialized_options for DESCRIPTOR. This is typically handled by the Protobuf compiler and might not be needed or could lead to unexpected behavior if done incorrectly.

integration_tests/protobuf/ethermint/evm/v1/query_pb2.py (4)
  • 4-4: The Protobuf Python version has been updated to 4.25.2 in this file as well. This is a positive change, ensuring compatibility with the latest Protobuf features and improvements.
  • 17-21: The addition of imports from various Protobuf files specific to the Ethermint project and Google APIs is necessary for the definitions within this file. These imports are standard practice in Protobuf-generated files and ensure that all necessary types are available for the Protobuf messages defined in this file.
  • 27-29: Similar to the previous file, the use of _builder.BuildMessageAndEnumDescriptors and _builder.BuildTopDescriptorsAndMessages is standard in Protobuf-generated Python code for setting up message and enum descriptors. This ensures the Python classes for Protobuf messages and enums are correctly registered.
  • 31-84: The manual setting of _options and _serialized_options to None and specific byte strings for various descriptors is unusual in manually written code. This pattern is observed across multiple descriptors in this file, indicating a systematic approach to customizing Protobuf message options. While this might be necessary for certain advanced use cases, it's important to ensure that these customizations are indeed required and correctly implemented to avoid maintenance and compatibility issues.

Please verify the necessity and correctness of manually setting _options and _serialized_options for various descriptors. Ensure that these customizations are required for the project's specific needs and that they are implemented correctly to avoid potential issues.

integration_tests/protobuf/gogoproto/gogo_pb2.py Outdated Show resolved Hide resolved
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between cbb83ca and aeadb4d.
Files selected for processing (1)
  • integration_tests/test_ibc_rly.py (2 hunks)
Additional comments: 2
integration_tests/test_ibc_rly.py (2)
  • 120-133: The use of AttributeDict for packetDataHex in the recv_packet function introduces a more structured and readable way to handle packet data. However, ensure that all consuming functions and processes are compatible with this change, as AttributeDict behaves slightly differently from a standard dictionary, especially in terms of attribute access vs. key access.
  • 162-175: Similar to the recv_packet function, the write_ack function's adoption of AttributeDict for packetDataHex enhances code readability and structure. It's crucial to verify that the changes are fully integrated and tested across the system to ensure no functionality is broken due to the differences in data access patterns between AttributeDict and standard dictionaries.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between aeadb4d and 0af6cf9.
Files selected for processing (1)
  • integration_tests/test_ibc_rly.py (4 hunks)
Files skipped from review as they are similar to previous changes (1)
  • integration_tests/test_ibc_rly.py

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 0af6cf9 and 55ecb4f.
Files selected for processing (2)
  • integration_tests/eip712_utils.py (3 hunks)
  • integration_tests/test_ibc_rly.py (4 hunks)
Files skipped from review as they are similar to previous changes (2)
  • integration_tests/eip712_utils.py
  • integration_tests/test_ibc_rly.py

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 55ecb4f and 954d6c3.
Files selected for processing (2)
  • integration_tests/eip712_utils.py (5 hunks)
  • integration_tests/gravity_utils.py (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • integration_tests/eip712_utils.py
  • integration_tests/gravity_utils.py

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 954d6c3 and eaf06e3.
Files selected for processing (3)
  • integration_tests/test_filters.py (1 hunks)
  • integration_tests/test_ica_precompile.py (2 hunks)
  • integration_tests/test_pruned_node.py (1 hunks)
Additional comments: 5
integration_tests/test_filters.py (2)
  • 37-37: The method call create_filter correctly follows Python's naming conventions and the Web3.py library's standards for method names, improving readability and consistency.
  • 43-43: The use of process_receipt method aligns with Python's naming conventions and the Web3.py library's standards. This change enhances code readability and consistency.
integration_tests/test_pruned_node.py (1)
  • 100-100: Converting the "input" field to a HexBytes object enhances type safety and compatibility with the Web3.py library. This change ensures that hexadecimal values are correctly represented and handled within the code.
integration_tests/test_ica_precompile.py (2)
  • 124-124: Updating the method call from event.getLogs() to event.get_logs() aligns with Python's naming conventions and enhances code readability and consistency.
  • 198-198: The change to event.get_logs() from event.getLogs() is consistent with Python's naming conventions, improving code readability and consistency.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between eaf06e3 and 9d7cff0.
Files selected for processing (1)
  • integration_tests/eip712_utils.py (5 hunks)
Files skipped from review as they are similar to previous changes (1)
  • integration_tests/eip712_utils.py

Solution:
- update python to 3.11
- update dependencies

fix lint

add eth-bloom

add eth-bloom

use eth_hash inplace of pysha3

gen pb2.py with protoc

fix format

fix format

fix test

Revert "gen pb2.py with protoc"

This reverts commit cbb83ca.

fix dup proto

fix sha

fix web3.py

fix test

cleanup amount_dict
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ef3d26c and 77d53a4.
Files ignored due to path filters (2)
  • integration_tests/poetry.lock is excluded by: !**/*.lock
  • integration_tests/pyproject.toml is excluded by: !**/*.toml
Files selected for processing (8)
  • integration_tests/eip712_utils.py (5 hunks)
  • integration_tests/gravity_utils.py (2 hunks)
  • integration_tests/test_filters.py (1 hunks)
  • integration_tests/test_gravity.py (1 hunks)
  • integration_tests/test_ibc_rly.py (4 hunks)
  • integration_tests/test_ica_precompile.py (2 hunks)
  • integration_tests/test_pruned_node.py (1 hunks)
  • nix/testenv.nix (1 hunks)
Files skipped from review as they are similar to previous changes (8)
  • integration_tests/eip712_utils.py
  • integration_tests/gravity_utils.py
  • integration_tests/test_filters.py
  • integration_tests/test_gravity.py
  • integration_tests/test_ibc_rly.py
  • integration_tests/test_ica_precompile.py
  • integration_tests/test_pruned_node.py
  • nix/testenv.nix

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 77d53a4 and 4d1ec7d.
Files selected for processing (2)
  • integration_tests/eip712_utils.py (5 hunks)
  • integration_tests/gravity_utils.py (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • integration_tests/eip712_utils.py
  • integration_tests/gravity_utils.py

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 4d1ec7d and 4cb3ced.
Files selected for processing (1)
  • integration_tests/eip712_utils.py (5 hunks)
Files skipped from review as they are similar to previous changes (1)
  • integration_tests/eip712_utils.py

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 4cb3ced and 1a140d8.
Files selected for processing (1)
  • integration_tests/eip712_utils.py (5 hunks)
Files skipped from review as they are similar to previous changes (1)
  • integration_tests/eip712_utils.py

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1a140d8 and 8d83eb9.
Files selected for processing (1)
  • integration_tests/eip712_utils.py (5 hunks)
Files skipped from review as they are similar to previous changes (1)
  • integration_tests/eip712_utils.py

@yihuang yihuang enabled auto-merge February 21, 2024 01:42
@yihuang yihuang added this pull request to the merge queue Feb 21, 2024
Merged via the queue into crypto-org-chain:main with commit e16b913 Feb 21, 2024
41 of 42 checks passed
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