Skip to main content

Module standards

Module standards 

Source
Expand description

Reusable Neo N3 standard traits/constants for contract authors.

Structs§

Nep24RoyaltyRecipient
A single NEP-24 royalty payout entry.

Constants§

CALLBACK_STANDARDS
LIFECYCLE_STANDARDS
NEP11_STANDARD
NEP17_STANDARD
NEP22_STANDARD
NEP24_STANDARD
NEP26_STANDARD
NEP27_STANDARD
NEP29_STANDARD
NEP30_STANDARD
NEP31_STANDARD
NEP_11
NEP_17
NEP_22
NEP_24
NEP_26
NEP_27
NEP_29
NEP_30
NEP_31
NEP_BPS_DENOMINATOR
Basis-point denominator used by royalty calculations (10000 == 100%).

Traits§

Nep11Token
NEP-11 non-fungible token standard trait.
Nep17Token
NEP-17 fungible token standard trait.
Nep22Update
NEP-22 update interface.
Nep24Royalty
Minimal NEP-24 royalty trait.
Nep24RoyaltyStack
StackItem-oriented NEP-24 trait for low-level interoperability.
Nep26Lifecycle
Legacy lifecycle helper wrapping runtime update/destroy calls.
Nep26Receiver
NEP-26 NEP-11 payment callback.
Nep27Receiver
NEP-27 NEP-17 payment callback.
Nep29Deploy
NEP-29 deployment callback.
Nep30Verify
NEP-30 verification callback.
Nep31Destroy
NEP-31 destroy interface.

Functions§

common_supported_standards
Common standards list for token + callback + lifecycle contracts.
compute_bps_royalty
Computes a royalty amount from sale price and basis points.