Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on-chain group invites #584

Open
wants to merge 22 commits into
base: dev
Choose a base branch
from
Open

Add on-chain group invites #584

wants to merge 22 commits into from

Conversation

waddaboo
Copy link
Collaborator

@waddaboo waddaboo commented Oct 24, 2024

Description

This PR introduces multiple new features to api, dashboard, and api-sdk.

New features included:

  • api: query groups by group type (on-chain/off-chain).
  • api: query groups by group name.
  • dashboard: when creating an on-chain group, auto create an associated off-chain group.
  • dashboard: new function to get group by group name.
  • dashboard: new function to get the associated off-chain group.
  • dashboard: enabled generate invite link feature to on-chain group, which is made possible by the auto created associated off-chain group.
  • dashboard: remove on-chain group member who join via invite link.
  • api-sdk: get groups by group type (on-chain/off-chain).
  • api-sdk: get groups by group name.
  • api-sdk: get associated groups.

Related Issue

Does this introduce a breaking change?

  • Yes
  • No

Other information

Associated off-chain group flow:

  1. Upon create an on-chain group, dashboard will auto create an associated off-chain group with the values below:
const groupId = onchainGroup.id
{
   name: groupId,
   description: `This group is associated to the on-chain group ${groupId}`,
   type: "on-chain"
   treeDepth: 16,
   fingerprintDuration: 3600
}
  1. Users can then get the associated group by querying the group with type="on-chain" && name="groupId".
  2. In dashboard, users can use getGroupByName(name, type) or getAssociatedGroup(groupId).
  3. In api-sdk, users can use getAssociatedGroups(name).

Copy link

vercel bot commented Oct 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bandada-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 9:38am
bandada-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 9:38am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant