African Innovation, Blockchain, Starknet, Tokenbound

Announcing Tokenbound V3 on Starknet

November 25, 2024

A New Era for Tokenbound Accounts

We’re excited to announce the launch of Tokenbound V3, a significant upgrade packed with powerful new features.
Building upon the robust capabilities of Tokenbound V2, this latest version brings enhanced functionality and performance, designed to redefine how users interact with Tokenbound Accounts.

In this article, we’ll explore the exciting upgrades in Tokenbound V3, the motivations behind its development, and the impact it brings to users and developers on Starknet.

Why Tokenbound V3?

Tokenbound V3 was developed to address key gaps in Tokenbound Account management and to enhance compatibility, security, and scalability across networks. Here are the core motivations for this upgrade:

  1. Enhanced Compatibility with ERC-6551
  • Tokenbound V3 aligns closely with the implementation of ERC-6551 on Ethereum, paving the way for cross-chain possibilities which we intend to introduce in upcoming upgrades.

2. State and Chain ID Integration

  • Tokenbound V3 introduces state tracking and chain ID functionality, crucial for maintaining account consistency across multiple networks.

3. Tokenbound IFrame

  • The Tokenbound IFrame provides a seamless, user-friendly way to display and interact with an NFT’s Tokenbound Account directly within applications.
  • This IFrame integration represents a significant step toward providing marketplace support for Tokenbound Accounts, opening new possibilities for NFTs and TBAs.
  • Users can visualise and manage their assets (ERC-721, ERC-1155, and ERC-20) within a Tokenbound Account and check the lock status of accounts and related assets, thus reducing the likelihood of marketplace fraud.

4. Tokenbound Connectkit

  • Using the Connectkit you can connect and interact with dApps using a Tokenbound Account, enabling NFTs to sign, execute and manage transactions, just like any other account on Starknet.

5. Permission Management

  • Tokenbound V3 introduces advanced permission settings, enabling users to delegate specific roles or permissions to other accounts securely.

6. Plug’n’Play components

  • Our opinionated contracts now provide you with plug’n’play components for better flexibility. Build your own account implementation using the available components, define custom signature validation schemes, and define permission scopes.

Demo — Core Upgrades and Features

1. Tokenbound Explorer

The Tokenbound Explorer has been reimagined, providing you with a user-friendly interface that enhances the experience of deploying and managing Tokenbound Accounts (TBAs).

You can head out to the explorer to get started upgrading your tokenbound account to v3.

2. Contract Integration:

The key changes with V3 include:

1. Modular plug’n’play components:

  • V3 introduces a more modular and efficient approach providing components such as `Lockable`, `Permissionable`, `Signatory` and `Upgradable` which can help you build custom tokenbound account implementations tailored to your application needs.

2. Addition of chain_id Parameter:

  • In V3, the create_account function includes a new parameter: chain_id.
  • Helps future-proof the TBA by preparing it for a multi-chain or cross-chain ecosystem.
  • This change reflects the growing demand for interoperability.

2. Introduction of `state`:

  • A `state` variable has been introduced for tracking the state of an account.

3. Non-compatibility with SNIP-6:

  • Tokenbound accounts are no longer compatible with SNIP-6, the standard interface for smart accounts on Starknet and thus not backwards compatible with v2.

4. Tracking Deployed Accounts:

  • The self.total_deployed counter has been removed, delegating the action to indexers.

3. Tokenbound ConnectKit:

With the ConnectKit, you can connect your Tokenbound Account (TBA) to any decentralized application (dApp). This tool supports popular wallets like Argent, Braavos, Web Wallet and, recently added in V3, the Cartridge Controller.

PS: The Cartridge Controller is optimized for gamers offering a seamless experience tailored to game interactions.

We created an example dApp you can try out to understand how the ConnectKit works.

4. Tokenbound SDK:

The Tokenbound SDK is a front-end library designed to interact with tokenbound accounts on Starknet.

Head over to our documentation, to get started with the SDK,

5. Tokenbound IFrame:

The tokenbound iFrame provides developers with an easy way to embed tokenbound accounts into their dApps, letting users explore their NFT’s tokenbound accounts and view information such as:

  • Contents of the NFT’s tokenbound account: ERC-721, ERC-1155, ERC-20 tokens etc.
  • Whether the status of the TBA is locked or unlocked. A locked state allows users to confidently purchase an NFT, knowing that none of the contents of the TBA will be transferred for the specified period.

This marks a positive step towards enabling marketplace support for tokenbound accounts on Starknet.

Conclusion

Tokenbound V3 introduces amazing new features and enhancements, offering you greater flexibility and efficiency in creating and managing tokenbound accounts.

Guide and Resources

The future looks brighter!
Tokenbound V3, with an emphasis on adaptability and innovation, empowers developers to build unique and secure experiences for users.

We encourage you to explore the new features, experiment with the tools, and share your feedback with the community. Together, we can shape the future!

Subscribe to our newsletter for daily industry insights

You just subscribed to the Horus Labs blog updates!