├── test ├── test.bat └── config.json ├── .node-xmlhttprequest-sync-6792 ├── startEthBrowser.bat ├── tools ├── startStats.bat ├── .node-xmlhttprequest-sync-6600 ├── startGrabber.bat ├── priTools │ ├── node_bloom_filter │ │ ├── .gitignore │ │ ├── index.js │ │ └── package.json │ ├── dealCount.js │ ├── countRichListBalance.js │ ├── getLessAddr.js │ ├── updateWitnessVersion.js │ ├── collectRichestAddr.js │ ├── updateWitness.js │ ├── updateAddrBalanceLH10.js │ ├── test.js │ ├── dealContractAddr.js │ ├── updateContractAddr.js │ ├── clearDB谨慎上传.js │ ├── updateAddrBalanceBT10.js │ ├── updateAddrBalance.js │ └── internalTX_txhash.js ├── check_restart.sh ├── config.json ├── config-fix.json ├── restart.sh ├── blockTimeTest.js └── fix_tx.js ├── profileStart.bat ├── .DS_Store ├── profile2json.bat ├── public ├── favicon.ico ├── img │ ├── FAIL.png │ ├── logo.png │ ├── loading.gif │ ├── logo-round.png │ ├── social │ │ ├── rss.png │ │ ├── vk.png │ │ ├── Thumbs.db │ │ ├── quora.png │ │ ├── skype.png │ │ ├── vimeo.png │ │ ├── xing.png │ │ ├── yahoo.png │ │ ├── behance.png │ │ ├── blogger.png │ │ ├── facebook.png │ │ ├── flickr.png │ │ ├── github.png │ │ ├── gravatar.png │ │ ├── linkedin.png │ │ ├── picasa.png │ │ ├── pintrest.png │ │ ├── reddit.png │ │ ├── tumblr.png │ │ ├── twitter.png │ │ ├── youtube.png │ │ ├── googleplus.png │ │ ├── instagram.png │ │ ├── wordpress.png │ │ └── stumbleupon.png │ ├── comment-white.png │ ├── explorer-logo.png │ ├── loading-spinner-grey.gif │ └── explorer-logo-beta-590x243.png ├── js │ ├── custom.js │ ├── controllers │ │ ├── ErrController.js │ │ ├── PublicAPIDocController.js │ │ ├── StatsController.js │ │ ├── ContractListController.js │ │ ├── WitnessListController.js │ │ ├── TokenListController.js │ │ ├── BlockController.js │ │ ├── AddressListController.js │ │ ├── TxController.js │ │ └── DAOController.js │ ├── stats │ │ └── package.json │ ├── web3utils.js │ ├── filters.js │ └── directives.js ├── css │ ├── fonts │ │ ├── Roboto-Bold.ttf │ │ ├── Roboto-Light.ttf │ │ ├── Roboto-Regular.ttf │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── default.css │ ├── stats.css │ └── custom.css ├── plugins │ ├── morris │ │ ├── examples │ │ │ ├── lib │ │ │ │ ├── example.js │ │ │ │ └── example.css │ │ │ ├── _template.html │ │ │ ├── donut.html │ │ │ ├── bar-no-axes.html │ │ │ ├── goals.html │ │ │ ├── stacked_bars.html │ │ │ ├── dst.html │ │ │ ├── area-as-line.html │ │ │ ├── bar.html │ │ │ ├── donut-formatter.html │ │ │ ├── area.html │ │ │ ├── donut-colors.html │ │ │ ├── negative.html │ │ │ ├── decimal-custom-hover.html │ │ │ ├── non-date.html │ │ │ ├── bar-colors.html │ │ │ ├── updating.html │ │ │ ├── years.html │ │ │ ├── days.html │ │ │ ├── months-no-smooth.html │ │ │ ├── no-grid.html │ │ │ ├── diagonal-xlabels.html │ │ │ ├── diagonal-xlabels-bar.html │ │ │ ├── timestamps.html │ │ │ ├── resize.html │ │ │ ├── non-continuous.html │ │ │ ├── weeks.html │ │ │ ├── events.html │ │ │ └── quarters.html │ │ ├── spec │ │ │ ├── viz │ │ │ │ ├── exemplary │ │ │ │ │ ├── area0.png │ │ │ │ │ ├── bar0.png │ │ │ │ │ ├── line0.png │ │ │ │ │ └── stacked_bar0.png │ │ │ │ ├── run.sh │ │ │ │ ├── test.html │ │ │ │ ├── examples.js │ │ │ │ └── visual_specs.js │ │ │ ├── support │ │ │ │ └── placeholder.coffee │ │ │ ├── lib │ │ │ │ ├── grid │ │ │ │ │ ├── y_label_format_spec.coffee │ │ │ │ │ └── auto_grid_lines_spec.coffee │ │ │ │ ├── pad_spec.coffee │ │ │ │ ├── bar │ │ │ │ │ └── colours.coffee │ │ │ │ ├── commas_spec.coffee │ │ │ │ ├── parse_time_spec.coffee │ │ │ │ ├── area │ │ │ │ │ └── area_spec.coffee │ │ │ │ ├── hover_spec.coffee │ │ │ │ └── donut │ │ │ │ │ └── donut_spec.coffee │ │ │ └── specs.html │ │ ├── morris.css │ │ ├── less │ │ │ └── morris.core.less │ │ └── lib │ │ │ ├── morris.coffee │ │ │ ├── morris.hover.coffee │ │ │ └── morris.area.coffee │ ├── uniform │ │ └── images │ │ │ ├── sprite.png │ │ │ ├── bg-input.png │ │ │ ├── bg-input-focus.png │ │ │ └── sprite_original.png │ ├── datatables │ │ └── images │ │ │ ├── sort_asc.png │ │ │ ├── sort_both.png │ │ │ ├── sort_desc.png │ │ │ ├── Sorting icons.psd │ │ │ ├── back_disabled.png │ │ │ ├── back_enabled.png │ │ │ ├── forward_enabled.png │ │ │ ├── back_enabled_hover.png │ │ │ ├── forward_disabled.png │ │ │ ├── sort_asc_disabled.png │ │ │ ├── sort_desc_disabled.png │ │ │ └── forward_enabled_hover.png │ ├── simple-line-icons │ │ ├── License.txt │ │ ├── fonts │ │ │ ├── Simple-Line-Icons.eot │ │ │ ├── Simple-Line-Icons.ttf │ │ │ └── Simple-Line-Icons.woff │ │ └── Readme.txt │ ├── font-awesome │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ ├── bootstrap │ │ └── fonts │ │ │ └── bootstrap │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ ├── jquery-slimscroll │ │ ├── README.md │ │ └── slimScroll.jquery.json │ ├── bootstrap-hover-dropdown │ │ ├── LICENSE │ │ ├── bootstrap-hover-dropdown.min.js │ │ └── bootstrap-hover-dropdown.js │ ├── angularjs │ │ └── angular-cookies.min.js │ └── jquery.cokie.min.js ├── fonts │ └── fontawesome │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff ├── tpl │ ├── page-head.html │ └── footer.html └── views │ ├── stats │ └── index.html │ ├── err_404.html │ ├── created-tokens.html │ ├── transfer-tokens.html │ ├── tokenlist.html │ ├── addressList.html │ ├── contract-source.html │ ├── contractlist.html │ ├── witnessList.html │ ├── block.html │ └── witness.html ├── views └── error.ejs ├── Dockerfile ├── restartApp.sh ├── routes ├── eventLog.js ├── contracts.js ├── fiat.js ├── contractListData.js ├── tokenListData.js ├── tokenTransfer.js └── addressListData.js ├── .travis.yml ├── db-stats.js ├── db-dao.js ├── .gitignore ├── package.json ├── LICENSE.md ├── check_restart.sh ├── db-internal.js ├── ecosystem.config.js ├── lib ├── consoleTimestamp.js ├── etherUnits.js └── murmurHash3.js └── README.md /test/test.bat: -------------------------------------------------------------------------------- 1 | node test.js -------------------------------------------------------------------------------- /.node-xmlhttprequest-sync-6792: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /startEthBrowser.bat: -------------------------------------------------------------------------------- 1 | node app.js -------------------------------------------------------------------------------- /tools/startStats.bat: -------------------------------------------------------------------------------- 1 | node stats.js -------------------------------------------------------------------------------- /profileStart.bat: -------------------------------------------------------------------------------- 1 | node --prof app.js -------------------------------------------------------------------------------- /tools/.node-xmlhttprequest-sync-6600: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/startGrabber.bat: -------------------------------------------------------------------------------- 1 | node grabber.js -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/.DS_Store -------------------------------------------------------------------------------- /tools/priTools/node_bloom_filter/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /tools/priTools/node_bloom_filter/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./bloomfilter'); -------------------------------------------------------------------------------- /profile2json.bat: -------------------------------------------------------------------------------- 1 | node --prof-process --preprocess -j isolate-00000218C0780E20-v8.log > v8.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/img/FAIL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/FAIL.png -------------------------------------------------------------------------------- /public/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/logo.png -------------------------------------------------------------------------------- /public/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/loading.gif -------------------------------------------------------------------------------- /tools/check_restart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/tools/check_restart.sh -------------------------------------------------------------------------------- /public/img/logo-round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/logo-round.png -------------------------------------------------------------------------------- /public/img/social/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/rss.png -------------------------------------------------------------------------------- /public/img/social/vk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/vk.png -------------------------------------------------------------------------------- /views/error.ejs: -------------------------------------------------------------------------------- 1 |
<%= error.stack %>-------------------------------------------------------------------------------- /public/img/social/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/Thumbs.db -------------------------------------------------------------------------------- /public/img/social/quora.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/quora.png -------------------------------------------------------------------------------- /public/img/social/skype.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/skype.png -------------------------------------------------------------------------------- /public/img/social/vimeo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/vimeo.png -------------------------------------------------------------------------------- /public/img/social/xing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/xing.png -------------------------------------------------------------------------------- /public/img/social/yahoo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/yahoo.png -------------------------------------------------------------------------------- /public/js/custom.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $('[data-toggle="tooltip"]').tooltip(); 3 | }); 4 | -------------------------------------------------------------------------------- /public/img/comment-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/comment-white.png -------------------------------------------------------------------------------- /public/img/explorer-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/explorer-logo.png -------------------------------------------------------------------------------- /public/img/social/behance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/behance.png -------------------------------------------------------------------------------- /public/img/social/blogger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/blogger.png -------------------------------------------------------------------------------- /public/img/social/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/facebook.png -------------------------------------------------------------------------------- /public/img/social/flickr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/flickr.png -------------------------------------------------------------------------------- /public/img/social/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/github.png -------------------------------------------------------------------------------- /public/img/social/gravatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/gravatar.png -------------------------------------------------------------------------------- /public/img/social/linkedin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/linkedin.png -------------------------------------------------------------------------------- /public/img/social/picasa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/picasa.png -------------------------------------------------------------------------------- /public/img/social/pintrest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/pintrest.png -------------------------------------------------------------------------------- /public/img/social/reddit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/reddit.png -------------------------------------------------------------------------------- /public/img/social/tumblr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/tumblr.png -------------------------------------------------------------------------------- /public/img/social/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/twitter.png -------------------------------------------------------------------------------- /public/img/social/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/youtube.png -------------------------------------------------------------------------------- /public/css/fonts/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/css/fonts/Roboto-Bold.ttf -------------------------------------------------------------------------------- /public/img/social/googleplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/googleplus.png -------------------------------------------------------------------------------- /public/img/social/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/instagram.png -------------------------------------------------------------------------------- /public/img/social/wordpress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/wordpress.png -------------------------------------------------------------------------------- /public/plugins/morris/examples/lib/example.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | eval($('#code').text()); 3 | prettyPrint(); 4 | }); -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:latest 2 | 3 | COPY . / 4 | 5 | RUN npm i 6 | 7 | EXPOSE 3000 8 | 9 | ENTRYPOINT ["node"] 10 | -------------------------------------------------------------------------------- /public/css/fonts/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/css/fonts/Roboto-Light.ttf -------------------------------------------------------------------------------- /public/css/fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/css/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /public/img/loading-spinner-grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/loading-spinner-grey.gif -------------------------------------------------------------------------------- /public/img/social/stumbleupon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/social/stumbleupon.png -------------------------------------------------------------------------------- /public/css/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/css/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/fontawesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/fonts/fontawesome/FontAwesome.otf -------------------------------------------------------------------------------- /public/plugins/uniform/images/sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/uniform/images/sprite.png -------------------------------------------------------------------------------- /public/css/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/css/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/img/explorer-logo-beta-590x243.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/img/explorer-logo-beta-590x243.png -------------------------------------------------------------------------------- /public/plugins/uniform/images/bg-input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/uniform/images/bg-input.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/sort_asc.png -------------------------------------------------------------------------------- /public/plugins/simple-line-icons/License.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/simple-line-icons/License.txt -------------------------------------------------------------------------------- /public/plugins/datatables/images/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/sort_both.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/sort_desc.png -------------------------------------------------------------------------------- /public/fonts/fontawesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/fonts/fontawesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/fonts/fontawesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/fonts/fontawesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/fonts/fontawesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/fonts/fontawesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/plugins/datatables/images/Sorting icons.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/Sorting icons.psd -------------------------------------------------------------------------------- /public/plugins/datatables/images/back_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/back_disabled.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/back_enabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/back_enabled.png -------------------------------------------------------------------------------- /public/plugins/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/plugins/morris/spec/viz/exemplary/area0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/morris/spec/viz/exemplary/area0.png -------------------------------------------------------------------------------- /public/plugins/morris/spec/viz/exemplary/bar0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/morris/spec/viz/exemplary/bar0.png -------------------------------------------------------------------------------- /public/plugins/morris/spec/viz/exemplary/line0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/morris/spec/viz/exemplary/line0.png -------------------------------------------------------------------------------- /public/plugins/uniform/images/bg-input-focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/uniform/images/bg-input-focus.png -------------------------------------------------------------------------------- /public/plugins/uniform/images/sprite_original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/uniform/images/sprite_original.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/forward_enabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/forward_enabled.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/back_enabled_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/back_enabled_hover.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/forward_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/forward_disabled.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/sort_asc_disabled.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/sort_desc_disabled.png -------------------------------------------------------------------------------- /public/plugins/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/plugins/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/plugins/morris/spec/viz/exemplary/stacked_bar0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/morris/spec/viz/exemplary/stacked_bar0.png -------------------------------------------------------------------------------- /public/plugins/datatables/images/forward_enabled_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/datatables/images/forward_enabled_hover.png -------------------------------------------------------------------------------- /public/plugins/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/plugins/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/plugins/simple-line-icons/fonts/Simple-Line-Icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/simple-line-icons/fonts/Simple-Line-Icons.eot -------------------------------------------------------------------------------- /public/plugins/simple-line-icons/fonts/Simple-Line-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/simple-line-icons/fonts/Simple-Line-Icons.ttf -------------------------------------------------------------------------------- /public/plugins/simple-line-icons/fonts/Simple-Line-Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/simple-line-icons/fonts/Simple-Line-Icons.woff -------------------------------------------------------------------------------- /tools/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "gethPort": 9646, 3 | "blocks": [ {"start": 4936270, "end": "latest"}], 4 | "quiet": true, 5 | "terminateAtExistingDB": false, 6 | "listenOnly": true 7 | } -------------------------------------------------------------------------------- /public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etherzero-org/explorer/HEAD/public/plugins/bootstrap/fonts/bootstrap/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /test/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "output":".", 3 | "gethPort": 9646, 4 | "blocks": [ {"start": 0, "end": "latest"}], 5 | "quiet": true, 6 | "terminateAtExistingDB": false, 7 | "listenOnly": true 8 | } -------------------------------------------------------------------------------- /tools/config-fix.json: -------------------------------------------------------------------------------- 1 | { 2 | "gethPort": 9646, 3 | "blocks": [ {"start": 4936270, "end": "latest"}], 4 | "quiet": true, 5 | "terminateAtExistingDB": false, 6 | "listenOnly": false 7 | } 8 | -------------------------------------------------------------------------------- /public/plugins/morris/spec/support/placeholder.coffee: -------------------------------------------------------------------------------- 1 | beforeEach -> 2 | placeholder = $('') 3 | $('#test').append(placeholder) 4 | 5 | afterEach -> 6 | $('#test').empty() 7 | -------------------------------------------------------------------------------- /public/plugins/morris/examples/lib/example.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 800px; 3 | margin: 0 auto; 4 | } 5 | #graph { 6 | width: 800px; 7 | height: 250px; 8 | margin: 20px auto 0 auto; 9 | } 10 | pre { 11 | height: 250px; 12 | overflow: auto; 13 | } 14 | -------------------------------------------------------------------------------- /public/js/controllers/ErrController.js: -------------------------------------------------------------------------------- 1 | angular.module('BlocksApp').controller('ErrController', function($stateParams, $rootScope, $scope) { 2 | 3 | $rootScope.$state.current.data["pageSubTitle"] = $stateParams.hash; 4 | $scope.thing = $stateParams.thing; 5 | 6 | }) -------------------------------------------------------------------------------- /restartApp.sh: -------------------------------------------------------------------------------- 1 | mv logs/out.log.txt logs/out.$(date -d "today" +"%Y%m%d_%H%M%S").txt 2 | mv logs/err.log.txt logs/err.$(date -d "today" +"%Y%m%d_%H%M%S").txt 3 | ps aux | grep "app.js" | grep -v grep | awk '{print $2}' | xargs kill 4 | sleep 2 5 | nohup node app.js 1>logs/out.log.txt 2>logs/err.log.txt & 6 | -------------------------------------------------------------------------------- /tools/restart.sh: -------------------------------------------------------------------------------- 1 | mv logs/out.log.txt logs/out.$(date -d "today" +"%Y%m%d_%H%M%S").txt 2 | mv logs/err.log.txt logs/err.$(date -d "today" +"%Y%m%d_%H%M%S").txt 3 | ps aux | grep "PetBCserver.js" | grep -v grep | awk '{print $2}' | xargs kill 4 | sleep 1 5 | nohup node PetBCserver.js 1>logs/out.log.txt 2>logs/err.log.txt & -------------------------------------------------------------------------------- /public/tpl/page-head.html: -------------------------------------------------------------------------------- 1 |
We can not find the {{thing}} you are looking for. 7 |
8 | If you believe your {{thing}} is correct,
9 | please report this error.
10 |
15 | // Insert code here: 16 | // it'll get eval()-ed and prettyprinted. 17 |18 | 19 | -------------------------------------------------------------------------------- /public/js/controllers/ContractListController.js: -------------------------------------------------------------------------------- 1 | angular.module('BlocksApp').controller('ContractListController', function($stateParams, $rootScope, $scope, $http) { 2 | $scope.$on('$viewContentLoaded', function() { 3 | // initialize core components 4 | App.initAjax(); 5 | }); 6 | 7 | 8 | 9 | $scope.page = 0; 10 | $scope.getInfoList=function(page) { 11 | $http({ 12 | method: 'POST', 13 | url: '/contractListData', 14 | data: {"ERC": -1, "page":page} 15 | }).success(function(repData) { 16 | $scope.page = repData.page; 17 | var pages = []; 18 | for(i=0; i
16 | Morris.Donut({
17 | element: 'graph',
18 | data: [
19 | {value: 70, label: 'foo'},
20 | {value: 15, label: 'bar'},
21 | {value: 10, label: 'baz'},
22 | {value: 5, label: 'A really really long label'}
23 | ],
24 | formatter: function (x) { return x + "%"}
25 | }).on('click', function(i, row){
26 | console.log(i, row);
27 | });
28 |
29 |
30 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/bar-no-axes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | // Use Morris.Bar
17 | Morris.Bar({
18 | element: 'graph',
19 | axes: false,
20 | data: [
21 | {x: '2011 Q1', y: 3, z: 2, a: 3},
22 | {x: '2011 Q2', y: 2, z: null, a: 1},
23 | {x: '2011 Q3', y: 0, z: 2, a: 4},
24 | {x: '2011 Q4', y: 2, z: 4, a: 3}
25 | ],
26 | xkey: 'x',
27 | ykeys: ['y', 'z', 'a'],
28 | labels: ['Y', 'Z', 'A']
29 | });
30 |
31 |
32 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/goals.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | var decimal_data = [];
17 | for (var x = 0; x <= 360; x += 10) {
18 | decimal_data.push({
19 | x: x,
20 | y: Math.sin(Math.PI * x / 180).toFixed(4)
21 | });
22 | }
23 | window.m = Morris.Line({
24 | element: 'graph',
25 | data: decimal_data,
26 | xkey: 'x',
27 | ykeys: ['y'],
28 | labels: ['sin(x)'],
29 | parseTime: false,
30 | goals: [-1, 0, 1]
31 | });
32 |
33 |
34 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/stacked_bars.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | // Use Morris.Bar
17 | Morris.Bar({
18 | element: 'graph',
19 | data: [
20 | {x: '2011 Q1', y: 3, z: 2, a: 3},
21 | {x: '2011 Q2', y: 2, z: null, a: 1},
22 | {x: '2011 Q3', y: 0, z: 2, a: 4},
23 | {x: '2011 Q4', y: 2, z: 4, a: 3}
24 | ],
25 | xkey: 'x',
26 | ykeys: ['y', 'z', 'a'],
27 | labels: ['Y', 'Z', 'A'],
28 | stacked: true
29 | });
30 |
31 |
32 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/dst.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | // This crosses a DST boundary in the UK.
17 | Morris.Area({
18 | element: 'graph',
19 | data: [
20 | {x: '2013-03-30 22:00:00', y: 3, z: 3},
21 | {x: '2013-03-31 00:00:00', y: 2, z: 0},
22 | {x: '2013-03-31 02:00:00', y: 0, z: 2},
23 | {x: '2013-03-31 04:00:00', y: 4, z: 4}
24 | ],
25 | xkey: 'x',
26 | ykeys: ['y', 'z'],
27 | labels: ['Y', 'Z']
28 | });
29 |
30 |
31 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/area-as-line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | // Use Morris.Area instead of Morris.Line
17 | Morris.Area({
18 | element: 'graph',
19 | behaveLikeLine: true,
20 | data: [
21 | {x: '2011 Q1', y: 3, z: 3},
22 | {x: '2011 Q2', y: 2, z: 1},
23 | {x: '2011 Q3', y: 2, z: 4},
24 | {x: '2011 Q4', y: 3, z: 3}
25 | ],
26 | xkey: 'x',
27 | ykeys: ['y', 'z'],
28 | labels: ['Y', 'Z']
29 | });
30 |
31 |
32 |
--------------------------------------------------------------------------------
/db-internal.js:
--------------------------------------------------------------------------------
1 | /******
2 | DEPRECATED -- DO NOT USE
3 | *******/
4 | var mongoose = require( 'mongoose' );
5 | var Schema = mongoose.Schema;
6 |
7 | var InternalTransaction = new Schema(
8 | {
9 | "type": String,
10 | "action": {
11 | "from": String, // for call
12 | "to": String,
13 | "value": String,
14 | "gas": Number,
15 | "input":String,
16 | "callType":String,
17 | "init": String, // for create
18 | "address": String, // for suicide
19 | "refundAddress": String,
20 | "balance": String
21 | },
22 | "result": {
23 | "gasUsed":Number,
24 | "output":String,
25 | "code": String,
26 | "address": String
27 | },
28 | "error": String,
29 | "traceAddress":[String],
30 | "subtraces":Number,
31 | "transactionPosition":Number,
32 | "transactionHash": {type: String, index: {unique: false}}, // parent transaction
33 | "blockNumber":{type: Number, index: {unique: false}},
34 | "timestamp": Number,
35 | "blockHash":String
36 | });
37 |
38 | mongoose.model('InternalTransaction', InternalTransaction);
39 | module.exports.InternalTransaction = mongoose.model('InternalTransaction');
--------------------------------------------------------------------------------
/public/plugins/morris/examples/bar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | // Use Morris.Bar
17 | Morris.Bar({
18 | element: 'graph',
19 | data: [
20 | {x: '2011 Q1', y: 3, z: 2, a: 3},
21 | {x: '2011 Q2', y: 2, z: null, a: 1},
22 | {x: '2011 Q3', y: 0, z: 2, a: 4},
23 | {x: '2011 Q4', y: 2, z: 4, a: 3}
24 | ],
25 | xkey: 'x',
26 | ykeys: ['y', 'z', 'a'],
27 | labels: ['Y', 'Z', 'A']
28 | }).on('click', function(i, row){
29 | console.log(i, row);
30 | });
31 |
32 |
33 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/donut-formatter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | Morris.Donut({
17 | element: 'graph',
18 | data: [
19 | {value: 70, label: 'foo', formatted: 'at least 70%' },
20 | {value: 15, label: 'bar', formatted: 'approx. 15%' },
21 | {value: 10, label: 'baz', formatted: 'approx. 10%' },
22 | {value: 5, label: 'A really really long label', formatted: 'at most 5%' }
23 | ],
24 | formatter: function (x, data) { return data.formatted; }
25 | });
26 |
27 |
28 |
--------------------------------------------------------------------------------
/public/plugins/morris/lib/morris.coffee:
--------------------------------------------------------------------------------
1 | Morris = window.Morris = {}
2 |
3 | $ = jQuery
4 |
5 | # Very simple event-emitter class.
6 | #
7 | # @private
8 | class Morris.EventEmitter
9 | on: (name, handler) ->
10 | unless @handlers?
11 | @handlers = {}
12 | unless @handlers[name]?
13 | @handlers[name] = []
14 | @handlers[name].push(handler)
15 | @
16 |
17 | fire: (name, args...) ->
18 | if @handlers? and @handlers[name]?
19 | for handler in @handlers[name]
20 | handler(args...)
21 |
22 | # Make long numbers prettier by inserting commas.
23 | #
24 | # @example
25 | # Morris.commas(1234567) -> '1,234,567'
26 | Morris.commas = (num) ->
27 | if num?
28 | ret = if num < 0 then "-" else ""
29 | absnum = Math.abs(num)
30 | intnum = Math.floor(absnum).toFixed(0)
31 | ret += intnum.replace(/(?=(?:\d{3})+$)(?!^)/g, ',')
32 | strabsnum = absnum.toString()
33 | if strabsnum.length > intnum.length
34 | ret += strabsnum.slice(intnum.length)
35 | ret
36 | else
37 | '-'
38 |
39 | # Zero-pad numbers to two characters wide.
40 | #
41 | # @example
42 | # Morris.pad2(1) -> '01'
43 | Morris.pad2 = (number) -> (if number < 10 then '0' else '') + number
44 |
--------------------------------------------------------------------------------
/tools/priTools/updateWitnessVersion.js:
--------------------------------------------------------------------------------
1 | require( '../../db.js' );
2 | var mongoose = require('mongoose');
3 | var Witness = mongoose.model('Witness');
4 | var Block = mongoose.model('Block');
5 |
6 | var hex2ascii = function (hexIn) {
7 | var hex = hexIn.toString();
8 | var str = '';
9 | for (var i = 0; i < hex.length; i += 2)
10 | str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
11 | return str;
12 | }
13 |
14 | async function test(){
15 | let witnesses = await Witness.aggregate([{$lookup:{from:"blocks",localField:"lastCountTo",foreignField:"number",as: "block"}}]).exec()
16 | for (var i = 0; i < witnesses.length; i++) {
17 | let extraData = hex2ascii(witnesses[i].block[0].extraData);
18 | if (extraData && extraData.length > 5) {
19 | // console.log(extraData);
20 | let version = extraData.charCodeAt(3)+"."+extraData.charCodeAt(4)+"."+extraData.charCodeAt(5);
21 | // console.log(witnesses[i].witness, version);
22 | // console.log(witnesses[i].witness, version);
23 | await Witness.update({"witness":witnesses[i].witness},
24 | {$set:{"version": version}}
25 | ).exec()
26 | }
27 | }
28 | console.log("finished");
29 | }
30 |
31 | test()
32 |
--------------------------------------------------------------------------------
/public/plugins/bootstrap-hover-dropdown/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | The MIT License (MIT)
3 |
4 | Copyright (c) 2012-2014 Cameron Spear http://cameronspear.com
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10 | the Software, and to permit persons to whom the Software is furnished to do so,
11 | subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
23 |
24 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/area.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | // Use Morris.Area instead of Morris.Line
17 | Morris.Area({
18 | element: 'graph',
19 | data: [
20 | {x: '2010 Q4', y: 3, z: 7},
21 | {x: '2011 Q1', y: 3, z: 4},
22 | {x: '2011 Q2', y: null, z: 1},
23 | {x: '2011 Q3', y: 2, z: 5},
24 | {x: '2011 Q4', y: 8, z: 2},
25 | {x: '2012 Q1', y: 4, z: 4}
26 | ],
27 | xkey: 'x',
28 | ykeys: ['y', 'z'],
29 | labels: ['Y', 'Z']
30 | }).on('click', function(i, row){
31 | console.log(i, row);
32 | });
33 |
34 |
35 |
--------------------------------------------------------------------------------
/public/plugins/morris/spec/lib/grid/auto_grid_lines_spec.coffee:
--------------------------------------------------------------------------------
1 | describe 'Morris.Grid#autoGridLines', ->
2 |
3 | beforeEach ->
4 | @subject = Morris.Grid.prototype.autoGridLines
5 |
6 | it 'should draw at fixed intervals', ->
7 | @subject(0, 4, 5).should.deep.equal [0, 1, 2, 3, 4]
8 | @subject(0, 400, 5).should.deep.equal [0, 100, 200, 300, 400]
9 |
10 | it 'should pick intervals that show significant numbers', ->
11 | @subject(102, 499, 5).should.deep.equal [100, 200, 300, 400, 500]
12 |
13 | it 'should draw zero when it falls within [ymin..ymax]', ->
14 | @subject(-100, 300, 5).should.deep.equal [-100, 0, 100, 200, 300]
15 | @subject(-50, 350, 5).should.deep.equal [-125, 0, 125, 250, 375]
16 | @subject(-400, 400, 5).should.deep.equal [-400, -200, 0, 200, 400]
17 | @subject(100, 500, 5).should.deep.equal [100, 200, 300, 400, 500]
18 | @subject(-500, -100, 5).should.deep.equal [-500, -400, -300, -200, -100]
19 |
20 | it 'should generate decimal labels to 2 significant figures', ->
21 | @subject(0, 1, 5).should.deep.equal [0, 0.25, 0.5, 0.75, 1]
22 | @subject(0.1, 0.5, 5).should.deep.equal [0.1, 0.2, 0.3, 0.4, 0.5]
23 |
24 | it 'should use integer intervals for intervals larger than 1', ->
25 | @subject(0, 9, 5).should.deep.equal [0, 3, 6, 9, 12]
26 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/donut-colors.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
15 |
16 |
19 | Morris.Donut({
20 | element: 'graph',
21 | data: [
22 | {value: 70, label: 'foo'},
23 | {value: 15, label: 'bar'},
24 | {value: 10, label: 'baz'},
25 | {value: 5, label: 'A really really long label'}
26 | ],
27 | backgroundColor: '#ccc',
28 | labelColor: '#060',
29 | colors: [
30 | '#0BA462',
31 | '#39B580',
32 | '#67C69D',
33 | '#95D7BB'
34 | ],
35 | formatter: function (x) { return x + "%"}
36 | });
37 |
38 |
39 |
--------------------------------------------------------------------------------
/public/plugins/morris/lib/morris.hover.coffee:
--------------------------------------------------------------------------------
1 | class Morris.Hover
2 | # Displays contextual information in a floating HTML div.
3 |
4 | @defaults:
5 | class: 'morris-hover morris-default-style'
6 |
7 | constructor: (options = {}) ->
8 | @options = $.extend {}, Morris.Hover.defaults, options
9 | @el = $ ""
10 | @el.hide()
11 | @options.parent.append(@el)
12 |
13 | update: (html, x, y) ->
14 | if not html
15 | @hide()
16 | else
17 | @html(html)
18 | @show()
19 | @moveTo(x, y)
20 |
21 | html: (content) ->
22 | @el.html(content)
23 |
24 | moveTo: (x, y) ->
25 | parentWidth = @options.parent.innerWidth()
26 | parentHeight = @options.parent.innerHeight()
27 | hoverWidth = @el.outerWidth()
28 | hoverHeight = @el.outerHeight()
29 | left = Math.min(Math.max(0, x - hoverWidth / 2), parentWidth - hoverWidth)
30 | if y?
31 | top = y - hoverHeight - 10
32 | if top < 0
33 | top = y + 10
34 | if top + hoverHeight > parentHeight
35 | top = parentHeight / 2 - hoverHeight / 2
36 | else
37 | top = parentHeight / 2 - hoverHeight / 2
38 | @el.css(left: left + "px", top: parseInt(top) + "px")
39 |
40 | show: ->
41 | @el.show()
42 |
43 | hide: ->
44 | @el.hide()
45 |
--------------------------------------------------------------------------------
/routes/contractListData.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | module.exports = function(req, res){
3 | var page = req.body.page;
4 | if(page<0 || page==undefined)
5 | page = 0;
6 | var resultData={"totalPage":0, "list":null, "page":page};
7 | var respData = "";
8 | try{
9 | var pageSize = 10;
10 | var ERC_type = req.body.ERC;
11 | var mongoose = require( 'mongoose' );
12 | var Contract = mongoose.model('Contract');
13 | var findCondition;
14 | if(ERC_type==-1)
15 | findCondition = {};
16 | else
17 | findCondition = {ERC:ERC_type};
18 | Contract.count(findCondition).exec(function(err,c){
19 | resultData.totalPage = Math.ceil(c/pageSize);
20 | if(page>=resultData.totalPage){
21 | resultData.page = 0;
22 | page=0;
23 | }
24 | contractFind = Contract.find(findCondition, "contractName tokenName ERC address").skip(page*pageSize).limit(pageSize).lean(true);
25 | contractFind.exec(function (err, docs) {
26 | resultData.list=docs;
27 | respData = JSON.stringify(resultData);
28 | res.write(respData);
29 | res.end();
30 | });
31 | });
32 | } catch (e) {
33 | console.error(e);
34 | res.write(JSON.stringify(resultData));
35 | res.end();
36 | }
37 | };
--------------------------------------------------------------------------------
/public/plugins/morris/examples/negative.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | var neg_data = [
17 | {"period": "2011-08-12", "a": 100},
18 | {"period": "2011-03-03", "a": 75},
19 | {"period": "2010-08-08", "a": 50},
20 | {"period": "2010-05-10", "a": 25},
21 | {"period": "2010-03-14", "a": 0},
22 | {"period": "2010-01-10", "a": -25},
23 | {"period": "2009-12-10", "a": -50},
24 | {"period": "2009-10-07", "a": -75},
25 | {"period": "2009-09-25", "a": -100}
26 | ];
27 | Morris.Line({
28 | element: 'graph',
29 | data: neg_data,
30 | xkey: 'period',
31 | ykeys: ['a'],
32 | labels: ['Series A'],
33 | units: '%'
34 | });
35 |
36 |
37 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/decimal-custom-hover.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | var decimal_data = [];
17 | for (var x = 0; x <= 360; x += 10) {
18 | decimal_data.push({
19 | x: x,
20 | y: 1.5 + 1.5 * Math.sin(Math.PI * x / 180).toFixed(4)
21 | });
22 | }
23 | window.m = Morris.Line({
24 | element: 'graph',
25 | data: decimal_data,
26 | xkey: 'x',
27 | ykeys: ['y'],
28 | labels: ['sin(x)'],
29 | parseTime: false,
30 | hoverCallback: function (index, options, default_content, row) {
31 | return default_content.replace("sin(x)", "1.5 + 1.5 sin(" + row.x + ")");
32 | },
33 | xLabelMargin: 10,
34 | integerYLabels: true
35 | });
36 |
37 |
38 |
--------------------------------------------------------------------------------
/public/plugins/morris/examples/non-date.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
16 | var day_data = [
17 | {"elapsed": "I", "value": 34},
18 | {"elapsed": "II", "value": 24},
19 | {"elapsed": "III", "value": 3},
20 | {"elapsed": "IV", "value": 12},
21 | {"elapsed": "V", "value": 13},
22 | {"elapsed": "VI", "value": 22},
23 | {"elapsed": "VII", "value": 5},
24 | {"elapsed": "VIII", "value": 26},
25 | {"elapsed": "IX", "value": 12},
26 | {"elapsed": "X", "value": 19}
27 | ];
28 | Morris.Line({
29 | element: 'graph',
30 | data: day_data,
31 | xkey: 'elapsed',
32 | ykeys: ['value'],
33 | labels: ['value'],
34 | parseTime: false
35 | });
36 |
37 |
38 |
--------------------------------------------------------------------------------
/public/css/default.css:
--------------------------------------------------------------------------------
1 | /*
2 | #1 = 35A49C
3 | #2 = 79CDC0
4 | */
5 | a {
6 | color: #35A49C;
7 | }
8 | a:hover {
9 | color: #79CDC0;
10 | }
11 |
12 | /* menu */
13 | .nav>li>a:hover {
14 | color: #79CDC0;
15 | }
16 |
17 | .navbar .navbar-nav > .active > a {
18 | color: #79CDC0;
19 | }
20 |
21 | /* flexslider */
22 | .flex-control-paging li a {
23 | background: #35A49C;
24 | }
25 |
26 | .flex-direction-nav a:hover{
27 | background-color:#35A49C;
28 | }
29 |
30 | .testimonial span.author a {
31 | color: #79CDC0;
32 | }
33 |
34 | /* --- icon box hover --- */
35 | .hi-icon-effect-5 .hi-icon {
36 | color: #35A49C;
37 | box-shadow: 0 0 0 4px #35A49C;
38 | }
39 | .no-touch .hi-icon-effect-5 .hi-icon:hover {
40 | background: #35A49C;
41 | box-shadow: 0 0 0 8px #79CDC0;
42 | }
43 |
44 |
45 | /* portfolio */
46 | .portfolio-item .portfolio-desc {
47 | background: #35A49C;
48 | }
49 |
50 | /* btn */
51 | .btn-theme {
52 | background: #79CDC0;
53 | }
54 | .btn-theme:hover,.btn-theme:focus,.btn-theme:active{
55 | background: #35A49C;
56 | }
57 | .btn-cta,.btn-cta.btn-lg {
58 | background: #35A49C;
59 | border-color: #79CDC0;
60 | }
61 |
62 | .btn-cta:focus,.btn-cta:active{
63 | border-color: #35A49C;
64 | }
65 |
66 | /* contact */
67 | .validation {
68 | color:#35A49C;
69 | }
70 |
71 | /* footer */
72 | .social-circle li a {
73 | background:#35A49C;
74 | }
75 |
76 | a.scrollup{
77 | background:#35A49C;
78 | }
--------------------------------------------------------------------------------
/public/js/web3utils.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Checks if the given string is strictly an address
4 | *
5 | * @method isStrictAddress
6 | * @param {String} address the given HEX adress
7 | * @return {Boolean}
8 | */
9 | var isStrictAddress = function (address) {
10 | return /^0x[0-9a-f]{40}$/i.test(address);
11 | };
12 |
13 | /**
14 | * Checks if the given string is an address
15 | *
16 | * @method isAddress
17 | * @param {String} address the given HEX adress
18 | * @return {Boolean}
19 | */
20 | var isAddress = function (address) {
21 | if (!/^(0x)?[0-9a-f]{40}$/i.test(address)) {
22 | // check if it has the basic requirements of an address
23 | return false;
24 | } else if (/^(0x)?[0-9a-f]{40}$/.test(address) || /^(0x)?[0-9A-F]{40}$/.test(address)) {
25 | // If it's all small caps or all all caps, return true
26 | return true;
27 | } else {
28 | // Otherwise check each case
29 | return false;
30 | }
31 | };
32 |
33 | var isTransaction = function (tx) {
34 | if (!/^(0x)?[0-9a-f]{64}$/i.test(tx)) {
35 | // check if it has the basic requirements of an address
36 | return false;
37 | } else if (/^(0x)?[0-9a-f]{64}$/.test(tx) || /^(0x)?[0-9A-F]{64}$/.test(tx)) {
38 | // If it's all small caps or all all caps, return true
39 | return true;
40 | } else {
41 | // Otherwise check each case
42 | return false;
43 | }
44 | };
--------------------------------------------------------------------------------
/tools/priTools/collectRichestAddr.js:
--------------------------------------------------------------------------------
1 | require( '../../db.js' );
2 | const fs = require('fs');
3 | var mongoose = require('mongoose');
4 | var Address = mongoose.model('Address');
5 | // var web3 = require('./../../routes/web3relay').web3;
6 | var Web3 = require('web3');
7 | var rpc = "http://localhost:9646";
8 | var web3 = new Web3(new Web3.providers.HttpProvider(rpc));
9 |
10 | async function test(num){
11 | num = Number(num);
12 | let addresses = await Address.find({}).limit(num * 30).sort({balance:-1}).exec();
13 | let result = new Array(num+1);
14 | result.fill({addr:"",balance:0});
15 | for (let i = 0; i < addresses.length; i++) {
16 | let balance = web3.eth.getBalance(addresses[i].addr);
17 | balance = web3.fromWei(balance, "ether");
18 | let balancenum = Number(balance)
19 | result[num] = {addr:addresses[i].addr,balance:balancenum};
20 | console.log(i);
21 | for (let i = result.length - 1; i > 0; i--) {
22 | if (result[i].balance > result[i-1].balance) {
23 | let temp = result[i];
24 | result[i] = result[i-1];
25 | result[i-1] = temp
26 | } else {
27 | break;
28 | }
29 | }
30 | // console.log(addresses[i].addr, balancenum);
31 | }
32 | for (var i = 0; i < result.length; i++) {
33 | result[i]
34 | fs.appendFileSync('rich.txt', `${result[i].addr} ${result[i].balance}
35 | `);
36 | }
37 | console.log('finished');
38 | }
39 |
40 | test(process.argv[2])
41 |
--------------------------------------------------------------------------------
/public/views/created-tokens.html:
--------------------------------------------------------------------------------
1 |
2 | | TxHash | 7 |Age | 8 |Block | 9 |To | 10 |Amount | 11 |12 | |
|---|---|---|---|---|---|
| {{t.transactionHash}} | 17 |{{t.timestamp | timeDuration}} ago | 18 |{{t.blockNumber}} | 19 |{{t.to}} | 20 |{{t.amount | number}} | 21 |Created | 22 |
16 | // Use Morris.Bar
17 | Morris.Bar({
18 | element: 'graph',
19 | data: [
20 | {x: '2011 Q1', y: 0},
21 | {x: '2011 Q2', y: 1},
22 | {x: '2011 Q3', y: 2},
23 | {x: '2011 Q4', y: 3},
24 | {x: '2012 Q1', y: 4},
25 | {x: '2012 Q2', y: 5},
26 | {x: '2012 Q3', y: 6},
27 | {x: '2012 Q4', y: 7},
28 | {x: '2013 Q1', y: 8}
29 | ],
30 | xkey: 'x',
31 | ykeys: ['y'],
32 | labels: ['Y'],
33 | barColors: function (row, series, type) {
34 | if (type === 'bar') {
35 | var red = Math.ceil(255 * row.y / this.ymax);
36 | return 'rgb(' + red + ',0,0)';
37 | }
38 | else {
39 | return '#000';
40 | }
41 | }
42 | });
43 |
44 |
45 |
--------------------------------------------------------------------------------
/public/plugins/angularjs/angular-cookies.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | AngularJS v1.4.7
3 | (c) 2010-2015 Google, Inc. http://angularjs.org
4 | License: MIT
5 | */
6 | (function(p,c,n){'use strict';function l(b,a,g){var d=g.baseHref(),k=b[0];return function(b,e,f){var g,h;f=f||{};h=f.expires;g=c.isDefined(f.path)?f.path:d;c.isUndefined(e)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",e="");c.isString(h)&&(h=new Date(h));e=encodeURIComponent(b)+"="+encodeURIComponent(e);e=e+(g?";path="+g:"")+(f.domain?";domain="+f.domain:"");e+=h?";expires="+h.toUTCString():"";e+=f.secure?";secure":"";f=e.length+1;4096