Definition Metadata

The definition of the crafting rule

The crafting rule definition is optional.

The metadata for the crafting rule is simple. An example is shown here:

{
    "name": "My First Crafting Rule", 
    "inputs": [
        {
            "address": "0x123...",  // the address of the `clothes.sol` contract
            "class": 1,             // the first class in the contract. 'Pants'
        },
        ...
    ],
    "outputs": [
        {
            "address": "0x123...",  // output address of first output
            "class": 2,             // the class of the first output
        },
        ...
    ]
}

Last updated