Skip to content

alecsavvy/clockwise

Repository files navigation

clockwise

Clockwise is an entity manager implementation intended to upgrade the acdc network to something more lightweight and secure.

running

To run the local cluster on your machine with a running loadtest, all you need to do is run the make file. Make sure to have docker running and go installed.

make deps # run only once
make

Once the cluster starts up, head to your favorite node at http://localhost:66{0-6}3/graphiql.

You can then copy some of the graphql queries from the examples into the interface to get started.

architecture

core

Where the embedded chain node is ran from as well as the abci for said node is implemented.

protocol

This is the internal protocol that lives forever. To run compatible nodes this is what you'd have to implement alongside cometbft.

pubsub

A generic pubsub module that uses channels to publish to multiple subscribers.

graph

GraphQL interface for clockwise. This was initially implemented to avoid needing a frontend to test. To use go to http://{node}:{port}/graphiql

loadtest (moshpit)

Separate binary that uses the graphql client to send a constant stream of entity manager events to nodes. Also known as mosh pit. Has a UI located at http://localhost:8080.

infra

Docker compose, dockerfiles, and other crap to stand up the cluster locally. Also builds moshpit into it's own image.

sdk

External go client that's used by moshpit but could also be used by external projects.

About

an ephemeral blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published