write_state! take a string or byte array something else as its key?
- If I want to make a compound key for read_state!, how do I use a
H160 in a
format! command to prepare the compound key? What type conversions are provided by the crate and how do I do this?
- How should I store something like an IPFS hash? Should it be using one of the provided types, or just a string?
- Can I store anything using write_state! for which I implement Serde::Serialize? Or are there other special limitations and traits that must be implemented?
These are the kinds of things I need to know and reading the source is not an efficient way to determine them, because for example, H160 might derive from another undocumented type for which it is unclear what methods are available, etc.
So if you have answers to any of these questions, that is great! If not, then I hope this explains what crate documentation is so needed. I appreciate it.