Skip to content
This repository was archived by the owner on Sep 28, 2026. It is now read-only.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

FuelSequencer

FuelSequencer is a blockchain built using Cosmos SDK and CometBFT and created with Ignite CLI.

Get started

Dependencies:

To run the Sequencer, Sidecar, and an Ethereum node:

make install run-eth-e2e-containers run-sequencer  # terminal 1
make run-sidecar                                   # terminal 2
make clean                                         # once you're done

To run just the Sidecar and an Ethereum node:

make install run-eth-e2e-containers run-sidecar
make clean # once you're done

To generate keys for executing transactions:

make keys

Configure

Your blockchain in development can be configured with config.yml. To learn more, see the Ignite CLI docs.

Build for Release

Build binary for various architectures:

make build-with-checksum

Verify checksum:

cd build && sha256sum -c sha256sum.txt

To get an indication as to which binary to run:

echo "$(uname -s)-$(uname -m)"

Linting

Linting Go Code

make lint

Formatting Proto files

Dependencies:

make proto-format

Update swagger docs

Dependencies:

make proto-swagger-gen

Docker

Build Docker image

Dependencies:

make build-docker-image

Running Docker Image

The first time you run the docker container you should run it using:

# with Sidecar
make run-docker-container \
  ETH_RPC_URL="http://example:8545" \
  ETH_WS_URL="ws://example:8545"

# without Sidecar
make run-docker-container \
  ETH_RPC_URL="http://example:8545" \
  ETH_WS_URL="ws://example:8545" \
  COMMAND="fuelsequencerd start"

Note that the Ethereum node URLs need to be set explicitly since it does not make sense to default to localhost in the scope of a Docker container. If your Ethereum node is running on localhost you will need to specify your host's IP as the Ethereum address. If that does not work, you might need to reconfigure your host firewall to allow Docker to connect on 8545.

The command above will do the following:

  1. Create the docker container.
  2. Map the chain data located at ./data/fuelsequencer by default using docker volumes.
  3. Give a name to the container.
  4. Expose the necessary ports.
  5. Start the container.

If you want to pass an alternative data folder you should run the make command as follows:

make run-docker-container \
  ETH_RPC_URL="http://example:8545" \
  ETH_WS_URL="ws://example:8545" \
  DATA_FOLDER="/path/to/folder/with/config/data/and/keyring-test"

After creating and running the docker container for the first time, you should manage the container as follows:

# To stop the container
make stop-docker-container
# To restart the container
make start-docker-container
# Run make stop-docker-image first if the container has not been stopped yet.
make stop-docker-container

# To remove the container.
make remove-docker-container

NOTE: Re-running the container using make run-docker-container will fail because docker will find an existing container with the same name during the creation process.

To follow the container's logs run the following command:

make follow-docker-logs

References

Testing

Generate mocks

make mocks

Unit tests

make test-unit

E2E tests

You will need a Sequencer image and Ethereum deployment image:

Ensure e2e/fuel-rollup/.npmrc file is set up before running this!
It should contain //registry.npmjs.org/:_authToken=<NPM_TOKEN>.
<NPM_TOKEN> is an access token to be obtained from your NPM account.

make build-all-docker-images

Then you can run E2E tests:

make test-e2e

FAQs

Ran into issues when building/running the chain or the docker image

Most likely this occurs due to permission issues on Linux and the solution is simply to run the following inside the project's root directory:

chmod -R 777 ./

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages