Skip to main content

Add your description here

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

Uploaded Source

Built Distribution

hypermanager-0.1.9-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hypermanager-0.1.9.tar.gz
Algorithm Hash digest
SHA256 829e8d87a8a3a6ab5f85971eb47f62f8b1dc481a0b7b48b8405a82afc9c7370b
MD5 39b871249e4123a5e64a4a7b2da8c6bb
BLAKE2b-256 eef6780cdf9466a78eae1f02b04b1d2024bf7733ae21f1842c037076a5db4f8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypermanager-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for hypermanager-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 489cb98b26b34990ac285a7709ab4516ffe7a03151b163481656a733d3012c5e
MD5 6f62500090e355ccdc49b6e7b016ee24
BLAKE2b-256 3970b423130c421efc573300b8a282dd48dc7ce2f7ee32a739c48484b228bd29

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