Resource Interface INFT
_10pub resource interface INFT {_10_10 pub let id: UInt64_10}
Interface that the NFTs have to conform to The metadata views methods are included here temporarily because enforcing the metadata interfaces in the standard would break many contracts in an upgrade. Those breaking changes are being saved for the stable cadence milestone
Functions
getViews()
_10fun getViews(): [Type]
Function that returns all the Metadata Views implemented by a Non Fungible Token
developers to know which parameter to pass to the resolveView() method.
Returns: An array of Types defining the implemented views. This value will be used by
resolveView()
_10fun resolveView(_: Type): AnyStruct?
Function that resolves a metadata view for this token.
Parameters:
- view : The Type of the desired view.
Returns: A structure representing the requested view.