#multiversx #blockchain #smart-contracts #contract #wasm #test-framework

no-std multiversx-sc-codec

Lightweight binary serializer/deserializer, written especially for MultiversX smart contracts

14 unstable releases (3 breaking)

new 0.20.0 Jul 6, 2024
0.18.8 May 7, 2024
0.18.6 Feb 2, 2024
0.18.3 Dec 18, 2023
0.17.1 Jan 18, 2023

#702 in Magic Beans

Download history 818/week @ 2024-03-14 805/week @ 2024-03-21 624/week @ 2024-03-28 774/week @ 2024-04-04 673/week @ 2024-04-11 617/week @ 2024-04-18 773/week @ 2024-04-25 820/week @ 2024-05-02 1166/week @ 2024-05-09 806/week @ 2024-05-16 1049/week @ 2024-05-23 811/week @ 2024-05-30 739/week @ 2024-06-06 899/week @ 2024-06-13 645/week @ 2024-06-20 573/week @ 2024-06-27

2,976 downloads per month
Used in 15 crates (4 directly)

GPL-3.0-only

125KB
3.5K SLoC

Smart contract standard codec

crates.io

Lightweight binary serializer/deserializer, written especially for MultiversX smart contracts.

Designed to:

  • produce minimal WASM bytecode
  • be fast
  • avoid data copy as much as possible

Largely inspired by the Parity SCALE codec, but a completely different format and implementation.

For more info about the serialization format, see the developer reference.

no-std

Being designed for MultiversX smart contracts, it needs to be able to run in a no-std environment.

It is also safe to run in a regular std environment.

The types provided by default all work without an allocator. To use an allocator, pass feature flag "alloc".

Dependencies

~67–430KB