Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Luke Imhoff 8466e445a1 Format missed files 7 years ago
.circleci Add heroku's public key to known_hosts 7 years ago
apps Format missed files 7 years ago
bin Remove obsolete config:set that froze build 7 years ago
config Split explorer_web from explorer OTP app 7 years ago
doc Use license_finder with fix for in_umbrella: true 7 years ago
.credo.exs Land #93: Format missed files 7 years ago
.dialyzer-ignore Upgrade ethereumex 7 years ago
.formatter.exs Extend formatter inputs to all .ex and .exs files 7 years ago
.gitignore Split explorer_web from explorer OTP app 7 years ago
.pairs Add Desmond to pairs 7 years ago
.sobelow-conf Make soblow happy 7 years ago
.tool-versions Migrate from CircleCI 1.0 to 2.0 7 years ago
Gemfile Use license_finder with fix for in_umbrella: true 7 years ago
Gemfile.lock Use license_finder with fix for in_umbrella: true 7 years ago
LICENSE Add GPL3 license 7 years ago
Procfile And Balances were backfilled unto the database. 7 years ago
README.md Fix README to describe running without iex 7 years ago
elixir_buildpack.config Migrate from CircleCI 1.0 to 2.0 7 years ago
mix.exs Set minimum Elixir to 1.6 7 years ago
mix.lock Update postgrex 7 years ago
phoenix_static_buildpack.config Add Phoenix 1.3 and umbrella project settings to buildpack config 7 years ago

README.md

POA Explorer CircleCI

This is a tool for inspecting and analyzing the POA Network blockchain.

Machine Requirements

  • Erlang/OTP 20.2+
  • Elixir 1.5+
  • Postgres 10.0

Required Accounts

  • Heroku for deployment
  • Github for code storage

Setup Instructions

Development

To get POA Explorer up and running locally:

  • Set up some default configuration with: $ cp apps/explorer/config/dev.secret.exs.example apps/explorer/config/dev.secret.exs
  • Set up some default configuration with: $ cp apps/explorer_web/config/dev.secret.exs.example apps/explorer_web/config/dev.secret.exs
  • Install dependencies with $ mix do deps.get, local.rebar, deps.compile, compile
  • Create and migrate your database with $ mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with $ cd apps/explorer_web/assets && npm install && cd -
  • Start Phoenix with $ mix phx.server

Now you can visit localhost:4000 from your browser.

You can also run IEx (Interactive Elixir): $ iex -S mix phx.server

CircleCI Updates

Configure your local CCMenu with the following url: https://circleci.com/gh/poanetwork/poa-explorer.cc.xml?circle-token=f8823a3d0090407c11f87028c73015a331dbf604

Testing

  • Build the assets: $ cd apps/explorer_web/assets && yarn build && cd -
  • Format the Elixir code: $ mix format
  • Run the test suite: $ mix test
  • Lint the Elixir code: $ mix credo --strict
  • Run the dialyzer: mix dialyzer --halt-exit-status
  • Check the Elixir code for vulnerabilities: $ mix sobelow --config
  • Lint the JavaScript code: $ cd apps/explorer_web/assets && yarn eslint && cd -

Internationalization

The app is currently internationalized. It is only localized to U.S. English.

To translate new strings, run $ cd apps/explorer_web; mix gettext.extract --merge and edit the new strings in apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po.

Contributing

  1. Fork it ( https://github.com/poanetwork/poa-explorer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write tests that cover your work
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request