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

no-std multiversx-sc-codec

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

13 releases

new 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

#724 in Magic Beans

Download history 489/week @ 2024-01-22 574/week @ 2024-01-29 508/week @ 2024-02-05 616/week @ 2024-02-12 525/week @ 2024-02-19 505/week @ 2024-02-26 711/week @ 2024-03-04 760/week @ 2024-03-11 937/week @ 2024-03-18 606/week @ 2024-03-25 707/week @ 2024-04-01 807/week @ 2024-04-08 515/week @ 2024-04-15 733/week @ 2024-04-22 748/week @ 2024-04-29 1191/week @ 2024-05-06

3,209 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–425KB