Create Base Groups for your community.
Base Groups are capable of following:
They can set membership conditions to define who can be part of the group
They can register short names with a nonce
They can trust other avatars in batch with conditions
Base Group Creation Process
To create a base group, you would:
Initialize the SDK with the proper configuration
Use the
baseGroupFactory
property to call the factory contract's creation methodsAfter creation, get the base group avatar using
sdk.getAvatar()
Working with Base Groups
After creating a base group, you can interact with it using the BaseGroupAvatar
class, which provides methods for:
Membership Management:
setMembershipCondition(condition, enabled)
- Sets a membership conditiongetMembershipConditions()
- Gets the current membership conditions
Trust Management:
trust(avatar, expiry)
- Trusts another avatar with optional expiryuntrust(avatar)
- Revokes trust from an avatartrustBatchWithConditions(members, expiry)
- Trusts multiple avatars at once with conditions
Group Administration:
setOwner(owner)
- Changes the group ownersetService(service)
- Sets the service addresssetFeeCollection(feeCollection)
- Sets the fee collection addressregisterShortNameWithNonce(nonce)
- Registers a short name for the group
Last updated
Was this helpful?