Skip to main content

Opcodes

Since UniFi is based on Taiko, it inherits the same opcode behaviour as Taiko. Unless listed below, all opcodes are supported in UniFi and are EVM equivalent. The execution of some Opcodes is not verified by the circuits, and not part of the validity proofs.

Unsupported Opcodes

warning

If an unsupported opcode is encountered during execution that is not supported in UniFi, the transaction will revert.

The following opcodes are not supported in UniFi:

OpcodeNameSolidity Equivalent
49BLOBHASHblobhash(index)
4ABLOBBASEFEEblock.blobasefee
5CTLOADtload(key)
5DTSTOREtstore(key, value)
5EMCOPYmcopy()

Modified Opcodes

OpcodeNameSolidity EquivalentRollup BehaviourEthereum L1 Behaviour
41COINBASEblock.coinbaseReturns the address of the L2 block proposerGets the block's beneficiary address
42TIMESTAMPblock.timestampTimestamp of the L2 blockTimestamp of the L1 block
43NUMBERblock.numberL2 block numberGets the L1 block number
48BASEFEEblock.basefeeReturns the L2 base feeReturns the base fee