A decentralized, monochromatic activity feed built on the Intuition Protocol. This application demonstrates how to create, view, and stake on truth claims (triples) while integrating the MetaMask Delegation Framework (ERC-7710 / ERC-7702).
This repository serves as the demo application and source code for Mission 09: Delegation Framework Tutorial for Intuition (ERC-7710).
The core objective of this application is to serve as an educational resource that teaches builders the full information flow of the MetaMask Delegation Framework in the context of Intuition.
Through this tutorial application, builders will learn how to:
- Upgrade to ERC-7702: Upgrade a standard EOA to a smart account on the Intuition chain to enable delegation.
- Sign Delegations: Create and sign a delegation object with specific constraints (caveats).
- Redeem Delegations: Allow a delegatee to exercise delegated authority to perform Intuition operations (e.g., atom/triple creation, vault deposits).
- Revoke Delegations: Cancel an active delegation securely.
- Caveat Enforcers: Understand how to link and deploy custom enforcers to restrict what delegates can do on Intuition.
- Monochrome UI: A sleek, premium, ledger-like interface.
- Claim Creation: Publish new triples (Subject-Predicate-Object) to the Intuition Network.
- Truth Staking: Support or Oppose claims using
tTRUSTdeposits directly into the Intuition bonding curves. - Infinite Scrolling Feed: A Twitter-style activity feed powered by the
@0xintuition/graphqlSDK.
- Integration with
@metamask/smart-accounts-kit. - Delegated execution of Claim Creation and Staking.
- Granular permissions using Caveat Enforcers.
- Framework: Next.js 14 (App Router)
- Styling: Tailwind CSS (Monochrome aesthetic)
- Web3:
viem, MetaMask - Protocol:
@0xintuition/protocol,@0xintuition/sdk,@0xintuition/graphql - Delegation:
@metamask/smart-accounts-kit(Phase 2)
- Node.js (v18+)
- MetaMask wallet with Intuition Testnet configured.
- Testnet
tTRUSTtokens.
-
Clone the repository:
git clone https://github.com/Intellihackz/intuition-delegation-tutorial-claimstream.git cd intuition-delegation-tutorial-claimstream -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
- Network: Intuition Testnet (L3)
- Chain ID: 13579
- RPC URL:
https://testnet.rpc.intuition.systems - GraphQL Endpoint:
https://testnet.intuition.sh/v1/graphql
Built for the Intuition Ecosystem.