05 semi fungible tokens
What is Semi-Fungible?
1 unit of Project A 2024 = interchangeable with any other unit of Project A 2024
1 unit of Project A 2024 ≠ 1 unit of Project B 2023Why Semi-Fungible?
Traditional Approaches Have Limitations
Contract Architecture
Option A: Multi-Token Contract (Recommended)
Option B: Separate ERC-20 Per Project
Token ID Strategy
Units & Decimals
The Challenge
The Solution: Fixed-Point Units
Contract Design: CarbonCredit1155
Storage (Per tokenId)
Transfer Policy Enum
Roles
Core Functions
Events
How PoAI Plugs In (Gating)
Complete Platform Flow
Marketplace / Transfer Policy
Metadata Structure
Operational Advantages
Implementation Decision Points
One-Liner Explanation
Last updated