Skip to content

Commit

Permalink
Revert KIP-87:Ethereum RPC Abstraction
Browse files Browse the repository at this point in the history
Signed-off-by: mrlutik <[email protected]>
  • Loading branch information
MrLutik committed Dec 20, 2024
1 parent f5001d5 commit c31023c
Show file tree
Hide file tree
Showing 24 changed files with 2 additions and 3,108 deletions.
13 changes: 2 additions & 11 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ import (
"github.com/KiraCore/sekai/x/distributor"
distributorkeeper "github.com/KiraCore/sekai/x/distributor/keeper"
distributortypes "github.com/KiraCore/sekai/x/distributor/types"
"github.com/KiraCore/sekai/x/ethereum"
ethereumkeeper "github.com/KiraCore/sekai/x/ethereum/keeper"
ethereumtypes "github.com/KiraCore/sekai/x/ethereum/types"
"github.com/KiraCore/sekai/x/evidence"
evidencekeeper "github.com/KiraCore/sekai/x/evidence/keeper"
evidencetypes "github.com/KiraCore/sekai/x/evidence/types"
Expand Down Expand Up @@ -131,7 +128,6 @@ var (
collectives.AppModuleBasic{},
layer2.AppModuleBasic{},
consensus.AppModuleBasic{},
ethereum.AppModuleBasic{},
)

// module account permissions
Expand Down Expand Up @@ -188,7 +184,6 @@ type SekaiApp struct {
CollectivesKeeper collectiveskeeper.Keeper
Layer2Keeper layer2keeper.Keeper
ConsensusParamsKeeper consensusparamkeeper.Keeper
EthereumKeeper ethereumkeeper.Keeper

// Module Manager
mm *module.Manager
Expand Down Expand Up @@ -242,7 +237,6 @@ func NewInitApp(
collectivestypes.ModuleName,
layer2types.StoreKey,
consensusparamtypes.StoreKey,
ethereumtypes.StoreKey,
)
tKeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)

Expand Down Expand Up @@ -370,7 +364,6 @@ func NewInitApp(
app.DistrKeeper,
app.TokensKeeper,
)
app.EthereumKeeper = ethereumkeeper.NewKeeper(keys[ethereumtypes.StoreKey], appCodec, app.CustomGovKeeper, app.BankKeeper)

proposalRouter := govtypes.NewProposalRouter(
[]govtypes.ProposalHandler{
Expand Down Expand Up @@ -446,7 +439,6 @@ func NewInitApp(
collectives.NewAppModule(app.CollectivesKeeper),
layer2.NewAppModule(app.Layer2Keeper),
consensus.NewAppModule(appCodec, app.ConsensusParamsKeeper),
ethereum.NewAppModule(app.EthereumKeeper, app.CustomGovKeeper, app.BankKeeper),
)

// During begin block slashing happens after distr.BeginBlocker so that
Expand All @@ -459,7 +451,8 @@ func NewInitApp(
evidencetypes.ModuleName, stakingtypes.ModuleName,
spendingtypes.ModuleName, ubitypes.ModuleName,
distributortypes.ModuleName, multistakingtypes.ModuleName, custodytypes.ModuleName,
ethereumtypes.ModuleName,
baskettypes.ModuleName,
distributortypes.ModuleName, multistakingtypes.ModuleName, custodytypes.ModuleName,
baskettypes.ModuleName,
collectivestypes.ModuleName,
layer2types.ModuleName,
Expand All @@ -474,7 +467,6 @@ func NewInitApp(
feeprocessingtypes.ModuleName,
spendingtypes.ModuleName, ubitypes.ModuleName,
distributortypes.ModuleName, multistakingtypes.ModuleName, custodytypes.ModuleName,
ethereumtypes.ModuleName,
baskettypes.ModuleName,
collectivestypes.ModuleName,
layer2types.ModuleName,
Expand Down Expand Up @@ -503,7 +495,6 @@ func NewInitApp(
paramstypes.ModuleName,
distributortypes.ModuleName,
custodytypes.ModuleName,
ethereumtypes.ModuleName,
multistakingtypes.ModuleName,
baskettypes.ModuleName,
collectivestypes.ModuleName,
Expand Down
21 changes: 0 additions & 21 deletions proto/kira/ethereum/ethereum.proto

This file was deleted.

8 changes: 0 additions & 8 deletions proto/kira/ethereum/genesis.proto

This file was deleted.

26 changes: 0 additions & 26 deletions proto/kira/ethereum/query.proto

This file was deleted.

31 changes: 0 additions & 31 deletions proto/kira/ethereum/tx.proto

This file was deleted.

16 changes: 0 additions & 16 deletions x/ethereum/client/cli/query.go

This file was deleted.

50 changes: 0 additions & 50 deletions x/ethereum/client/cli/tx.go

This file was deleted.

27 changes: 0 additions & 27 deletions x/ethereum/handler.go

This file was deleted.

28 changes: 0 additions & 28 deletions x/ethereum/keeper/ethereum.go

This file was deleted.

25 changes: 0 additions & 25 deletions x/ethereum/keeper/grpc_query.go

This file was deleted.

37 changes: 0 additions & 37 deletions x/ethereum/keeper/keeper.go

This file was deleted.

Loading

0 comments on commit c31023c

Please sign in to comment.