github.com/ava-labs/avalanchego@v1.11.11/vms/platformvm/factory.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package platformvm
     5  
     6  import (
     7  	"github.com/ava-labs/avalanchego/utils/logging"
     8  	"github.com/ava-labs/avalanchego/vms"
     9  	"github.com/ava-labs/avalanchego/vms/platformvm/config"
    10  )
    11  
    12  var _ vms.Factory = (*Factory)(nil)
    13  
    14  // Factory can create new instances of the Platform Chain
    15  type Factory struct {
    16  	config.Config
    17  }
    18  
    19  // New returns a new instance of the Platform Chain
    20  func (f *Factory) New(logging.Logger) (interface{}, error) {
    21  	return &VM{Config: f.Config}, nil
    22  }