Tokens

This document is better viewed at https://docs.etherisc.com/contracts/api/tokens

Contracts

BundleToken

import "@etherisc/gif-contracts/contracts/tokens/BundleToken.sol";
Modifiers

onlyBundleModule() modifier

constructor() public

Constructor function for the ERC721 token contract. It sets the name and symbol of the token and initializes the Ownable contract.

setBundleModule(address bundleModule) external

Sets the bundle module address.

mint(uint256 bundleId, address to) → uint256 tokenId external

Mints a new bundle token and assigns ownership to the specified address.

burn(uint256 tokenId) external

Burns a bundle token.

burned(uint256 tokenId) → bool isBurned external

Checks if a token has been burned.

getBundleId(uint256 tokenId) → uint256 external

Returns the bundle ID associated with a given token ID.

getBundleModuleAddress() → address external

Returns the address of the bundle module.

exists(uint256 tokenId) → bool external

Checks if a given token ID exists.

totalSupply() → uint256 tokenCount external

Returns the total number of tokens in circulation.