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

Update dependencies #490

Merged
merged 11 commits into from
Jan 13, 2025
Merged

Update dependencies #490

merged 11 commits into from
Jan 13, 2025

Conversation

fhenneke
Copy link
Collaborator

@fhenneke fhenneke commented Jan 13, 2025

This PR aims to update dependencies and closes #489.

Main changes:

  • Use latest version of safe-eth-py. This required some changes to imports. The name of the Base network had to be changed. Also, the output type of some function changed to bytes which required updating the corresponding test, and some input changed trom a string to a checksumed string.
  • Use SQLAlchemy 2.0. This required some changes to executing statements which change the database. instead of executing on the engine object, the executions is called on the connection object. An additional with block was required to close the connection. Alternatively, one could have explicitly called a commit function.

I will probably bound from below some of the packages we use. I also want to understand why web3 is still held back to 6.X instead of the latest stable version 7.X.

I have tested the changes with the main payout in the accounting week 2024-12-31 to 2025-01-07. I tested that the base code does not crash at the point where it did before. Actually posting a transaction has not been done.

Copy link

socket-security bot commented Jan 13, 2025

Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
pypi/[email protected] 🔁 pypi/[email protected] None 0 113 kB bdraco
pypi/[email protected] 🔁 pypi/[email protected] None 0 15.4 MB Andrew.Svetlov, Dreamsorcerer, bdraco, ...2 more
pypi/[email protected] 🔁 pypi/[email protected] None 0 63.2 kB Andrew.Svetlov, mj
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 1.51 MB hynek
pypi/[email protected] 🔁 pypi/[email protected] None 0 593 kB ilanschnell
pypi/[email protected] 🔁 pypi/[email protected] None 0 6.25 MB JelleZijlstra, ambv, cooperlees, ...2 more
pypi/[email protected] 🔁 pypi/[email protected] None 0 54.7 kB pydanny
pypi/[email protected] 🔁 pypi/[email protected] None 0 309 kB Lukasa
pypi/[email protected] 🔁 pypi/[email protected] None 0 787 kB Ousret
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 8.33 MB eriknw, hendrikmakait, jrbourbeau, ...1 more
pypi/[email protected] 🔁 pypi/[email protected] None 0 3.12 MB laurent-laporte-pro, tantale
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 187 kB bh2smith, dune.com
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 116 kB carver, kclowes, pacrob, ...1 more
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 5 MB JaredKuolt, ambroff, bob, ...6 more
pypi/[email protected] 🔁 pypi/[email protected] None 0 1.14 MB kjd
pypi/[email protected] 🔁 pypi/[email protected] None 0 67 kB
pypi/[email protected] 🔁 pypi/[email protected] None 0 848 kB lafrech, sloria
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 0 B
pypi/[email protected] 🔁 pypi/[email protected] None 0 101 MB charlesr.harris, matthew.brett, mattip, ...2 more

🚮 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]

View full report↗︎

@fhenneke fhenneke marked this pull request as ready for review January 13, 2025 14:39
@fhenneke fhenneke changed the title [Draft] Update dependencies again Update dependencies again Jan 13, 2025
@fhenneke fhenneke changed the title Update dependencies again Update dependencies Jan 13, 2025
log.info("Running prod query for first connection (in get_solver_rewards)")
results.append(
self.exec_query(query=batch_reward_query_prod, engine=self.connections[0])
)
for engine in self.connections[1:]:
# query for barn database
Copy link
Contributor

Choose a reason for hiding this comment

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

This technically changes the behavior but the list never had length more than 2

Copy link
Contributor

@harisang harisang left a comment

Choose a reason for hiding this comment

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

Makes sense overall but i admit i haven't run any tests. Still, this is somewhat pressing for tomorrow's payouts so if you have tested it yourself, then i am fine merging

@harisang
Copy link
Contributor

Merging so that we test with tomorrow's payouts.

@harisang harisang merged commit c27cf14 into main Jan 13, 2025
6 checks passed
@harisang harisang deleted the update_dependencies_again branch January 13, 2025 23:52
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update dependencies
2 participants