feat(ngz): add No-Going-Zone onchain habit accountability action provider#1126
Open
bennytimz wants to merge 1 commit intocoinbase:mainfrom
Open
feat(ngz): add No-Going-Zone onchain habit accountability action provider#1126bennytimz wants to merge 1 commit intocoinbase:mainfrom
bennytimz wants to merge 1 commit intocoinbase:mainfrom
Conversation
🟡 Heimdall Review Status
|
aa4a994 to
c9b53c9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new action provider for No-Going-Zone (NGZ), an onchain habit accountability tracker deployed on Base.
NGZ lets users declare habits, check in daily to build streaks, earn soulbound milestone NFTs at 7/30/90/180/365 days, and face permanent onchain consequences (Wall of Shame NFTs) when they relapse. All data lives onchain — no backend, no database.
Actions Added
Read-only (no wallet required)
get_ngz_leaderboard— Fetch top streak holders ranked by current streakget_ngz_user— Look up a user's full stats by wallet addressget_ngz_wall_of_shame— Fetch recent relapse events from the Wall of ShameWrite (wallet required)
check_in_ngz— Record today's check-in to maintain your onchain streaktip_ngz_user— Send ETH respect directly to another user's wallet (100% goes to recipient, no fee)Implementation Notes
viem'screatePublicClientto query the NGZ contract directly — no external API dependencyWalletProviderinterface so they work with any wallet (CDP, Privy, viem, etc.)base-mainnetandbase-sepolia0x4D1b5da45a5D278900aedfc6c96F0EE0D4e28bF6(Base Sepolia — mainnet deployment in progress)Tests
16/16 tests passing. Coverage includes:
Checklist
pnpm test -- --testPathPattern=ngz)pnpm run lint)pnpm run format)action-providers/index.ts