Skip to content

Change lock-up proof link to basescan tx (#1003)#1007

Merged
realproject7 merged 2 commits intomainfrom
fix/locker-tx-link
Apr 28, 2026
Merged

Change lock-up proof link to basescan tx (#1003)#1007
realproject7 merged 2 commits intomainfrom
fix/locker-tx-link

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Replace LOCKER_ID with LOCKER_TX in the airdrop config so the lock-up proof can link to the actual basescan transaction instead of a Mint Club URL that has no destination page.
  • Update CampaignHero to render https://basescan.org/tx/{lockerTx} with the label "View lock-up proof on Basescan".
  • Test config now points to the existing test lock-up tx; prod stays null until the prod lock-up is executed.
  • Bumps version to 1.2.1 (3rd-digit bump per CLAUDE.md for bug fixes).

Closes #1003.

Test plan

  • npm run typecheck passes
  • npm run lint passes (no new errors)
  • In test mode (NEXT_PUBLIC_AIRDROP_MODE=test), /airdrop page shows "View lock-up proof on Basescan" linking to https://basescan.org/tx/0xb4549...4adce
  • In prod mode, the link is hidden and "Lock-up proof: pending" is shown instead

🤖 Generated with Claude Code

Mint Club has no direct page for individual lock-ups, so the previous
link led nowhere useful. Replace LOCKER_ID with LOCKER_TX in the
airdrop config and link the test config's tx hash directly to its
basescan transaction. Prod stays null until the prod lock-up is
executed.

Bumps to 1.2.1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 28, 2026 0:08am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The lock-up proof change itself is focused and implements the intended Basescan transaction link, but the version bump is incomplete because the npm lockfile was not updated.

Findings

  • [medium] package.json was bumped to 1.2.1, but package-lock.json still records the root package version as 1.2.0. This leaves the committed npm metadata inconsistent and can cause release/version tooling or lockfile checks to see the old app version.
    • File: package.json:3
    • Suggestion: Regenerate or update package-lock.json so both the top-level version and packages[""].version match 1.2.1.

Decision

Requesting changes until the lockfile version metadata matches the package version bump. The functional airdrop link change looks aligned with #1003.

Address @re1-2 review on PR #1007: lockfile root and packages[""]
version fields were still 1.2.0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE2 review: LGTM (chat approval posted; cannot use --approve on PRs from same account).

Verified:

  • Rename LOCKER_IDLOCKER_TX consistent across config interface (lib/airdrop/config.ts), API route (src/app/api/airdrop/status/route.ts), and CampaignHero.StatusData (src/components/airdrop/CampaignHero.tsx).
  • Test tx hash matches issue #1003 spec exactly (0xb4549...4adce); prod stays null and falls through to the existing 'Lock-up proof: pending' branch (CampaignHero.tsx:647-649) — both modes covered.
  • Link href https://basescan.org/tx/{lockerTx} and label 'View lock-up proof on Basescan' match acceptance criteria.
  • Version bump 1.2.0 → 1.2.1 correct per CLAUDE.md (3rd digit, bug fix).
  • grep for lockerId/LOCKER_ID across src/, lib/, packages/ returns zero hits — no stale references.
  • Minimal, surgical diff (9+/9−, 4 files), no scope creep.

Couldn't run npm run typecheck locally (deps not installed in worktree); rename is consistent across every consumer, so CI typecheck should be green.

Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating my earlier review — concurring with @project7-interns.

I missed the lockfile mismatch in my first pass. package-lock.json:3 and package-lock.json:9 both still record "version": "1.2.0" while package.json is 1.2.1. Confirmed via grep -n '"version"' package-lock.json.

Requested change: run npm install after the version bump so the lockfile metadata matches, then re-request review. Functional changes (LOCKER_IDLOCKER_TX rename, basescan link href, 'View lock-up proof on Basescan' label, prod null fallback) all look correct.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR now implements #1003 as requested: the lock-up proof uses the configured Basescan transaction hash, prod remains pending with a null value, and the package version metadata is consistent across package.json and package-lock.json.

Findings

  • None.

Decision

Approved. The prior lockfile mismatch is fixed (package-lock.json top-level and packages[""] versions now match 1.2.1), and CI is green for lint/typecheck and e2e.

Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE2 re-review on 5abe6fc: LGTM (chat approval posted; --approve blocked because PR is from same account).

  • package-lock.json:3 and :9 now both record 1.2.1, matching package.json. Verified via grep -n '"version"' package-lock.json.
  • Fix commit is surgical (2 lines in lockfile only) — no scope creep.
  • CI green: lint-and-typecheck SUCCESS, e2e SUCCESS, Vercel Preview SUCCESS.
  • All prior verifications still hold (rename consistency end-to-end, basescan link href, label, prod null fallback, no stale lockerId/LOCKER_ID references).

Approving from RE2.

@realproject7 realproject7 merged commit ec8175e into main Apr 28, 2026
4 checks passed
realproject7 pushed a commit that referenced this pull request Apr 30, 2026
Merge main into feat branch, resolving conflicts by keeping the
Growing Pool design (#1011) while adopting the lockerId→lockerTx
rename and Basescan link from #1003/#1007.

Co-Authored-By: Claude Opus 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.

Airdrop: change lock-up proof link to basescan tx

2 participants