Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.48 KB

STRUCTURE.md

File metadata and controls

52 lines (34 loc) · 1.48 KB

Overview

Anagolay is split into multiple parts for maximum maintainability and ease of use.

  • pallets
  • node
  • runtime

Pallets

  • found in: /pallets
  • crates prefix: pallet-
  • constraints:
    • all crates that go on chain must be [no_std]

Pallets are individual modules within Anagolay Network These are containers that host domain-specific logic. For example, operations contains logic for manipulating with operations.

Current list of pallets:

  • operations
  • poe (Proof-of-Existence)
  • workflows
  • anagolay-support ( all generics are here )
  • statements

Node

  • found in: /node

The default (testing) application pulling together official substrate recommended setup of substrate-client with a wasm-contracts-supporting frame-runtime. The node pulls it all together and constructs the (upgradable) runtime. This is also what is being built and run if you do cargo run.

Runtime

  • found in: /runtime
  • constraints:
    • must be [no_std]

This is the lowest level of abstraction and opinion that everything else builds upon. Here are defined the basics of the chain, from the token to the genesis and default accounts. This is the place where we connect out pallets to the and specify the connection between them.

Integration Tests

  • found in: tests.rs
  • constraints: none at the moment

All tests must pass!!!

Binaries and template

  • found in: /target/debug and /target/release
  • binary name :
    • windows : anagolay.exe
    • linux : anagolay