aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/samplecoin.html
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-02 19:35:44 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-02 19:35:44 +0800
commit60f9966cd8f991967882dd61e602822a95681d85 (patch)
tree037e8d0a7a9a546b10ddef65be17a0328b62d551 /ethereal/assets/samplecoin.html
parent3424bf17ca791b97ea512bef5290d1a52c1758af (diff)
parentf1da6f0564696f4fb5a6c04d1b9e24ed12432d63 (diff)
downloaddexon-60f9966cd8f991967882dd61e602822a95681d85.tar
dexon-60f9966cd8f991967882dd61e602822a95681d85.tar.gz
dexon-60f9966cd8f991967882dd61e602822a95681d85.tar.bz2
dexon-60f9966cd8f991967882dd61e602822a95681d85.tar.lz
dexon-60f9966cd8f991967882dd61e602822a95681d85.tar.xz
dexon-60f9966cd8f991967882dd61e602822a95681d85.tar.zst
dexon-60f9966cd8f991967882dd61e602822a95681d85.zip
Merge branch 'develop' into feature/rpc
Diffstat (limited to 'ethereal/assets/samplecoin.html')
-rw-r--r--ethereal/assets/samplecoin.html69
1 files changed, 0 insertions, 69 deletions
diff --git a/ethereal/assets/samplecoin.html b/ethereal/assets/samplecoin.html
deleted file mode 100644
index 3b039fb04..000000000
--- a/ethereal/assets/samplecoin.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
-<title>jeffcoin</title>
-<script type="text/javascript">
-var jefcoinAddr = "3dff537f51350239abc95c76a5864aa605259e7d"
-
-function createTransaction() {
- var addr = document.querySelector("#addr").value;
- var amount = document.querySelector("#amount").value;
-
- var data = "0x" + addr + "\n" + amount
- eth.transact("", jefcoinAddr, 0, "10000000", "250", data, function(tx) {
- debug("received tx hash:", tx)
- })
-}
-
-// Any test related actions here please
-function tests() {
- eth.getKey(function(keys) {
- debug(keys)
- })
-}
-
-function init() {
- eth.getKey(function(key) {
- eth.getStorageAt(jefcoinAddr, key, function(storage) {
- document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
- });
-
- eth.watch(jefcoinAddr, function(stateObject) {
- eth.getStorageAt(jefcoinAddr, key, function(storage) {
- document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
- });
- });
-
- eth.getBalanceAt(key, function(balance) {
- debug("balance", balance);
- })
- });
-}
-
-</script>
-<style type="text/css">
-input[type="text"] {
- width: 300px;
-}
-</style>
-</head>
-
-<body onload="init();">
-<h1>Jeff Coin</h1>
-
-<img src="icon.png">
-<div id="currentAmount"></div>
-
-<div id="transactions">
- <input id="addr" type="text" placeholder="Receiver address"></input><br>
- <input id="amount" type="text" placeholder="Amount"></input><br>
- <button onclick="createTransaction();">Send Tx</button>
-</div>
-
-<div><button onclick="tests();">Tests</button></div>
-
-
-<div id="debug" style="border: 1px solid block"></div>
-
-</body>
-</html>
-