github.com/dim4egster/coreth@v0.10.2/plugin/evm/factory.go (about)

     1  // (c) 2019-2020, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package evm
     5  
     6  import (
     7  	"github.com/dim4egster/qmallgo/ids"
     8  	"github.com/dim4egster/qmallgo/snow"
     9  	"github.com/dim4egster/qmallgo/vms"
    10  )
    11  
    12  var (
    13  	// ID this VM should be referenced by
    14  	ID = ids.ID{'e', 'v', 'm'}
    15  
    16  	_ vms.Factory = &Factory{}
    17  )
    18  
    19  type Factory struct{}
    20  
    21  func (f *Factory) New(*snow.Context) (interface{}, error) {
    22  	return &VM{}, nil
    23  }