mirror of
https://github.com/luxfi/proto.git
synced 2026-10-30 15:21:09 +00:00
Adds .hanzo/workflows/cicd.yml calling the canonical pipeline and drops the GitHub-hosted workflows it replaces. Lands here because this is where the repo is written — git.hanzo.ai is upstream and github.com is its push mirror, so the same change made on github.com never reaches the runner fleet.
37 lines
963 B
Go
37 lines
963 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package executor
|
|
|
|
import (
|
|
"github.com/luxfi/atomic"
|
|
"github.com/luxfi/ids"
|
|
log "github.com/luxfi/log"
|
|
"github.com/luxfi/proto/p/config"
|
|
"github.com/luxfi/proto/p/fx"
|
|
"github.com/luxfi/proto/p/reward"
|
|
"github.com/luxfi/proto/p/utxo"
|
|
"github.com/luxfi/runtime"
|
|
"github.com/luxfi/timer/mockable"
|
|
"github.com/luxfi/validators/uptime"
|
|
)
|
|
|
|
type Backend struct {
|
|
Config *config.Internal
|
|
Rt *runtime.Runtime
|
|
Clk *mockable.Clock
|
|
Fx fx.Fx
|
|
FlowChecker utxo.Verifier
|
|
Uptimes uptime.Calculator
|
|
Rewards reward.Calculator
|
|
Bootstrapped *atomic.Atomic[bool]
|
|
Log log.Logger
|
|
|
|
}
|
|
|
|
// SharedMemory provides cross-chain atomic operations
|
|
type SharedMemory interface {
|
|
Get(peerChainID ids.ID, keys [][]byte) ([][]byte, error)
|
|
Apply(requests map[ids.ID]interface{}, batch ...interface{}) error
|
|
}
|