浏览器:转账记录加天数;矿机收益从 RatDigg 矿池地址转出
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
93e26fc4f5
commit
c3bc42b57a
10 files changed
+30
-14
No files matched your search
@@ -1404,16 +1404,16 @@ namespace Decentralized
|
||||
}
|
||||
|
||||
private static string _explorerQuery = "";
|
||||
private static readonly float[] ExplWBase = new[] { 80f, 300f, 160f };
|
||||
private static readonly float[] ExplWBase = new[] { 76f, 62f, 290f, 150f };
|
||||
private static float[] ExplW => Sc(ExplWBase);
|
||||
private static readonly TextAnchor[] ExplAligns = { TextAnchor.MiddleLeft, TextAnchor.MiddleLeft, TextAnchor.MiddleRight };
|
||||
private static readonly TextAnchor[] ExplAligns = { TextAnchor.MiddleLeft, TextAnchor.MiddleLeft, TextAnchor.MiddleLeft, TextAnchor.MiddleRight };
|
||||
|
||||
/// <summary>地址的显示名:自己的钱包、Poinbase、混币器、全网矿池、黑市卖家,其余是缩写。</summary>
|
||||
private static string AddressLabel(string a)
|
||||
{
|
||||
var d = Session.Data;
|
||||
if (string.IsNullOrEmpty(a)) return "—";
|
||||
if (a == "network") return L.T("explorer.net");
|
||||
if (a == "network" || ChainAddress.Same(a, d.Address("pool"))) return ChainAddress.Short(d.Address("pool")) + " (" + L.T("explorer.pool") + ")";
|
||||
var own = d.Own(a);
|
||||
if (own != null) return WalletWindow.NameOf(own);
|
||||
if (ChainAddress.Same(a, d.Address("poinbase"))) return "Poinbase";
|
||||
@@ -1443,10 +1443,10 @@ namespace Decentralized
|
||||
b.AddSeparator();
|
||||
var rows = d.Ledger.Of(_explorerQuery, Tuning.LedgerShow);
|
||||
if (rows.Count == 0) { b.AddLabel(L.T("explorer.none"), "explorer_none_dim"); return; }
|
||||
TableHeader(b, ExplW.Sum() + 8f, ExplW, ExplAligns, L.T("explorer.col.block"), L.T("explorer.col.flow"), L.T("explorer.col.amount"));
|
||||
TableHeader(b, ExplW.Sum() + 8f, ExplW, ExplAligns, L.T("explorer.col.block"), L.T("explorer.col.day"), L.T("explorer.col.flow"), L.T("explorer.col.amount"));
|
||||
foreach (var e in rows)
|
||||
TableRow(b, ExplW.Sum() + 8f, ExplW, ExplAligns,
|
||||
new[] { "#" + e.Block, AddressLabel(e.From) + " → " + AddressLabel(e.To), Fmt.Num(e.Amount) + " " + e.Asset });
|
||||
new[] { "#" + e.Block, L.T("explorer.day", e.Day), AddressLabel(e.From) + " → " + AddressLabel(e.To), Fmt.Num(e.Amount) + " " + e.Asset });
|
||||
}
|
||||
|
||||
private enum BlackTab { Buy, Sell, Orders }
|
||||
|
||||
Reference in new issue
Block a user