github.com/MetalBlockchain/metalgo@v1.11.9/vms/avm/txs/executor/backend.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package executor
     5  
     6  import (
     7  	"reflect"
     8  
     9  	"github.com/MetalBlockchain/metalgo/codec"
    10  	"github.com/MetalBlockchain/metalgo/ids"
    11  	"github.com/MetalBlockchain/metalgo/snow"
    12  	"github.com/MetalBlockchain/metalgo/vms/avm/config"
    13  	"github.com/MetalBlockchain/metalgo/vms/avm/fxs"
    14  )
    15  
    16  type Backend struct {
    17  	Ctx           *snow.Context
    18  	Config        *config.Config
    19  	Fxs           []*fxs.ParsedFx
    20  	TypeToFxIndex map[reflect.Type]int
    21  	Codec         codec.Manager
    22  	// Note: FeeAssetID may be different than ctx.AVAXAssetID if this AVM is
    23  	// running in a subnet.
    24  	FeeAssetID   ids.ID
    25  	Bootstrapped bool
    26  }