Files
coreth/plugin/factory/factory.go
zeekay 179e59b0ba Update dependencies for platform builds
- Update vm to v1.0.30 (simplified SameChain API)
- Update threshold to v1.5.5 (Signature.UnmarshalBinary)
- Fix AveragerHeap usage (not generic)
- Fix Header.Number access (Number.Uint64() not NumberU64())
- Use rpc.Serve instead of rpc/chain.Serve (ZAP transport)
2026-01-26 12:28:20 -08:00

32 lines
674 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package factory
import (
atomicvm "github.com/luxfi/coreth/plugin/evm/atomic/vm"
"github.com/luxfi/ids"
log "github.com/luxfi/log"
"github.com/luxfi/vm/chain"
"github.com/luxfi/vm/manager"
"github.com/luxfi/coreth/plugin/evm"
)
var (
// ID this VM should be referenced by
ID = ids.ID{'e', 'v', 'm'}
_ manager.Factory = (*Factory)(nil)
)
type Factory struct{}
func (*Factory) New(log.Logger) (interface{}, error) {
return atomicvm.WrapVM(&evm.VM{}), nil
}
func NewPluginVM() chain.ChainVM {
return atomicvm.WrapVM(&evm.VM{IsPlugin: true})
}