mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-26 00:15:18 -04:00
merged with cbeams formatting changes. use MVP pattern for create offer screen (2. update)
This commit is contained in:
parent
a9794a79d2
commit
25b2afc545
5 changed files with 273 additions and 72 deletions
|
@ -1,3 +1,20 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Bitsquare.
|
||||||
|
*
|
||||||
|
* Bitsquare is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or (at
|
||||||
|
* your option) any later version.
|
||||||
|
*
|
||||||
|
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
package io.bitsquare.gui.trade.createoffer;
|
package io.bitsquare.gui.trade.createoffer;
|
||||||
|
|
||||||
import io.bitsquare.gui.CachedViewController;
|
import io.bitsquare.gui.CachedViewController;
|
||||||
|
|
|
@ -1,8 +1,22 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Bitsquare.
|
||||||
|
*
|
||||||
|
* Bitsquare is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or (at
|
||||||
|
* your option) any later version.
|
||||||
|
*
|
||||||
|
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
package io.bitsquare.gui.trade.createoffer;
|
package io.bitsquare.gui.trade.createoffer;
|
||||||
|
|
||||||
import com.google.bitcoin.core.Coin;
|
|
||||||
import com.google.bitcoin.utils.Fiat;
|
|
||||||
import com.google.inject.Inject;
|
|
||||||
import io.bitsquare.bank.BankAccount;
|
import io.bitsquare.bank.BankAccount;
|
||||||
import io.bitsquare.btc.AddressEntry;
|
import io.bitsquare.btc.AddressEntry;
|
||||||
import io.bitsquare.btc.FeePolicy;
|
import io.bitsquare.btc.FeePolicy;
|
||||||
|
@ -12,11 +26,26 @@ import io.bitsquare.settings.Settings;
|
||||||
import io.bitsquare.trade.Direction;
|
import io.bitsquare.trade.Direction;
|
||||||
import io.bitsquare.trade.TradeManager;
|
import io.bitsquare.trade.TradeManager;
|
||||||
import io.bitsquare.user.User;
|
import io.bitsquare.user.User;
|
||||||
|
|
||||||
|
import com.google.bitcoin.core.Coin;
|
||||||
|
import com.google.bitcoin.utils.Fiat;
|
||||||
|
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import javafx.beans.property.*;
|
|
||||||
|
import javafx.beans.property.BooleanProperty;
|
||||||
|
import javafx.beans.property.LongProperty;
|
||||||
|
import javafx.beans.property.ObjectProperty;
|
||||||
|
import javafx.beans.property.SimpleBooleanProperty;
|
||||||
|
import javafx.beans.property.SimpleLongProperty;
|
||||||
|
import javafx.beans.property.SimpleObjectProperty;
|
||||||
|
import javafx.beans.property.SimpleStringProperty;
|
||||||
|
import javafx.beans.property.StringProperty;
|
||||||
import javafx.collections.FXCollections;
|
import javafx.collections.FXCollections;
|
||||||
import javafx.collections.ObservableList;
|
import javafx.collections.ObservableList;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,20 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Bitsquare.
|
||||||
|
*
|
||||||
|
* Bitsquare is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or (at
|
||||||
|
* your option) any later version.
|
||||||
|
*
|
||||||
|
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
package io.bitsquare.gui.trade.createoffer;
|
package io.bitsquare.gui.trade.createoffer;
|
||||||
|
|
||||||
import io.bitsquare.gui.util.BSFormatter;
|
import io.bitsquare.gui.util.BSFormatter;
|
||||||
|
|
|
@ -23,10 +23,13 @@ import io.bitsquare.trade.Direction;
|
||||||
import io.bitsquare.user.Arbitrator;
|
import io.bitsquare.user.Arbitrator;
|
||||||
|
|
||||||
import com.google.bitcoin.core.Coin;
|
import com.google.bitcoin.core.Coin;
|
||||||
|
import com.google.bitcoin.utils.CoinFormat;
|
||||||
|
import com.google.bitcoin.utils.Fiat;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
|
|
||||||
|
import java.util.Currency;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
@ -36,38 +39,92 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.*;
|
import static com.google.common.base.Preconditions.*;
|
||||||
|
|
||||||
//TODO cleanup...
|
//TODO a lot of old trash... need to cleanup...
|
||||||
public class BitSquareFormatter {
|
public class BSFormatter
|
||||||
private static final Logger log = LoggerFactory.getLogger(BitSquareFormatter.class);
|
{
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(BSFormatter.class);
|
||||||
|
|
||||||
|
// format is like: 1,00 or 1,0010 never more then 4 decimals
|
||||||
|
private static CoinFormat coinFormat = CoinFormat.BTC.repeatOptionalDecimals(2, 1);
|
||||||
|
|
||||||
|
// format is like: 1,00 never more then 2 decimals
|
||||||
|
private static CoinFormat fiatFormat = CoinFormat.FIAT.repeatOptionalDecimals(0, 0);
|
||||||
|
|
||||||
|
private static String currencyCode = Currency.getInstance(Locale.getDefault()).getCurrencyCode();
|
||||||
|
private static Locale locale = Locale.getDefault();
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Config
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
public static void useMilliBitFormat()
|
||||||
|
{
|
||||||
|
coinFormat = CoinFormat.MBTC.repeatOptionalDecimals(2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setFiatCurrencyCode(String currencyCode)
|
||||||
|
{
|
||||||
|
BSFormatter.currencyCode = currencyCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void setLocale(Locale locale)
|
||||||
|
{
|
||||||
|
BSFormatter.locale = locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// BTC
|
// BTC
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
public static String formatCoin(Coin coin) {
|
public static String formatBtc(Coin coin)
|
||||||
return coin != null ? coin.toPlainString() : "";
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return coinFormat.noCode().format(coin).toString();
|
||||||
|
} catch (Throwable t)
|
||||||
|
{
|
||||||
|
log.warn("Exception at formatBtc: " + t.toString());
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatCoinWithCode(Coin coin) {
|
public static String formatBtcWithCode(Coin coin)
|
||||||
return coin != null ? coin.toFriendlyString() : "";
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return coinFormat.postfixCode().format(coin).toString();
|
||||||
|
} catch (Throwable t)
|
||||||
|
{
|
||||||
|
log.warn("Exception at formatBtcWithCode: " + t.toString());
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Coin parseToCoin(String input)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
input = input.replace(",", ".");
|
||||||
|
Double.parseDouble(input); // test if valid double
|
||||||
|
return Coin.parseCoin(input);
|
||||||
|
} catch (Throwable t)
|
||||||
|
{
|
||||||
|
log.warn("Exception at parseToCoin: " + t.toString());
|
||||||
|
return Coin.ZERO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param input String input in decimal or integer format. Both decimal marks (",", ".") are supported.
|
* Transform a coin with the properties defined in the format (used to reduce decimal places)
|
||||||
* If input has an incorrect format it returns a zero value coin.
|
*
|
||||||
* @return
|
* @param coin The coin which should be transformed
|
||||||
|
* @return The transformed coin
|
||||||
*/
|
*/
|
||||||
public static Coin parseToCoin(String input) {
|
public static Coin applyFormatRules(Coin coin)
|
||||||
Coin result;
|
{
|
||||||
try {
|
return parseToCoin(formatBtc(coin));
|
||||||
input = input.replace(",", ".");
|
|
||||||
Double.parseDouble(input);
|
|
||||||
result = Coin.parseCoin(input);
|
|
||||||
} catch (Exception e) {
|
|
||||||
//log.warn("Exception at parseBtcToCoin: " + e.toString());
|
|
||||||
result = Coin.ZERO;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,16 +132,41 @@ public class BitSquareFormatter {
|
||||||
// FIAT
|
// FIAT
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
public static String formatPrice(double price) {
|
public static String formatFiat(Fiat fiat)
|
||||||
return formatDouble(price);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return fiatFormat.noCode().format(fiat).toString();
|
||||||
|
} catch (Throwable t)
|
||||||
|
{
|
||||||
|
log.warn("Exception at formatFiat: " + t.toString());
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatVolume(double volume) {
|
public static String formatFiatWithCode(Fiat fiat)
|
||||||
return formatDouble(volume);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return fiatFormat.postfixCode().format(fiat).toString();
|
||||||
|
} catch (Throwable t)
|
||||||
|
{
|
||||||
|
log.warn("Exception at formatFiatWithCode: " + t.toString());
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatVolumeWithMinVolume(double volume, double minVolume) {
|
public static Fiat parseToFiat(String input)
|
||||||
return formatDouble(volume) + " (" + formatDouble(minVolume) + ")";
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
input = input.replace(",", ".");
|
||||||
|
Double.parseDouble(input); // test if valid double
|
||||||
|
return Fiat.parseFiat(currencyCode, input);
|
||||||
|
} catch (Exception e)
|
||||||
|
{
|
||||||
|
return Fiat.valueOf(currencyCode, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -93,79 +175,79 @@ public class BitSquareFormatter {
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param input String to be converted to a double. Both decimal points "." and ",
|
* @param input String to be converted to a double. Both decimal points "." and "," are supported. Thousands separator is not supported.
|
||||||
* " are supported. Thousands separator is not supported.
|
|
||||||
* @return Returns a double value. Any invalid value returns Double.NEGATIVE_INFINITY.
|
* @return Returns a double value. Any invalid value returns Double.NEGATIVE_INFINITY.
|
||||||
*/
|
*/
|
||||||
public static double parseToDouble(String input) {
|
public static double parseToDouble(String input)
|
||||||
try {
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
checkNotNull(input);
|
checkNotNull(input);
|
||||||
checkArgument(input.length() > 0);
|
checkArgument(input.length() > 0);
|
||||||
input = input.replace(",", ".").trim();
|
input = input.replace(",", ".").trim();
|
||||||
return Double.parseDouble(input);
|
return Double.parseDouble(input);
|
||||||
} catch (Exception e) {
|
} catch (Exception e)
|
||||||
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatCollateralAsBtc(String amount, double collateral) {
|
public static String formatDirection(Direction direction, boolean allUpperCase)
|
||||||
Coin amountAsCoin = BitSquareFormatter.parseToCoin(amount);
|
{
|
||||||
Coin collateralAsCoin = amountAsCoin.divide((long) (1d / collateral));
|
|
||||||
return formatCoinWithCode(collateralAsCoin);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String formatTotalsAsBtc(String amount, double collateral, Coin fees) {
|
|
||||||
Coin amountAsCoin = BitSquareFormatter.parseToCoin(amount);
|
|
||||||
Coin collateralAsCoin = amountAsCoin.divide((long) (1d / collateral));
|
|
||||||
Coin totals = collateralAsCoin.add(fees);
|
|
||||||
return formatCoinWithCode(totals);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String formatDirection(Direction direction, boolean allUpperCase) {
|
|
||||||
String result = (direction == Direction.BUY) ? "Buy" : "Sell";
|
String result = (direction == Direction.BUY) ? "Buy" : "Sell";
|
||||||
if (allUpperCase) {
|
if (allUpperCase)
|
||||||
|
{
|
||||||
result = result.toUpperCase();
|
result = result.toUpperCase();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatDouble(double value) {
|
public static String formatDouble(double value)
|
||||||
|
{
|
||||||
return formatDouble(value, 4);
|
return formatDouble(value, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatDouble(double value, int fractionDigits) {
|
public static String formatDouble(double value, int fractionDigits)
|
||||||
|
{
|
||||||
DecimalFormat decimalFormat = getDecimalFormat(fractionDigits);
|
DecimalFormat decimalFormat = getDecimalFormat(fractionDigits);
|
||||||
return decimalFormat.format(value);
|
return decimalFormat.format(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DecimalFormat getDecimalFormat(int fractionDigits) {
|
public static DecimalFormat getDecimalFormat(int fractionDigits)
|
||||||
DecimalFormat decimalFormat = (DecimalFormat) DecimalFormat.getInstance(Locale.getDefault());
|
{
|
||||||
|
DecimalFormat decimalFormat = (DecimalFormat) DecimalFormat.getInstance(locale);
|
||||||
decimalFormat.setMinimumFractionDigits(fractionDigits);
|
decimalFormat.setMinimumFractionDigits(fractionDigits);
|
||||||
decimalFormat.setMaximumFractionDigits(fractionDigits);
|
decimalFormat.setMaximumFractionDigits(fractionDigits);
|
||||||
decimalFormat.setGroupingUsed(false);
|
decimalFormat.setGroupingUsed(false);
|
||||||
return decimalFormat;
|
return decimalFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String countryLocalesToString(List<Country> countries) {
|
public static String countryLocalesToString(List<Country> countries)
|
||||||
|
{
|
||||||
String result = "";
|
String result = "";
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Country country : countries) {
|
for (Country country : countries)
|
||||||
|
{
|
||||||
result += country.getName();
|
result += country.getName();
|
||||||
i++;
|
i++;
|
||||||
if (i < countries.size()) {
|
if (i < countries.size())
|
||||||
|
{
|
||||||
result += ", ";
|
result += ", ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String languageLocalesToString(List<Locale> languageLocales) {
|
public static String languageLocalesToString(List<Locale> languageLocales)
|
||||||
|
{
|
||||||
String result = "";
|
String result = "";
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Locale locale : languageLocales) {
|
for (Locale locale : languageLocales)
|
||||||
|
{
|
||||||
result += locale.getDisplayLanguage();
|
result += locale.getDisplayLanguage();
|
||||||
i++;
|
i++;
|
||||||
if (i < languageLocales.size()) {
|
if (i < languageLocales.size())
|
||||||
|
{
|
||||||
result += ", ";
|
result += ", ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,13 +255,16 @@ public class BitSquareFormatter {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static String arbitrationMethodsToString(List<Arbitrator.METHOD> items) {
|
public static String arbitrationMethodsToString(List<Arbitrator.METHOD> items)
|
||||||
|
{
|
||||||
String result = "";
|
String result = "";
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Arbitrator.METHOD item : items) {
|
for (Arbitrator.METHOD item : items)
|
||||||
|
{
|
||||||
result += Localisation.get(item.toString());
|
result += Localisation.get(item.toString());
|
||||||
i++;
|
i++;
|
||||||
if (i < items.size()) {
|
if (i < items.size())
|
||||||
|
{
|
||||||
result += ", ";
|
result += ", ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -187,26 +272,62 @@ public class BitSquareFormatter {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static String arbitrationIDVerificationsToString(List<Arbitrator.ID_VERIFICATION> items) {
|
public static String arbitrationIDVerificationsToString(List<Arbitrator.ID_VERIFICATION> items)
|
||||||
|
{
|
||||||
String result = "";
|
String result = "";
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Arbitrator.ID_VERIFICATION item : items) {
|
for (Arbitrator.ID_VERIFICATION item : items)
|
||||||
|
{
|
||||||
result += Localisation.get(item.toString());
|
result += Localisation.get(item.toString());
|
||||||
i++;
|
i++;
|
||||||
if (i < items.size()) {
|
if (i < items.size())
|
||||||
|
{
|
||||||
result += ", ";
|
result += ", ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatDateTime(Date date) {
|
public static String formatDateTime(Date date)
|
||||||
DateFormat dateFormatter = DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.getDefault());
|
{
|
||||||
DateFormat timeFormatter = DateFormat.getTimeInstance(DateFormat.DEFAULT, Locale.getDefault());
|
DateFormat dateFormatter = DateFormat.getDateInstance(DateFormat.DEFAULT, locale);
|
||||||
|
DateFormat timeFormatter = DateFormat.getTimeInstance(DateFormat.DEFAULT, locale);
|
||||||
return dateFormatter.format(date) + " " + timeFormatter.format(date);
|
return dateFormatter.format(date) + " " + timeFormatter.format(date);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String formatCollateralPercent(double collateral) {
|
public static String formatCollateralPercent(long collateral)
|
||||||
return getDecimalFormat(2).format(collateral * 100) + " %";
|
{
|
||||||
|
return getDecimalFormat(1).format(collateral / 10) + " %";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static String formatPrice(double volume)
|
||||||
|
{
|
||||||
|
return formatDouble(volume);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static String formatVolume(double volume)
|
||||||
|
{
|
||||||
|
return formatDouble(volume);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static String formatVolumeWithMinVolume(double volume, double minVolume)
|
||||||
|
{
|
||||||
|
return formatDouble(volume) + " (" + formatDouble(minVolume) + ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static String formatCoin(Coin coin)
|
||||||
|
{
|
||||||
|
return coin != null ? coin.toPlainString() : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static String formatCoinWithCode(Coin coin)
|
||||||
|
{
|
||||||
|
return coin != null ? coin.toFriendlyString() : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,20 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Bitsquare.
|
||||||
|
*
|
||||||
|
* Bitsquare is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or (at
|
||||||
|
* your option) any later version.
|
||||||
|
*
|
||||||
|
* Bitsquare is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
||||||
|
* License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with Bitsquare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
package io.bitsquare.gui.trade.createoffer;
|
package io.bitsquare.gui.trade.createoffer;
|
||||||
|
|
||||||
import io.bitsquare.bank.BankAccountType;
|
import io.bitsquare.bank.BankAccountType;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue