Soma

Open, auditable peptide inquiries. Create a funded question, researchers stake and contribute, you distribute rewards, no raw genomes stored, only hashes and IPFS links.

github
  • 568 Raised
  • 418 Views
  • 6 Judges

Categories

  • ✅ Verification & Audit Trails for Science
  • 🧬 Data Protocols for Longevity & Health

Gallery

Description

Soma, privacy-first peptide research

Soma is a crypto-native marketplace for peptide evidence. 

A user posts a genomics-driven research question (e.g., “peptide ideas for recovery given APOE/MTHFR hints”), researchers stake to participate, and the creator distributes rewards based on quality, all transparently recorded on-chain, while raw genomes never touch the chain.

Why it matters

  • Health and longevity communities need verifiable, sourced advice without surrendering their data.

  • Today’s Q&A happens in private chats; incentives are murky and there’s no audit trail.

  • Soma turns this into a public, programmable workflow: minimal trait hints + consent → researcher staking → cited suggestions → transparent payouts.

What it does (MVP)

  • Create an inquiry with a small deposit and a public hint (hash of longer off-chain text/CID).

  • Researchers initiate by staking an amount that signals commitment.

  • The creator accepts/rejects initiations, then marks accepted entries worthy/unworthy after delivery.

  • Protocol completes and automatically splits rewards (creator cut + researcher pot).

  • Consent + content are represented as hashes; detailed text/PDFs live on IPFS.

  • No raw genomes stored. Only minimal “genomic hints” (APOE status, MTHFR, HLA flags, etc.) when users choose to share them.

On-chain components (Base Sepolia, chainId 84532)

  • SomaRegistry 0xbC6F9458304d1e951CF953ac9AB567Bd5E185Fc0Parameters (init %, refund ratios, treasury %), token allowlist, treasury link.

  • InquiryManager 0x7BC30f2409e1790eA37Fc9BB9851d29ccaf942C2State machine: create → initiate → accept/reject → worthy/unworthy → complete.

  • EscrowVault 0xdFC33798720367F430fc58d662f56a3Edf5e00C3Holds the ERC-20 balances for inquiries.

  • SomaTreasury 0xa7ac4B665e756Ce1575eFDC902Dc2C00bfE8e959Receives the penalty split; owner can sweep.

Explorer: sepolia.basescan.org (search the addresses above).

Network RPC for testing: https://sepolia.base.org.

How the flow works

Creator

  1. Fills a short intake (goal, trait hints, safety flags) and signs a consent notice.

  2. Deposits tokens and calls createInquiry(token, amount, hintBytes32).

  3. Sees InquiryCreated with the new ID and a “Created” status.

Researchers

  1. Browse open inquiries with total pool and required next initiation amount.

  2. Initiate(id) (stake).

  3. After acceptance, deliver a Suggestion Card: peptide, route, typical range, rationale, interactions, 3–5 citations with quality grade, monitoring, alternatives.

Creator decisions

  • Reject pre-acceptance → ~90% refund to researchers, penalty split to treasury + inquiry pool.

  • Mark worthy/unworthy after delivery → ~80% refund on unworthy plus penalty logic.

  • When all accepted entries are resolved and ≥1 is worthy, call complete(id) → automatic distribution (creator cut + researcher pot by inverse-weight).

Privacy & safety

  • Only hashed identifiers and minimal hints are public; detailed content is off-chain (IPFS).

  • Safety lint and UI guardrails (e.g., pregnancy/TTC hard stop, HLA-B*57:01 caution).

  • Clear scope: research & education only, not medical advice.

What’s live today

  • Deployed contracts (addresses above).

  • Demo scripts for the happy path (create → initiate → accept → worthy → complete).

  • Frontend handoff for a Research-Glitch design (dark, dotted, hash-forward; TX toasts, status rail, identicons).

Demo walkthrough (90 seconds)

  1. Create an inquiry with a public hint; see the Created status and explorer link.

  2. A researcher initiates; the pool increases; creator accepts.

  3. Researcher submits a cited Suggestion Card (IPFS link shown).

  4. Creator marks worthy and clicks Complete; payouts execute.

  5. Public tracker shows the full event trail (created → initiated → accepted → worthy → completed).

Roadmap

  • Encrypted 1:1 chat and file hand-off after acceptance (off-chain, hash-anchored).

  • Reputation seeded from delivery quality and safety checks.

  • Simple matching hints (e.g., APOE4 + lipid focus → emphasize lifestyle; avoid risky lipogenic pathways).

  • Optional credits/prepay flow for institutions.

Soma brings a transparent incentive layer to research Q&A, evidence in, payouts out, privacy preserved.

Attachments