-
Notifications
You must be signed in to change notification settings - Fork 568
/
types.go
23 lines (17 loc) · 884 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package simulation
import (
"encoding/json"
"math/rand"
"time"
legacysim "github.com/cosmos/cosmos-sdk/types/simulation"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/osmosis-labs/osmosis/v14/simulation/simtypes"
)
// AppStateFn returns the app state json bytes and the genesis accounts
type AppStateFn func(simManager simtypes.ModuleGenesisGenerator, r *rand.Rand, accs []legacysim.Account, config InitializationConfig) (
appState json.RawMessage, accounts []legacysim.Account, chainId string, genesisTimestamp time.Time,
)
type InitChainFn func(simManager simtypes.ModuleGenesisGenerator, r *rand.Rand, accs []legacysim.Account, config InitializationConfig) (
accounts []legacysim.Account, req abci.RequestInitChain)
// RandomAccountFn returns a slice of n random simulation accounts
type RandomAccountFn func(r *rand.Rand, n int) []legacysim.Account