Offchain Workers: Example Pallet (#4989)
* Example of offchain worker pallet. * Fix compilation issues. * Use serde_json to parse JSON. * Add some basic tests. * Working on docs. * Fix compilation * Finish docs for signed. * Work on unsigned send. * Add some tests and missing docs. * Add example of StorageValueRef * Add weight. * Extra \n * Fix im-online test. * Bump runtime. * Fix tests. * Apply suggestions from code review Co-Authored-By: Joshy Orndorff <JoshOrndorff@users.noreply.github.com> Co-Authored-By: Gavin Wood <gavin@parity.io> * Address review comments. Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com> Co-authored-by: Gavin Wood <github@gavwood.com>
Showing
- Cargo.lock 25 additions, 4 deletionsCargo.lock
- Cargo.toml 1 addition, 0 deletionsCargo.toml
- bin/node/runtime/src/lib.rs 1 addition, 1 deletionbin/node/runtime/src/lib.rs
- frame/example-offchain-worker/Cargo.toml 29 additions, 0 deletionsframe/example-offchain-worker/Cargo.toml
- frame/example-offchain-worker/src/lib.rs 548 additions, 0 deletionsframe/example-offchain-worker/src/lib.rs
- frame/example-offchain-worker/src/tests.rs 210 additions, 0 deletionsframe/example-offchain-worker/src/tests.rs
- frame/executive/src/lib.rs 5 additions, 0 deletionsframe/executive/src/lib.rs
- frame/im-online/src/lib.rs 0 additions, 2 deletionsframe/im-online/src/lib.rs
- frame/im-online/src/tests.rs 7 additions, 8 deletionsframe/im-online/src/tests.rs
- primitives/core/src/offchain/testing.rs 4 additions, 2 deletionsprimitives/core/src/offchain/testing.rs
- primitives/runtime/src/offchain/mod.rs 2 additions, 0 deletionsprimitives/runtime/src/offchain/mod.rs
Please register or sign in to comment