Skip to content

Commit 0b0ece6

Browse files
committed
Bump version: 3.5.0-beta.1
1 parent 572c994 commit 0b0ece6

33 files changed

+439
-209
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
'Programming Language :: Python :: 3.6',
120120
'Programming Language :: Python :: 3.7',
121121
],
122-
packages=find_packages(exclude=['examples']),
122+
packages=["tronapi", "trx_account"],
123123
include_package_data=True,
124124
install_requires=install_requires,
125125
tests_require=EXTRAS_REQUIRE['tester'],

tronapi/base/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

tronapi/common/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from eth_abi import is_encodable
1515
from eth_utils import to_tuple
1616

17-
from tronapi.base.formatters import recursive_map
17+
from tronapi.common.formatters import recursive_map
1818
from tronapi.exceptions import FallbackNotFound
19-
from tronapi.base.toolz import (
19+
from tronapi.common.toolz import (
2020
curry,
2121
partial,
2222
pipe,
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
# Copyright (c) iEXBase. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
5-
6-
from tronapi.utils.hexadecimal import remove_0x_prefix, is_hex
7-
from tronapi.utils.types import is_string, is_integer
5+
from trx_utils import (
6+
is_string,
7+
remove_0x_prefix,
8+
is_hex,
9+
is_integer
10+
)
811

912

1013
def is_hex_encoded_block_hash(value):
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
to_hex,
1313
function_abi_to_4byte_selector
1414
)
15-
from tronapi.base.abi import (
15+
from trx_utils import is_text, encode_hex
16+
17+
from tronapi.common.abi import (
1618
filter_by_name,
1719
filter_by_encodability,
1820
filter_by_argument_count,
@@ -24,14 +26,16 @@
2426
merge_args_and_kwargs
2527
)
2628

27-
from tronapi.base.function_identifiers import FallbackFn
28-
from tronapi.base.normalizers import abi_address_to_hex, abi_bytes_to_bytes, abi_string_to_text
29-
from tronapi.base.toolz import (
29+
from tronapi.common.function_identifiers import FallbackFn
30+
from tronapi.common.normalizers import (
31+
abi_address_to_hex,
32+
abi_bytes_to_bytes,
33+
abi_string_to_text
34+
)
35+
from tronapi.common.toolz import (
3036
pipe,
3137
valmap,
3238
)
33-
from tronapi.utils.hexadecimal import encode_hex
34-
from tronapi.utils.types import is_text
3539
from eth_abi import (
3640
encode_abi as eth_abi_encode_abi,
3741
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# See License.txt in the project root for license information.
55
# --------------------------------------------------------------------
66

7-
from tronapi.base.formatters import apply_formatters_to_dict
8-
from tronapi.base.toolz import (
7+
from tronapi.common.formatters import apply_formatters_to_dict
8+
from tronapi.common.toolz import (
99
concat,
1010
curry,
1111
)
Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,41 @@
1010
big_endian_to_int,
1111
int_to_big_endian
1212
)
13-
14-
from tronapi.base.abi import size_of_type, sub_type_of_array_type, is_array_type, is_bool_type, is_uint_type, \
15-
is_int_type, is_address_type, is_bytes_type, is_string_type
16-
from tronapi.base.validation import validate_abi_type, validate_abi_value
17-
from tronapi.utils.hexadecimal import (
13+
from trx_utils import (
1814
remove_0x_prefix,
19-
decode_hex,
2015
encode_hex,
21-
add_0x_prefix
16+
add_0x_prefix,
17+
decode_hex,
18+
is_boolean,
19+
is_integer,
20+
is_list_like,
21+
is_bytes
2222
)
2323

24-
from tronapi.base.toolz import (
25-
curry
24+
from tronapi.common.abi import (
25+
size_of_type,
26+
sub_type_of_array_type,
27+
is_array_type,
28+
is_bool_type,
29+
is_uint_type,
30+
is_int_type,
31+
is_address_type,
32+
is_bytes_type,
33+
is_string_type
2634
)
2735

28-
from tronapi.utils.types import (
29-
is_boolean,
30-
is_integer,
31-
is_list_like,
32-
is_bytes)
3336

34-
from tronapi.base.datastructures import AttributeDict
35-
from tronapi.utils.validation import assert_one_val
37+
from tronapi.common.validation import (
38+
validate_abi_type,
39+
validate_abi_value
40+
)
41+
42+
from tronapi.common.toolz import (
43+
curry
44+
)
45+
46+
from tronapi.common.validation import assert_one_val
47+
from trx_account import AttributeDict
3648

3749

3850
def hex_encode_abi_type(abi_type, value, force_size=None):
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
from collections import Mapping, Iterable
88

99
from eth_utils import to_dict
10+
from trx_utils import (
11+
reject_recursive_repeats,
12+
is_string
13+
)
1014

11-
from tronapi.base.decorators import reject_recursive_repeats
12-
from tronapi.base.toolz import (
15+
from tronapi.common.toolz import (
1316
curry
1417
)
15-
from tronapi.utils.types import is_string
1618

1719

1820
@curry

0 commit comments

Comments
 (0)