Exemple #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
Exemple #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
Exemple #3
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
Exemple #4
0
def tester_token_raw(tester_state, tester_token_address, tester_events):
    return create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )
Exemple #5
0
def tester_token_raw(tester_state, tester_token_address, tester_events):
    return create_tokenproxy(
        tester_state,
        tester_token_address,
        tester_events.append,
    )