Personal / Human Avatars
A human avatar v2 is implemented through the V2Avatar
class which implements the AvatarInterfaceV2
interface. This represents an upgrade from the v1 implementation with enhanced capabilities.
Key Characteristics of Human Avatar V2
Registration Process: Human avatars in v2 are created through an invitation system, where an existing user must invite you to join the network:
V2 human avatars have associated profiles stored on IPFS, containing information like name, description, and images:
Personal Token Minting: Human avatars in v2 can mint their own personal Circles tokens
V2 human avatars can establish trust relationships with other avatars
Token Transfers: V2 human avatars can transfer tokens to other avatars, with support for both direct and transitive transfers
Data Structure of v2 human avatar
The data for a human avatar v2 is stored in an AvatarRow structure, which would look something like:
1. Creation of Personal/Human Avatars :
Circles v2.0 allows you to join the network as a human with an ERC-1155 standard token. You would have a profile and would require to be invited to join the network and start minting personal CRC tokens.
The V2 Hub contract is the main smart contract that a user would interact. You would need a profile CID as well.
Incase, you don't have CID, you can use the Profile
object and implicitly use the Circles pinning service to pin it:
2. Getting mintable amount for an avatar
This function will allow you to get maximum amount of CRC tokens that are available to mint at that point of time. Human avatars can mint only upto 24 personal Circles per day.
This function will allow you to mint your personal CRC tokens
Last updated
Was this helpful?