ERC-20 Token
A supply-capped token with mint, burn, pause and gasless EIP-2612 permits.
- ERC-20
- EIP-712 signatures
- Access control
Every smart contract here is written from scratch, with no OpenZeppelin and no libraries. Each one has unit, fuzz and attack tests, a deploy script and its own dApp that you can use right now.
Each dot is one dApp, from 01 to 27. A bigger dot has more tests.
The dApps
Every card opens a working app on the Sepolia testnet. You can read everything without a wallet. Connect one to send transactions.
A supply-capped token with mint, burn, pause and gasless EIP-2612 permits.
Kickstarter-style campaigns from a factory: pledge, then claim or refund, with a platform fee.
A Gnosis-style N-of-M treasury that runs any call after enough owners approve.
Buyer and seller escrow with fees, and an arbiter who can split the funds.
ERC-721 from scratch with a Merkle whitelist, royalties and a reveal.
Synthetix-style rewards that grow every second you stake, with a live ticker.
Cliff and linear vesting schedules that the owner can revoke.
A Uniswap-V2-style factory, pairs and router, with flash swaps.
Snapshot voting power, quorum and on-chain execution of proposals.
Borrow against collateral, pay interest, and get liquidated when the health factor drops.
Dubai Law No. 6 of 2019 on-chain: unit registry, service charges, board and veto.
DLD/RERA property shares with KYC, rental income and a maintenance reserve.
A corpus that can never be spent. Only its income goes to charity.
Regulated custody: segregated funds, KYC limits and a capital reserve.
Ijarah sukuk: certificates backed by a leased asset, with Shariah-approved profit.
Mutual insurance pools with a claims committee and a no-claim surplus.
Cost-plus trade finance with a disclosed markup, installments and charity late fees.
Nisab and hawl, 2.5 percent, and the eight asnaf of Quran 9:60.
Tokenized real estate end to end: issuance, exchange, rent, governance and insurance.
A complete digital bank: deposits, credit lines, loans, auctions and governance.
An exchange with an order book, AMM pools, leveraged margin and circuit breakers.
Cross-border payments: FX, escrow, invoice factoring, netting and arbitration.
Decentralized IDs, verifiable credentials, selective disclosure and recovery.
Purchase orders, shipment tracking, quality checks and milestone payments.
Actuarial pricing, claims, parametric payouts, reinsurance and surplus.
Zakat on 7 asset classes, sadaqa, campaigns, sponsorships and donor tracking.
Renewable-energy certificates, carbon credits and peer-to-peer energy trading.
No dApp matches this search.
The path
Each series builds on the one before. It starts with one contract and ends with platforms of 9 to 13 contracts.
The bars show the number of tests in each series (838 in total). Click a series to see its dApps.
The method
The same routine an auditor uses, applied to my own code before anyone else can attack it.
What must never break: supply caps, x·y ≥ k, safe pull payments, quorum math, a waqf corpus that never shrinks.
Reentrancy, who can call what, rounding direction, denial of service, flash-loan and MEV risk, storage layout.
Foundry unit and fuzz tests with 256 random runs each, time travel with vm.warp and signed messages with vm.sign.
Write the exploit and prove that the guard stops it: reentrancy attacks in 02 and 04, flash-loan vote buying in 09.
Each finding gets a severity, an exploit scenario, a fix and a test that keeps it fixed.
$ forge test --summary[PASS] testFuzz_MintNeverExceedsCap · 01 erc20-token · 256 runs[PASS] test_Refund_ReentrancyBlocked · 02 crowdfunding[PASS] test_Release_ReentrancyBlocked · 04 escrow[PASS] testFuzz_ClaimNeverPaysMoreThanVested · 07 vesting · 256 runs[PASS] testFuzz_SwapNeverBreaksInvariant · 08 amm-dex · 256 runs[PASS] test_Vote_SnapshotPreventsFlashVoteBuying · 09 dao[PASS] testFuzz_BorrowNeverExceedsLtv · 10 lending · 256 runs[PASS] test_EmergencyDrain_GuardianOnly · 11 owners-association…Ran 27 test suites: 838 tests passed, 0 failed
Real test names from the repository. GitHub Actions runs forge build and forge test on all projects for every push.
Live status
When this page opens, your browser asks each dApp if it is up. Green means it answered.
Each check calls /api/health.php of the dApp. The smart contracts themselves run on the Sepolia testnet.
Try one
Every dApp works the same way. Nothing here uses real money.
MetaMask on Sepolia. Without a wallet you can still read everything.
Approve, then send the action. You sign it in your wallet.
It checks the rules, changes the state and emits events. A broken rule reverts.
Every transaction links to Sepolia Etherscan.
Balances, charts and state come fresh from the chain.
Install MetaMask or another browser wallet.
The badge in each dApp must show “Sepolia Testnet”.
Take free Sepolia ETH from a faucet for gas. The demo tokens come from the dApp itself.
Each dApp explains its flow at the bottom. Then press the buttons.
Work with me
The same care you see on this page, for your project. Tell me what you need, and I answer by email.
A full security review of your contracts before they go live.
Smart contracts for your idea, written from scratch and tested like an audit.
The contracts plus the web app your users need, ready to run.
Every request goes straight to my inbox, and I answer by email.