* Start implementation * Add implementation + some e2e test * Fix lint * Squashed: sdk upgrade to v0.50 * rebuild protos with newer proto builder (cherry picked from commit fd8f4c1d0d2163f0a504356c16cd2d250f6218f3) * update ibc-go (cherry picked from commit fb8667960fbeedb7d242baa644572986a154d4b6) * bump cosmos-sdk and ibc in the v50 branch (#1616) * tidy * upgade ibc * remove the toolchain command * Bump sdk version * Use correct bech32 prefix * Bump SDK * Enable fraud system test again * Fix genesis param name * Fix import/export simulations * set log level for benchmarks (cherry picked from commit 1cfb93008c596db62d22aba882f37a469546bfb9) * Apply review comments * Remove gov beta1 helpers * Bump sdk version to latest in branch * Fix linter * Setup mergify for main * Update mergify for better branch name --------- Co-authored-by: Pino' Surace <pino.surace@live.it> Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com>
34 lines
1.3 KiB
Go
34 lines
1.3 KiB
Go
package app
|
|
|
|
import (
|
|
"encoding/json"
|
|
"testing"
|
|
|
|
dbm "github.com/cosmos/cosmos-db"
|
|
|
|
"cosmossdk.io/log"
|
|
|
|
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
|
|
|
|
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
|
|
)
|
|
|
|
// GenesisState of the blockchain is represented here as a map of raw json
|
|
// messages key'd by a identifier string.
|
|
// The identifier is used to determine which module genesis information belongs
|
|
// to so it may be appropriately routed during init chain.
|
|
// Within this application default genesis information is retrieved from
|
|
// the ModuleBasicManager which populates json from each BasicModule
|
|
// object provided to it during init.
|
|
type GenesisState map[string]json.RawMessage
|
|
|
|
// NewDefaultGenesisState generates the default state for the application.
|
|
// Deprecated: use wasmApp.DefaultGenesis() instead
|
|
func NewDefaultGenesisState(t *testing.T) GenesisState {
|
|
t.Helper()
|
|
// we "pre"-instantiate the application for getting the injected/configured encoding configuration
|
|
// note, this is not necessary when using app wiring, as depinject can be directly used (see root_v2.go)
|
|
tempApp := NewWasmApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(t.TempDir()), []wasmkeeper.Option{})
|
|
return tempApp.DefaultGenesis()
|
|
}
|