2019-11-16 19:47:06 +00:00
<!DOCTYPE html>
< html >
< head >
< title > Lotus ChainWatch< / title >
< link rel = "stylesheet" type = "text/css" href = "main.css" >
< / head >
< body >
{{$wallet := param "w"}}
< div class = "Index" >
< div class = "Index-header" >
< div >
< span > Lotus ChainWatch - Wallet {{$wallet}}< / span >
< / div >
< / div >
< div class = "Index-nodes" >
< div class = "Index-node" >
2019-12-13 11:04:24 +00:00
Balance: {{queryNum "select balance from actors inner join id_address_map m on m.address = $1 where actors.id = m.id order by nonce desc limit 1" $wallet }}
2019-11-16 19:47:06 +00:00
< / div >
< div class = "Index-node" >
Messages:
2019-11-17 12:01:10 +00:00
< table >
< tr > < td > Dir< / td > < td > Peer< / td > < td > Nonce< / td > < td > Value< / td > < td > Block< / td > < td > Mpool Wait< / td > < / tr >
2019-12-13 11:48:42 +00:00
{{ range messages "\"from\" = $1 or \"to\" = $1" $wallet}}
2019-11-17 12:01:10 +00:00
< tr >
{{ if eq .From.String $wallet }}
2019-12-07 22:44:45 +00:00
< td > To< / td > < td > < a href = "key.html?w={{.To.String}}" > {{.To.String}}< / a > < / td >
2019-11-17 12:01:10 +00:00
{{else}}
2019-12-07 22:44:45 +00:00
< td > From< / td > < td > < a href = "key.html?w={{.From.String}}" > {{.From.String}}< / a > < / td >
2019-11-17 12:01:10 +00:00
{{end}}
< td > {{.Nonce}}< / td >
< td > {{.Value}}< / td >
< / tr >
{{end}}
< / table >
2019-11-16 19:47:06 +00:00
< / div >
< / div >
< / div >
< / body >
< / html >