Blockchain & Smart Contracts
Verify a deployed contract with Hardhat 3's hardhat-verify plugin: one Etherscan API v2 key, constructor-argument files, build profiles, Blockscout and Sourcify alternatives, and the chain-plan catch for BNB Chain.
Blockchain & Smart Contracts
A beginner's comparison of UUPS and Transparent upgradeable proxies with OpenZeppelin v5, with both patterns upgraded in tested Hardhat 3 code, plus the mistakes that can brick a proxy.
Blockchain & Smart Contracts
A step-by-step reentrancy example: a vulnerable Solidity vault, an attacker contract that drains it with a 1 ETH stake, and two layers of defence, each proven with a Hardhat 3 test.
Blockchain & Smart Contracts
Five common Solidity gas tips, each measured on Hardhat 3 with and without the optimizer: constants and immutables, struct packing, cached array length, calldata, and the unchecked loop counter that no longer matters.
Blockchain & Smart Contracts
A practical pre-audit checklist: freeze the scope, write the threat model, reach meaningful test coverage, run a static analyzer and fix the noise, document roles and assumptions. With real Slither and coverage output from small example contracts.
Blockchain & Smart Contracts
Why block data is a poor source of randomness, how commit-reveal works with a tested Solidity raffle, and an honest list of what commit-reveal does not protect against. Technical education, not a gambling product.
Blockchain & Smart Contracts
A tested ERC-721 mint contract and a type-checked React mint button using ethers v6 BrowserProvider: wallet connection, network check, reading the price from the contract, and clean error handling.
Blockchain & Smart Contracts
Build a 100-line constant-product pool in Solidity (x * y = k) with a 0.3% fee, liquidity shares and a slippage guard, then see price impact in numbers and what the example deliberately leaves out.
Blockchain & Smart Contracts
How a Merkle tree lets a contract check an allowlist of thousands of addresses with one 32-byte root. Includes a tested Solidity contract, OpenZeppelin proof generation in TypeScript and the double-hash leaf detail that trips people up.
Blockchain & Smart Contracts
Build a capped, owner-mintable ERC-20 with OpenZeppelin v5, write Hardhat 3 tests with ethers, and add linear token vesting using OpenZeppelin's VestingWallet. Every snippet was compiled and run.