Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal v0.44 app, without deleting unupgraded packages #1029

Merged
merged 56 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
bdabd2c
remove migrations
rhuairahrighairidh Oct 19, 2021
038d711
remove incentive module
rhuairahrighairidh Oct 19, 2021
e92cc43
remove swap module
rhuairahrighairidh Oct 19, 2021
1450f06
remove committee module
rhuairahrighairidh Oct 19, 2021
63c9326
remove hard module
rhuairahrighairidh Oct 19, 2021
deb4e1e
remove bep3 module
rhuairahrighairidh Oct 19, 2021
03aa355
remove kavadist module
rhuairahrighairidh Oct 19, 2021
45b3833
remove cdp module
rhuairahrighairidh Oct 19, 2021
a797d65
remove issuance module
rhuairahrighairidh Oct 19, 2021
3fc21ac
remove auction module
rhuairahrighairidh Oct 19, 2021
65dce3a
remove pricefeed module
rhuairahrighairidh Oct 19, 2021
fb02168
remove validator-vesting module
rhuairahrighairidh Oct 19, 2021
b47c320
remove unused rest test spike
rhuairahrighairidh Oct 19, 2021
e742d84
remove missed module imports from antehandler
rhuairahrighairidh Oct 19, 2021
deaf002
app - remove alias from imports
rhuairahrighairidh Oct 19, 2021
e7f61bf
update cosmos-sdk version in go.mod
rhuairahrighairidh Oct 19, 2021
d01d1c1
app - replace supply module
rhuairahrighairidh Oct 19, 2021
a6d34dd
app - add vesting modulea
rhuairahrighairidh Oct 19, 2021
0a8b4d1
app - replace codec
rhuairahrighairidh Oct 19, 2021
94a9707
app - remove upgrade, remove antehandler
rhuairahrighairidh Oct 19, 2021
b7eba95
app - remove features until NewApp runs
rhuairahrighairidh Oct 20, 2021
09722ea
delete cmd, cli_test, migration cmd
rhuairahrighairidh Oct 20, 2021
e3c72ca
add new app binary
rhuairahrighairidh Oct 20, 2021
36e22f9
add rough copy of gaia cmds
rhuairahrighairidh Oct 20, 2021
5986f07
read from flags/config and create new app
rhuairahrighairidh Oct 20, 2021
e04a790
remove out of date contrib files
rhuairahrighairidh Oct 20, 2021
7ab71e9
add sdk config and other tweaks to get app running
rhuairahrighairidh Oct 20, 2021
49f2727
code tidying and checks against old kava and gaia
rhuairahrighairidh Oct 20, 2021
c829030
add modules packages back in
rhuairahrighairidh Oct 21, 2021
0cc924f
set go mod to ignore modules
rhuairahrighairidh Oct 21, 2021
8aea9c4
add ante package back in
rhuairahrighairidh Oct 21, 2021
e7119b9
set go mod to ignore ante
rhuairahrighairidh Oct 21, 2021
e5724e3
add cmd packages back in
rhuairahrighairidh Oct 21, 2021
6594432
set go mod to ignore cmd
rhuairahrighairidh Oct 21, 2021
6d66008
add migrate package back in
rhuairahrighairidh Oct 21, 2021
73a3d4c
set go mod to ignore migrate
rhuairahrighairidh Oct 21, 2021
a5df7f5
add app files back in, but ignored
rhuairahrighairidh Oct 21, 2021
1a1e978
revert commented out params file
rhuairahrighairidh Oct 21, 2021
567b7e9
add cli_test package back in
rhuairahrighairidh Oct 21, 2021
17d2107
set go mod to ignore cli_test
rhuairahrighairidh Oct 21, 2021
453ed88
remove unused makefile entry
rhuairahrighairidh Oct 21, 2021
b2635a9
add upgrade todo to go.mod
rhuairahrighairidh Oct 21, 2021
c05e705
update to go 1.16
rhuairahrighairidh Oct 21, 2021
e5494b8
fix CI
rhuairahrighairidh Oct 21, 2021
ad913f2
update replace directive for v0.44.x and run go mod tidy; removes
nddeluca Oct 21, 2021
4aa5df1
add ldflag for tendermint version, as tendermint now sets the version at
nddeluca Oct 22, 2021
313ee8c
add todo for settings version map in upgrade keeper
nddeluca Oct 22, 2021
9d938fc
upgrade antehandler package
rhuairahrighairidh Oct 25, 2021
94e8877
upgrade TestApp, add antehandler to app
rhuairahrighairidh Oct 25, 2021
0d6d145
register rest and grpc gateway routes
rhuairahrighairidh Oct 26, 2021
8898199
resolve TODO about funding community pool
rhuairahrighairidh Oct 26, 2021
8645874
move test methods to TestApp
rhuairahrighairidh Oct 26, 2021
dd6a95b
decouple default data dir configuration from app
rhuairahrighairidh Oct 26, 2021
b777597
refactor NewTestApp
rhuairahrighairidh Oct 26, 2021
b2e3fcb
remove ineffective cmd formatting
rhuairahrighairidh Oct 26, 2021
18a2266
move test helper for more accesibility
rhuairahrighairidh Oct 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove bep3 module
  • Loading branch information
rhuairahrighairidh committed Oct 19, 2021
commit deb4e1ed8aceb13d1c238d4dd429a832c5eb715b
23 changes: 4 additions & 19 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (

"github.com/kava-labs/kava/app/ante"
"github.com/kava-labs/kava/x/auction"
"github.com/kava-labs/kava/x/bep3"
"github.com/kava-labs/kava/x/cdp"
"github.com/kava-labs/kava/x/issuance"
"github.com/kava-labs/kava/x/kavadist"
Expand Down Expand Up @@ -76,7 +75,6 @@ var (
auction.AppModuleBasic{},
cdp.AppModuleBasic{},
pricefeed.AppModuleBasic{},
bep3.AppModuleBasic{},
kavadist.AppModuleBasic{},
issuance.AppModuleBasic{},
)
Expand All @@ -95,7 +93,6 @@ var (
auction.ModuleName: nil,
cdp.ModuleName: {supply.Minter, supply.Burner},
cdp.LiquidatorMacc: {supply.Minter, supply.Burner},
bep3.ModuleName: {supply.Minter, supply.Burner},
kavadist.ModuleName: {supply.Minter},
issuance.ModuleAccountName: {supply.Minter, supply.Burner},
}
Expand Down Expand Up @@ -147,7 +144,6 @@ type App struct {
auctionKeeper auction.Keeper
cdpKeeper cdp.Keeper
pricefeedKeeper pricefeed.Keeper
bep3Keeper bep3.Keeper
kavadistKeeper kavadist.Keeper
issuanceKeeper issuance.Keeper

Expand All @@ -172,7 +168,7 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
supply.StoreKey, mint.StoreKey, distr.StoreKey, slashing.StoreKey,
gov.StoreKey, params.StoreKey, upgrade.StoreKey, evidence.StoreKey,
validatorvesting.StoreKey, auction.StoreKey, cdp.StoreKey, pricefeed.StoreKey,
bep3.StoreKey, kavadist.StoreKey, issuance.StoreKey,
kavadist.StoreKey, issuance.StoreKey,
)
tkeys := sdk.NewTransientStoreKeys(params.TStoreKey)

Expand All @@ -198,7 +194,6 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
auctionSubspace := app.paramsKeeper.Subspace(auction.DefaultParamspace)
cdpSubspace := app.paramsKeeper.Subspace(cdp.DefaultParamspace)
pricefeedSubspace := app.paramsKeeper.Subspace(pricefeed.DefaultParamspace)
bep3Subspace := app.paramsKeeper.Subspace(bep3.DefaultParamspace)
kavadistSubspace := app.paramsKeeper.Subspace(kavadist.DefaultParamspace)
issuanceSubspace := app.paramsKeeper.Subspace(issuance.DefaultParamspace)

Expand Down Expand Up @@ -329,14 +324,6 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
app.accountKeeper,
mAccPerms,
)
app.bep3Keeper = bep3.NewKeeper(
app.cdc,
keys[bep3.StoreKey],
app.supplyKeeper,
app.accountKeeper,
bep3Subspace,
app.ModuleAccountAddrs(),
)
app.issuanceKeeper = issuance.NewKeeper(
app.cdc,
keys[issuance.StoreKey],
Expand Down Expand Up @@ -369,7 +356,6 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
auction.NewAppModule(app.auctionKeeper, app.accountKeeper, app.supplyKeeper),
cdp.NewAppModule(app.cdpKeeper, app.accountKeeper, app.pricefeedKeeper, app.supplyKeeper),
pricefeed.NewAppModule(app.pricefeedKeeper, app.accountKeeper),
bep3.NewAppModule(app.bep3Keeper, app.accountKeeper, app.supplyKeeper),
kavadist.NewAppModule(app.kavadistKeeper, app.supplyKeeper),
issuance.NewAppModule(app.issuanceKeeper, app.accountKeeper, app.supplyKeeper),
)
Expand All @@ -382,7 +368,7 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
app.mm.SetOrderBeginBlockers(
upgrade.ModuleName, mint.ModuleName, distr.ModuleName, slashing.ModuleName,
validatorvesting.ModuleName, kavadist.ModuleName, auction.ModuleName, cdp.ModuleName,
bep3.ModuleName, issuance.ModuleName,
issuance.ModuleName,
)

app.mm.SetOrderEndBlockers(crisis.ModuleName, gov.ModuleName, staking.ModuleName, pricefeed.ModuleName)
Expand All @@ -393,7 +379,7 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
staking.ModuleName, bank.ModuleName, slashing.ModuleName,
gov.ModuleName, mint.ModuleName, evidence.ModuleName,
pricefeed.ModuleName, cdp.ModuleName, auction.ModuleName,
bep3.ModuleName, kavadist.ModuleName, issuance.ModuleName,
kavadist.ModuleName, issuance.ModuleName,
supply.ModuleName, // calculates the total supply from account - should run after modules that modify accounts in genesis
crisis.ModuleName, // runs the invariants at genesis - should run after other modules
genutil.ModuleName, // genutils must occur after staking so that pools are properly initialized with tokens from genesis accounts.
Expand All @@ -419,7 +405,6 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
pricefeed.NewAppModule(app.pricefeedKeeper, app.accountKeeper),
cdp.NewAppModule(app.cdpKeeper, app.accountKeeper, app.pricefeedKeeper, app.supplyKeeper),
auction.NewAppModule(app.auctionKeeper, app.accountKeeper, app.supplyKeeper),
bep3.NewAppModule(app.bep3Keeper, app.accountKeeper, app.supplyKeeper),
kavadist.NewAppModule(app.kavadistKeeper, app.supplyKeeper),
issuance.NewAppModule(app.issuanceKeeper, app.accountKeeper, app.supplyKeeper),
)
Expand All @@ -436,7 +421,7 @@ func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts AppOptio
var antehandler sdk.AnteHandler
if appOpts.MempoolEnableAuth {
var getAuthorizedAddresses ante.AddressFetcher = func(sdk.Context) []sdk.AccAddress { return appOpts.MempoolAuthAddresses }
antehandler = ante.NewAnteHandler(app.accountKeeper, app.supplyKeeper, auth.DefaultSigVerificationGasConsumer, app.bep3Keeper.GetAuthorizedAddresses, app.pricefeedKeeper.GetAuthorizedAddresses, getAuthorizedAddresses)
antehandler = ante.NewAnteHandler(app.accountKeeper, app.supplyKeeper, auth.DefaultSigVerificationGasConsumer, app.pricefeedKeeper.GetAuthorizedAddresses, getAuthorizedAddresses)
} else {
antehandler = ante.NewAnteHandler(app.accountKeeper, app.supplyKeeper, auth.DefaultSigVerificationGasConsumer)
}
Expand Down
2 changes: 0 additions & 2 deletions app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/cosmos/cosmos-sdk/x/supply"

"github.com/kava-labs/kava/x/auction"
"github.com/kava-labs/kava/x/bep3"
"github.com/kava-labs/kava/x/cdp"
"github.com/kava-labs/kava/x/kavadist"
"github.com/kava-labs/kava/x/pricefeed"
Expand Down Expand Up @@ -176,7 +175,6 @@ func TestAppImportExport(t *testing.T) {
{app.keys[params.StoreKey], newApp.keys[params.StoreKey], [][]byte{}},
{app.keys[gov.StoreKey], newApp.keys[gov.StoreKey], [][]byte{}},
{app.keys[auction.StoreKey], newApp.keys[auction.StoreKey], [][]byte{}},
{app.keys[bep3.StoreKey], newApp.keys[bep3.StoreKey], [][]byte{}},
{app.keys[cdp.StoreKey], newApp.keys[cdp.StoreKey], [][]byte{}},
{app.keys[kavadist.StoreKey], newApp.keys[kavadist.StoreKey], [][]byte{}},
{app.keys[pricefeed.StoreKey], newApp.keys[pricefeed.StoreKey], [][]byte{}},
Expand Down
2 changes: 0 additions & 2 deletions app/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/cosmos/cosmos-sdk/x/upgrade"

"github.com/kava-labs/kava/x/auction"
"github.com/kava-labs/kava/x/bep3"
"github.com/kava-labs/kava/x/cdp"
"github.com/kava-labs/kava/x/issuance"
"github.com/kava-labs/kava/x/kavadist"
Expand Down Expand Up @@ -90,7 +89,6 @@ func (tApp TestApp) GetVVKeeper() validatorvesting.Keeper { return tApp.vvKeeper
func (tApp TestApp) GetAuctionKeeper() auction.Keeper { return tApp.auctionKeeper }
func (tApp TestApp) GetCDPKeeper() cdp.Keeper { return tApp.cdpKeeper }
func (tApp TestApp) GetPriceFeedKeeper() pricefeed.Keeper { return tApp.pricefeedKeeper }
func (tApp TestApp) GetBep3Keeper() bep3.Keeper { return tApp.bep3Keeper }
func (tApp TestApp) GetKavadistKeeper() kavadist.Keeper { return tApp.kavadistKeeper }
func (tApp TestApp) GetIssuanceKeeper() issuance.Keeper { return tApp.issuanceKeeper }

Expand Down
21 changes: 0 additions & 21 deletions x/bep3/abci.go

This file was deleted.

Loading