IInfraredBERADepositor
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
Name | Type | Description |
---|---|---|
pubkey | bytes | The pubkey of the validator to deposit for |
amount | uint256 | The amount of BERA to deposit |
initialize
Initialize the contract (replaces the constructor)
function initialize(
address _gov,
address _keeper,
address ibera,
address _depositContract
) external;
Parameters
Name | Type | Description |
---|---|---|
_gov | address | Address for admin / gov to upgrade |
_keeper | address | Address for keeper |
ibera | address | The initial IBERA address |
_depositContract | address | The 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
Name | Type | Description |
---|---|---|
amount | uint256 | The amount of BERA queued |
Execute
Emitted when a deposit is executed to the deposit contract
event Execute(bytes pubkey, uint256 amount);
Parameters
Name | Type | Description |
---|---|---|
pubkey | bytes | The validator's public key |
amount | uint256 | The amount of BERA deposited |