Documentation
¶
Index ¶
- func DeserializeState(serializedState map[statekey.StateKey][]byte) (state.State, error)
- func RandomAccumulationHistory(t *testing.T) state.AccumulationHistory
- func RandomAccumulationQueue(t *testing.T) state.AccumulationQueue
- func RandomBlockState(t *testing.T) state.BlockState
- func RandomCoreAssignments(t *testing.T) state.CoreAssignments
- func RandomCoreAuthorizersPool(t *testing.T) state.CoreAuthorizersPool
- func RandomEntropyPool(t *testing.T) state.EntropyPool
- func RandomEpochKeys(t *testing.T) crypto.EpochKeys
- func RandomHashSet(t *testing.T, maxSize int) map[crypto.Hash]struct{}
- func RandomJudgements(t *testing.T) state.Judgements
- func RandomPendingAuthorizersQueues(t *testing.T) state.PendingAuthorizersQueues
- func RandomPrivilegedServices() service.PrivilegedServices
- func RandomSafroleStateWithEpochKeys(t *testing.T) safrole.State
- func RandomSafroleStateWithTicketBodies(t *testing.T) safrole.State
- func RandomServiceAccount(t *testing.T) service.ServiceAccount
- func RandomState(t *testing.T) state.State
- func RandomStateKey(t *testing.T) statekey.StateKey
- func RandomTicketBodies(t *testing.T) safrole.TicketsBodies
- func RandomTickets(t *testing.T) []block.Ticket
- func RandomValidatorState(t *testing.T) validator.ValidatorState
- func RandomValidatorStatistics() validator.ValidatorStatistics
- func RandomValidatorStatisticsState() validator.ActivityStatisticsState
- func RandomValidatorsData(t *testing.T) safrole.ValidatorsData
- func RandomWorkReport(t *testing.T) block.WorkReport
- func RandomWorkResult(t *testing.T) block.WorkResult
- func SerializeState(s state.State) (map[statekey.StateKey][]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeState ¶
DeserializeState deserializes the given map of state keys to byte slices into a State object.
func RandomAccumulationHistory ¶
func RandomAccumulationHistory(t *testing.T) state.AccumulationHistory
func RandomAccumulationQueue ¶
func RandomAccumulationQueue(t *testing.T) state.AccumulationQueue
func RandomBlockState ¶
func RandomBlockState(t *testing.T) state.BlockState
func RandomCoreAssignments ¶
func RandomCoreAssignments(t *testing.T) state.CoreAssignments
func RandomCoreAuthorizersPool ¶
func RandomCoreAuthorizersPool(t *testing.T) state.CoreAuthorizersPool
func RandomEntropyPool ¶
func RandomEntropyPool(t *testing.T) state.EntropyPool
func RandomJudgements ¶
func RandomJudgements(t *testing.T) state.Judgements
func RandomPendingAuthorizersQueues ¶
func RandomPendingAuthorizersQueues(t *testing.T) state.PendingAuthorizersQueues
func RandomPrivilegedServices ¶
func RandomPrivilegedServices() service.PrivilegedServices
func RandomServiceAccount ¶
func RandomServiceAccount(t *testing.T) service.ServiceAccount
func RandomTicketBodies ¶
func RandomTicketBodies(t *testing.T) safrole.TicketsBodies
func RandomValidatorState ¶
func RandomValidatorState(t *testing.T) validator.ValidatorState
func RandomValidatorStatistics ¶
func RandomValidatorStatistics() validator.ValidatorStatistics
func RandomValidatorStatisticsState ¶
func RandomValidatorStatisticsState() validator.ActivityStatisticsState
func RandomValidatorsData ¶
func RandomValidatorsData(t *testing.T) safrole.ValidatorsData
func RandomWorkReport ¶
func RandomWorkReport(t *testing.T) block.WorkReport
func RandomWorkResult ¶
func RandomWorkResult(t *testing.T) block.WorkResult
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.