Simple refactoring of gov to use protobuf for store encoding (for everything besides proposal)

This commit is contained in:
Aaron Craelius
2020-02-26 20:15:00 -05:00
parent 56104c2961
commit e8155d67d0
14 changed files with 3587 additions and 77 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package simapp
import (
"github.com/cosmos/cosmos-sdk/x/gov/types"
"io"
"os"
@@ -207,7 +208,7 @@ func NewSimApp(
AddRoute(distr.RouterKey, distr.NewCommunityPoolSpendProposalHandler(app.DistrKeeper)).
AddRoute(upgrade.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper))
app.GovKeeper = gov.NewKeeper(
app.cdc, keys[gov.StoreKey], app.subspaces[gov.ModuleName], app.SupplyKeeper,
types.NewAminoGovCodec(app.cdc), keys[gov.StoreKey], app.subspaces[gov.ModuleName], app.SupplyKeeper,
&stakingKeeper, govRouter,
)