forked from metaspartan/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8c46ca2
Showing
23,786 changed files
with
3,387,807 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "app/bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"globalstrict": true, | ||
"globals": { | ||
"angular": false, | ||
"describe": false, | ||
"it": false, | ||
"expect": false, | ||
"beforeEach": false, | ||
"afterEach": false, | ||
"module": false, | ||
"inject": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
|
||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- npm start > /dev/null & | ||
- npm run update-webdriver | ||
- sleep 1 # give server time to start | ||
|
||
script: | ||
- node_modules/.bin/karma start karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=Firefox | ||
- node_modules/.bin/protractor e2e-tests/protractor.conf.js --browser=firefox |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# ETHExplorer V2 based off EtherParty/explorer | ||
|
||
![ETHExplorer V2 Screenshot](http://i.imgur.com/wgROAS9.png) | ||
|
||
##License | ||
|
||
The code in this branch is licensed under GPLv3 (see LICENSE file) | ||
|
||
Code in the MIT branch is under the MIT License (shocker, amirite) | ||
|
||
But seriously, license file has a TL;DR, at least look at that before using this code in a project | ||
|
||
##Installation | ||
|
||
`git clone https://github.com/carsenk/explorer` | ||
|
||
`npm install` | ||
|
||
`bower install` | ||
|
||
`npm start` | ||
|
||
Make sure to install geth as well for ETH. Then run: | ||
|
||
`geth --rpc --rpcaddr localhost --rpcport 8545 --rpcapi "web3,eth" --rpccorsdomain "http://localhost:8000"` | ||
|
||
Then visit http://localhost:8000 in your browser of choice after you npm start the explorer | ||
|
||
The theme is based off Bootstrap V3 for responsive design. You can easily change from a dark or light theme. | ||
|
||
There is a basic API implemented now as well as well as a Ethereum Blockchain Information page | ||
|
||
Tons of new features such as a realtime price ticker and current global hashrate | ||
|
||
Address Pages are integrated with Shapeshift to easily send a payment to an address. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// begin AltSheets changes | ||
/////////////////////////////// | ||
// TODO: Put go into a config.js | ||
// But how to include a file from local? | ||
|
||
var GETH_HOSTNAME = "localhost"; // put your IP address! | ||
var APP_HOSTNAME = "See package.json --> scripts --> start: Change 'localhost'!!!"; | ||
|
||
var GETH_RPCPORT = 8545; // for geth --rpcport GETH_RPCPORT | ||
var APP_PORT = "See package.json --> scripts --> start: Perhaps change '8000'"; | ||
|
||
// this is creating the corrected geth command | ||
var WL=window.location; | ||
var geth_command = "geth --rpc --rpcaddr "+ GETH_HOSTNAME + " --rpcport " + GETH_RPCPORT +'\ | ||
--rpcapi "web3,eth" ' + ' --rpccorsdomain "' + WL.protocol +"//" + WL.host + '"'; | ||
|
||
//////////////////////////////////////////////////// | ||
//end AltSheets changes | ||
|
||
|
||
'use strict'; | ||
|
||
angular.module('ethExplorer', ['ngRoute','ui.bootstrap','filters','ngSanitize']) | ||
|
||
.config(['$routeProvider', | ||
function($routeProvider) { | ||
$routeProvider. | ||
when('/', { | ||
templateUrl: 'views/main.html', | ||
controller: 'mainCtrl' | ||
}). | ||
when('/block/:blockId', { | ||
templateUrl: 'views/blockInfos.html', | ||
controller: 'blockInfosCtrl' | ||
}). | ||
when('/tx/:transactionId', { | ||
templateUrl: 'views/transactionInfos.html', | ||
controller: 'transactionInfosCtrl' | ||
}). | ||
when('/address/:addressId', { | ||
templateUrl: 'views/addressInfos.html', | ||
controller: 'addressInfosCtrl' | ||
}). | ||
|
||
// info page with links: | ||
when('/chain/api', { | ||
templateUrl: 'views/api/api.html', | ||
controller: 'chainInfosCtrl' | ||
}). | ||
|
||
// getBlock (current) & getBlock (last) | ||
when('/chain/', { | ||
templateUrl: 'views/chainInfos.html', | ||
controller: 'chainInfosCtrl' | ||
}). | ||
when('/chain/gaslimit', { | ||
templateUrl: 'views/api/gaslimit.html', | ||
controller: 'chainInfosCtrl' | ||
}). | ||
when('/chain/difficulty', { | ||
templateUrl: 'views/api/difficulty.html', | ||
controller: 'chainInfosCtrl' | ||
}). | ||
/* | ||
// fast = doesn't need to getBlock any block | ||
when('/chain/blocknumber', { | ||
templateUrl: 'views/api/blocknumber.html', | ||
controller: 'fastInfosCtrl' | ||
}). | ||
when('/chain/supply', { | ||
templateUrl: 'views/api/supply.html', | ||
controller: 'fastInfosCtrl' | ||
}). | ||
when('/chain/mined', { | ||
templateUrl: 'views/api/mined.html', | ||
controller: 'fastInfosCtrl' | ||
}). | ||
// begin of: not yet, see README.md | ||
when('/chain/supply/public', { | ||
templateUrl: 'views/api/supplypublic.html', | ||
controller: 'fastInfosCtrl' | ||
}).*/ | ||
// end of: not yet, see README.md | ||
|
||
otherwise({ | ||
redirectTo: '/' | ||
}); | ||
|
||
//$locationProvider.html5Mode(true); | ||
}]) | ||
.run(function($rootScope) { | ||
var web3 = require('web3'); | ||
|
||
// begin AltSheets changes | ||
web3.setProvider(new web3.providers.HttpProvider("http://"+GETH_HOSTNAME+":"+GETH_RPCPORT)); | ||
// end AltSheets changes | ||
|
||
$rootScope.web3=web3; | ||
function sleepFor( sleepDuration ){ | ||
var now = new Date().getTime(); | ||
while(new Date().getTime() < now + sleepDuration){ /* do nothing */ } | ||
} | ||
var connected = false; | ||
if(!web3.isConnected()) { | ||
$('#connectwarning').modal({keyboard:false,backdrop:'static'}) | ||
$('#connectwarning').modal('show') | ||
} | ||
}); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "Chart.js", | ||
"version": "2.1.6", | ||
"description": "Simple HTML5 Charts using the canvas element", | ||
"homepage": "https://github.com/chartjs/Chart.js", | ||
"author": "nnnick", | ||
"license": "MIT", | ||
"main": [ | ||
"dist/Chart.js" | ||
], | ||
"devDependencies": { | ||
"jquery": "~2.1.4" | ||
}, | ||
"_release": "2.1.6", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v2.1.6", | ||
"commit": "07662b158d829f395b2c97d732e60599b8b5c4e4" | ||
}, | ||
"_source": "https://github.com/nnnick/Chart.js.git", | ||
"_target": "^2.1.6", | ||
"_originalSource": "Chart.js", | ||
"_direct": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
engines: | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "src/**/*.js" | ||
exclude_paths: | ||
- dist/**/* | ||
- node_modules/**/* | ||
- test/**/* | ||
- coverage/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/*{.,-}min.js |
Oops, something went wrong.