Skip to content

astriaorg/messenger-rollup

Repository files navigation

Example Messenger Rollup

Set up Execution API and Composer 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
go get buf.build/gen/go/astria/composer-apis/grpc/go
go get buf.build/gen/go/astria/composer-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.

Note that conductor and composer might take 1-2s to come up since they depend on the rollup and the cometbft instance to come up.

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