Skip to content

Commit

Permalink
refactor: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed May 22, 2024
1 parent 9001ade commit a7731b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
8 changes: 0 additions & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ func NewNibiruApp(
app.SetProcessProposal(handler.ProcessProposalHandler())
})

baseAppOptions = append(baseAppOptions, func(app *baseapp.BaseApp) {
mp := mempool.NoOpMempool{}
app.SetMempool(mp)
handler := baseapp.NewDefaultProposalHandler(mp, app)
app.SetPrepareProposal(handler.PrepareProposalHandler())
app.SetProcessProposal(handler.ProcessProposalHandler())
})

bApp := baseapp.NewBaseApp(
appName, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
bApp.SetCommitMultiStoreTracer(traceStore)
Expand Down
12 changes: 0 additions & 12 deletions app/appconst/appconst.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ var (
GoArch = ""
)

// EVM Chain ID Map
var EVMChainIDs = map[string]*big.Int{
"cataclysm-1": big.NewInt(100),
"nibiru-localnet-0": big.NewInt(1000),
"nibiru-devnet-1": big.NewInt(2000),
"nibiru-devnet-2": big.NewInt(3000),
"nibiru-testnet-1": big.NewInt(3000),
"nibiru-testnet-2": big.NewInt(4000),
// other test chains will default to 10000
}
var DefaultEVMChainID = big.NewInt(10000)

func init() {
if len(AppVersion) == 0 {
AppVersion = "dev"
Expand Down
13 changes: 5 additions & 8 deletions x/evm/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ import (
"errors"
"fmt"
"math/big"

"time"

"github.com/ethereum/go-ethereum/common/hexutil"

"github.com/NibiruChain/nibiru/eth"
"github.com/NibiruChain/nibiru/x/evm/statedb"

grpccodes "google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"

Expand All @@ -23,16 +17,19 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/NibiruChain/nibiru/eth"
"github.com/NibiruChain/nibiru/x/evm"
"github.com/NibiruChain/nibiru/x/evm/statedb"

gethcommon "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"
gethcore "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/eth/tracers"
"github.com/ethereum/go-ethereum/eth/tracers/logger"
gethparams "github.com/ethereum/go-ethereum/params"

"github.com/NibiruChain/nibiru/x/evm"

cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
)

Expand Down

0 comments on commit a7731b7

Please sign in to comment.