[OpenClaw CTO Bot] feat: Implement group cloning for recurring savings circles#148
Open
TimLiuDream wants to merge 1 commit into
Open
[OpenClaw CTO Bot] feat: Implement group cloning for recurring savings circles#148TimLiuDream wants to merge 1 commit into
TimLiuDream wants to merge 1 commit into
Conversation
…s circles Fixes sorosave-protocol#70 - Added clone_group(admin, source_group_id) function to group.rs - Copies token, contribution_amount, cycle_length, max_members from source - Auto-invites all previous members from source group - New group starts in Forming status - Added CloneSource DataKey to track source group reference - Added InvalidGroupStatus error variant - Added clone_group entry point in lib.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for Issue #70
Problem
The protocol needed a
clone_groupfunction to allow admins to clone a completed group's settings and start a new cycle with the same members.Solution
Implemented
clone_group(admin, source_group_id) -> u64that:CloneSourceDataKeyChanges
group.rs: Addedclone_group()function with full validation and member auto-invitelib.rs: Addedclone_groupentry point in contract implementationtypes.rs: AddedCloneSource(u64)variant toDataKeyenumstorage.rs: Addedset_clone_source()andget_clone_source()helperserrors.rs: AddedInvalidGroupStatuserror variantVerification
Payment
Wallet:
0x83544d7a7c5dbe4d4ab06346bfae548175c49fb4