-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add remaining CLI functionality for SPL Token Group #5937
Comments
Can you expand on what is needed for this? Is this not taken care of by the |
@tonton-sol All of the Token Group support should be present in the Token Client, but we don't have it in the CLI yet. If you take a look at Token Metadata for reference, we're basically just setting up clap commands for driving the Token Client and using those functions!
The CLI only has the ability to create Group and Group Member pointers. You can pass an address or use |
Understood, I didn't catch that. I'll take a look at it! |
A few questions:
|
Also, I want to make sure I understand the spirit of the extensions based on reading the tests. You can create a group account then initialize it with a size. That size is the max number of members, say 10. You can then create a member, then initialize it with the group-mint. This gives 1 member. You can then use the member pointer extension, point to the first member mint and create the remaining 9. If you want to create another separate but related group of 10 members, you would use a group pointer. Then you would need to create and initialize a new member mint and initialize it, and repeat the process for minting the member pointers. Is this correct? |
Correct! Max size is maximum number of members.
You've got this one backwards. You first add
I don't think I'm 100% clear on what you're asking here, but it sounds like you're referring to making sub-groups. If so, you'd basically have something like this:
In other words:
In this case, you'd have the following extensions:
I guess this makes me realize I don't believe the client allows for 2), but the program does. We probably need to add that functionality. |
Yep 1) and 2) are correct. For 3), yeah let's add one at a time per PR! So first one can be |
Thanks @tonton-sol !! This should be all wrapped! |
Problem
As of #5911 and #5912, the SPL Token CLI supports adding
GroupPointer
andGroupMemberPointer
to Token2022 mints. However, there's no CLI support for adding the actualTokenGroup
orTokenGroupMember
extensions to mints.Solution
Add the necessary commands!
The text was updated successfully, but these errors were encountered: