From 842b8cf323a3b39d9e29ddd831bc41ddb98279ad Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 29 Jan 2015 12:35:21 +0100 Subject: event.js --- example/contract.html | 1 + example/natspec_contract.html | 1 + 2 files changed, 2 insertions(+) (limited to 'example') diff --git a/example/contract.html b/example/contract.html index dccd1a64f..a534f68d8 100644 --- a/example/contract.html +++ b/example/contract.html @@ -20,6 +20,7 @@ // contract description, this will be autogenerated somehow var desc = [{ "name": "multiply(uint256)", + "type": "function", "inputs": [ { "name": "a", diff --git a/example/natspec_contract.html b/example/natspec_contract.html index 40561a27c..212e582dc 100644 --- a/example/natspec_contract.html +++ b/example/natspec_contract.html @@ -21,6 +21,7 @@ // contract description, this will be autogenerated somehow var desc = [{ "name": "multiply(uint256)", + "type": "function", "inputs": [ { "name": "a", -- cgit v1.2.3 From df17c338988260aab4db8f946076a67f3323caba Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 29 Jan 2015 15:05:43 +0100 Subject: event example --- example/balance.html | 2 +- example/event.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 example/event.html (limited to 'example') diff --git a/example/balance.html b/example/balance.html index 88f55315a..0563cc3df 100644 --- a/example/balance.html +++ b/example/balance.html @@ -17,7 +17,7 @@ var originalBalance = web3.toDecimal(balance); document.getElementById('original').innerText = 'original balance: ' + originalBalance + ' watching...'; - web3.eth.watch({altered: coinbase}).changed(function() { + web3.eth.watch({address: coinbase}).changed(function() { balance = web3.eth.balanceAt(coinbase) var currentBalance = web3.toDecimal(balance); document.getElementById("current").innerText = 'current: ' + currentBalance; diff --git a/example/event.html b/example/event.html new file mode 100644 index 000000000..8191dfd8f --- /dev/null +++ b/example/event.html @@ -0,0 +1,67 @@ + + + + + + + + + +
+ +
+
+ +
+
+ +
+ + -- cgit v1.2.3