Skip to content

feat: add reusable group templates#157

Open
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/group-templates-78
Open

feat: add reusable group templates#157
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/group-templates-78

Conversation

@TUPM96

@TUPM96 TUPM96 commented May 25, 2026

Copy link
Copy Markdown

Closes #78

/claim #78

Summary

  • add a GroupTemplate contract type with the requested name, token, contribution amount, cycle length, and max member fields
  • store templates per admin in persistent storage with a hard cap of 10 templates per admin
  • expose save_template, get_template, and create_from_template contract methods
  • reuse existing group creation validation and member indexing when creating from a template
  • add regression coverage for saving, reading, creating from a template, per-admin lookup, and the 10-template limit

Validation

  • cargo fmt --check
  • cargo test --package sorosave (11 passed)
  • cargo clippy --package sorosave --all-targets -- -D warnings
  • git diff --check

Payout details can be provided privately on acceptance.

Copilot AI review requested due to automatic review settings May 25, 2026 11:12
@TUPM96 TUPM96 force-pushed the codex/group-templates-78 branch from 1cfc3b4 to 5efc17a Compare May 25, 2026 11:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

Add support for group templates and quick creation presets

2 participants