Git Product home page Git Product logo

kurtosis-blockscout's Introduction

Polygon CDK/zkEVM Blockscout Package

This is a Kurtosis based stack to deploy Blockscout on arbitrary CDK/zkEVM based chain.

Configuration

Be sure to have Kurtosis installed on you computer: https://docs.kurtosis.com/install/

Create a params.yaml with config params

Required params

  • rpc_url: RPC URL
  • ws_url: WS URL

Optional params

  • blockscout_public_port: port on which you'll have Blockscout frontend available, 8000 by default

  • blockscout_public_ip: public ip if you want to expose blockscout for remote access

  • blockscot_backend_port: if you want to expose blockscout to be accessed remotely (you've set blockscout_public_ip), you need to set a port for backend as well

  • trace_url: RPC URL with debug endpoints enabled, rpc_url will be used if omitted

  • chain_id: l2 chain id, if omitted it will be automatically determined through rpc_url

  • swap_url: URL for swap, will just enable a button link on the top right

  • l1_explorer: explorer URL for L1 network

  • l1_rpc_url: RPC URL for L1

  • deployment_suffix: specific for kurtosis, will append this suffic to all services

  • bridge_info: An object containing this fields:

    • l1_start_block: First L1 block to scan for deposits.
    • l1_contract: Address for L1 bridge contract
    • l1_network_id: Network ID for L1
    • l1_rollup_index: Rollup ID for L1
    • l2_start_block: 0
    • l2_contract: Address for L2 bridge contract
    • l2_network_id: Network ID for L2
    • l2_rollup_index: Rollup ID for L2

Example:

Find config example files under configs folder

Execution

Demo execution for zkEVM Cardona Testnet: kurtosis run github.com/xavier-romero/kurtosis-blockscout --args-file configs/zkevm-cardona.yaml --enclave bs-cardona Point your browser to http://127.0.0.1:8000

Demo execution for zkEVM Mainnet: kurtosis run github.com/xavier-romero/kurtosis-blockscout --args-file configs/zkevm-mainnet.yaml --enclave bs-mainnet Point your browser to http://127.0.0.1:8001

Sample screenshots

Main screen Stats Bridge deposits

kurtosis-blockscout's People

Contributors

xavier-romero avatar leovct avatar

Stargazers

 avatar

Watchers

 avatar

kurtosis-blockscout's Issues

Frontend is not fetching data

I have deployed kurtosis cdk on sepolia. The backend looks functioning well
image

But on frontend I keep seeing "No Data"
image

(I tried deploying it separately as well through this repo, I still face the issue. In separate deployment, the backend is sometimes not deployed, I think i should increase wait time for it maybe.)

But when deployed through kurtosis I see backend running well but frontend still unable to fetch data in any section. Could you please help!

Change service name to avoid kurtosis-cdk RFC 6335 error (length)

I've created a branch in order to change one service name that is breaking kurtosis-cdk deployment when blockscoutL2 is set to enabled.

I think this would fix the issue
image

The error Im getting below

There was an error validating Starlark code 
Error while validating instruction add_service(name="bs-visualize-001", config=ServiceConfig(image="ghcr.io/blockscout/visualizer:main", ports={"bs-visualize-001": PortSpec(number=8050, application_protocol="http")})). The instruction can be found at github.com/xavier-romero/kurtosis-blockscout/visualize.star[6:31]
        Caused by: Port name 'bs-visualize-001' is invalid as it contains disallowed characters. Service names must adhere to the RFC 6335 standard, specifically implementing this regex and be 1-15 characters long: ^[a-z]([-a-z0-9]{0,13}[a-z0-9])?$. This means the service name must only contain lowercase alphanumeric characters or '-', and must start with a lowercase alphabet and end with a lowercase alphanumeric character.

Error encountered running Starlark code.

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.