Starknet¶
The Cairo version of TokenTable was released on Starknet in February 2024. It has the same features and API as the EVM version, with these differences:
- Functions and variables are named with
snake_caseinstead ofcamelCase. - TrackerToken is not implemented.
deploy_ttsuitedeploys and returns only the Unlocker and the FutureToken. - Unlocker calls handle one item at a time.
create_preset,create_actual,claim,delegate_claimandcanceleach take a single preset or schedule (actual_id) instead of arrays, and a preset is passed as individual arguments rather than an encoded struct.get_presetreturns thePresetstruct directly. - There is one claiming delegate per Unlocker, set with
set_claiming_delegate(delegate)and read withclaiming_delegate(). extra_datais aSpan<felt252>. The Unlocker also supports Chainlink price-feed presets: the feed address is passed inextra_datatocreate_preset, round IDs are passed inextra_datatoclaim, andcalculate_amount_claimableadditionally returns USD amounts and the feed's decimals. The owner sets the allowed round age withset_chainlink_round_timestamp_tolerance.deploy_ttsuitehas nois_upgradeableflag. Instead it takesis_project_token_legacyfor project tokens that usefelt252rather thanByteArrayforname()andsymbol(). The deployer's owner sets the Unlocker and FutureToken class hashes withset_class_hash.
You can find the source code here. A formal audit was conducted by Nethermind.