Skip to content

Go language SDK for rollup development on the Espresso sequencer

License

Notifications You must be signed in to change notification settings

EspressoSystems/espresso-network-go

Repository files navigation

Espresso Sequencer Go SDK

This package provides tools and interfaces for working with the Espresso sequencer in Go. It should (eventually) provide everything needed to integrate a rollup written in Go with the Espresso sequencer.

Development

  • Obtain code:

      git clone [email protected]:EspressoSystems/espresso-network-go
      git submodule update --init --recursive
    
  • Make sure nix is installed.

  • Activate the environment with nix-shell, or nix develop, or direnv allow if using direnv.

Verification

Run the following command to download the static library for the current platform.

sudo go run github.com/EspressoSystems/espresso-network-go/download download

Or you can specify the version with -v flag.

sudo go run github.com/EspressoSystems/espresso-network-go/download download -v 0.0.32

Build the verification library.

go build github.com/EspressoSystems/espresso-network-go/verification

You can also clean the downloaded files with the following command.

sudo go run github.com/EspressoSystems/espresso-network-go/download clean

Run the linter and unit tests

just lint
just test

Generating contract bindings

just bind-light-client