Code Monkey home page Code Monkey logo

skale-explorer's Introduction

skale-explorer

Service for administrating and running skale blockscouts

Install and run

Prerequisites

  • Clone repo
  • Install docker-compose (if not installed)
  • Put skale-manager ABI for the network in data/abi.json file

Run

Arguments:

  • ENDPOINT - node endpoint with skale-manager (required)
  • SCHAIN_PROXY_DOMAIN - domain of the network proxy (required)
  • VERSION - version of skalenetwork/blockscout. latest by default (optional)
  • FIRST_SCHAIN_ID - first sChain to handle blockexplorer for (optional)
  • LAST_SCHAIN_ID - last sChain to handle blockexplorer for (optional)
ENDPOINT= SCHAIN_PROXY_DOMAIN= run.sh

skale-explorer's People

Contributors

dmytronazarenko avatar dmytrotkk avatar yavrsky avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pinkdiamond1

skale-explorer's Issues

Collect stats for separate chains

Currently explorer stats stores and returns only aggregated statistic for all chains. Need also to store and return data by chains

Add multithreading

We need to run main functions of explorer admin in separate threads to do not block each other:

  • Blockexplorer checker
  • Stats collector
  • Gas price updater

Not optimized recourse usage on skale-explorer for 8 skale chains without any load

Describe the bug
Skale-explorer works with low downtime (>98% of uptime) but uses too many resources of the instance. Chains are without any load, so under load blockscout are going to crash or stuck with the lack of resources.

Preconditions
Active 8 chains without load
Active Skale-Proxy as the endpoint

To Reproduce

  1. Connect to the instance where the skale-explorer is.
  2. Check resource usage in any convenient tool

Expected behavior
Total RSS and CPU usage should use 50% of total resources (400% of 800% CPU and 16GB of 32GB RSS )

Actual state:
Skale-explorer usues almost 100% of allocated resources

image

Coinbase wallet is connected instead of Metamask

Describe the bug
If there are two wallets are active in the browser - Coinbase and Metamask - while choosing Metamask wallet to connect, Coinbase popup window is displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to to any contract and choose "Write contract"
  2. Click on "Connect wallet" and choose Metamask
  3. See Coinbase popup window

Expected behavior
Metamask popup window is displayed with offer to connect wallet

Screenshots

2023-12-05.12.42.57.mov

Dedicated block explorers

Currently, block explorers operate almost at maximum capacity.

We need to be able to:

  • Have easy to use guides to set up dedicated block explorers for specific dApps
  • Make dedicated explorers has the same functionality as main explorer-admin

Can not download CSV file with txs

Tried to download csv file with txs for a contract on a Skale chain but everytime it returns nothing
Will send all information about chain

Network can't be added to metamask

Description
At the bottom of a explorer page a button Add {network} does not work.
изображение

To Reproduce

  1. Open explorer (for example https://staging-perfect-parallel-gacrux.explorer.staging-v3.skalenodes.com)
  2. Scroll down
  3. Press Add staging-perfect-parallel-gacrux
  4. Shed a tear

Expected behavior
The network is added to metamast

Desktop:

  • OS: Ubuntu 23.04
  • Browser: Firefox
  • Version: 118.0.2

Smartphone:

  • Device: Google Pixel 6 Pro
  • OS: Android 14 (UP1A.231005.007)
  • Browser: Chrome
  • Version: 119.0.6045.66

Cache stats for the last run

Currently our stats collection periodically fails with errors:

Query failed: could not resize shared memory segment "/PostgreSQL.1166100790" to 4194304 bytes: No space left on device

Until we do not reconfigure blockscouts infrastructure and architecture to customize space for Postgres DB, we need to cache previous succeed results to avoid zeros for failed chains in the stats

Add tests

Need to add unit tests and tests that emulate work of explorer

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.