A mutable NFT contract deployed on Berachain for the B Side staking system.
- Mutable
bcellCountattribute - $HONEY-based forge and merge mechanics
- Burn Bcells to unstake or convert rewards
- On-chain dynamic
tokenURIbased on Bcell count - Emits key events for indexing, frontend syncing, and marketplace reindexing
npm install
npx hardhat testEdit deploy scripts or deploy manually using Kingdomly or Hardhat.
This contract emits the following events to help off-chain systems like frontends, dashboards, and marketplaces stay in sync with comB state changes:
Emitted when a user successfully forges a comB, increasing its Bcell count.
Emitted when a user merges two 3-Bcell comBs. One is upgraded, one is burned.
Emitted when a Bcell is burned. If the Bcell count hits 0, the NFT is destroyed.
Emitted when the contract owner withdraws HONEY tokens from the contract.
Emitted when baseURI changes — helps OpenSea and others re-index metadata.
Typically called as:
emit BatchMetadataUpdate(0, type(uint256).max);This ensures all tokens refresh their metadata without needing to call individually.