hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
68 stars 44 forks source link

🟪 Referral Manager #9999

Open Rotorsoft opened 18 hours ago

Rotorsoft commented 18 hours ago

Description

Implement a Referral Manager policy to collect on-chain referral fees when platform referral events are emitted.

Stakeholders

Product Engineering
@dillchen @Rotorsoft

Model

Referral Manager

Engineering Requirements

  1. Integration
    • RabbitMQ integration
  2. Routing
    • internal
  3. References
    • Event payloads (Initially CommunityCreated, SignInFlowCompleted)
  4. Business Rules
    • Implement protocol service "command" that collects on-chain referral fees
  5. Response
    • ack event or throw if protocol service fails

Unit Testing