Crates.io | essential-server |
lib.rs | essential-server |
version | 0.4.0 |
source | src |
created_at | 2024-07-08 02:55:50.422671 |
updated_at | 2024-08-23 04:12:37.589564 |
description | Declaritive constraint checking engine |
homepage | https://essential.builders/ |
repository | https://github.com/essential-contributions/essential-server |
max_upload_size | |
id | 1295302 |
size | 80,004 |
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.
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;
}