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

nightly no-std multiversx-sc-codec

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

10 releases

0.18.6 Feb 2, 2024
0.18.5 Jan 29, 2024
0.18.3 Dec 18, 2023
0.18.2 Nov 24, 2023
0.17.1 Jan 18, 2023

#431 in Magic Beans

Download history 644/week @ 2024-01-02 589/week @ 2024-01-09 453/week @ 2024-01-16 507/week @ 2024-01-23 542/week @ 2024-01-30 540/week @ 2024-02-06 619/week @ 2024-02-13 483/week @ 2024-02-20 528/week @ 2024-02-27 732/week @ 2024-03-05 771/week @ 2024-03-12 899/week @ 2024-03-19 627/week @ 2024-03-26 721/week @ 2024-04-02 775/week @ 2024-04-09 509/week @ 2024-04-16

2,734 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

~61–445KB
~10K SLoC