Repository navigation
Feat: mentorship, skill verification, charity split & tax strategies (#884, #885, #886, #887) - #981
Open
olivia-brien wants to merge 4 commits into
Open
olivia-brien wants to merge 4 commits into
olivia-brien wants to merge 4 commits into
Conversation
Add a standalone mentorship contract where creators register as mentors (expertise, revenue share, mentee capacity) and mentees request time-boxed programs. Mentors accept/decline, log sessions, and receive a locked-in share of mentee earnings during the term. Programs can be completed or cancelled, completed programs can be rated, and admins can suspend mentors. All transitions emit events under the `mentor` topic. Closes Stellar-split#884 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a standalone skill-verification contract. Recipients submit skill claims with an evidence hash; admin-appointed, skill-scoped verifiers approve them at a proficiency level (1-5) with an expiry, or reject them with a reason hash. Attestations can be revoked by the issuing verifier or admin. Views (is_skill_verified, get_skill_level, meets_requirement, all_meet_requirement) let the split contract gate recipient lists. All state changes emit events under the `skill` topic. Closes Stellar-split#885 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a standalone charity-split contract. The admin maintains a registry of vetted charities; creators open invoices with a recipient split, a chosen active charity and a donation share (1-5000 bps). When fully funded, the invoice auto-releases: each recipient gets their gross amount minus the donation share, and the charity receives the deductions plus rounding dust. Payers can send extra donations straight to the charity, creators can cancel open invoices, and payers then claim refunds. Per-charity and per-donor totals are tracked; preview_split shows the outcome ahead of release. All state changes emit `charity` events. Closes Stellar-split#886 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a standalone tax-strategy contract that routes creator income at payment time: an optional pre-tax deduction (retirement/business bucket) lowers taxable income, a tax reserve is computed with a flat rate, creator-defined marginal brackets, or admin-published bracket templates, and the remainder goes to the creator. Brackets apply to cumulative income within a configurable tax period, which rolls over and archives the previous period's totals. estimate/estimate_config let creators compare strategies before switching. Funds are never custodied. All state changes emit events under the `tax` topic. Closes Stellar-split#887 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@olivia-brien Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
This PR adds four new standalone Soroban contracts to the workspace. Each follows the existing
invoice-escrowlayout (lib.rs,errors.rs,types.rs,test.rs), uses typedcontracterrorerrors, emits events for every state change, and comes with its own unit tests.Changes
#884 – On-chain creator mentorship program (
contracts/mentorship)share_earnings.mentor/reg,updated,suspend,requested,accepted,declined,session,shared,completed,cancelled,rated#885 – Recipient skill verification (
contracts/skill-verification)is blocked.
is_skill_verified,get_skill_level,meets_requirement,all_meet_requirement.skill/verifier,claimed,withdrawn,verified,rejected,revoked#886 – Invoice charity donation split (
contracts/charity-split)refunds.
preview_splitshows payouts before release.charity/reg,status,created,paid,released,donated,cancelled,refunded#887 – Creator tax optimization strategies (
contracts/tax-strategy)estimateandestimate_configlet creators compare strategies before switching.tax/tmpl_set,tmpl_del,strategy,removed,income,periodOther
membersinCargo.toml.Closes #884
Closes #885
Closes #886
Closes #887