Skip to content

Commit

Permalink
Merge remote-tracking branch 'cryptonotewallet/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertWerner committed Apr 30, 2015
2 parents cd97952 + 5a886fd commit b4afaa6
Show file tree
Hide file tree
Showing 63 changed files with 88 additions and 115 deletions.
33 changes: 33 additions & 0 deletions README.md
@@ -0,0 +1,33 @@
**1. Clone wallet sources**

```
git clone https://github.com/cryptonotefoundation/cryptonotewallet.git
```

**2. Modify `CryptoNoteWallet.cmake`**

```
set(CN_PROJECT_NAME "furiouscoin")
set(CN_CURRENCY_DISPLAY_NAME "FuriousCoin")
set(CN_CURRENCY_TICKER "XFC")
```

**3. Set symbolic link to coin sources at the same level as `src`. For example:**

```
ln -s ../cryptonote cryptonote
```

Alternative way is to create git submodule:

```
git submodule add https://github.com/cryptonotefoundation/cryptonote.git cryptonote
```

Replace URL with git remote repository of your coin.

**4. Build**

```
mkdir build && cd build && cmake .. && make
```
1 change: 0 additions & 1 deletion src/CommandLineParser.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QCoreApplication>

#include <common/util.h>
Expand Down
1 change: 0 additions & 1 deletion src/CommandLineParser.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QCommandLineParser>
Expand Down
1 change: 0 additions & 1 deletion src/CryptoNote.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "CryptoNote.h"
#include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_core/cryptonote_format_utils.h"
Expand Down
1 change: 0 additions & 1 deletion src/CryptoNote.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <functional>
Expand Down
5 changes: 4 additions & 1 deletion src/CurrencyAdapter.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "CurrencyAdapter.h"
#include "CryptoNoteWalletConfig.h"

Expand Down Expand Up @@ -39,6 +38,10 @@ QString CurrencyAdapter::getCurrencyTicker() const {
return WALLET_CURRENCY_TICKER;
}

quint64 CurrencyAdapter::getMinimumFee() const {
return m_currency.minimumFee();
}

QString CurrencyAdapter::formatAmount(quint64 _amount) const {
QString result = QString::number(_amount);
if (result.length() < getNumberOfDecimalPlaces() + 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/CurrencyAdapter.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QString>
Expand All @@ -20,6 +19,7 @@ class CurrencyAdapter {
QString getCurrencyDisplayName() const;
QString getCurrencyName() const;
QString getCurrencyTicker() const;
quint64 getMinimumFee() const;
quintptr getNumberOfDecimalPlaces() const;
QString formatAmount(quint64 _amount) const;
quint64 parseAmount(const QString& _amountString) const;
Expand Down
4 changes: 1 addition & 3 deletions src/NodeAdapter.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QCoreApplication>
#include <QDateTime>
#include <QDir>
Expand Down Expand Up @@ -111,8 +110,7 @@ CryptoNote::IWallet* NodeAdapter::createWallet() const {

bool NodeAdapter::init() {
Q_ASSERT(m_node == nullptr);
// TODO Insert the right URL for the local daemon
QUrl localNodeUrl = QUrl::fromUserInput("127.0.0.1:18999");
QUrl localNodeUrl = QUrl::fromUserInput(QString("127.0.0.1:%1").arg(cryptonote::RPC_DEFAULT_PORT));

m_node = createRpcNode(CurrencyAdapter::instance().getCurrency(), *this, localNodeUrl.host().toStdString(), localNodeUrl.port());

Expand Down
1 change: 0 additions & 1 deletion src/NodeAdapter.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QObject>
Expand Down
1 change: 0 additions & 1 deletion src/Settings.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QApplication>
#include <QFile>
#include <QJsonDocument>
Expand Down
1 change: 0 additions & 1 deletion src/Settings.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDir>
Expand Down
1 change: 0 additions & 1 deletion src/SignalHandler.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <csignal>

#include "SignalHandler.h"
Expand Down
1 change: 0 additions & 1 deletion src/SignalHandler.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QObject>
Expand Down
1 change: 0 additions & 1 deletion src/WalletAdapter.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QCoreApplication>
#include <QDateTime>
#include <QLocale>
Expand Down
1 change: 0 additions & 1 deletion src/WalletAdapter.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QMutex>
Expand Down
1 change: 0 additions & 1 deletion src/gui/AboutDialog.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "AboutDialog.h"
#include "CurrencyAdapter.h"
#include "Settings.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/AboutDialog.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/AddressBookDialog.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "AddressBookDialog.h"
#include "AddressBookModel.h"

Expand Down
1 change: 0 additions & 1 deletion src/gui/AddressBookDialog.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/AddressBookFrame.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QApplication>
#include <QClipboard>

Expand Down
1 change: 0 additions & 1 deletion src/gui/AddressBookFrame.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QFrame>
Expand Down
1 change: 0 additions & 1 deletion src/gui/AddressBookModel.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
Expand Down
1 change: 0 additions & 1 deletion src/gui/AddressBookModel.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QAbstractItemModel>
Expand Down
1 change: 0 additions & 1 deletion src/gui/AnimatedLabel.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "AnimatedLabel.h"

namespace WalletGui {
Expand Down
1 change: 0 additions & 1 deletion src/gui/AnimatedLabel.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QLabel>
Expand Down
1 change: 0 additions & 1 deletion src/gui/ChangePasswordDialog.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "ChangePasswordDialog.h"

#include "ui_changepassworddialog.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/ChangePasswordDialog.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/ExitWidget.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QMovie>

#include "CurrencyAdapter.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/ExitWidget.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QWidget>
Expand Down
1 change: 0 additions & 1 deletion src/gui/MainWindow.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QCloseEvent>
#include <QFileDialog>
#include <QInputDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/MainWindow.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QLabel>
Expand Down
1 change: 0 additions & 1 deletion src/gui/MainWindow.mm
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#import <objc/runtime.h>
#import <Cocoa/Cocoa.h>

Expand Down
1 change: 0 additions & 1 deletion src/gui/NewAddressDialog.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "NewAddressDialog.h"

#include "ui_newaddressdialog.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/NewAddressDialog.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/NewPasswordDialog.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "NewPasswordDialog.h"

#include "ui_newpassworddialog.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/NewPasswordDialog.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/OverviewFrame.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "CurrencyAdapter.h"
#include "OverviewFrame.h"
#include "TransactionFrame.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/OverviewFrame.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QFrame>
Expand Down
1 change: 0 additions & 1 deletion src/gui/PasswordDialog.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "PasswordDialog.h"

#include "ui_passworddialog.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/PasswordDialog.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QDialog>
Expand Down
1 change: 0 additions & 1 deletion src/gui/ReceiveFrame.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include <QClipboard>

#include "ReceiveFrame.h"
Expand Down
1 change: 0 additions & 1 deletion src/gui/ReceiveFrame.h
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#pragma once

#include <QFrame>
Expand Down
1 change: 0 additions & 1 deletion src/gui/RecentTransactionsModel.cpp
Expand Up @@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.


#include "RecentTransactionsModel.h"
#include "SortedTransactionsModel.h"

Expand Down

0 comments on commit b4afaa6

Please sign in to comment.