OracleManagerV1
Alluvial Finance Inc.
Oracle Manager (v1)
This contract handles the inputs provided by the oracleThe Oracle contract is plugged to this contract and is in charge of pushingdata whenever a new report has been deemed valid. The report consists in twovalues: the sum of all balances of all deposited validators and the count ofvalidators that have been activated on the consensus layer.
Methods
_DEPOSIT_SIZE
Size of a deposit in ETH
Returns
_0
uint256
undefined
getCLSpec
Retrieve the current cl spec
Returns
_0
CLSpec.CLSpecStruct
The Consensus Layer Specification
getCLValidatorCount
Get CL validator count (the amount of validator reported by the oracles)
Returns
_0
uint256
The CL validator count
getCLValidatorTotalBalance
Get CL validator total balance
Returns
_0
uint256
The CL Validator total balance
getCurrentEpochId
Retrieve the current epoch id based on block timestamp
Returns
_0
uint256
The current epoch id
getCurrentFrame
Retrieve the current frame details
Returns
_startEpochId
uint256
The epoch at the beginning of the frame
_startTime
uint256
The timestamp of the beginning of the frame in seconds
_endTime
uint256
The timestamp of the end of the frame in seconds
getExpectedEpochId
Retrieve expected epoch id
Returns
_0
uint256
The current expected epoch id
getFrameFirstEpochId
Retrieve the first epoch id of the frame of the provided epoch id
Parameters
_epochId
uint256
Epoch id used to get the frame
Returns
_0
uint256
The first epoch id of the frame containing the given epoch id
getLastCompletedEpochId
Retrieve the last completed epoch id
Returns
_0
uint256
The last completed epoch id
getLastConsensusLayerReport
Retrieve the last consensus layer report
Returns
_0
IOracleManagerV1.StoredConsensusLayerReport
The stored consensus layer report
getOracle
Get oracle address
Returns
_0
address
The oracle address
getReportBounds
Retrieve the report bounds
Returns
_0
ReportBounds.ReportBoundsStruct
The report bounds
getTime
Retrieve the block timestamp
Returns
_0
uint256
The current timestamp from the EVM context
isValidEpoch
Verifies if the provided epoch is valid
Parameters
_epoch
uint256
undefined
Returns
_0
bool
True if valid
setCLSpec
Parameters
_newValue
CLSpec.CLSpecStruct
undefined
setConsensusLayerData
Parameters
_report
IOracleManagerV1.ConsensusLayerReport
undefined
setOracle
Set the oracle address
Parameters
_oracleAddress
address
Address of the oracle
setReportBounds
Parameters
_newValue
ReportBounds.ReportBoundsStruct
undefined
Events
ConsensusLayerDataUpdate
The consensus layer data provided by the oracle has been updated
Parameters
validatorCount
uint256
The new count of validators running on the consensus layer
validatorTotalBalance
uint256
The new total balance sum of all validators
roundId
bytes32
Round identifier
ProcessedConsensusLayerReport
The provided report has beend processed
Parameters
report
IOracleManagerV1.ConsensusLayerReport
The report that was provided
trace
IOracleManagerV1.ConsensusLayerDataReportingTrace
The trace structure providing more insights on internals
SetBounds
The Report Bounds are changed
Parameters
annualAprUpperBound
uint256
The reporting upper bound
relativeLowerBound
uint256
The reporting lower bound
SetOracle
The stored oracle address changed
Parameters
oracleAddress indexed
address
The new oracle address
SetSpec
The Consensus Layer Spec is changed
Parameters
epochsPerFrame
uint64
The number of epochs inside a frame
slotsPerEpoch
uint64
The number of slots inside an epoch
secondsPerSlot
uint64
The number of seconds inside a slot
genesisTime
uint64
The genesis timestamp
epochsToAssumedFinality
uint64
The number of epochs before an epoch is considered final
Errors
InvalidDecreasingValidatorsExitedBalance
The total exited balance decreased
Parameters
currentValidatorsExitedBalance
uint256
The current exited balance
newValidatorsExitedBalance
uint256
The new exited balance
InvalidDecreasingValidatorsSkimmedBalance
The total skimmed balance decreased
Parameters
currentValidatorsSkimmedBalance
uint256
The current exited balance
newValidatorsSkimmedBalance
uint256
The new exited balance
InvalidEpoch
Thrown when an invalid epoch was reported
Parameters
epoch
uint256
Invalid epoch
InvalidValidatorCountReport
The reported validator count is invalid
Parameters
providedValidatorCount
uint256
The received validator count value
depositedValidatorCount
uint256
The number of deposits performed by the system
lastReportedValidatorCount
uint256
The last reported validator count
InvalidZeroAddress
The address is zero
TotalValidatorBalanceDecreaseOutOfBound
The balance decrease is higher than the maximum allowed by the lower bound
Parameters
prevTotalEthIncludingExited
uint256
The previous total balance, including all exited balance
postTotalEthIncludingExited
uint256
The post-report total balance, including all exited balance
timeElapsed
uint256
The time in seconds since last report
relativeLowerBound
uint256
The lower bound value that was used
TotalValidatorBalanceIncreaseOutOfBound
The balance increase is higher than the maximum allowed by the upper bound
Parameters
prevTotalEthIncludingExited
uint256
The previous total balance, including all exited balance
postTotalEthIncludingExited
uint256
The post-report total balance, including all exited balance
timeElapsed
uint256
The time in seconds since last report
annualAprUpperBound
uint256
The upper bound value that was used
Unauthorized
The operator is unauthorized for the caller
Parameters
caller
address
Address performing the call
Last updated