Skip to content

Commit d6e4708

Browse files
committed
chore(types): move plugin/evm/types to plugin/evm/customtypes
See original PR ava-labs/coreth#890
1 parent fa576f0 commit d6e4708

24 files changed

+25
-25
lines changed

consensus/dummy/consensus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/ava-labs/subnet-evm/core/state"
1919
"github.com/ava-labs/subnet-evm/params"
2020
"github.com/ava-labs/subnet-evm/params/extras"
21-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
21+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
2222
"github.com/ava-labs/subnet-evm/plugin/evm/vmerrors"
2323
"github.com/ava-labs/subnet-evm/utils"
2424

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import (
5858
"github.com/ava-labs/subnet-evm/internal/version"
5959
"github.com/ava-labs/subnet-evm/params"
6060
"github.com/ava-labs/subnet-evm/plugin/evm/customrawdb"
61-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
61+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
6262
"github.com/ava-labs/subnet-evm/triedb/hashdb"
6363
"github.com/ava-labs/subnet-evm/triedb/pathdb"
6464

core/state_processor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ import (
4343
"github.com/ava-labs/subnet-evm/consensus/misc/eip4844"
4444
"github.com/ava-labs/subnet-evm/params"
4545
"github.com/ava-labs/subnet-evm/params/extras"
46+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
4647
customheader "github.com/ava-labs/subnet-evm/plugin/evm/header"
47-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
4848
"github.com/ava-labs/subnet-evm/plugin/evm/upgrade/legacy"
4949
"github.com/holiman/uint256"
5050
"golang.org/x/crypto/sha3"

eth/filters/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"github.com/ava-labs/libevm/common"
3636
"github.com/ava-labs/libevm/core/types"
3737
"github.com/ava-labs/subnet-evm/core/bloombits"
38-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
38+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
3939
"github.com/ava-labs/subnet-evm/rpc"
4040
)
4141

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import (
5353
"github.com/ava-labs/subnet-evm/core/state"
5454
"github.com/ava-labs/subnet-evm/eth/gasestimator"
5555
"github.com/ava-labs/subnet-evm/params"
56-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
56+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
5757
"github.com/ava-labs/subnet-evm/rpc"
5858
"github.com/davecgh/go-spew/spew"
5959
"github.com/holiman/uint256"

plugin/evm/block_verification.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"github.com/ava-labs/libevm/core/types"
1414
"github.com/ava-labs/libevm/trie"
1515
"github.com/ava-labs/subnet-evm/params"
16+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
1617
"github.com/ava-labs/subnet-evm/plugin/evm/header"
17-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
1818
"github.com/ava-labs/subnet-evm/plugin/evm/upgrade/legacy"
1919
)
2020

plugin/evm/types/block_ext.go renamed to plugin/evm/customtypes/block_ext.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// (c) 2024, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package types
4+
package customtypes
55

66
import (
77
"math/big"

plugin/evm/types/block_ext_test.go renamed to plugin/evm/customtypes/block_ext_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// (c) 2025, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package types
4+
package customtypes
55

66
import (
77
"math/big"

plugin/evm/types/block_test.go renamed to plugin/evm/customtypes/block_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// You should have received a copy of the GNU Lesser General Public License
2525
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
2626

27-
package types_test
27+
package customtypes_test
2828

2929
import (
3030
"bytes"
@@ -43,7 +43,7 @@ import (
4343
// This test file has to be in package types_test to avoid a circular
4444
// dependency when importing `params`. We dot-import the package to mimic
4545
// regular same-package behaviour.
46-
. "github.com/ava-labs/subnet-evm/plugin/evm/types"
46+
. "github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
4747
)
4848

4949
func TestBlockEncoding(t *testing.T) {

plugin/evm/types/gen_header_serializable_json.go renamed to plugin/evm/customtypes/gen_header_serializable_json.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/evm/types/gen_header_serializable_rlp.go renamed to plugin/evm/customtypes/gen_header_serializable_rlp.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/evm/types/hashing.go renamed to plugin/evm/customtypes/hashing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// You should have received a copy of the GNU Lesser General Public License
2525
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
2626

27-
package types
27+
package customtypes
2828

2929
import (
3030
"sync"

plugin/evm/types/hashing_test.go renamed to plugin/evm/customtypes/hashing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// You should have received a copy of the GNU Lesser General Public License
2525
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
2626

27-
package types_test
27+
package customtypes_test
2828

2929
import (
3030
"bytes"

plugin/evm/types/header_ext.go renamed to plugin/evm/customtypes/header_ext.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// (c) 2025, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package types
4+
package customtypes
55

66
import (
77
"io"

plugin/evm/types/header_ext_test.go renamed to plugin/evm/customtypes/header_ext_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// (c) 2025, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package types
4+
package customtypes
55

66
import (
77
"encoding/hex"

plugin/evm/types/libevm.go renamed to plugin/evm/customtypes/libevm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// (c) 2025, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package types
4+
package customtypes
55

66
import (
77
"io"

plugin/evm/types/log_ext.go renamed to plugin/evm/customtypes/log_ext.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// (c) 2025, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package types
4+
package customtypes
55

66
import ethtypes "github.com/ava-labs/libevm/core/types"
77

plugin/evm/types/rlp_fuzzer_test.go renamed to plugin/evm/customtypes/rlp_fuzzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17-
package types
17+
package customtypes
1818

1919
import (
2020
"bytes"

plugin/evm/types/types_test.go renamed to plugin/evm/customtypes/types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// You should have received a copy of the GNU Lesser General Public License
2525
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
2626

27-
package types
27+
package customtypes
2828

2929
import (
3030
"math/big"

plugin/evm/header/block_gas_cost.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/ava-labs/subnet-evm/commontype"
1313
"github.com/ava-labs/subnet-evm/params/extras"
1414
"github.com/ava-labs/subnet-evm/plugin/evm/blockgascost"
15-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
15+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
1616
)
1717

1818
var (

plugin/evm/header/block_gas_cost_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/ava-labs/libevm/core/types"
1111
"github.com/ava-labs/subnet-evm/commontype"
1212
"github.com/ava-labs/subnet-evm/params/extras"
13-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
13+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
1414
"github.com/ava-labs/subnet-evm/utils"
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/require"

plugin/evm/header/extra_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/ava-labs/libevm/core/types"
1111
"github.com/ava-labs/subnet-evm/params/extras"
12-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
12+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
1313
"github.com/ava-labs/subnet-evm/plugin/evm/upgrade/subnetevm"
1414
"github.com/ava-labs/subnet-evm/utils"
1515
"github.com/stretchr/testify/require"

plugin/evm/vm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ import (
4848
"github.com/ava-labs/subnet-evm/params"
4949
"github.com/ava-labs/subnet-evm/params/extras"
5050
"github.com/ava-labs/subnet-evm/plugin/evm/config"
51+
"github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
5152
"github.com/ava-labs/subnet-evm/plugin/evm/header"
52-
customtypes "github.com/ava-labs/subnet-evm/plugin/evm/types"
5353
"github.com/ava-labs/subnet-evm/plugin/evm/vmerrors"
5454
"github.com/ava-labs/subnet-evm/precompile/allowlist"
5555
"github.com/ava-labs/subnet-evm/precompile/contracts/deployerallowlist"

rpc/subscription_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
"github.com/ava-labs/libevm/core/types"
4343

4444
// Side effect: registration of libevm extras.
45-
_ "github.com/ava-labs/subnet-evm/plugin/evm/types"
45+
_ "github.com/ava-labs/subnet-evm/plugin/evm/customtypes"
4646
)
4747

4848
func TestNewID(t *testing.T) {

0 commit comments

Comments
 (0)