forked from cerc-io/laconicd-deprecated
all: rename go module to evmos/ethermint (#1137)
This commit is contained in:
+10
-10
@@ -10,16 +10,16 @@ import (
|
||||
|
||||
"github.com/ethereum/go-ethereum/rpc"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/backend"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/debug"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/eth"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/eth/filters"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/miner"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/net"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/personal"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/txpool"
|
||||
"github.com/tharsis/ethermint/rpc/namespaces/ethereum/web3"
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/rpc/backend"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/debug"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/eth"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/eth/filters"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/miner"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/net"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/personal"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/txpool"
|
||||
"github.com/evmos/ethermint/rpc/namespaces/ethereum/web3"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
|
||||
rpcclient "github.com/tendermint/tendermint/rpc/jsonrpc/client"
|
||||
)
|
||||
|
||||
@@ -13,12 +13,12 @@ import (
|
||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
"github.com/ethereum/go-ethereum/rpc"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/server/config"
|
||||
ethermint "github.com/evmos/ethermint/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
tmrpctypes "github.com/tendermint/tendermint/rpc/core/types"
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/tharsis/ethermint/server/config"
|
||||
ethermint "github.com/tharsis/ethermint/types"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
// BackendI implements the Cosmos and EVM backend.
|
||||
|
||||
@@ -26,10 +26,10 @@ import (
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
ethermint "github.com/tharsis/ethermint/types"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
ethermint "github.com/evmos/ethermint/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"
|
||||
)
|
||||
|
||||
var bAttributeKeyEthereumBloom = []byte(evmtypes.AttributeKeyEthereumBloom)
|
||||
|
||||
@@ -20,8 +20,8 @@ import (
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
tmrpctypes "github.com/tendermint/tendermint/rpc/core/types"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
// ExceedBlockGasLimitError defines the error message when tx execution exceeds the block gas limit.
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
tmrpctypes "github.com/tendermint/tendermint/rpc/core/types"
|
||||
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
stderrors "github.com/pkg/errors"
|
||||
@@ -27,9 +27,9 @@ import (
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
"github.com/ethereum/go-ethereum/consensus/ethash"
|
||||
"github.com/ethereum/go-ethereum/rlp"
|
||||
"github.com/evmos/ethermint/rpc/backend"
|
||||
rpctypes "github.com/evmos/ethermint/rpc/types"
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
"github.com/tharsis/ethermint/rpc/backend"
|
||||
rpctypes "github.com/tharsis/ethermint/rpc/types"
|
||||
)
|
||||
|
||||
// HandlerT keeps track of the cpu profiler and trace execution
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"math"
|
||||
"math/big"
|
||||
|
||||
"github.com/tharsis/ethermint/ethereum/eip712"
|
||||
"github.com/evmos/ethermint/ethereum/eip712"
|
||||
|
||||
"github.com/ethereum/go-ethereum/signer/core/apitypes"
|
||||
|
||||
@@ -35,11 +35,11 @@ import (
|
||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
|
||||
"github.com/tharsis/ethermint/crypto/hd"
|
||||
"github.com/tharsis/ethermint/rpc/backend"
|
||||
rpctypes "github.com/tharsis/ethermint/rpc/types"
|
||||
ethermint "github.com/tharsis/ethermint/types"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
"github.com/evmos/ethermint/crypto/hd"
|
||||
"github.com/evmos/ethermint/rpc/backend"
|
||||
rpctypes "github.com/evmos/ethermint/rpc/types"
|
||||
ethermint "github.com/evmos/ethermint/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
// PublicAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec.
|
||||
@@ -625,7 +625,7 @@ func (e *PublicAPI) Resend(ctx context.Context, args evmtypes.TransactionArgs, g
|
||||
}
|
||||
|
||||
for _, tx := range pending {
|
||||
// FIXME does Resend api possible at all? https://github.com/tharsis/ethermint/issues/905
|
||||
// FIXME does Resend api possible at all? https://github.com/evmos/ethermint/issues/905
|
||||
p, err := evmtypes.UnwrapEthereumMsg(tx, common.Hash{})
|
||||
if err != nil {
|
||||
// not valid ethereum tx
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"github.com/ethereum/go-ethereum/eth/filters"
|
||||
"github.com/ethereum/go-ethereum/rpc"
|
||||
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
// Backend defines the methods requided by the PublicFilterAPI backend
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/ethereum/pubsub"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
"github.com/evmos/ethermint/rpc/ethereum/pubsub"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"encoding/binary"
|
||||
"math/big"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
tmtypes "github.com/tendermint/tendermint/types"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/backend"
|
||||
rpctypes "github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/tharsis/ethermint/server/config"
|
||||
"github.com/evmos/ethermint/rpc/backend"
|
||||
rpctypes "github.com/evmos/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/server/config"
|
||||
)
|
||||
|
||||
// API is the private miner prefixed set of APIs in the Miner JSON-RPC spec.
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
ethermint "github.com/evmos/ethermint/types"
|
||||
rpcclient "github.com/tendermint/tendermint/rpc/client"
|
||||
ethermint "github.com/tharsis/ethermint/types"
|
||||
)
|
||||
|
||||
// PublicAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec.
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/backend"
|
||||
"github.com/evmos/ethermint/rpc/backend"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
|
||||
"github.com/tharsis/ethermint/crypto/hd"
|
||||
ethermint "github.com/tharsis/ethermint/types"
|
||||
"github.com/evmos/ethermint/crypto/hd"
|
||||
ethermint "github.com/evmos/ethermint/types"
|
||||
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
|
||||
@@ -24,8 +24,8 @@ import (
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
|
||||
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
"github.com/evmos/ethermint/crypto/ethsecp256k1"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
// PrivateAccountAPI is the personal_ prefixed set of APIs in the Web3 JSON-RPC spec.
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
)
|
||||
|
||||
// PublicAPI offers and API for the transaction pool. It only operates on data that is non-confidential.
|
||||
// NOTE: For more info about the current status of this endpoints see https://github.com/tharsis/ethermint/issues/124
|
||||
// NOTE: For more info about the current status of this endpoints see https://github.com/evmos/ethermint/issues/124
|
||||
type PublicAPI struct {
|
||||
logger log.Logger
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package web3
|
||||
|
||||
import (
|
||||
"github.com/tharsis/ethermint/version"
|
||||
"github.com/evmos/ethermint/version"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
|
||||
|
||||
ethermint "github.com/tharsis/ethermint/types"
|
||||
ethermint "github.com/evmos/ethermint/types"
|
||||
)
|
||||
|
||||
// BlockNumber represents decoding hex string to block values
|
||||
|
||||
+1
-1
@@ -6,8 +6,8 @@ import (
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
ethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
abci "github.com/tendermint/tendermint/abci/types"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
// EventFormat is the format version of the events.
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
abci "github.com/tendermint/tendermint/abci/types"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
func TestParseTxResult(t *testing.T) {
|
||||
@@ -25,7 +25,8 @@ func TestParseTxResult(t *testing.T) {
|
||||
response abci.ResponseDeliverTx
|
||||
expTxs []*ParsedTx // expected parse result, nil means expect error.
|
||||
}{
|
||||
{"format 1 events",
|
||||
{
|
||||
"format 1 events",
|
||||
abci.ResponseDeliverTx{
|
||||
GasUsed: 21000,
|
||||
Events: []abci.Event{
|
||||
@@ -87,7 +88,8 @@ func TestParseTxResult(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{"format 2 events",
|
||||
{
|
||||
"format 2 events",
|
||||
abci.ResponseDeliverTx{
|
||||
GasUsed: 21000,
|
||||
Events: []abci.Event{
|
||||
@@ -133,7 +135,8 @@ func TestParseTxResult(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{"format 1 events, failed",
|
||||
{
|
||||
"format 1 events, failed",
|
||||
abci.ResponseDeliverTx{
|
||||
GasUsed: 21000,
|
||||
Events: []abci.Event{
|
||||
@@ -164,7 +167,8 @@ func TestParseTxResult(t *testing.T) {
|
||||
},
|
||||
nil,
|
||||
},
|
||||
{"format 1 events, failed",
|
||||
{
|
||||
"format 1 events, failed",
|
||||
abci.ResponseDeliverTx{
|
||||
GasUsed: 21000,
|
||||
Events: []abci.Event{
|
||||
@@ -195,7 +199,8 @@ func TestParseTxResult(t *testing.T) {
|
||||
},
|
||||
nil,
|
||||
},
|
||||
{"format 2 events failed",
|
||||
{
|
||||
"format 2 events failed",
|
||||
abci.ResponseDeliverTx{
|
||||
GasUsed: 21000,
|
||||
Events: []abci.Event{
|
||||
@@ -213,7 +218,8 @@ func TestParseTxResult(t *testing.T) {
|
||||
},
|
||||
nil,
|
||||
},
|
||||
{"format 2 events failed",
|
||||
{
|
||||
"format 2 events failed",
|
||||
abci.ResponseDeliverTx{
|
||||
GasUsed: 21000,
|
||||
Events: []abci.Event{
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"
|
||||
)
|
||||
|
||||
// QueryClient defines a gRPC Client used for:
|
||||
|
||||
+2
-2
@@ -12,8 +12,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
feemarkettypes "github.com/tharsis/ethermint/x/feemarket/types"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
|
||||
+5
-5
@@ -26,11 +26,11 @@ import (
|
||||
rpcclient "github.com/tendermint/tendermint/rpc/jsonrpc/client"
|
||||
tmtypes "github.com/tendermint/tendermint/types"
|
||||
|
||||
"github.com/tharsis/ethermint/rpc/ethereum/pubsub"
|
||||
rpcfilters "github.com/tharsis/ethermint/rpc/namespaces/ethereum/eth/filters"
|
||||
"github.com/tharsis/ethermint/rpc/types"
|
||||
"github.com/tharsis/ethermint/server/config"
|
||||
evmtypes "github.com/tharsis/ethermint/x/evm/types"
|
||||
"github.com/evmos/ethermint/rpc/ethereum/pubsub"
|
||||
rpcfilters "github.com/evmos/ethermint/rpc/namespaces/ethereum/eth/filters"
|
||||
"github.com/evmos/ethermint/rpc/types"
|
||||
"github.com/evmos/ethermint/server/config"
|
||||
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
||||
)
|
||||
|
||||
type WebsocketsServer interface {
|
||||
|
||||
Reference in New Issue
Block a user