Onchain Experiments
Onchain Experiments
Onchain Experiments
How to Build a ManageFamAuthority Indexer for Hypersub Subscriptions
26 minutes Posted Nov 22, 2024 at 1:00 pm.
Introduction
Starting the Indexer
Indexer Tasks Overview
Creating a Fam
Deploying Hypersub
Testing Subscription Expirations
Debugging Subscription Expirations
Creating Proposals and Actions
Proposal Execution
Bug Fixes
Closing Remarks
0:00
26:33
Download MP3
Show notes
In this tutorial, we walk you through building an indexer for the ManageFamAuthority to automate Party management based on Hypersub subscription status on Base. From creating a "fam" to linking subscriptions to parties and verifying subscription expirations, you'll learn how to streamline multiplayer Ethereum experiences with this end-to-end guide.
Key Timestamps:
-
Overview of our goal: automating party cards based on Hypersub subscriptions.
-
Using `pnpm dev` to run the indexer locally.
-
- Monitoring subscription contracts for transfer events.
- Tracking creator-linked subscriptions to parties.
- Checking and removing expired subscriptions every 30 seconds.
-
Using CC0 art to set up a new fam.
-
01:55 - Deploying Hypersub
Steps to deploy a Hypersub on the factory and configure party access.
-
03:40 - Testing Subscription Expirations
Verifying party card removal upon subscription expiry.
-
04:50 - Debugging Subscription Expirations
Addressing bugs with the cron job for removing expired party cards.
-
07:00 - Creating Proposals and Actions
Granting subscription time, adding members, and creating proposals.
-
09:30 - Proposal Execution
Testing and verifying a Zora token creation through proposals.
-
12:20 - Bug Fixes
Identifying and resolving issues in the indexer logic to handle expired subscriptions.
-
25:00 - Closing Remarks
Encouragement to like, share, and build on this open-source effort.
This tutorial is tailored for blockchain developers looking to connect subscription mechanics with on-chain experiences seamlessly. If you found this helpful, like, comment, and share to inspire more builders! šŸš€
#Ethereum #BlockchainDevelopment #Base #Hypersub #ManageFamAuthority #Tutorial