Glossary of Mamoru Terms
The CLI is a globally installed
npm package that provides access to the
mamoru-cli command in your terminal. It allows you to scaffold both SQL and WASM Daemons via
The validation chain is the core of Mamoru. It validates incoming incident reports, manages Daemons and DaemonMetadatas, and registers them in the blockchain.
A daemon is an entity deployed on a specified blockchain that detects and emits incidents to the validation chain.
SQL Daemons allow you to define incident matching logic using SQL. You can write an SQL query against a blockchain context, and if it returns something, the system emits an incident.
WASM Daemons allow you to define incident matching logic using any language that can be compiled to WebAssembly. Currently, only
AssemblyScript is supported. You can write a custom code against a blockchain context, decide when to emit an incident, customize message, severity, etc.
Each daemon uses a "master template" that can be defined as a series of SQL queries or WASM code. This template is called "Daemon Metadata" and can be shared among many daemons if the developer allows it. Sharing a single metadata as the common source for several daemons allows each daemon to have a set of custom parameters defined during the creation of the metadata.
The centralized platform is responsible for listening to all events from the validation chain and sending notifications (SMS, email, webhook, Discord, etc.) to several subscribers. Users can manually or programmatically subscribe to daemon events and provide custom templates to format the data.
© Copyright 2023 Mamoru.ai - MIT License