Showing 2 of 2 files from the diff.
Newly tracked file
autobahn/xbr/_util.py changed.
Newly tracked file
autobahn/xbr/__init__.py changed.

@@ -148,3 +148,15 @@
Loading
148 148
    if not isinstance(oid, str):
149 149
        oid = '{}'.format(oid)
150 150
    return hl('<{}>'.format(oid), color='magenta', bold=True)
151 +
152 +
153 +
def with_0x(address):
154 +
    if address and not address.startswith('0x'):
155 +
        return '0x{address}'.format(address=address)
156 +
    return address
157 +
158 +
159 +
def without_0x(address):
160 +
    if address and address.startswith('0x'):
161 +
        return address[2:]
162 +
    return address

@@ -37,7 +37,7 @@
Loading
37 37
    from autobahn.xbr._abi import XBR_DEBUG_TOKEN_ADDR, XBR_DEBUG_NETWORK_ADDR, XBR_DEBUG_MARKET_ADDR, XBR_DEBUG_CATALOG_ADDR, XBR_DEBUG_CHANNEL_ADDR  # noqa
38 38
    from autobahn.xbr._abi import XBR_DEBUG_TOKEN_ADDR_SRC, XBR_DEBUG_NETWORK_ADDR_SRC, XBR_DEBUG_MARKET_ADDR_SRC, XBR_DEBUG_CATALOG_ADDR_SRC, XBR_DEBUG_CHANNEL_ADDR_SRC  # noqa
39 39
    from autobahn.xbr._interfaces import IMarketMaker, IProvider, IConsumer, ISeller, IBuyer  # noqa
40 -
    from autobahn.xbr._util import make_w3, pack_uint256, unpack_uint256  # noqa
40 +
    from autobahn.xbr._util import make_w3, pack_uint256, unpack_uint256, with_0x, without_0x  # noqa
41 41
42 42
    from autobahn.xbr._eip712_member_register import sign_eip712_member_register, recover_eip712_member_register  # noqa
43 43
    from autobahn.xbr._eip712_member_login import sign_eip712_member_login, recover_eip712_member_login  # noqa
@@ -277,6 +277,8 @@
Loading
277 277
        'make_w3',
278 278
        'pack_uint256',
279 279
        'unpack_uint256',
280 +
        'with_0x',
281 +
        'without_0x',
280 282
        'generate_seedphrase',
281 283
        'check_seedphrase',
282 284
        'account_from_seedphrase',
Files Coverage
autobahn 57.88%
Project Totals (71 files) 57.88%
Untitled
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading