Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testrequest #1

Open
wants to merge 55 commits into
base: chain
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
1632ebb
Create binance.js
pivxslimjim Apr 3, 2018
833a18c
Add files via upload
pivxslimjim Apr 3, 2018
d060367
Update layout.jade
pivxslimjim Apr 3, 2018
0f16017
Update layout.jade
pivxslimjim Apr 3, 2018
cf98fb6
Update README.md
pivxslimjim Apr 3, 2018
24678e5
Update README.md
pivxslimjim Apr 3, 2018
77717b2
Create boostrap.min.css
pivxslimjim Apr 3, 2018
d0bce9f
Update boostrap.min.css
pivxslimjim Apr 3, 2018
ff31be7
Update README.md
pivxslimjim Apr 3, 2018
4b486e7
Update README.md
pivxslimjim Apr 3, 2018
540c098
Update README.md
pivxslimjim Apr 3, 2018
dde5ddd
Update layout.jade
pivxslimjim Apr 4, 2018
ad0965d
Update layout.jade
pivxslimjim Apr 4, 2018
43d6a3c
Update app.js
pivxslimjim Apr 4, 2018
5a2cead
Update settings.js
pivxslimjim Apr 4, 2018
013cc32
Update layout.jade
pivxslimjim Apr 4, 2018
2533309
Update layout.jade
pivxslimjim Apr 4, 2018
54b49a6
Update index.js
pivxslimjim Apr 4, 2018
aee9aee
Update index.js
pivxslimjim Apr 4, 2018
733c790
Update explorer.js
pivxslimjim Apr 4, 2018
a470d96
Update index.js
pivxslimjim Apr 4, 2018
6625e13
Update layout.jade
pivxslimjim Apr 4, 2018
0582c27
Update info.jade
pivxslimjim Apr 4, 2018
f0a9d65
Update layout.jade
pivxslimjim Apr 4, 2018
b658c1f
Update boostrap.min.css
pivxslimjim Apr 5, 2018
0b3c981
Update boostrap.min.css
pivxslimjim Apr 5, 2018
8ff2173
Rename boostrap.min.css to bootstrap.min.css
pivxslimjim Apr 5, 2018
6ac18db
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
7fd233e
Update bootstrap.min.css
Evan-PIVX Apr 5, 2018
be17cec
Update bootstrap.min.css
Evan-PIVX Apr 5, 2018
775c618
Update bootstrap.min.css
Evan-PIVX Apr 5, 2018
e7415db
Update bootstrap.min.css
Evan-PIVX Apr 5, 2018
7d0615b
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
7af45b8
Update bootstrap.min.css
Evan-PIVX Apr 5, 2018
9e91e74
Update bootstrap.min.css
Evan-PIVX Apr 5, 2018
681ecd4
Merge pull request #2 from pivxslimjim/Evan-PIVX-patch-1
pivxslimjim Apr 5, 2018
f6fd26a
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
f3bfa43
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
0b9c8e3
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
698136f
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
01b9c8b
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
e0e7cac
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
5392211
Update bootstrap.min.css
pivxslimjim Apr 5, 2018
6828ab2
Some more color corrections
Evan-PIVX Apr 10, 2018
f141104
Merge pull request #3 from pivxslimjim/Evan-PIVX-patch-3
pivxslimjim Apr 10, 2018
9254003
collapse solved
Evan-PIVX Apr 10, 2018
9784dd2
Merge pull request #4 from pivxslimjim/Evan-PIVX-patch-4
pivxslimjim Apr 11, 2018
ab72f4e
Add files via upload
pivxslimjim Apr 11, 2018
bcc7842
Delete bootstrap.min.css
pivxslimjim Apr 11, 2018
b9fa9ef
Rename darkstyle_bootstrap_rev06.css to bootstrap.min.css
pivxslimjim Apr 11, 2018
614848c
Rename style.css to style.css.original
pivxslimjim Apr 11, 2018
826ba18
Add files via upload
pivxslimjim Apr 11, 2018
ca97673
Add files via upload
pivxslimjim Apr 11, 2018
36b174a
Add files via upload
pivxslimjim Apr 11, 2018
9de0021
created mnstats.js
pivxslimjim Apr 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ The Chaincoin block explorer.

This project is a fork of [Iquidus Explorer](https://github.com/iquidus/explorer) so massive thanks go out to Luke Williams for his code! Thank you!!!

Forked from: [https://github.com/sparkscrypto/ciquidus](https://github.com/sparkscrypto/ciquidus)

### See it in action

* [explorer.chaincoin.org](https://explorer.chaincoin.org)
* [http://explorer.pivx.support:3001/](http://explorer.pivx.support:3001/)

### Great Resource for building your own block explorer
* [https://gist.github.com/zeronug/5c66207c426a1d4d5c73cc872255c572](https://gist.github.com/zeronug/5c66207c426a1d4d5c73cc872255c572)


### Requires
Expand Down Expand Up @@ -102,11 +107,6 @@ The wallet connected to Ciquidus must be running with atleast the following flag

-daemon -txindex

### Donate

CHC: CLkWg5YSLod772uLzsFRxHgHiWVGAJSezm
BTC: 1J8Chi5teDJrvBtSuQhioNCHfTNBCcCrPx

### Known Issues

**script is already running.**
Expand Down Expand Up @@ -134,7 +134,6 @@ Where [SIZE] is an integer higher than the default.
*note: SIZE will depend on which blockchain you are using, you may need to play around a bit to find an optimal setting*

### License

Copyright (c) 2017, The Chaincoin Community
Copyright (c) 2015, Iquidus Technology
Copyright (c) 2015, Luke Williams
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ app.set('twitter', settings.twitter);
app.set('facebook', settings.facebook);
app.set('googleplus', settings.googleplus);
app.set('bitcointalk', settings.bitcointalk);
app.set('slack', settings.slack);
app.set('discord', settings.discord);
app.set('github', settings.github);
app.set('website', settings.website);
app.set('genesis_block', settings.genesis_block);
Expand Down
8 changes: 1 addition & 7 deletions lib/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ module.exports = {
});
},

get_masternodecountonline: function(cb) {
var uri = base_url + 'getmasternodecountonline';
request({uri: uri, json: true}, function (error, response, body) {
return cb(body);
});
},

get_blockcount: function(cb) {
var uri = base_url + 'getblockcount';
Expand Down Expand Up @@ -407,4 +401,4 @@ module.exports = {
return cb(arr_vin);
});
}
};
};
19 changes: 19 additions & 0 deletions lib/markets/binance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var request = require('request');

var base_url = 'https://api.binance.com/api/v3/ticker/';

function get_summary(coin, exchange, cb) {
var req_url = base_url + '/price?symbol=PIVXBTC';
request({uri: req_url, json: true}, function (error, response, body) {
if (error) {
return cb(error, null);
} else {
if (body.message) {
return cb(body.message, null)
} else {
body.result[0].price = body.result[0].price;
return cb (null, body.result[0]);
}
}
});
}
4 changes: 2 additions & 2 deletions lib/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exports.display = {
"googleplus": false,
"bitcointalk": false,
"website": false,
"slack": false,
"discord": false,
"github": false,
"search": true,
"richlist": true,
Expand Down Expand Up @@ -118,7 +118,7 @@ exports.facebook = "yourfacebookpage";
exports.googleplus = "yourgooglepluspage";
exports.bitcointalk = "yourbitcointalktopicvalue";
exports.website = "yourcompletewebsiteurlincludingtheprotocol";
exports.slack = "yourcompleteslackinviteurlincludingtheprotocol";
exports.discord = "yourcompleteslackinviteurlincludingtheprotocol";
exports.github = "yourgithubaccount/repo";

exports.confirmations = 6;
Expand Down
39 changes: 39 additions & 0 deletions models/masternodeStats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
var mongoose = require('mongoose')
, Schema = mongoose.Schema;

var MasternodeStats = new Schema({
timestamp: {
type: Date,
default: Date.now
},
symbol: {
type: String,
required: true
},
block_count_24h: {
type: Number
},
block_avg_time: {
type: Number
},
count_total: {
type: Number
},
count_enabled: {
type: Number
},
roi_days: {
type: Number
},
reward_coins_24h: {
type: Number
},
price_btc: {
type: Number
},
price_usd: {
type: Number
}
});

module.exports = mongoose.model('masternode_stats', MasternodeStats);
Binary file modified public/favicon.ico
Binary file not shown.
Loading