package
0.9.0-rc.3
Repository: https://github.com/babylonchain/babylon.git
Documentation: pkg.go.dev

# README

helper

The code under this directory provides infrastructure for testing the Babylon app. The code is adapted from https://github.com/cosmos/cosmos-sdk/tree/v0.45.5/x/staking/teststaking

# Functions

CalculateValHash calculate validator hash and new header (adapted from https://github.com/cosmos/cosmos-sdk/blob/v0.45.5/simapp/test_helpers.go#L156-L163).
DiffKVStores compares two KVstores and returns all the key/value pairs that differ from one another.
adapted from https://github.com/cosmos/cosmos-sdk/blob/v0.50.6/baseapp/abci_utils_test.go.
NewHelper creates the helper for testing the epoching module.
NewHelperWithValSet is same as NewHelper, except that it creates a set of validators the privSigner is the 0th validator in valSet.
NewHelperWithValSetNoSigner is same as NewHelperWithValSet, except that the privSigner is not included in the validator set.

# Structs

Helper is a structure which wraps the entire app and exposes functionalities for testing the epoching module.