SMART CONTRACTS
← Contract catalogFlexibleToken
Issue and transfer rights or points represented as balances.
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): AmountLikesetWhitelist
typescript
async setWhitelist(registry: Address): Promise<TransactionReceipt>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 patternSpecification 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.solSource revision: b53a5b5