Skip to content

Make Solana approval gate load-bearing - #1

Draft
mauyaa wants to merge 6 commits into
mainfrom
cursor/hackathon-solana-approval-b229
Draft

Make Solana approval gate load-bearing#1
mauyaa wants to merge 6 commits into
mainfrom
cursor/hackathon-solana-approval-b229

Conversation

@mauyaa

@mauyaa mauyaa commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a minimal Anchor approval program with approve_milestone(project_id, milestone_id) storing certifier pubkey, timestamp, project id, and milestone id in an approval PDA.
  • Wire approval PDA derivation and payout enforcement so the payout transaction includes the approval PDA as a required readonly account and fails if the PDA account does not exist.
  • Add Squads v4 integration for a 2-of-2 Owner + Certifier payout proposal/execution path when WEZA_REQUIRE_SQUADS_PAYOUT=1 is configured.
  • Add /demo guided judge route with Submit → Certify → Payout, Kenyan construction data, and side-by-side approval/payout Explorer links.
  • Rewrite /about around the Kenya $15B+ construction market narrative and add docs/COLOSSEUM_SUBMISSION.md with the requested max-300-word copy.
  • Preserve login hardening, deployment preflight diagnostics, and dynamic authenticated routes for Vercel.

Walkthrough

guided_judge_demo_route_final.mp4

Testing

  • npm test
  • npm run build
  • curl -I http://localhost:3003/demo
  • curl -s http://localhost:3003/about | python3 -c ...
  • curl -s http://localhost:3003/api/health/config

Notes

  • Live Vercel login still cannot be fixed from the workspace alone; this branch must be merged/deployed, then /api/health/config and /api/health/solana should be checked and npm run seed run against the live Supabase project.
  • Squads v4 payout is gated by WEZA_REQUIRE_SQUADS_PAYOUT=1 plus SOLANA_TREASURY_KEYPAIR and SOLANA_CERTIFIER_KEYPAIR; local/test fallback remains direct transfer so tests stay green without devnet credentials.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: mauyaa <mauyaa@users.noreply.github.com>
@vercel

vercel Bot commented Apr 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
weza-build Ready Ready Preview, Comment Apr 24, 2026 10:18pm

@coderabbitai

coderabbitai Bot commented Apr 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 397021ab-7a81-47b5-af1b-4c875890e748

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/hackathon-solana-approval-b229

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: mauyaa <mauyaa@users.noreply.github.com>
Co-authored-by: mauyaa <mauyaa@users.noreply.github.com>
Co-authored-by: mauyaa <mauyaa@users.noreply.github.com>
Co-authored-by: mauyaa <mauyaa@users.noreply.github.com>
Co-authored-by: mauyaa <mauyaa@users.noreply.github.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.

2 participants