Skip to main content

ICLBToken.sol

ICLBToken

Interface for CLBToken contract, which represents Liquidity Bin tokens.

totalSupply

function totalSupply(uint256 id) external view returns (uint256)

Total amount of tokens in with a given id.

  • Parameters:

    NameTypeDescription
    iduint256The token ID for which to retrieve the total supply.
  • Return Values:

    NameTypeDescription
    [0]uint256The total supply of tokens for the given token ID.

totalSupplyBatch

function totalSupplyBatch(uint256[] ids) external view returns (uint256[])

Total amounts of tokens in with the given ids.

  • Parameters:

    NameTypeDescription
    idsuint256[]The token IDs for which to retrieve the total supply.
  • Return Values:

    NameTypeDescription
    [0]uint256[]The total supples of tokens for the given token IDs.

mint

function mint(address to, uint256 id, uint256 amount, bytes data) external

Mints new tokens and assigns them to the specified address.

  • Parameters:

    NameTypeDescription
    toaddressThe address to which the minted tokens will be assigned.
    iduint256The token ID to mint.
    amountuint256The amount of tokens to mint.
    databytesAdditional data to pass during the minting process.

burn

function burn(address from, uint256 id, uint256 amount) external

Burns tokens from a specified address.

  • Parameters:

    NameTypeDescription
    fromaddressThe address from which to burn tokens.
    iduint256The token ID to burn.
    amountuint256The amount of tokens to burn.

decimals

function decimals() external view returns (uint8)

Retrieves the number of decimals used for token amounts.

  • Return Values:

    NameTypeDescription
    [0]uint8The number of decimals used for token amounts.

name

function name(uint256 id) external view returns (string)

Retrieves the name of a token.

  • Parameters:

    NameTypeDescription
    iduint256The token ID for which to retrieve the name.
  • Return Values:

    NameTypeDescription
    [0]stringThe name of the token.

description

function description(uint256 id) external view returns (string)

Retrieves the description of a token.

  • Parameters:

    NameTypeDescription
    iduint256The token ID for which to retrieve the description.
  • Return Values:

    NameTypeDescription
    [0]stringThe description of the token.

image

function image(uint256 id) external view returns (string)

Retrieves the image URI of a token.

  • Parameters:

    NameTypeDescription
    iduint256The token ID for which to retrieve the image URI.
  • Return Values:

    NameTypeDescription
    [0]stringThe image URI of the token.