mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Update math imports to use math/big subpackage
This commit is contained in:
@@ -39,7 +39,7 @@ import (
|
||||
|
||||
"github.com/luxfi/crypto"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
"reflect"
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
math "github.com/luxfi/math/big"
|
||||
)
|
||||
|
||||
// packBytesSlice packs the given bytes as [L, V] as the canonical representation
|
||||
|
||||
@@ -36,7 +36,7 @@ import (
|
||||
|
||||
"github.com/luxfi/crypto"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
math "github.com/luxfi/math/big"
|
||||
)
|
||||
|
||||
// packTopic packs rule into the corresponding hash value for a log's topic
|
||||
|
||||
@@ -38,7 +38,7 @@ import (
|
||||
"github.com/luxfi/crypto"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/rlp"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
"github.com/luxfi/evm/core/state"
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/consensus/misc/eip4844"
|
||||
"github.com/luxfi/geth/core/rawdb"
|
||||
"github.com/luxfi/geth/core/tracing"
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"math/big"
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
)
|
||||
|
||||
var _ = (*stEnvMarshaling)(nil)
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ import (
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/evm/plugin/evm/customrawdb"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/rawdb"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/core/vm"
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ import (
|
||||
"github.com/luxfi/evm/plugin/evm/upgrade/legacy"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/rawdb"
|
||||
"github.com/luxfi/geth/core/tracing"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
|
||||
@@ -38,7 +38,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/contracts/txallowlist"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/geth/common"
|
||||
cmath "github.com/luxfi/math/math"
|
||||
cmath "github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/tracing"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/core/vm"
|
||||
|
||||
@@ -52,7 +52,7 @@ import (
|
||||
"github.com/luxfi/geth/accounts/scwallet"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
commonmath "github.com/luxfi/math/math"
|
||||
commonmath "github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/tracing"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/core/vm"
|
||||
|
||||
@@ -39,7 +39,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
ethparams "github.com/luxfi/geth/params"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/evm/utils/utilstest"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"math"
|
||||
|
||||
"github.com/luxfi/evm/commontype"
|
||||
safemath "github.com/luxfi/math/math"
|
||||
safemath "github.com/luxfi/math"
|
||||
)
|
||||
|
||||
// BlockGasCost calculates the required block gas cost.
|
||||
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
"github.com/luxfi/evm/internal/blocktest"
|
||||
"github.com/luxfi/evm/params"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/rlp"
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/luxfi/evm/params/extras"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
ethparams "github.com/luxfi/geth/params"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
safemath "github.com/luxfi/math/math"
|
||||
safemath "github.com/luxfi/math/safe"
|
||||
"github.com/luxfi/utils/wrappers"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/luxfi/evm/commontype"
|
||||
"github.com/luxfi/evm/precompile/contract"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/precompileconfig"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
)
|
||||
|
||||
var _ precompileconfig.Config = (*Config)(nil)
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/precompiletest"
|
||||
"github.com/luxfi/evm/utils"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/precompileconfig"
|
||||
"github.com/luxfi/evm/precompile/precompiletest"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
ethtypes "github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/core/vm"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/precompileconfig"
|
||||
"github.com/luxfi/evm/predicate"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/ids"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/warp"
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/luxfi/evm/accounts/abi"
|
||||
"github.com/luxfi/evm/precompile/contract"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
"github.com/luxfi/geth/core/vm"
|
||||
"github.com/luxfi/warp"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/luxfi/evm/precompile/contract"
|
||||
"github.com/luxfi/evm/predicate"
|
||||
"github.com/luxfi/geth/common"
|
||||
commonmath "github.com/luxfi/math/math"
|
||||
commonmath "github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/vm"
|
||||
"github.com/luxfi/log"
|
||||
"github.com/luxfi/math/set"
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/metrics"
|
||||
"github.com/luxfi/log"
|
||||
luxmath "github.com/luxfi/math/math"
|
||||
luxmath "github.com/luxfi/math"
|
||||
"github.com/luxfi/timer"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
"math/big"
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
)
|
||||
|
||||
var _ = (*stEnvMarshaling)(nil)
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/core/types"
|
||||
)
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ import (
|
||||
"github.com/luxfi/evm/plugin/evm/customrawdb"
|
||||
"github.com/luxfi/geth/common"
|
||||
"github.com/luxfi/geth/common/hexutil"
|
||||
"github.com/luxfi/math/math"
|
||||
"github.com/luxfi/math"
|
||||
"github.com/luxfi/geth/consensus/misc/eip4844"
|
||||
"github.com/luxfi/geth/core/rawdb"
|
||||
"github.com/luxfi/geth/core/tracing"
|
||||
|
||||
Reference in New Issue
Block a user