From 4be4db5e6cfdde4ba5c1243b2bafeb6bbae3643c Mon Sep 17 00:00:00 2001 From: Marian Oancea Date: Wed, 5 Nov 2014 19:46:01 +0200 Subject: Converted to node module Converted to npm package Added brower Added browserify with minification Updated Readme --- example/index.html | 42 ++++++++++++++++++++++++++++++++++++++++++ example/node-app.js | 16 ++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 example/index.html create mode 100644 example/node-app.js (limited to 'example') diff --git a/example/index.html b/example/index.html new file mode 100644 index 000000000..87bc360fd --- /dev/null +++ b/example/index.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + +

std::name_reg

+ + + +
+result:
+ + + + diff --git a/example/node-app.js b/example/node-app.js new file mode 100644 index 000000000..f63fa9115 --- /dev/null +++ b/example/node-app.js @@ -0,0 +1,16 @@ +#!/usr/bin/env node + +require('es6-promise').polyfill(); + +var web3 = require("../index.js"); + +web3.setProvider(new web3.providers.HttpRpcProvider('http://localhost:8080')); + +web3.eth.coinbase.then(function(result){ + console.log(result); + return web3.eth.balanceAt(result); +}).then(function(balance){ + console.log(web3.toDecimal(balance)); +}).catch(function(err){ + console.log(err); +}); \ No newline at end of file -- cgit v1.2.3 From 3270b432bcb007944e3b6e17329b062cb6b7da78 Mon Sep 17 00:00:00 2001 From: Marian Oancea Date: Thu, 6 Nov 2014 22:51:37 +0200 Subject: Refactoring Removed browser fixes Updated gulp to bypass native browser objects Added source map for dist --- example/index.html | 1 + 1 file changed, 1 insertion(+) (limited to 'example') diff --git a/example/index.html b/example/index.html index 87bc360fd..202ae70a9 100644 --- a/example/index.html +++ b/example/index.html @@ -9,6 +9,7 @@ if (window.Promise === undefined) { window.Promise = ES6Promise.Promise; } + var web3 = require('web3'); //web3.setProvider(new web3.providers.QtProvider()); -- cgit v1.2.3 From 838ca2fd9393e5b3cd4423934de78f1b8f9fd13f Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 11 Nov 2014 15:47:58 +0100 Subject: autoprovider, buildQt not builds only necessery files, fixed gulpfile --- example/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/index.html b/example/index.html index 202ae70a9..17694cbf6 100644 --- a/example/index.html +++ b/example/index.html @@ -3,7 +3,7 @@ - +