Skip to content

OilerNetwork/pitchlake-plugin-juno

Repository files navigation

Juno-plugin

This repository provides an example plugin for Juno.

Todo:

Remove the replace command in go.mod when plugin is supported on Junos main branch

Important:

Go plugings require that both the application (Juno in this case) and the plugin (myplugin.go) are built with the exact same version of Go, and, the same dependecies.

How to build

  1. Fetch the Juno submodule: git submodule update --init --recursive
  2. Build Juno: cd juno && make juno
  3. Run make build from the root of this repository. This should generate an .so file, which you will need to pass into Juno.
  4. Pass the .so file generated in step 2 above, into Juno. For example, ./build/juno --plugin-path ./path/to/myplugin.so

Running with Docker

Use snapshot

The snapshots are mapped in the docker container from $HOME/snapshots folder. Checkout the Juno repo[https://github.com/NethermindEth/juno] for more details and to get the latest snapshot. Create a folder named snapshots in your root directory to map this.

Run

Run docker compose up --build from the root of this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published