Skip to main content

Query orchestrator for Hypersync

Project description

hypermanager-py

hypermanager-py is an orchestration manager built ontop of the hypersync python client. It makes cross-chain log queries easy to manage and works with blocks and transactions data as well.

Installation

Install with pip install hypermanager. The repository is built with Python 3.12.5. You can easily make a virtual environment for this python version by using rye for virtual environment management.

Example

There is an example that retrieves all log events from the Across Protocol bridging. The example is located in the examples directory. Run the example with python examples/across/spoke_pool_v3.py to see how to execute a multi-chain events query.

Adding Events:

The EventConfig class is a key component of the HyperManager framework, designed to facilitate efficient querying and processing of blockchain events across various protocols. It encapsulates event details, enables dynamic querying, and specifies data mapping. Contributions are welcome to enhance the framework's capabilities and ensure comprehensive data coverage for cross chain events:

@dataclass
class EventConfig:
    name: str
    signature: str
    contract: Optional[str] = None
    column_mapping: Optional[hypersync.ColumnMapping] = None
  • name: Human-readable event name
  • signature: Unique event signature
  • contract: (Optional) Associated contract address
  • column_mapping: (Optional) Defines transaction and block data processing1

Add a new event configuration:

  1. Understand the event structure (name, signature, contract address, decoded log fields)
  2. Create an EventConfig instance
  3. Ensure consistency in data types
  4. Add the event to the configuration dictionary and submit a pull request (optional)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypermanager-0.1.12.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

hypermanager-0.1.12-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file hypermanager-0.1.12.tar.gz.

File metadata

  • Download URL: hypermanager-0.1.12.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for hypermanager-0.1.12.tar.gz
Algorithm Hash digest
SHA256 536d50b21f7e9e201220c44a5ea18c396d31e1e9e0cab8b10b5636449d7a586b
MD5 96aa18db442afe6775e7f9c0620b6977
BLAKE2b-256 983fb37fe3247ff390f22642c509ce540e1777afa66e32961de60d068921f1b6

See more details on using hashes here.

File details

Details for the file hypermanager-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for hypermanager-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 859f0e318553953713ba0e7f867527640faa5c45d2b74c2020865ca2f0d23638
MD5 6d7129564ac4ea89232d4278ba913689
BLAKE2b-256 416d0a88dfc7f0e4f45c03db0638bcf986da696b4265571d0ecc8b2eef777b2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page