IConsensusLayerDepositManagerV1

Kiln

Consensys Layer Deposit Manager Interface (v1)

This interface exposes methods to handle the interactions with the official deposit contract

Methods

depositToConsensusLayer

function depositToConsensusLayer(uint256 _maxCount) external nonpayable

Deposits current balance to the Consensus Layer by batches of 32 ETH

Parameters

getBalanceToDeposit

function getBalanceToDeposit() external view returns (uint256)

Returns the amount of pending ETH

Returns

getDepositedValidatorCount

function getDepositedValidatorCount() external view returns (uint256)

Get the deposited validator count (the count of deposits made by the contract)

Returns

getWithdrawalCredentials

function getWithdrawalCredentials() external view returns (bytes32)

Retrieve the withdrawal credentials

Returns

Events

FundedValidatorKey

event FundedValidatorKey(bytes publicKey)

A validator key got funded on the deposit contract

Parameters

SetDepositContractAddress

event SetDepositContractAddress(address indexed depositContract)

The stored deposit contract address changed

Parameters

SetWithdrawalCredentials

event SetWithdrawalCredentials(bytes32 withdrawalCredentials)

The stored withdrawal credentials changed

Parameters

Errors

ErrorOnDeposit

error ErrorOnDeposit()

An error occured during the deposit

InconsistentPublicKeys

error InconsistentPublicKeys()

The length of the BLS Public key is invalid during deposit

InconsistentSignatures

error InconsistentSignatures()

The length of the BLS Signature is invalid during deposit

InvalidPublicKeyCount

error InvalidPublicKeyCount()

The received count of public keys to deposit is invalid

InvalidSignatureCount

error InvalidSignatureCount()

The received count of signatures to deposit is invalid

InvalidWithdrawalCredentials

error InvalidWithdrawalCredentials()

The withdrawal credentials value is null

NoAvailableValidatorKeys

error NoAvailableValidatorKeys()

The internal key retrieval returned no keys

NotEnoughFunds

error NotEnoughFunds()

Not enough funds to deposit one validator

Last updated