...
Basically we can consider 3 types of items
1. Scalars
- int: in SCALE can be encoded as fixed-width integer and compact integer. Compact integer itself has 3 modes. So generally we have 4 ways to serde integer (1 fixed-width + 3 modes of compact integers)
{
"type": "int",
"mode": "CompactTwoByte"//possible values FixedWidth, CompactSingleByte, CompactTwoByte, CompactFourByte, CompactBigInteger,
} - bool: no tricks here
{
"type": "bool"
}
2. Built-in containers
- Option / Result / Vec / typle / array : basically we are interested in only inner values of the container
3. Custom containers
- Structures
...