Skip to content

Instantly share code, notes, and snippets.

View cliffhall's full-sized avatar
💥
Technology pivot appearing onscreen now, captain.

Cliff Hall cliffhall

💥
Technology pivot appearing onscreen now, captain.
View GitHub Profile
//--------------------------------------------------------------------------------------------------------------------
// Machine definitions
//
// Plain JS object with the following properties:
//
// name - machine name. begin with letter, no spaces, a-z, A-Z, 0-9, and _
// initialStateId - keccak256 hash of initial state name
// uri - off-chain URI of metadata describing the machine
// states - an array of plain objects representing State entities
//
const { nameToId } = require('fismo/sdk/node');
//--------------------------------------------------------------------------------------------------------------------
// Machine metadata definitions
//
// Plain JS object with the following properties:
//
// name - machine name as installed in Fismo. (required)
// id - machine id (required)
// title - short text title of the machine or project (optional)