support getXmrPrimaryAddress(), getXmrNewSubaddress()

This commit is contained in:
woodser 2022-05-15 13:46:01 -04:00
parent fa15612586
commit ffccf83ac5
4 changed files with 47 additions and 14 deletions

View file

@ -268,13 +268,17 @@ public class CoreApi {
public BalancesInfo getBalances(String currencyCode) {
return walletsService.getBalances(currencyCode);
}
public String getXmrSeed() {
return walletsService.getXmrSeed();
}
public String getNewDepositAddress() {
return walletsService.getNewDepositAddress();
public String getXmrPrimaryAddress() {
return walletsService.getXmrPrimaryAddress();
}
public String getXmrNewSubaddress() {
return walletsService.getXmrNewSubaddress();
}
public List<MoneroTxWallet> getXmrTxs() {

View file

@ -160,12 +160,16 @@ class CoreWalletsService {
return new BalancesInfo(getBtcBalances(), getXmrBalances());
}
}
String getXmrSeed() {
return xmrWalletService.getWallet().getMnemonic();
}
String getNewDepositAddress() {
String getXmrPrimaryAddress() {
return xmrWalletService.getWallet().getPrimaryAddress();
}
String getXmrNewSubaddress() {
accountService.checkAccountOpen();
return xmrWalletService.getWallet().createSubaddress(0).getAddress();
}