Inputs

Git Source

Defines the signatures of inputs.

Functions

EvmAdvance

An advance request from an EVM-compatible blockchain to a Cartesi Machine.

See EIP-4399 for safe usage of prevRandao.

function EvmAdvance(
    uint256 chainId,
    address appContract,
    address msgSender,
    uint256 blockNumber,
    uint256 blockTimestamp,
    uint256 prevRandao,
    uint256 index,
    bytes calldata payload
) external;

Parameters

NameTypeDescription
chainIduint256The chain ID
appContractaddressThe application contract address
msgSenderaddressThe address of whoever sent the input
blockNumberuint256The number of the block in which the input was added
blockTimestampuint256The timestamp of the block in which the input was added
prevRandaouint256The latest RANDAO mix of the post beacon state of the previous block
indexuint256The index of the input in the input box
payloadbytesThe payload provided by the message sender