Inputs
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
Name | Type | Description |
---|---|---|
chainId | uint256 | The chain ID |
appContract | address | The application contract address |
msgSender | address | The address of whoever sent the input |
blockNumber | uint256 | The number of the block in which the input was added |
blockTimestamp | uint256 | The timestamp of the block in which the input was added |
prevRandao | uint256 | The latest RANDAO mix of the post beacon state of the previous block |
index | uint256 | The index of the input in the input box |
payload | bytes | The payload provided by the message sender |