essential-server

Crates.ioessential-server
lib.rsessential-server
version0.4.0
sourcesrc
created_at2024-07-08 02:55:50.422671
updated_at2024-08-23 04:12:37.589564
descriptionDeclaritive constraint checking engine
homepagehttps://essential.builders/
repositoryhttps://github.com/essential-contributions/essential-server
max_upload_size
id1295302
size80,004
(essentialcontributions)

documentation

README

Essential Server

Crates.io Documentation license Build Status

A centralized server implementation of the Essential declarative protocol. This crate is responsible for building blocks and managing the core functionality of the Essential application, serving as the backbone for the entire system.

Block State Contract

The server uses a special contract to store state about the blocks. Currently this includes time and block number. If you want to query this state you can do the following:

interface BlockState {
    storage {
        number: int,
        time: int,
    }
}

predicate MyPredicate {
    interface Block = BlockState(0xF745D1D91B68080CF398556DDD611B620964D2B1974C0283F03AC7C142B394DF);

    state time = Block::time;
    state number = Block::number;
}
Commit count: 93

cargo fmt