This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
/
address.html
252 lines (248 loc) · 12.5 KB
/
address.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!--
/*
* LiskHQ/lisk-explorer
* Copyright © 2018 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*
*/
-->
<section>
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}"
data-ng-if="vm.address.balance" data-ng-init="hideSNavbar=0">
<div class="container" data-ng-if="!hideSNavbar">
<div class="col-md-8 text-left">
<span>
<strong>Address: </strong>{{vm.address.address}}
</span>
</div>
<div class="col-md-4">
<span class="txvalues">
<strong>Final Balance: </strong>{{vm.address.balance | currency:$root.currency:$root.decimalPlaces}} {{$root.currency.symbol}}
</span>
</div>
</div>
<div class="hide_snavbar">
<a href="#" data-ng-click="hideSNavbar=!hideSNavbar">
<span data-ng-if="hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-down"></span></span>
<span data-ng-if="!hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-up"></span></span>
</a>
</div>
<div class="text-muted" data-ng-if="!vm.address.balance">
<span>Loading Address <i class="fa fa-spinner fa-spin"></i></span>
</div>
</div>
<h1>
{{vm.address.address}}
<br />
<small><span>{{vm.accountType || 'Loading...'}}</span></small>
</h1>
<div class="row horizontal-padding-xs horizontal-padding-s horizontal-padding-m horizontal-padding-l">
<div class="col-md-9 col-lg-10">
<div class="table-responsive">
<table class="table summary">
<tbody>
<tr data-ng-if="vm.address.knowledge">
<td class='left-padding-xs left-padding-s left-padding-l'><strong>Owner</strong></td>
<td class="right-padding-xs right-padding-s right-padding-l text-right">
<span class="owner-name">{{vm.address.knowledge.owner}}</span>
<span class="owner-desc text-muted">{{vm.address.knowledge.description}}</span>
</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-l"><strong>Address</strong></td>
<td class="right-padding-xs right-padding-s right-padding-l text-right">
<span>{{vm.address.address}}</span>
<span class="btn-copy" clip-copy="vm.address.address"></span>
</td>
</tr>
<tr class="hidden-xs">
<td class="left-padding-s left-padding-l"><strong>Public Key</strong></td>
<td class="right-padding-s right-padding-l text-right" data-ng-if="vm.address.publicKey">
<span>{{vm.address.publicKey}}</span>
<span class="btn-copy" clip-copy="vm.address.publicKey"></span>
</td>
<td class="right-padding-s right-padding-l text-right" data-ng-if="!vm.address.publicKey">
<span>Not initialized</span>
</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-l"><strong>Total balance</strong></td>
<td class="right-padding-xs right-padding-s right-padding-l text-right">{{vm.address.balance | currency:$root.currency:$root.decimalPlaces}} <span class="text-muted">{{$root.currency.symbol}}</span></td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-l"><strong>Transactions</strong></td>
<td class="right-padding-xs right-padding-s right-padding-l ellipsis text-right">
<span title="Incoming"><i class="fa fa-arrow-down text-success"></i> {{vm.address.incoming_cnt}}</span>
<span title="Outgoing"><i class="fa fa-arrow-up text-danger"></i> {{vm.address.outgoing_cnt}}</span>
</td>
</tr>
</tbody>
</table>
<div class="hidden-sm hidden-md hidden-lg hidden-xl pk-mobile-style" data-ng-if="vm.address.publicKey">
<span class="pk-mobile-display"><strong>Public Key</strong> {{vm.address.publicKey}}</span>
</div>
</div>
</div>
<div class="col-md-3 col-lg-2 text-center left-padding-m">
<qrcode size="160" data="{{vm.address.address}}"></qrcode>
<span>(Scan for Address)</span>
</div>
</div>
<uib-tabset>
<uib-tab>
<uib-tab-heading><span class="glyphicon glyphicon glyphicon-book"></span> Transactions</uib-tab-heading>
<div data-ng-if="vm.address.balance" data-ng-init="vm.txs.loadData()">
<div class="transactions-filter-header horizontal-padding-xs horizontal-padding-s horizontal-padding-m horizontal-padding-l double" role="group"
aria-label="All/Sent/Received Transactions" data-ng-class="{disabled: vm.direction === 'search'}">
<button data-ng-disabled="!vm.direction" data-ng-click="vm.filterTxs();vm.txs.loadData();vm.onFiltersUsed();">All</button>
<button class="sent-tab" data-ng-disabled="vm.direction==='sent'" data-ng-click="vm.filterTxs('sent');vm.txs.loadData();vm.onFiltersUsed();">Sent</button>
<button class="received-tab" data-ng-disabled="vm.direction==='received'" data-ng-click="vm.filterTxs('received');vm.txs.loadData();vm.onFiltersUsed();">Received</button>
<button class="others-tab" data-ng-disabled="vm.direction==='others'" data-ng-click="vm.filterTxs('others');vm.txs.loadData();vm.onFiltersUsed();">Others</button>
</div>
<!-- <transactions-filter data-txs="vm.txs" data-address="vm.address.address"></transactions-filter> -->
<transactions-list data-txs="vm.txs" data-address="vm.address.address"></transactions-list>
</div>
</uib-tab>
<uib-tab>
<uib-tab-heading><span class="glyphicon glyphicon glyphicon-list-alt"></span> Details</uib-tab-heading>
<div class="row horizontal-padding-xs horizontal-padding-s horizontal-padding-m horizontal-padding-l" data-ng-if="vm.isDelegate">
<div class="col-md-6 col-lg-7">
<h3>Voters <small>{{vm.address.voters.length}}</small></h3>
<div class="delegate-vote" data-ng-if="vm.address.voters">
<div class="row horizontal-padding-xs horizontal-padding-s horizontal-padding-m horizontal-padding-l">
<div class="col-md-12 voters">
<span data-ng-repeat='voter in vm.address.voters'>
<span>
<a data-account-href="voter" data-type="voter" class="voter-link">{{voter | votes}}</a>
<span class="text-muted">•</span>
</span>
<span data-ng-if="$last && vm.address.voters.length < vm.address.votersCount">
<span role="button" class="load-more" data-ng-click="vm.loadMoreVoters()"><b>Load more...</b></span>
</span>
</span>
</div>
</div>
</div>
<h3>Votes <small>{{vm.address.votes.length}}</small></h3>
<votes data-votes="vm.address.votes"></votes>
</div>
<div class="col-md-6 col-lg-5">
<h3>Forging statistics</h3>
<div class="table-responsive">
<table class="table summary">
<tbody>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Name</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">
<a href="/address/{{vm.address.delegate.address}}">{{vm.address.delegate.username}}</a>
</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Address</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">
<a href="/address/{{vm.address.address}}">{{vm.address.address}}</a>
</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Uptime</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">{{vm.address.delegate.productivity || 0.00}}%</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Rank / Status</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">{{vm.address.delegate.rate}} / <span class="text-muted">{{(vm.address.delegate.rate <= 101) ? 'Active' : 'Standby'}}</span></td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Approval</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">{{vm.address.delegate.approval}}%</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Vote weight</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">{{vm.address.delegate.vote || 0 | currency:$root.currency:$root.decimalPlaces}} <span class="text-muted">{{$root.currency.symbol}}</span></td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Forged</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">{{vm.address.delegate.forged || 0 | currency:$root.currency:$root.decimalPlaces}} <span class="text-muted">{{$root.currency.symbol}}</span></td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Blocks</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">{{vm.address.delegate.producedblocks}} <span class="text-muted">({{vm.address.delegate.missedblocks}} missed)</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row horizontal-padding-xs horizontal-padding-s horizontal-padding-m horizontal-padding-l">
<div class="col-md-6" data-ng-if="!vm.isDelegate">
<h3>Votes <small>{{vm.address.votes.length}}</small></h3>
<votes data-votes="vm.address.votes"></votes>
</div>
<div class="col-md-6" data-ng-if="vm.isMultisig">
<h3>Multisignature account details</h3>
<div class="table-responsive">
<table class="table summary">
<tbody>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Multisig lifetime</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">
{{vm.address.multisignatureAccount.lifetime}}
</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double" colspan="2"><strong>Minimum number of accounts<br />needed to confirm a multisig transaction</strong>
<span class="pull-right">{{vm.address.multisignatureAccount.min}}</span>
</td>
</tr>
<tr>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><strong>Members</strong></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">
<span data-ng-repeat="acc in vm.address.multisignatureAccount.members">
<a href="/address/{{acc.address}}">{{acc.address}}</a><br />
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-6" data-ng-if="vm.address.multisignatureMemberships.length">
<h3>Multisignature membership details</h3>
<div class="table-responsive">
<table class="table summary">
<tbody>
<thead>
<th>Lisk ID</th>
<th>Lifetime</th>
<th>Min</th>
<th>Second<br />passphrase?</th>
</thead>
<tr data-ng-repeat="acc in vm.address.multisignatureMemberships">
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double"><a href="/address/{{acc.address}}">{{acc.address}}</a></td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">
{{acc.lifetime}}
</td>
<td class="right-padding-xs right-padding-s right-padding-m right-padding-l double text-right">
{{acc.min}}
</td>
<td class="left-padding-xs left-padding-s left-padding-m left-padding-l double">
<span class="pull-right" data-ng-if="acc.secondPublicKey">yes</span>
<span class="pull-right" data-ng-if="!acc.secondPublicKey">no</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</uib-tab>
</uib-tabset>
</section>