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

app.go cleanup #1580

Merged
merged 30 commits into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0fde0b8
Initial creation of blobs
Anmol1696 Jun 26, 2022
5364309
Add upgrades dir with v8 rho upgrade
Anmol1696 Jul 8, 2022
a0e52c3
Remove module.go for keeper package
Anmol1696 Jul 8, 2022
9520233
Remove repeated comment
Anmol1696 Jul 8, 2022
48e1654
Add newline in constants.go file
Anmol1696 Jul 8, 2022
2e990df
Remove unused commented out code
Anmol1696 Jul 8, 2022
96c5e1e
Merge master into branch
Anmol1696 Sep 17, 2022
26ed8e6
Resolve conflicts from main
Anmol1696 Sep 17, 2022
6b00cb2
Fix linted
Anmol1696 Sep 17, 2022
1fc985d
Fix import grouping
Anmol1696 Sep 17, 2022
8939377
Fix import grouping for module and upgrades
Anmol1696 Sep 17, 2022
0e2cb1d
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 20, 2022
5e9a7bc
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 20, 2022
9c2e00a
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 21, 2022
b9da863
Merge branch 'main' into anmol/app-refactor
okwme Sep 22, 2022
5083f87
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 25, 2022
b784f11
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 27, 2022
2238fac
Fix initialization of ica module
Anmol1696 Sep 27, 2022
4079cf5
Empty commit for actions trigger
Anmol1696 Sep 27, 2022
f8f08bc
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 29, 2022
c1990ee
Move upgrade function from v8 to v7, create empty v8 upgrade files
Anmol1696 Sep 29, 2022
0139764
Add v8 upgrade handler to app.go
Anmol1696 Sep 29, 2022
04088eb
Merge branch 'main' into anmol/app-refactor
Anmol1696 Sep 30, 2022
1a1727f
Merge branch 'main' into anmol/app-refactor
Pantani Oct 4, 2022
e2732f2
Ignore const, keys and modules.go files from codecov
Anmol1696 Oct 5, 2022
462dc40
Ignore app params as well since there are no tests required for it
Anmol1696 Oct 5, 2022
1cfbbb4
Restructure ordering of ignoring files and add a Todo commands
Anmol1696 Oct 5, 2022
7dbfef5
Comment out TestAccAddress function for linters to pass
Anmol1696 Oct 7, 2022
bf0e632
Merge main into feature branch
Anmol1696 Oct 8, 2022
faabd14
Remove previously added ignore files from codecov, since they have no…
Anmol1696 Oct 8, 2022
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
748 changes: 55 additions & 693 deletions app/app.go

Large diffs are not rendered by default.

31 changes: 1 addition & 30 deletions app/const.go
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
package gaia

const (
appName = "GaiaApp"
upgradeName = "v8-Rho"

// allowed msg types of ica host
authzMsgExec = "/cosmos.authz.v1beta1.MsgExec"
authzMsgGrant = "/cosmos.authz.v1beta1.MsgGrant"
authzMsgRevoke = "/cosmos.authz.v1beta1.MsgRevoke"
bankMsgSend = "/cosmos.bank.v1beta1.MsgSend"
bankMsgMultiSend = "/cosmos.bank.v1beta1.MsgMultiSend"
distrMsgSetWithdrawAddr = "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress"
distrMsgWithdrawValidatorCommission = "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"
distrMsgFundCommunityPool = "/cosmos.distribution.v1beta1.MsgFundCommunityPool"
distrMsgWithdrawDelegatorReward = "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"
feegrantMsgGrantAllowance = "/cosmos.feegrant.v1beta1.MsgGrantAllowance"
feegrantMsgRevokeAllowance = "/cosmos.feegrant.v1beta1.MsgRevokeAllowance"
govMsgVoteWeighted = "/cosmos.gov.v1beta1.MsgVoteWeighted"
govMsgSubmitProposal = "/cosmos.gov.v1beta1.MsgSubmitProposal"
govMsgDeposit = "/cosmos.gov.v1beta1.MsgDeposit"
govMsgVote = "/cosmos.gov.v1beta1.MsgVote"
stakingMsgEditValidator = "/cosmos.staking.v1beta1.MsgEditValidator"
stakingMsgDelegate = "/cosmos.staking.v1beta1.MsgDelegate"
stakingMsgUndelegate = "/cosmos.staking.v1beta1.MsgUndelegate"
stakingMsgBeginRedelegate = "/cosmos.staking.v1beta1.MsgBeginRedelegate"
stakingMsgCreateValidator = "/cosmos.staking.v1beta1.MsgCreateValidator"
vestingMsgCreateVestingAccount = "/cosmos.vesting.v1beta1.MsgCreateVestingAccount"
ibcMsgTransfer = "/ibc.applications.transfer.v1.MsgTransfer"
liquidityMsgSwapWithinBatch = "/tendermint.liquidity.v1beta1.MsgSwapWithinBatch" //#nosec G101 -- This is a false positive
liquidityMsgCreatePool = "/tendermint.liquidity.v1beta1.MsgCreatePool"
liquidityMsgDepositWithinBatch = "/tendermint.liquidity.v1beta1.MsgDepositWithinBatch"
liquidityMsgWithdrawWithinBatch = "/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch"
appName = "GaiaApp"
)
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (app *GaiaApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs [

// Iterate through validators by power descending, reset bond heights, and
// update bond intra-tx counters.
store := ctx.KVStore(app.keys[stakingtypes.StoreKey])
store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey))
iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
counter := int16(0)

Expand Down
Loading