Moonstream is a product which helps anyone participate in decentralized finance.
 
 
 
 
 
Go to file
Kellan Wampler d0979ef96e Removed Section 2 from mobile subscriptions view. 2022-04-21 11:42:38 -04:00
.github/workflows Renamed version variable in moonstream python client yml workflow 2021-11-26 12:19:45 +00:00
backend Activate ethereum subscription type. 2022-03-17 15:58:04 +02:00
clients/python Fixed linting 2021-11-25 13:16:48 +00:00
crawlers Revert "checking function abi before creating job" 2022-04-14 16:00:06 -07:00
datasets/nfts Merge pull request #332 from bugout-dev/test-ethereum-addresses-removing 2021-10-22 23:30:03 -07:00
db Getting polygon_block_latest_label_moonworm_alpha for status db 2022-04-13 16:29:21 +00:00
docs
frontend Removed Section 2 from mobile subscriptions view. 2022-04-21 11:42:38 -04:00
nodes Removed status systemd check to prevent deploy script freeze 2022-03-07 12:24:30 +00:00
.gitignore idea in gitignore 2022-03-04 15:50:05 +03:00
LICENSE
README.md Updated README.md 2022-02-09 07:30:16 -08:00
docker-compose.yml Docker and docker compose setup for db and moonstream api 2021-11-30 14:29:10 +00:00

README.md

moonstream

[Live at https://moonstream.to/](https://moonstream.to)

What is Moonstream?

Moonstream makes tools that help people build, manage, and maintain their blockchain economies.

In order to provide this functionality, we build a lot of technology to crawl blockchains and makes sense of crawled transactions and events. This repository contains that code.

Who uses Moonstream?

Game designers and economists, data scientists, smart contract developers, backend engineers, and teams managing loyalty programs for blockchain projects.

Some of our prominents customers:

  1. Laguna Games, makers of Crypto Unicorns
  2. RealtyBits

Free software

Proprietary technologies are not inclusive technologies, and we believe in inclusion.

All of our technology is open source. This repository contains all the code that powers https://moonstream.to. The code is licensed with the Apache License, Version 2.0.

You are and will always be free to host your own instance of Moonstream.

Architecture

This monorepo contains the following components:

  1. frontend: A web frontend for Moonstream. Allows users to create dashboards and monitor the activity of accounts and smart contracts on multiple blockchains. Built in React.
  2. backend': The Moonstream API allows users to programmatically consume data about transactions and events taking place on blockchains crawled by Moonstream. Built in Python using Fast API.
  3. crawlers: This part of the code base contains workers which extract data from blockchains, transaction pools, and other sources. We have many crawlers and each crawler can utilize a different tech stack.
  4. db: Moonstream stores blockchain data in Postgres. This directory contains the code we use to manage the schema in our Postgres database. For sources that send higher volumes of data, we use a separate Postgres database and interface with it using Bugout.

Installation and setup

Run server with Docker Compose

If you want to deploy Moonstream in isolation against live services, then docker compose is your choice!

  • Run script backend/configs/docker_generate_env.bash which prepare for you:
    • backend/configs/docker.moonstreamapi.env with environment variables
  • Run script db/configs/docker_generate_env.bash which prepare for you:
    • db/configs/alembic.moonstreamdb.ini with postgresql uri
./backend/configs/docker_generate_env.bash
./db/configs/docker_generate_env.bash
  • Run local setup
docker-compose up --build

Contributing

If you would like to contribute to Moonstream, please reach out to @zomglings on the Moonstream Discord.