github.com/MetalBlockchain/metalgo@v1.11.9/vms/platformvm/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  	"github.com/MetalBlockchain/metalgo/snow"
     8  	"github.com/MetalBlockchain/metalgo/snow/uptime"
     9  	"github.com/MetalBlockchain/metalgo/utils"
    10  	"github.com/MetalBlockchain/metalgo/utils/timer/mockable"
    11  	"github.com/MetalBlockchain/metalgo/vms/platformvm/config"
    12  	"github.com/MetalBlockchain/metalgo/vms/platformvm/fx"
    13  	"github.com/MetalBlockchain/metalgo/vms/platformvm/reward"
    14  	"github.com/MetalBlockchain/metalgo/vms/platformvm/utxo"
    15  )
    16  
    17  type Backend struct {
    18  	Config       *config.Config
    19  	Ctx          *snow.Context
    20  	Clk          *mockable.Clock
    21  	Fx           fx.Fx
    22  	FlowChecker  utxo.Verifier
    23  	Uptimes      uptime.Calculator
    24  	Rewards      reward.Calculator
    25  	Bootstrapped *utils.Atomic[bool]
    26  }