Welcome to the Metagraph Examples repository! This repository contains a collection of example codebases located in the examples
directory. Each codebase serves as a starting point for developers to create their own projects, while also demonstrating specific functionalities of the metagraph framework. These examples are designed to help you understand and utilize various features of the Euclid SDK.
Each example in this repository is designed to run in the Euclid SDK. The Euclid SDK is a comprehensive development environment provided by Constellation Network for building and deploying metagraphs.
- Euclid SDK Repo: Euclid Development Environment
- Euclid SDK Documentation: Euclid SDK Docs
Each of the example repos has their own README.md file inside their directory with additional details. Most examples include scripts to demonstrate how to send data to the metagraph endpoints and several of the examples (Voting, NFT) also include a React JS frontend that can be used to interact with the metagraph.
You can install any of the example codebases using Euclid's CLI tool, hydra
.
To install a specific example, use the following command:
hydra install-template <example-repo>
For a full list of available examples, run:
hydra install-template --list
Below is a list of available example codebases and the specific functionalities they demonstrate:
Description: A currency application that demonstrates the basics of custom transaction validation. Functionality: Basic currency app, custom transaction validation.
Description: A currency application that mints tokens based on the results of an external API call. Functionality: Reward distribution, external API integrations.
Description: This metagraph codebase implements custom NFTs following the ERC-721 standard. Functionality: Custom data types, data validation, frontend UI.
Description: A data application that implements polls with token-based voting, displaying a basic DAO use case. Functionality: Custom data types, data validation, frontend UI, Stargazer wallet integration.
Description: A data application demonstrating a basic IoT integration use case. Functionality: Custom data types, calculated state.
This repository is licensed under the Apache License 2.0. See the LICENSE file for more information.
For questions or support, please reach out to the Constellation Network community on Discord or open an issue in this repository.