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

[TT-1608] Add Chainlink Image Variations (and lots of linting) #1145

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kalverra
Copy link
Collaborator

@kalverra kalverra commented Sep 19, 2024

Lots of linting was breaking on precommit hooks. Fixed most of that.

The important bit is the changes to ./tools/citool


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes introduce enhancements and fixes to various blockchain-related functionalities, including Ethereum client behaviors, contract interactions, and gas estimations. These modifications aim to improve accuracy, efficiency, and security in handling blockchain transactions and data parsing.

What

  • lib/blockchain/blockchain.go: Improved timestamp handling for EVM headers and modified nonce assignment to prevent potential overflows.
  • lib/blockchain/celo.go: Fixed nonce setting for transaction options in Celo blockchain interactions.
  • lib/blockchain/ethereum.go: Included math library for accurate gas estimation, corrected nonce assignment, and ensured safe Unix timestamp conversion.
  • lib/blockchain/transaction_confirmers.go: Adjusted block number calculations to use safer bigint operations, preventing potential int overflows.
  • lib/client/rpc_suite_test.go and lib/client/rpc_test.go: Updated nonce and block number handling in tests to use bigint, ensuring correctness and safety.
  • lib/config/network.go: Simplified checks for nil slices in network configuration overrides.
  • lib/gauntlet/gauntlet.go: Corrected retry count datatype and improved logging in Gauntlet tool.
  • lib/logstream/logstream.go: Ensured safe calculation and handling of log stream backfill and connection retry logic.
  • lib/utils/seth/seth.go: Adjusted several blockchain utility functions for correct data handling and added checks for potential overflows.
  • seth/block_stats.go, seth/client.go, seth/client_api_test.go, seth/gas.go, seth/gas_adjuster.go, seth/keyfile.go, seth/nonce.go, seth/tracing.go, seth/util.go, and seth/util_test.go: Made various fixes and improvements in Solidity contract interaction, gas estimation, nonce management, and utility functions to enhance performance, safety, and reliability.
  • tools/breakingchanges/cmd/main.go and related files: Updated tooling scripts for handling breaking changes, improving reliability and maintainability of the codebase.

@kalverra kalverra requested review from sebawo and a team as code owners September 19, 2024 20:42
@kalverra kalverra changed the title Add Chainlink Image Variations (and lots of linting) [TT-1608] Add Chainlink Image Variations (and lots of linting) Sep 19, 2024
@cl-sonarqube-production
Copy link

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