├── public ├── vendor │ └── jqplot │ │ ├── examples │ │ ├── jsondata.txt │ │ ├── images │ │ │ ├── bar.png │ │ │ ├── map.png │ │ │ ├── logo.jpg │ │ │ ├── bar-alpha.png │ │ │ ├── bar-opacity.png │ │ │ ├── bar-pointer.png │ │ │ ├── map-opacity.png │ │ │ ├── map-pointer.png │ │ │ ├── preview-opacity.png │ │ │ └── ui-colorpicker.png │ │ ├── ajax-loader.gif │ │ ├── colorpicker │ │ │ └── images │ │ │ │ ├── bar.png │ │ │ │ ├── map.png │ │ │ │ ├── bar-alpha.png │ │ │ │ ├── bar-opacity.png │ │ │ │ ├── bar-pointer.png │ │ │ │ ├── map-opacity.png │ │ │ │ ├── map-pointer.png │ │ │ │ ├── preview-opacity.png │ │ │ │ └── ui-colorpicker.png │ │ ├── jquery-ui │ │ │ ├── css │ │ │ │ ├── smoothness │ │ │ │ │ └── images │ │ │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ │ │ │ ├── ui-icons_454545_256x240.png │ │ │ │ │ │ ├── ui-icons_888888_256x240.png │ │ │ │ │ │ ├── ui-icons_cd0a0a_256x240.png │ │ │ │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ │ │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ │ └── ui-lightness │ │ │ │ │ └── images │ │ │ │ │ ├── ui-icons_228ef1_256x240.png │ │ │ │ │ ├── ui-icons_ef8c08_256x240.png │ │ │ │ │ ├── ui-icons_ffd27a_256x240.png │ │ │ │ │ ├── ui-icons_ffffff_256x240.png │ │ │ │ │ ├── ui-bg_flat_10_000000_40x100.png │ │ │ │ │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ │ │ │ │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ │ │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ │ │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ │ │ │ │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png │ │ │ │ │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ │ │ │ │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ │ │ │ │ └── ui-bg_highlight-soft_100_eeeeee_1x100.png │ │ │ └── js │ │ │ │ └── jquery.effects.blind.min.js │ │ ├── topbanner.inc │ │ ├── syntaxhighlighter │ │ │ ├── scripts │ │ │ │ ├── shBrushJScript.min.js │ │ │ │ ├── shBrushXml.min.js │ │ │ │ ├── shAutoloader.min.js │ │ │ │ ├── shAutoloader.js │ │ │ │ ├── shBrushJScript.js │ │ │ │ └── shBrushXml.js │ │ │ ├── MIT-LICENSE │ │ │ └── styles │ │ │ │ ├── shThemeDefault.min.css │ │ │ │ └── shThemejqPlot.min.css │ │ ├── nav.inc │ │ ├── example.min.js │ │ ├── examples.min.css │ │ └── pieTest2.js │ │ ├── docs │ │ ├── styles │ │ │ └── main.css │ │ ├── index.html │ │ ├── files │ │ │ └── images │ │ │ │ ├── new.png │ │ │ │ ├── logo.jpg │ │ │ │ ├── dualaxis.png │ │ │ │ ├── navdocs.png │ │ │ │ ├── navhome.png │ │ │ │ ├── sample3.png │ │ │ │ ├── samplesm.png │ │ │ │ ├── background.jpg │ │ │ │ ├── basicline.png │ │ │ │ ├── navdocsover.png │ │ │ │ ├── navdownload.png │ │ │ │ ├── navexamples.png │ │ │ │ ├── navhomeover.png │ │ │ │ ├── basiclogaxis.png │ │ │ │ ├── basicoptions.png │ │ │ │ ├── basiclogoptions.png │ │ │ │ ├── navdownloadover.png │ │ │ │ └── navexamplesover.png │ │ └── search │ │ │ ├── NoResults.html │ │ │ ├── ClassesA.html │ │ │ ├── ClassesG.html │ │ │ ├── ClassesT.html │ │ │ ├── ClassesJ.html │ │ │ ├── ClassesS.html │ │ │ ├── ClassesV.html │ │ │ ├── FunctionsI.html │ │ │ ├── ClassesH.html │ │ │ ├── FunctionsQ.html │ │ │ ├── GeneralQ.html │ │ │ ├── PropertiesZ.html │ │ │ ├── FunctionsC.html │ │ │ ├── HooksJ.html │ │ │ ├── FunctionsN.html │ │ │ ├── HooksA.html │ │ │ ├── HooksE.html │ │ │ ├── FunctionsZ.html │ │ │ ├── ClassesL.html │ │ │ ├── ClassesD.html │ │ │ ├── GeneralZ.html │ │ │ ├── FunctionsS.html │ │ │ ├── FunctionsG.html │ │ │ ├── FilesJ.html │ │ │ ├── GeneralW.html │ │ │ ├── PropertiesW.html │ │ │ ├── PropertiesV.html │ │ │ ├── PropertiesG.html │ │ │ ├── PropertiesO.html │ │ │ ├── FunctionsD.html │ │ │ ├── GeneralV.html │ │ │ ├── PropertiesU.html │ │ │ ├── FunctionsM.html │ │ │ ├── GeneralO.html │ │ │ ├── GeneralY.html │ │ │ ├── PropertiesY.html │ │ │ └── GeneralU.html │ │ ├── plugins │ │ ├── jqplot.ciParser.min.js │ │ ├── jqplot.mobile.min.js │ │ ├── jqplot.mobile.js │ │ ├── jqplot.trendline.min.js │ │ ├── jqplot.canvasAxisLabelRenderer.min.js │ │ ├── jqplot.canvasAxisTickRenderer.min.js │ │ └── jqplot.blockRenderer.min.js │ │ ├── MIT-LICENSE.txt │ │ ├── copyright.txt │ │ ├── jqPlotCssStyling.txt │ │ └── jquery.jqplot.min.css ├── favicon.ico ├── images │ ├── logo.png │ ├── loading.gif │ ├── background.png │ ├── background2.png │ └── energi_logo.png ├── themes │ ├── Cosmo │ │ └── thumbnail.png │ ├── Cyborg │ │ └── thumbnail.png │ ├── Darkly │ │ └── thumbnail.png │ ├── Energi │ │ └── thumbnail.png │ ├── Flatly │ │ └── thumbnail.png │ ├── Lumen │ │ └── thumbnail.png │ ├── Paper │ │ └── thumbnail.png │ ├── Slate │ │ └── thumbnail.png │ ├── United │ │ └── thumbnail.png │ ├── Yeti │ │ └── thumbnail.png │ ├── Cerulean │ │ └── thumbnail.png │ ├── Journal │ │ └── thumbnail.png │ ├── Readable │ │ └── thumbnail.png │ ├── Simplex │ │ └── thumbnail.png │ ├── Spacelab │ │ └── thumbnail.png │ ├── Sandstone │ │ └── thumbnail.png │ ├── Superhero │ │ └── thumbnail.png │ └── fonts │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 └── stylesheets │ └── Bariol-Regular&Italic │ ├── Desktop │ ├── Bariol_Regular.otf │ ├── Bariol_Regular_Italic.otf │ └── bariol_desktop_license.pdf │ └── Webfont │ ├── bariol_webfont_license.pdf │ ├── Bariol-Regular-Webfont │ ├── bariol_regular-webfont.eot │ ├── bariol_regular-webfont.ttf │ ├── bariol_regular-webfont.woff │ ├── bariol_regular-webfont.woff2 │ ├── stylesheet.css │ └── generator_config.txt │ └── Bariol-Regular-Italic-Webfont │ ├── bariol_regular_italic-webfont.eot │ ├── bariol_regular_italic-webfont.ttf │ ├── bariol_regular_italic-webfont.woff │ ├── bariol_regular_italic-webfont.woff2 │ ├── generator_config.txt │ └── stylesheet.css ├── tmp └── delete.me ├── views ├── error.jade ├── includes │ ├── rl_labels.jade │ ├── rl_received.jade │ ├── rl_balance.jade │ └── address_history.jade ├── markets │ └── menu.jade ├── network.jade ├── address.jade └── movement.jade ├── spec ├── support │ └── jasmine.json └── marketSpec.js ├── models ├── richlist.js ├── peers.js ├── markets.js ├── address.js ├── tx.js ├── stats.js └── heavy.js ├── .gitignore ├── Vagrantfile ├── futoin.json ├── package.json ├── bin ├── cluster └── instance ├── scripts ├── benchmark.js └── peers.js ├── UPGRADE ├── LICENSE └── lib ├── markets ├── empoex.js ├── yobit.js ├── poloniex.js └── bittrex.js └── rpc.js /public/vendor/jqplot/examples/jsondata.txt: -------------------------------------------------------------------------------- 1 | [[1, 3, 2, 4, 6, 9]] -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/styles/main.css: -------------------------------------------------------------------------------- 1 | @import URL("1.css"); 2 | @import URL("2.css"); 3 | -------------------------------------------------------------------------------- /tmp/delete.me: -------------------------------------------------------------------------------- 1 | This file is used to ensure the tmp folder syncs with git. It's safe to delete this file. -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/images/logo.png -------------------------------------------------------------------------------- /public/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/images/loading.gif -------------------------------------------------------------------------------- /public/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/images/background.png -------------------------------------------------------------------------------- /public/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/images/background2.png -------------------------------------------------------------------------------- /public/images/energi_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/images/energi_logo.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /views/error.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | h1= message 5 | h2= error.status 6 | //- pre #{error.stack} 7 | -------------------------------------------------------------------------------- /public/themes/Cosmo/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Cosmo/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Cyborg/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Cyborg/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Darkly/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Darkly/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Energi/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Energi/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Flatly/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Flatly/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Lumen/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Lumen/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Paper/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Paper/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Slate/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Slate/thumbnail.png -------------------------------------------------------------------------------- /public/themes/United/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/United/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Yeti/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Yeti/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Cerulean/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Cerulean/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Journal/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Journal/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Readable/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Readable/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Simplex/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Simplex/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Spacelab/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Spacelab/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Sandstone/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Sandstone/thumbnail.png -------------------------------------------------------------------------------- /public/themes/Superhero/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/Superhero/thumbnail.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/bar.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/map.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/new.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/ajax-loader.gif -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/logo.jpg -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/logo.jpg -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/dualaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/dualaxis.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navdocs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navdocs.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navhome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navhome.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/sample3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/sample3.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/samplesm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/samplesm.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/bar-alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/bar-alpha.png -------------------------------------------------------------------------------- /public/themes/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/themes/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/themes/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/themes/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/background.jpg -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/basicline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/basicline.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navdocsover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navdocsover.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navdownload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navdownload.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navexamples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navexamples.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navhomeover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navhomeover.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/bar-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/bar-opacity.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/bar-pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/bar-pointer.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/map-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/map-opacity.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/map-pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/map-pointer.png -------------------------------------------------------------------------------- /spec/support/jasmine.json: -------------------------------------------------------------------------------- 1 | { 2 | "spec_dir": "spec", 3 | "spec_files": [ 4 | "*[sS]pec.js" 5 | ], 6 | "helpers": [ 7 | "helpers/*.js" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/basiclogaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/basiclogaxis.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/basicoptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/basicoptions.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/bar.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/map.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/preview-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/preview-opacity.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/images/ui-colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/images/ui-colorpicker.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/basiclogoptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/basiclogoptions.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navdownloadover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navdownloadover.png -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/files/images/navexamplesover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/docs/files/images/navexamplesover.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/bar-alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/bar-alpha.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/bar-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/bar-opacity.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/bar-pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/bar-pointer.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/map-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/map-opacity.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/map-pointer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/map-pointer.png -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Desktop/Bariol_Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Desktop/Bariol_Regular.otf -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/preview-opacity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/preview-opacity.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/colorpicker/images/ui-colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/colorpicker/images/ui-colorpicker.png -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Desktop/Bariol_Regular_Italic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Desktop/Bariol_Regular_Italic.otf -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Desktop/bariol_desktop_license.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Desktop/bariol_desktop_license.pdf -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/bariol_webfont_license.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/bariol_webfont_license.pdf -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.eot -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.ttf -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.woff -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/bariol_regular-webfont.woff2 -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/vendor/jqplot/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.eot -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.ttf -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.woff -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/energicryptocurrency/gen2-explorer/HEAD/public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/bariol_regular_italic-webfont.woff2 -------------------------------------------------------------------------------- /models/richlist.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var RichlistSchema = new Schema({ 5 | coin: { type: String }, 6 | received: { type: Array, default: []}, 7 | balance: { type: Array, default: [] }, 8 | }); 9 | 10 | module.exports = mongoose.model('Richlist', RichlistSchema); -------------------------------------------------------------------------------- /models/peers.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var PeersSchema = new Schema({ 5 | createdAt: { type: Date, expires: 86400, default: Date.now()}, 6 | address: { type: String, default: "" }, 7 | protocol: { type: String, default: "" }, 8 | version: { type: String, default: "" }, 9 | country: { type: String, default: "" } 10 | }); 11 | 12 | module.exports = mongoose.model('Peers', PeersSchema); 13 | -------------------------------------------------------------------------------- /models/markets.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var MarketsSchema = new Schema({ 5 | market: { type: String }, 6 | summary: { type: Object, default: {} }, 7 | chartdata: { type: Array, default: [] }, 8 | buys: { type: Array, default: [] }, 9 | sells: { type: Array, default: [] }, 10 | history: { type: Array, default: [] }, 11 | }); 12 | 13 | module.exports = mongoose.model('Markets', MarketsSchema); -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/topbanner.inc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/address.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var AddressSchema = new Schema({ 5 | a_id: { type: String, unique: true, index: true}, 6 | txs: { type: Array, default: [] }, 7 | received: { type: Number, default: 0, index: true}, 8 | sent: { type: Number, default: 0 }, 9 | balance: {type: Number, default: 0, index: true}, 10 | }, {id: false}); 11 | 12 | module.exports = mongoose.model('Address', AddressSchema); 13 | 14 | -------------------------------------------------------------------------------- /models/tx.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var TxSchema = new Schema({ 5 | txid: { type: String, lowercase: true, unique: true, index: true}, 6 | vin: { type: Array, default: [] }, 7 | vout: { type: Array, default: [] }, 8 | total: { type: Number, default: 0 }, 9 | timestamp: { type: Number, default: 0, index: true }, 10 | blockhash: { type: String, index: true }, 11 | blockindex: { type: Number, default: 0, index: true }, 12 | }, {id: false}); 13 | 14 | module.exports = mongoose.model('Tx', TxSchema); 15 | -------------------------------------------------------------------------------- /models/stats.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var StatsSchema = new Schema({ 5 | coin: { type: String }, 6 | count: { type: Number, default: 1 }, 7 | last: { type: Number, default: 1 }, 8 | //difficulty: { type: Object, default: {} }, 9 | //hashrate: { type: String, default: 'N/A' }, 10 | supply: { type: Number, default: 0 }, 11 | //last_txs: { type: Array, default: [] }, 12 | connections: { type: Number, default: 0 }, 13 | last_price: { type: Number, default: 0 }, 14 | }); 15 | 16 | module.exports = mongoose.model('coinstats', StatsSchema); -------------------------------------------------------------------------------- /models/heavy.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , Schema = mongoose.Schema; 3 | 4 | var HeavySchema = new Schema({ 5 | coin: { type: String }, 6 | lvote: { type: Number, default: 0 }, 7 | reward: { type: Number, default: 0 }, 8 | supply: { type: Number, default: 0 }, 9 | cap: { type: Number, default: 0 }, 10 | estnext: { type: Number, default: 0 }, 11 | phase: { type: String, default: 'N/A'}, 12 | maxvote: { type: Number, default: 0 }, 13 | nextin: { type: String, default: 'N/A'}, 14 | votes: { type: Array, default: [] }, 15 | }); 16 | 17 | module.exports = mongoose.model('Heavy', HeavySchema); 18 | 19 | /* 20 | votes : [{ count: 0, reward: 0, vote: 0}] 21 | */ 22 | -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Generated by Font Squirrel (https://www.fontsquirrel.com) on November 2, 2016 */ 2 | 3 | 4 | 5 | @font-face { 6 | font-family: 'bariolregular'; 7 | src: url('bariol_regular-webfont.eot'); 8 | src: url('bariol_regular-webfont.eot?#iefix') format('embedded-opentype'), 9 | url('bariol_regular-webfont.woff2') format('woff2'), 10 | url('bariol_regular-webfont.woff') format('woff'), 11 | url('bariol_regular-webfont.ttf') format('truetype'), 12 | url('bariol_regular-webfont.svg#bariolregular') format('svg'); 13 | font-weight: normal; 14 | font-style: normal; 15 | 16 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Deployed apps should consider commenting this line out: 24 | # see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git 25 | node_modules 26 | 27 | settings.json 28 | .idea 29 | *~ 30 | *.ico 31 | #*.png 32 | 33 | .vagrant 34 | -------------------------------------------------------------------------------- /views/includes/rl_labels.jade: -------------------------------------------------------------------------------- 1 | if settings.labels[item.a_id] 2 | if settings.labels[item.a_id].type 3 | label(class='label label-#{settings.labels[item.a_id].type} hidden-xs', style='margin-left:15px;') 4 | =settings.labels[item.a_id].label 5 | if settings.labels[item.a_id].url 6 | a(href='#{settings.labels[item.a_id].url}', target='_blank') 7 | span.fa.fa-question-circle(style='margin-left:5px;') 8 | else 9 | label.label.label-default.hidden-xs(style='margin-left:15px;') 10 | =settings.labels[item.a_id].label 11 | if settings.labels[item.a_id].url 12 | a(href='#{settings.labels[item.a_id].url}', target='_blank') 13 | span.fa.fa-question-circle(style='margin-left:5px;') -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Webfont/generator_config.txt: -------------------------------------------------------------------------------- 1 | # Font Squirrel Font-face Generator Configuration File 2 | # Upload this file to the generator to recreate the settings 3 | # you used to create these fonts. 4 | 5 | {"mode":"expert","formats":["ttf","woff","woff2","eotz","svg"],"tt_instructor":"default","fix_gasp":"xy","fix_vertical_metrics":"Y","metrics_ascent":"","metrics_descent":"","metrics_linegap":"","add_spaces":"Y","add_hyphens":"Y","fallback":"none","fallback_custom":"100","webonly":"Y","options_subset":"none","subset_custom":"","subset_custom_range":"","subset_ot_features_list":"","css_stylesheet":"stylesheet.css","filename_suffix":"-webfont","emsquare":"2048","spacing_adjustment":"0","rememberme":"Y"} -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/generator_config.txt: -------------------------------------------------------------------------------- 1 | # Font Squirrel Font-face Generator Configuration File 2 | # Upload this file to the generator to recreate the settings 3 | # you used to create these fonts. 4 | 5 | {"mode":"expert","formats":["ttf","woff","woff2","eotz","svg"],"tt_instructor":"default","fix_gasp":"xy","fix_vertical_metrics":"Y","metrics_ascent":"","metrics_descent":"","metrics_linegap":"","add_spaces":"Y","add_hyphens":"Y","fallback":"none","fallback_custom":"100","webonly":"Y","options_subset":"none","subset_custom":"","subset_custom_range":"","subset_ot_features_list":"","css_stylesheet":"stylesheet.css","filename_suffix":"-webfont","emsquare":"2048","spacing_adjustment":"0","rememberme":"Y"} -------------------------------------------------------------------------------- /public/stylesheets/Bariol-Regular&Italic/Webfont/Bariol-Regular-Italic-Webfont/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Generated by Font Squirrel (https://www.fontsquirrel.com) on October 6, 2016 */ 2 | 3 | 4 | 5 | @font-face { 6 | font-family: 'bariolitalic'; 7 | src: url('bariol_regular_italic-webfont.eot'); 8 | src: url('bariol_regular_italic-webfont.eot?#iefix') format('embedded-opentype'), 9 | url('bariol_regular_italic-webfont.woff2') format('woff2'), 10 | url('bariol_regular_italic-webfont.woff') format('woff'), 11 | url('bariol_regular_italic-webfont.ttf') format('truetype'), 12 | url('bariol_regular_italic-webfont.svg#bariolitalic') format('svg'); 13 | font-weight: normal; 14 | font-style: normal; 15 | 16 | } -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | 2 | Vagrant.configure("2") do |config| 3 | config.vm.define 'db' do |node| 4 | node.vm.provider "virtualbox" do |v| 5 | v.memory = 256 6 | end 7 | node.vm.box = "bento/ubuntu-18.04" 8 | 9 | node.vm.network "forwarded_port", guest: 27017, host: 27017, host_ip: "127.0.0.1" 10 | 11 | node.vm.provision "shell", inline: %Q[ 12 | apt-get install -y mongodb-server; 13 | /bin/echo -e 'use blockex\n db.createUser( { user: "blockexuser", pwd: "blockex", roles: [ "readWrite" ] } ) ' | mongo; 14 | echo 'auth = true' >> /etc/mongodb.conf; 15 | sed -i 's/bind_ip = 127.0.0.1/bind_ip = 0.0.0.0/g' /etc/mongodb.conf; 16 | systemctl restart mongodb.service; 17 | ] 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /public/vendor/jqplot/plugins/jqplot.ciParser.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.ciParser=function(g,l){var m=[],o,n,h,f,e,c;if(typeof(g)=="string"){g=a.jqplot.JSON.parse(g,d)}else{if(typeof(g)=="object"){for(e in g){for(h=0;h=0){i=/^\/Date\((-?[0-9]+)\)\/$/.exec(k);if(i){return parseInt(i[1],10)}}return k}}for(var b in g){o=[];n=g[b];switch(b){case"PriceTicks":for(h=0;h[:\\w-\\.]+)","xg").exec(i),c=[];if(f.attributes!=null){var e,h=new XRegExp("(? [\\w:\\-\\.]+)\\s*=\\s*(? \".*?\"|'.*?'|\\w+)","xg");while((e=h.exec(i))!=null){c.push(new g(e.name,f.index+e.index,"color1"));c.push(new g(e.value,f.index+e.index+e[0].indexOf(e.value),"string"))}}if(d!=null){c.push(new g(d.name,f.index+d[0].indexOf(d.name),"keyword"))}return c}this.regexList=[{regex:new XRegExp("(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)","gm"),css:"color2"},{regex:SyntaxHighlighter.regexLib.xmlComments,css:"comments"},{regex:new XRegExp("(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)","sg"),func:b}]}a.prototype=new SyntaxHighlighter.Highlighter();a.aliases=["xml","xhtml","xslt","html"];SyntaxHighlighter.brushes.Xml=a;typeof(exports)!="undefined"?exports.Brush=a:null})(); -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/syntaxhighlighter/scripts/shAutoloader.min.js: -------------------------------------------------------------------------------- 1 | eval(function(h,b,j,f,g,i){g=function(a){return(a35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){i[g(j)]=f[j]||g(j)}f=[function(a){return i[a]}];g=function(){return"\\w+"};j=1}while(j--){if(f[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),f[j])}}return h}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d 0 && vin > 0 23 | td.info 24 | - var amount = (out - vin) / 100000000 25 | if amount < 0 26 | - amount = amount * -1 27 | | - #{amount.toFixed(8)} 28 | else if amount > 0 29 | | + #{amount.toFixed(8)} 30 | else 31 | | #{amount.toFixed(8)} 32 | else if out > 0 33 | td.success 34 | - var amount = out / 100000000 35 | | + #{amount.toFixed(8)} 36 | else 37 | td.danger 38 | - var amount = vin / 100000000 39 | | - #{amount.toFixed(8)} -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/nav.inc: -------------------------------------------------------------------------------- 1 |
2 | Previous Examples Next'; 38 | 39 | ?> 40 |
41 | -------------------------------------------------------------------------------- /views/markets/menu.jade: -------------------------------------------------------------------------------- 1 | extends ../layout 2 | 3 | block content 4 | script. 5 | $(document).ready(function(){ 6 | $('.order-table').dataTable( { 7 | info: false, 8 | paging: false, 9 | searching: false, 10 | ordering: false, 11 | scrollY: '250px', 12 | autowidth: true, 13 | responsive: true 14 | }); 15 | $('.market-toggle').tooltip({ 16 | animation: true, 17 | delay: { hide: 500 }, 18 | }); 19 | $('.view-summary').on('click', function(){ 20 | $('#chart-panel').hide(); 21 | $('#summary-panel').show(); 22 | }); 23 | $('.view-chart').on('click', function(){ 24 | $('#summary-panel').hide(); 25 | $('#chart-panel').show(); 26 | }); 27 | }); 28 | .col-xs-12.col-md-12 29 | .hidden-xs.nav.navbar.navbar-default(role='navigation' id='market_menu') 30 | .container-fluid 31 | .collapse.navbar-collapse(id='navbar-collapse') 32 | ul.nav.navbar-nav 33 | each mkt in settings.markets.enabled 34 | if market == mkt 35 | li.active 36 | a.navbar-link.loading(href='/markets/#{mkt}') #{settings.locale[mkt]} 37 | else 38 | li 39 | a.navbar-link.loading(href='/markets/#{mkt}') #{settings.locale[mkt]} 40 | block market_view -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/NoResults.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
No Matches
-------------------------------------------------------------------------------- /scripts/benchmark.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose') 2 | , db = require('../lib/database') 3 | , Tx = require('../models/tx') 4 | , Address = require('../models/address') 5 | , settings = require('../lib/settings'); 6 | 7 | 8 | var COUNT = 5000; //number of blocks to index 9 | 10 | function exit() { 11 | mongoose.disconnect(); 12 | process.exit(0); 13 | } 14 | 15 | var dbString = 'mongodb://' + settings.dbsettings.user; 16 | dbString = dbString + ':' + settings.dbsettings.password; 17 | dbString = dbString + '@' + settings.dbsettings.address; 18 | dbString = dbString + ':' + settings.dbsettings.port; 19 | dbString = dbString + "/IQUIDUS-BENCHMARK"; 20 | 21 | mongoose.connect(dbString, function(err) { 22 | if (err) { 23 | console.log('Unable to connect to database: %s', dbString); 24 | console.log('Aborting'); 25 | exit(); 26 | } 27 | Tx.remove({}, function(err) { 28 | Address.remove({}, function(err2) { 29 | var s_timer = new Date().getTime(); 30 | db.update_tx_db(settings.coin, 1, COUNT, settings.update_timeout, function(){ 31 | var e_timer = new Date().getTime(); 32 | Tx.count({}, function(txerr, txcount){ 33 | Address.count({}, function(aerr, acount){ 34 | var stats = { 35 | tx_count: txcount, 36 | address_count: acount, 37 | seconds: (e_timer - s_timer)/1000, 38 | }; 39 | console.log(stats); 40 | exit(); 41 | }); 42 | }); 43 | }); 44 | }); 45 | }); 46 | }); -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/syntaxhighlighter/scripts/shAutoloader.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d 1.6.1 4 | * Add new cryptsy_id and hashrate_units settings (see settings.json.template) 5 | * remove tmp/market.pid (if it exists) 6 | 7 | 1.5.2 -> 1.6.0 8 | * Change market settings to new format (see settings.json.template) 9 | * Reindex explorerdb (node --stack-size=15000 scripts/sync.js index reindex) 10 | 11 | 1.5.1 -> 1.5.2 12 | * nothing required, coinbase balance / wealth distribution will be fixed in next sync. 13 | run sync.js index check to force this if required. 14 | 15 | 1.5.0 -> 1.5.1 16 | * Optional - Add new labels setting to settings.json (see settings.json.template) 17 | 18 | 1.4.1 -> 1.5.0 19 | * New database/reindex 20 | * Add new settings to settings.json (see settings.json.template) 21 | * theme 22 | * last_txs 23 | 24 | 1.4.0 -> 1.4.1 25 | * New database created with read/write access. See README. 26 | * Add new settings to settings.json (see settings.json.template) 27 | * richlist 28 | * logo 29 | 30 | 1.3.x -> 1.4.0 31 | * New database 32 | * Add new settings to settings.json (see settings.json.template) 33 | * show_sent_received 34 | 35 | * note: mintpal support has been dropped, replaced with poloniex. Make sure market settings reflect this (see settings.json.template) 36 | 37 | 1.3.3 -> 1.3.4 38 | * Install new dependency (qr-image) 39 | npm install 40 | 41 | 1.3.2 -> 1.3.3 42 | * Restart explorer 43 | 44 | 1.3.1 -> 1.3.2 45 | * New database 46 | * Add new settings to settings.json (see settings.json.template) 47 | * heavy 48 | * supply 49 | * txcount -------------------------------------------------------------------------------- /spec/marketSpec.js: -------------------------------------------------------------------------------- 1 | describe('market', function() { 2 | var poloniex = require('../lib/poloniex'); 3 | 4 | describe('poloniex', function() { 5 | beforeEach(function() { 6 | originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL; 7 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; 8 | }); 9 | 10 | it('should return trade history', function(done){ 11 | poloniex.get_trades('DRK', 'BTC', function(err, trades) { 12 | expect(err).toEqual(null); 13 | expect(trades.length).toEqual(200); 14 | done(); 15 | }); 16 | }); 17 | 18 | it('should return orderbook', function(done){ 19 | poloniex.get_orders('DRK', 'BTC', function(err, orders) { 20 | expect(err).toEqual(null); 21 | expect(orders.asks.length).toEqual(50); 22 | expect(orders.bids.length).toEqual(50); 23 | expect(orders.isFrozen).toEqual('0'); 24 | done(); 25 | }); 26 | }); 27 | 28 | it('should return summary', function(done){ 29 | poloniex.get_summary('DRK', 'BTC', function(err, summary) { 30 | expect(err).toEqual(null); 31 | expect(summary.isFrozen).toEqual('0'); 32 | done(); 33 | }); 34 | }); 35 | 36 | it('should return chartdata', function(done){ 37 | poloniex.get_chartdata('DRK', 'BTC', 0, function(err, chartdata) { 38 | expect(err).toEqual(null); 39 | expect(chartdata.length).toBeGreaterThan(10); 40 | done(); 41 | }); 42 | }); 43 | 44 | afterEach(function() { 45 | jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout; 46 | }); 47 | }); 48 | }); 49 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Iquidus Technology 2 | Copyright (c) 2015, Luke Williams 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | * Neither the name of Iquidus Technology nor the names of its 16 | contributors may be used to endorse or promote products derived from 17 | this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 23 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /lib/markets/empoex.js: -------------------------------------------------------------------------------- 1 | var request = require('request'); 2 | 3 | var base_url = 'https://api.empoex.com'; 4 | 5 | function get_summary(coin, exchange, cb) { 6 | var req_url = base_url + '/marketinfo/' + coin + '-' + exchange; 7 | request({uri: req_url, json: true}, function (error, response, body) { 8 | if (body.length < 1) { 9 | return cb('Pair not found ' + coin + '-' + exchange, null) 10 | } else { 11 | return cb (null, body[0]); 12 | } 13 | }); 14 | } 15 | 16 | function get_trades(coin, exchange, cb) { 17 | var req_url = base_url + '/markethistory/' + coin + '-' + exchange; 18 | request({uri: req_url, json: true}, function (error, response, body) { 19 | if (body.length < 1) { 20 | return cb('Pair not found ' + coin + '-' + exchange, null) 21 | } else { 22 | return cb (null, body[coin + '-' + exchange]); 23 | } 24 | }); 25 | } 26 | 27 | function get_orders(coin, exchange, cb) { 28 | var req_url = base_url + '/orderbook/' + coin + '-' + exchange; 29 | request({uri: req_url, json: true}, function (error, response, body) { 30 | if (body[coin + '-' + exchange]) { 31 | var obj = body[coin + '-' + exchange]; 32 | return cb(null, obj.buy, obj.sell); 33 | } else { 34 | return cb('Pair not found ' + coin + '-' + exchange, [], []); 35 | } 36 | }); 37 | } 38 | 39 | module.exports = { 40 | get_data: function(coin, exchange, cb) { 41 | var error = null; 42 | get_orders(coin, exchange, function(err, buys, sells) { 43 | if (err) { error = err; } 44 | get_trades(coin, exchange, function(err, trades) { 45 | if (err) { error = err; } 46 | get_summary(coin, exchange, function(err, stats) { 47 | if (err) { error = err; } 48 | return cb(error, {buys: buys, sells: sells, chartdata: [], trades: trades, stats: stats}); 49 | }); 50 | }); 51 | }); 52 | } 53 | }; -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/syntaxhighlighter/scripts/shBrushJScript.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var keywords = 'break case catch continue ' + 25 | 'default delete do else false ' + 26 | 'for function if in instanceof ' + 27 | 'new null return super switch ' + 28 | 'this throw true try typeof var while with' 29 | ; 30 | 31 | var r = SyntaxHighlighter.regexLib; 32 | 33 | this.regexList = [ 34 | { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 35 | { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 36 | { regex: r.singleLineCComments, css: 'comments' }, // one line comments 37 | { regex: r.multiLineCComments, css: 'comments' }, // multiline comments 38 | { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords 40 | ]; 41 | 42 | this.forHtmlScript(r.scriptScriptTags); 43 | }; 44 | 45 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 46 | Brush.aliases = ['js', 'jscript', 'javascript']; 47 | 48 | SyntaxHighlighter.brushes.JScript = Brush; 49 | 50 | // CommonJS 51 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 52 | })(); 53 | -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesA.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesG.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesT.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesJ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesS.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /lib/markets/yobit.js: -------------------------------------------------------------------------------- 1 | var request = require('request'); 2 | 3 | var base_url = 'https://yobit.net/api/3'; 4 | 5 | function get_summary(coin, exchange, cb) { 6 | var req_url = base_url + '/ticker/' + coin + '_' + exchange; 7 | request({uri: req_url, json: true}, function (error, response, body) { 8 | if (error) { 9 | return cb(error, null); 10 | } else { 11 | if (body.message) { 12 | return cb(body.message, null) 13 | } else { 14 | return cb (null, body[coin + '_' + exchange]); 15 | } 16 | } 17 | }); 18 | } 19 | 20 | function get_trades(coin, exchange, cb) { 21 | var req_url = base_url + '/trades/' + coin + '_' + exchange; 22 | request({uri: req_url, json: true}, function (error, response, body) { 23 | if (error) { 24 | return cb(error, null); 25 | } else { 26 | if (body.message) { 27 | return cb(body.message, null) 28 | } else { 29 | return cb (null, body[coin + '_' + exchange]); 30 | } 31 | } 32 | }); 33 | } 34 | 35 | function get_orders(coin, exchange, cb) { 36 | var req_url = base_url + '/depth/' + coin + '_' + exchange; 37 | request({uri: req_url, json: true}, function (error, response, body) { 38 | if (body.success == 0) { 39 | return cb(body.error, null, null); 40 | } else { 41 | return cb(null, body[coin + '_' + exchange]['bids'], body[coin + '_' + exchange]['asks']); 42 | } 43 | }); 44 | } 45 | 46 | module.exports = { 47 | get_data: function(coin, exchange, cb) { 48 | var error = null; 49 | get_orders(coin, exchange, function(err, buys, sells) { 50 | if (err) { error = err; } 51 | get_trades(coin, exchange, function(err, trades) { 52 | if (err) { error = err; } 53 | get_summary(coin, exchange, function(err, stats) { 54 | if (err) { error = err; } 55 | return cb(error, {buys: buys, sells: sells, chartdata: [], trades: trades, stats: stats}); 56 | }); 57 | }); 58 | }); 59 | } 60 | }; -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesV.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsI.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
init, jqPlot
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesH.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsQ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
quickInit, jqPlot
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/GeneralQ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
quickInit, jqPlot
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesZ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
zoom, $.jqplot.Cursor
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsC.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
copy, $.jqplot.ThemeEngine
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/HooksJ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /views/network.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | script. 5 | $(document).ready(function(){ 6 | var ctable = $('#connections-table').dataTable( { 7 | autoWidth: true, 8 | searching: false, 9 | ordering: false, 10 | responsive: true, 11 | lengthChange: true, 12 | processing: true, 13 | ajax: { 14 | url: '/ext/connections', 15 | dataSrc: function ( json ) { 16 | /*for ( var i=0;i" + json.data[i]['txid'] + ""; 19 | json.data[i]['blockindex'] = "" + json.data[i]['blockindex'] + ""; 20 | var amount = json.data[i]['total'] / 100000000; 21 | json.data[i]['total'] = amount.toFixed(8); 22 | json.data[i]['recipients'] = json.data[i]['vout'].length; 23 | }*/ 24 | return json.data; 25 | } 26 | }, 27 | columns: [ 28 | { data: 'address', width: '25%' }, 29 | { data: 'protocol', width: '25%' }, 30 | { data: 'version', width:'25%' }, 31 | { data: 'country', width: '25%'} 32 | ] 33 | }); 34 | }); 35 | .col-md-12(style="margin-bottom: 4%") 36 | .row.text-center(style='margin-bottom:15px;') 37 | i #{settings.locale.net_warning} 38 | .panel.panel-default 39 | .panel-heading 40 | strong #{settings.locale.net_connections} 41 | table#connections-table.table.table-bordered.table-striped 42 | thead 43 | tr 44 | th.text-center #{settings.locale.net_address} 45 | th.text-center #{settings.locale.net_protocol} 46 | th.text-center #{settings.locale.net_subversion} 47 | th.text-center #{settings.locale.net_country} 48 | tbody.text-center 49 | -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsN.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
newTheme, $.jqplot.ThemeEngine
Searching...
No Matches
-------------------------------------------------------------------------------- /scripts/peers.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose') 2 | , lib = require('../lib/explorer') 3 | , db = require('../lib/database') 4 | , settings = require('../lib/settings') 5 | , request = require('request') 6 | , rpc = require('../lib/rpc'); 7 | 8 | var COUNT = 5000; //number of blocks to index 9 | 10 | function exit() { 11 | mongoose.disconnect(); 12 | process.exit(0); 13 | } 14 | 15 | var dbString = 'mongodb://' + settings.dbsettings.user; 16 | dbString = dbString + ':' + settings.dbsettings.password; 17 | dbString = dbString + '@' + settings.dbsettings.address; 18 | dbString = dbString + ':' + settings.dbsettings.port; 19 | dbString = dbString + '/' + settings.dbsettings.database; 20 | 21 | 22 | 23 | mongoose.connect(dbString, function(err) { 24 | if (err) { 25 | console.log('Unable to connect to database: %s', dbString); 26 | console.log('Aborting'); 27 | exit(); 28 | } else { 29 | rpc.getPeerInfo(function (error, body) { 30 | if (error) { 31 | console.log('Unable to get peerinfo'); 32 | console.log('Aborting'); 33 | exit(); 34 | } 35 | 36 | body = body.result; 37 | 38 | lib.syncLoop(body.length, function (loop) { 39 | var i = loop.iteration(); 40 | var address = body[i].addr.split(':')[0]; 41 | db.find_peer(address, function(peer) { 42 | if (peer) { 43 | // peer already exists 44 | loop.next(); 45 | } else { 46 | request({uri: 'https://extreme-ip-lookup.com/json/' + address, json: true}, function (error, response, geo) { 47 | db.create_peer({ 48 | address: address, 49 | protocol: body[i].version, 50 | version: body[i].subver.replace('/', '').replace('/', ''), 51 | country: geo.country_name 52 | }, function(){ 53 | loop.next(); 54 | }); 55 | }); 56 | } 57 | }); 58 | }, function() { 59 | exit(); 60 | }); 61 | }); 62 | } 63 | }); 64 | -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/HooksA.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
addLegendRowHooks, $.jqplot.$.jqplot
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/HooksE.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
eventListenerHooks, $.jqplot.$.jqplot
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsZ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
zoomProxy, $.jqplot.Cursor.$.jqplot.Cursor
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesL.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /bin/instance: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var debug = require('debug')('explorer'); 3 | var settings = require('../lib/settings'); 4 | var db = require('../lib/database'); 5 | var app = require('../app'); 6 | 7 | app.set('port', process.env.PORT || settings.port); 8 | 9 | var dbString = 'mongodb://' + settings.dbsettings.user; 10 | dbString = dbString + ':' + settings.dbsettings.password; 11 | dbString = dbString + '@' + settings.dbsettings.address; 12 | dbString = dbString + ':' + settings.dbsettings.port; 13 | dbString = dbString + '/' + settings.dbsettings.database; 14 | 15 | db.connect(dbString, function() { 16 | db.check_stats(settings.coin, function(exists) { 17 | if (exists == false) { 18 | console.log('no stats entry found, creating now..'); 19 | db.create_stats(settings.coin, function(){ 20 | //console.log('stats entry created successfully.'); 21 | }); 22 | } else { 23 | db.get_stats(settings.coin, function (stats) { 24 | app.locals.stats = stats; 25 | }); 26 | } 27 | }); 28 | // check markets 29 | var markets = settings.markets.enabled; 30 | for (var i = 0; i < markets.length; i++) { 31 | db.check_market(markets[i], function(market, exists) { 32 | if(exists == false) { 33 | console.log('no %s entry found, creating now..', market); 34 | db.create_market(settings.markets.coin, settings.markets.exchange, market, function(){ 35 | }); 36 | } 37 | }); 38 | } 39 | 40 | db.check_richlist(settings.coin, function(exists){ 41 | if (exists == false) { 42 | console.log('no richlist entry found, creating now..'); 43 | db.create_richlist(settings.coin, function() { 44 | 45 | }); 46 | } 47 | }); 48 | if ( settings.heavy == true ) { 49 | db.check_heavy(settings.coin, function(exists){ 50 | if (exists == false) { 51 | console.log('no heavy entry found, creating now..'); 52 | db.create_heavy(settings.coin, function() { 53 | 54 | }); 55 | } 56 | }); 57 | } 58 | 59 | var server = app.listen(app.get('port'), function() { 60 | debug('Express server listening on port ' + server.address().port); 61 | }); 62 | }); 63 | -------------------------------------------------------------------------------- /public/vendor/jqplot/examples/syntaxhighlighter/styles/shThemeDefault.min.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter{background-color:white!important;}.syntaxhighlighter .line.alt1{background-color:white!important;}.syntaxhighlighter .line.alt2{background-color:white!important;}.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#e0e0e0!important;}.syntaxhighlighter .line.highlighted.number{color:black!important;}.syntaxhighlighter table caption{color:black!important;}.syntaxhighlighter .gutter{color:#afafaf!important;}.syntaxhighlighter .gutter .line{border-right:3px solid #6ce26c!important;}.syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c!important;color:white!important;}.syntaxhighlighter.printing .line .content{border:none!important;}.syntaxhighlighter.collapsed{overflow:visible!important;}.syntaxhighlighter.collapsed .toolbar{color:blue!important;background:white!important;border:1px solid #6ce26c!important;}.syntaxhighlighter.collapsed .toolbar a{color:blue!important;}.syntaxhighlighter.collapsed .toolbar a:hover{color:red!important;}.syntaxhighlighter .toolbar{color:white!important;background:#6ce26c!important;border:none!important;}.syntaxhighlighter .toolbar a{color:white!important;}.syntaxhighlighter .toolbar a:hover{color:black!important;}.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black!important;}.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200!important;}.syntaxhighlighter .string,.syntaxhighlighter .string a{color:blue!important;}.syntaxhighlighter .keyword{color:#069!important;}.syntaxhighlighter .preprocessor{color:gray!important;}.syntaxhighlighter .variable{color:#a70!important;}.syntaxhighlighter .value{color:#090!important;}.syntaxhighlighter .functions{color:#ff1493!important;}.syntaxhighlighter .constants{color:#06c!important;}.syntaxhighlighter .script{font-weight:bold!important;color:#069!important;background-color:none!important;}.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray!important;}.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493!important;}.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red!important;}.syntaxhighlighter .keyword{font-weight:bold!important;} -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/ClassesD.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/examples/example.min.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){if(!$.jqplot._noCodeBlock){$("script.code").each(function(c){if($("pre.code").eq(c).length){$("pre.code").eq(c).text($(this).html())}else{var d=$('
');$("div.jqplot-target").eq(c).after(d);d.text($(this).html());d=null}});$("script.common").each(function(c){$("pre.common").eq(c).text($(this).html())});var b="";if($("script.include, link.include").length>0){if($("pre.include").length==0){var a=['
','

The charts on this page depend on the following files:

','
',"
"];a=$(a.join("\n"));$("div#example-content").append(a);a=null}$("script.include").each(function(c){if(b!==""){b+="\n"}b+=' 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
zoom, $.jqplot.Cursor
zoomProxy, $.jqplot.Cursor.$.jqplot.Cursor
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/examples/examples.min.css: -------------------------------------------------------------------------------- 1 | body{margin:0;padding:0;border:0;width:100%;background:#fff;min-width:600px;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif}#header{clear:both;float:left;width:100%;position:relative;height:94px;top:0;padding:0;background-image:url('./images/logo.jpg');background-repeat:no-repeat;background-color:#292929}#layoutdims{clear:both;background:#eee;border-top:4px solid #000;margin:0;padding:6px 15px!important;text-align:right}.colmask{position:relative;clear:both;float:left;width:100%;overflow:hidden}.colright,.colmid,.colleft{float:left;width:100%;position:relative}.col1,.col2,.col3{float:left;position:relative;padding:0 0 1em 0;overflow:hidden}.leftmenu{background:#fff}.leftmenu .colleft{right:75%;background:#717171}.leftmenu .col1{width:71%;left:102%;margin-top:20px}.leftmenu .col2{width:21%;left:6%;margin-top:20px}#footer{clear:both;float:left;width:100%;border-top:1px solid #000}#footer p{padding:10px;margin:0}div.nav{position:relative;top:70px;text-align:right}a.nav span{font-size:11px;position:relative;bottom:2px}a.nav:visited{text-decoration:none;border:0;color:#aaa}a.nav,a.nav:link{border:0;text-decoration:none;font-family:Tahoma,"Helvetica Neue","Trebuchet MS",Verdana,Arial,sans-serif;font-size:16px;color:#aaa;margin-right:11px}a.nav:hover{text-decoration:none;border:0;color:#e0771c}a.nav:active{text-decoration:none;border:0;color:#e0771c}pre.code-block{background:#d8f4dc;border:1px solid #c8c8c8;padding-top:1em;padding-left:3em;padding-bottom:1em;margin-top:1em;margin-bottom:3em}pre.code{border:1px solid #c8c8c8;padding-top:1em;padding-left:3em;padding-bottom:1em;margin-top:1em;margin-bottom:4em}div.include{margin-bottom:2em}p{margin:2em 0}.jqplot-image-button{margin-bottom:15px;margin-top:15px}div.jqplot-image-container{position:relative;z-index:11;margin:auto;display:none;background-color:#fff;border:1px solid #999;display:inline-block;margin-top:25px}div.jqplot-image-container-header{font-size:1.0em;font-weight:bold;padding:5px 15px;background-color:#eee}div.jqplot-image-container-content{padding:15px;background-color:#fff}a.jqplot-image-container-close{float:right}div.example-link{margin-bottom:8px}a.example-link{color:#fff}div.example-plot{width:500px;height:300px}.jqplot-table-legend-label{white-space:nowrap}div.syntaxhighlighter{margin-top:4em!important;margin-bottom:3em!important} -------------------------------------------------------------------------------- /public/vendor/jqplot/plugins/jqplot.trendline.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(f){f.jqplot.Trendline=function(){this.show=f.jqplot.config.enablePlugins;this.color="#666666";this.renderer=new f.jqplot.LineRenderer();this.rendererOptions={marker:{show:false}};this.label="";this.type="linear";this.shadow=true;this.markerRenderer={show:false};this.lineWidth=1.5;this.shadowAngle=45;this.shadowOffset=1;this.shadowAlpha=0.07;this.shadowDepth=3;this.isTrendline=true};f.jqplot.postSeriesInitHooks.push(e);f.jqplot.postDrawSeriesHooks.push(g);f.jqplot.addLegendRowHooks.push(a);function a(k){var j=null;if(k.trendline&&k.trendline.show){var i=k.trendline.label.toString();if(i){j={label:i,color:k.trendline.color}}}return j}function e(m,k,j,i,l){if(this._type&&(this._type==="line"||this._type=="bar")){this.trendline=new f.jqplot.Trendline();i=i||{};f.extend(true,this.trendline,{color:this.color},j.trendline,i.trendline);this.trendline.renderer.init.call(this.trendline,null)}}function g(m,i){i=f.extend(true,{},this.trendline,i);if(this.trendline&&i.show){var k;var l=i.data||this.data;k=c(l,this.trendline.type);var j=i.gridData||this.renderer.makeGridData.call(this,k.data);this.trendline.renderer.draw.call(this.trendline,m,j,{showLine:true,shadow:this.trendline.shadow})}}function b(w,v,n){var u=(n==null)?"linear":n;var s=w.length;var t;var z;var o=0;var m=0;var r=0;var q=0;var l=0;var j=[];var k=[];if(u=="linear"){k=w;j=v}else{if(u=="exp"||u=="exponential"){for(var p=0;p 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/examples/syntaxhighlighter/scripts/shBrushXml.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | function process(match, regexInfo) 25 | { 26 | var constructor = SyntaxHighlighter.Match, 27 | code = match[0], 28 | tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), 29 | result = [] 30 | ; 31 | 32 | if (match.attributes != null) 33 | { 34 | var attributes, 35 | regex = new XRegExp('(? [\\w:\\-\\.]+)' + 36 | '\\s*=\\s*' + 37 | '(? ".*?"|\'.*?\'|\\w+)', 38 | 'xg'); 39 | 40 | while ((attributes = regex.exec(code)) != null) 41 | { 42 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); 43 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); 44 | } 45 | } 46 | 47 | if (tag != null) 48 | result.push( 49 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') 50 | ); 51 | 52 | return result; 53 | } 54 | 55 | this.regexList = [ 56 | { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // 57 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // 58 | { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } 59 | ]; 60 | }; 61 | 62 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 63 | Brush.aliases = ['xml', 'xhtml', 'xslt', 'html']; 64 | 65 | SyntaxHighlighter.brushes.Xml = Brush; 66 | 67 | // CommonJS 68 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 69 | })(); 70 | -------------------------------------------------------------------------------- /public/vendor/jqplot/copyright.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * jqPlot 3 | * Pure JavaScript plotting plugin using jQuery 4 | * 5 | * Version: @VERSION 6 | * 7 | * Copyright (c) 2009-2013 Chris Leonello 8 | * jqPlot is currently available for use in all personal or commercial projects 9 | * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 10 | * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 11 | * choose the license that best suits your project and use it accordingly. 12 | * 13 | * Although not required, the author would appreciate an email letting him 14 | * know of any substantial use of jqPlot. You can reach the author at: 15 | * chris at jqplot dot com or see http://www.jqplot.com/info.php . 16 | * 17 | * If you are feeling kind and generous, consider supporting the project by 18 | * making a donation at: http://www.jqplot.com/donate.php . 19 | * 20 | * sprintf functions contained in jqplot.sprintf.js by Ash Searle: 21 | * 22 | * version 2007.04.27 23 | * author Ash Searle 24 | * http://hexmen.com/blog/2007/03/printf-sprintf/ 25 | * http://hexmen.com/js/sprintf.js 26 | * The author (Ash Searle) has placed this code in the public domain: 27 | * "This code is unrestricted: you are free to use it however you like." 28 | * 29 | * included jsDate library by Chris Leonello: 30 | * 31 | * Copyright (c) 2010-2013 Chris Leonello 32 | * 33 | * jsDate is currently available for use in all personal or commercial projects 34 | * under both the MIT and GPL version 2.0 licenses. This means that you can 35 | * choose the license that best suits your project and use it accordingly. 36 | * 37 | * jsDate borrows many concepts and ideas from the Date Instance 38 | * Methods by Ken Snyder along with some parts of Ken's actual code. 39 | * 40 | * Ken's origianl Date Instance Methods and copyright notice: 41 | * 42 | * Ken Snyder (ken d snyder at gmail dot com) 43 | * 2008-09-10 44 | * version 2.0.2 (http://kendsnyder.com/sandbox/date/) 45 | * Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/) 46 | * 47 | * jqplotToImage function based on Larry Siden's export-jqplot-to-png.js. 48 | * Larry has generously given permission to adapt his code for inclusion 49 | * into jqPlot. 50 | * 51 | * Larry's original code can be found here: 52 | * 53 | * https://github.com/lsiden/export-jqplot-to-png 54 | * 55 | * 56 | */ 57 | -------------------------------------------------------------------------------- /public/vendor/jqplot/jqPlotCssStyling.txt: -------------------------------------------------------------------------------- 1 | Title: jqPlot CSS Customization 2 | 3 | Much of the styling of jqPlot is done by css. The jqPlot css file is, unremarkably, 4 | jquery.jqplot.css and resides in the same directory as jqPlot itself. 5 | 6 | There exist some styling related javascript properties on the plot objects themselves 7 | (like fontStyle, fontSize, etc.). These can be set with the options object at plot creation. 8 | Generally, setting these options is *NOT* the preferred way to customize the look of the 9 | plot. Use the css file instead. *These options are deprecated and may disappear*. The 10 | exceptions are certain background and color options which control attributes of something 11 | renderered on a canvas. This would be line color, grid background, etc. These must 12 | be set by the options object. For a list of available options, see . 13 | 14 | Objects in the plot that can be customized by css are given a css class like ".jqplot-*". 15 | For example, the plot title will have a ".jqplot-title" class, the axes ".jqplot-axis", etc. 16 | 17 | Currently assigned classes in jqPlot 18 | are as follows: 19 | 20 | .jqplot-target - Styles for the plot target div. These will be cascaded down 21 | to all plot elements according to css rules. 22 | 23 | .jqplot-axis - Styles for all axes 24 | 25 | .jqplot-xaxis - Styles applied to the primary x axis only. 26 | 27 | .jqplot-yaxis - Styles applied to the primary y axis only. 28 | 29 | .jqplot-x2axis, .jqplot-x3axis, ... - Styles applied to the 2nd, 3rd, etc. x axis only. 30 | 31 | .jqplot-y2axis, .jqplot-y3axis, ... - Styles applied to the 2nd, 3rd, etc.y axis only. 32 | 33 | .jqplot-axis-tick - Styles applied to all axis ticks 34 | 35 | .jqplot-xaxis-tick - Styles applied to primary x axis ticks only. 36 | 37 | .jqplot-x2axis-tick - Styles applied to secondary x axis ticks only. 38 | 39 | .jqplot-yaxis-tick - Styles applied to primary y axis ticks only. 40 | 41 | .jqplot-y2axis-tick - Styles applied to secondary y axis ticks only. 42 | 43 | table.jqplot-table-legend - Styles applied to the legend box table. 44 | 45 | .jqplot-title - Styles applied to the title. 46 | 47 | .jqplot-cursor-tooltip - Styles applied to the cursor tooltip 48 | 49 | .jqplot-highlighter-tooltip - Styles applied to the highlighter tooltip. 50 | 51 | div.jqplot-table-legend-swatch - the div element used for the colored swatch on the legend. 52 | 53 | Note that axes will be assigned 2 classes like: class=".jqplot-axis .jqplot-xaxis". -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsG.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
get, $.jqplot.ThemeEngine
getThemeNames, $.jqplot.ThemeEngine
getThemes, $.jqplot.ThemeEngine
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FilesJ.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/examples/pieTest2.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | $.jqplot.config.enablePlugins = true; 4 | 5 | s1 = [['a',2], ['b',6], ['c',7], ['d',10]]; 6 | s2 = [['a', 4], ['b', 7], ['c', 6], ['d', 3]]; 7 | s3 = [['a', 2], ['b', 1], ['c', 3], ['d', 3]]; 8 | s4 = [['a', 4], ['b', 3], ['c', 2], ['d', 1]]; 9 | 10 | s5 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]; 11 | 12 | plot1 = $.jqplot('chart1', [s1], { 13 | seriesDefaults:{ 14 | renderer:$.jqplot.PieRenderer 15 | }, 16 | legend: {show:true} 17 | }); 18 | 19 | plot2 = $.jqplot('chart2', [s2], { 20 | seriesDefaults: { 21 | renderer:$.jqplot.PieRenderer, 22 | rendererOptions:{ 23 | sliceMargin: 4, 24 | startAngle: -90 25 | } 26 | } 27 | }); 28 | 29 | plot3 = $.jqplot('chart3', [s3], { 30 | captureRightClick: true, 31 | seriesDefaults:{ 32 | renderer:$.jqplot.PieRenderer, 33 | shadow: false, 34 | rendererOptions:{ 35 | startAngle: 90, 36 | sliceMargin: 4, 37 | highlightMouseDown: true 38 | } 39 | }, 40 | legend: { 41 | show: true, 42 | location: 'e', 43 | placement: 'outside' 44 | } 45 | }); 46 | 47 | plot5 = $.jqplot('chart5', [s5], { 48 | seriesDefaults:{ 49 | renderer:$.jqplot.PieRenderer 50 | } 51 | }); 52 | 53 | plot6 = $.jqplot('chart6', [[1,2,3,4]]); 54 | 55 | $('#chart1').bind('jqplotDataClick', 56 | function (ev, seriesIndex, pointIndex, data) { 57 | $('#info1').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data); 58 | } 59 | ); 60 | 61 | $('#chart2').bind('jqplotDataHighlight', 62 | function (ev, seriesIndex, pointIndex, data) { 63 | $('#info2').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data); 64 | } 65 | ); 66 | 67 | $('#chart2').bind('jqplotDataUnhighlight', 68 | function (ev) { 69 | $('#info2').html('Nothing'); 70 | } 71 | ); 72 | 73 | $('#chart3').bind('jqplotDataRightClick', 74 | function (ev, seriesIndex, pointIndex, data) { 75 | $('#info3').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data); 76 | } 77 | ); 78 | 79 | $(document).unload(function() {$('*').unbind(); }); 80 | }); -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/GeneralW.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
waterfall, $.jqplot.BarRenderer
wickColor, $.jqplot.OHLCRenderer
widthRatio, $.jqplot.FunnelRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesW.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
waterfall, $.jqplot.BarRenderer
wickColor, $.jqplot.OHLCRenderer
widthRatio, $.jqplot.FunnelRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesV.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
varyBarColor, $.jqplot.BarRenderer
varyBlockColors, $.jqplot.BlockRenderer
varyBubbleColors, $.jqplot.BubbleRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/examples/syntaxhighlighter/styles/shThemejqPlot.min.css: -------------------------------------------------------------------------------- 1 | .syntaxhighlighter{background-color:transparent!important;}.syntaxhighlighter .line.alt1{background-color:transparent!important;}.syntaxhighlighter .line.alt2{background-color:transparent!important;}.syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#e0e0e0!important;}.syntaxhighlighter .line.highlighted.number{color:black!important;}.syntaxhighlighter table caption{color:black!important;}.syntaxhighlighter .gutter{color:#afafaf!important;}.syntaxhighlighter .gutter .line{border-right:3px solid #6ce26c!important;}.syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c!important;color:white!important;}.syntaxhighlighter.printing .line .content{border:none!important;}.syntaxhighlighter.collapsed{overflow:visible!important;}.syntaxhighlighter.collapsed .toolbar{color:blue!important;background:white!important;border:1px solid #6ce26c!important;}.syntaxhighlighter.collapsed .toolbar a{color:blue!important;}.syntaxhighlighter.collapsed .toolbar a:hover{color:red!important;}.syntaxhighlighter .toolbar{color:white!important;background:#6ce26c!important;border:none!important;}.syntaxhighlighter .toolbar a{color:white!important;}.syntaxhighlighter .toolbar a:hover{color:black!important;}.syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black!important;}.syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200!important;}.syntaxhighlighter .string,.syntaxhighlighter .string a{color:blue!important;}.syntaxhighlighter .keyword{color:#069!important;}.syntaxhighlighter .preprocessor{color:gray!important;}.syntaxhighlighter .variable{color:#a70!important;}.syntaxhighlighter .value{color:#090!important;}.syntaxhighlighter .functions{color:#ff1493!important;}.syntaxhighlighter .constants{color:#06c!important;}.syntaxhighlighter .script{font-weight:bold!important;color:#069!important;background-color:none!important;}.syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:gray!important;}.syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff1493!important;}.syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red!important;}.syntaxhighlighter .keyword{font-weight:bold!important;}.syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{line-height:1.3em!important;}div.syntaxhighlighter{font-size:.85em!important;}div.include div.syntaxhighlighter table td.code .line{margin-top:.1em!important;} -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesG.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
grid, jqPlot
groups, $.jqplot.BarRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /views/address.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | - var balance = (address.received - address.sent) / 100000000; 5 | - var sent = address.sent /100000000 6 | - var received = address.received / 100000000 7 | img.qrcode.pull-right.hidden-xs(src='/qr/#{address.a_id}') 8 | .col-xs-12.col-md-10.col-md-offset-1 9 | .panel.panel-default.panel-address-summary 10 | .panel-heading(style='position:relative;') 11 | strong #{address.a_id} 12 | if settings.labels[address.a_id] 13 | if settings.labels[address.a_id].type 14 | label(class='label label-#{settings.labels[address.a_id].type} pull-right hidden-xs', style='margin-left:15px;') 15 | =settings.labels[address.a_id].label 16 | if settings.labels[address.a_id].url 17 | a(href='#{settings.labels[address.a_id].url}', target='_blank') 18 | span.fa.fa-question-circle(style='margin-left:5px;') 19 | else 20 | label.label.label-default.pull-right.hidden-xs(style='margin-left:15px;') 21 | =settings.labels[address.a_id].label 22 | if settings.labels[address.a_id].url 23 | a(href='#{settings.labels[address.a_id].url}', target='_blank') 24 | span.fa.fa-question-circle(style='margin-left:5px;') 25 | table.table.table-bordered.table-striped.summary-table 26 | thead 27 | tr 28 | if settings.show_sent_received == true 29 | th #{settings.locale.total_sent} (#{settings.symbol}) 30 | if address.a_id !== 'coinbase' 31 | if settings.show_sent_received == true 32 | th #{settings.locale.total_received} (#{settings.symbol}) 33 | th #{settings.locale.rl_balance} (#{settings.symbol}) 34 | tbody 35 | tr 36 | if settings.show_sent_received == true 37 | td #{sent.toFixed(8)} 38 | if address.a_id !== 'coinbase' 39 | if settings.show_sent_received == true 40 | td #{received.toFixed(8)} 41 | td #{balance.toFixed(8)} 42 | .panel.panel-default.hidden-xs 43 | .panel-heading 44 | strong #{settings.locale.ex_latest_transactions} 45 | table.table.table-bordered.table-striped.history-table 46 | include ./includes/address_history.jade 47 | .panel.panel-default.hidden-lg.hidden-md 48 | .panel-heading 49 | strong #{settings.locale.ex_latest_transactions} 50 | table.table.table-bordered.table-striped 51 | include ./includes/address_history.jade 52 | .footer-padding 53 | -------------------------------------------------------------------------------- /public/vendor/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.CanvasAxisLabelRenderer=function(b){this.angle=0;this.axis;this.show=true;this.showLabel=true;this.label="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="11pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=true;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};a.extend(true,this,b);if(b.angle==null&&this.axis!="xaxis"&&this.axis!="x2axis"){this.angle=-90}var c={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};if(this.pt2px){c.pt2px=this.pt2px}if(this.enableFontSupport){if(a.jqplot.support_canvas_text()){this._textRenderer=new a.jqplot.CanvasFontRenderer(c)}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}};a.jqplot.CanvasAxisLabelRenderer.prototype.init=function(b){a.extend(true,this,b);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};a.jqplot.CanvasAxisLabelRenderer.prototype.getWidth=function(d){if(this._elem){return this._elem.outerWidth(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.sin(f.angle)*e)+Math.abs(Math.cos(f.angle)*c);return b}};a.jqplot.CanvasAxisLabelRenderer.prototype.getHeight=function(d){if(this._elem){return this._elem.outerHeight(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.cos(f.angle)*e)+Math.abs(Math.sin(f.angle)*c);return b}};a.jqplot.CanvasAxisLabelRenderer.prototype.getAngleRad=function(){var b=this.angle*Math.PI/180;return b};a.jqplot.CanvasAxisLabelRenderer.prototype.draw=function(c,f){if(this._elem){if(a.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce();this._elem=null}var e=f.canvasManager.getCanvas();this._textRenderer.setText(this.label,c);var b=this.getWidth(c);var d=this.getHeight(c);e.width=b;e.height=d;e.style.width=b;e.style.height=d;e=f.canvasManager.initCanvas(e);this._elem=a(e);this._elem.css({position:"absolute"});this._elem.addClass("jqplot-"+this.axis+"-label");e=null;return this._elem};a.jqplot.CanvasAxisLabelRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}})(jQuery); -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesO.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
objects, $.jqplot.CanvasOverlay
offset, $.jqplot.shadowRenderer
openColor, $.jqplot.OHLCRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsD.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
destroy, jqPlot
drawSeries, jqPlot
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/GeneralV.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
varyBarColor, $.jqplot.BarRenderer
varyBlockColors, $.jqplot.BlockRenderer
varyBubbleColors, $.jqplot.BubbleRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /views/movement.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | script. 5 | var rplot; 6 | var colors = [ "#0071bc" ]; 7 | $(document).ready(function(){ 8 | function format_unixtime(unixtime) { 9 | var a = new Date(unixtime*1000); 10 | var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; 11 | var year = a.getFullYear(); 12 | var month = months[a.getMonth()]; 13 | var date = a.getDate(); 14 | var hour = a.getHours(); 15 | var min = a.getMinutes(); 16 | var sec = a.getSeconds(); 17 | var suffix = 'th' 18 | if (date == 1 || date == 21 || date == 31) 19 | suffix = 'st'; 20 | if (date == 2 || date == 22 || date == 32) 21 | suffix = 'nd'; 22 | if (date == 3 || date == 23) 23 | suffix = 'rd'; 24 | if (hour < 10) 25 | hour = '0' + hour; 26 | if (min < 10) 27 | min = '0' + min; 28 | if (sec < 10) 29 | sec = '0' + sec; 30 | var time = date + suffix + ' ' + month + ' ' + year + ' ' + hour + ':' + min + ':' + sec ; 31 | return time; 32 | } 33 | var rtable = $('#alerts-table').dataTable( { 34 | autoWidth: false, 35 | searching: false, 36 | ordering: false, 37 | //responsive: true, 38 | lengthChange: false, 39 | //processing: true, 40 | ajax: { 41 | url: '/ext/getlasttxs/#{min_amount}', 42 | dataSrc: function ( json ) { 43 | for ( var i=0;i" + json.data[i]['txid'] + "" 46 | var amount = json.data[i]['total'] / 100000000; 47 | if (amount > '#{flagb}') { 48 | json .data[i]['total'] = ""; 49 | } else if (amount > '#{flaga}') { 50 | json .data[i]['total'] = ""; 51 | } else { 52 | json .data[i]['total'] = ""; 53 | } 54 | } 55 | return json.data; 56 | } 57 | }, 58 | columns: [ 59 | { data: 'timestamp', width: '25%' }, 60 | { data: 'txid', width: '60%' }, 61 | { data: 'total', width: '15%' }, 62 | ] 63 | }); 64 | setInterval( function () { 65 | rtable.api().ajax.reload(null, false); 66 | }, 45000 ); 67 | }); 68 | .col-xs-12.col-md-10.col-md-offset-1(style="margin-bottom: 5%") 69 | table#alerts-table.table.table-striped.table-bordered 70 | thead 71 | th timestamp 72 | th.hidden-xs txid 73 | th amount 74 | -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesU.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
upBodyColor, $.jqplot.OHLCRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/FunctionsM.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
moveBlock, $.jqplot.BlockRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /lib/rpc.js: -------------------------------------------------------------------------------- 1 | 2 | const settings = require('../lib/settings'); 3 | const energidrpc = require('@energicryptocurrency/energid-rpc'); 4 | const $as = require('futoin-asyncsteps'); 5 | const Limiter = require('futoin-asyncsteps/Limiter'); 6 | 7 | //--- 8 | const rpc = new energidrpc(settings.wallet); 9 | rpc.rpc = true; 10 | rpc.cmd = (commands, cb) => { 11 | const { method, params } = commands[0]; 12 | const func = rpc[method] || energidrpc.prototype[method]; 13 | 14 | if (func) { 15 | params.push((err, rsp) => cb(err, rsp && rsp.result)); 16 | func.apply(rpc, params); 17 | } else { 18 | rpc.batch( 19 | () => { 20 | // Only no-arg calls are not listed in the EnergiRPC 21 | rpc.batchedCalls = [{ 22 | jsonrpc: '2.0', 23 | method, 24 | params: [], 25 | id: 0 26 | }]; 27 | }, 28 | (err, rsp) => { 29 | cb(err, rsp && rsp[0] && rsp[0].result); 30 | } 31 | ); 32 | } 33 | }; 34 | 35 | //--- 36 | const api_limiter = new Limiter(settings.apilimit); 37 | const CACHE_TIME = settings.apilimit.cache || 5; 38 | const limit_call = (m) => { 39 | let cache = undefined; 40 | let cache_time = process.hrtime(); 41 | 42 | return (...params) => { 43 | // Do not cache less regular calls without parameters 44 | const do_cache = (params.length === 1); 45 | const cb = params[params.length - 1]; 46 | 47 | // Check if valid cache 48 | if (do_cache && cache !== undefined) { 49 | if (process.hrtime(cache_time)[0] < CACHE_TIME) { 50 | cb(undefined, cache); 51 | return; 52 | } 53 | 54 | cache = undefined; 55 | } 56 | 57 | $as() 58 | .add( 59 | (asi) => asi.sync(api_limiter, (asi) => { 60 | // Check if valid cache appeared while waiting 61 | if (cache !== undefined) { 62 | asi.success(undefined, cache); 63 | } else { 64 | params[params.length - 1] = (err, rsp) => { 65 | if (!err && do_cache && rsp) { 66 | cache = rsp; 67 | cache_time = process.hrtime(); 68 | } 69 | 70 | asi.success(err, rsp); 71 | }; 72 | m.apply(rpc, params); 73 | asi.waitExternal(); 74 | } 75 | }), 76 | (asi, err) => asi.success(err) 77 | ).add((asi, err, rsp) => cb(err, rsp)) 78 | .execute(); 79 | }; 80 | }; 81 | 82 | if (!global.CRON_JOB) { 83 | for (let k in energidrpc.prototype) { 84 | rpc[k] = limit_call(energidrpc.prototype[k]); 85 | } 86 | } 87 | 88 | Object.seal(rpc); 89 | 90 | module.exports = rpc; 91 | -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/GeneralO.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
objects, $.jqplot.CanvasOverlay
offset, $.jqplot.shadowRenderer
openColor, $.jqplot.OHLCRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/GeneralY.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
y, HorizontalLine
yoffset, Legend
ypadding, $.jqplot.PointLabels
yvalues, $.jqplot.Highlighter
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/PropertiesY.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
y, HorizontalLine
yoffset, Legend
ypadding, $.jqplot.PointLabels
yvalues, $.jqplot.Highlighter
Searching...
No Matches
-------------------------------------------------------------------------------- /lib/markets/poloniex.js: -------------------------------------------------------------------------------- 1 | var request = require('request'); 2 | 3 | var base_url = 'https://poloniex.com/public?command='; 4 | 5 | function get_summary(coin, exchange, cb) { 6 | var req_url = base_url + 'returnTicker'; 7 | var ticker = exchange + '_' + coin; 8 | request({uri: req_url, json: true}, function (error, response, body) { 9 | if (body.error) { 10 | return cb(body.error, null); 11 | } else { 12 | return cb(null, body[ticker]); 13 | } 14 | }); 15 | } 16 | 17 | function get_trades(coin, exchange, cb) { 18 | var req_url = base_url + 'returnTradeHistory¤cyPair=' + exchange + '_' + coin; 19 | request({uri: req_url, json: true}, function (error, response, body) { 20 | if (body.error) { 21 | return cb(body.error, []); 22 | } else { 23 | return cb(null, body); 24 | } 25 | }); 26 | } 27 | 28 | function get_orders(coin, exchange, cb) { 29 | var req_url = base_url + 'returnOrderBook¤cyPair=' + exchange + '_' + coin + '&depth=50'; 30 | request({uri: req_url, json: true}, function (error, response, body) { 31 | if (body.error) { 32 | return cb(body.error, []); 33 | } else { 34 | return cb(null, body); 35 | } 36 | }); 37 | } 38 | 39 | function get_chartdata(coin, exchange, cb) { 40 | var end = Date.now(); 41 | end = end / 1000; 42 | start = end - 86400; 43 | var req_url = base_url + 'returnChartData¤cyPair=' + exchange + '_' + coin + '&start=' + start + '&end=' + end + '&period=1800'; 44 | request({uri: req_url, json: true}, function (error, response, chartdata) { 45 | if (error) { 46 | return cb(error, []); 47 | } else { 48 | if (chartdata.error == null) { 49 | var processed = []; 50 | for (var i = 0; i < chartdata.length; i++) { 51 | processed.push([chartdata[i].date * 1000, parseFloat(chartdata[i].open), parseFloat(chartdata[i].high), parseFloat(chartdata[i].low), parseFloat(chartdata[i].close)]); 52 | if (i == chartdata.length - 1) { 53 | return cb(null, processed); 54 | } 55 | } 56 | } else { 57 | return cb(chartdata.error, []); 58 | } 59 | } 60 | }); 61 | } 62 | 63 | module.exports = { 64 | get_data: function(coin, exchange, cb) { 65 | var error = null; 66 | get_chartdata(coin, exchange, function (err, chartdata){ 67 | if (err) { 68 | chartdata = []; 69 | error = err; 70 | } 71 | get_orders(coin, exchange, function (err, orders){ 72 | var buys = []; 73 | var sells = []; 74 | if (orders.bids) { 75 | buys = orders.bids; 76 | sells = orders.asks; 77 | } else { 78 | error = err; 79 | } 80 | get_trades(coin, exchange, function (err, trades){ 81 | if (err) { error = err; } 82 | get_summary(coin, exchange, function (err, stats){ 83 | if (err) { error = err; } 84 | return cb(error, {buys: buys, sells: sells, chartdata: chartdata, trades: trades, stats: stats}); 85 | }); 86 | }); 87 | }); 88 | }); 89 | } 90 | }; -------------------------------------------------------------------------------- /public/vendor/jqplot/docs/search/GeneralU.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
Loading...
upBodyColor, $.jqplot.OHLCRenderer
Searching...
No Matches
-------------------------------------------------------------------------------- /public/vendor/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.CanvasAxisTickRenderer=function(b){this.mark="outside";this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.angle=0;this.markSize=4;this.show=true;this.showLabel=true;this.labelPosition="auto";this.label="";this.value=null;this._styles={};this.formatter=a.jqplot.DefaultTickFormatter;this.formatString="";this.prefix="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="10pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=true;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};a.extend(true,this,b);var c={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};if(this.pt2px){c.pt2px=this.pt2px}if(this.enableFontSupport){if(a.jqplot.support_canvas_text()){this._textRenderer=new a.jqplot.CanvasFontRenderer(c)}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}};a.jqplot.CanvasAxisTickRenderer.prototype.init=function(b){a.extend(true,this,b);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};a.jqplot.CanvasAxisTickRenderer.prototype.getWidth=function(d){if(this._elem){return this._elem.outerWidth(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.sin(f.angle)*e)+Math.abs(Math.cos(f.angle)*c);return b}};a.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(d){if(this._elem){return this._elem.outerHeight(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.cos(f.angle)*e)+Math.abs(Math.sin(f.angle)*c);return b}};a.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(b){if(this._elem){return this._elem.position().top}else{return null}};a.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad=function(){var b=this.angle*Math.PI/180;return b};a.jqplot.CanvasAxisTickRenderer.prototype.setTick=function(b,d,c){this.value=b;if(c){this.isMinorTick=true}return this};a.jqplot.CanvasAxisTickRenderer.prototype.draw=function(c,f){if(!this.label){this.label=this.prefix+this.formatter(this.formatString,this.value)}if(this._elem){if(a.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce();this._elem=null}var e=f.canvasManager.getCanvas();this._textRenderer.setText(this.label,c);var b=this.getWidth(c);var d=this.getHeight(c);e.width=b;e.height=d;e.style.width=b;e.style.height=d;e.style.textAlign="left";e.style.position="absolute";e=f.canvasManager.initCanvas(e);this._elem=a(e);this._elem.css(this._styles);this._elem.addClass("jqplot-"+this.axis+"-tick");e=null;return this._elem};a.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}})(jQuery); -------------------------------------------------------------------------------- /public/vendor/jqplot/plugins/jqplot.blockRenderer.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.BlockRenderer=function(){a.jqplot.LineRenderer.call(this)};a.jqplot.BlockRenderer.prototype=new a.jqplot.LineRenderer();a.jqplot.BlockRenderer.prototype.constructor=a.jqplot.BlockRenderer;a.jqplot.BlockRenderer.prototype.init=function(b){this.css={padding:"2px",border:"1px solid #999",textAlign:"center"};this.escapeHtml=false;this.insertBreaks=true;this.varyBlockColors=false;a.extend(true,this,b);if(this.css.backgroundColor){this.color=this.css.backgroundColor}else{if(this.css.background){this.color=this.css.background}else{if(!this.varyBlockColors){this.css.background=this.color}}}this.canvas=new a.jqplot.BlockCanvas();this.shadowCanvas=new a.jqplot.BlockCanvas();this.canvas._plotDimensions=this._plotDimensions;this.shadowCanvas._plotDimensions=this._plotDimensions;this._type="block";this.moveBlock=function(l,j,i,e){var c=this.canvas._elem.children(":eq("+l+")");this.data[l][0]=j;this.data[l][1]=i;this._plotData[l][0]=j;this._plotData[l][1]=i;this._stackData[l][0]=j;this._stackData[l][1]=i;this.gridData[l][0]=this._xaxis.series_u2p(j);this.gridData[l][1]=this._yaxis.series_u2p(i);var k=c.outerWidth();var f=c.outerHeight();var d=this.gridData[l][0]-k/2+"px";var g=this.gridData[l][1]-f/2+"px";if(e){if(parseInt(e,10)){e=parseInt(e,10)}c.animate({left:d,top:g},e)}else{c.css({left:d,top:g})}c=null}};a.jqplot.BlockRenderer.prototype.draw=function(q,o,r){if(this.plugins.pointLabels){this.plugins.pointLabels.show=false}var f,c,l,o,p,k,n,g,e,m;var b=(r!=undefined)?r:{};var j=new a.jqplot.ColorGenerator(this.seriesColors);this.canvas._elem.empty();for(f=0;f")}k=a.extend(true,{},this.css,k);c=a('
');this.canvas._elem.append(c);this.escapeHtml?c.text(p):c.html(p);delete k.position;delete k.marginRight;delete k.marginLeft;if(!k.background&&!k.backgroundColor&&!k.backgroundImage){k.background=j.next()}c.css(k);n=c.outerWidth();g=c.outerHeight();e=o[0]-n/2+"px";m=o[1]-g/2+"px";c.css({left:e,top:m});c=null}};a.jqplot.BlockCanvas=function(){a.jqplot.ElemContainer.call(this);this._ctx};a.jqplot.BlockCanvas.prototype=new a.jqplot.ElemContainer();a.jqplot.BlockCanvas.prototype.constructor=a.jqplot.BlockCanvas;a.jqplot.BlockCanvas.prototype.createElement=function(i,e,c){this._offsets=i;var b="jqplot-blockCanvas";if(e!=undefined){b=e}var g;if(this._elem){g=this._elem.get(0)}else{g=document.createElement("div")}if(c!=undefined){this._plotDimensions=c}var d=this._plotDimensions.width-this._offsets.left-this._offsets.right+"px";var f=this._plotDimensions.height-this._offsets.top-this._offsets.bottom+"px";this._elem=a(g);this._elem.css({position:"absolute",width:d,height:f,left:this._offsets.left,top:this._offsets.top});this._elem.addClass(b);return this._elem};a.jqplot.BlockCanvas.prototype.setContext=function(){this._ctx={canvas:{width:0,height:0},clearRect:function(){return null}};return this._ctx}})(jQuery); -------------------------------------------------------------------------------- /lib/markets/bittrex.js: -------------------------------------------------------------------------------- 1 | var request = require('request'); 2 | 3 | var base_url = 'https://bittrex.com/api/v1.1/public'; 4 | 5 | function get_summary(coin, exchange, cb) { 6 | var req_url = base_url + '/getmarketsummary?market=' + exchange + '-' + coin; 7 | request({uri: req_url, json: true}, function (error, response, body) { 8 | if (error) { 9 | return cb(error, null); 10 | } else { 11 | if (body.message) { 12 | return cb(body.message, null) 13 | } else { 14 | body.result[0]['last'] = body.result[0]['Last']; 15 | return cb (null, body.result[0]); 16 | } 17 | } 18 | }); 19 | } 20 | 21 | function get_trades(coin, exchange, cb) { 22 | var req_url = base_url + '/getmarkethistory?market=' + exchange + '-' + coin + '&count=50'; 23 | request({uri: req_url, json: true}, function (error, response, body) { 24 | if (body.success == true) { 25 | return cb (null, body.result); 26 | } else { 27 | return cb(body.message, null); 28 | } 29 | }); 30 | } 31 | 32 | function get_orders(coin, exchange, cb) { 33 | var req_url = base_url + '/getorderbook?market=' + exchange + '-' + coin + '&type=both' + '&depth=50'; 34 | request({uri: req_url, json: true}, function (error, response, body) { 35 | if (body.success == true) { 36 | var orders = body.result; 37 | var buys = []; 38 | var sells = []; 39 | if (orders['buy'].length > 0){ 40 | for (var i = 0; i < orders['buy'].length; i++) { 41 | var order = { 42 | amount: parseFloat(orders.buy[i].Quantity).toFixed(8), 43 | price: parseFloat(orders.buy[i].Rate).toFixed(8), 44 | // total: parseFloat(orders.buy[i].Total).toFixed(8) 45 | // Necessary because API will return 0.00 for small volume transactions 46 | total: (parseFloat(orders.buy[i].Quantity).toFixed(8) * parseFloat(orders.buy[i].Rate)).toFixed(8) 47 | } 48 | buys.push(order); 49 | } 50 | } 51 | if (orders['sell'].length > 0) { 52 | for (var x = 0; x < orders['sell'].length; x++) { 53 | var order = { 54 | amount: parseFloat(orders.sell[x].Quantity).toFixed(8), 55 | price: parseFloat(orders.sell[x].Rate).toFixed(8), 56 | // total: parseFloat(orders.sell[x].Total).toFixed(8) 57 | // Necessary because API will return 0.00 for small volume transactions 58 | total: (parseFloat(orders.sell[x].Quantity).toFixed(8) * parseFloat(orders.sell[x].Rate)).toFixed(8) 59 | } 60 | sells.push(order); 61 | } 62 | } 63 | return cb(null, buys, sells); 64 | } else { 65 | return cb(body.message, [], []); 66 | } 67 | }); 68 | } 69 | 70 | module.exports = { 71 | get_data: function(coin, exchange, cb) { 72 | var error = null; 73 | get_orders(coin, exchange, function(err, buys, sells) { 74 | if (err) { error = err; } 75 | get_trades(coin, exchange, function(err, trades) { 76 | if (err) { error = err; } 77 | get_summary(coin, exchange, function(err, stats) { 78 | if (err) { error = err; } 79 | return cb(error, {buys: buys, sells: sells, chartdata: [], trades: trades, stats: stats}); 80 | }); 81 | }); 82 | }); 83 | } 84 | }; 85 | -------------------------------------------------------------------------------- /public/vendor/jqplot/jquery.jqplot.min.css: -------------------------------------------------------------------------------- 1 | .jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em}.jqplot-axis{font-size:.75em}.jqplot-xaxis{margin-top:10px}.jqplot-x2axis{margin-bottom:10px}.jqplot-yaxis{margin-right:10px}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis,.jqplot-yMidAxis{margin-left:10px;margin-right:10px}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick,.jqplot-yMidAxis-tick{position:absolute;white-space:pre}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom}.jqplot-yaxis-tick{right:0;top:15px;text-align:right}.jqplot-yaxis-tick.jqplot-breakTick{right:-20px;margin-right:0;padding:1px 5px 1px 5px;z-index:2;font-size:1.5em}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left}.jqplot-yMidAxis-tick{text-align:center;white-space:nowrap}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute}.jqplot-yMidAxis-label{font-size:11pt;position:absolute}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;margin-left:10px;position:absolute}.jqplot-meterGauge-tick{font-size:.75em;color:#999}.jqplot-meterGauge-label{font-size:1em;color:#999}table.jqplot-table-legend{margin-top:12px;margin-bottom:12px;margin-left:12px;margin-right:12px}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em}td.jqplot-table-legend{vertical-align:middle}td.jqplot-seriesToggle:hover,td.jqplot-seriesToggle:active{cursor:pointer}.jqplot-table-legend .jqplot-series-hidden{text-decoration:line-through}div.jqplot-table-legend-swatch-outline{border:1px solid #ccc;padding:1px}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:5px;border-bottom-width:5px;border-left-width:6px;border-right-width:6px;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px}.jqplot-highlighter-tooltip,.jqplot-canvasOverlay-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px}.jqplot-point-label{font-size:.75em;z-index:2}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em}.jqplot-error{text-align:center}.jqplot-error-message{position:relative;top:46%;display:inline-block}div.jqplot-bubble-label{font-size:.8em;padding-left:2px;padding-right:2px;color:rgb(20%,20%,20%)}div.jqplot-bubble-label.jqplot-bubble-label-highlight{background:rgba(90%,90%,90%,0.7)}div.jqplot-noData-container{text-align:center;background-color:rgba(96%,96%,96%,0.3)} --------------------------------------------------------------------------------