Expand description
Module containing a contract’s types and functions.
library LibStakingStorage {
type States is uint8;
struct AddressMapping { address nodeAddress; address stakerAddress; }
struct ComplaintConfig { uint256 tolerance; uint256 intervalSecs; uint256 kickPenaltyPercent; }
struct Config { uint256 tokenRewardPerTokenPerEpoch; uint256 DEPRECATED_complaintTolerance; uint256 DEPRECATED_complaintIntervalSecs; uint256[] keyTypes; uint256 minimumValidatorCount; uint256 maxConcurrentRequests; uint256 maxTripleCount; uint256 minTripleCount; uint256 peerCheckingIntervalSecs; uint256 maxTripleConcurrency; bool rpcHealthcheckEnabled; LitActionConfig litActionConfig; bool heliosEnabled; }
struct Epoch { uint256 epochLength; uint256 number; uint256 endTime; uint256 retries; uint256 timeout; }
struct LitActionConfig { uint256 timeoutMs; uint256 memoryLimitMb; uint256 maxCodeLength; uint256 maxResponseLength; uint256 maxFetchCount; uint256 maxSignCount; uint256 maxContractCallCount; uint256 maxBroadcastAndCollectCount; uint256 maxCallDepth; uint256 maxRetries; }
struct Validator { uint32 ip; uint128 ipv6; uint32 port; address nodeAddress; uint256 reward; uint256 senderPubKey; uint256 receiverPubKey; }
struct Version { uint256 major; uint256 minor; uint256 patch; }
}