Module ergo_lib_c_core::token
source · Expand description
Token types
Structs
- Token represented with token id paired with its amount
- Token amount with bound checks
- Token id (32 byte digest)
Functions
- Get value as signed 64-bit long
- Create from i64 with bounds check
- Get token amount
- Get token id
- Create token id from ergo box id (32 byte digest)
- Parse token id (32 byte digest) from base16-encoded string
- Base16 encoded string
- Create a token with given token id and amount
- JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23