types/cip68

Types

The generic CIP68 metadatum type as defined in the CIP at https://cips.cardano.org/cips/cip68/.

Constructors

  • CIP68 { metadata: Pairs<Data, Data>, version: Int }

Constants

prefix_100: ByteArray = #"000643b0"

(100) Reference Token Prefix https://developers.cardano.org/docs/governance/cardano-improvement-proposals/cip-0068/#222-nft-standard

prefix_222: ByteArray = #"000de140"

(222) Non-Fungible Token Prefix https://developers.cardano.org/docs/governance/cardano-improvement-proposals/cip-0068/#222-nft-standard

prefix_333: ByteArray = #"0014df10"

(333) Fungible Token Prefix https://developers.cardano.org/docs/governance/cardano-improvement-proposals/cip-0068/#333-ft-standard

prefix_444: ByteArray = #"001bc280"

(444) Rich-Fungible Token Prefix https://developers.cardano.org/docs/governance/cardano-improvement-proposals/cip-0068/#333-ft-standard

Functions

get(cip68: CIP68, key: Data) -> Data

Attempt to find a data structure by a key inside the cip68 metadatum. If nothing is found then fail.

cip68.get(metadatum, some_key)

version(metadata: CIP68) -> Int

Return the version of the metadata.

metadatum |> cip68.version
Search Document