IInfraredBERADepositor
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
Name | Type | Description |
---|---|---|
nonce | uint256 | The nonce associated with the slip |
Returns
Name | Type | Description |
---|---|---|
timestamp | uint96 | The block.timestamp at which deposit slip was issued |
fee | uint256 | The fee escrow amount set aside for deposit contract request |
amount | uint256 | The 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
Name | Type | Description |
---|---|---|
amount | uint256 | The amount of funds to deposit |
Returns
Name | Type | Description |
---|---|---|
nonce | uint256 | The 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
Name | Type | Description |
---|---|---|
pubkey | bytes | The pubkey to deposit validator funds to |
amount | uint256 | The 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);