faster-eth-abi 5.2.3__cp314-cp314-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- a1f8aa123fabc88e2b56__mypyc.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/__init__.py +12 -0
- faster_eth_abi/abi.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/abi.py +17 -0
- faster_eth_abi/base.py +41 -0
- faster_eth_abi/codec.py +167 -0
- faster_eth_abi/constants.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/constants.py +7 -0
- faster_eth_abi/decoding.py +563 -0
- faster_eth_abi/encoding.py +699 -0
- faster_eth_abi/exceptions.py +115 -0
- faster_eth_abi/from_type_str.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/from_type_str.py +135 -0
- faster_eth_abi/grammar.py +467 -0
- faster_eth_abi/io.py +103 -0
- faster_eth_abi/packed.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/packed.py +15 -0
- faster_eth_abi/py.typed +0 -0
- faster_eth_abi/registry.py +640 -0
- faster_eth_abi/tools/__init__.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/tools/__init__.py +3 -0
- faster_eth_abi/tools/_strategies.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/tools/_strategies.py +237 -0
- faster_eth_abi/utils/__init__.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/utils/__init__.py +0 -0
- faster_eth_abi/utils/numeric.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/utils/numeric.py +86 -0
- faster_eth_abi/utils/padding.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/utils/padding.py +22 -0
- faster_eth_abi/utils/string.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/utils/string.py +19 -0
- faster_eth_abi/utils/validation.cp314-win_amd64.pyd +0 -0
- faster_eth_abi/utils/validation.py +22 -0
- faster_eth_abi-5.2.3.dist-info/METADATA +95 -0
- faster_eth_abi-5.2.3.dist-info/RECORD +38 -0
- faster_eth_abi-5.2.3.dist-info/WHEEL +5 -0
- faster_eth_abi-5.2.3.dist-info/licenses/LICENSE +21 -0
- faster_eth_abi-5.2.3.dist-info/top_level.txt +3 -0
@@ -0,0 +1,237 @@
|
|
1
|
+
from typing import (
|
2
|
+
Callable,
|
3
|
+
Final,
|
4
|
+
Optional,
|
5
|
+
Union,
|
6
|
+
)
|
7
|
+
|
8
|
+
from cchecksum import (
|
9
|
+
to_checksum_address,
|
10
|
+
)
|
11
|
+
from eth_typing.abi import (
|
12
|
+
TypeStr,
|
13
|
+
)
|
14
|
+
from hypothesis import (
|
15
|
+
strategies as st,
|
16
|
+
)
|
17
|
+
|
18
|
+
from faster_eth_abi.grammar import (
|
19
|
+
ABIType,
|
20
|
+
BasicType,
|
21
|
+
TupleType,
|
22
|
+
normalize,
|
23
|
+
parse,
|
24
|
+
)
|
25
|
+
from faster_eth_abi.registry import (
|
26
|
+
BaseEquals,
|
27
|
+
BaseRegistry,
|
28
|
+
Lookup,
|
29
|
+
PredicateMapping,
|
30
|
+
has_arrlist,
|
31
|
+
is_base_tuple,
|
32
|
+
)
|
33
|
+
from faster_eth_abi.utils.numeric import (
|
34
|
+
scale_places,
|
35
|
+
)
|
36
|
+
|
37
|
+
StrategyFactory = Callable[[ABIType, "StrategyRegistry"], st.SearchStrategy]
|
38
|
+
StrategyRegistration = Union[st.SearchStrategy, StrategyFactory]
|
39
|
+
|
40
|
+
|
41
|
+
class StrategyRegistry(BaseRegistry):
|
42
|
+
def __init__(self) -> None:
|
43
|
+
self._strategies = PredicateMapping("strategy registry")
|
44
|
+
|
45
|
+
def register_strategy(
|
46
|
+
self,
|
47
|
+
lookup: Lookup,
|
48
|
+
registration: StrategyRegistration,
|
49
|
+
label: Optional[str] = None,
|
50
|
+
) -> None:
|
51
|
+
self._register(self._strategies, lookup, registration, label=label)
|
52
|
+
|
53
|
+
def unregister_strategy(self, lookup_or_label: Lookup) -> None:
|
54
|
+
self._unregister(self._strategies, lookup_or_label)
|
55
|
+
|
56
|
+
def get_strategy(self, type_str: TypeStr) -> st.SearchStrategy:
|
57
|
+
"""
|
58
|
+
Returns a hypothesis strategy for the given ABI type.
|
59
|
+
|
60
|
+
:param type_str: The canonical string representation of the ABI type
|
61
|
+
for which a hypothesis strategy should be returned.
|
62
|
+
|
63
|
+
:returns: A hypothesis strategy for generating Python values that are
|
64
|
+
encodable as values of the given ABI type.
|
65
|
+
"""
|
66
|
+
registration = self._get_registration(self._strategies, type_str)
|
67
|
+
|
68
|
+
if isinstance(registration, st.SearchStrategy):
|
69
|
+
# If a hypothesis strategy was registered, just return it
|
70
|
+
return registration
|
71
|
+
else:
|
72
|
+
# Otherwise, assume the factory is a callable. Call it with the abi
|
73
|
+
# type to get an appropriate hypothesis strategy.
|
74
|
+
normalized_type_str = normalize(type_str)
|
75
|
+
abi_type = parse(normalized_type_str)
|
76
|
+
strategy = registration(abi_type, self)
|
77
|
+
|
78
|
+
return strategy
|
79
|
+
|
80
|
+
|
81
|
+
def get_uint_strategy(
|
82
|
+
abi_type: BasicType, registry: StrategyRegistry
|
83
|
+
) -> st.SearchStrategy:
|
84
|
+
bits = abi_type.sub
|
85
|
+
|
86
|
+
return st.integers(
|
87
|
+
min_value=0,
|
88
|
+
max_value=2**bits - 1,
|
89
|
+
)
|
90
|
+
|
91
|
+
|
92
|
+
def get_int_strategy(
|
93
|
+
abi_type: BasicType, registry: StrategyRegistry
|
94
|
+
) -> st.SearchStrategy:
|
95
|
+
bits = abi_type.sub
|
96
|
+
|
97
|
+
return st.integers(
|
98
|
+
min_value=-(2 ** (bits - 1)),
|
99
|
+
max_value=2 ** (bits - 1) - 1,
|
100
|
+
)
|
101
|
+
|
102
|
+
|
103
|
+
address_strategy: Final = st.binary(min_size=20, max_size=20).map(to_checksum_address)
|
104
|
+
bool_strategy: Final = st.booleans()
|
105
|
+
|
106
|
+
|
107
|
+
def get_ufixed_strategy(
|
108
|
+
abi_type: BasicType, registry: StrategyRegistry
|
109
|
+
) -> st.SearchStrategy:
|
110
|
+
bits, places = abi_type.sub
|
111
|
+
|
112
|
+
return st.decimals(
|
113
|
+
min_value=0,
|
114
|
+
max_value=2**bits - 1,
|
115
|
+
places=0,
|
116
|
+
).map(scale_places(places))
|
117
|
+
|
118
|
+
|
119
|
+
def get_fixed_strategy(
|
120
|
+
abi_type: BasicType, registry: StrategyRegistry
|
121
|
+
) -> st.SearchStrategy:
|
122
|
+
bits, places = abi_type.sub
|
123
|
+
|
124
|
+
return st.decimals(
|
125
|
+
min_value=-(2 ** (bits - 1)),
|
126
|
+
max_value=2 ** (bits - 1) - 1,
|
127
|
+
places=0,
|
128
|
+
).map(scale_places(places))
|
129
|
+
|
130
|
+
|
131
|
+
def get_bytes_strategy(
|
132
|
+
abi_type: BasicType, registry: StrategyRegistry
|
133
|
+
) -> st.SearchStrategy:
|
134
|
+
num_bytes = abi_type.sub
|
135
|
+
|
136
|
+
return st.binary(
|
137
|
+
min_size=num_bytes,
|
138
|
+
max_size=num_bytes,
|
139
|
+
)
|
140
|
+
|
141
|
+
|
142
|
+
bytes_strategy: Final = st.binary(min_size=0, max_size=4096)
|
143
|
+
string_strategy: Final = st.text()
|
144
|
+
|
145
|
+
|
146
|
+
def get_array_strategy(
|
147
|
+
abi_type: ABIType, registry: StrategyRegistry
|
148
|
+
) -> st.SearchStrategy:
|
149
|
+
item_type = abi_type.item_type
|
150
|
+
item_type_str = item_type.to_type_str()
|
151
|
+
item_strategy = registry.get_strategy(item_type_str)
|
152
|
+
|
153
|
+
last_dim = abi_type.arrlist[-1] # type: ignore [index]
|
154
|
+
if len(last_dim) == 0:
|
155
|
+
# Is dynamic list. Don't restrict length.
|
156
|
+
return st.lists(item_strategy)
|
157
|
+
else:
|
158
|
+
# Is static list. Restrict length.
|
159
|
+
dim_size = last_dim[0]
|
160
|
+
return st.lists(item_strategy, min_size=dim_size, max_size=dim_size)
|
161
|
+
|
162
|
+
|
163
|
+
def get_tuple_strategy(
|
164
|
+
abi_type: TupleType, registry: StrategyRegistry
|
165
|
+
) -> st.SearchStrategy:
|
166
|
+
component_strategies = [
|
167
|
+
registry.get_strategy(comp_abi_type.to_type_str())
|
168
|
+
for comp_abi_type in abi_type.components
|
169
|
+
]
|
170
|
+
|
171
|
+
return st.tuples(*component_strategies)
|
172
|
+
|
173
|
+
|
174
|
+
strategy_registry: Final = StrategyRegistry()
|
175
|
+
|
176
|
+
strategy_registry.register_strategy(
|
177
|
+
BaseEquals("uint"),
|
178
|
+
get_uint_strategy,
|
179
|
+
label="uint",
|
180
|
+
)
|
181
|
+
strategy_registry.register_strategy(
|
182
|
+
BaseEquals("int"),
|
183
|
+
get_int_strategy,
|
184
|
+
label="int",
|
185
|
+
)
|
186
|
+
strategy_registry.register_strategy(
|
187
|
+
BaseEquals("address", with_sub=False),
|
188
|
+
address_strategy,
|
189
|
+
label="address",
|
190
|
+
)
|
191
|
+
strategy_registry.register_strategy(
|
192
|
+
BaseEquals("bool", with_sub=False),
|
193
|
+
bool_strategy,
|
194
|
+
label="bool",
|
195
|
+
)
|
196
|
+
strategy_registry.register_strategy(
|
197
|
+
BaseEquals("ufixed"),
|
198
|
+
get_ufixed_strategy,
|
199
|
+
label="ufixed",
|
200
|
+
)
|
201
|
+
strategy_registry.register_strategy(
|
202
|
+
BaseEquals("fixed"),
|
203
|
+
get_fixed_strategy,
|
204
|
+
label="fixed",
|
205
|
+
)
|
206
|
+
strategy_registry.register_strategy(
|
207
|
+
BaseEquals("bytes", with_sub=True),
|
208
|
+
get_bytes_strategy,
|
209
|
+
label="bytes<M>",
|
210
|
+
)
|
211
|
+
strategy_registry.register_strategy(
|
212
|
+
BaseEquals("bytes", with_sub=False),
|
213
|
+
bytes_strategy,
|
214
|
+
label="bytes",
|
215
|
+
)
|
216
|
+
strategy_registry.register_strategy(
|
217
|
+
BaseEquals("function", with_sub=False),
|
218
|
+
get_bytes_strategy,
|
219
|
+
label="function",
|
220
|
+
)
|
221
|
+
strategy_registry.register_strategy(
|
222
|
+
BaseEquals("string", with_sub=False),
|
223
|
+
string_strategy,
|
224
|
+
label="string",
|
225
|
+
)
|
226
|
+
strategy_registry.register_strategy(
|
227
|
+
has_arrlist,
|
228
|
+
get_array_strategy,
|
229
|
+
label="has_arrlist",
|
230
|
+
)
|
231
|
+
strategy_registry.register_strategy(
|
232
|
+
is_base_tuple,
|
233
|
+
get_tuple_strategy,
|
234
|
+
label="is_base_tuple",
|
235
|
+
)
|
236
|
+
|
237
|
+
get_abi_strategy: Final = strategy_registry.get_strategy
|
Binary file
|
File without changes
|
Binary file
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import decimal
|
2
|
+
from typing import (
|
3
|
+
Callable,
|
4
|
+
Final,
|
5
|
+
Tuple,
|
6
|
+
)
|
7
|
+
|
8
|
+
ABI_DECIMAL_PREC: Final = 999
|
9
|
+
|
10
|
+
abi_decimal_context: Final = decimal.Context(prec=ABI_DECIMAL_PREC)
|
11
|
+
|
12
|
+
ZERO: Final = decimal.Decimal(0)
|
13
|
+
TEN: Final = decimal.Decimal(10)
|
14
|
+
|
15
|
+
Decimal: Final = decimal.Decimal
|
16
|
+
|
17
|
+
|
18
|
+
def ceil32(x: int) -> int:
|
19
|
+
return x if x % 32 == 0 else x + 32 - (x % 32)
|
20
|
+
|
21
|
+
|
22
|
+
def compute_unsigned_integer_bounds(num_bits: int) -> Tuple[int, int]:
|
23
|
+
return (
|
24
|
+
0,
|
25
|
+
2**num_bits - 1,
|
26
|
+
)
|
27
|
+
|
28
|
+
|
29
|
+
def compute_signed_integer_bounds(num_bits: int) -> Tuple[int, int]:
|
30
|
+
return (
|
31
|
+
-1 * 2 ** (num_bits - 1),
|
32
|
+
2 ** (num_bits - 1) - 1,
|
33
|
+
)
|
34
|
+
|
35
|
+
|
36
|
+
def compute_unsigned_fixed_bounds(
|
37
|
+
num_bits: int,
|
38
|
+
frac_places: int,
|
39
|
+
) -> Tuple[decimal.Decimal, decimal.Decimal]:
|
40
|
+
int_upper = compute_unsigned_integer_bounds(num_bits)[1]
|
41
|
+
|
42
|
+
with decimal.localcontext(abi_decimal_context):
|
43
|
+
upper = Decimal(int_upper) * TEN**-frac_places
|
44
|
+
|
45
|
+
return ZERO, upper
|
46
|
+
|
47
|
+
|
48
|
+
def compute_signed_fixed_bounds(
|
49
|
+
num_bits: int,
|
50
|
+
frac_places: int,
|
51
|
+
) -> Tuple[decimal.Decimal, decimal.Decimal]:
|
52
|
+
int_lower, int_upper = compute_signed_integer_bounds(num_bits)
|
53
|
+
|
54
|
+
with decimal.localcontext(abi_decimal_context):
|
55
|
+
exp = TEN**-frac_places
|
56
|
+
lower = Decimal(int_lower) * exp
|
57
|
+
upper = Decimal(int_upper) * exp
|
58
|
+
|
59
|
+
return lower, upper
|
60
|
+
|
61
|
+
|
62
|
+
def scale_places(places: int) -> Callable[[decimal.Decimal], decimal.Decimal]:
|
63
|
+
"""
|
64
|
+
Returns a function that shifts the decimal point of decimal values to the
|
65
|
+
right by ``places`` places.
|
66
|
+
"""
|
67
|
+
if not isinstance(places, int):
|
68
|
+
raise ValueError(
|
69
|
+
f"Argument `places` must be int. Got value {places} "
|
70
|
+
f"of type {type(places)}.",
|
71
|
+
)
|
72
|
+
|
73
|
+
with decimal.localcontext(abi_decimal_context):
|
74
|
+
scaling_factor = TEN**-places
|
75
|
+
|
76
|
+
def f(x: decimal.Decimal) -> decimal.Decimal:
|
77
|
+
with decimal.localcontext(abi_decimal_context):
|
78
|
+
return x * scaling_factor
|
79
|
+
|
80
|
+
places_repr = f"Eneg{places}" if places > 0 else f"Epos{-places}"
|
81
|
+
func_name = f"scale_by_{places_repr}"
|
82
|
+
|
83
|
+
f.__name__ = func_name
|
84
|
+
f.__qualname__ = func_name
|
85
|
+
|
86
|
+
return f
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
def zpad(value: bytes, length: int) -> bytes:
|
2
|
+
return value.rjust(length, b"\x00")
|
3
|
+
|
4
|
+
|
5
|
+
def zpad32(value: bytes) -> bytes:
|
6
|
+
return zpad(value, length=32)
|
7
|
+
|
8
|
+
|
9
|
+
def zpad_right(value: bytes, length: int) -> bytes:
|
10
|
+
return value.ljust(length, b"\x00")
|
11
|
+
|
12
|
+
|
13
|
+
def zpad32_right(value: bytes) -> bytes:
|
14
|
+
return zpad_right(value, length=32)
|
15
|
+
|
16
|
+
|
17
|
+
def fpad(value: bytes, length: int) -> bytes:
|
18
|
+
return value.rjust(length, b"\xff")
|
19
|
+
|
20
|
+
|
21
|
+
def fpad32(value: bytes) -> bytes:
|
22
|
+
return fpad(value, length=32)
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
from typing import (
|
2
|
+
Any,
|
3
|
+
)
|
4
|
+
|
5
|
+
|
6
|
+
def abbr(value: Any, limit: int = 79) -> str:
|
7
|
+
"""
|
8
|
+
Converts a value into its string representation and abbreviates that
|
9
|
+
representation based on the given length `limit` if necessary.
|
10
|
+
"""
|
11
|
+
rep = repr(value)
|
12
|
+
|
13
|
+
if len(rep) > limit:
|
14
|
+
if limit < 3:
|
15
|
+
raise ValueError("Abbreviation limit may not be less than 3")
|
16
|
+
|
17
|
+
rep = rep[: limit - 3] + "..."
|
18
|
+
|
19
|
+
return rep
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
from typing import (
|
2
|
+
Any,
|
3
|
+
)
|
4
|
+
|
5
|
+
from faster_eth_utils import (
|
6
|
+
is_bytes,
|
7
|
+
)
|
8
|
+
|
9
|
+
|
10
|
+
def validate_bytes_param(param: Any, param_name: str) -> None:
|
11
|
+
if not is_bytes(param):
|
12
|
+
raise TypeError(
|
13
|
+
f"The `{param_name}` value must be of bytes type. Got {type(param)}"
|
14
|
+
)
|
15
|
+
|
16
|
+
|
17
|
+
def validate_list_like_param(param: Any, param_name: str) -> None:
|
18
|
+
if not isinstance(param, (list, tuple)):
|
19
|
+
raise TypeError(
|
20
|
+
f"The `{param_name}` value type must be one of list or tuple. "
|
21
|
+
f"Got {type(param)}"
|
22
|
+
)
|
@@ -0,0 +1,95 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: faster_eth_abi
|
3
|
+
Version: 5.2.3
|
4
|
+
Summary: A fork of eth_abi: Python utilities for working with Ethereum ABI definitions, especially encoding and decoding, implemented in C.
|
5
|
+
Home-page: https://github.com/BobTheBuidler/faster-eth-abi
|
6
|
+
Author: The Ethereum Foundation
|
7
|
+
Author-email: snakecharmers@ethereum.org
|
8
|
+
License: MIT
|
9
|
+
Keywords: ethereum
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
11
|
+
Classifier: Intended Audience :: Developers
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
13
|
+
Classifier: Natural Language :: English
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
22
|
+
Requires-Python: >=3.8, <3.15
|
23
|
+
Description-Content-Type: text/markdown
|
24
|
+
License-File: LICENSE
|
25
|
+
Requires-Dist: cchecksum<0.4,>=0.2.6
|
26
|
+
Requires-Dist: faster-eth-utils>=2.0.0
|
27
|
+
Requires-Dist: eth-typing>=3.0.0
|
28
|
+
Requires-Dist: mypy_extensions
|
29
|
+
Requires-Dist: parsimonious<0.11.0,>=0.10.0
|
30
|
+
Provides-Extra: dev
|
31
|
+
Requires-Dist: build>=0.9.0; extra == "dev"
|
32
|
+
Requires-Dist: bump_my_version>=0.19.0; extra == "dev"
|
33
|
+
Requires-Dist: ipython; extra == "dev"
|
34
|
+
Requires-Dist: mypy==1.10.0; extra == "dev"
|
35
|
+
Requires-Dist: pre-commit>=3.4.0; extra == "dev"
|
36
|
+
Requires-Dist: tox>=4.0.0; extra == "dev"
|
37
|
+
Requires-Dist: twine; extra == "dev"
|
38
|
+
Requires-Dist: wheel; extra == "dev"
|
39
|
+
Requires-Dist: sphinx>=6.0.0; extra == "dev"
|
40
|
+
Requires-Dist: sphinx-autobuild>=2021.3.14; extra == "dev"
|
41
|
+
Requires-Dist: sphinx_rtd_theme>=1.0.0; extra == "dev"
|
42
|
+
Requires-Dist: towncrier<25,>=24; extra == "dev"
|
43
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
44
|
+
Requires-Dist: pytest-timeout>=2.0.0; extra == "dev"
|
45
|
+
Requires-Dist: pytest-xdist>=2.4.0; extra == "dev"
|
46
|
+
Requires-Dist: pytest-pythonpath>=0.7.1; extra == "dev"
|
47
|
+
Requires-Dist: eth-hash[pycryptodome]; extra == "dev"
|
48
|
+
Requires-Dist: hypothesis<6.108.7,>=6.22.0; extra == "dev"
|
49
|
+
Provides-Extra: docs
|
50
|
+
Requires-Dist: sphinx>=6.0.0; extra == "docs"
|
51
|
+
Requires-Dist: sphinx-autobuild>=2021.3.14; extra == "docs"
|
52
|
+
Requires-Dist: sphinx_rtd_theme>=1.0.0; extra == "docs"
|
53
|
+
Requires-Dist: towncrier<25,>=24; extra == "docs"
|
54
|
+
Provides-Extra: test
|
55
|
+
Requires-Dist: pytest>=7.0.0; extra == "test"
|
56
|
+
Requires-Dist: pytest-timeout>=2.0.0; extra == "test"
|
57
|
+
Requires-Dist: pytest-xdist>=2.4.0; extra == "test"
|
58
|
+
Requires-Dist: pytest-pythonpath>=0.7.1; extra == "test"
|
59
|
+
Requires-Dist: eth-hash[pycryptodome]; extra == "test"
|
60
|
+
Requires-Dist: hypothesis<6.108.7,>=6.22.0; extra == "test"
|
61
|
+
Provides-Extra: tools
|
62
|
+
Requires-Dist: hypothesis<6.108.7,>=6.22.0; extra == "tools"
|
63
|
+
Dynamic: author
|
64
|
+
Dynamic: author-email
|
65
|
+
Dynamic: classifier
|
66
|
+
Dynamic: description
|
67
|
+
Dynamic: description-content-type
|
68
|
+
Dynamic: home-page
|
69
|
+
Dynamic: keywords
|
70
|
+
Dynamic: license
|
71
|
+
Dynamic: license-file
|
72
|
+
Dynamic: provides-extra
|
73
|
+
Dynamic: requires-dist
|
74
|
+
Dynamic: requires-python
|
75
|
+
Dynamic: summary
|
76
|
+
|
77
|
+
# Ethereum Contract Interface (ABI) Utility
|
78
|
+
|
79
|
+
[](https://discord.gg/GHryRvPB84)
|
80
|
+
[](https://circleci.com/gh/ethereum/faster-eth-abi)
|
81
|
+
[](https://badge.fury.io/py/faster-eth-abi)
|
82
|
+
[](https://pypi.python.org/pypi/faster-eth-abi)
|
83
|
+
[](https://faster-eth-abi.readthedocs.io/en/latest/?badge=latest)
|
84
|
+
|
85
|
+
Python utilities for working with Ethereum ABI definitions, especially encoding and decoding
|
86
|
+
|
87
|
+
Read the [documentation](https://faster-eth-abi.readthedocs.io/).
|
88
|
+
|
89
|
+
View the [change log](https://faster-eth-abi.readthedocs.io/en/latest/release_notes.html).
|
90
|
+
|
91
|
+
## Installation
|
92
|
+
|
93
|
+
```sh
|
94
|
+
python -m pip install faster-eth-abi
|
95
|
+
```
|
@@ -0,0 +1,38 @@
|
|
1
|
+
a1f8aa123fabc88e2b56__mypyc.cp314-win_amd64.pyd,sha256=i_T8rdBFOYPTLIczkZ26NX29pTigdsylWXJlW3_DkDQ,125952
|
2
|
+
faster_eth_abi/__init__.py,sha256=JpTfPTiusUGMmX8sEsGAxvILxFbvhh3MEyfiKOd5o9g,217
|
3
|
+
faster_eth_abi/abi.cp314-win_amd64.pyd,sha256=cVtNFFje8Fw0FkuQXRblB2ctPMnGjdoClqDVZQgdw-0,10752
|
4
|
+
faster_eth_abi/abi.py,sha256=-t9OVBSCxy6SuWpCu3cxHrCqkx8_svPIRb0MSFXEl5Q,383
|
5
|
+
faster_eth_abi/base.py,sha256=y4IXpQJWGfUISl3xjCO420Grxido3tE2ebPV2rK-DvM,1229
|
6
|
+
faster_eth_abi/codec.py,sha256=5wbB8yznz6v4-W6W_q-gfeHh247S5UmUubo6_r379fk,5341
|
7
|
+
faster_eth_abi/constants.cp314-win_amd64.pyd,sha256=a18ZlfMAlbxdbr7KSA1-p-V0pBtMkflICIlyLx3uQ58,10752
|
8
|
+
faster_eth_abi/constants.py,sha256=q3FGynS-Eb78cnrL6mBoAvTDz16PF3tW2OylTMd6ajs,114
|
9
|
+
faster_eth_abi/decoding.py,sha256=w98AsF5cq5DXE9OVflfkVLpMeCRbxzZuIj0hFPJcJNc,17910
|
10
|
+
faster_eth_abi/encoding.py,sha256=CLeUpoWZhwIOOGMAMY8NwYdBdDd1j6AXcKqVkoevuKk,20687
|
11
|
+
faster_eth_abi/exceptions.py,sha256=KzNYRc9t0CvlkveozWvLeo1WC_GarcBkwzV67aY_5yI,3067
|
12
|
+
faster_eth_abi/from_type_str.cp314-win_amd64.pyd,sha256=DveJQ7ew1ar7XH3ECsKePuvBnp7YX9r9WQdpqqq903k,10752
|
13
|
+
faster_eth_abi/from_type_str.py,sha256=WLRP3OIyrJORgloX-7V0x2KdrZj0kLay-J9I8f-H36s,4446
|
14
|
+
faster_eth_abi/grammar.py,sha256=mB68n7WuFvQB8lh5zPZEO36fOXGfj3gEnNP6yWFHvQo,13802
|
15
|
+
faster_eth_abi/io.py,sha256=E_QX7aYAjGYnkNAZmJMmSmx1lqvl_FDNmMFruTi9UX4,3831
|
16
|
+
faster_eth_abi/packed.cp314-win_amd64.pyd,sha256=oQRYdQltbyjNiv_pzjh_GHJg-LvfyhZ69Nn5Y8rv4AU,10752
|
17
|
+
faster_eth_abi/packed.py,sha256=RZ2chvsx9_AL9OxY1ixHTsaUJHaR_tmrNdViOIp-xSg,316
|
18
|
+
faster_eth_abi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
|
+
faster_eth_abi/registry.py,sha256=md0L1XgJ-Wb7mlpLm2Di-5S5Mr53jxHHgjUhI9vDK-0,20307
|
20
|
+
faster_eth_abi/tools/__init__.cp314-win_amd64.pyd,sha256=faTwlTMQ_c9YuAzAX8ti2sPMWo5uTRpiW1I_CYmfBb8,10752
|
21
|
+
faster_eth_abi/tools/__init__.py,sha256=jxyQnb34ldRjCTYi3Ajb5h5QlFQ6ODfKQNhOCVwR7Ao,54
|
22
|
+
faster_eth_abi/tools/_strategies.cp314-win_amd64.pyd,sha256=RRz8Hr7EPpdYFoUnyOan9PQD68rZXZQp1ZCqRO_W8zA,10752
|
23
|
+
faster_eth_abi/tools/_strategies.py,sha256=HCFdQFLa84SMf7Deui2-szTH34hxTfc0Rog_kmpTg_w,6197
|
24
|
+
faster_eth_abi/utils/__init__.cp314-win_amd64.pyd,sha256=BR6knDI3-z_BdcaACQTYAmIFzhFuiN7a4C2WMkOSGQE,10752
|
25
|
+
faster_eth_abi/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
+
faster_eth_abi/utils/numeric.cp314-win_amd64.pyd,sha256=5bCpogbDOa6tCUcFfVRV5p7Z66xSI1aWv69BZ9yf2J8,10752
|
27
|
+
faster_eth_abi/utils/numeric.py,sha256=hNGble1NA99_5hrAOnH0ZakCuHc6PFMC1p0olmpo_vM,2232
|
28
|
+
faster_eth_abi/utils/padding.cp314-win_amd64.pyd,sha256=0enED_ZWX2JpfUwi4H9x_AQ9gOV17n1K0-oDwyeRev8,10752
|
29
|
+
faster_eth_abi/utils/padding.py,sha256=k6dkOiQ3k0OhQUZ6blCiL1VOQVYGyynucafbySjcFfY,515
|
30
|
+
faster_eth_abi/utils/string.cp314-win_amd64.pyd,sha256=YG4nFbQgZv27oMF9TQln9Nlfb_rNZMpowF5DYuJD1gs,10752
|
31
|
+
faster_eth_abi/utils/string.py,sha256=wYcvWof4kuitrGGSe_NOduQaxE4HHYmpraCPXKcZxMs,455
|
32
|
+
faster_eth_abi/utils/validation.cp314-win_amd64.pyd,sha256=Wz-YIHsHRR1cV6mBQxrdVt5f4EBxNZVyEnZZrqyz2Hw,10752
|
33
|
+
faster_eth_abi/utils/validation.py,sha256=3JTxhDbhkfkNeKKQm2TjiCgmDN9vdlX8_pmWeZuWCBg,569
|
34
|
+
faster_eth_abi-5.2.3.dist-info/licenses/LICENSE,sha256=Q1lDDWXR057JL2Y7HTAwclCF32_LCloN4sGUkXO1YeI,1127
|
35
|
+
faster_eth_abi-5.2.3.dist-info/METADATA,sha256=BL-baV1yhRtVaj3_UGSO6ancd4WaHb4H9ayEV2esqC4,4227
|
36
|
+
faster_eth_abi-5.2.3.dist-info/WHEEL,sha256=7k6Wcy588iJYe5lf5K095NLg-uoBTnE-T8eHJ92G4_4,101
|
37
|
+
faster_eth_abi-5.2.3.dist-info/top_level.txt,sha256=NbjfpQ9lBrFaSYDeeRrYo2vn3ZGVqu_9MZ0LOqjzQho,51
|
38
|
+
faster_eth_abi-5.2.3.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016-2020, 2022-2025 The Ethereum Foundation
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|