#move #aftermath-finance #af-move-type #otw

af-move-type

Standard for representing Move types (MoveType) off-chain and their type tags

18 releases

Uses new Rust 2024

new 0.9.6 Apr 17, 2025
0.9.5 Apr 14, 2025
0.9.1 Mar 31, 2025
0.8.7 Mar 8, 2025
0.7.3 Jan 14, 2025

#198 in Magic Beans

Download history 346/week @ 2025-01-11 286/week @ 2025-01-18 318/week @ 2025-01-25 499/week @ 2025-02-01 121/week @ 2025-02-08 147/week @ 2025-02-15 365/week @ 2025-02-22 382/week @ 2025-03-01 425/week @ 2025-03-08 345/week @ 2025-03-15 255/week @ 2025-03-22 596/week @ 2025-03-29 508/week @ 2025-04-05 456/week @ 2025-04-12

1,939 downloads per month
Used in 12 crates (10 directly)

Apache-2.0

160KB
3.5K SLoC

Defines the core standard for representing Move types off-chain and their type tags.

The core items are MoveType and MoveTypeTag. These are useful trait bounds to use when dealing with generic off-chain Move type representations. They are implemented for the primitive types that correspond to Move's primitives (integers/bool). Also included is MoveVec, corresponding to vector and defining a pretty Display.

For Move structs (objects), MoveStruct should be used as it has an associated MoveStructTag. The MoveStruct derive macro is exported for automatically creating a MoveStructTag implementation from normal Rust struct declarations.

A specific instance of a Move type is represented by MoveInstance.


Defines the core standard for representing Move types off-chain and their type tags.

The core items are MoveType and MoveTypeTag. These are useful trait bounds to use when dealing with generic off-chain Move type representations. They are implemented for the primitive types that correspond to Move's primitives (integers/bool). Also included is MoveVec, corresponding to vector and defining a pretty Display.

For Move structs (objects), MoveStruct should be used as it has an associated MoveStructTag. The MoveStruct derive macro is exported for automatically creating a MoveStructTag implementation from normal Rust struct declarations.

A specific instance of a Move type is represented by MoveInstance.

Dependencies

~13MB
~241K SLoC