IInfraredBERADepositor

Git Source

Functions

InfraredBERA

the main InfraredBERA contract address

function InfraredBERA() external view returns (address);

reserves

the queued amount of BERA to be deposited

function reserves() external view returns (uint256);

queue

Queues a deposit by sending BERA to this contract and storing the amount in the pending deposits acculimator

function queue() external payable;

execute

Executes a deposit to the deposit contract for the specified pubkey and amount

Only callable by the keeper

Only callable if the deposits are enabled

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

Parameters

NameTypeDescription
pubkeybytesThe pubkey of the validator to deposit for
amountuint256The amount of BERA to deposit

initialize

Initialize the contract (replaces the constructor)

function initialize(
    address _gov,
    address _keeper,
    address ibera,
    address _depositContract
) external;

Parameters

NameTypeDescription
_govaddressAddress for admin / gov to upgrade
_keeperaddressAddress for keeper
iberaaddressThe initial IBERA address
_depositContractaddressThe ETH2 (Berachain) Deposit Contract Address

DEPOSIT_CONTRACT

The Deposit Contract Address for Berachain

function DEPOSIT_CONTRACT() external view returns (address);

ETH1_ADDRESS_WITHDRAWAL_PREFIX

https://eth2book.info/capella/part2/deposits-withdrawals/withdrawal-processing/

function ETH1_ADDRESS_WITHDRAWAL_PREFIX() external view returns (uint8);

Events

Queue

Emitted when BERA is queued for deposit

event Queue(uint256 amount);

Parameters

NameTypeDescription
amountuint256The amount of BERA queued

Execute

Emitted when a deposit is executed to the deposit contract

event Execute(bytes pubkey, uint256 amount);

Parameters

NameTypeDescription
pubkeybytesThe validator's public key
amountuint256The amount of BERA deposited