-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (110 loc) · 4.09 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Console</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div id="banner" style="boarder:1px"></div>
<h2 id="sec-node-info">Node info</h2>
<div class="item">
<p>All the information on this page comes from this zetacored node: </p>
<pre id="node-info-summary"></pre>
<button onclick="toggleDropdown('node-info')">Raw JSON</button>
<pre id="node-info" class="dropdown-content"> </pre>
</div>
<h2 id="sec-network-status">Athens3 Network status</h2>
<div class="container">
<div class="item">
<div id="athens3-status"></div>
<b>Network status:</b>
<pre id="block-summary"></pre>
<div id="status-details"></div>
</div>
<div id="tss-address"> </div>
<div class="item">
<b>Current Keygen from zetacore: </b>
<pre id="keygen-summary"></pre>
<button onclick="toggleDropdown('current-keygen')">Keygen JSON</button>
<button onclick="toggleDropdown('current-tss')">TSS JSON</button>
<pre id="current-keygen" class="dropdown-content"></pre>
<pre id="current-tss" class="dropdown-content"></pre>
</div>
<div class="item">
<b>Current TSS Pubkey and Addresses</b>
<pre id="tss-summary"></pre>
</div>
<div class="item">
<b>ZETA Supply: </b>
<pre id="supply-summary"></pre>
<button onclick="toggleDropdown('supply')">Raw JSON</button>
<pre id="supply" class="dropdown-content"></pre>
</div>
<div class="item">
<b>Current Upgrade Plan: </b>
<pre id="upgrade-plan-summary"></pre>
<button onclick="toggleDropdown('upgrade-plan')">Raw JSON</button>
<pre id="upgrade-plan" class="dropdown-content"></pre>
</div>
<div class="item">
<b>Address translation: </b> <br>
<p>Given a HEX address like 0xdeadbeef or zeta address like zeta1xxxx, this widget will translate it to the other format.</p>
<input type="text" id="address-translation-input" placeholder="Enter address" size="50">
<button id="button-translate-address">Translate</button>
<pre id="address-translation-output"></pre>
</div>
<!-- <div id="network-widgets"></div> -->
<div id="validators">
<b>Validators</b>
<div id="all-validators"></div>
<div id="jailed-validators"></div>
</div>
</div>
<h2 id="sec-blockchain-query">ZetaChain Blockchain Query</h2>
<label for="input-block-height">Block height: </label>
<input type="text" id="input-block-height" value="31521">
<div class="container">
<div class="item">
<b> Block result </b> <button id="button-block-results">Go</button>
<div id="block-result-summary"></div>
<div id="txs-result-summary"></div>
<button onclick="toggleDropdown('block-result')">Raw JSON</button>
<button onclick="toggleDropdown('txs-result')">Txs</button>
<pre id="block-result" class="dropdown-content"></pre>
<div id="txs-result" class="dropdown-content"></div>
</div>
</div>
<h2>Proposals & Upgrades</h2>
<div>
<h3>Upgrade History</h3>
<div id="upgrade-history"></div>
<h3>Tally of Active Proposals</h3>
<div id="tally-summary"></div>
<h3>Proposals</h3>
<div id="proposals-summary"></div>
<div id="active-proposals"></div>
<div id="proposals-results"></div>
<div id="latest-proposals"></div>
<div id="upgrade-proposals"></div>
<div id="passed-proposals"></div>
<div id="failed-proposals"></div>
<div id="rejected-proposals"></div>
</div>
<div>
<h3> Upgrade Proposals </h3>
<div id="upgrade-proposals-summary"></div>
</div>
<div>
<h3>Governance Groups</h3>
<div id="governance-groups-summary"></div>
</div>
</div> <!-- outer div -->
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script src="./utils.js"></script>
<script src="./tag.js"></script>
<script type="module" src="athens3-dash.js"></script>
<script type="module">
import cosmjsamino from 'https://cdn.jsdelivr.net/npm/@cosmjs/[email protected]/+esm'
</script>
</body>
</html>