Skip to content

Commit

Permalink
remove unused proto
Browse files Browse the repository at this point in the history
  • Loading branch information
neitdung committed Jul 3, 2024
1 parent 6c19c30 commit deecf98
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 434 deletions.
21 changes: 20 additions & 1 deletion demo/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ import (
"github.com/osmosis-labs/mesh-security-sdk/x/meshsecurity"
meshseckeeper "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurity/keeper"
meshsectypes "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurity/types"
meshsecprov "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider"
meshsecprovkeeper "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/keeper"
meshsecprovtypes "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types"
)

const appName = "MeshApp"
Expand Down Expand Up @@ -200,6 +203,7 @@ var (
ica.AppModuleBasic{},
ibcfee.AppModuleBasic{},
meshsecurity.AppModuleBasic{},
meshsecprov.AppModuleBasic{},
)

// module account permissions
Expand Down Expand Up @@ -263,6 +267,7 @@ type MeshApp struct {
TransferKeeper ibctransferkeeper.Keeper
WasmKeeper wasmkeeper.Keeper
MeshSecKeeper *meshseckeeper.Keeper
MeshSecProvKeeper meshsecprovkeeper.Keeper

ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
Expand Down Expand Up @@ -314,6 +319,7 @@ func NewMeshApp(
wasmtypes.StoreKey, icahosttypes.StoreKey,
icacontrollertypes.StoreKey,
meshsectypes.StoreKey,
meshsecprovtypes.StoreKey,
)

tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
Expand Down Expand Up @@ -417,6 +423,13 @@ func NewMeshApp(
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)

app.MeshSecProvKeeper = *meshsecprovkeeper.NewKeeper(
appCodec,
keys[meshsecprovtypes.StoreKey],
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
app.BankKeeper,
)

app.SlashingKeeper = slashingkeeper.NewKeeper(
appCodec,
legacyAmino,
Expand Down Expand Up @@ -591,7 +604,12 @@ func NewMeshApp(
meshseckeeper.NewDefaultCustomMsgHandler(app.MeshSecKeeper),
)
})
wasmOpts = append(wasmOpts, meshMessageHandler,
meshProvMessageHandler := wasmkeeper.WithMessageHandlerDecorator(func(nested wasmkeeper.Messenger) wasmkeeper.Messenger {
return wasmkeeper.NewMessageHandlerChain(
meshsecprovkeeper.NewDefaultCustomMsgHandler(&app.MeshSecProvKeeper),
)
})
wasmOpts = append(wasmOpts, meshMessageHandler, meshProvMessageHandler,
// add support for the mesh-security queries
wasmkeeper.WithQueryHandlerDecorator(meshseckeeper.NewQueryDecorator(app.MeshSecKeeper, app.SlashingKeeper)),
)
Expand Down Expand Up @@ -694,6 +712,7 @@ func NewMeshApp(
ibcfee.NewAppModule(app.IBCFeeKeeper),
ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper),
meshsecurity.NewAppModule(appCodec, app.MeshSecKeeper),
meshsecprov.NewAppModule(app.MeshSecProvKeeper),
crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them
)

Expand Down
29 changes: 0 additions & 29 deletions docs/proto/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
- [Query](#osmosis.meshsecurityprovider.Query)

- [osmosis/meshsecurityprovider/tx.proto](#osmosis/meshsecurityprovider/tx.proto)
- [MsgBond](#osmosis.meshsecurityprovider.MsgBond)
- [MsgBondResponse](#osmosis.meshsecurityprovider.MsgBondResponse)
- [MsgTest](#osmosis.meshsecurityprovider.MsgTest)
- [MsgTestResponse](#osmosis.meshsecurityprovider.MsgTestResponse)
- [MsgUpdateParams](#osmosis.meshsecurityprovider.MsgUpdateParams)
Expand Down Expand Up @@ -132,32 +130,6 @@ GenesisState defines the meshsecurityprovider module's genesis state.



<a name="osmosis.meshsecurityprovider.MsgBond"></a>

### MsgBond
MsgBond defines a message for bonding to vault contract.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `delegator_address` | [string](#string) | | |
| `amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | |






<a name="osmosis.meshsecurityprovider.MsgBondResponse"></a>

### MsgBondResponse
MsgBondResponse defines the Msg/Bond response type.






<a name="osmosis.meshsecurityprovider.MsgTest"></a>

### MsgTest
Expand Down Expand Up @@ -231,7 +203,6 @@ Since: cosmos-sdk 0.47
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Test` | [MsgTest](#osmosis.meshsecurityprovider.MsgTest) | [MsgTestResponse](#osmosis.meshsecurityprovider.MsgTestResponse) | | |
| `UpdateParams` | [MsgUpdateParams](#osmosis.meshsecurityprovider.MsgUpdateParams) | [MsgUpdateParamsResponse](#osmosis.meshsecurityprovider.MsgUpdateParamsResponse) | UpdateParams defines an operation for updating the module's parameters. Since: cosmos-sdk 0.47 | |
| `Bond` | [MsgBond](#osmosis.meshsecurityprovider.MsgBond) | [MsgBondResponse](#osmosis.meshsecurityprovider.MsgBondResponse) | Bond defines an operation for bonding to vault contract. | |

<!-- end services -->

Expand Down
Loading

0 comments on commit deecf98

Please sign in to comment.