IInfraredBERADepositor

Git Source

Functions

InfraredBERA

The address of InfraredBERA

function InfraredBERA() external view returns (address);

slips

Outstanding slips for deposits on previously minted ibera

function slips(uint256 nonce)
    external
    view
    returns (uint96 timestamp, uint256 fee, uint256 amount);

Parameters

NameTypeDescription
nonceuint256The nonce associated with the slip

Returns

NameTypeDescription
timestampuint96The block.timestamp at which deposit slip was issued
feeuint256The fee escrow amount set aside for deposit contract request
amountuint256The amount of bera left to be submitted for deposit slip

fees

Amount of BERA internally set aside for deposit contract request fees

function fees() external view returns (uint256);

reserves

Amount of BERA internally set aside to execute deposit contract requests

function reserves() external view returns (uint256);

nonceSlip

The next nonce to issue deposit slip for

function nonceSlip() external view returns (uint256);

nonceSubmit

The next nonce to submit deposit slip for

function nonceSubmit() external view returns (uint256);

queue

Queues a deposit from InfraredBERA for chain deposit precompile escrowing msg.value in contract

function queue(uint256 amount) external payable returns (uint256 nonce);

Parameters

NameTypeDescription
amountuint256The amount of funds to deposit

Returns

NameTypeDescription
nonceuint256The nonce created when queueing the deposit

execute

Executes a deposit to deposit precompile using escrowed funds

function execute(bytes calldata pubkey, uint256 amount) external;

Parameters

NameTypeDescription
pubkeybytesThe pubkey to deposit validator funds to
amountuint256The amount of funds to use from escrow to deposit to validator

Events

Queue

event Queue(uint256 nonce, uint256 amount);

Execute

event Execute(bytes pubkey, uint256 start, uint256 end, uint256 amount);