Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    FlexibleToken

    Issue and transfer rights or points represented as balances.

    Tokens & rightsFlexibleToken.sol@hazbase/kit@0.9.0

    Role and use

    Use for fungible units such as participation rights, points or voting tokens.

    Integration considerationsDefine the supply cap, transfer policy and whitelist integration. Map your asset record IDs to contract addresses.

    Key SDK operations

    These operations are exposed by FlexibleTokenHelper in @hazbase/kit@0.9.0. The signatures below are type definitions; see the SDK reference for parameter structures and the complete interface.

    typescript
    import { FlexibleTokenHelper } from '@hazbase/kit';

    mint

    typescript
    async mint(to: Address, amount: BigNumberish): Promise<TransactionReceipt>

    transfer

    typescript
    async transfer(to: string, amount: BigNumberish)

    balanceOf

    typescript
    balanceOf(account: string): AmountLike

    setWhitelist

    typescript
    async setWhitelist(registry: Address): Promise<TransactionReceipt>
    View parameters, return types and all methods

    Related contracts

    Put it into practice

    Physical assets & inventory

    See the data model, processing sequence and SDK code for an application-level implementation.

    Read the implementation pattern

    Specification and source

    The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.

    flexible-token/contracts/FlexibleToken.sol

    Source revision: b53a5b5