Beispiel #1
0
def run_action_account_create():
    passphrase = single_question_prompt({
        "type": "password",
        "message": Messages.input_passphrase
    })

    Account.create(passphrase)
    return main_prompt()
    def setUp(self):
        assert INFURA_PROJECT_ID

        Account.DEFAULT_KEYSTORE_FOLDER = Path(tempfile.gettempdir())
        self.account = Account.create("test_raiden_integration")
        self.network = Network.get_by_name(self.__class__.NETWORK_NAME)
        self.infura = Infura.make(self.network, INFURA_PROJECT_ID)
        self.w3 = make_web3_provider(self.infura.url, self.account)
    def setUp(self):
        assert INFURA_PROJECT_ID

        self.account = Account.create(TESTING_KEYSTORE_FOLDER,
                                      "test_raiden_integration")
        self.network = Network.get_by_name(self.__class__.NETWORK_NAME)
        self.infura = Infura.make(self.network, INFURA_PROJECT_ID)
        self.w3 = make_web3_provider(self.infura.url, self.account)
Beispiel #4
0
    def _run_create_wallet(self, **kw):
        form = PasswordForm(passphrase1=kw.get("passphrase1"),
                            passphrase2=kw.get("passphrase2"))
        if form.validate():
            self._send_status_update("Generating new wallet file for Raiden")
            passphrase = form.data["passphrase1"].strip()
            set_passphrase(passphrase)
            account = Account.create(find_keystore_folder_path(), passphrase)

            self._send_redirect(
                self.reverse_url("setup", account.keystore_file_path))
Beispiel #5
0
    def setUp(self):
        RaidenConfigurationFile.FOLDER_PATH = TESTING_TEMP_FOLDER.joinpath(
            "config")

        self.account = Account.create(TESTING_KEYSTORE_FOLDER,
                                      passphrase="test_raiden_config")
        self.network = Network.get_by_name("goerli")
        self.settings = load_settings("demo_env")

        self.configuration_file = RaidenConfigurationFile(
            self.account.keystore_file_path,
            self.settings,
            "http://localhost:8545",
        )
Beispiel #6
0
    def setUp(self):
        temp_folder_path = Path(tempfile.gettempdir())
        RaidenConfigurationFile.FOLDER_PATH = temp_folder_path

        self.account = Account.create(passphrase="test_raiden_config")
        self.network = Network.get_by_name("goerli")
        self.ethereum_client_rpc_endpoint = "http://localhost:8545"

        self.configuration_file = RaidenConfigurationFile(
            account=self.account,
            network=self.network,
            ethereum_client_rpc_endpoint=self.ethereum_client_rpc_endpoint,
        )

        passphrase_file = PassphraseFile(self.configuration_file.passphrase_file_path)
        passphrase_file.store(self.account.passphrase)
Beispiel #7
0
    def setUp(self):
        Account.DEFAULT_KEYSTORE_FOLDER = Path(tempfile.gettempdir())

        self.account = Account.create(passphrase="test_password")
 def setUp(self):
     self.passphrase = "test_password"
     self.account = Account.create(TESTING_KEYSTORE_FOLDER, self.passphrase)
 def setUp(self):
     self.account = Account.create(TESTING_KEYSTORE_FOLDER)
Beispiel #10
0
 def _create_account():
     account = Account.create(TESTING_KEYSTORE_FOLDER, test_password)
     accounts.append(account)
     return account