11 releases (6 breaking)

0.6.0 May 21, 2024
0.5.1 May 14, 2024
0.4.0 Apr 17, 2024
0.3.0 Apr 10, 2024
0.0.0 Feb 27, 2024

#6 in #nifty

Download history 144/week @ 2024-03-21 168/week @ 2024-03-28 320/week @ 2024-04-04 241/week @ 2024-04-11 175/week @ 2024-04-18 311/week @ 2024-05-09 209/week @ 2024-05-16 52/week @ 2024-05-23 2/week @ 2024-05-30 7/week @ 2024-06-06 12/week @ 2024-06-13 8/week @ 2024-06-20 7/week @ 2024-06-27 52/week @ 2024-07-04

82 downloads per month
Used in 5 crates (3 directly)

Apache-2.0

120KB
3K SLoC

nifty-asset-types

Types for Nifty Asset program.

The types defined in this crate are used to represent assets on-chain.

  • constraints - these are types to define constraints when manipulating assets. They can be used to restrict the accounts that can hold, receive or send assets.

  • extensions - these are types that provide additional data that can be attached to an asset. They can be used to store more information about an asset on-chain or extends their behaviour.

  • state - these are the types represeting the account that store the state of an asset on-chain.

This crate is usually used as part of the Nifty Asset SDK.


lib.rs:

Nifty Asset Types defines the types that are used to represent assets on-chain.

  • Constraints - these are types to define constraints when manipulating assets. They can be used to restrict the accounts that can hold, receive or send assets.

  • Extensions - these are types that provide additional data that can be attached to an asset. They can be used to store more information about an asset on-chain or extends their behaviour.

  • State - these are the types represeting the account that store the state of an asset on-chain.

Dependencies

~16–26MB
~418K SLoC