8 releases (4 breaking)

new 0.4.0 Apr 17, 2024
0.3.0 Apr 10, 2024
0.2.1 Apr 9, 2024
0.1.0 Mar 28, 2024
0.0.0 Feb 27, 2024

#5 in #nifty

Download history 129/week @ 2024-02-23 159/week @ 2024-03-01 30/week @ 2024-03-08 125/week @ 2024-03-15 244/week @ 2024-03-22 68/week @ 2024-03-29 441/week @ 2024-04-05

879 downloads per month
Used in 3 crates

Apache-2.0

105KB
2.5K 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

~17–26MB
~418K SLoC