/messenger-rollup

Primary LanguageGoMIT LicenseMIT

Example Messenger Rollup

Set up Execution API dependencies (protobufs and gRPC):

go get buf.build/gen/go/astria/execution-apis/grpc/go
go get buf.build/gen/go/astria/execution-apis/protocolbuffers/go

Set up Sequencer Client and Tendermint RPC types dependencies:

go get "github.com/astriaorg/go-sequencer-client"
go get "github.com/cometbft/cometbft"

Running the rollup w/ docker-compose

just docker-run

This will launch a local sequencer, conductor, the rollup, and the chat frontend.

Reset rollup data

just docker-reset

Rebuild rollup images

You might need to rebuild the rollup docker images

just docker-build

Helpful things

curl -kv localhost:8080/message
   -H "Accept: application/json" -H "Content-Type: application/json" \
   --data '{"sender":"1c0c490f1b5528d8173c5de46d131160e4b2c0c3","message":"hello my friends"}'
   
curl -kv localhost:8080/block/1