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.10.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

hypermanager-0.1.10-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypermanager-0.1.10.tar.gz
  • Upload date:
  • Size: 17.5 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.10.tar.gz
Algorithm Hash digest
SHA256 eb714724d2517ff5df066a73e3cc1ac7f0e1f4105244462395844d46f911e5d6
MD5 1a3051fa66d5eea67806beab36082edf
BLAKE2b-256 dd2a87e2b23305320aa01654bbe3e50017cf09806f2150ab3ed2accd38ee02cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypermanager-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 0e60e1876cf7ef9a7fb6b011628ce5724d8f9269a91ac8547c5c6f1a9f66f4e6
MD5 a4a496ac2d81576afa917a8be4e29829
BLAKE2b-256 c676a67d0f7faee9483e43d4d8b37984e6a26415fc28b61cf7acebdd93003b3e

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