Solidity theorytheory 0/50 · 0%
Deployment · hard

49. Deployment checklist

From local test to verified mainnet contract.

Freeze the compiler version and optimiser settings, run the full test suite plus fuzzing, deploy to a testnet, verify the source, transfer ownership to a multisig, and record the addresses and the exact commit.

forge test && forge script Deploy --rpc-url $BASE_SEPOLIA --broadcast --verify

Have a monitoring plan and, if the design allows, a pause switch with a documented policy for using it.

Check your understanding

  1. 1. Why pin the compiler version and optimiser runs?

  2. 2. Who should own a production contract?

  3. 3. What comes before mainnet?