forked from fidenz-chim/fundsplitter_web3jsraw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (56 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FundSplitter dApp</title>
<link rel="stylesheet" type="text/css" href="samplecss.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body>
<div class="left">
<div class="w3-container-row">
<div class="w3-container-row">
<h4>Accounts</h4>
<button class="button" id='createNewAccountButton'>Create New</button><br>
</div>
<h4>FundSplitter Contract</h4>
<!-- Open contract from file :<input type='file' id='openContractFile'></input><button class="button" id='deployNewContractButton'>Deploy New</button><br> -->
<label>Address:</label> <input class="w3-input w3-border" type="text" id="contractAddress" name="Sample text input" size="40"><br>
<label>Owner:</label> <input class="w3-input w3-border" type="text" id="contractOwner" name="Sample text input" size="40"><br>
<button class="button" id='createContractInstanceButton'>New Instance</button>
<button class="button" id='deployNewContractButton'>Deploy new</button><br>
</div>
<div class="w3-container-row">
<h4>Members</h4>
<button class="button" id='memberCountButton'>Get Count</button><br>
<label>Member list index:</label> <input class="w3-input w3-border" type="text" id="memberListIndex" name="Sample text input" size="60"><br>
<button class="button" id='getMemberAtButton'>Get Member At</button>
<label>Member address:</label> <input class="w3-input w3-border" type="text" id="memberAddress" name="Sample text input" size="60"><br>
<button class="button" id='addMemberButton'>Add New</button><br>
</div>
<div class="w3-container-row">
<h4>Funds</h4>
<button class="button" id='getFundsCountButton'>Get Count</button><br>
<label>Fund list index:</label> <input class="w3-input w3-border" type="text" id="fundListIndex" name="Sample text input" size="60"><br>
<button class="button" id='getFundAtButton'>Get Fund At</button>
<label>Source address:</label> <input class="w3-input w3-border" type="text" id="sourceAddress" name="Sample text input" size="60"><br>
<label>Amount (ETH):</label> <input class="w3-input w3-border" type="text" id="etherAmount" name="Sample text input" size="60"><br>
<button class="button" id='addFundsButton'>Add Funds</button><br>
</div>
<div class="w3-container-row">
<h4>Disperse Funds</h4>
<button class="button" id='disperseFundsButton'>Disperse</button>
</div>
</div>
<div class="right">
<label>Transaction Hash:</label>
<input class="w3-input w3-border" type="text" id="txnHash" name="Sample text input" size="100">
<button class="button" id='getTxnReceiptButton'>Get Txn Receipt</button>
<div class="w3-container-row" id="txnConsole">
</div>
</div>
<script src="main.js" type="text/javascript"></script>
</body>
</html>