示例#1
0
def tester_token(token_amount, private_keys, tester_state, tester_token_address, tester_events):
    token = create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )

    privatekey0 = private_keys[0]
    for transfer_to in private_keys[1:]:
        token.transfer(  # pylint: disable=no-member
            privatekey_to_address(transfer_to),
            token_amount // len(private_keys),
            sender=privatekey0,
        )

    return token
示例#2
0
def tester_token(asset_amount, private_keys, tester_state, tester_token_address, tester_events):
    token = create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )

    privatekey0 = private_keys[0]
    for transfer_to in private_keys[1:]:
        token.transfer(
            privatekey_to_address(transfer_to),
            asset_amount // len(private_keys),
            sender=privatekey0,
        )

    return token
示例#3
0
文件: tester.py 项目: tomaaron/raiden
def tester_token(asset_amount, private_keys, tester_state, tester_token_address, tester_events):
    token = create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )

    privatekey0 = private_keys[0]
    for transfer_to in private_keys[1:]:
        token.transfer(
            privatekey_to_address(transfer_to),
            asset_amount // len(private_keys),
            sender=privatekey0,
        )

    return token
示例#4
0
def tester_token_raw(tester_state, tester_token_address, tester_events):
    return create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )
示例#5
0
def tester_token_raw(tester_state, tester_token_address, tester_events):
    return create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )