Skip to content

Conversation

@noa-starkware
Copy link
Collaborator

@noa-starkware noa-starkware commented Nov 12, 2025

Note

Introduces Python utilities for StarkNet (accounts, declare/deploy, multicall, events, tx build/sign/serialize) and a Dune query helper, adding the dune-client dependency.

  • Python Utilities:
    • StarkNet helpers (python/utils/starknet_py_utils.py):
      • Node/account setup (FullNodeClient, keystore-based Account).
      • Contract workflows: declare, deploy, invoke/call, multicall.
      • Event fetching (chunked, last-event), ABI retrieval (local/node).
      • Upgrade support: prepare and execute upgrade calls (JSON and calldata forms).
      • Transaction utilities: build InvokeV3, fee estimation, hash/signature handling, JSON serialization/deserialization, send tx.
    • Starkli helpers (python/utils/starkli_utils.py):
      • Extract private key from keystore; Ledger sign-hash and public-key retrieval via starkli CLI.
    • General utils (python/utils/utils.py):
      • Debug logging toggle, list chunking, value normalization to hex, JSON load/store.
  • Dune Integration:
    • python/utils/dune_utils.py: query_dune to run queries with optional max_block param.
  • Dependencies:
    • Add pinned dune-client==1.7.10 to python/pyproject.toml.```}

Written by Cursor Bugbot for commit 5689833. This will update automatically on new commits. Configure here.


This change is Reviewable

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@5de28fd). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #133   +/-   ##
=======================================
  Coverage        ?   89.36%           
=======================================
  Files           ?       43           
  Lines           ?     2464           
  Branches        ?        0           
=======================================
  Hits            ?     2202           
  Misses          ?      262           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@omri-ba-starkware omri-ba-starkware left a comment

Choose a reason for hiding this comment

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

@omri-ba-starkware reviewed 5 of 5 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RoeeGross)

@omri-ba-starkware omri-ba-starkware merged commit 28e05a7 into main Nov 12, 2025
6 checks passed
@omri-ba-starkware omri-ba-starkware deleted the noa/pyhon-utils branch November 12, 2025 12:05
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.

3 participants