Skip to content

Commit

Permalink
app: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fedekunze committed Jan 7, 2021
1 parent b312667 commit 7fc2e32
Show file tree
Hide file tree
Showing 12 changed files with 87 additions and 703 deletions.
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"

Expand Down Expand Up @@ -143,7 +144,7 @@ var (
)

var (
_ App = (*SommelierApp)(nil)
_ simapp.App = (*SommelierApp)(nil)
_ servertypes.Application = (*SommelierApp)(nil)
)

Expand Down
75 changes: 0 additions & 75 deletions app/config.go

This file was deleted.

19 changes: 0 additions & 19 deletions app/params/doc.go

This file was deleted.

16 changes: 16 additions & 0 deletions app/params/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/x/auth/tx"
)

// EncodingConfig specifies the concrete encoding types to use for a given app.
Expand All @@ -14,3 +15,18 @@ type EncodingConfig struct {
TxConfig client.TxConfig
Amino *codec.LegacyAmino
}

// MakeEncodingConfig creates an EncodingConfig for an amino based test configuration.
func MakeEncodingConfig() EncodingConfig {
amino := codec.NewLegacyAmino()
interfaceRegistry := types.NewInterfaceRegistry()
marshaler := codec.NewProtoCodec(interfaceRegistry)
txCfg := tx.NewTxConfig(marshaler, tx.DefaultSignModes)

return EncodingConfig{
InterfaceRegistry: interfaceRegistry,
Marshaler: marshaler,
TxConfig: txCfg,
Amino: amino,
}
}
7 changes: 0 additions & 7 deletions app/params/params.go

This file was deleted.

22 changes: 0 additions & 22 deletions app/params/proto.go

This file was deleted.

23 changes: 0 additions & 23 deletions app/params/weights.go

This file was deleted.

121 changes: 0 additions & 121 deletions app/sim_bench_test.go

This file was deleted.

Loading

0 comments on commit 7fc2e32

Please sign in to comment.