Skip to content

Commit

Permalink
Added Monero support
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed May 25, 2016
1 parent a677187 commit bb0f9dd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/io/bitsquare/locale/CurrencyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static List<CryptoCurrency> createAllSortedCryptoCurrenciesList() {
result.add(new CryptoCurrency("DAO", "DAO"));
result.add(new CryptoCurrency("LTC", "Litecoin"));
result.add(new CryptoCurrency("NMC", "Namecoin"));
result.add(new CryptoCurrency("XMR", "Monero"));
result.add(new CryptoCurrency("DASH", "Dash"));
result.add(new CryptoCurrency("SDC", "ShadowCash"));
result.add(new CryptoCurrency("NBT", "NuBits"));
Expand Down Expand Up @@ -122,9 +123,6 @@ public static List<CryptoCurrency> createAllSortedCryptoCurrenciesList() {
result.add(new CryptoCurrency("SHIFT", "Shift"));
result.add(new CryptoCurrency("ERC", "Europecoin"));
result.add(new CryptoCurrency("POST", "PostCoin"));

// result.add(new CryptoCurrency("XMR", "Monero"));
// result.add(new CryptoCurrency("BCN", "Bytecoin"));
return result;
}

Expand All @@ -133,6 +131,7 @@ public static List<CryptoCurrency> getMainCryptoCurrencies() {
result.add(new CryptoCurrency("ETH", "Ether"));
result.add(new CryptoCurrency("DAO", "DAO"));
result.add(new CryptoCurrency("LTC", "Litecoin"));
result.add(new CryptoCurrency("XMR", "Monero"));
result.add(new CryptoCurrency("DASH", "Dash"));
result.add(new CryptoCurrency("SDC", "ShadowCash"));
result.add(new CryptoCurrency("NMC", "Namecoin"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,28 @@ private void onSaveNewAccount(PaymentAccount paymentAccount) {
.show();
}

if (code.equals("XMR")) {
new Popup().information("If you want to trade XMR on Bitsquare please be sure you understand and fulfill " +
"the following requirements:\n\n" +
"For sending XMR you need to use the Monero simple wallet with the " +
"store-tx-info flag enabled (default in new versions).\n" +
"Please be sure that you can access the tx key (use the get_tx_key command in simplewallet) as that " +
"would be required in case of a dispute to enable the arbitrator to verify the XMR transfer with " +
"the XMR checktx tool (http://xmr.llcoins.net/checktx.html).\n" +
"At normal block explorers the transfer is not verifiable.\n\n" +
"You need to provide the arbitrator the following data in case of a dispute:\n" +
"- The tx private key\n" +
"- The transaction hash\n" +
"- The recipient's public address\n\n" +
"If you cannot provide the above data or if you used an incompatible wallet it would result in losing the " +
"dispute case. The XMR sender is responsible to be able to verify the XMR transfer to the " +
"arbitrator in case of a dispute.\n\n" +
"There is no payment ID required, just the normal public address.\n\n" +
"If you are not sure about that process visit the Monero forum to find more information.")
.closeButtonText("I understand")
.show();
}

if (!model.getPaymentAccounts().stream().filter(e -> {
if (e.getAccountName() != null)
return e.getAccountName().equals(paymentAccount.getAccountName());
Expand Down

0 comments on commit bb0f9dd

Please sign in to comment.