Documentation
CI/CD Service

Supported Cheatcodes

A reference for all of the supported Foundry cheatcodes BuildBear supports.

For more information on how these cheatcodes work, check out the Foundry cheatcodes refernce.

  • chainId
  • coinbase
  • difficulty
  • fee
  • prevrandao
  • blobhashes
  • getBlobhashes
  • roll
  • getBlockNumber
  • txGasPrice
  • warp
  • getBlockTimestamp
  • blobBaseFee
  • getBlobBaseFee
  • deal
  • etch
  • resetNonce
  • setNonce
  • setNonceUnsafe
  • store
  • 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