Ejemplo n.º 1
0
def rowan_source_integrationtest_env_credentials(sifnodecli_homedir):
    """
    Creates a SifchaincliCredentials with all the fields filled in
    to transfer rowan from an account that already has rowan.
    """
    return test_utilities.SifchaincliCredentials(
        keyring_backend="file",
        keyring_passphrase=test_utilities.get_required_env_var("OWNER_PASSWORD"),
        from_key=test_utilities.get_required_env_var("MONIKER"),
        sifnodecli_homedir=sifnodecli_homedir
    )
Ejemplo n.º 2
0
def rowan_source_integrationtest_env_credentials(sifnodecli_homedir,
                                                 validator_password,
                                                 rowan_source_key, is_ganache,
                                                 rowan_source):
    """
    Creates a SifchaincliCredentials with all the fields filled in
    to transfer rowan from an account that already has rowan.
    """
    return test_utilities.SifchaincliCredentials(
        keyring_backend="file" if is_ganache else "test",
        keyring_passphrase=validator_password,
        from_key=rowan_source,
        sifnodecli_homedir=sifnodecli_homedir)
Ejemplo n.º 3
0
def sifchain_admin_account_credentials(sifchain_admin_account):
    return test_utilities.SifchaincliCredentials(
        from_key=sifchain_admin_account
    )
Ejemplo n.º 4
0
def sifchain_admin_account_credentials():
    return test_utilities.SifchaincliCredentials(from_key="sifnodeadmin")