github.com/MetalBlockchain/metalgo@v1.11.9/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/MetalBlockchain/metalgo/utils/logging" 8 "github.com/MetalBlockchain/metalgo/vms" 9 "github.com/MetalBlockchain/metalgo/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 }