cip

Vodka provides utility functions to build CIP onchain code

Example usage

use cip
use cardano/assets.{AssetName}

let cip68_100_asset_name = cip.cip68_100(asset_name);
let cip68_222_asset_name = cip.cip68_222(asset_name);
let cip68_333_asset_name = cip.cip68_333(asset_name);
let cip68_444_asset_name = cip.cip68_444(asset_name);

Types

The metadata attached with CIP-68 reference token (100)

Constructors

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

Constants

cip68_100_prefix: ByteArray = #"000643b0"

The byte prefix for CIP-68 asset - Reference Token

cip68_222_prefix: ByteArray = #"000de140"

The byte prefix for CIP-68 asset - Non-Fungible Token

cip68_333_prefix: ByteArray = #"0014df10"

The byte prefix for CIP-68 asset - Fungible Token

cip68_444_prefix: ByteArray = #"001bc280"

The byte prefix for CIP-68 asset - Rich-Fungible Token

Functions

drop_cip68_prefix(cip_68_asset_name: AssetName) -> AssetName

cip68_100(asset_name: AssetName) -> AssetName

Obtain the asset name for CIP-68 asset - Reference Token

let cip68_100_asset_name = cip68_100(asset_name);

cip68_222(asset_name: AssetName) -> AssetName

Obtain the asset name for CIP-68 asset - Non-Fungible Token

let cip68_222_asset_name = cip68_222(asset_name);

cip68_333(asset_name: AssetName) -> AssetName

Obtain the asset name for CIP-68 asset - Fungible Token

let cip68_333_asset_name = cip68_333(asset_name);

cip68_444(asset_name: AssetName) -> AssetName

Obtain the asset name for CIP-68 asset - Rich-Fungible Token

let cip68_444_asset_name = cip68_444(asset_name);
Search Document