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:
- Understand the event structure (name, signature, contract address, decoded log fields)
- Create an EventConfig instance
- Ensure consistency in data types
- Add the event to the configuration dictionary and submit a pull request (optional)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hypermanager-0.1.11.tar.gz
.
File metadata
- Download URL: hypermanager-0.1.11.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b416776d5b97104824bb162a597c2dc155a50c302ed802139ab963a6940d6e50 |
|
MD5 | 644242eb0d3d72d8a4bc9666c85af7a5 |
|
BLAKE2b-256 | a9c735acef2c011527461a781242705f44aada46c384e65b0a1c3d5ff44bb45d |
File details
Details for the file hypermanager-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: hypermanager-0.1.11-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d7b94746dd7cd2d0bc38c1fd2acb1119d8bc5dcb85349dd1237c5cbca6897ad |
|
MD5 | bba3cab3e04d7f5247369be30ebca0df |
|
BLAKE2b-256 | 044db5e6bd6b965e14bf7eaa25abbaffa66a4137a32423d5258040f318fb6583 |