Skip to content

Commit

Permalink
add file update slashing module.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
sin3A committed Jul 23, 2024
1 parent 5ee596c commit 5882101
Show file tree
Hide file tree
Showing 6 changed files with 2,402 additions and 1 deletion.
1,636 changes: 1,636 additions & 0 deletions modules/node/go.sum

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions modules/slashing/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func (am AppModule) IsAppModule() {}
type SlashingInputs struct {
depinject.In
NodeKeeper types.NodeKeeper
Config *modulev1.Module
Key *store.KVStoreKey
Cdc codec.Codec
LegacyAmino *codec.LegacyAmino
Expand All @@ -49,6 +50,9 @@ type SlashingOutputs struct {

func ProvideModule(in SlashingInputs) SlashingOutputs {
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
cosmosSlashingKeeper := slashingkeeper.NewKeeper(in.Cdc, in.LegacyAmino, in.Key, in.StakingKeeper, authority.String())
keeper := keeper.NewKeeper(
cosmosSlashingKeeper,
Expand Down
2 changes: 1 addition & 1 deletion modules/slashing/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.9.0
google.golang.org/grpc v1.62.1
iritamod.bianjie.ai/api v0.0.0-20240709020459-b21710d38ee1
iritamod.bianjie.ai/api v0.0.0-20240723070221-5ee596ca7a47
)

require google.golang.org/protobuf v1.33.0
Expand Down
Loading

0 comments on commit 5882101

Please sign in to comment.