This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------------------------------------------------------------------------------------------- | |
// 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 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
OlderNewer