Skip to content

Post-merge fixes: verification, attribution, and moderation#96

Open
pglavin2 wants to merge 14 commits into
1Hive:masterfrom
pglavin2:master
Open

Post-merge fixes: verification, attribution, and moderation#96
pglavin2 wants to merge 14 commits into
1Hive:masterfrom
pglavin2:master

Conversation

@pglavin2
Copy link
Copy Markdown
Member

Summary

Follow-up to #94 with fixes and the moderation system.

  • Verification: add data-markee-address to static index.html so markee.xyz can detect it (CRA apps are client-side only -- the attribute must be in the server-returned HTML)
  • Attribution: show buyer wallet address in widget footer instead of the markee contract address (owner() field from the markee contract via API)
  • Moderation: Vercel serverless function at /api/moderation backed by KV (Redis) -- four moderator wallets can flag messages, flagged messages are blurred in the widget for all visitors

Moderator addresses

  • 0x809C9f8dd8CA93A41c3adca4972Fa234C28F7714
  • 0x07AD02e0C1FA0b09fC945ff197E18e9C256838c6
  • 0x2F9e113434aeBDd70bB99cB6505e1F726C578D6d
  • 0xa25211B64D041F690C0c818183E32f28ba9647Dd

Environment variables required

KV_REST_API_URL and KV_REST_API_TOKEN must be set in the Vercel project (already added).

🤖 Generated with Claude Code

pglavin2 and others added 3 commits April 14, 2026 10:12
…et footer

- Adds data-markee-address to the static HTML shell so the markee.xyz
  verifier can detect it (CRA apps are client-side only, so React-rendered
  attributes are invisible to server-side HTML checks)
- Reads topMarkeeOwner (buyer wallet via owner()) from API instead of
  topMarkeeAddress (the markee contract) for attribution in the footer

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- api/moderation.ts: Vercel serverless function backed by @vercel/kv
  Admins sign messages to flag/unflag markee contract addresses.
  Four moderator addresses: 0x809C9f8, 0x07AD02e0, 0x2F9e1134, 0xa25211B6
- MarkeeSign.tsx: fetches flagged list on mount, blurs flagged messages
  for all users, shows flag/unflag button to connected admin wallets
- package.json: adds @vercel/kv (runtime) and @vercel/node (types)

Requires KV_REST_API_URL and KV_REST_API_TOKEN in the Honeyswap
Vercel project environment variables.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

@pglavin2 is attempting to deploy a commit to the 1hive Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
honeyswap-interface Ready Ready Preview, Comment May 8, 2026 4:46pm

pglavin2 and others added 3 commits April 14, 2026 10:45
- Blur flagged messages in the current message box above tabs, with a
  red flag icon overlay and helper text explaining users can still buy
  or boost other messages
- Blur flagged entries in the Boost tab list individually, with a flag
  icon overlay on each
- Fix: name input font family now matches message textarea (Courier New)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant