Releases: LimeChain/as-scale-codec
Releases · LimeChain/as-scale-codec
Version 0.0.6
- Export the Bytes util
Release Version 0.0.4
- Upgrade to the latest version of assembly script
- Modify example. The garbage collector does not release allocated memory properly [Latest version of JS loader]
Release Version 0.0.3
- Add an example to demonstrate how the library could be used from another AS project as well as interacting with it from JS - https://github.com/LimeChain/as-scale-codec/tree/master/example
- Build fixes
Release Version 0.0.2
Initial implementation of Polkadot SCALE codec written in AssemblyScript
More detailed information about the SCALE codec specification can be found here.
Supported types
The following table shows the status of the types and their arrays:
Type | Support | Array Support |
---|---|---|
Fixed width number |
✅ | ✅ |
Compact Int |
✅ | ✅ |
Big Integer |
🔸 Limited Support | 🔸 Limited Support |
Byte |
✅ | ✅ |
Bool |
✅ | ✅ |
Hash |
✅ | ➖ |
String |
✅ | ✅ |
The following table shows the status of the fixed width numbers:
Тype | 8 |
16 |
32 |
64 |
128 |
256 |
---|---|---|---|---|---|---|
int |
✅ | ✅ | ✅ | ✅ | ➖ | ➖ |
uint |
✅ | ✅ | ✅ | ✅ | ✅ | ➖ |
Special Types
- Compact Int - Documentation