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-970] Seth utils #932

Merged
merged 4 commits into from Apr 29, 2024
Merged

Conversation

Tofel
Copy link
Contributor

@Tofel Tofel commented Apr 29, 2024


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

Why

The changes introduce a new configuration interface for Seth in a decentralized oracle network, ensuring compatibility with the Seth library. They also update dependencies to their newer versions, which may include bug fixes, performance improvements, or new features. Particularly, the go-toml package is updated to a newer patch version, and the smartcontractkit/seth library is introduced as a new dependency, indicating the integration of Seth into the project.

What

  • config/types.go
    • Added a new file defining a SethConfig interface that requires a GetSethConfig method returning a *seth.Config.
  • go.mod
    • Updated github.com/pelletier/go-toml/v2 from v2.1.0 to v2.1.1.
    • Added github.com/smartcontractkit/seth v0.1.6-0.20240429143720-cacb8160ecec as a dependency.
    • Introduced github.com/montanaflynn/stats v0.7.1 as an indirect dependency.
  • go.sum
    • Added checksums for github.com/montanaflynn/stats v0.7.1, github.com/smartcontractkit/seth v0.1.6-0.20240429143720-cacb8160ecec, and github.com/pelletier/go-toml/v2 v2.1.1.
    • Included a checksum for an older version of github.com/urfave/cli v1.22.12.
  • utils/seth/seth.go
    • New file added implementing utilities for working with Seth, including error messages for insufficient key configurations, functions for getting a Seth client with specific configurations, and validation functions for Seth network configurations.

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

@Tofel Tofel changed the base branch from tt_922_automation_seth to main April 29, 2024 14:53
@Tofel Tofel changed the base branch from main to tt_922_automation_seth_common_methods April 29, 2024 14:53
@Tofel Tofel changed the base branch from tt_922_automation_seth_common_methods to tt_922_automation_seth April 29, 2024 14:54
@Tofel Tofel marked this pull request as ready for review April 29, 2024 14:54
@Tofel Tofel requested review from sebawo and a team as code owners April 29, 2024 14:54
@Tofel Tofel requested a review from kalverra April 29, 2024 14:56
@Tofel Tofel merged commit eaa4982 into tt_922_automation_seth Apr 29, 2024
21 checks passed
@Tofel Tofel deleted the tt_922_automation_seth_light branch April 29, 2024 15:29
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.

None yet

2 participants