aboutsummaryrefslogblamecommitdiff
path: root/plugin/evm/factory.go
blob: ae2ea278c711959c310ad880929f5caa15deba8e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                     
                     


                   
 

          

                                     

                                    


                                   
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package evm

import (
	"github.com/ava-labs/gecko/ids"
)

// ID this VM should be referenced by
var (
	ID = ids.NewID([32]byte{'e', 'v', 'm'})
)

// Factory ...
type Factory struct {
	AVAX ids.ID
	AVM  ids.ID
	Fee  uint64
}

// New ...
func (f *Factory) New() interface{} {
	return &VM{
		avaxAssetID: f.AVAX,
		avm:         f.AVM,
		txFee:       f.Fee,
	}
}