Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modular Fellow MVP

What does it do?

Building a small blockchain game and SDK. It will use Celestia for Data Availability, Rollmint, Ignite CLI, Cosmos SDK, and Optimism in order to have a faster development in building 2d modular blockchain game.

How will it be built?

Using Flutter and Dart to create the blockchain game that is modular in Web, Desktop both Window, MacOS and Linux and maybe android and ios.

Tech Spec

  • Dart 2.18.4
  • Flutter 3.3.8
  • Go 1.18

What components of the Celestia stack does it interact with? The components of the Celestia stack for this project:

  • Data Availability
  • Rollmint
  • Ignite CLI
  • Cosmos SDK
  • Optimism (Coming Soon)

In the future a modular game scaffolder in order to have a faster development in building 2d modular blockchain game.

Setup Requirements

Game App Layer

To run the Desktop App

cd modular_gm_game
flutter run -d macos

To run the Chrome

cd modular_gm_game
flutter run -d chrome

Celestia Layer

To run a celestia Node

./build/celestia light start --node.network arabica-1
PATH=$PATH:$(go env GOPATH)/bin

run light node

./build/celestia light start --core.ip https://limani.celestia-devops.dev --core.grpc.port 9090

docker run -e NODE_TYPE=light ghcr.io/celestiaorg/celestia-node:0.6.1 celestia light start --core.ip https://rpc-mocha.pops.one --gateway --gateway.addr 127.0.0.1 --gateway.port 26659 --p2p.network mocha

./celestia light start --core.ip https://rpc-mocha.pops.one --gateway --gateway.addr 127.0.0.1 --gateway.port 26659 --p2p.network mocha

celestia light start --core.ip https://rpc-mocha.pops.one:9090 --core.grpc.port 9090 --gateway --gateway.addr 127.0.0.1 --gateway.port 26659 --p2p.network mocha

curl -X GET http://127.0.0.1 :26658/balance

Start the Game Rollup

modulargamed start --rollmint.aggregator true --rollmint.da_layer celestia --rollmint.da_config='{"base_url":"http://localhost:26658","timeout":60000000000,"gas_limit":6000000}' --rollmint.namespace_id 000000000000FFFF --rollmint.da_start_height 100783

sudo kill -9 $(sudo lsof -t -i:8080)

To query all of the on-chain fellows their position and scores:

./modulargamed q modulargame fellows 

To send a transaction from a user

Command sending score, x position, and y position.

./modulargamed tx modulargame create-fellow 0 0 0  --from alice 

Command sending score, x position, and y position sending a yes confirmation

./modulargamed tx modulargame create-fellow 0 0 0  --from alice --yes 

About

Effective chain game

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages