Skip to content

Latest commit

 

History

462 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DecentraLabs Smart Contracts

This repository contains the current DecentraLabs on-chain protocol: one EIP-2535 Diamond for labs, institutional reservations, internal service-credit accounting, access evidence and provider settlement.

Protocol at a glance

  • A lab is a provider-managed ERC-721 token with an on-chain price, resource type and access-routing identifiers.
  • The Diamond delegates each approved selector to a facet while all domain state remains in shared AppStorage.
  • The canonical booking write paths are institutional. The active Marketplace flow uses one-time intents; the Diamond also retains direct institutional cancellation selectors for the registered backend. These selectors are not WebAuthn-aware. See docs/institutional-access.md for the trust boundary and DIRECT_BOOKING selector mapping.
  • Service credits are internal, non-refundable accounting units; the protocol has no active external $LAB token settlement flow.
  • A provider receivable is earned only after the reservation lifecycle and the required session evidence permit settlement.
  • resourceType = 0 is an exclusive physical/remote resource. resourceType = 1 is the concurrent FMU path.

Documentation

Start with the documentation guide, or browse the complete table of contents. The most common entry points are:

Source of truth

Solidity source, Foundry tests and selectors/diamond.json define the protocol. abi/Diamond.json is the generated integration ABI; deployment JSON contains network-specific addresses. The separate Lab-Metadata repository defines the off-chain JSON schema and does not alter on-chain state.

Quick verification

forge build
forge fmt --check
forge test
npm run verify:contract-surface
npm run verify:repo-consistency

Selector, storage and deployment-artifact changes require the private maintainer notes and the verification commands above; the public guides describe the deployed protocol surface.

About

Smart contracts for the DecentraLabs project, including the diamond proxy, the multiple facets and the $LAB token

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages