JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
376 stars 186 forks source link

Recipes for overarching patterns #362

Open JoshOrndorff opened 3 years ago

JoshOrndorff commented 3 years ago

Each piece of code (pallet, runtime, consensus engine, node) in the recipes has a writeup detailing the important aspects of the code. That is good.

The recipes also exhibit some overarching patterns that are common among them and not associated with a single piece of code. These should be written up too.

Existing overarching patterns:

Potential future patterns:

JoshOrndorff commented 3 years ago

This might be a nicer way to handle the polkadot js types rather than making custom tools. https://github.com/maciejhirsz/json-rust

Another option would be to publish a dedicated npm bundle like moonbeam does.

nuke-web3 commented 3 years ago

Related? https://github.com/paritytech/substrate/discussions/8370

If this lands in substrate, types for the API at least will be much more transparent and automatically generated. 🧙🏼