diff --git a/public/include/pages/admin/wallet.inc.php b/public/include/pages/admin/wallet.inc.php index 909d05ef..daf8d050 100644 --- a/public/include/pages/admin/wallet.inc.php +++ b/public/include/pages/admin/wallet.inc.php @@ -11,6 +11,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { $debug->append('No cached version available, fetching from backend', 3); if ($bitcoin->can_connect() === true){ $dBalance = $bitcoin->getbalance(); + $dAddresses = $bitcoin->getaddressesbyaccount(''); $aGetInfo = $bitcoin->getinfo(); if (is_array($aGetInfo) && array_key_exists('newmint', $aGetInfo)) { $dNewmint = $aGetInfo['newmint']; @@ -37,6 +38,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { if (! $dColdCoins = $setting->getValue('wallet_cold_coins')) $dColdCoins = 0; $smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance); $smarty->assign("BALANCE", $dBalance); + $smarty->assign("ADDRESSES", $dAddresses); $smarty->assign("COLDCOINS", $dColdCoins); $smarty->assign("LOCKED", $dLockedBalance); $smarty->assign("NEWMINT", $dNewmint); diff --git a/public/templates/mpos/admin/wallet/default.tpl b/public/templates/mpos/admin/wallet/default.tpl index d3485a60..f5a4d94c 100644 --- a/public/templates/mpos/admin/wallet/default.tpl +++ b/public/templates/mpos/admin/wallet/default.tpl @@ -46,4 +46,31 @@ + + +
+ +





+
+ +
+

Addresses assigned to Default Wallet

+ + + + + + +{assign var=rank value=1} +{section address $ADDRESSES} + + + + +{/section} + +
#Address
{$rank++}{$ADDRESSES[address]}
+
\ No newline at end of file diff --git a/public/templates/mpos/admin/wallet/default.tpl-d66ba982-20e0-419c-910c-1d20a0ff2f3a b/public/templates/mpos/admin/wallet/default.tpl-d66ba982-20e0-419c-910c-1d20a0ff2f3a new file mode 100644 index 00000000..7b8b12d7 --- /dev/null +++ b/public/templates/mpos/admin/wallet/default.tpl-d66ba982-20e0-419c-910c-1d20a0ff2f3a @@ -0,0 +1,68 @@ +
+

Balance Summary

+ + + + + + + + + + + + + + + + + +{if $NEWMINT >= 0} + + + + +{/if} +
Wallet Balance{$BALANCE|number_format:"8"}
Locked for users{$LOCKED|number_format:"8"}
Unconfirmed{$UNCONFIRMED|number_format:"8"}
Liquid Assets{($BALANCE - $LOCKED)|number_format:"8"}
PoS New Mint{$NEWMINT|number_format:"8"}
+
+ +
+

Wallet Information

+ + + + + + + + + + + + + + + + + +
VersionProtocol VersionWallet VersionConnectionsErrors
{$COININFO.version|default:""}{$COININFO.protocolversion|default:""}{$COININFO.walletversion|default:""}{$COININFO.connections|default:""}{$COININFO.errors|default:"OK"}
+
+ +
+

Wallet Address Information

+ + + + + + +{assign var=rank value=1} +{section address $ADDRESSES + + + + +{/section} + +
#Address
#{$ADDRESSES[address]}
+
\ No newline at end of file