Sub Protocol — CryptoForge

Membership NFT Factory

NFT-based subscription contract with tiers and expiration.
Contract Details
Categorycontracts
Files12
Price$12.99
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base Optimism Polygon
Description
NFT-based subscription contract following the Unlock Protocol pattern. Mint membership NFTs with configurable tiers (Bronze, Silver, Gold), expiration timestamps, and automatic grace periods. ERC-721 compliant with on-chain metadata and batch minting support.
Features
membership-nft-factory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title Membership NFT Factory
/// @notice NFT-based subscription contract with tiers and expiration.
contract MembershipNftFactory {
    address public immutable owner;
    uint256 public constant VERSION = 1;

    event Initialized(address indexed deployer);

    constructor() {
        owner = msg.sender;
        emit Initialized(msg.sender);
    }

    // ... full implementation in purchased package
}
$12.99
Buy Now — $12.99