Update generated files (gencodec, mocks)

- Run go generate to update all generated files
- Updates required after recent code changes
- Fixes CI build failures
This commit is contained in:
2025-09-06 12:53:14 +00:00
parent b44a965c8e
commit a716430871
6 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -7,11 +7,11 @@ import (
"errors"
"math/big"
"github.com/luxfi/evm/params"
"github.com/luxfi/geth/common"
"github.com/luxfi/geth/common/hexutil"
"github.com/luxfi/geth/common/math"
"github.com/luxfi/geth/core/types"
params0 "github.com/luxfi/evm/params"
)
var _ = (*genesisSpecMarshaling)(nil)
@@ -19,7 +19,7 @@ var _ = (*genesisSpecMarshaling)(nil)
// MarshalJSON marshals as JSON.
func (g Genesis) MarshalJSON() ([]byte, error) {
type Genesis struct {
Config *params0.ChainConfig `json:"config"`
Config *params.ChainConfig `json:"config"`
Nonce math.HexOrDecimal64 `json:"nonce"`
Timestamp math.HexOrDecimal64 `json:"timestamp"`
ExtraData hexutil.Bytes `json:"extraData"`
@@ -68,7 +68,7 @@ func (g Genesis) MarshalJSON() ([]byte, error) {
// UnmarshalJSON unmarshals from JSON.
func (g *Genesis) UnmarshalJSON(input []byte) error {
type Genesis struct {
Config *params0.ChainConfig `json:"config"`
Config *params.ChainConfig `json:"config"`
Nonce *math.HexOrDecimal64 `json:"nonce"`
Timestamp *math.HexOrDecimal64 `json:"timestamp"`
ExtraData *hexutil.Bytes `json:"extraData"`
+1 -1
View File
@@ -5,12 +5,12 @@ package ethconfig
import (
"time"
"github.com/luxfi/geth/common"
"github.com/luxfi/evm/core"
"github.com/luxfi/evm/core/txpool/blobpool"
"github.com/luxfi/evm/core/txpool/legacypool"
"github.com/luxfi/evm/eth/gasprice"
"github.com/luxfi/evm/miner"
"github.com/luxfi/geth/common"
)
// MarshalTOML marshals as TOML.
+10 -10
View File
@@ -15,12 +15,6 @@ import (
reflect "reflect"
time "time"
accounts "github.com/luxfi/geth/accounts"
common "github.com/luxfi/geth/common"
types "github.com/luxfi/geth/core/types"
vm "github.com/luxfi/geth/core/vm"
ethdb "github.com/luxfi/geth/ethdb"
event "github.com/luxfi/geth/event"
commontype "github.com/luxfi/evm/commontype"
consensus "github.com/luxfi/evm/consensus"
core "github.com/luxfi/evm/core"
@@ -28,6 +22,12 @@ import (
state "github.com/luxfi/evm/core/state"
params "github.com/luxfi/evm/params"
rpc "github.com/luxfi/evm/rpc"
accounts "github.com/luxfi/geth/accounts"
common "github.com/luxfi/geth/common"
types "github.com/luxfi/geth/core/types"
vm "github.com/luxfi/geth/core/vm"
ethdb "github.com/luxfi/geth/ethdb"
event "github.com/luxfi/geth/event"
gomock "go.uber.org/mock/gomock"
)
@@ -277,17 +277,17 @@ func (mr *MockBackendMockRecorder) GetBody(ctx, hash, number any) *gomock.Call {
}
// GetEVM mocks base method.
func (m *MockBackend) GetEVM(ctx context.Context, msg *core.Message, state *state.StateDB, header *types.Header, vmConfig *vm.Config, blockCtx *vm.BlockContext) *vm.EVM {
func (m *MockBackend) GetEVM(ctx context.Context, msg *core.Message, arg2 *state.StateDB, header *types.Header, vmConfig *vm.Config, blockCtx *vm.BlockContext) *vm.EVM {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEVM", ctx, msg, state, header, vmConfig, blockCtx)
ret := m.ctrl.Call(m, "GetEVM", ctx, msg, arg2, header, vmConfig, blockCtx)
ret0, _ := ret[0].(*vm.EVM)
return ret0
}
// GetEVM indicates an expected call of GetEVM.
func (mr *MockBackendMockRecorder) GetEVM(ctx, msg, state, header, vmConfig, blockCtx any) *gomock.Call {
func (mr *MockBackendMockRecorder) GetEVM(ctx, msg, arg2, header, vmConfig, blockCtx any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEVM", reflect.TypeOf((*MockBackend)(nil).GetEVM), ctx, msg, state, header, vmConfig, blockCtx)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEVM", reflect.TypeOf((*MockBackend)(nil).GetEVM), ctx, msg, arg2, header, vmConfig, blockCtx)
}
// GetFeeConfigAt mocks base method.
+3 -3
View File
@@ -10,14 +10,14 @@
package contract
import (
"context"
context "context"
big "math/big"
reflect "reflect"
uint256 "github.com/holiman/uint256"
precompileconfig "github.com/luxfi/evm/precompile/precompileconfig"
common "github.com/luxfi/geth/common"
types "github.com/luxfi/geth/core/types"
precompileconfig "github.com/luxfi/evm/precompile/precompileconfig"
uint256 "github.com/holiman/uint256"
gomock "go.uber.org/mock/gomock"
)
+1 -1
View File
@@ -12,8 +12,8 @@ package precompileconfig
import (
reflect "reflect"
common "github.com/luxfi/geth/common"
commontype "github.com/luxfi/evm/commontype"
common "github.com/luxfi/geth/common"
gomock "go.uber.org/mock/gomock"
)
@@ -13,8 +13,8 @@ import (
context "context"
reflect "reflect"
ids "github.com/luxfi/ids"
bls "github.com/luxfi/crypto/bls"
ids "github.com/luxfi/ids"
warp "github.com/luxfi/node/vms/platformvm/warp"
gomock "go.uber.org/mock/gomock"
)