GithubHelp home page GithubHelp logo

iost-official / explorer Goto Github PK

View Code? Open in Web Editor NEW
14.0 31.0 13.0 54.89 MB

IOST Blockchain explorer

License: GNU Lesser General Public License v3.0

Makefile 0.11% Go 42.42% JavaScript 8.19% HTML 0.60% Vue 46.55% CSS 1.69% Shell 0.03% Less 0.42%
iost blockchain

explorer's Introduction

IOST Blockchain Explorer

Prerequisites

  • Golang 1.10.1 (or newer) is required to build this project
  • Mongodb 4.0 (or newer) is required, We recommend Redis stable version
  • node.js 8.10 (or newer) is required

Installation

get repo first:
git clone https://github.com/iost-official/explorer

Frontend

#  Change Directory
cd explorer/frontend/

# build
npm install

# run in test
npm run dev

# run production build
npm run build

Backend

#  Change Directory
cd explorer/backend/

# build
make

# run
./explorer

Mongo Cron Task

#  Change Directory
cd explorer/backend/task

# build
make

# run
./explorer-task

Contribution

Contribution of any forms is appreciated!

Currently, our core tech team is working intensively to develop the first stable version and core block chain structure. We will accept pull request after the first stable release published.

If you have any questions, please email to [email protected]

Community & Resources

Make sure to check out these resources as well for more information and to keep up to date with all the latest news about IOST project and team.

IOSToken on Reddit

Telegram

Twitter

Official website

Disclaimer

  • IOS Blockchain is unfinished and some parts are highly experimental. Use the code at your own risk.

  • 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.

explorer's People

Contributors

crane0 avatar dependabot[bot] avatar jimoquinn avatar kepeng1019 avatar lispc avatar liushiqi9 avatar liuxueyang avatar panawang avatar sswsdsn avatar ziranliu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

explorer's Issues

The frontend "npm run build" command fails with ERROR in ./src/router/index.js: Module not found: Error: Can't resolve '../pages/Home' in '/home/oquinn/iost/explorer/frontend/src/router'

oquinn@black:~/iost/explorer/frontend$ npm run build --report

> [email protected] build /home/oquinn/iost/explorer/frontend
> node build/build.js

⠦ building for production...
Starting to optimize CSS...
Processing static/css/app.3a62fa2209b2ca6629fa6175df1da705.css...
Processed static/css/app.3a62fa2209b2ca6629fa6175df1da705.css, before: 47732, after: 47403, ratio: 99.31%
Hash: 35609639b3914185232e
Version: webpack 2.7.0
Time: 17432ms
                                                  Asset       Size  Chunks                    Chunk Names
          static/fontawesome/webfonts/fa-solid-900.woff    63.8 kB          [emitted]
               static/js/vendor.a2128fb7a6c091bca19c.js     689 kB       0  [emitted]  [big]  vendor
             static/js/manifest.feaabb1a09a43e90d68f.js    1.51 kB       2  [emitted]         manifest
    static/css/app.3a62fa2209b2ca6629fa6175df1da705.css    47.4 kB       1  [emitted]         app
           static/js/vendor.a2128fb7a6c091bca19c.js.map    4.46 MB       0  [emitted]         vendor

[ removed lots of extra messages ]

ERROR in ./src/router/index.js
Module not found: Error: Can't resolve '../pages/Home' in '/home/oquinn/iost/explorer/frontend/src/router'
 @ ./src/router/index.js 6:9-32
 @ ./src/main.js

  Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/oquinn/.npm/_logs/2018-10-22T04_33_21_622Z-debug.log

This was fixed by running the following command:

mv pages/Home/Index.vue pages/Home/index.vue

Wrong to address for a different token

See
selection_999 188

The transaction itself

{
    "status": "IRREVERSIBLE",
    "transaction": {
        "hash": "HoyEuoQ54zj7uA3oT1HjRntsvKuvFbyJKZQ84FgTcEA8",
        "time": "1549571324869336355",
        "expiration": "1549571624869336355",
        "gasRatio": 1,
        "gasLimit": 1000000,
        "delay": "0",
        "chainId": 1024,
        "actions": [
            {
                "contract": "token.iost",
                "actionName": "transfer",
                "data": "[\"metanyx\",\"jerkyrs\",\"metanyx\",\"500\",\"jerkyrs gives metanyx some tokens\"]"
            }
        ],
        "signers": [
        ],
        "publisher": "jerkyrs",
        "referredTx": "",
        "amountLimit": [
            {
                "token": "*",
                "value": "unlimited"
            }
        ],
        "txReceipt": {
            "txHash": "HoyEuoQ54zj7uA3oT1HjRntsvKuvFbyJKZQ84FgTcEA8",
            "gasUsage": 8978,
            "ramUsage": {
            },
            "statusCode": "SUCCESS",
            "message": "",
            "returns": [
                "[]"
            ],
            "receipts": [
                {
                    "funcName": "token.iost/transfer",
                    "content": "[\"metanyx\",\"jerkyrs\",\"metanyx\",\"500\",\"jerkyrs gives metanyx some tokens\"]"
                }
            ]
        }
    }
}

Trying to build backend - Makefile:8: recipe for target 'explorer' failed

Attempted to compile Explorer's backend, but received the error as detailed below. Running the following:

go version go1.12.4 linux/amd64
node v8.16.0
mongodb db version v4.0.9
Ubuntu 16.04

Error on make:

go build -o explorer main.go
# crypto/rc4
/usr/local/go/src/crypto/rc4/rc4_asm.go:15:18: (*Cipher).XORKeyStream redeclared in this block
	previous declaration at /usr/local/go/src/crypto/rc4/rc4.go:61:6
# bytes
/usr/local/go/src/bytes/bytes_decl.go:10:6: IndexByte redeclared in this block
	previous declaration at /usr/local/go/src/bytes/bytes.go:101:34
/usr/local/go/src/bytes/bytes_decl.go:17:6: Equal redeclared in this block
	previous declaration at /usr/local/go/src/bytes/bytes.go:18:25
/usr/local/go/src/bytes/bytes_decl.go:24:6: Compare redeclared in this block
	previous declaration at /usr/local/go/src/bytes/bytes.go:37:27
# strings
/usr/local/go/src/strings/strings_decl.go:8:6: IndexByte redeclared in this block
	previous declaration at /usr/local/go/src/strings/strings.go:150:34
# crypto/cipher
/usr/local/go/src/crypto/cipher/xor_amd64.go:9:6: xorBytes redeclared in this block
	previous declaration at /usr/local/go/src/crypto/cipher/xor.go:58:33
/usr/local/go/src/crypto/cipher/xor_amd64.go:22:6: xorWords redeclared in this block
	previous declaration at /usr/local/go/src/crypto/cipher/xor.go:83:27
Makefile:8: recipe for target 'explorer' failed
make: *** [explorer] Error 2```

Error not found config file

I following command.
$ cd backend/
$ make
$ ./explorer
to error:
panic: Fatal error config file: Config File "config" Not Found in "[/home/userxxx/dapp/go/src/github.com/iost-official/explorer/backend/config]"
err

I need change import config file to my GoPath folder enviroment?

too long time to catch up block

I set up and start ./explorer-task. but its speed is slow.

is there something make it fast?(ex. mongodb's setup, snapshot,and so on...)

npm run build - build fails

npm run build

> [email protected] build /home/oquinn/explorer/explorer/frontend
> node build/build.js

⠙ building for production...
Starting to optimize CSS...
Processing static/css/app.3a62fa2209b2ca6629fa6175df1da705.css...
Processed static/css/app.3a62fa2209b2ca6629fa6175df1da705.css, before: 47732, after: 47403, ratio: 99.31%
Hash: c8bcefc858a5b6f2143f
Version: webpack 2.7.0
Time: 7868ms
                                                  Asset       Size  Chunks                    Chunk Names
        static/fonts/glyphicons-halflings-regular.woff2      18 kB          [emitted]
                    static/js/0.9cdef3ba5a3e81d01b9b.js    32.3 kB       0  [emitted]
                  static/js/app.80b8b96a8dfa01b52d24.js      79 kB       2  [emitted]         app
             static/js/manifest.1050f6a91d302a6a7ae3.js    1.54 kB       3  [emitted]         manifest
    static/css/app.3a62fa2209b2ca6629fa6175df1da705.css    47.4 kB       2  [emitted]         app
                static/js/0.9cdef3ba5a3e81d01b9b.js.map     134 kB       0  [emitted]
           static/js/vendor.24e1cd72458da8d9b434.js.map    2.08 MB       1  [emitted]         vendor
              static/js/app.80b8b96a8dfa01b52d24.js.map     508 kB       2  [emitted]         app
static/css/app.3a62fa2209b2ca6629fa6175df1da705.css.map    77.6 kB       2  [emitted]         app
         static/js/manifest.1050f6a91d302a6a7ae3.js.map    14.7 kB       3  [emitted]         manifest
                                             index.html    1.66 kB          [emitted]
                                   static/css/index.css    5.32 kB          [emitted]
                   static/fontawesome/css/fa-brands.css  687 bytes          [emitted]
               static/fontawesome/css/fa-brands.min.css  633 bytes          [emitted]
                  static/fontawesome/css/fa-regular.css  706 bytes          [emitted]
              static/fontawesome/css/fa-regular.min.css  651 bytes          [emitted]
                    static/fontawesome/css/fa-solid.css  699 bytes          [emitted]
                static/fontawesome/css/fa-solid.min.css  643 bytes          [emitted]
                                static/img/activity.png  804 bytes          [emitted]
                           static/img/arrow-douleft.png    1.55 kB          [emitted]
                              static/img/arrow-left.png    1.01 kB          [emitted]
                             static/img/arrow-right.png  982 bytes          [emitted]
                          static/img/arrow-douright.png    1.57 kB          [emitted]
                                   static/img/block.png    2.05 kB          [emitted]
                                   static/img/close.png  588 bytes          [emitted]
                                 static/img/failure.png    1.64 kB          [emitted]
                                    static/img/icon.png    5.52 kB          [emitted]
                                static/img/iostFoot.png    4.05 kB          [emitted]
                                    static/img/logo.png    5.91 kB          [emitted]
                                  static/img/search.png    2.55 kB          [emitted]
                                    static/img/menu.png  565 bytes          [emitted]
                                 static/img/success.png    1.51 kB          [emitted]
                                    static/img/txns.png  932 bytes          [emitted]
                                       static/js/npm.js  484 bytes          [emitted]
        static/fontawesome/webfonts/fa-regular-400.woff    14.7 kB          [emitted]
       static/fontawesome/webfonts/fa-regular-400.woff2    12.2 kB          [emitted]
                        static/img/apple-touch-icon.png      11 kB          [emitted]
                               static/img/iostWhite.png    12.1 kB          [emitted]
                     static/css/bootstrap-theme.min.css    23.4 kB          [emitted]
                        static/css/intlTelInput.min.css    21.1 kB          [emitted]
          static/fonts/glyphicons-halflings-regular.eot    20.1 kB          [emitted]
               static/js/vendor.24e1cd72458da8d9b434.js    1.75 MB       1  [emitted]  [big]  vendor
         static/fonts/glyphicons-halflings-regular.woff    23.4 kB          [emitted]
                                     static/img/404.png    20.6 kB          [emitted]
                          static/js/intlTelInput.min.js    23.7 kB          [emitted]
                         static/css/bootstrap-theme.css    26.1 kB          [emitted]
                 static/css/bootstrap-theme.min.css.map    25.6 kB          [emitted]
         static/fontawesome/webfonts/fa-regular-400.eot    31.3 kB          [emitted]
         static/fontawesome/webfonts/fa-regular-400.ttf      31 kB          [emitted]
                                 static/img/loading.gif    31.1 kB          [emitted]
             static/fontawesome/css/fontawesome.min.css    39.7 kB          [emitted]
                             static/js/bootstrap.min.js      37 kB          [emitted]
                     static/css/bootstrap-theme.css.map    47.7 kB          [emitted]
                             static/css/fontawesome.css    41.1 kB          [emitted]
         static/fontawesome/css/fontawesome-all.min.css    41.1 kB          [emitted]
          static/fonts/glyphicons-halflings-regular.ttf    45.4 kB          [emitted]
             static/fontawesome/css/fontawesome-all.css    51.6 kB          [emitted]
                 static/fontawesome/css/fontawesome.css    50.1 kB          [emitted]
         static/fontawesome/webfonts/fa-solid-900.woff2    50.4 kB          [emitted]
        static/fontawesome/webfonts/fa-brands-400.woff2    61.3 kB          [emitted]
          static/fontawesome/webfonts/fa-solid-900.woff    63.8 kB          [emitted]
         static/fontawesome/webfonts/fa-brands-400.woff    71.6 kB          [emitted]
                                 static/js/bootstrap.js    69.7 kB          [emitted]
                                   static/img/flags.png      66 kB          [emitted]
                          static/js/jquery-3.3.1.min.js    86.9 kB          [emitted]
         static/fontawesome/webfonts/fa-regular-400.svg     105 kB          [emitted]
                                  static/img/sixTri.png     102 kB          [emitted]
          static/fontawesome/webfonts/fa-brands-400.eot     112 kB          [emitted]
          static/fontawesome/webfonts/fa-brands-400.ttf     111 kB          [emitted]
          static/fonts/glyphicons-halflings-regular.svg     109 kB          [emitted]
                           static/css/bootstrap.min.css     121 kB          [emitted]
                              static/img/iostMarket.png     118 kB          [emitted]
           static/fontawesome/webfonts/fa-solid-900.ttf     133 kB          [emitted]
           static/fontawesome/webfonts/fa-solid-900.eot     133 kB          [emitted]
                               static/css/bootstrap.css     146 kB          [emitted]
                                static/img/[email protected]     174 kB          [emitted]
                 static/fonts/Montserrat-Light.woff.ttf     219 kB          [emitted]
                           static/css/bootstrap.css.map     389 kB          [emitted]
           static/fontawesome/webfonts/fa-solid-900.svg     488 kB          [emitted]  [big]
                       static/css/bootstrap.min.css.map     542 kB          [emitted]
          static/fontawesome/webfonts/fa-brands-400.svg     600 kB          [emitted]  [big]
                                      static/img/bg.png     864 kB          [emitted]  [big]

ERROR in static/js/vendor.24e1cd72458da8d9b434.js from UglifyJs
Unexpected token name «i», expected punc «;» [./~/base-x/index.js:15,0][static/js/vendor.24e1cd72458da8d9b434.js:34779,11]

  Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.

readme.md in explorer/backend needs to be updated

Instructions in explorer/backend/readme.md and explorer/README.md are out of sync, specifically the backend/task section because the task command does not exist.

Command:
nohup ./task &

Should be:
./explorer-task

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.