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

no-std multiversx-sc-codec

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

13 releases

0.19.0 May 10, 2024
0.18.7 Apr 30, 2024
0.18.6 Feb 2, 2024
0.18.3 Dec 18, 2023
0.17.1 Jan 18, 2023

#739 in Magic Beans

Download history 583/week @ 2024-02-02 576/week @ 2024-02-09 513/week @ 2024-02-16 512/week @ 2024-02-23 546/week @ 2024-03-01 834/week @ 2024-03-08 885/week @ 2024-03-15 771/week @ 2024-03-22 624/week @ 2024-03-29 758/week @ 2024-04-05 621/week @ 2024-04-12 666/week @ 2024-04-19 751/week @ 2024-04-26 911/week @ 2024-05-03 1133/week @ 2024-05-10 774/week @ 2024-05-17

3,688 downloads per month
Used in 14 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

~68–450KB
~10K SLoC