aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/factory.go
blob: 31a617abac39f1c6251224e7324ad36f05b56814 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// (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 {
	AVA ids.ID
	Fee uint64
}

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