Skip to content

Commit

Permalink
refactor: exoslash -> imslash
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Feb 21, 2025
1 parent 22040d2 commit 9ba9677
Show file tree
Hide file tree
Showing 40 changed files with 148 additions and 148 deletions.
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import (
"github.com/imua-xyz/imuachain/x/operator"
operatorKeeper "github.com/imua-xyz/imuachain/x/operator/keeper"

imslash "github.com/imua-xyz/imuachain/x/slash"
imslash "github.com/imua-xyz/imuachain/x/imslash"

avsManagerKeeper "github.com/imua-xyz/imuachain/x/avs/keeper"
avsManagerTypes "github.com/imua-xyz/imuachain/x/avs/types"
slashKeeper "github.com/imua-xyz/imuachain/x/slash/keeper"
imslashtypes "github.com/imua-xyz/imuachain/x/slash/types"
slashKeeper "github.com/imua-xyz/imuachain/x/imslash/keeper"
imslashtypes "github.com/imua-xyz/imuachain/x/imslash/types"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
Expand Down
2 changes: 1 addition & 1 deletion client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
}
},
{
"url": "./tmp-swagger-gen/imuachain/slash/v1/query.swagger.json",
"url": "./tmp-swagger-gen/imuachain/imslash/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ImSlashParams"
Expand Down
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions client/docs/swagger-ui/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18310,7 +18310,7 @@
]
}
},
"/imuachain/slash/v1/params": {
"/imuachain/imslash/v1/params": {
"get": {
"summary": "Parameters queries the parameters of the module.",
"operationId": "ImSlashParams",
Expand Down Expand Up @@ -41236,11 +41236,11 @@
},
"description": "StakingAssetInfo defines the information for an asset to be used in staking."
},
"imuachain.slash.v1.Params": {
"imuachain.imslash.v1.Params": {
"type": "object",
"description": "Params defines the parameters for the module."
},
"imuachain.slash.v1.QueryParamsResponse": {
"imuachain.imslash.v1.QueryParamsResponse": {
"type": "object",
"properties": {
"params": {
Expand Down
2 changes: 1 addition & 1 deletion precompiles/slash/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
sdkmath "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
cmn "github.com/evmos/evmos/v16/precompiles/common"
"github.com/imua-xyz/imuachain/x/slash/keeper"
"github.com/imua-xyz/imuachain/x/imslash/keeper"
)

func (p Precompile) GetSlashParamsFromInputs(ctx sdk.Context, args []interface{}) (*keeper.SlashParams, error) {
Expand Down
2 changes: 1 addition & 1 deletion precompiles/slash/slash.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
cmn "github.com/evmos/evmos/v16/precompiles/common"
assetskeeper "github.com/imua-xyz/imuachain/x/assets/keeper"
slashKeeper "github.com/imua-xyz/imuachain/x/slash/keeper"
slashKeeper "github.com/imua-xyz/imuachain/x/imslash/keeper"
)

var _ vm.PrecompiledContract = &Precompile{}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";
package imuachain.slash.v1;
package imuachain.imslash.v1;

import "gogoproto/gogo.proto";
import "imuachain/slash/v1/params.proto";
import "imuachain/imslash/v1/params.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/imua-xyz/imuachain/x/slash/types";
option go_package = "github.com/imua-xyz/imuachain/x/imslash/types";

// GenesisState defines the imuaslash module's genesis state.
message GenesisState {
Expand Down
7 changes: 7 additions & 0 deletions proto/imuachain/imslash/v1/params.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";
package imuachain.imslash.v1;

option go_package = "github.com/imua-xyz/imuachain/x/imslash/types";

// Params defines the parameters for the module.
message Params {}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
syntax = "proto3";
package imuachain.slash.v1;
package imuachain.imslash.v1;

import "google/api/annotations.proto";
import "imuachain/slash/v1/params.proto";
import "imuachain/imslash/v1/params.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/imua-xyz/imuachain/x/slash/types";
option go_package = "github.com/imua-xyz/imuachain/x/imslash/types";

// Query defines the gRPC querier service.
service Query {
// Parameters queries the parameters of the module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/imuachain/slash/v1/params";
option (google.api.http).get = "/imuachain/imslash/v1/params";
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax = "proto3";
package imuachain.slash.v1;
package imuachain.imslash.v1;

import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "imuachain/slash/v1/params.proto";
import "imuachain/imslash/v1/params.proto";

option go_package = "github.com/imua-xyz/imuachain/x/slash/types";
option go_package = "github.com/imua-xyz/imuachain/x/imslash/types";

// Msg defines the Msg service.
service Msg {
Expand Down
7 changes: 0 additions & 7 deletions proto/imuachain/slash/v1/params.proto

This file was deleted.

2 changes: 1 addition & 1 deletion x/evm/keeper/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
assetskeeper "github.com/imua-xyz/imuachain/x/assets/keeper"
avskeeper "github.com/imua-xyz/imuachain/x/avs/keeper"
delegationkeeper "github.com/imua-xyz/imuachain/x/delegation/keeper"
imuaslashkeeper "github.com/imua-xyz/imuachain/x/imslash/keeper"
rewardkeeper "github.com/imua-xyz/imuachain/x/reward/keeper"
imuaslashkeeper "github.com/imua-xyz/imuachain/x/slash/keeper"
"golang.org/x/exp/maps"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/cosmos/cosmos-sdk/client"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
"github.com/spf13/cobra"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion x/slash/client/cli/tx.go → x/imslash/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
)

// GetTxCmd returns the transaction commands for this module
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion x/slash/keeper/keeper.go → x/imslash/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/imua-xyz/imuachain/x/assets/keeper"

"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
)

type Keeper struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/imua-xyz/imuachain/utils"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
)

func (k Keeper) UpdateParams(ctx context.Context, params *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/slash/keeper/params.go → x/imslash/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
)

// SetParams The function related to module parameter should be deleted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper_test

import (
slashtype "github.com/imua-xyz/imuachain/x/slash/types"
slashtype "github.com/imua-xyz/imuachain/x/imslash/types"
)

func (suite *SlashTestSuite) TestParams() {
Expand Down
2 changes: 1 addition & 1 deletion x/slash/keeper/query.go → x/imslash/keeper/query.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
)

var _ types.QueryServer = Keeper{}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
)

func (k Keeper) SetFrozenStatus(ctx sdk.Context, operatorAddr string, status bool) (err error) {
Expand Down
6 changes: 3 additions & 3 deletions x/slash/module.go → x/imslash/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/imua-xyz/imuachain/x/slash/client/cli"
"github.com/imua-xyz/imuachain/x/slash/keeper"
"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/client/cli"
"github.com/imua-xyz/imuachain/x/imslash/keeper"
"github.com/imua-xyz/imuachain/x/imslash/types"
"github.com/spf13/cobra"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 21 additions & 19 deletions x/slash/types/genesis.pb.go → x/imslash/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types_test
import (
"testing"

"github.com/imua-xyz/imuachain/x/slash/types"
"github.com/imua-xyz/imuachain/x/imslash/types"
"github.com/stretchr/testify/require"
)

Expand Down
5 changes: 1 addition & 4 deletions x/slash/types/keys.go → x/imslash/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ const (
// ModuleName defines the module name
// TODO: if the upgrade module is used, this should be changed to "imslash" through that.
// If it is not used, change it right now. CC @TimmyExogenous.
ModuleName = "exoslash"
ModuleName = "imslash"

// StoreKey defines the primary module store key
StoreKey = ModuleName

// RouterKey defines the module's message routing key
RouterKey = ModuleName

// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_exoslash"
)

func KeyPrefix(p string) []byte {
Expand Down
File renamed without changes.
File renamed without changes.
30 changes: 15 additions & 15 deletions x/slash/types/params.pb.go → x/imslash/types/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9ba9677

Please sign in to comment.