davebryson / breezy

:boom: A simple framework for building Tendermint applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breezy

A simple framework for building Tendermint applications. Primarily intended for rapid prototypes/demos.

What does it look like?

const breezy = require('breezy);

app = breezy.app('./homedir');

// load something at genesis
app.onInitChain((db) => {
    // ...
});

// Do a state transistion
app.onTx('hello', async (ctx) => {
    return {
        code: 0
    }
});


// Do queries against state
app.onQuery('name', async (key ctx) => {
    let v = await ctx.get(keyname);
    return v.attribute;
})

// Start the ABCI server
app.runWithNode();

See the example directory.

About

:boom: A simple framework for building Tendermint applications

License:Apache License 2.0


Languages

Language:JavaScript 99.8%Language:Shell 0.2%