Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-raykov committed Jan 17, 2025
1 parent d40d6e2 commit c47f99f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/chains/evm/txm/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
commontypes "github.com/smartcontractkit/chainlink-common/pkg/types"
"github.com/smartcontractkit/chainlink-common/pkg/utils"

"github.com/smartcontractkit/chainlink/v2/common/txmgr"
txmgrtypes "github.com/smartcontractkit/chainlink/v2/common/txmgr/types"
"github.com/smartcontractkit/chainlink/v2/common/types"
"github.com/smartcontractkit/chainlink-framework/chains"
"github.com/smartcontractkit/chainlink-framework/chains/txmgr"
txmgrtypes "github.com/smartcontractkit/chainlink-framework/chains/txmgr/types"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/forwarders"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/gas"
txmtypes "github.com/smartcontractkit/chainlink/v2/core/chains/evm/txm/types"
Expand All @@ -39,17 +39,17 @@ type OrchestratorKeystore interface {
}

type OrchestratorAttemptBuilder[
BLOCK_HASH types.Hashable,
HEAD types.Head[BLOCK_HASH],
BLOCK_HASH chains.Hashable,
HEAD chains.Head[BLOCK_HASH],
] interface {
services.Service
OnNewLongestChain(ctx context.Context, head HEAD)
}

// Generics are necessary to keep TXMv2 backwards compatible
type Orchestrator[
BLOCK_HASH types.Hashable,
HEAD types.Head[BLOCK_HASH],
BLOCK_HASH chains.Hashable,
HEAD chains.Head[BLOCK_HASH],
] struct {
services.StateMachine
lggr logger.SugaredLogger
Expand All @@ -62,7 +62,7 @@ type Orchestrator[
resumeCallback txmgr.ResumeCallback
}

func NewTxmOrchestrator[BLOCK_HASH types.Hashable, HEAD types.Head[BLOCK_HASH]](
func NewTxmOrchestrator[BLOCK_HASH chains.Hashable, HEAD chains.Head[BLOCK_HASH]](
lggr logger.Logger,
chainID *big.Int,
txm *Txm,
Expand Down

0 comments on commit c47f99f

Please sign in to comment.