• Stars
    star
    338
  • Rank 124,931 (Top 3 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created about 7 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ADAMANT Blockchain Explorer

ADAMANT Blockchain Explorer

ADAMANT Messenger is a fully open source Blockchain Messenger. Explorer at https://explorer.adamant.im shows ADAMANT blockchain transactions. You can deploy your own ADAMANT explorer using this repository.

More info abot ADAMANT at https://adamant.im

ADAMANT Explorer version 1.3.0 works in conjunction with the Secu Core API. It uses Redis for caching data and Freegeoip to parse IP geo-location data.

License: GPL v3

Prerequisites

These programs and resources are required to install and run ADAMANT Explorer

  • Nodejs v8.11.3 or higher (https://nodejs.org/) — Node.js serves as the underlying engine for code execution.

    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
  • Redis (http://redis.io) — Redis is used for caching parsed exchange data.

    sudo apt-get install -y redis-server

  • Freegeoip (https://github.com/fiorix/freegeoip) — Freegeoip is used by the Network Monitor for IP address geo-location.

    wget https://github.com/fiorix/freegeoip/releases/download/v3.1.5/freegeoip-3.1.5-linux-amd64.tar.gz
    tar -zxf freegeoip-3.1.5-linux-amd64.tar.gz
    ln -s freegeoip-3.1.5-linux-amd64 freegeoip
    nohup ./freegeoip/freegeoip > ./freegeoip/freegeoip.log 2>&1 &
    
  • Grunt.js (http://gruntjs.com/) — Grunt is used to run eslint and unit tests.

    sudo npm install -g grunt

  • Bower (https://bower.io/) — used for building dependencies.

    sudo npm install -g bower

  • PM2 (https://github.com/Unitech/pm2) — PM2 manages the node process for ADAMANT Explorer and handles log rotation (Highly Recommended)

    sudo npm install -g pm2

  • PM2-logrotate (https://github.com/pm2-hive/pm2-logrotate) — Manages PM2 logs

    pm2 install pm2-logrotate
    pm2 set pm2-logrotate:max_size 100M
    
  • Git (https://github.com/git/git) — Used for cloning and updating ADAMANT Explorer

    sudo apt-get install -y git

  • Tool chain components — Used for compiling dependencies

    sudo apt-get install -y python build-essential automake autoconf libtool

Installation Steps

Clone the ADAMANT Explorer Repository:

git clone https://github.com/zyuhel/adamant-explorer.git
cd adamant-explorer
npm install

Build Steps

Frontend

The frontend is using Webpack to create core bundles for ADAMANT Explorer.

For having a watcher to generate bundles continuously for all the changes of the code, Run the following command:

npm run start

And for generating the minified bundles in production environment run:

npm run build

Configuration

The default config.js file contains all of the configuration settings for ADAMANT Explorer. These options can be modified according to comments included in configuration file.

Managing ADAMANT Explorer

To test that ADAMANT Explorer is configured correctly, run the following command:

node app.js

Open: http://localhost:6040, or if its running on a remote system, switch localhost for the external IP Address of the machine.

Once the process is verified as running correctly, CTRL+C and start the process with PM2. This will fork the process into the background and automatically recover the process if it fails.

pm2 start pm2-explorer.json

After the process is started its runtime status and log location can be found by issuing this statement:

pm2 list

To stop Explorer after it has been started with PM2, issue the following command:

pm2 stop adamant-explorer

Tests

Before running any tests, please ensure ADAMANT Explorer and ADAMANT Node are configured to run on the ADAMANT Testnet.

Replace config.js with config.test file from the test directory:

cp test/config.test ./config.js

Replace the config.json for the ADAMANT Node the corresponding file under the test directory:

cp test/config_lisk.json /PATH_TO_ADAMANT_DIR/config.json

Then restart the ADAMANT Node (example):

pm2 restart /PATH_TO_ADAMANT_DIR/app.js

Launch ADAMANT Explorer (runs on port 6040):

pm2 start pm2-explorer.json

Run the test suite:

npm test

Run individual tests:

npm test -- test/api/accounts.js
npm test -- test/api/transactions.js

End-to-end Tests

Setup for end-to-end tests:

Do all setup steps from "Test" section of this README

Make sure you have wget installed (it's used in ./e2e-test-setup.sh). On Linux by default. On MacOS:

brew install wget

Setup protractor

./node_modules/protractor/bin/webdriver-manager update

Run end-to-end test suite:

./e2e-test-setup.sh /PATH_TO_LISK_DIR
npm run e2e-test -s

Run one end-to-end test feature file:

npm run e2e-test -s -- --specs=features/address.feature

License

Copyright © 2016-2017 Lisk Foundation ©2017-2018 ADAMANT Tech Labs

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


This program also incorporates work previously released with lisk-explorer 1.1.0 (and earlier) versions under the MIT License. To comply with the requirements of that license, the following permission notice, applicable to those parts of the code only, is included below:

Copyright © 2018 ADAMANT TECH LABS LP

Copyright © 2016-2017 Lisk Foundation
Copyright © 2015 Crypti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

adamant

ADAMANT Blockchain Node
JavaScript
728
star
2

ETH-transactions-storage

Indexer for Ethereum to get transaction list by ETH address
Python
610
star
3

adamant-im

ADAMANT Decentralized Messenger. Progressive Web Application (PWA)
Vue
583
star
4

adamant-tradebot

Free self-hosted market-making software for cryptocurrency projects and exchanges. Makes trade volume, maintains spread and liquidity/depth, set price range, and builds live-like dynamic order book.
JavaScript
541
star
5

adamant-coinoptimus

Free self-hosted cryptocurrency trade bot for non-professional traders
JavaScript
378
star
6

pool

ADAMANT Forging pool with Web interface
JavaScript
352
star
7

adamant-api-jsclient

ADAMANT Javascript API library
TypeScript
349
star
8

adamant-exchangebot

Crypto exchange bot for ADAMANT
JavaScript
345
star
9

adamant-console

Command-line utilities to work with ADAMANT blockchain
JavaScript
342
star
10

adamant-iOS

iOS native client for ADAMANT Decentralized Messenger
Swift
337
star
11

adamant-2fa

ADAMANT's Blockchain 2FA demo
JavaScript
335
star
12

adamant-notificationService

ADAMANT push Notification Service for iOS Messenger app
C#
324
star
13

AIPs

ADAMANT Improvement Proposal repository
HTML
288
star
14

adamant-wallets

Unified coin/token specification for wallets in ADAMANT apps
Vue
282
star
15

adamant-schema

Swagger schema for ADAMANT node
TypeScript
263
star
16

adamant-currencyinfo-services

Self-hosted crypto and fiat currency rates service provider. MOEX, Currency-Api, ExchangeRate.host, Coinmarketcap, CryptoCompare and Coingecko.
JavaScript
249
star
17

currencyinfo

Self-hosted crypto and fiat currency rates service provider. Combines MOEX, Currency-Api, ExchangeRate.host, Coinmarketcap, CryptoCompare, and Coingecko.
TypeScript
146
star
18

adamant-android

Android native client for ADAMANT Messenger
Java
28
star
19

adamant-fcm-notification-service

FCM push notification service for ADAMANT
Java
3
star
20

adamant-bountybot

Carry out bounty campaigns & crypto airdrops, with automatic task verifications and payouts. Bounty bots work in ADAMANT Messenger chats directly.
JavaScript
3
star
21

adamant-pool

ADAMANT Forging pool with Web interface
JavaScript
2
star
22

adamant-bet

Anonymous and Blockchain-proved betting on crypto rates
JavaScript
2
star
23

adamant-tradebot-dex

Free market-making software on decentralized exchanges (DEX) for cryptocurrency projects. Makes trade volume, manages liquidity, watches a token price. [In development]
1
star
24

adamant-watchbot

Watches ADAMANT blockchain transactions, notifies about specific ones, recoups fees
JavaScript
1
star
25

adamant-docker

ADAMANT node for Docker
Shell
1
star
26

adamant-trader

Advanced open-source cryptocurrency tradebot
1
star
27

ipfs-node

IPFS decentralized file storage and transfers
1
star