-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
67 lines (63 loc) · 1.27 KB
/
__init__.py
File metadata and controls
67 lines (63 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"""HyperLiquid Unified API - Consistent interface for Core and EVM.
This library provides a unified Python interface for interacting with
HyperLiquid through both the Core SDK and EVM CoreWriter precompile.
"""
from .base import HLProtocolBase
from .core import HLProtocolCore
from .evm import HLProtocolEVM
from .exceptions import (
AuthenticationError,
HLProtocolError,
MethodNotImplementedError,
NetworkError,
ValidationError,
)
from .types import (
TIF,
ActionID,
Address,
BridgeDirection,
Price,
Response,
Size,
VerificationPayload,
Wei,
)
from .utils import (
cloid_to_uint128,
decode_tif,
encode_tif,
from_uint64,
generate_cloid,
to_uint64,
)
__version__ = "0.1.0"
__all__ = [
# Base classes
"HLProtocolBase",
"HLProtocolCore",
"HLProtocolEVM",
# Types and enums
"ActionID",
"TIF",
"BridgeDirection",
"Response",
"VerificationPayload",
"Price",
"Size",
"Address",
"Wei",
# Exceptions
"HLProtocolError",
"AuthenticationError",
"NetworkError",
"ValidationError",
"MethodNotImplementedError",
# Utility functions
"to_uint64",
"from_uint64",
"encode_tif",
"decode_tif",
"generate_cloid",
"cloid_to_uint128",
]