Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(_ codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomAccountHolds(r *rand.Rand, accounts []simtypes.Account) []*hold.AccountHold
- func RandomizedGenState(simState *module.SimulationState)
- func UpdateBankGenStateForHolds(bankGenState *banktypes.GenesisState, holdGenState *hold.GenesisState)
Constants ¶
View Source
const HoldAccountHolds = "hold-account-holds"
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding group type.
func RandomAccountHolds ¶
RandomAccountHolds randomly selects accounts with an existing balance to place a hold of a random amount.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for the hold module.
func UpdateBankGenStateForHolds ¶
func UpdateBankGenStateForHolds(bankGenState *banktypes.GenesisState, holdGenState *hold.GenesisState)
UpdateBankGenStateForHolds adds all hold funds to the bank balances. Panics if there's an address with a hold that doesn't already have a balance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.