yijie37 / substrate-offchain-cb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Substrate Offchain Callback Example

Build Status

This recipe shows how to build an offchain-worker that the runtime communicates with asynchronously by issuing events with callbacks the offchain worker responds to at a later point.

Run

Note: expects to have a full substrate checkout in ../substrate to work.

cargo run --release -- --dev

Docs

see docs/index.html (or rendered here on github pages: https://gnunicorn.github.io/substrate-offchain-cb/ ) for a nicely rendered html of the inline docs explaining the runtime code.

To update this, please install dadada and run: dadada --title "Substrate Offchain Worker Example" -o docs/index.html runtime/src/offchaincb.rs runtime/src/lib.rs

About

License:The Unlicense


Languages

Language:Rust 99.2%Language:Shell 0.8%