changed package name from tharsis/ethermint to cerc-io/laconicd

This commit is contained in:
SpideyPool192
2022-09-07 12:06:11 +05:30
parent 680d585084
commit a57e5f4fd9
214 changed files with 523 additions and 518 deletions
+1 -1
View File
@@ -1,9 +1,9 @@
package auction
import (
"github.com/cerc-io/laconicd/x/auction/keeper"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/auction/keeper"
)
// EndBlocker is called every block, returns updated validator set.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/types"
)
func GetQueryCmd() *cobra.Command {
+2 -2
View File
@@ -14,9 +14,9 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/types"
wnsUtils "github.com/tharsis/ethermint/utils"
wnsUtils "github.com/cerc-io/laconicd/utils"
)
// GetTxCmd returns transaction commands for this module.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/testutil/network"
"github.com/cerc-io/laconicd/testutil/network"
)
func TestIntegrationTestSuite(t *testing.T) {
+2 -2
View File
@@ -3,14 +3,14 @@ package testutil
import (
"fmt"
"github.com/cerc-io/laconicd/crypto/hd"
"github.com/cerc-io/laconicd/testutil/network"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil"
"github.com/stretchr/testify/suite"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tharsis/ethermint/crypto/hd"
"github.com/tharsis/ethermint/testutil/network"
)
type IntegrationTestSuite struct {
+1 -1
View File
@@ -3,8 +3,8 @@ package testutil
import (
"fmt"
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
"github.com/cosmos/cosmos-sdk/testutil/rest"
auctiontypes "github.com/tharsis/ethermint/x/auction/types"
)
const (
+2 -2
View File
@@ -3,10 +3,10 @@ package testutil
import (
"fmt"
"github.com/cerc-io/laconicd/x/auction/client/cli"
"github.com/cerc-io/laconicd/x/auction/types"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tharsis/ethermint/x/auction/client/cli"
"github.com/tharsis/ethermint/x/auction/types"
)
var queryJSONFlag = []string{fmt.Sprintf("--%s=json", tmcli.OutputFlag)}
+2 -2
View File
@@ -3,13 +3,13 @@ package testutil
import (
"fmt"
"github.com/cerc-io/laconicd/x/auction/client/cli"
"github.com/cerc-io/laconicd/x/auction/types"
"github.com/cosmos/cosmos-sdk/client/flags"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tharsis/ethermint/x/auction/client/cli"
"github.com/tharsis/ethermint/x/auction/types"
)
const (
+2 -2
View File
@@ -5,8 +5,8 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/auction/keeper"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/keeper"
"github.com/cerc-io/laconicd/x/auction/types"
)
// func NewGenesisState(params types.Params, auctions []types.Auction) types.GenesisState {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/types"
)
type Querier struct {
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"fmt"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/x/auction/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank/testutil"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/x/auction/types"
)
const testCommitHash = "71D8CF34026E32A3A34C2C2D4ADF25ABC8D7943A4619761BE27F196603D91B9D"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/types"
)
// RegisterInvariants registers all auction module invariants.
+2 -2
View File
@@ -6,6 +6,7 @@ import (
"fmt"
"time"
"github.com/cerc-io/laconicd/x/auction/types"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
@@ -13,9 +14,8 @@ import (
auth "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bank "github.com/cosmos/cosmos-sdk/x/bank/keeper"
params "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/tharsis/ethermint/x/auction/types"
wnsUtils "github.com/tharsis/ethermint/utils"
wnsUtils "github.com/cerc-io/laconicd/utils"
)
// CompletedAuctionDeleteTimeout => Completed auctions are deleted after this timeout (after reveals end time).
+3 -3
View File
@@ -3,15 +3,15 @@ package keeper_test
import (
"testing"
"github.com/cerc-io/laconicd/app"
auctionkeeper "github.com/cerc-io/laconicd/x/auction/keeper"
"github.com/cerc-io/laconicd/x/auction/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/simapp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tharsis/ethermint/app"
auctionkeeper "github.com/tharsis/ethermint/x/auction/keeper"
"github.com/tharsis/ethermint/x/auction/types"
)
type KeeperTestSuite struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/types"
)
type msgServer struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/types"
)
// GetParams - Get all parameteras as types.Params.
+3 -3
View File
@@ -17,9 +17,9 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/auction/client/cli"
"github.com/tharsis/ethermint/x/auction/keeper"
"github.com/tharsis/ethermint/x/auction/types"
"github.com/cerc-io/laconicd/x/auction/client/cli"
"github.com/cerc-io/laconicd/x/auction/keeper"
"github.com/cerc-io/laconicd/x/auction/types"
)
// type check to ensure the interface is properly implemented
+1 -1
View File
@@ -1,9 +1,9 @@
package bond
import (
"github.com/cerc-io/laconicd/x/bond/keeper"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/bond/keeper"
)
// BeginBlocker will persist the current header and validator set as a historical entry
+1 -1
View File
@@ -4,11 +4,11 @@ import (
"fmt"
"strings"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/version"
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/x/bond/types"
)
// GetQueryCmd returns the cli query commands for this module
+2 -2
View File
@@ -1,12 +1,12 @@
package cli
import (
"github.com/cerc-io/laconicd/server/flags"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/server/flags"
"github.com/tharsis/ethermint/x/bond/types"
)
// NewTxCmd returns a root CLI command handler for all x/bond transaction commands.
+1 -1
View File
@@ -3,8 +3,8 @@ package testutil
import (
"testing"
"github.com/cerc-io/laconicd/testutil/network"
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/testutil/network"
)
func TestIntegrationTestSuite(t *testing.T) {
+2 -2
View File
@@ -3,11 +3,11 @@ package testutil
import (
"fmt"
"github.com/cerc-io/laconicd/x/bond/client/cli"
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
"github.com/cosmos/cosmos-sdk/testutil/rest"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tharsis/ethermint/x/bond/client/cli"
bondtypes "github.com/tharsis/ethermint/x/bond/types"
)
func (s *IntegrationTestSuite) TestGRPCGetBonds() {
+3 -3
View File
@@ -3,6 +3,9 @@ package testutil
import (
"fmt"
"github.com/cerc-io/laconicd/testutil/network"
"github.com/cerc-io/laconicd/x/bond/client/cli"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
@@ -12,9 +15,6 @@ import (
banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil"
"github.com/stretchr/testify/suite"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tharsis/ethermint/testutil/network"
"github.com/tharsis/ethermint/x/bond/client/cli"
"github.com/tharsis/ethermint/x/bond/types"
)
type IntegrationTestSuite struct {
+2 -2
View File
@@ -3,12 +3,12 @@ package testutil
import (
"fmt"
"github.com/cerc-io/laconicd/x/bond/client/cli"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/client/flags"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
sdk "github.com/cosmos/cosmos-sdk/types"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tharsis/ethermint/x/bond/client/cli"
"github.com/tharsis/ethermint/x/bond/types"
)
func (s *IntegrationTestSuite) TestTxCreateBond() {
+2 -2
View File
@@ -1,10 +1,10 @@
package bond
import (
"github.com/cerc-io/laconicd/x/bond/keeper"
"github.com/cerc-io/laconicd/x/bond/types"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/bond/keeper"
"github.com/tharsis/ethermint/x/bond/types"
)
// InitGenesis initializes genesis state based on exported genesis
+1 -1
View File
@@ -3,9 +3,9 @@ package keeper
import (
"context"
"github.com/cerc-io/laconicd/x/bond/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tharsis/ethermint/x/bond/types"
)
type Querier struct {
+2 -2
View File
@@ -4,10 +4,10 @@ import (
"context"
"fmt"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/x/bond/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/bank/testutil"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/x/bond/types"
)
func (suite *KeeperTestSuite) TestGrpcQueryBondsList() {
+2 -1
View File
@@ -2,8 +2,9 @@ package keeper
import (
"fmt"
"github.com/cerc-io/laconicd/x/bond/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/bond/types"
)
// RegisterInvariants registers all bond invariants
+1 -1
View File
@@ -5,6 +5,7 @@ import (
"encoding/hex"
"fmt"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
@@ -12,7 +13,6 @@ import (
auth "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bank "github.com/cosmos/cosmos-sdk/x/bank/keeper"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/tharsis/ethermint/x/bond/types"
)
// prefixIDToBondIndex is the prefix for ID -> Bond index in the KVStore.
+3 -3
View File
@@ -3,15 +3,15 @@ package keeper_test
import (
"testing"
"github.com/cerc-io/laconicd/app"
bondkeeper "github.com/cerc-io/laconicd/x/bond/keeper"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/simapp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/tharsis/ethermint/app"
bondkeeper "github.com/tharsis/ethermint/x/bond/keeper"
"github.com/tharsis/ethermint/x/bond/types"
)
type KeeperTestSuite struct {
+2 -1
View File
@@ -2,8 +2,9 @@ package keeper
import (
"context"
"github.com/cerc-io/laconicd/x/bond/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/bond/types"
)
type msgServer struct {
+1 -1
View File
@@ -1,8 +1,8 @@
package keeper
import (
"github.com/cerc-io/laconicd/x/bond/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/bond/types"
)
// GetMaxBondAmount max bond amount
+4 -3
View File
@@ -4,6 +4,10 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/cerc-io/laconicd/x/bond/client/cli"
"github.com/cerc-io/laconicd/x/bond/keeper"
"github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
@@ -13,9 +17,6 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/bond/client/cli"
"github.com/tharsis/ethermint/x/bond/keeper"
"github.com/tharsis/ethermint/x/bond/types"
)
var (
+2 -2
View File
@@ -3,11 +3,11 @@ package bond_test
import (
"testing"
app "github.com/cerc-io/laconicd/app"
bondtypes "github.com/cerc-io/laconicd/x/bond/types"
"github.com/cosmos/cosmos-sdk/simapp"
"github.com/stretchr/testify/require"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
app "github.com/tharsis/ethermint/app"
bondtypes "github.com/tharsis/ethermint/x/bond/types"
)
func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
+29 -29
View File
@@ -10,23 +10,23 @@ The `x/evm` module is responsible for executing Ethereum Virtual Machine (EVM) s
import (
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/bank"
"github.com/tharsis/ethermint/app/ante"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm"
"github.com/cerc-io/laconicd/app/ante"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm"
)
```
2. Add `AppModuleBasic` to your `ModuleBasics`.
```go
var (
ModuleBasics = module.NewBasicManager(
// ...
evm.AppModuleBasic{},
)
)
```
```go
var (
ModuleBasics = module.NewBasicManager(
// ...
evm.AppModuleBasic{},
)
)
```
3. Create the module's parameter subspace in your application constructor.
@@ -74,27 +74,27 @@ The `x/evm` module is responsible for executing Ethereum Virtual Machine (EVM) s
7. Set the `x/evm` module `BeginBlock` and `EndBlock` ordering:
```go
app.mm.SetOrderBeginBlockers(
evm.ModuleName, ...
)
app.mm.SetOrderEndBlockers(
evm.ModuleName, ...
)
```
```go
app.mm.SetOrderBeginBlockers(
evm.ModuleName, ...
)
app.mm.SetOrderEndBlockers(
evm.ModuleName, ...
)
```
8. Set the `x/evm` module genesis order. The module must go after the `auth` and `bank` modules.
```go
func NewApp(...) *App {
// ...
app.mm.SetOrderInitGenesis(auth.ModuleName, bank.ModuleName, ... , evm.ModuleName, ...)
}
```
```go
func NewApp(...) *App {
// ...
app.mm.SetOrderInitGenesis(auth.ModuleName, bank.ModuleName, ... , evm.ModuleName, ...)
}
```
9. Set the Ethermint `AnteHandler` to support EVM transactions. Note,
the default `AnteHandler` provided by the `x/evm` module depends on the `x/auth` and `x/supply`
modules.
the default `AnteHandler` provided by the `x/evm` module depends on the `x/auth` and `x/supply`
modules.
```go
func NewApp(...) *App {
@@ -178,4 +178,4 @@ See the Ethermint [JSON-RPC docs](https://evmos.dev/basics/json_rpc.html) for re
## Documentation and Specification
* Ethermint documentation: [https://evmos.dev](https://evmos.dev)
- Ethermint documentation: [https://evmos.dev](https://evmos.dev)
+4 -4
View File
@@ -1,6 +1,6 @@
[module]
description = "The evm module executes Ethereum Virtual Machine (EVM) state transitions."
homepage = "https://github.com/tharsis/ethermint"
homepage = "https://github.com/cerc-io/laconicd"
keywords = [
"evm",
"ethereum",
@@ -10,7 +10,7 @@ keywords = [
name = "x/evm"
[bug_tracker]
url = "https://github.com/tharsis/ethermint/issues"
url = "https://github.com/cerc-io/laconicd/issues"
[[authors]]
name = "fedekunze"
@@ -28,7 +28,7 @@ name = "noot"
name = "araskachoi"
[version]
documentation = "https://raw.githubusercontent.com/tharsis/ethermint/main/x/evm/atlas/atlas-v0.3.1.md"
repo = "https://github.com/tharsis/ethermint/releases/tag/v0.3.1"
documentation = "https://raw.githubusercontent.com/cerc-io/laconicd/main/x/evm/atlas/atlas-v0.3.1.md"
repo = "https://github.com/cerc-io/laconicd/releases/tag/v0.3.1"
sdk_compat = "v0.39.x"
version = "v0.3.1"
+2 -2
View File
@@ -1,13 +1,13 @@
package cli
import (
rpctypes "github.com/cerc-io/laconicd/rpc/ethereum/types"
"github.com/spf13/cobra"
rpctypes "github.com/tharsis/ethermint/rpc/ethereum/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
// GetQueryCmd returns the parent command for all x/bank CLi query commands.
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
rpctypes "github.com/tharsis/ethermint/rpc/ethereum/types"
"github.com/tharsis/ethermint/x/evm/types"
rpctypes "github.com/cerc-io/laconicd/rpc/ethereum/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
// GetTxCmd returns the transaction commands for this module
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"github.com/ethereum/go-ethereum/crypto"
abci "github.com/tendermint/tendermint/abci/types"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/keeper"
"github.com/tharsis/ethermint/x/evm/types"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/keeper"
"github.com/cerc-io/laconicd/x/evm/types"
)
// InitGenesis initializes genesis state based on exported genesis
+4 -4
View File
@@ -5,11 +5,11 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/x/evm"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/tharsis/ethermint/x/evm"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
)
func (suite *EvmTestSuite) TestInitGenesis() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
// NewHandler returns a handler for Ethermint type messages.
+8 -8
View File
@@ -8,10 +8,10 @@ import (
"github.com/gogo/protobuf/proto"
feemarkettypes "github.com/cerc-io/laconicd/x/feemarket/types"
"github.com/cosmos/cosmos-sdk/simapp"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/bank/testutil"
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/ethereum/go-ethereum/common"
@@ -25,13 +25,13 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/tharsis/ethermint/tests"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/tests"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
"github.com/tendermint/tendermint/crypto/tmhash"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
+2 -2
View File
@@ -10,10 +10,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/types"
ante "github.com/cosmos/cosmos-sdk/x/auth/ante"
ethtypes "github.com/ethereum/go-ethereum/core/types"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/types"
)
func SetupContract(b *testing.B) (*KeeperTestSuite, common.Address) {
+3 -3
View File
@@ -24,9 +24,9 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
ethparams "github.com/ethereum/go-ethereum/params"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
)
var _ types.QueryServer = Keeper{}
+5 -5
View File
@@ -6,18 +6,18 @@ import (
"math/big"
"cosmossdk.io/math"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/tharsis/ethermint/x/evm/statedb"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/tharsis/ethermint/server/config"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/server/config"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
// Not valid Ethereum address
+1 -1
View File
@@ -1,11 +1,11 @@
package keeper
import (
"github.com/cerc-io/laconicd/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/tharsis/ethermint/x/evm/types"
)
var _ types.EvmHooks = MultiEvmHooks{}
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/tharsis/ethermint/x/evm/keeper"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/keeper"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
)
// LogRecordHook records all the logs
+3 -3
View File
@@ -16,9 +16,9 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/tendermint/tendermint/libs/log"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
)
// Keeper grants access to the EVM module state and implements the go-ethereum StateDB interface.
+9 -9
View File
@@ -13,6 +13,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
feemarkettypes "github.com/cerc-io/laconicd/x/feemarket/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
@@ -22,16 +23,15 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/bank/testutil"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/tharsis/ethermint/encoding"
"github.com/tharsis/ethermint/server/config"
"github.com/tharsis/ethermint/tests"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/encoding"
"github.com/cerc-io/laconicd/server/config"
"github.com/cerc-io/laconicd/tests"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
var _ types.MsgServer = &Keeper{}
+1 -1
View File
@@ -3,7 +3,7 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
// GetParams returns the total set of evm parameters.
+1 -1
View File
@@ -1,7 +1,7 @@
package keeper_test
import (
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
func (suite *KeeperTestSuite) TestParams() {
+3 -3
View File
@@ -11,9 +11,9 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
@@ -5,6 +5,7 @@ import (
"math/big"
"testing"
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
@@ -12,7 +13,6 @@ import (
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/params"
"github.com/stretchr/testify/require"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
)
var templateAccessListTx = &ethtypes.AccessListTx{
+3 -3
View File
@@ -5,6 +5,9 @@ import (
"math"
"math/big"
"github.com/cerc-io/laconicd/tests"
"github.com/cerc-io/laconicd/x/evm/keeper"
"github.com/cerc-io/laconicd/x/evm/types"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
@@ -14,9 +17,6 @@ import (
"github.com/tendermint/tendermint/crypto/tmhash"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
tmtypes "github.com/tendermint/tendermint/types"
"github.com/tharsis/ethermint/tests"
"github.com/tharsis/ethermint/x/evm/keeper"
"github.com/tharsis/ethermint/x/evm/types"
)
func (suite *KeeperTestSuite) TestGetHashFn() {
+3 -3
View File
@@ -5,13 +5,13 @@ import (
"fmt"
"math/big"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/ethereum/go-ethereum/common"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
)
var _ statedb.Keeper = &Keeper{}
+1 -1
View File
@@ -10,7 +10,7 @@ import (
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/tharsis/ethermint/tests"
"github.com/cerc-io/laconicd/tests"
)
func BenchmarkCreateAccountNew(b *testing.B) {
+3 -3
View File
@@ -11,13 +11,13 @@ import (
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cerc-io/laconicd/tests"
"github.com/cerc-io/laconicd/x/evm/statedb"
"github.com/cerc-io/laconicd/x/evm/types"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/tharsis/ethermint/tests"
"github.com/tharsis/ethermint/x/evm/statedb"
"github.com/tharsis/ethermint/x/evm/types"
)
func (suite *KeeperTestSuite) TestCreateAccount() {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
ante "github.com/cosmos/cosmos-sdk/x/auth/ante"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
"github.com/ethereum/go-ethereum/core"
ethtypes "github.com/ethereum/go-ethereum/core/types"
+2 -2
View File
@@ -3,12 +3,12 @@ package keeper_test
import (
"math/big"
evmkeeper "github.com/cerc-io/laconicd/x/evm/keeper"
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
ethparams "github.com/ethereum/go-ethereum/params"
evmkeeper "github.com/tharsis/ethermint/x/evm/keeper"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
)
func (suite *KeeperTestSuite) TestCheckSenderBalance() {
+4 -4
View File
@@ -19,10 +19,10 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/tharsis/ethermint/x/evm/client/cli"
"github.com/tharsis/ethermint/x/evm/keeper"
"github.com/tharsis/ethermint/x/evm/simulation"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/client/cli"
"github.com/cerc-io/laconicd/x/evm/keeper"
"github.com/cerc-io/laconicd/x/evm/simulation"
"github.com/cerc-io/laconicd/x/evm/types"
)
var (
+1 -1
View File
@@ -4,9 +4,9 @@ import (
"bytes"
"fmt"
"github.com/cerc-io/laconicd/x/evm/types"
"github.com/cosmos/cosmos-sdk/types/kv"
"github.com/ethereum/go-ethereum/common"
"github.com/tharsis/ethermint/x/evm/types"
)
// NewDecodeStore returns a decoder function closure that unmarshals the KVPair's
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/x/evm/types"
)
// GenExtraEIPs randomly generates specific extra eips or not.
+5 -5
View File
@@ -28,11 +28,11 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/tharsis/ethermint/encoding"
"github.com/tharsis/ethermint/server/config"
"github.com/tharsis/ethermint/tests"
"github.com/tharsis/ethermint/x/evm/keeper"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/encoding"
"github.com/cerc-io/laconicd/server/config"
"github.com/cerc-io/laconicd/tests"
"github.com/cerc-io/laconicd/x/evm/keeper"
"github.com/cerc-io/laconicd/x/evm/types"
)
const (
+1 -1
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"math/rand"
"github.com/cerc-io/laconicd/x/evm/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/tharsis/ethermint/x/evm/types"
)
const (
+3 -3
View File
@@ -17,7 +17,7 @@ The growth of EVM-based chains (e.g. Ethereum), however, has uncovered several s
The `x/evm` module provides this EVM familiarity on a scalable, high-throughput Proof-of-Stake blockchain. It is built as a [Cosmos SDK module](https://docs.cosmos.network/master/building-modules/intro.html) which allows for the deployment of smart contracts, interaction with the EVM state machine (state transitions), and the use of EVM tooling. It can be used on Cosmos application-specific blockchains, which alleviate the aforementioned concerns through high transaction throughput via [Tendermint Core](https://github.com/tendermint/tendermint), fast transaction finality, and horizontal scalability via [IBC](https://ibcprotocol.org/).
The `x/evm` is part of the [ethermint library](https://pkg.go.dev/github.com/tharsis/ethermint). For an example of how Ethermint can be used on any Cosmos-SDK chain, please refer to [Evmos](https://www.github.com/tharsis/evmos).
The `x/evm` is part of the [ethermint library](https://pkg.go.dev/github.com/cerc-io/laconicd). For an example of how Ethermint can be used on any Cosmos-SDK chain, please refer to [Evmos](https://www.github.com/tharsis/evmos).
## Contents
@@ -34,8 +34,8 @@ The `x/evm` is part of the [ethermint library](https://pkg.go.dev/github.com/tha
## Module Architecture
> **NOTE:**: If you're not familiar with the overall module structure from
the SDK modules, please check this [document](https://docs.cosmos.network/master/building-modules/structure.html) as
prerequisite reading.
> the SDK modules, please check this [document](https://docs.cosmos.network/master/building-modules/structure.html) as
> prerequisite reading.
```shell
evm/
+1 -1
View File
@@ -5,10 +5,10 @@ import (
"errors"
"math/big"
"github.com/cerc-io/laconicd/x/evm/statedb"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/tharsis/ethermint/x/evm/statedb"
)
var (
+1 -1
View File
@@ -4,13 +4,13 @@ import (
"math/big"
"testing"
"github.com/cerc-io/laconicd/x/evm/statedb"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/x/evm/statedb"
)
var (
+1 -1
View File
@@ -3,11 +3,11 @@ package types
import (
"math/big"
"github.com/cerc-io/laconicd/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/tharsis/ethermint/types"
)
func newAccessListTx(tx *ethtypes.Transaction) (*AccessListTx, error) {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/ethereum/go-ethereum/common/math"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/tharsis/ethermint/types"
"github.com/cerc-io/laconicd/types"
)
func newDynamicFeeTx(tx *ethtypes.Transaction) (*DynamicFeeTx, error) {
+1 -1
View File
@@ -4,11 +4,11 @@ import (
"math/big"
"testing"
"github.com/cerc-io/laconicd/tests"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/tests"
)
type TxDataTestSuite struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package types
import (
"fmt"
ethermint "github.com/tharsis/ethermint/types"
ethermint "github.com/cerc-io/laconicd/types"
)
// Validate performs a basic validation of a GenesisAccount fields.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
)
type GenesisTestSuite struct {
+1 -1
View File
@@ -8,8 +8,8 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/ethereum/go-ethereum/common"
feemarkettypes "github.com/cerc-io/laconicd/x/feemarket/types"
ethtypes "github.com/ethereum/go-ethereum/core/types"
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
)
// AccountKeeper defines the expected account keeper interface
+1 -1
View File
@@ -3,10 +3,10 @@ package types
import (
"math/big"
"github.com/cerc-io/laconicd/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/tharsis/ethermint/types"
)
func newLegacyTx(tx *ethtypes.Transaction) (*LegacyTx, error) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
ethermint "github.com/tharsis/ethermint/types"
ethermint "github.com/cerc-io/laconicd/types"
)
// NewTransactionLogs creates a new NewTransactionLogs instance.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/tharsis/ethermint/tests"
"github.com/cerc-io/laconicd/tests"
"github.com/ethereum/go-ethereum/common"
)
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/signing"
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
"github.com/tharsis/ethermint/types"
"github.com/cerc-io/laconicd/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
+5 -5
View File
@@ -8,19 +8,19 @@ import (
"github.com/stretchr/testify/suite"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/tests"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/tharsis/ethermint/tests"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/encoding"
"github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/encoding"
"github.com/cerc-io/laconicd/x/evm/types"
)
const invalidFromAddress = "0x0000"
+1 -1
View File
@@ -6,10 +6,10 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/cerc-io/laconicd/types"
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/tharsis/ethermint/types"
)
var _ paramtypes.ParamSet = &Params{}
+3 -3
View File
@@ -13,9 +13,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/encoding"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/encoding"
evmtypes "github.com/cerc-io/laconicd/x/evm/types"
"github.com/ethereum/go-ethereum/common"
)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/x/feemarket/types"
)
// GetQueryCmd returns the parent command for all x/feemarket CLI query commands.
+2 -2
View File
@@ -4,8 +4,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/feemarket/keeper"
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/x/feemarket/keeper"
"github.com/cerc-io/laconicd/x/feemarket/types"
)
// InitGenesis initializes genesis state based on exported genesis
+1 -1
View File
@@ -3,8 +3,8 @@ package keeper
import (
"fmt"
"github.com/cerc-io/laconicd/x/feemarket/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/feemarket/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/x/feemarket/types"
)
var _ types.QueryServer = Keeper{}
+1 -1
View File
@@ -1,9 +1,9 @@
package keeper_test
import (
"github.com/cerc-io/laconicd/x/feemarket/types"
sdk "github.com/cosmos/cosmos-sdk/types"
ethparams "github.com/ethereum/go-ethereum/params"
"github.com/tharsis/ethermint/x/feemarket/types"
)
func (suite *KeeperTestSuite) TestQueryParams() {
+1 -1
View File
@@ -6,8 +6,8 @@ import (
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/tendermint/tendermint/libs/log"
"github.com/cerc-io/laconicd/x/feemarket/types"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/tharsis/ethermint/x/feemarket/types"
)
// Keeper grants access to the Fee Market module state.
+6 -6
View File
@@ -9,18 +9,18 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/cerc-io/laconicd/app"
"github.com/cerc-io/laconicd/crypto/ethsecp256k1"
"github.com/cerc-io/laconicd/encoding"
"github.com/cerc-io/laconicd/tests"
ethermint "github.com/cerc-io/laconicd/types"
"github.com/cerc-io/laconicd/x/feemarket/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/tharsis/ethermint/app"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
"github.com/tharsis/ethermint/encoding"
"github.com/tharsis/ethermint/tests"
ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
+1 -1
View File
@@ -3,7 +3,7 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
v010 "github.com/tharsis/ethermint/x/feemarket/migrations/v010"
v010 "github.com/cerc-io/laconicd/x/feemarket/migrations/v010"
)
// Migrator is a struct for handling in-place store migrations.
+2 -2
View File
@@ -3,8 +3,8 @@ package keeper_test
import (
"math/big"
"github.com/tharsis/ethermint/x/feemarket/keeper"
v010 "github.com/tharsis/ethermint/x/feemarket/migrations/v010"
"github.com/cerc-io/laconicd/x/feemarket/keeper"
v010 "github.com/cerc-io/laconicd/x/feemarket/migrations/v010"
)
func (suite *KeeperTestSuite) TestMigration1To2() {
+1 -1
View File
@@ -3,8 +3,8 @@ package keeper
import (
"math/big"
"github.com/cerc-io/laconicd/x/feemarket/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tharsis/ethermint/x/feemarket/types"
)
// GetParams returns the total set of fee market parameters.
+1 -1
View File
@@ -1,7 +1,7 @@
package keeper_test
import (
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/x/feemarket/types"
)
func (suite *KeeperTestSuite) TestSetGetParams() {
+2 -2
View File
@@ -5,10 +5,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
v09types "github.com/cerc-io/laconicd/x/feemarket/migrations/v09/types"
"github.com/cerc-io/laconicd/x/feemarket/types"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
v09types "github.com/tharsis/ethermint/x/feemarket/migrations/v09/types"
"github.com/tharsis/ethermint/x/feemarket/types"
)
// KeyPrefixBaseFeeV1 is the base fee key prefix used in version 1
+6 -6
View File
@@ -9,13 +9,13 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/tharsis/ethermint/encoding"
"github.com/cerc-io/laconicd/encoding"
"github.com/tharsis/ethermint/app"
feemarketkeeper "github.com/tharsis/ethermint/x/feemarket/keeper"
v010 "github.com/tharsis/ethermint/x/feemarket/migrations/v010"
"github.com/tharsis/ethermint/x/feemarket/types"
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/app"
feemarketkeeper "github.com/cerc-io/laconicd/x/feemarket/keeper"
v010 "github.com/cerc-io/laconicd/x/feemarket/migrations/v010"
"github.com/cerc-io/laconicd/x/feemarket/types"
feemarkettypes "github.com/cerc-io/laconicd/x/feemarket/types"
)
func TestMigrateStore(t *testing.T) {
+4 -4
View File
@@ -19,10 +19,10 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/tharsis/ethermint/x/feemarket/client/cli"
"github.com/tharsis/ethermint/x/feemarket/keeper"
"github.com/tharsis/ethermint/x/feemarket/simulation"
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/x/feemarket/client/cli"
"github.com/cerc-io/laconicd/x/feemarket/keeper"
"github.com/cerc-io/laconicd/x/feemarket/simulation"
"github.com/cerc-io/laconicd/x/feemarket/types"
)
var (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/tharsis/ethermint/x/feemarket/types"
"github.com/cerc-io/laconicd/x/feemarket/types"
)
// RandomizedGenState generates a random GenesisState for nft
+1 -1
View File
@@ -1,9 +1,9 @@
package nameservice
import (
"github.com/cerc-io/laconicd/x/nameservice/keeper"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tharsis/ethermint/x/nameservice/keeper"
)
// BeginBlocker will persist the current header and validator set as a historical entry
+1 -1
View File
@@ -5,11 +5,11 @@ import (
"fmt"
"strings"
"github.com/cerc-io/laconicd/x/nameservice/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/version"
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/x/nameservice/types"
)
// GetQueryCmd returns the cli query commands for this module
+2 -2
View File
@@ -5,13 +5,13 @@ import (
"io/ioutil"
"strings"
"github.com/cerc-io/laconicd/server/flags"
"github.com/cerc-io/laconicd/x/nameservice/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/version"
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/server/flags"
"github.com/tharsis/ethermint/x/nameservice/types"
"gopkg.in/yaml.v3"
)
+1 -1
View File
@@ -3,8 +3,8 @@ package testutil
import (
"testing"
"github.com/cerc-io/laconicd/testutil/network"
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/testutil/network"
)
func TestIntegrationTestSuite(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show More