-
Notifications
You must be signed in to change notification settings - Fork 9
/
wallet.html
77 lines (76 loc) · 4 KB
/
wallet.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Multisig DApp</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mulish&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js" integrity="sha512-csNcFYJniKjJxRWRV1R7fvnXrycHP6qDR21mgz1ZP55xY5d+aHLfo9/FcGDQLfn2IfngbAHd8LdfsagcCqgTcQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="src/tonweb.js" charset="utf-8"></script>
<script src="src/multisig.js" charset="utf-8"></script>
<script src="src/main.js" charset="utf-8"></script>
<script src="https://kit.fontawesome.com/01d2caac83.js" integrity="sha512-TQASF/w3zzRn0p5Aj/0RPc6ZpyKu9O9sfluCdpY2e19GH6TlxxZ+Nqtzp4GKhHq9wJI1nDx1nCt79GskWm6Lzw==" crossorigin="anonymous"></script>
<script>
$(window).on('load', () => {
loadWallet()
const fileSelector = document.getElementById('file-selector');
fileSelector.addEventListener('change', (event) => {
const fileList = event.target.files;
showInfo(fileList[0])
});
})
</script>
</head>
<body>
<div class="net-switch">
<span>mainNet</span>
<label class="switch">
<input type="checkbox" id="1337" onclick="changeNetwork(false)">
<span class="slider round"></span>
</label>
<span>testNet</span>
</div>
<div class="wallet-header">
<span class="wallet-address"></span>
<span class="wallet-utype"></span>
<span class="wallet-htext">You can either create new order or sign existing from disk</span>
</div>
<div class="wallet-wrapper">
<div class="wallet-info">
<span id="balance">Balance: </span>
<span id="owners">Owners: </span>
<span id="last_active">Last active: </span>
</div>
<div class="wallet-create">
<span>Create new order</span>
<input type="text" id="recipient" placeholder="Recipient" onclick="styleClear()">
<input type="text" id="summ" placeholder="Amount" onclick="styleClear()">
<br>
<input type="text" id="body" placeholder="Body" onclick="styleClear()">
or
<input type="text" id="base64body" placeholder="Base64 BOC" onclick="styleClear()">
<div class="wallet-create-save" onclick="order(1)">Add</div>
<div class="wallet-create-create" onclick="order(2)">Save to disk</div>
<div class="wallet-sign-send" id="wallet-send-instant" onclick="signAndSendWithoutFile()">Sign & send</div>
<div class="wallet-create-show">
</div>
</div>
<div class="wallet-sign">
<span style="margin-bottom: 20px">Sign and send an order</span>
<input type="file" id="file-selector" accept=".boc">
<div class="wallet-sign-send" id="wallet-send" onclick="signAndSendReload(window.multisig_order_boc)">Sign & send</div>
</div>
</div>
<div class="wallet-ordinfo😁">
</div>
<div class="loading" style="display: none;">
<div class="loading-wrapper">
<div class="loading-spinner"></div>
<div class="loading-text">Loading...</div>
</div>
</div>
</body>
</html>