af-move-type

Crates.ioaf-move-type
lib.rsaf-move-type
version0.13.0
created_at2025-01-12 14:49:05.191376+00
updated_at2025-07-30 01:18:04.215812+00
descriptionStandard for representing Move types (`MoveType`) off-chain and their type tags.
homepage
repositoryhttps://github.com/AftermathFinance/aftermath-sdk-rust
max_upload_size
id1513297
size69,267
UnMaykr (unmaykr-aftermath)

documentation

README

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.

Commit count: 405

cargo fmt