forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoinparams.h
33 lines (24 loc) · 880 Bytes
/
coinparams.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// coinparams.h
//
// Copyright (c) 2013-2014 Eric Lombrozo
//
// All Rights Reserved.
#pragma once
#include <CoinQ/CoinQ_coinparams.h>
#include <QStringList>
CoinQ::NetworkSelector& getNetworkSelector();
const CoinQ::CoinParams& getCoinParams(const std::string& network_name = "");
QStringList getValidCurrencyPrefixes();
void setCurrencyUnitPrefix(const QString& unitPrefix);
void setTrailingDecimals(bool show = true);
enum TrailingDecimalsFlag { USER_TRAILING_DECIMALS, SHOW_TRAILING_DECIMALS, HIDE_TRAILING_DECIMALS };
QString getFormattedCurrencyAmount(int64_t value, TrailingDecimalsFlag flag = USER_TRAILING_DECIMALS);
uint64_t getCurrencyDivisor();
const QString& getCurrencySymbol();
int getCurrencyDecimals();
uint64_t getCurrencyMax();
uint64_t getDefaultFee();