ValidatorDetails
Modified from KRogLA's work for Lido.
State Variables
PUBKEY_LENGTH
The validator pubkey byte length.
SIGNATURE_LENGTH
The validator signature byte length.
UINT40_MAX
The maximum uint40 value.
Functions
computeStorageKeyOffset
Compute the storage key offset.
Parameters
saveValidatorDetails
Store operator details.
Parameters
Returns
swapValidatorDetails
Swap operator detail indexes in storage.
Parameters
removeValidatorDetails
Remove validator details from storage.
Parameters
Returns
loadValidatorDetails
Load validator details from storage.
Parameters
allocateMemoryForPubKeys
Allocate memory for keyCount
public keys.
Parameters
allocateMemory
Allocate memory for count
validator details.
Parameters
Events
ValidatorDetailsAdded
Emitted when a new validator signing key is added.
Parameters
ValidatorDetailsRemoved
Emitted when a validator signing key is removed.
Parameters
ValidatorDetailsSwapped
Emitted when the indexes of two validator signing keys are swapped.
Parameters
Errors
INVALID_KEYS_COUNT
Thrown when the number of keys is invalid.
INDEXES_OVERLAP
Thrown when the indexes of keys overlap.
LENGTH_MISMATCH
Thrown when the keys and signatures lengths mismatch.
EMPTY_KEY
Thrown when the key is empty.
Last updated