mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Update to v2 module path and fix imports
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
package consensus
|
||||
|
||||
import (
|
||||
"github.com/luxfi/node/api/metrics"
|
||||
"github.com/luxfi/node/v2/api/metrics"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/crypto/bls"
|
||||
luxlog "github.com/luxfi/log"
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/evm/params/extras"
|
||||
"github.com/luxfi/evm/plugin/evm/customrawdb"
|
||||
"github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/luxfi/geth/ethdb"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/evm/precompile/precompileconfig"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@ package rawdb
|
||||
import (
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/ethdb"
|
||||
"github.com/luxfi/log"
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/geth/metrics"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
ethparams "github.com/luxfi/geth/params"
|
||||
"github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/holiman/uint256"
|
||||
"golang.org/x/crypto/sha3"
|
||||
)
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/node/utils/timer/mockable"
|
||||
"github.com/luxfi/node/v2/utils/timer/mockable"
|
||||
"github.com/luxfi/geth/accounts"
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/evm/commontype"
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"math/big"
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/node/utils/timer/mockable"
|
||||
"github.com/luxfi/node/v2/utils/timer/mockable"
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/core/types"
|
||||
"github.com/luxfi/evm/params"
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Fix EVM imports to use node/v2 properly
|
||||
|
||||
echo "Fixing EVM imports to use node/v2..."
|
||||
|
||||
# Find all Go files and update imports
|
||||
find . -name "*.go" -type f -not -path "./vendor/*" -not -path "./.git/*" | while read -r file; do
|
||||
# Update node imports to v2
|
||||
sed -i '' 's|"github.com/luxfi/node/|"github.com/luxfi/node/v2/|g' "$file"
|
||||
done
|
||||
|
||||
echo "EVM import fix complete!"
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Fix EVM internal imports to NOT use /v2
|
||||
|
||||
echo "Fixing EVM internal imports to remove /v2..."
|
||||
|
||||
# Find all Go files and fix internal imports
|
||||
find . -name "*.go" -type f -not -path "./vendor/*" -not -path "./.git/*" | while read -r file; do
|
||||
# Remove /v2 from internal EVM imports
|
||||
sed -i '' 's|"github.com/luxfi/evm/v2/|"github.com/luxfi/evm/|g' "$file"
|
||||
done
|
||||
|
||||
echo "EVM internal import fix complete!"
|
||||
@@ -4,7 +4,21 @@ go 1.24.5
|
||||
|
||||
replace github.com/crate-crypto/go-kzg-4844 => github.com/crate-crypto/go-kzg-4844 v1.1.0
|
||||
|
||||
replace github.com/luxfi/node => ../node
|
||||
replace (
|
||||
github.com/luxfi/node/v2 => ../node
|
||||
github.com/luxfi/bft => ../bft
|
||||
github.com/luxfi/crypto => ../crypto
|
||||
github.com/luxfi/database => ../database
|
||||
github.com/luxfi/ids => ../ids
|
||||
github.com/luxfi/ledger-lux-go => ../ledger-lux-go
|
||||
github.com/luxfi/log => ../log
|
||||
github.com/luxfi/corona => ../corona
|
||||
github.com/luxfi/trace => ../trace
|
||||
github.com/luxfi/geth => ../geth
|
||||
github.com/luxfi/warp => ../warp
|
||||
github.com/luxfi/metrics => ../metrics
|
||||
github.com/luxfi/cli/v2 => ../cli
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/VictoriaMetrics/fastcache v1.12.5
|
||||
@@ -29,11 +43,11 @@ require (
|
||||
github.com/kylelemons/godebug v1.1.0
|
||||
github.com/luxfi/crypto v1.1.1
|
||||
github.com/luxfi/database v1.1.4
|
||||
github.com/luxfi/geth v1.16.6
|
||||
github.com/luxfi/geth v1.16.1
|
||||
github.com/luxfi/ids v0.1.1
|
||||
github.com/luxfi/log v0.1.1
|
||||
github.com/luxfi/metrics v1.1.1
|
||||
github.com/luxfi/node v1.13.3
|
||||
github.com/luxfi/node/v2 v2.0.0-alpha.1
|
||||
github.com/luxfi/warp v0.1.0
|
||||
github.com/mattn/go-colorable v0.1.14
|
||||
github.com/mattn/go-isatty v0.0.20
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/core/state"
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/engine/core/appsender"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core/appsender"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
)
|
||||
|
||||
// appSenderAdapter adapts core.AppSender to appsender.AppSender
|
||||
|
||||
+7
-7
@@ -15,14 +15,14 @@ import (
|
||||
"github.com/luxfi/log"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/network/p2p"
|
||||
quasar "github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/validators"
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/network/p2p"
|
||||
quasar "github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/validators"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
|
||||
"github.com/luxfi/evm/network/stats"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/node/network/p2p"
|
||||
"github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/consensustest"
|
||||
"github.com/luxfi/node/v2/network/p2p"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/consensustest"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -23,10 +23,10 @@ import (
|
||||
"github.com/luxfi/evm/network/peertest"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/codec/linearcodec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/codec/linearcodec"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
utils_math "github.com/luxfi/node/utils/math"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/version"
|
||||
utils_math "github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
|
||||
"github.com/luxfi/log"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/evm/params/extras"
|
||||
"github.com/luxfi/evm/utils"
|
||||
ethparams "github.com/luxfi/geth/params"
|
||||
"github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/v2/upgrade"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/geth/common"
|
||||
gethparams "github.com/luxfi/geth/params"
|
||||
upgrade "github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/quasar"
|
||||
constants "github.com/luxfi/node/utils/constants"
|
||||
upgrade "github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
constants "github.com/luxfi/node/v2/utils/constants"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/luxfi/evm/utils"
|
||||
gethparams "github.com/luxfi/geth/params"
|
||||
upgrade "github.com/luxfi/node/upgrade"
|
||||
upgrade "github.com/luxfi/node/v2/upgrade"
|
||||
)
|
||||
|
||||
var errCannotBeNil = fmt.Errorf("timestamp cannot be nil")
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/evm/utils"
|
||||
upgrade "github.com/luxfi/node/upgrade"
|
||||
upgrade "github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
"errors"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+7
-7
@@ -15,14 +15,14 @@ import (
|
||||
"github.com/luxfi/evm/peer/stats"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/ids"
|
||||
nodeinterfaces "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/validators"
|
||||
"github.com/luxfi/node/network/p2p"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
nodeinterfaces "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/validators"
|
||||
"github.com/luxfi/node/v2/network/p2p"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
)
|
||||
|
||||
// Minimum amount of time to handle a request
|
||||
|
||||
@@ -19,13 +19,13 @@ import (
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/luxfi/node/codec/linearcodec"
|
||||
interfaces "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/engine/core/appsender"
|
||||
"github.com/luxfi/node/quasar/chain"
|
||||
"github.com/luxfi/node/v2/codec/linearcodec"
|
||||
interfaces "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core/appsender"
|
||||
"github.com/luxfi/node/v2/quasar/chain"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/log"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/geth/metrics"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
safemath "github.com/luxfi/node/utils/math"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
safemath "github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/client"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/node/api"
|
||||
"github.com/luxfi/node/utils/profiler"
|
||||
"github.com/luxfi/node/v2/api"
|
||||
"github.com/luxfi/node/v2/utils/profiler"
|
||||
)
|
||||
|
||||
// Admin is the API service for admin API calls
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/engine/core/appsender"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core/appsender"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
)
|
||||
|
||||
// appSenderAdapter adapts core.AppSender to appsender.AppSender
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/codec/linearcodec"
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/vms/secp256k1fx"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/codec/linearcodec"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/vms/secp256k1fx"
|
||||
)
|
||||
|
||||
const CodecVersion = uint16(0)
|
||||
|
||||
@@ -15,16 +15,16 @@ import (
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/node/chains/atomic"
|
||||
"github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/ids"
|
||||
luxutils "github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/utils/constants"
|
||||
"github.com/luxfi/node/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/utils/math"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/vms/components/lux"
|
||||
"github.com/luxfi/node/vms/secp256k1fx"
|
||||
luxutils "github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/node/v2/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/vms/components/lux"
|
||||
"github.com/luxfi/node/v2/vms/secp256k1fx"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -5,7 +5,7 @@ package atomic
|
||||
|
||||
import (
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/vms/components/verify"
|
||||
"github.com/luxfi/node/v2/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/v2/vms/components/verify"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -16,15 +16,15 @@ import (
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/node/chains/atomic"
|
||||
"github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/utils/constants"
|
||||
"github.com/luxfi/node/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/utils/math"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/vms/components/lux"
|
||||
"github.com/luxfi/node/vms/secp256k1fx"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/node/v2/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/vms/components/lux"
|
||||
"github.com/luxfi/node/v2/vms/secp256k1fx"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/node/cache/lru"
|
||||
"github.com/luxfi/node/v2/cache/lru"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/luxfi/log"
|
||||
|
||||
@@ -5,7 +5,7 @@ package atomic
|
||||
|
||||
import (
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/hashing"
|
||||
"github.com/luxfi/node/v2/utils/hashing"
|
||||
)
|
||||
|
||||
type Metadata struct {
|
||||
|
||||
@@ -8,13 +8,13 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/atomic"
|
||||
luxatomic "github.com/luxfi/node/chains/atomic"
|
||||
"github.com/luxfi/node/codec"
|
||||
luxatomic "github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/database"
|
||||
"github.com/luxfi/database/prefixdb"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -7,16 +7,16 @@ import (
|
||||
"math/big"
|
||||
"math/rand"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/codec/linearcodec"
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/codec/linearcodec"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/geth/params"
|
||||
luxatomic "github.com/luxfi/node/chains/atomic"
|
||||
luxatomic "github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
)
|
||||
|
||||
var TestTxCodec codec.Manager
|
||||
|
||||
+10
-10
@@ -17,17 +17,17 @@ import (
|
||||
"github.com/luxfi/geth/params"
|
||||
|
||||
"github.com/luxfi/evm/consensus"
|
||||
"github.com/luxfi/node/chains/atomic"
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/utils/hashing"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/vms/components/verify"
|
||||
"github.com/luxfi/node/vms/platformvm/fx"
|
||||
"github.com/luxfi/node/vms/secp256k1fx"
|
||||
"github.com/luxfi/node/v2/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/v2/utils/hashing"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/vms/components/verify"
|
||||
"github.com/luxfi/node/v2/vms/platformvm/fx"
|
||||
"github.com/luxfi/node/v2/vms/secp256k1fx"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+2
-2
@@ -20,8 +20,8 @@ import (
|
||||
"github.com/luxfi/evm/predicate"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/geth/rlp"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/quasar/choices"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/v2/quasar/choices"
|
||||
"github.com/luxfi/ids"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
"github.com/luxfi/evm/core/txpool"
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/node/quasar"
|
||||
commonEng "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/utils/timer"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/utils/timer"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"math"
|
||||
|
||||
"github.com/luxfi/evm/commontype"
|
||||
safemath "github.com/luxfi/node/utils/math"
|
||||
safemath "github.com/luxfi/node/v2/utils/math"
|
||||
)
|
||||
|
||||
// BlockGasCost calculates the required block gas cost.
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"log/slog"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/config"
|
||||
"github.com/luxfi/node/api"
|
||||
"github.com/luxfi/node/v2/api"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/rpc"
|
||||
"github.com/luxfi/node/v2/utils/rpc"
|
||||
)
|
||||
|
||||
// Interface compliance
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/node/utils/timer/mockable"
|
||||
"github.com/luxfi/node/v2/utils/timer/mockable"
|
||||
)
|
||||
|
||||
// ClockWrapper wraps a mockable.Clock to implement utils.MockableTimer
|
||||
|
||||
@@ -5,7 +5,7 @@ package evm
|
||||
|
||||
import (
|
||||
"github.com/luxfi/evm/iface"
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
)
|
||||
|
||||
// codecWrapper wraps a node codec.Manager to implement iface.Codec
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/atomic"
|
||||
"github.com/luxfi/ids"
|
||||
luxatomic "github.com/luxfi/node/chains/atomic"
|
||||
"github.com/luxfi/node/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/vms/components/lux"
|
||||
"github.com/luxfi/node/vms/secp256k1fx"
|
||||
luxatomic "github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/node/v2/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/node/v2/vms/components/lux"
|
||||
"github.com/luxfi/node/v2/vms/secp256k1fx"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ package evm
|
||||
import (
|
||||
"github.com/luxfi/evm/iface"
|
||||
luxlog "github.com/luxfi/log"
|
||||
"github.com/luxfi/node/vms"
|
||||
"github.com/luxfi/node/v2/vms"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/evm/core/types"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
luxmetrics "github.com/luxfi/metrics"
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
"github.com/luxfi/evm/consensus/dummy"
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/core/txpool"
|
||||
|
||||
@@ -11,19 +11,19 @@ import (
|
||||
"time"
|
||||
|
||||
evmatomic "github.com/luxfi/evm/plugin/evm/atomic"
|
||||
nodeatomic "github.com/luxfi/node/chains/atomic"
|
||||
nodeatomic "github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/network/p2p"
|
||||
"github.com/luxfi/node/proto/pb/sdk"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/v2/network/p2p"
|
||||
"github.com/luxfi/node/v2/proto/pb/sdk"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"google.golang.org/protobuf/proto"
|
||||
|
||||
commonEng "github.com/luxfi/node/quasar/consensus/engine"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/vms/components/lux"
|
||||
"github.com/luxfi/node/quasar/engine/core/appsender"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/consensus/engine"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/vms/components/lux"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core/appsender"
|
||||
)
|
||||
|
||||
// testVMConfig contains configuration for test VM
|
||||
|
||||
@@ -14,9 +14,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
|
||||
commonEng "github.com/luxfi/node/quasar/consensus/engine"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/consensus/engine"
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
@@ -26,10 +26,10 @@ import (
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/evm/core/types"
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
nodeatomic "github.com/luxfi/node/chains/atomic"
|
||||
enginecore "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
nodeatomic "github.com/luxfi/node/v2/chains/atomic"
|
||||
enginecore "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/atomic"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/vms/components/lux"
|
||||
"github.com/luxfi/node/vms/secp256k1fx"
|
||||
"github.com/luxfi/node/v2/utils/crypto/secp256k1"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/node/v2/vms/components/lux"
|
||||
"github.com/luxfi/node/v2/vms/secp256k1fx"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/holiman/uint256"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package message
|
||||
|
||||
import (
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/codec/linearcodec"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/codec/linearcodec"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/ids"
|
||||
)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/ids"
|
||||
luxids "github.com/luxfi/ids"
|
||||
)
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
"github.com/luxfi/geth/metrics"
|
||||
"github.com/luxfi/geth/triedb"
|
||||
"github.com/luxfi/ids"
|
||||
syncHandlers "github.com/luxfi/node/state_sync/handlers"
|
||||
syncStats "github.com/luxfi/node/state_sync/handlers/stats"
|
||||
syncHandlers "github.com/luxfi/node/v2/state_sync/handlers"
|
||||
syncStats "github.com/luxfi/node/v2/state_sync/handlers/stats"
|
||||
warp "github.com/luxfi/warp/backend"
|
||||
// warpHandlers "github.com/luxfi/warp/handlers" // TODO: restore when handlers are fixed
|
||||
)
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
"github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/network/p2p"
|
||||
"github.com/luxfi/node/v2/network/p2p"
|
||||
)
|
||||
|
||||
// p2pHandlerWrapper wraps a message.RequestHandler to implement p2p.Handler
|
||||
|
||||
@@ -15,11 +15,11 @@ import (
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/ethdb"
|
||||
"github.com/luxfi/log"
|
||||
commonEng "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/database"
|
||||
syncclient "github.com/luxfi/node/state_sync/client"
|
||||
"github.com/luxfi/node/state_sync/statesync"
|
||||
syncclient "github.com/luxfi/node/v2/state_sync/client"
|
||||
"github.com/luxfi/node/v2/state_sync/statesync"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/database"
|
||||
)
|
||||
|
||||
|
||||
@@ -30,17 +30,17 @@ import (
|
||||
"github.com/luxfi/geth/rlp"
|
||||
"github.com/luxfi/geth/trie"
|
||||
"github.com/luxfi/geth/triedb"
|
||||
"github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
commonEng "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
nodedatabase "github.com/luxfi/database"
|
||||
"github.com/luxfi/database/prefixdb"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/metrics"
|
||||
statesyncclient "github.com/luxfi/node/state_sync/client"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
statesyncclient "github.com/luxfi/node/v2/state_sync/client"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -11,18 +11,18 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
commonEng "github.com/luxfi/node/quasar/engine/core"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/evm/core/types"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/evm/peer"
|
||||
"github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/quasar/validators"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/quasar/validators"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/proto/pb/sdk"
|
||||
"github.com/luxfi/node/v2/proto/pb/sdk"
|
||||
luxlog "github.com/luxfi/log"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
agoUtils "github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
agoUtils "github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/database/memdb"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
package validators
|
||||
|
||||
import (
|
||||
"github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/validators"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/validators"
|
||||
"github.com/luxfi/database"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/timer/mockable"
|
||||
"github.com/luxfi/node/v2/utils/timer/mockable"
|
||||
)
|
||||
|
||||
// manager wraps the consensus validator manager for EVM usage
|
||||
|
||||
+19
-19
@@ -36,17 +36,17 @@ import (
|
||||
"github.com/luxfi/geth/node"
|
||||
"github.com/luxfi/geth/triedb"
|
||||
triedbhashdb "github.com/luxfi/geth/triedb/hashdb"
|
||||
nodequasar "github.com/luxfi/node/quasar"
|
||||
commonEng "github.com/luxfi/node/quasar/engine/core"
|
||||
chainblock "github.com/luxfi/node/quasar/engine/chain/block"
|
||||
consensuschain "github.com/luxfi/node/quasar/chain"
|
||||
nodequasar "github.com/luxfi/node/v2/quasar"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
chainblock "github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
consensuschain "github.com/luxfi/node/v2/quasar/chain"
|
||||
"github.com/luxfi/database"
|
||||
"github.com/luxfi/ids"
|
||||
statesyncclient "github.com/luxfi/node/state_sync/client"
|
||||
"github.com/luxfi/node/state_sync/client/stats"
|
||||
"github.com/luxfi/node/utils/constants"
|
||||
"github.com/luxfi/node/utils/timer/mockable"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
statesyncclient "github.com/luxfi/node/v2/state_sync/client"
|
||||
"github.com/luxfi/node/v2/state_sync/client/stats"
|
||||
"github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/node/v2/utils/timer/mockable"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/warp/backend"
|
||||
luxmetrics "github.com/luxfi/metrics"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
@@ -74,16 +74,16 @@ import (
|
||||
|
||||
rpcjson "github.com/gorilla/rpc/json"
|
||||
"github.com/luxfi/evm/peer"
|
||||
nodeMetrics "github.com/luxfi/node/api/metrics"
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/quasar/validators"
|
||||
"github.com/luxfi/node/network/p2p"
|
||||
"github.com/luxfi/node/network/p2p/gossip"
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/utils/perms"
|
||||
"github.com/luxfi/node/utils/profiler"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/vms/components/chain"
|
||||
nodeMetrics "github.com/luxfi/node/v2/api/metrics"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/quasar/validators"
|
||||
"github.com/luxfi/node/v2/network/p2p"
|
||||
"github.com/luxfi/node/v2/network/p2p/gossip"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
"github.com/luxfi/node/v2/utils/perms"
|
||||
"github.com/luxfi/node/v2/utils/profiler"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
"github.com/luxfi/node/v2/vms/components/chain"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
nodedb "github.com/luxfi/database"
|
||||
"github.com/luxfi/database/factory"
|
||||
"github.com/luxfi/database/prefixdb"
|
||||
"github.com/luxfi/node/utils/constants"
|
||||
"github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/log"
|
||||
)
|
||||
|
||||
|
||||
@@ -32,22 +32,22 @@ import (
|
||||
"github.com/luxfi/geth/eth"
|
||||
"github.com/luxfi/geth/trie"
|
||||
|
||||
"github.com/luxfi/node/chains/atomic"
|
||||
"github.com/luxfi/node/quasar"
|
||||
commonEng "github.com/luxfi/node/quasar/engine/core"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/v2/chains/atomic"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
commonEng "github.com/luxfi/node/v2/quasar/engine/core"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/database"
|
||||
"github.com/luxfi/database/prefixdb"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/formatting"
|
||||
"github.com/luxfi/node/v2/utils/formatting"
|
||||
"github.com/luxfi/warp"
|
||||
"github.com/luxfi/metrics"
|
||||
"github.com/luxfi/node/message"
|
||||
"github.com/luxfi/node/v2/message"
|
||||
|
||||
"github.com/luxfi/evm/commontype"
|
||||
"github.com/luxfi/evm/constants"
|
||||
nodeconstants "github.com/luxfi/node/utils/constants"
|
||||
nodeconstants "github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/evm/core/txpool"
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/evm/precompile/allowlist"
|
||||
|
||||
@@ -21,10 +21,10 @@ import (
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
"github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/vms/components/chain"
|
||||
"github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/vms/components/chain"
|
||||
"github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/quasar/validators/validatorstest"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/quasar/validators/validatorstest"
|
||||
"github.com/luxfi/database"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
@@ -25,13 +25,13 @@ import (
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
"github.com/luxfi/geth/eth/tracers"
|
||||
"github.com/luxfi/node/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/quasar/validators/validatorstest"
|
||||
"github.com/luxfi/node/v2/quasar/consensus/engine/enginetest"
|
||||
"github.com/luxfi/node/v2/quasar/validators/validatorstest"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/constants"
|
||||
"github.com/luxfi/node/vms/components/chain"
|
||||
"github.com/luxfi/node/message"
|
||||
"github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/node/v2/vms/components/chain"
|
||||
"github.com/luxfi/node/v2/message"
|
||||
"github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/luxfi/warp"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
"github.com/luxfi/evm/plugin/evm"
|
||||
"github.com/luxfi/evm/plugin/runner"
|
||||
)
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"os"
|
||||
|
||||
luxlog "github.com/luxfi/log"
|
||||
"github.com/luxfi/node/utils/ulimit"
|
||||
"github.com/luxfi/node/vms/rpcchainvm"
|
||||
"github.com/luxfi/node/v2/utils/ulimit"
|
||||
"github.com/luxfi/node/v2/vms/rpcchainvm"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm"
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/luxfi/evm/utils/set"
|
||||
"github.com/luxfi/evm/vmerrs"
|
||||
"github.com/luxfi/geth/common"
|
||||
agoUtils "github.com/luxfi/node/utils"
|
||||
agoUtils "github.com/luxfi/node/v2/utils"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/evm/utils/set"
|
||||
"github.com/luxfi/geth/common"
|
||||
agoUtils "github.com/luxfi/node/utils"
|
||||
agoUtils "github.com/luxfi/node/v2/utils"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/contract"
|
||||
"github.com/luxfi/evm/vmerrs"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/vms/platformvm/warp"
|
||||
"github.com/luxfi/node/v2/vms/platformvm/warp"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/holiman/uint256"
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
"github.com/stretchr/testify/require"
|
||||
avagoUtils "github.com/luxfi/node/utils"
|
||||
avagoUtils "github.com/luxfi/node/v2/utils"
|
||||
)
|
||||
|
||||
func testPackPredicate(t testing.TB, b []byte) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"github.com/luxfi/evm/iface"
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/codec/linearcodec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/codec/linearcodec"
|
||||
"github.com/luxfi/geth/common"
|
||||
)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/quasar/engine/chain/block"
|
||||
"github.com/luxfi/node/v2/quasar/engine/chain/block"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -17,8 +17,8 @@ import (
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/evm/sync/client/stats"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/crypto"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
"github.com/luxfi/evm/sync/handlers"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/evm/network"
|
||||
|
||||
"github.com/luxfi/node/version"
|
||||
"github.com/luxfi/node/v2/version"
|
||||
)
|
||||
|
||||
var _ network.SyncedNetworkClient = (*testNetwork)(nil)
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/ids"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/evm/consensus/dummy"
|
||||
"github.com/luxfi/evm/core"
|
||||
"github.com/luxfi/evm/core/rawdb"
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/ids"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/luxfi/node/codec"
|
||||
"github.com/luxfi/node/v2/codec"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/evm/core/state/snapshot"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/node/utils/set"
|
||||
"github.com/luxfi/node/v2/utils/set"
|
||||
"github.com/luxfi/evm/plugin/evm/customrawdb"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
synccommon "github.com/luxfi/evm/sync"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/node/utils"
|
||||
"github.com/luxfi/node/v2/utils"
|
||||
|
||||
"github.com/luxfi/evm/plugin/evm/customrawdb"
|
||||
"github.com/luxfi/evm/plugin/evm/message"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/evm/utils/utilstest"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/evm/plugin/evm/customrawdb"
|
||||
syncclient "github.com/luxfi/evm/sync/client"
|
||||
"github.com/luxfi/evm/utils"
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
utils_math "github.com/luxfi/node/utils/math"
|
||||
"github.com/luxfi/node/utils/timer"
|
||||
utils_math "github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/node/v2/utils/timer"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/geth/metrics"
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/onsi/ginkgo/v2"
|
||||
"github.com/onsi/gomega"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/luxfi/node/api/health"
|
||||
"github.com/luxfi/node/v2/api/health"
|
||||
)
|
||||
|
||||
// RunCommand starts the command [bin] with the given [args] and returns the command to the caller
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
package ap0
|
||||
|
||||
import (
|
||||
"github.com/luxfi/node/utils/units"
|
||||
"github.com/luxfi/node/v2/utils/units"
|
||||
"github.com/luxfi/evm/utils"
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/evm/utils"
|
||||
safemath "github.com/luxfi/geth/common/math"
|
||||
)
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ package ap4
|
||||
import (
|
||||
"math"
|
||||
|
||||
safemath "github.com/luxfi/node/utils/math"
|
||||
safemath "github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/evm/utils"
|
||||
)
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
"math/big"
|
||||
"sort"
|
||||
|
||||
safemath "github.com/luxfi/node/utils/math"
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/vms/components/gas"
|
||||
safemath "github.com/luxfi/node/v2/utils/math"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/vms/components/gas"
|
||||
"github.com/holiman/uint256"
|
||||
)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"math/big"
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/node/vms/components/gas"
|
||||
"github.com/luxfi/node/v2/vms/components/gas"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/luxfi/node/utils/wrappers"
|
||||
"github.com/luxfi/node/v2/utils/wrappers"
|
||||
safemath "github.com/luxfi/geth/common/math"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
avagoUtils "github.com/luxfi/node/utils"
|
||||
avagoUtils "github.com/luxfi/node/v2/utils"
|
||||
)
|
||||
|
||||
func TestIncrOne(t *testing.T) {
|
||||
|
||||
+5
-5
@@ -11,11 +11,11 @@ import (
|
||||
"github.com/luxfi/ids"
|
||||
luxlog "github.com/luxfi/log"
|
||||
"github.com/luxfi/metrics"
|
||||
"github.com/luxfi/node/utils/constants"
|
||||
"github.com/luxfi/node/vms/platformvm/warp"
|
||||
"github.com/luxfi/node/quasar"
|
||||
"github.com/luxfi/node/quasar/validators"
|
||||
"github.com/luxfi/node/upgrade"
|
||||
"github.com/luxfi/node/v2/utils/constants"
|
||||
"github.com/luxfi/node/v2/vms/platformvm/warp"
|
||||
"github.com/luxfi/node/v2/quasar"
|
||||
"github.com/luxfi/node/v2/quasar/validators"
|
||||
"github.com/luxfi/node/v2/upgrade"
|
||||
"github.com/luxfi/evm/localsigner"
|
||||
"github.com/luxfi/evm/commontype"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user