PURPLE Token Platform

Token Engineering

Production-ready ERC-20 token with advanced features including gasless approvals via EIP-2612 permits, token burning, and owner-controlled minting — built on OpenZeppelin v5.

Technology Stack

SolidityERC-20EIP-2612OpenZeppelin v5Hardhat

Key Features

Architecture

┌─────────────────────────────────────┐
│            MyToken (PRPL)           │
├─────────────────────────────────────┤
│                                     │
│   ┌───────────┐  ┌──────────────┐   │
│   │  ERC-20   │  │ ERC20Permit  │   │
│   │  Core     │  │  (EIP-2612)  │   │
│   └───────────┘  └──────────────┘   │
│                                     │
│   ┌───────────┐  ┌──────────────┐   │
│   │ Burnable  │  │   Ownable    │   │
│   │           │  │  (Minting)   │   │
│   └───────────┘  └──────────────┘   │
│                                     │
└─────────────────────────────────────┘

Code Sample

MyToken.sol

contract MyToken is
    ERC20, ERC20Burnable, ERC20Permit, Ownable {

    constructor(address initialOwner)
        ERC20("PURPLE", "PRPL")
        ERC20Permit("PURPLE")
        Ownable(initialOwner)
    {
        _mint(initialOwner, 1_000_000 * 10 ** decimals());
    }

    function mint(address to, uint256 amount)
        public onlyOwner {
        _mint(to, amount);
    }
}

Project Metrics

23

Tests Passing

1M

Initial Supply

EIP-2612

Gasless Approvals

Related Products

Blocknetics builds automated tools alongside our consulting practice:

Work With Us

This project represents the kind of production-grade blockchain engineering Blocknetics delivers. Whether you need a similar solution or want to extend an existing one, our team is ready.

Discuss Your Project → ← All Projects