1
// Copyright © 2017-2020 Trust Wallet.
2
//
3
// This file is part of Trust. The full Trust copyright notice, including
4
// terms governing use, modification, and redistribution, is contained in the
5
// file LICENSE at the root of the source code distribution tree.
6

7
#pragma once
8

9
#include "Buffer.h"
10
#include "Keys.h"
11
#include "Coins.h"
12
#include "Address.h"
13
#include "CommandExecutor.h"
14

15
#include "Data.h"
16

17
#include <string>
18
#include <vector>
19
#include <cassert>
20
#include <iostream>
21

22
namespace TW::WalletConsole {
23

24
using namespace std;
25

26 1
class WalletConsole {
27
protected:
28
    istream& _inst;
29
    ostream& _outst;
30
    CommandExecutor _executor;
31

32
public:
33 1
    WalletConsole(istream& ins, ostream& outs) : _inst(ins), _outst(outs), _executor(outs) { init(); }
34
    void init();
35
    void loop();
36
    static bool isExit(const string& cmd);
37
};
38

39
} // namespace TW::WalletConsole

Read our documentation on viewing source code .

Loading