FuelLabs / fuel-indexer

🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
https://docs.fuel.network/docs/indexer/
140 stars 66 forks source link

Documentation for all primitive Sway types #1478

Open Braqzen opened 8 months ago

Braqzen commented 8 months ago

In the documentation there are sections which display the usage of sway structs that usually, if not exclusively, contain integers.

There are snippets of code rather than complete examples from Sway to the Indexer.

It would be useful to document each primitive type that sway provides (in full) with the full code for the indexer (and the schema) so that there is a clear 1-to-1 mapping for how to index each type and the steps to build.

It also reduces the cognitive load if we can almost blindly copy and paste via a tutorial-esque form of documentation.