Skip to content

A noVM messaging rollup built on top of the Astria Sequencer Layer.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

astriaorg/noVM-messenger

Repository files navigation

Simple chat rollup

Rollups on Astria are virtual machine (VM) agnostic, which means that they can function without relying on a VM — a concept we refer to as a noVM rollup.

Using Astria's Execution API, developers can build rollups tailored to any application type that operates on transactions, messages, and blocks.

This repo contains a simplified noVM messenger rollup app which users can interact with using a cli to submit messages and access message history from the rollup.

⚠️ Development Notice ⚠️

This is an example project intended for demonstration and learning purposes only. It is not production-ready and should not be used in a production environment.

Important Notes

  • This code may contain incomplete features
  • Security measures may not be fully implemented
  • Performance optimizations are not included
  • Documentation may be limited

Please use this project only as a reference or starting point for your own implementation.

Run in a local cluster

preparation

Clone the repository and then build a local docker image with

docker buildx build --load --build-arg up -f ./Dockerfile -t chat-rollup:local-v0.0.1

In a differnet terminal open the astria monorepo chat-rollup chart branch which will be used to deploy the chat rollup on astria local dev cluster.

deploy to cluster

In the astria monorepo terminal to deploy the cluster run

just deploy cluster
just deploy ingress-controller
just wait-for-ingress-controller

then run celestia network and sequencer network with

just deploy astria-local

and finally deploy the chat-rollup

just deploy dev-rollup

on deployment the chat-rollup rest endpoint will serve at (http://rest.astria.localdev.me).

Interact using the cli

Install the rollup cli by running

just install-cli

Current supported commands:

  • rollup-cli rollup transfer --amount --private-key <PRIVATE_KEY> <TO_ADDRESS>
  • rollup-cli rollup text --private-key <PRIVATE_KEY>

query the rollup state: curl http://rest.astria.localdev.me/get_text_from_id/{message_id} curl http://rest.astria.localdev.me/get_account_balance/{address}/{asset}

About

A noVM messaging rollup built on top of the Astria Sequencer Layer.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages