Skip to content

Commit

Permalink
Merge branch 'main' into marius/v12-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke authored Sep 11, 2023
2 parents dd6667f + 3d83e89 commit 27f7f3a
Show file tree
Hide file tree
Showing 23 changed files with 309 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/dependencies/2714-remove-liquidity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Remove [Liquidity](https://github.com/Gravity-Devs/liquidity)
([\#2716](https://github.com/cosmos/gaia/pull/2716))
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ func (app *GaiaApp) setupUpgradeStoreLoaders() {
}

for _, upgrade := range Upgrades {
upgrade := upgrade
if upgradeInfo.Name == upgrade.UpgradeName {
storeUpgrades := upgrade.StoreUpgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
Expand Down
24 changes: 6 additions & 18 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package keepers

import (
liquiditykeeper "github.com/gravity-devs/liquidity/x/liquidity/keeper"
liquiditytypes "github.com/gravity-devs/liquidity/x/liquidity/types"
tmos "github.com/tendermint/tendermint/libs/os"

// unnamed import of statik for swagger UI support
Expand Down Expand Up @@ -86,13 +84,12 @@ type AppKeepers struct {
UpgradeKeeper upgradekeeper.Keeper
ParamsKeeper paramskeeper.Keeper
// IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
IBCKeeper *ibckeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
TransferKeeper ibctransferkeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
AuthzKeeper authzkeeper.Keeper
LiquidityKeeper liquiditykeeper.Keeper
IBCKeeper *ibckeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
TransferKeeper ibctransferkeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
AuthzKeeper authzkeeper.Keeper

// ICS
ProviderKeeper ibcproviderkeeper.Keeper
Expand Down Expand Up @@ -226,14 +223,6 @@ func NewAppKeeper(
&stakingKeeper,
appKeepers.GetSubspace(slashingtypes.ModuleName),
)
appKeepers.LiquidityKeeper = liquiditykeeper.NewKeeper(
appCodec,
appKeepers.keys[liquiditytypes.StoreKey],
appKeepers.GetSubspace(liquiditytypes.ModuleName),
appKeepers.BankKeeper,
appKeepers.AccountKeeper,
appKeepers.DistrKeeper,
)

// register the staking hooks
// NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
Expand Down Expand Up @@ -398,7 +387,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(slashingtypes.ModuleName)
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govtypes.ParamKeyTable())
paramsKeeper.Subspace(crisistypes.ModuleName)
paramsKeeper.Subspace(liquiditytypes.ModuleName)
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibchost.ModuleName)

Expand Down
4 changes: 1 addition & 3 deletions app/keepers/keys.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package keepers

import (
liquiditytypes "github.com/gravity-devs/liquidity/x/liquidity/types"

routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/router/types"
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
Expand Down Expand Up @@ -33,7 +31,7 @@ func (appKeepers *AppKeepers) GenerateKeys() {
authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey,
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey,
evidencetypes.StoreKey, liquiditytypes.StoreKey, ibctransfertypes.StoreKey,
evidencetypes.StoreKey, ibctransfertypes.StoreKey,
capabilitytypes.StoreKey, feegrant.StoreKey, authzkeeper.StoreKey, routertypes.StoreKey,
icahosttypes.StoreKey, providertypes.StoreKey,
)
Expand Down
10 changes: 0 additions & 10 deletions app/modules.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package gaia

import (
"github.com/gravity-devs/liquidity/x/liquidity"
liquiditytypes "github.com/gravity-devs/liquidity/x/liquidity/types"

"github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/router"
routertypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/router/types"
ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
Expand Down Expand Up @@ -67,7 +64,6 @@ var maccPerms = map[string][]string{
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
liquiditytypes.ModuleName: {authtypes.Minter, authtypes.Burner},
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
providertypes.ConsumerRewardsPool: nil,
}
Expand Down Expand Up @@ -104,7 +100,6 @@ var ModuleBasics = module.NewBasicManager(
evidence.AppModuleBasic{},
transfer.AppModuleBasic{},
vesting.AppModuleBasic{},
liquidity.AppModuleBasic{},
router.AppModuleBasic{},
ica.AppModuleBasic{},
globalfee.AppModule{},
Expand Down Expand Up @@ -141,7 +136,6 @@ func appModules(
authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
ibc.NewAppModule(app.IBCKeeper),
params.NewAppModule(app.ParamsKeeper),
liquidity.NewAppModule(appCodec, app.LiquidityKeeper, app.AccountKeeper, app.BankKeeper, app.DistrKeeper),
globalfee.NewAppModule(app.GetSubspace(globalfee.ModuleName)),
app.TransferModule,
app.ICAModule,
Expand Down Expand Up @@ -172,7 +166,6 @@ func simulationModules(
params.NewAppModule(app.ParamsKeeper),
evidence.NewAppModule(app.EvidenceKeeper),
authzmodule.NewAppModule(appCodec, app.AuthzKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
liquidity.NewAppModule(appCodec, app.LiquidityKeeper, app.AccountKeeper, app.BankKeeper, app.DistrKeeper),
ibc.NewAppModule(app.IBCKeeper),
app.TransferModule,
app.ProviderModule,
Expand Down Expand Up @@ -205,7 +198,6 @@ func orderBeginBlockers() []string {
banktypes.ModuleName,
govtypes.ModuleName,
crisistypes.ModuleName,
liquiditytypes.ModuleName,
ibctransfertypes.ModuleName,
ibchost.ModuleName,
icatypes.ModuleName,
Expand Down Expand Up @@ -233,7 +225,6 @@ func orderEndBlockers() []string {
crisistypes.ModuleName,
govtypes.ModuleName,
stakingtypes.ModuleName,
liquiditytypes.ModuleName,
ibctransfertypes.ModuleName,
ibchost.ModuleName,
icatypes.ModuleName,
Expand Down Expand Up @@ -280,7 +271,6 @@ func orderInitBlockers() []string {
ibchost.ModuleName,
icatypes.ModuleName,
evidencetypes.ModuleName,
liquiditytypes.ModuleName,
authz.ModuleName,
feegrant.ModuleName,
routertypes.ModuleName,
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ For reference, the list of `rpc_servers` and `persistent` peers can be found in
```bash
# Build gaiad binary and initialize chain
cd $HOME
git clone -b v11.0.0 https://github.com/cosmos/gaia --depth=1
git clone -b v12.0.0 https://github.com/cosmos/gaia --depth=1
cd gaiad
make install
gaiad init CUSTOM_MONIKER --chain-id cosmoshub-4
Expand Down
2 changes: 1 addition & 1 deletion docs/guidelines/code-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

If you want to contribute to a project and improve it, your help is welcome. We want to make Gaia as good as it can be. Contributing is also a great way to learn more about blockchain technology and improve it. Please read this document and follow our guidelines to make the process as smooth as possible. We are happy to review your code but please ensure that you have a reasonable and clean pull request.

This documents idiomatic conventions in the Go code that we follow at Uber. A lot of these are general guidelines for Go, while others extend upon external resources:
This documents idiomatic conventions in the Go code that we follow for gaia development. A lot of these are general guidelines for Go, while others extend upon external resources:

1. [Effective Go](https://golang.org/doc/effective_go.html)
2. [Go Common Mistakes](https://github.com/golang/go/wiki/CommonMistakes)
Expand Down
8 changes: 4 additions & 4 deletions docs/hub-overview/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ title: Introduction
---

::: warning
### **v11 Upgrade**
Cosmos Hub will be upgraded to [v11](https://github.com/cosmos/gaia/releases/tag/v11.0.0) at block height: **16,596,000**
### **v12 Upgrade**
Cosmos Hub will be upgraded to [v12](https://github.com/cosmos/gaia/releases/tag/v12.0.0) at block height: **[16,985,500](https://www.mintscan.io/cosmos/blocks/16985500)**

To upgrade from v10 check the [**upgrade guide**](../migration/cosmoshub-4-v11-upgrade.md)
To upgrade from v11 check the [**upgrade guide**](../migration/cosmoshub-4-v12-upgrade.md)
:::

![Welcome to the Cosmos Hub](../images/cosmos-hub-image.jpg)
Expand All @@ -18,7 +18,7 @@ The Cosmos Hub is the first of [thousands of interconnected blockchains](https:/

## The ATOM

Do you have ATOM tokens? With ATOM, you have the superpower to contribute to the security and governance of the Cosmos Hub. Delegate your ATOM to one or more of the 125 validators on the Cosmos Hub blockchain to earn more ATOM through Proof-of-Stake. You can also vote with your ATOM to influence the future of the Cosmos Hub through on-chain governance proposals.
Do you have ATOM tokens? With ATOM, you have the superpower to contribute to the security and governance of the Cosmos Hub. Delegate your ATOM to one or more of the 180 validators on the Cosmos Hub blockchain to earn more ATOM through Proof-of-Stake. You can also vote with your ATOM to influence the future of the Cosmos Hub through on-chain governance proposals.

Learn more about [being a delegator](../delegators/delegator-faq.md), learn about [the security risks](../delegators/delegator-security.md), and start participating with one of the following wallets.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/migration/cosmoshub-4-delta-upgrade.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cosmos Hub 4, Delta Upgrade
order: 4
order: 1
---
<!-- markdown-link-check-disable -->
# Cosmos Hub 4, Delta Upgrade, Instructions
Expand Down
2 changes: 1 addition & 1 deletion docs/migration/cosmoshub-4-v10-upgrade.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cosmos Hub 4, v10 Upgrade
order: 1
order: 6
---
<!-- markdown-link-check-disable -->
# Cosmos Hub 4, v10 Upgrade, Instructions
Expand Down
2 changes: 1 addition & 1 deletion docs/migration/cosmoshub-4-v11-upgrade.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cosmos Hub 4, Gaia v11 Upgrade
order: 1
order: 7
---
<!-- markdown-link-check-disable -->
# Cosmos Hub 4, Gaia v11 Upgrade, Instructions
Expand Down
Loading

0 comments on commit 27f7f3a

Please sign in to comment.