Documentation
CI/CD Service

Supported Cheatcodes

A reference for all of the supported Foundry cheat-codes BuildBear supports.

List of Supported Cheatcodes

For more information on how these cheat-codes work, check out the Foundry cheat-codes reference.

  • chainId
  • coinbase
  • difficulty
  • fee
  • prevrandao
  • blobhashes
  • getBlobhashes
  • roll
  • getBlockNumber
  • txGasPrice
  • warp
  • getBlockTimestamp
  • blobBaseFee
  • getBlobBaseFee
  • deal
  • etch
  • resetNonce
  • setNonce
  • setNonceUnsafe
  • store
  • accesses
  • addr
  • assume
  • deriveKey
  • envOr
  • expectCall
  • expectEmit
  • expectRevert
  • label
  • load
  • parseJsonString
  • readFile
  • record
  • replace
  • cool
  • clearMockedCalls
  • mockCall
  • mockCalls
  • mockCallRevert
  • mockFunction
  • prank
  • startPrank
  • stopPrank
  • assertTrue
  • assertFalse
  • assertEq
  • assertEqDecimal
  • assertNotEq
  • assertNotEqDecimal
  • assertGt
  • assertGtDecimal
  • assertGe
  • assertGeDecimal
  • assertLt
  • assertLtDecimal
  • assertLe
  • assertLeDecimal
  • assertApproxEqAbs
  • assertApproxEqAbsDecimal
  • assertApproxEqRel
  • assertApproxEqRelDecimal