Search in sources :

Example 1 with CryptoCurrencyAccount

use of io.bitsquare.payment.CryptoCurrencyAccount in project bitsquare by bitsquare.

the class MainViewModel method setupDevDummyPaymentAccounts.

private void setupDevDummyPaymentAccounts() {
    OKPayAccount okPayAccount = new OKPayAccount();
    okPayAccount.setAccountNr("dummy_" + new Random().nextInt(100));
    okPayAccount.setAccountName("OKPay dummy");
    okPayAccount.setSelectedTradeCurrency(CurrencyUtil.getDefaultTradeCurrency());
    user.addPaymentAccount(okPayAccount);
    CryptoCurrencyAccount cryptoCurrencyAccount = new CryptoCurrencyAccount();
    cryptoCurrencyAccount.setAccountName("ETH dummy");
    cryptoCurrencyAccount.setAddress("0x" + new Random().nextInt(1000000));
    cryptoCurrencyAccount.setSingleTradeCurrency(CurrencyUtil.getCryptoCurrency("ETH").get());
    user.addPaymentAccount(cryptoCurrencyAccount);
}
Also used : CryptoCurrencyAccount(io.bitsquare.payment.CryptoCurrencyAccount) OKPayAccount(io.bitsquare.payment.OKPayAccount)

Aggregations

CryptoCurrencyAccount (io.bitsquare.payment.CryptoCurrencyAccount)1 OKPayAccount (io.bitsquare.payment.OKPayAccount)1