This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspread-dapp.html
251 lines (208 loc) · 9.64 KB
/
spread-dapp.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Spread dApp</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/favicon.ico" rel="icon">
<link href="assets/img/iPhone.png" rel="Viken-Blockchain-icon">
<!-- Google Fonts -->
<link href="https://fonts.gstatic.com" rel="preconnect">
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i"
rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/quill/quill.snow.css" rel="stylesheet">
<link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet">
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/simple-datatables/style.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest" type="text/javascript"></script>
<script src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js" type="application/javascript"></script>
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- Moralis SDK code -->
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://unpkg.com/moralis-v1/dist/moralis.js"></script>
</head>
<body class="toggle-sidebar">
<!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center">
<div class="d-flex align-items-center justify-content-between">
<a href="index.html" class="logo d-flex align-items-center">
<img src="assets/img/website_horizontal 3.png" alt="Logo - Viken Blockchain Solutions">
<span class="d-none d-lg-block">Blockchain-Tools</span>
</a>
<i class="bi bi-list toggle-sidebar-btn"></i>
</div><!-- End Logo -->
<div class="search-bar">
<form class="search-form d-flex align-items-center" method="POST" action="#">
<input type="text" name="query" placeholder="Search" title="Enter search keyword">
<button type="submit" title="Search"><i class="bi bi-search"></i></button>
</form>
</div><!-- End Search Bar -->
<nav class="header-nav ms-auto">
<ul class="d-flex align-items-center">
<li class="nav-item d-block d-lg-none">
<a class="nav-link nav-icon search-bar-toggle " href="#">
<i class="bi bi-search"></i>
</a>
</li><!-- End Search Icon-->
</ul>
</nav>
</header><!-- End Header -->
<!-- ======= Sidebar ======= -->
<aside id="sidebar" class="sidebar">
<ul class="sidebar-nav collapsed" id="sidebar-nav">
<li class="nav-item">
<a class="nav-link collapsed" href="index.html">
<i class="bi bi-grid"></i>
<span>Viking Vaults</span>
</a>
</li><!-- End Dashboard Nav -->
<li class="nav-item">
<a class="nav-link" href="spread-dapp.html">
<i class="bi bi-send-check"></i>
<span>Spread - dApp</span>
</a>
</li><!-- End Spread-dApp Nav -->
</ul>
</aside><!-- End Sidebar-->
<main id="main" class="main">
<div class="pagetitle">
<h1>Spread dApp</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
<li class="breadcrumb-item">Pages</li>
<li class="breadcrumb-item active">Spread</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section class="section">
<div class="row">
<div class="col-lg-3">
<div class="card m-10">
<div class="card-body">
<div class="d-flex m-2 justify-content-center">
<cite">
<h5 class="card-subtitle mt-4 mb-2 text-muted ">SPREAD</h5>
<h6 class="card-text mb-2 text-muted">Synonym: Verb</h6>
<h6 class="card-text mb-4 text-muted"><cite>to broadcast, circulate</cite></h6>
</cite>
</div>
</div>
</div>
</div>
<!-- Left side columns -->
<div class="col-lg-6">
<div class="card">
<!-- Spread card start -->
<div class="d-flex m-5 justify-content-center">
<div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
<img src="assets/img/icons/[email protected]" alt="Ethereum Logo"></img>
<h5 class="card-subtitle m-4 text-muted">Spread your Ethereum assets across multiple accounts in one transaction.</h5>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card p-4">
<form class="recipient-form" id="assets_form" onsubmit="return false">
<div class="row col-md-5 m-3">
<select class="form-select" id="selectAssets" required>
<option selected disabled value="">Choose assets:</option>
<option value="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" id="nativeAsset"></option>
</select>
</div>
<div class="row gy-4 m-1">
<div class="col-md-6">
<input type="text" name="address" class="form-control" id="input-address"
placeholder="Address" pattern="[A-Za-z0-9]{42}" title="Ethereum address" required>
<div id="fskey-arrow-icon" class="fskey-activator-logo fskey-icon-locked" style="top: 40px; left: 590.5px;"></div>
</div>
<div class="col-md-4 ">
<input type="text" class="form-control" name="value" id="input-value" placeholder="Amount" required>
<div id="fskey-user-icon" class="fskey-activator-logo fskey-icon-locked" style="top: 40px; left: 590.5px;"></div>
</div>
<div class="col-md-12 text-center">
<div class="loading" id="loading-message"></div>
<div class="error-message" id="error-message"></div>
<div class="sent-message" id="sent-message"></div>
<button class="btn btn-primary m-3" onclick="setTableValues()">Add new recipient</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Spread card end -->
</div>
</div>
<div class="col-lg-3">
<div class="card m-10">
<div class="card-body">
<div class="container-fluid mt-3">
<h5 class="card-title mb-3">Spread list:</h5>
<div class="row gy-4">
<div class="col-md-12 text-center">
<div class="d-flex justify-content-center">
<div class="table-responsive-md" id="div1">
<!-- Table with hoverable rows -->
<table class="table table-sm table-hover">
<thead>
<tr style="font-size: 11px;">
<th scope="col-auto">#</th>
<th scope="col-auto">Recipient</th>
<th scope="col-auto">Amount</th>
</tr>
</thead>
<tbody class="tbody" id="rows" style="font-size: 0.6rem;">
</tbody>
</table>
<!-- End Table with hoverable rows -->
</div>
</div>
<button type="submit" onclick="spread()" class="btn btn-primary m-3">Spread</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Left side columns -->
</div>
<!-- Right side columns -->
</section>
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer id="footer" class="footer">
<div class="copyright">
© Copyright <strong><span>Viken-Blockchain-Solutions</span></strong>. All Rights Reserved
</div>
<div class="credits">
Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i
class="bi bi-arrow-up-short"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/apexcharts/apexcharts.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/tinymce/tinymce.min.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<script src="assets/js/spread/app.js"></script>
<script src="assets/js/spread/utils.js"></script>
<script src="assets/cloud/ABI.js"></script>
<script src="assets/js/spread/elements.js"></script>
</body>
</html>