Blog / Blockchain & Smart Contracts
Category

Blockchain & Smart Contracts

Solidity, Hardhat, OpenZeppelin, DEX/NFT building blocks and audit prep, with code that has been run.

Blockchain & Smart Contracts

Solidity Gas Optimization: Five Changes That Actually Matter

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.

5 min read
Blockchain & Smart Contracts

Smart Contract Audit Prep Checklist: What to Do Before You Pay an Auditor

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.

7 min read
Blockchain & Smart Contracts

Merkle Tree Allowlists for NFT Mints: Contract, Proofs and Tests

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.

5 min read